Repository: spotify/reactochart Branch: master Commit: cd783035fabd Files: 266 Total size: 2.9 MB Directory structure: gitextract_mpt3p2oi/ ├── .eslintignore ├── .eslintrc.js ├── .github/ │ ├── dependabot.yml │ └── workflows/ │ └── node.js.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .travis.yml ├── CHANGELOG.md ├── CODEOWNERS ├── LICENSE ├── NOTICE ├── README.md ├── babel.config.js ├── docs/ │ ├── build/ │ │ ├── bundle.6ab8ef2cbcf9e159df8e.js │ │ ├── bundle.6ab8ef2cbcf9e159df8e.js.LICENSE.txt │ │ └── index.html │ ├── index.html │ ├── src/ │ │ ├── App.js │ │ ├── ComponentDocs.js │ │ ├── ExampleSection.js │ │ ├── Lesson.js │ │ ├── data/ │ │ │ └── util.js │ │ ├── docs/ │ │ │ ├── AreaBarChart/ │ │ │ │ ├── AreaBarChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── AreaBarChart.js.example │ │ │ │ │ └── RatesByAge.js.example │ │ │ │ └── propDocs.json │ │ │ ├── AreaChart/ │ │ │ │ ├── AreaChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── Area2Datasets.js.example │ │ │ │ │ ├── AreaChart.js.example │ │ │ │ │ └── AreaDifference.js.example │ │ │ │ └── propDocs.json │ │ │ ├── AreaHeatmap/ │ │ │ │ ├── AreaHeatmapDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── AreaHeatmap.js.example │ │ │ │ └── propDocs.json │ │ │ ├── AriaLabelContainer/ │ │ │ │ ├── AriaLabelContainerDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── OneDataset.js.example │ │ │ │ │ ├── TwoDatasets.js.example │ │ │ │ │ └── WithActions.js.example │ │ │ │ └── propDocs.json │ │ │ ├── Bar/ │ │ │ │ ├── BarDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── Bar.js.example │ │ │ │ └── propDocs.json │ │ │ ├── BarChart/ │ │ │ │ ├── BarChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── BarChart.js.example │ │ │ │ │ └── BarChartLinearGradient.js.example │ │ │ │ └── propDocs.json │ │ │ ├── ColorHeatmap/ │ │ │ │ ├── ColorHeatmapDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── CategoricalColorHeatmap.js.example │ │ │ │ │ └── ColorHeatmap.js.example │ │ │ │ └── propDocs.json │ │ │ ├── FunnelChart/ │ │ │ │ ├── FunnelChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── FunnelChart.js.example │ │ │ │ └── propDocs.json │ │ │ ├── Histogram/ │ │ │ │ ├── HistogramDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── Histogram.js.example │ │ │ │ └── propDocs.json │ │ │ ├── KernelDensityEstimation/ │ │ │ │ ├── KernelDensityEstimationDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── KernelDensityEstimation.js.example │ │ │ │ └── propDocs.json │ │ │ ├── LineChart/ │ │ │ │ ├── LineChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── InteractiveLineChart.js.example │ │ │ │ │ └── LineChart.js.example │ │ │ │ └── propDocs.json │ │ │ ├── MarkerLineChart/ │ │ │ │ ├── MarkerLineChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── MarkerLineChart.js.example │ │ │ │ │ └── MarkerLineWithBarChart.js.example │ │ │ │ └── propDocs.json │ │ │ ├── MeasuredValueLabel/ │ │ │ │ ├── MeasuredValueLabelDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── MeasuredValueLabel.js.example │ │ │ │ └── propDocs.json │ │ │ ├── PieChart/ │ │ │ │ ├── PieChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── PieChart.js.example │ │ │ │ └── propDocs.json │ │ │ ├── RangeBarChart/ │ │ │ │ ├── RangeBarChartDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── RangeBarChart.js.example │ │ │ │ └── propDocs.json │ │ │ ├── RangeRect/ │ │ │ │ ├── RangeRectDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── RangeRect.js.example │ │ │ │ └── propDocs.json │ │ │ ├── SankeyDiagram/ │ │ │ │ ├── SankeyDiagramDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── SankeyDiagram.js.example │ │ │ │ │ └── SankeyInteractive.js.example │ │ │ │ └── propDocs.json │ │ │ ├── ScatterPlot/ │ │ │ │ ├── ScatterPlotDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── ScatterPlot.js.example │ │ │ │ └── propDocs.json │ │ │ ├── TreeMap/ │ │ │ │ ├── TreeMapDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── AnimatedTreeMap.js.example │ │ │ │ │ └── TreeMap.js.example │ │ │ │ └── propDocs.json │ │ │ ├── TreeMapNode/ │ │ │ │ ├── TreeMapNodeDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── TreeMapNode.js.example │ │ │ │ └── propDocs.json │ │ │ ├── TreeMapNodeLabel/ │ │ │ │ ├── TreeMapNodeLabelDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── TreeMapNodeLabel.js.example │ │ │ │ └── propDocs.json │ │ │ ├── XAxis/ │ │ │ │ ├── XAxisDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── XAxis.js.example │ │ │ │ │ └── XAxisCustomTicks.js.example │ │ │ │ └── propDocs.json │ │ │ ├── XAxisLabels/ │ │ │ │ ├── XAxisLabelsDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── XAxisLabels.js.example │ │ │ │ └── propDocs.json │ │ │ ├── XAxisTitle/ │ │ │ │ ├── XAxisTitleDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── XAxisTitle.js.example │ │ │ │ │ └── XAxisTitleAll.js.example │ │ │ │ └── propDocs.json │ │ │ ├── XGrid/ │ │ │ │ ├── XGridDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── XGrid.js.example │ │ │ │ └── propDocs.json │ │ │ ├── XLine/ │ │ │ │ ├── XLineDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── XLine.js.example │ │ │ │ └── propDocs.json │ │ │ ├── XTicks/ │ │ │ │ ├── XTicksDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── XTicks.js.example │ │ │ │ └── propDocs.json │ │ │ ├── XYPlot/ │ │ │ │ ├── XYPlotDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── CustomSpacing.js.example │ │ │ │ │ └── XYPlot.js.example │ │ │ │ └── propDocs.json │ │ │ ├── YAxis/ │ │ │ │ ├── YAxisDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── YAxis.js.example │ │ │ │ │ └── YAxisCustomTicks.js.example │ │ │ │ └── propDocs.json │ │ │ ├── YAxisLabels/ │ │ │ │ ├── YAxisLabelsDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── YAxisLabels.js.example │ │ │ │ └── propDocs.json │ │ │ ├── YAxisTitle/ │ │ │ │ ├── YAxisTitleDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── YAxisTitle.js.example │ │ │ │ │ └── YAxisTitleAll.js.example │ │ │ │ └── propDocs.json │ │ │ ├── YGrid/ │ │ │ │ ├── YGridDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── YGrid.js.example │ │ │ │ └── propDocs.json │ │ │ ├── YLine/ │ │ │ │ ├── YLineDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── YLine.js.example │ │ │ │ └── propDocs.json │ │ │ ├── YTicks/ │ │ │ │ ├── YTicksDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ └── YTicks.js.example │ │ │ │ └── propDocs.json │ │ │ ├── ZoomContainer/ │ │ │ │ ├── ZoomContainerDocs.js │ │ │ │ ├── examples/ │ │ │ │ │ ├── ZoomContainer.js.example │ │ │ │ │ └── ZoomContainerControlled.js.example │ │ │ │ └── propDocs.json │ │ │ └── index.js │ │ ├── index_html.ejs │ │ ├── lessons/ │ │ │ ├── GettersAndAccessors/ │ │ │ │ ├── GettersAndAccessorsLesson.js │ │ │ │ └── examples/ │ │ │ │ ├── GettersAndAccessors.js.example │ │ │ │ └── GraphingCalculator.js.example │ │ │ ├── Interaction/ │ │ │ │ ├── InteractionLesson.js │ │ │ │ └── examples/ │ │ │ │ └── Interaction.js.example │ │ │ ├── QuickStart/ │ │ │ │ ├── QuickStartLesson.js │ │ │ │ └── examples/ │ │ │ │ └── QuickStart.js.example │ │ │ ├── XYPlots/ │ │ │ │ ├── XYPlotsLesson.js │ │ │ │ └── examples/ │ │ │ │ ├── LineChart.js.example │ │ │ │ ├── LineChartWithAxis.js.example │ │ │ │ └── MultiChart.js.example │ │ │ └── index.js │ │ ├── main.js │ │ └── templates/ │ │ ├── ComponentDocsPage.js.template │ │ ├── ComponentExample.js.template │ │ └── Lesson.js.template │ └── styles/ │ └── main.less ├── index.html ├── jest.config.js ├── package.json ├── prettier.config.js ├── scripts/ │ ├── clean.js │ ├── makeDocs.js │ ├── makeLesson.js │ └── utils.js ├── src/ │ ├── AreaBarChart.js │ ├── AreaChart.js │ ├── AreaHeatmap.js │ ├── AriaLabelContainer.js │ ├── Bar.js │ ├── BarChart.js │ ├── ColorHeatmap.js │ ├── FunnelChart.js │ ├── Histogram.js │ ├── KernelDensityEstimation.js │ ├── LineChart.js │ ├── MarkerLineChart.js │ ├── MeasuredValueLabel.js │ ├── PieChart.js │ ├── RangeBarChart.js │ ├── RangeRect.js │ ├── SankeyDiagram.js │ ├── ScatterPlot.js │ ├── TreeMap.js │ ├── TreeMapNode.js │ ├── TreeMapNodeLabel.js │ ├── XAxis.js │ ├── XAxisLabels.js │ ├── XAxisTitle.js │ ├── XGrid.js │ ├── XLine.js │ ├── XTicks.js │ ├── XYPlot.js │ ├── YAxis.js │ ├── YAxisLabels.js │ ├── YAxisTitle.js │ ├── YGrid.js │ ├── YLine.js │ ├── YTicks.js │ ├── ZoomContainer.js │ ├── index.js │ ├── util.js │ └── utils/ │ ├── Axis.js │ ├── CustomPropTypes.js │ ├── Data.js │ ├── Label.js │ ├── Margin.js │ ├── Scale.js │ ├── depthEqual.js │ ├── measureText.js │ ├── resolveXYScales.js │ ├── shallowEqual.js │ └── xyPropsEqual.js ├── styles/ │ └── charts.less ├── tests/ │ ├── browser/ │ │ ├── index.js │ │ ├── index_html.ejs │ │ ├── spec/ │ │ │ ├── XAxis.spec.js │ │ │ ├── XAxisLabels.spec.js │ │ │ ├── XAxisTitle.spec.js │ │ │ ├── YAxis.spec.js │ │ │ ├── YAxisLabels.spec.js │ │ │ └── YAxisTitle.spec.js │ │ └── webpack.config.test.js │ └── jsdom/ │ ├── setup.js │ ├── spec/ │ │ ├── AreaBarChart.spec.js │ │ ├── AreaChart.spec.js │ │ ├── AreaHeatmap.spec.js │ │ ├── AriaLabelContainer.spec.js │ │ ├── Bar.spec.js │ │ ├── BarChart.spec.js │ │ ├── ColorHeatmap.spec.js │ │ ├── FunnelChart.spec.js │ │ ├── Histogram.spec.js │ │ ├── LineChart.spec.js │ │ ├── MarkerLineChart.spec.js │ │ ├── PieChart.spec.js │ │ ├── RangeBarChart.spec.js │ │ ├── RangeRect.spec.js │ │ ├── SankeyDiagram.spec.js │ │ ├── ScatterPlot.spec.js │ │ ├── TreeMap.spec.js │ │ ├── XGrid.spec.js │ │ ├── XLine.spec.js │ │ ├── XTicks.spec.js │ │ ├── XYPlot.spec.js │ │ ├── YGrid.spec.js │ │ ├── YLine.spec.js │ │ ├── YTicks.spec.js │ │ ├── ZoomContainer.spec.js │ │ ├── resolveXYScales.spec.js │ │ ├── utils.Axis.spec.js │ │ ├── utils.Data.spec.js │ │ ├── utils.Label.spec.js │ │ ├── utils.Margin.spec.js │ │ ├── utils.Scale.spec.js │ │ └── utils.measureText.spec.js │ └── utils.js ├── webpack.config.base.js └── webpack.config.build.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .eslintignore ================================================ # Ignore charts that are still experimental /src/AreaHeatmap.js /src/KernelDensityEstimation.js # Ignore shallowEqual /src/utils/shallowEqual.js # Ignore lessons /docs/src/lessons # Ignore docs build /docs/build/* ================================================ FILE: .eslintrc.js ================================================ module.exports = { settings: { react: { version: 'detect', }, }, parser: '@babel/eslint-parser', extends: [ '@spotify/eslint-config-react', '@spotify/eslint-config-base', 'prettier', 'plugin:chai-friendly/recommended', ], env: { jest: true }, plugins: ['jest', 'chai-friendly'], rules: { 'consistent-return': 'off', 'no-nested-ternary': 'off', 'no-console': ['error', { allow: ['warn', 'error'] }], 'jsx-a11y/click-events-have-key-events': 'off', 'jsx-a11y/no-noninteractive-element-interactions': 'off', 'no-restricted-imports': ['error', 'd3'], }, }; ================================================ FILE: .github/dependabot.yml ================================================ # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates version: 2 updates: - package-ecosystem: "npm" directory: "/" # Location of package manifests open-pull-requests-limit: 10 schedule: interval: "daily" ================================================ FILE: .github/workflows/node.js.yml ================================================ # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions name: Node.js CI on: push: branches: [master] pull_request: branches: [master] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [12.x, 14.x, 16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - run: npm run build --if-present - run: npm test ================================================ FILE: .gitignore ================================================ node_modules .idea/ *.sublime-* .DS_Store Thumbs.db npm-debug.log /coverage ================================================ FILE: .npmrc ================================================ registry= https://registry.npmjs.org/ ================================================ FILE: .prettierignore ================================================ # node modules /node_modules/ # docs build /docs/build/* ================================================ FILE: .travis.yml ================================================ language: node_js node_js: - '12' - '14' env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 cache: npm: false before_install: - npm i -g npm@latest install: - npm ci ================================================ FILE: CHANGELOG.md ================================================ ## 6.1.1 (2022-11-18) - [#443](https://github.com/spotify/reactochart/pull/443) Bump d3-color from 3.0.1 to 3.1.0 ## 6.1.0 (2022-01-18) - [#294](https://github.com/spotify/reactochart/pull/294) Accessible Interface for Line/Area Charts ## 6.0.0 (2021-09-10) - [#307](https://github.com/spotify/reactochart/pull/307) Enable support for d3 7, and still support 6 - [#308](https://github.com/spotify/reactochart/pull/308) Enable GitHub Actions for CI ## 5.0.0 (2021-05-20) - Remove support for Node 8-10. Support 12 and up. - Some security patches to dependencies. ## 4.0.0 (2021-01-07) - [#276](https://github.com/spotify/reactochart/pull/276) Upgrade D3 to 6.3.1. ## 3.2.2 (2020-12-10) - [#273](https://github.com/spotify/reactochart/pull/273) Add `aria-hidden="true"` attributes to XYPlot components. ## 3.2.1 (2020-12-04) - [#271](https://github.com/spotify/reactochart/pull/271) Fix YAxisLabels formatting example. (Thanks @mbonaci) ## 3.2.0 (2020-10-30) - [#269](https://github.com/spotify/reactochart/pull/269) add nodeSort and linkSort hooks to SankeyDiagram. Remove deprecated refs definition using strings ## 3.1.0 (2020-07-09) - [#264](https://github.com/spotify/reactochart/pull/264) Added noLabelOverhang prop to XAxisLabels ## 3.0.3 (2020-06-18) - [#257](https://github.com/spotify/reactochart/pull/257) Added onClick event handler for Bar, BarChart, RangeBarChart, and PieChart - Thanks @jrydberg! - [#258](https://github.com/spotify/reactochart/pull/258) Updated docs and added testing for onClick event handlers - Update dependencies via Greenkeeper ## 3.0.2 (2020-02-25) - [#234](https://github.com/spotify/reactochart/pull/234) Remove deprecated React lifecycle hooks - Update dependencies via Greenkeeper ## 3.0.1 (2019-12-18) - [#211](https://github.com/spotify/reactochart/pull/211) Fix XYPlots lesson in docs - [#212](https://github.com/spotify/reactochart/pull/212) Add prettierignore ## 3.0.0 (2019-12-16) - [#187](https://github.com/spotify/reactochart/pull/187) Dependency upgrades - [#194](https://github.com/spotify/reactochart/pull/194) Addition of pre-commit hooks - [#201](https://github.com/spotify/reactochart/pull/201) PieChart updates - [#207](https://github.com/spotify/reactochart/pull/207) Documentation updates ## 2.0.2 (2019-11-04) - [#182](https://github.com/spotify/reactochart/pull/182) Decorate XYPlot onMouseEnter and onMouseLeave events - thanks @tanayv! - [#184](https://github.com/spotify/reactochart/pull/184) Fix warnings in tests and add SankeyNodeTerminal tests ## 2.0.1 (2019-09-03) - [#179](https://github.com/spotify/reactochart/pull/179) Fix children proptype for YAxisTitle ## 2.0.0 (2019-08-30) - [#173](https://github.com/spotify/reactochart/pull/173) Migrate to Spotify web scripts - thanks @arjbholu! - [#171](https://github.com/spotify/reactochart/pull/171) Update format examples - [#170](https://github.com/spotify/reactochart/pull/170) Namespace XYPlot props - [#169](https://github.com/spotify/reactochart/pull/169) Deprecate numeral.js in favor of d3.format - thanks @acmei! - [#164](https://github.com/spotify/reactochart/pull/164) Replace lodash functions with native JS versions - [#163](https://github.com/spotify/reactochart/pull/163) Modularize lodash ## 1.11.0 (2019-07-09) - [#155](https://github.com/spotify/reactochart/pull/155) Update d3 to v5 - thanks @ekh64! - [#152](https://github.com/spotify/reactochart/pull/152) Add limit props to set height and width of XLine and YLine - thanks @tanayv! - [#153](https://github.com/spotify/reactochart/pull/153) Upgrade to babel 7 and css loader v3 ## 1.10.2 (2019-04-29) - [#150](https://github.com/spotify/reactochart/pull/150) Fix invert point scale logic to get option closest to mouse pointer ## 1.10.1 (2018-12-21) - [#146](https://github.com/spotify/reactochart/pull/146) Fix labelStyle accessor argument - [#145](https://github.com/spotify/reactochart/pull/145) Fix minor vulnerabilities ## 1.10.0 (2018-12-21) - [#144](https://github.com/spotify/reactochart/pull/144) Support for pie chart slice labels - thanks @joeporpeglia! ## 1.9.0 (2018-12-21) - [#142](https://github.com/spotify/reactochart/pull/142) Update logic for getting invertPointScale & add click handlers to labels themselves ## 1.8.0 (2018-12-21) - [#139](https://github.com/spotify/reactochart/pull/139) Update x and y axis to have onMouseEnterAxis, onMouseLeaveAxis, onMouseMoveAxis and onMouseClickAxis ## 1.7.0 (2018-12-21) [Warning]: To those using the recent labelStyle function accessor prop, the function signature now returns an object containing { text, x, y, height, value } as opposed to just the text - [#136](https://github.com/spotify/reactochart/pull/136) Update labelStyle accessor to return more useful label information. Upgrade webpack-dev-server to fix security issue. ## 1.6.0 (2018-12-21) - [#134](https://github.com/spotify/reactochart/pull/134) Make labelStyle a function accessor (still supports object). Fixes ZoomContainer dependencies issue. ## 1.5.1 (2018-12-19) - [#132](https://github.com/spotify/reactochart/pull/132) Fix peer dependencies - thanks @ekh64! ## 1.5.0 (2018-12-11) - [#129](https://github.com/spotify/reactochart/pull/129) Upgrade webpack and resolve security dev dependencies - [#130](https://github.com/spotify/reactochart/pull/130) Upgrade to react v16 and update peer dependencies ## 1.4.1 (2018-12-04) - [#127](https://github.com/spotify/reactochart/pull/127) Import measure-text source code to fix [security vulnerability](https://github.com/FormidableLabs/measure-text/issues/5) and [dev dependencies issue](https://github.com/spotify/reactochart/issues/123) ## 1.4.0 (2018-12-02) - [#125](https://github.com/spotify/reactochart/pull/125) Omit certain XYPlot props from overriding children props downstream. Added xyPlotStyle prop. ## 1.3.1 (2018-09-12) - [#117](https://github.com/spotify/reactochart/pull/117) Add style prop to XYPlot component - [#115](https://github.com/spotify/reactochart/pull/115) Update documentation - [#121](https://github.com/spotify/reactochart/pull/121) xyPlotClassName omission fix - thanks @rpjs! ## 1.3.0 (2018-09-12) - [#114](https://github.com/spotify/reactochart/pull/114) Add optional label placement to barchart - thanks @dgdblank! - [#111](https://github.com/spotify/reactochart/pull/111) Rebuild docs for gh-pages branch - [#109](https://github.com/spotify/reactochart/pull/109) Adds curve prop to AreaChart for custom curves - thanks @dgdblank! ## 1.2.0 (2018-08-29) - [#106](https://github.com/spotify/reactochart/pull/106) Adds showLine and lineStyle prop to X and Y Axis. Also adds default styling to provide X and Y Axis line with stroke color ## 1.1.0 (2018-08-28) - [#99](https://github.com/spotify/reactochart/pull/99) Adds d3 line generator and curve prop to LineChart - thanks @scottsheffield! - [#102](https://github.com/spotify/reactochart/pull/102) Adds offset prop to XAxis and YAxis labels - [#103](https://github.com/spotify/reactochart/pull/103) Fix issue with doc generation with TreeMap ## 1.0.1 (2018-07-06) - [#94](https://github.com/spotify/reactochart/pull/94) Minor Bug Fixes - Update propType `pointStyle` for ScatterPlot to be of type object or accessor func - Update propType `format` XAxis and YAxis (which is passed to X and YAxisLabel) to be of type string or accessor function - Update TreeMap and SankeyDiagram docs ## 1.0.0 (2018-06-28) Although this is a major release, there aren't many breaking changes that weren't noted in previous releases. Additions include more tests, clean up of component API docs, minor bug fixes and feature adds and better consistency for chart props. #### Breaking Changes - Per [#63](https://github.com/spotify/reactochart/pull/63) Include css in root, the stylesheet has been moved to ``` import "reactochart/styles.css" ``` - [#85](https://github.com/spotify/reactochart/pull/80) PieChart - Deprecates markerLineClass in favor of markerLineClassName ## 0.4.8 (2018-06-08) - [#80](https://github.com/spotify/reactochart/pull/80) Upgrade mocha to v4.0.1 to fix [growl dependency](https://github.com/tj/node-growl/pull/68) ## 0.4.7 (2018-05-31) - [#73](https://github.com/spotify/reactochart/pull/73) Add step labeling to sankey ## 0.4.6 (2018-05-21) - [#63](https://github.com/spotify/reactochart/pull/63) Include css in root - [#65](https://github.com/spotify/reactochart/pull/65) Test for AreaBarChart - [#66](https://github.com/spotify/reactochart/pull/66) Namespace CSS - [#67](https://github.com/spotify/reactochart/pull/67) Add disableMouseWheelZoom to ZoomContainer ## 0.4.5 (2018-04-18) - [#56](https://github.com/spotify/reactochart/pull/56) Add `react-docgen` to devDependencies. ## 0.4.4 (2018-04-10) - [#55](https://github.com/spotify/reactochart/pull/55) Add `controlled` prop to `ZoomContainer` so it can be controlled by props instead of internal state. ## 0.4.3 (2018-03-12) - [#54](https://github.com/spotify/reactochart/pull/54) Fix for non-string `SankeyDiagram` `nodeLabelText` prop (see 0.4.2 notes) - now rendered as SVG instead of HTML wrapped in `` ## 0.4.2 (2018-02-27) - Added CHANGELOG file - [#52](https://github.com/spotify/reactochart/pull/52) New `SankeyDiagram` features - `marginTop`, `marginBottom`, marginLeft`,`marginRight` props for leaving internal empty space around the diagram - `nodeLabelText` prop may now be a function which returns an arbitrary HTML component (instead of only a string) - [#53](https://github.com/spotify/reactochart/pull/53) Documentation typo fixes ## 0.4.1 (2018-01-26) - [#49](https://github.com/spotify/reactochart/pull/49) New `SankeyDiagram` prop `shouldClone`, to control whether data should be cloned or mutated in place ## 0.4.0 (2018-01-03) - [#47](https://github.com/spotify/reactochart/issues/47) API Changes - see ticket for detailed discussion - `getThing` getter props renamed to just `thing` - now accept either a constant value or accessor function (when possible) - Deprecated string/number/null shorthand for getter props - Deprecated combined `thing={{x:..., y:...}}` props in favor of separate `xThing` and `yThing` props - Deprecated combined `thing={{top:..., bottom:..., left:..., right:...}}` props in favor of separate `thingTop`, `thingBottom`, `thingLeft`, `thingRight` props - New chart component: `SankeyDiagram` - Improved documentation and test coverage - Added markdown support in docs (including for component prop docs) - Removed compiled library files from repo - build library on `prepublish` instead ## 0.3.1 (2017-11-15) - Improved test coverage & docs for `Bar` and `BarChart` components - Fixed incorrect `react` peerDependency version - Added missing `sinon` devDependency - Added `yarn` lock file ## 0.3.0 (2017-08-10) - New documentation, including tutorials and interactive examples - New chart components: `ColorHeatmap`, `FunnelChart` - Unified branches from several contributors (see [#45](https://github.com/spotify/reactochart/pull/45) for details) - Added `className` and `style` props to `AreaHeatmap` - Added `style` prop to `LineChart` - Added `pointStyle` prop to `ScatterPlot` - Changed `MarkerLineChart` to use `horizontal` prop, rather than `orientation`, for consistency - Fixed missing import in `Scale` - Fixed incorrect propTypes in `ScatterPlot` and `YAxis` ================================================ FILE: CODEOWNERS ================================================ # This is a comment. # Each line is a file pattern followed by one or more owners. # These owners will be the default owners for everything in # the repo. Unless a later match takes precedence, # These users will be requested for review when someone opens a pull request. * @mawa-kake @ekh64 ================================================ FILE: LICENSE ================================================ Copyright 2015-2016 Spotify AB. All rights reserved. The contents of this file are licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ================================================ FILE: NOTICE ================================================ Reactochart Copyright 2018 Spotify AB ================================================ FILE: README.md ================================================

version build

Reactochart

# Overview [![Greenkeeper badge](https://badges.greenkeeper.io/spotify/reactochart.svg)](https://greenkeeper.io/) Reactochart is a library of React components for creating data visualization charts and graphs. Components include **line chart**, **bar chart**, **area chart**, **heat maps**, **scatterplot**, **histogram**, **pie chart**, **sankey diagram**, and **tree map**. # Getting started 1. Install reactochart using npm. ``` npm i reactochart --save ``` 2. Then you can import an individual Reactochart component: ```jsx import LineChart from 'reactochart/LineChart'; ``` 3. If you prefer, you can import all of Reactochart at once, though this may hinder some optimizations, such as webpack tree-shaking: ```jsx import { XYPlot, XAxis, YAxis, LineChart } from 'reactochart'; ``` or ```jsx import * as Reactochart from 'reactochart'; ``` 4. Import reactochart's base styles ```jsx import 'reactochart/styles.css'; ``` 5. Build your first chart and see it rendered! For example, the following code snippet: ```jsx import XYPlot from 'reactochart/XYPlot'; import XAxis from 'reactochart/XAxis'; import YAxis from 'reactochart/YAxis'; import LineChart from 'reactochart/LineChart'; import 'reactochart/styles.css'; const MyFirstLineChart = props => ( i + 1)} x={d => d} y={d => Math.sin(d * 0.1)} /> ); ``` results in this: # Live Examples The examples contain more details about each component and the prop-types it accepts. To run the examples locally and play with the different types of charts in a live code editor: 1. Clone this repo and `cd` to the newly-created directory 2. Run `npm run serve` in your terminal (note: if you're running Python in v3 or higher you'll need to run `python -m http.server`) 3. Go to [http://localhost:8000](http://localhost:8000) # Reactochart Components ## Chart Foundations ### XY Plot - [XYPlot](http://spotify.github.io/reactochart/docs/build/#/xy-plot) ### XY Axis Components - [XAxis](http://spotify.github.io/reactochart/docs/build/#/x-axis), [YAxis](http://spotify.github.io/reactochart/docs/build/#/y-axis) - [XAxisTitle](http://spotify.github.io/reactochart/docs/build/#/x-axis-title), [YAxisTitle](http://spotify.github.io/reactochart/docs/build/#/y-axis-title) - [XAxisLabels](http://spotify.github.io/reactochart/docs/build/#/x-axis-labels), [YAxisLabels](http://spotify.github.io/reactochart/docs/build/#/y-axis-labels) - [XTicks](http://spotify.github.io/reactochart/docs/build/#/x-ticks), [YTicks](http://spotify.github.io/reactochart/docs/build/#/y-ticks) - [XGrid](http://spotify.github.io/reactochart/docs/build/#/x-grid), [YGrid](http://spotify.github.io/reactochart/docs/build/#/y-grid) ## Chart Types ### Non-XY charts - [PieChart](http://spotify.github.io/reactochart/docs/build/#/pie-chart) - [TreeMap](http://spotify.github.io/reactochart/docs/build/#/tree-map) - [SankeyDiagram](http://spotify.github.io/reactochart/docs/build/#/sankey) ### XY charts - [AreaBarChart](http://spotify.github.io/reactochart/docs/build/#/area-bar-chart) - [AreaChart](http://spotify.github.io/reactochart/docs/build/#/area-chart) - [AreaHeatmap](http://spotify.github.io/reactochart/docs/build/#/area-heatmap) - [BarChart](http://spotify.github.io/reactochart/docs/build/#/bar-chart) - [ColorHeatmap](http://spotify.github.io/reactochart/docs/build/#/color-heatmap) - [FunnelChart](http://spotify.github.io/reactochart/docs/build/#/funnel-chart) - [Histogram](http://spotify.github.io/reactochart/docs/build/#/histogram) - [LineChart](http://spotify.github.io/reactochart/docs/build/#/line-chart) - [MarkerLineChart](http://spotify.github.io/reactochart/docs/build/#/marker-line-chart) - [RangeBarChart](http://spotify.github.io/reactochart/docs/build/#/range-bar-chart) - [ScatterPlot](http://spotify.github.io/reactochart/docs/build/#/scatter-plot) ### XY datum components (used by charts/axes) - [Bar](http://spotify.github.io/reactochart/docs/build/#/bar) - [RangeRect](http://spotify.github.io/reactochart/docs/build/#/range-rect) - [XLine](http://spotify.github.io/reactochart/docs/build/#/x-line), [YLine](http://spotify.github.io/reactochart/docs/build/#/y-line) ### Other - [ZoomContainer](http://spotify.github.io/reactochart/docs/build/#/zoom-container) # Development If you'd like to contribute to the development this project, first fork & clone this repo, and then follow these steps: ### Global dependencies - This project uses NPM to manage dependencies and run scripts. Run `npm -v` to check if you already have it installed. If you don't have it, NPM is packaged with Node.js - download and run the [install package located on nodejs.org](https://nodejs.org/) to install. - Babel is used to transpile ES6+ code to ES5 syntax. Install by running `npm install --global babel` - Webpack is used to bundle the JS & styles for the examples. Install by running `npm install --global webpack` ### Project dependencies - Run `npm install` in the project root directory. This will install all of the project dependencies into the `node_modules` directory. ### Development process - Run `npm run dev` to run the development server (webpack-dev-server), which will serve a live development version of the examples at [localhost:9876](http://localhost:9876). - Make changes to the library code in the `src` directory, and/or changes to the examples in the `examples/src` directory. - If you'd like to make changes or add further component documentation, follow the example on [`react-docgen`](https://github.com/reactjs/react-docgen#example). - Once you're happy with your library and/or documentation changes, run `npm run docs`. This allows the documentation build to run with your updated `src` code. `git add` and `git commit` the updated build. - `git push` to your forked version of the repo. - Open a Github pull request with your changes against `master`. 🎉 ### NPM Link If you have an app that depends on reactochart and you want to develop locally, follow the following steps: 1. In the folder for this repo, run `npm build` and then `npm link` 2. In your app folder, run `npm link reactochart`. If you're using webpack, then you also may need the following config: ```json { "resolve": { "symlinks": true, "alias": { "react": path.resolve("./node_modules/react"), "react-dom": path.resolve("./node_modules/react-dom") } } } ``` ### Notes - **Do not make any changes in the `lib` or `examples/build` directories**, as these directories are destroyed and regenerated on each build. - The development server uses [react-hot-loader](https://github.com/gaearon/react-hot-loader) to automatically "hot reload" changes to React components, so refreshing your web browser is not necessary. ## Code of Conduct This project adheres to the [Open Code of Conduct][code-of-conduct]. By participating, you are expected to honor this code. [code-of-conduct]: https://github.com/spotify/code-of-conduct/blob/master/code-of-conduct.md ================================================ FILE: babel.config.js ================================================ module.exports = { presets: [ [ '@babel/preset-env', { targets: { browsers: '> 3%', }, }, ], '@babel/preset-react', '@babel/preset-flow', ], plugins: [ '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread', ], env: { production: { plugins: ['lodash'], }, test: { plugins: ['babel-plugin-rewire'], }, }, }; ================================================ FILE: docs/build/bundle.6ab8ef2cbcf9e159df8e.js ================================================ /*! For license information please see bundle.6ab8ef2cbcf9e159df8e.js.LICENSE.txt */ (()=>{var __webpack_modules__={90478:(e,t,n)=>{"use strict";var r=n(62854),i=Object.prototype.hasOwnProperty,o={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function a(e){var t;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(t in o)i.call(o,t)&&void 0!==e.properties[t]&&(s(e,o[t],e.properties[t]),delete e.properties[t])}function s(e,t,n){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var i=r+t+": "+n+";";e.properties.style=i}e.exports=function(e){return r(e,"element",a),e}},7874:e=>{"use strict";const t=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}e.exports=function(e,r){if(n(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;const i=Object.keys(e),o=Object.keys(r);if(i.length!==o.length)return!1;for(let o=0;o{"use strict";if(n(81934),n(95654),n(7694),n.g._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");function r(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}n.g._babelPolyfill=!0,r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&r(Array,e,Function.call.bind([][e]))}))},95654:function(e,t,n){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",l=t.regeneratorRuntime;if(l)e.exports=l;else{(l=t.regeneratorRuntime=e.exports).wrap=b;var c="suspendedStart",f="suspendedYield",p="executing",d="completed",h={},m={};m[a]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(M([])));v&&v!==r&&i.call(v,a)&&(m=v);var g=E.prototype=_.prototype=Object.create(m);w.prototype=g.constructor=E,E.constructor=w,E[u]=w.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(g),e},l.awrap=function(e){return{__await:e}},S(k.prototype),k.prototype[s]=function(){return this},l.AsyncIterator=k,l.async=function(e,t,n,r){var i=new k(b(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(g),g[u]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=M,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:M(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),h}}}function b(e,t,n,r){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),a=new D(r||[]);return o._invoke=function(e,t,n){var r=c;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=x(e,t,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function _(){}function w(){}function E(){}function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e){function n(t,r,o,a){var s=x(e[t],e,r);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&i.call(l,"__await")?Promise.resolve(l.__await).then((function(e){n("next",e,o,a)}),(function(e){n("throw",e,o,a)})):Promise.resolve(l).then((function(e){u.value=e,o(u)}),a)}a(s.arg)}var r;"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=function(e,t){function i(){return new Promise((function(r,i){n(e,t,r,i)}))}return r=r?r.then(i,i):i()}}function A(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,A(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=x(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function M(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=n.length)break;s=n[a++]}else{if((a=n.next()).done)break;s=a.value}var u=s;if(e[u]!==t[u])return!1}return!0},t.appendToMemberExpression=function(e,t,n){return e.object=g.memberExpression(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e},t.prependToMemberExpression=function(e,t){return e.object=g.memberExpression(t,e.object),e},t.ensureBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";return e[t]=g.toBlock(e[t],e)},t.clone=k,t.cloneWithoutLoc=function(e){var t=k(e);return delete t.loc,t},t.cloneDeep=function(e){if(!e)return e;var t={};for(var n in e)if("_"!==n[0]){var r=e[n];r&&(r.type?r=g.cloneDeep(r):Array.isArray(r)&&(r=r.map(g.cloneDeep))),t[n]=r}return t},t.buildMatchMemberExpression=function(e,t){var n=e.split(".");return function(e){if(!g.isMemberExpression(e))return!1;for(var r=[e],i=0;r.length;){var o=r.shift();if(t&&i===n.length)return!0;if(g.isIdentifier(o)){if(n[i]!==o.name)return!1}else{if(!g.isStringLiteral(o)){if(g.isMemberExpression(o)){if(o.computed&&!g.isStringLiteral(o.property))return!1;r.push(o.object),r.push(o.property);continue}return!1}if(n[i]!==o.value)return!1}if(++i>n.length)return!1}return!0}},t.removeComments=function(e){var t=g.COMMENT_KEYS,n=Array.isArray(t),r=0;for(t=n?t:(0,i.default)(t);;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}delete e[o]}return e},t.inheritsComments=function(e,t){return A(e,t),C(e,t),T(e,t),e},t.inheritTrailingComments=A,t.inheritLeadingComments=C,t.inheritInnerComments=T,t.inherits=function(e,t){if(!e||!t)return e;var n=g.INHERIT_KEYS.optional,r=Array.isArray(n),o=0;for(n=r?n:(0,i.default)(n);;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;null==e[s]&&(e[s]=t[s])}for(var u in t)"_"===u[0]&&(e[u]=t[u]);var l=g.INHERIT_KEYS.force,c=Array.isArray(l),f=0;for(l=c?l:(0,i.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;e[d]=t[d]}return g.inheritsComments(e,t),e},t.assertNode=function(e){if(!M(e))throw new TypeError("Not a valid node "+(e&&e.type))},t.isNode=M,t.traverseFast=P,t.removeProperties=N,t.removePropertiesDeep=function(e,t){return P(e,N,t),e};var u=n(226);Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return u.getBindingIdentifiers}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return u.getOuterBindingIdentifiers}});var l=n(395);Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return l.isBinding}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return l.isReferenced}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return l.isValidIdentifier}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return l.isLet}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return l.isBlockScoped}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return l.isVar}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return l.isSpecifierDefault}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return l.isScope}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return l.isImmutable}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return l.isNodesEquivalent}});var c=n(385);Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return c.toComputedKey}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return c.toSequenceExpression}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return c.toKeyAlias}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return c.toIdentifier}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return c.toBindingIdentifierName}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return c.toStatement}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return c.toExpression}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return c.toBlock}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return c.valueToNode}});var f=n(393);Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return f.createUnionTypeAnnotation}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return f.removeTypeDuplicates}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return f.createTypeAnnotationBasedOnTypeof}});var p=v(n(624)),d=v(n(109)),h=v(n(600));n(390);var m=n(26),y=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(394));function v(e){return e&&e.__esModule?e:{default:e}}var g=t;function b(e){var t=g["is"+e];t||(t=g["is"+e]=function(t,n){return g.is(e,t,n)}),g["assert"+e]=function(n,r){if(!t(n,r=r||{}))throw new Error("Expected type "+(0,a.default)(e)+" with option "+(0,a.default)(r))}}for(var x in t.VISITOR_KEYS=m.VISITOR_KEYS,t.ALIAS_KEYS=m.ALIAS_KEYS,t.NODE_FIELDS=m.NODE_FIELDS,t.BUILDER_KEYS=m.BUILDER_KEYS,t.DEPRECATED_KEYS=m.DEPRECATED_KEYS,t.react=y,g.VISITOR_KEYS)b(x);function _(e,t){if(e===t)return!0;if(g.ALIAS_KEYS[t])return!1;var n=g.FLIPPED_ALIAS_KEYS[t];if(n){if(n[0]===e)return!0;var r=n,o=Array.isArray(r),a=0;for(r=o?r:(0,i.default)(r);;){var s;if(o){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}if(e===s)return!0}}return!1}g.FLIPPED_ALIAS_KEYS={},(0,o.default)(g.ALIAS_KEYS).forEach((function(e){g.ALIAS_KEYS[e].forEach((function(t){(g.FLIPPED_ALIAS_KEYS[t]=g.FLIPPED_ALIAS_KEYS[t]||[]).push(e)}))})),(0,o.default)(g.FLIPPED_ALIAS_KEYS).forEach((function(e){g[e.toUpperCase()+"_TYPES"]=g.FLIPPED_ALIAS_KEYS[e],b(e)})),t.TYPES=(0,o.default)(g.VISITOR_KEYS).concat((0,o.default)(g.FLIPPED_ALIAS_KEYS)).concat((0,o.default)(g.DEPRECATED_KEYS)),(0,o.default)(g.BUILDER_KEYS).forEach((function(e){var t=g.BUILDER_KEYS[e];function n(){if(arguments.length>t.length)throw new Error("t."+e+": Too many arguments passed. Received "+arguments.length+" but can receive no more than "+t.length);var n={};n.type=e;var r=0,o=t,a=Array.isArray(o),s=0;for(o=a?o:(0,i.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var l=u,c=g.NODE_FIELDS[e][l],f=arguments[r++];void 0===f&&(f=(0,d.default)(c.default)),n[l]=f}for(var p in n)S(n,p,n[p]);return n}g[e]=n,g[e[0].toLowerCase()+e.slice(1)]=n}));var w=function(e){var t=g.DEPRECATED_KEYS[e];function n(n){return function(){return console.trace("The node type "+e+" has been renamed to "+t),n.apply(this,arguments)}}g[e]=g[e[0].toLowerCase()+e.slice(1)]=n(g[t]),g["is"+e]=n(g["is"+t]),g["assert"+e]=n(g["assert"+t])};for(var E in g.DEPRECATED_KEYS)w(E);function S(e,t,n){if(e){var r=g.NODE_FIELDS[e.type];if(r){var i=r[t];i&&i.validate&&(i.optional&&null==n||i.validate(e,t,n))}}}function k(e){if(!e)return e;var t={};for(var n in e)"_"!==n[0]&&(t[n]=e[n]);return t}function A(e,t){D("trailingComments",e,t)}function C(e,t){D("leadingComments",e,t)}function T(e,t){D("innerComments",e,t)}function D(e,t,n){t&&n&&(t[e]=(0,h.default)([].concat(t[e],n[e]).filter(Boolean)))}function M(e){return!(!e||!m.VISITOR_KEYS[e.type])}function P(e,t,n){if(e){var r=g.VISITOR_KEYS[e.type];if(r){t(e,n=n||{});var o=r,a=Array.isArray(o),s=0;for(o=a?o:(0,i.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var l=e[u];if(Array.isArray(l)){var c=l,f=Array.isArray(c),p=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}P(d,t,n)}}else P(l,t,n)}}}}(0,p.default)(g),(0,p.default)(g.VISITOR_KEYS);var O=["tokens","start","end","loc","raw","rawValue"],L=g.COMMENT_KEYS.concat(["comments"]).concat(O);function N(e,t){var n=(t=t||{}).preserveComments?O:L,o=Array.isArray(n),a=0;for(n=o?n:(0,i.default)(n);;){var s;if(o){if(a>=n.length)break;s=n[a++]}else{if((a=n.next()).done)break;s=a.value}var u=s;null!=e[u]&&(e[u]=void 0)}for(var l in e)"_"===l[0]&&null!=e[l]&&(e[l]=void 0);var c=(0,r.default)(e),f=Array.isArray(c),p=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}e[d]=null}}},function(e,t,n){"use strict";e.exports={default:n(404),__esModule:!0}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=f(n(10));t.default=function(e,t){var n=void 0;try{throw new Error}catch(e){e.stack&&(n=e.stack.split("\n").slice(1).join("\n"))}t=(0,o.default)({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,preserveComments:!1},t);var r=function(){var i=void 0;try{i=u.parse(e,t),i=s.default.removeProperties(i,{preserveComments:t.preserveComments}),s.default.cheap(i,(function(e){e[p]=!0}))}catch(e){throw e.stack=e.stack+"from\n"+n,e}return r=function(){return i},i};return function(){for(var e=arguments.length,t=Array(e),n=0;n1?n.body:n.body[0]}var m={noScope:!0,enter:function(e,t){var n=e.node;if(n[d])return e.skip();l.isExpressionStatement(n)&&(n=n.expression);var r=void 0;if(l.isIdentifier(n)&&n[p])if((0,a.default)(t[0],n.name))r=t[0][n.name];else if("$"===n.name[0]){var i=+n.name.slice(1);t[i]&&(r=t[i])}null===r&&e.remove(),r&&(r[d]=!0,e.replaceInline(r))},exit:function(e){var t=e.node;t.loc||s.default.clearNode(t)}};e.exports=t.default},function(e,t){"use strict";var n=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(e,t){"use strict";var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.visitors=t.Hub=t.Scope=t.NodePath=void 0;var r=h(n(2)),i=n(36);Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return h(i).default}});var o=n(134);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return h(o).default}});var a=n(223);Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return h(a).default}}),t.default=m;var s=h(n(367)),u=d(n(384)),l=d(n(20)),c=h(n(111)),f=d(n(1)),p=d(n(88));function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n,r,i){if(e){if(t||(t={}),!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(l.get("traverseNeedsParent",e.type));u.explode(t),m.node(e,t,n,r,i)}}function y(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.visitors=u,m.visitors=u,m.verify=u.verify,m.explode=u.explode,m.NodePath=n(36),m.Scope=n(134),m.Hub=n(223),m.cheap=function(e,t){return f.traverseFast(e,t)},m.node=function(e,t,n,i,o,a){var u=f.VISITOR_KEYS[e.type];if(u){var l=new s.default(n,t,i,o),c=u,p=Array.isArray(c),d=0;for(c=p?c:(0,r.default)(c);;){var h;if(p){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var m=h;if((!a||!a[m])&&l.visit(e,m))return}}},m.clearNode=function(e,t){f.removeProperties(e,t),p.path.delete(e)},m.removeProperties=function(e,t){return f.traverseFast(e,m.clearNode,t),e},m.hasType=function(e,t,n,r){if((0,c.default)(r,e.type))return!1;if(e.type===n)return!0;var i={has:!1,type:n};return m(e,{blacklist:r,enter:y},t,i),i.has},m.clearCache=function(){p.clear()},m.clearCache.clearPath=p.clearPath,m.clearCache.clearScope=p.clearScope,m.copyCache=function(e,t){p.path.has(e)&&p.path.set(t,p.path.get(e))}},function(e,t){"use strict";var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f1)for(var n=1;n=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return(r?"/":"")+(t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"))||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return(e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u1?t-1:0),r=1;r=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;if(a.is(p,o)){s=!0;break}}if(!s)throw new TypeError("Property "+n+" of "+e.type+" expected node to be of a type "+(0,i.default)(t)+" but instead got "+(0,i.default)(o&&o.type))}return o.oneOfNodeTypes=t,o},t.assertNodeOrValueType=function(){for(var e=arguments.length,t=Array(e),n=0;n=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;if(d(o)===p||a.is(p,o)){s=!0;break}}if(!s)throw new TypeError("Property "+n+" of "+e.type+" expected node to be of a type "+(0,i.default)(t)+" but instead got "+(0,i.default)(o&&o.type))}return o.oneOfNodeOrValueTypes=t,o},t.assertValueType=h,t.chain=function(){for(var e=arguments.length,t=Array(e),n=0;n=e.length)break;o=e[i++]}else{if((i=e.next()).done)break;o=i.value}var a=o;a.apply(void 0,arguments)}}return i.chainOf=t,i},t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.inherits&&m[t.inherits]||{};t.fields=t.fields||n.fields||{},t.visitor=t.visitor||n.visitor||[],t.aliases=t.aliases||n.aliases||[],t.builder=t.builder||n.builder||t.visitor||[],t.deprecatedAlias&&(p[t.deprecatedAlias]=e);var i=t.visitor.concat(t.builder),o=Array.isArray(i),a=0;for(i=o?i:(0,r.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var y=s;t.fields[y]=t.fields[y]||{}}for(var v in t.fields){var g=t.fields[v];-1===t.builder.indexOf(v)&&(g.optional=!0),void 0===g.default?g.default=null:g.validate||(g.validate=h(d(g.default)))}u[e]=t.visitor,f[e]=t.builder,c[e]=t.fields,l[e]=t.aliases,m[e]=t};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.VISITOR_KEYS={},l=t.ALIAS_KEYS={},c=t.NODE_FIELDS={},f=t.BUILDER_KEYS={},p=t.DEPRECATED_KEYS={};function d(e){return Array.isArray(e)?"array":null===e?"null":void 0===e||void 0===e?"undefined":(0,o.default)(e)}function h(e){function t(t,n,r){if(d(r)!==e)throw new TypeError("Property "+n+" expected type of "+e+" but got "+d(r))}return t.type=e,t}var m={}},function(e,t){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){"use strict";var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";var r=n(23),i=n(92);e.exports=n(22)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(45),i=n(534),o=n(559),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){"use strict";var r=n(162),i=n(163);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s=o.length)break;d=o[l++]}else{if((l=o.next()).done)break;d=l.value}var h=d;if(h.container===t)return h.plugin}var m;if("object"===(void 0===(m="function"==typeof t?t(c):t)?"undefined":(0,u.default)(m))){var y=new f.default(m,i);return e.memoisedPlugins.push({container:t,plugin:y}),y}throw new TypeError(p.get("pluginNotObject",n,r,void 0===m?"undefined":(0,u.default)(m))+n+r)},e.createBareOptions=function(){var e={};for(var t in b.default){var n=b.default[t];e[t]=(0,v.default)(n.default)}return e},e.normalisePlugin=function(t,n,r,i){if(!((t=t.__esModule?t.default:t)instanceof f.default)){if("function"!=typeof t&&"object"!==(void 0===t?"undefined":(0,u.default)(t)))throw new TypeError(p.get("pluginNotFunction",n,r,void 0===t?"undefined":(0,u.default)(t)));t=e.memoisePluginContainer(t,n,r,i)}return t.init(n,r),t},e.normalisePlugins=function(t,r,i){return i.map((function(i,o){var a=void 0,s=void 0;if(!i)throw new TypeError("Falsy value found in plugins");Array.isArray(i)?(a=i[0],s=i[1]):a=i;var u="string"==typeof a?a:t+"$"+o;if("string"==typeof a){var l=(0,h.default)(a,r);if(!l)throw new ReferenceError(p.get("pluginUnknown",a,t,o,r));a=n(179)(l)}return[a=e.normalisePlugin(a,t,o,u),s]}))},e.prototype.mergeOptions=function(t){var n=this,i=t.options,o=t.extending,s=t.alias,l=t.loc,c=t.dirname;if(s=s||"foreign",i){("object"!==(void 0===i?"undefined":(0,u.default)(i))||Array.isArray(i))&&this.log.error("Invalid options type for "+s,TypeError);var p=(0,y.default)(i,(function(e){if(e instanceof f.default)return e}));for(var h in c=c||r.cwd(),l=l||s,p)if(!b.default[h]&&this.log)if(x.default[h])this.log.error("Using removed Babel 5 option: "+s+"."+h+" - "+x.default[h].message,ReferenceError);else{var m="Unknown option: "+s+"."+h+". Check out http://babeljs.io/docs/usage/options/ for more information about options.";this.log.error(m+"\n\nA common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:\n\nInvalid:\n `{ presets: [{option: value}] }`\nValid:\n `{ presets: [['presetName', {option: value}]] }`\n\nFor more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.",ReferenceError)}(0,d.normaliseOptions)(p),p.plugins&&(p.plugins=e.normalisePlugins(l,c,p.plugins)),p.presets&&(p.passPerPreset?p.presets=this.resolvePresets(p.presets,c,(function(e,t){n.mergeOptions({options:e,extending:e,alias:t,loc:t,dirname:c})})):(this.mergePresets(p.presets,c),delete p.presets)),i===o?(0,a.default)(o,p):(0,g.default)(o||this.options,p)}},e.prototype.mergePresets=function(e,t){var n=this;this.resolvePresets(e,t,(function(e,t){n.mergeOptions({options:e,alias:t,loc:t,dirname:w.default.dirname(t||"")})}))},e.prototype.resolvePresets=function(e,t,r){return e.map((function(e){var a=void 0;if(Array.isArray(e)){if(e.length>2)throw new Error("Unexpected extra options "+(0,o.default)(e.slice(2))+" passed to preset.");var s=e;e=s[0],a=s[1]}var l=void 0;try{if("string"==typeof e){if(!(l=(0,m.default)(e,t)))throw new Error("Couldn't find preset "+(0,o.default)(e)+" relative to directory "+(0,o.default)(t));e=n(179)(l)}if("object"===(void 0===e?"undefined":(0,u.default)(e))&&e.__esModule)if(e.default)e=e.default;else{var f=e;f.__esModule,e=(0,i.default)(f,["__esModule"])}if("object"===(void 0===e?"undefined":(0,u.default)(e))&&e.buildPreset&&(e=e.buildPreset),"function"!=typeof e&&void 0!==a)throw new Error("Options "+(0,o.default)(a)+" passed to "+(l||"a preset")+" which does not accept options.");if("function"==typeof e&&(e=e(c,a,{dirname:t})),"object"!==(void 0===e?"undefined":(0,u.default)(e)))throw new Error("Unsupported preset format: "+e+".");r&&r(e,l)}catch(e){throw l&&(e.message+=" (While processing preset: "+(0,o.default)(l)+")"),e}return e}))},e.prototype.normaliseOptions=function(){var e=this.options;for(var t in b.default){var n=b.default[t],r=e[t];!r&&n.optional||(n.alias?e[n.alias]=e[n.alias]||r:e[t]=r)}},e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,_.default)(e,this.log),n=Array.isArray(t),r=0;for(t=n?t:(0,s.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;this.mergeOptions(o)}return this.normaliseOptions(e),this.options},e}();t.default=k,k.memoisedPlugins=[],e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";e.exports={default:n(405),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(2)),i=h(n(3)),o=d(n(224)),a=h(n(239)),s=h(n(466)),u=h(n(7)),l=h(n(174)),c=h(n(134)),f=d(n(1)),p=n(88);function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}var m=(0,a.default)("babel"),y=function(){function e(t,n){(0,i.default)(this,e),this.parent=n,this.hub=t,this.contexts=[],this.data={},this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.state=null,this.opts=null,this.skipKeys=null,this.parentPath=null,this.context=null,this.container=null,this.listKey=null,this.inList=!1,this.parentKey=null,this.key=null,this.node=null,this.scope=null,this.type=null,this.typeAnnotation=null}return e.get=function(t){var n=t.hub,r=t.parentPath,i=t.parent,o=t.container,a=t.listKey,u=t.key;!n&&r&&(n=r.hub),(0,s.default)(i,"To get a node path the parent needs to exist");var l=o[u],c=p.path.get(i)||[];p.path.has(i)||p.path.set(i,c);for(var f=void 0,d=0;d1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.file.buildCodeFrameError(this.node,e,t)},e.prototype.traverse=function(e,t){(0,u.default)(this.node,e,this.scope,t,this)},e.prototype.mark=function(e,t){this.hub.file.metadata.marked.push({type:e,message:t,loc:this.node.loc})},e.prototype.set=function(e,t){f.validate(this.node,e,t),this.node[e]=t},e.prototype.getPathLocation=function(){var e=[],t=this;do{var n=t.key;t.inList&&(n=t.listKey+"["+n+"]"),e.unshift(n)}while(t=t.parentPath);return e.join(".")},e.prototype.debug=function(e){m.enabled&&m(this.getPathLocation()+" "+this.type+": "+e())},e}();t.default=y,(0,l.default)(y.prototype,n(368)),(0,l.default)(y.prototype,n(374)),(0,l.default)(y.prototype,n(382)),(0,l.default)(y.prototype,n(372)),(0,l.default)(y.prototype,n(371)),(0,l.default)(y.prototype,n(377)),(0,l.default)(y.prototype,n(370)),(0,l.default)(y.prototype,n(381)),(0,l.default)(y.prototype,n(380)),(0,l.default)(y.prototype,n(373)),(0,l.default)(y.prototype,n(369));var v=function(){if(b){if(x>=g.length)return"break";_=g[x++]}else{if((x=g.next()).done)return"break";_=x.value}var e=_,t="is"+e;y.prototype[t]=function(e){return f[t](this.node,e)},y.prototype["assert"+e]=function(n){if(!this[t](n))throw new TypeError("Expected node path of type "+e)}},g=f.TYPES,b=Array.isArray(g),x=0;for(g=b?g:(0,r.default)(g);;){var _;if("break"===v())break}var w=function(e){if("_"===e[0])return"continue";f.TYPES.indexOf(e)<0&&f.TYPES.push(e);var t=o[e];y.prototype["is"+e]=function(e){return t.checkPath(this,e)}};for(var E in o)w(E);e.exports=t.default},function(e,t,n){"use strict";var r=n(142),i=n(140);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(497),i=n(535);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.node,n=e.parent,i=e.scope,a=e.id;if(!t.id){if(!o.isObjectProperty(n)&&!o.isObjectMethod(n,{kind:"method"})||n.computed&&!o.isLiteral(n.key)){if(o.isVariableDeclarator(n)){if(a=n.id,o.isIdentifier(a)){var c=i.parent.getBinding(a.name);if(c&&c.constant&&i.getBinding(a.name)===c)return t.id=a,void(t.id[o.NOT_LOCAL_BINDING]=!0)}}else if(o.isAssignmentExpression(n))a=n.left;else if(!a)return}else a=n.key;var f=void 0;if(a&&o.isLiteral(a))f=a.value;else{if(!a||!o.isIdentifier(a))return;f=a.name}f=o.toBindingIdentifierName(f),(a=o.identifier(f))[o.NOT_LOCAL_BINDING]=!0;var p=function(e,t,n){var r={selfAssignment:!1,selfReference:!1,outerDeclar:n.getBindingIdentifier(t),references:[],name:t},i=n.getOwnBinding(t);return i?"param"===i.kind&&(r.selfReference=!0):(r.outerDeclar||n.hasGlobal(t))&&n.traverse(e,l,r),r}(t,f,i);return function(e,t,n,i){if(e.selfReference){if(!i.hasBinding(n.name)||i.hasGlobal(n.name)){if(!o.isFunction(t))return;var a=s;t.generator&&(a=u);var l=a({FUNCTION:t,FUNCTION_ID:n,FUNCTION_KEY:i.generateUidIdentifier(n.name)}).expression;l.callee._skipModulesRemap=!0;for(var c=l.callee.body.body[0].params,f=0,p=(0,r.default)(t);f0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];(0,a.default)(this,_);var r=(0,s.default)(this,t.call(this));return r.pipeline=n,r.log=new x.default(r,e.filename||"unknown"),r.opts=r.initOptions(e),r.parserOpts={sourceType:r.opts.sourceType,sourceFileName:r.opts.filename,plugins:[]},r.pluginVisitors=[],r.pluginPasses=[],r.buildPluginsForOptions(r.opts),r.opts.passPerPreset&&(r.perPresetOpts=[],r.opts.presets.forEach((function(e){var t=(0,o.default)((0,i.default)(r.opts),e);r.perPresetOpts.push(t),r.buildPluginsForOptions(t)}))),r.metadata={usedHelpers:[],marked:[],modules:{imports:[],exports:{exported:[],specifiers:[]}}},r.dynamicImportTypes={},r.dynamicImportIds={},r.dynamicImports=[],r.declarations={},r.usedHelpers={},r.path=null,r.ast={},r.code="",r.shebang="",r.hub=new h.Hub(r),r}return(0,u.default)(_,t),_.prototype.getMetadata=function(){var e=!1,t=this.ast.program.body,n=Array.isArray(t),i=0;for(t=n?t:(0,r.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}var a=o;if(k.isModuleDeclaration(a)){e=!0;break}}e&&this.path.traverse(c,this)},_.prototype.initOptions=function(e){(e=new p.default(this.log,this.pipeline).init(e)).inputSourceMap&&(e.sourceMaps=!0),e.moduleId&&(e.moduleIds=!0),e.basename=S.default.basename(e.filename,S.default.extname(e.filename)),e.ignore=E.arrayify(e.ignore,E.regexify),e.only&&(e.only=E.arrayify(e.only,E.regexify)),(0,b.default)(e,{moduleRoot:e.sourceRoot}),(0,b.default)(e,{sourceRoot:e.moduleRoot}),(0,b.default)(e,{filenameRelative:e.filename});var t=S.default.basename(e.filenameRelative);return(0,b.default)(e,{sourceFileName:t,sourceMapTarget:t}),e},_.prototype.buildPluginsForOptions=function(e){if(Array.isArray(e.plugins)){var t=[],n=[],i=e.plugins.concat(O),o=Array.isArray(i),a=0;for(i=o?i:(0,r.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s,l=u[0],c=u[1];t.push(l.visitor),n.push(new d.default(this,l,c)),l.manipulateOptions&&l.manipulateOptions(e,this.parserOpts,this)}this.pluginVisitors.push(t),this.pluginPasses.push(n)}},_.prototype.getModuleName=function(){var e=this.opts;if(!e.moduleIds)return null;if(null!=e.moduleId&&!e.getModuleId)return e.moduleId;var t=e.filenameRelative,n="";if(null!=e.moduleRoot&&(n=e.moduleRoot+"/"),!e.filenameRelative)return n+e.filename.replace(/^\//,"");if(null!=e.sourceRoot){var r=new RegExp("^"+e.sourceRoot+"/?");t=t.replace(r,"")}return n=(n+=t=t.replace(/\.(\w*?)$/,"")).replace(/\\/g,"/"),e.getModuleId&&e.getModuleId(n)||n},_.prototype.resolveModuleSource=function(e){var t=this.opts.resolveModuleSource;return t&&(e=t(e,this.opts.filename)),e},_.prototype.addImport=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e+":"+t,i=this.dynamicImportIds[r];if(!i){e=this.resolveModuleSource(e),i=this.dynamicImportIds[r]=this.scope.generateUidIdentifier(n);var o=[];"*"===t?o.push(k.importNamespaceSpecifier(i)):"default"===t?o.push(k.importDefaultSpecifier(i)):o.push(k.importSpecifier(i,k.identifier(t)));var a=k.importDeclaration(o,k.stringLiteral(e));a._blockHoist=3,this.path.unshiftContainer("body",a)}return i},_.prototype.addHelper=function(e){var t=this.declarations[e];if(t)return t;this.usedHelpers[e]||(this.metadata.usedHelpers.push(e),this.usedHelpers[e]=!0);var n=this.get("helperGenerator"),r=this.get("helpersNamespace");if(n){var i=n(e);if(i)return i}else if(r)return k.memberExpression(r,k.identifier(e));var o=(0,l.default)(e),a=this.declarations[e]=this.scope.generateUidIdentifier(e);return k.isFunctionExpression(o)&&!o.id?(o.body._compact=!0,o._generated=!0,o.id=a,o.type="FunctionDeclaration",this.path.unshiftContainer("body",o)):(o._compact=!0,this.scope.push({id:a,init:o,unique:!0})),a},_.prototype.addTemplateObject=function(e,t,n){var r=n.elements.map((function(e){return e.value})),i=e+"_"+n.elements.length+"_"+r.join(","),o=this.declarations[i];if(o)return o;var a=this.declarations[i]=this.scope.generateUidIdentifier("templateObject"),s=this.addHelper(e),u=k.callExpression(s,[t,n]);return u._compact=!0,this.scope.push({id:a,init:u,_blockHoist:1.9}),a},_.prototype.buildCodeFrameError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:SyntaxError,r=e&&(e.loc||e._loc),i=new n(t);return r?i.loc=r.start:((0,m.default)(e,L,this.scope,i),i.message+=" (This is an error on an internal node. Probably an internal error",i.loc&&(i.message+=". Location has been estimated."),i.message+=")"),i},_.prototype.mergeSourceMap=function(e){var t=this.opts.inputSourceMap;if(t){var n=new y.default.SourceMapConsumer(t),r=new y.default.SourceMapConsumer(e),i=new y.default.SourceMapGenerator({file:n.file,sourceRoot:n.sourceRoot}),o=r.sources[0];n.eachMapping((function(e){var t=r.generatedPositionFor({line:e.generatedLine,column:e.generatedColumn,source:o});null!=t.column&&i.addMapping({source:e.source,original:null==e.source?null:{line:e.originalLine,column:e.originalColumn},generated:t})}));var a=i.toJSON();return t.mappings=a.mappings,t}return e},_.prototype.parse=function(t){var r=w.parse,i=this.opts.parserOpts;if(i&&(i=(0,o.default)({},this.parserOpts,i)).parser){if("string"==typeof i.parser){var a=S.default.dirname(this.opts.filename)||e.cwd(),s=(0,A.default)(i.parser,a);if(!s)throw new Error("Couldn't find parser "+i.parser+' with "parse" method relative to directory '+a);r=n(178)(s).parse}else r=i.parser;i.parser={parse:function(e){return(0,w.parse)(e,i)}}}this.log.debug("Parse start");var u=r(t,i||this.parserOpts);return this.log.debug("Parse stop"),u},_.prototype._addAst=function(e){this.path=h.NodePath.get({hub:this.hub,parentPath:null,parent:e,container:e,key:"program"}).setContext(),this.scope=this.path.scope,this.ast=e,this.getMetadata()},_.prototype.addAst=function(e){this.log.debug("Start set AST"),this._addAst(e),this.log.debug("End set AST")},_.prototype.transform=function(){for(var e=0;e=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a,u=s.plugin[e];u&&u.call(s,this)}},_.prototype.parseInputSourceMap=function(e){var t=this.opts;if(!1!==t.inputSourceMap){var n=f.default.fromSource(e);n&&(t.inputSourceMap=n.toObject(),e=f.default.removeComments(e))}return e},_.prototype.parseShebang=function(){var e=P.exec(this.code);e&&(this.shebang=e[0],this.code=this.code.replace(P,""))},_.prototype.makeResult=function(e){var t=e.code,n=e.map,r=e.ast,i=e.ignored,o={metadata:null,options:this.opts,ignored:!!i,code:null,ast:null,map:n||null};return this.opts.code&&(o.code=t),this.opts.ast&&(o.ast=r),this.opts.metadata&&(o.metadata=this.metadata),o},_.prototype.generate=function(){var t=this.opts,r=this.ast,i={ast:r};if(!t.code)return this.makeResult(i);var a=v.default;if(t.generatorOpts.generator&&"string"==typeof(a=t.generatorOpts.generator)){var s=S.default.dirname(this.opts.filename)||e.cwd(),u=(0,A.default)(a,s);if(!u)throw new Error("Couldn't find generator "+a+' with "print" method relative to directory '+s);a=n(178)(u).print}this.log.debug("Generation start");var l=a(r,t.generatorOpts?(0,o.default)(t,t.generatorOpts):t,this.code);return i.code=l.code,i.map=l.map,this.log.debug("Generation end"),this.shebang&&(i.code=this.shebang+"\n"+i.code),i.map&&(i.map=this.mergeSourceMap(i.map)),"inline"!==t.sourceMaps&&"both"!==t.sourceMaps||(i.code+="\n"+f.default.fromObject(i.map).toComment()),"inline"===t.sourceMaps&&(i.map=null),this.makeResult(i)},_}(_.default);t.default=N,t.File=N}).call(t,n(8))},function(e,t,n){(function(r){"use strict";t.__esModule=!0;var i=f(n(87)),o=f(n(3));t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=e.filename,r=new m(t);return!1!==e.babelrc&&r.findConfigs(n),r.mergeConfig({options:e,alias:"base",dirname:n&&l.default.dirname(n)}),r.configs};var a=f(n(118)),s=f(n(470)),u=f(n(604)),l=f(n(19)),c=f(n(115));function f(e){return e&&e.__esModule?e:{default:e}}var p={},d={};function h(e){var t=p[e];return null==t?p[e]=c.default.existsSync(e):t}var m=function(){function e(t){(0,o.default)(this,e),this.resolvedConfigs=[],this.configs=[],this.log=t}return e.prototype.findConfigs=function(e){if(e){(0,u.default)(e)||(e=l.default.join(r.cwd(),e));for(var t=!1,n=!1;e!==(e=l.default.dirname(e));){if(!t){var i=l.default.join(e,".babelrc");h(i)&&(this.addConfig(i),t=!0);var o=l.default.join(e,"package.json");!t&&h(o)&&(t=this.addConfig(o,"babel",JSON))}if(!n){var a=l.default.join(e,".babelignore");h(a)&&(this.addIgnoreConfig(a),n=!0)}if(n&&t)return}}},e.prototype.addIgnoreConfig=function(e){var t=c.default.readFileSync(e,"utf8").split("\n");(t=t.map((function(e){return e.replace(/#(.*?)$/,"").trim()})).filter((function(e){return!!e}))).length&&this.mergeConfig({options:{ignore:t},alias:e,dirname:l.default.dirname(e)})},e.prototype.addConfig=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default;if(this.resolvedConfigs.indexOf(e)>=0)return!1;this.resolvedConfigs.push(e);var r=c.default.readFileSync(e,"utf8"),i=void 0;try{i=d[r]=d[r]||n.parse(r),t&&(i=i[t])}catch(t){throw t.message=e+": Error while parsing JSON - "+t.message,t}return this.mergeConfig({options:i,alias:e,dirname:l.default.dirname(e)}),!!i},e.prototype.mergeConfig=function(e){var t=e.options,n=e.alias,o=e.loc,s=e.dirname;if(!t)return!1;if(t=(0,i.default)({},t),s=s||r.cwd(),o=o||n,t.extends){var u=(0,a.default)(t.extends,s);u?this.addConfig(u):this.log&&this.log.error("Couldn't resolve extends clause of "+t.extends+" in "+n),delete t.extends}this.configs.push({options:t,alias:n,loc:o,dirname:s});var l=void 0,c=r.env.BABEL_ENV||"production";t.env&&(l=t.env[c],delete t.env),this.mergeConfig({options:l,alias:n+".env."+c,dirname:s})},e}();e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";t.__esModule=!0,t.config=void 0,t.normaliseOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e){var n=e[t];if(null!=n){var r=o.default[t];if(r&&r.alias&&(r=o.default[r.alias]),r){var a=i[r.type];a&&(n=a(n)),e[t]=n}}}return e};var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(53)),o=(r=n(33))&&r.__esModule?r:{default:r};t.config=o.default},function(e,t,n){"use strict";t.__esModule=!0,t.filename=void 0,t.boolean=function(e){return!!e},t.booleanString=function(e){return o.booleanify(e)},t.list=function(e){return o.list(e)};var r,i=(r=n(284))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(122));t.filename=i.default},function(e,t){"use strict";e.exports={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin . Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"Use the `sourceMapTarget` option"},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"}}},function(e,t,n){"use strict";var r=n(43),i=n(428),o=n(427),a=n(21),s=n(153),u=n(238),l={},c={},f=e.exports=function(e,t,n,f,p){var d,h,m,y,v=p?function(){return e}:u(e),g=r(n,f,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(d=s(e.length);d>b;b++)if((y=t?g(a(h=e[b])[0],h[1]):g(e[b]))===l||y===c)return y}else for(m=v.call(e);!(h=m.next()).done;)if((y=i(m,g,h.value,t))===l||y===c)return y};f.BREAK=l,f.RETURN=c},function(e,t){"use strict";e.exports={}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(95)("meta"),o=n(16),a=n(28),s=n(23).f,u=0,l=Object.isExtensible||function(){return!0},c=!n(27)((function(){return l(Object.preventExtensions({}))})),f=function(e){s(e,i,{value:{i:"O"+ ++u,w:{}}})},p=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==(void 0===e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";f(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;f(e)}return e[i].w},onFreeze:function(e){return c&&p.NEED&&l(e)&&!a(e,i)&&f(e),e}}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";n(440);for(var r=n(15),i=n(29),o=n(56),a=n(13)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=0;c--)"."===(a=u[c])?u.splice(c,1):".."===a?l++:l>0&&(""===a?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(n=u.join("/"))&&(n=s?"/":"."),r?(r.path=n,o(r)):n}t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),s=i(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),o(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=u,o(s)):u},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function c(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?u:function(e){return l(e)?"$"+e:e},t.fromSetString=s?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!=(r=e.source-t.source)||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=c(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:c(e.name,t.name)}},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(!b(e[s=c[l]],t[s],n,r))return!1;return!0}(e,t,n,s))}return n?e===t:e==t}function x(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&_(i,n)||s)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!_(i,n)||!e&&i)throw i}p.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(p.AssertionError,Error),p.fail=v,p.ok=g,p.equal=function(e,t,n){e!=t&&v(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){w(!0,e,t,n)},p.doesNotThrow=function(e,t,n){w(!1,e,t,n)},p.ifError=function(e){if(e)throw e};var E=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(t,function(){return this}())},function(e,t,n){"use strict";t.__esModule=!0;var r=d(n(2)),i=d(n(3)),o=d(n(42)),a=d(n(41)),s=d(n(34)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(20)),l=d(n(119)),c=d(n(7)),f=d(n(174)),p=d(n(109));function d(e){return e&&e.__esModule?e:{default:e}}var h=["enter","exit"],m=function(e){function t(n,r){(0,i.default)(this,t);var a=(0,o.default)(this,e.call(this));return a.initialized=!1,a.raw=(0,f.default)({},n),a.key=a.take("name")||r,a.manipulateOptions=a.take("manipulateOptions"),a.post=a.take("post"),a.pre=a.take("pre"),a.visitor=a.normaliseVisitor((0,p.default)(a.take("visitor"))||{}),a}return(0,a.default)(t,e),t.prototype.take=function(e){var t=this.raw[e];return delete this.raw[e],t},t.prototype.chain=function(e,t){if(!e[t])return this[t];if(!this[t])return e[t];var n=[e[t],this[t]];return function(){for(var e=void 0,t=arguments.length,i=Array(t),o=0;o=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var c=l;if(c){var f=c.apply(this,i);null!=f&&(e=f)}}return e}},t.prototype.maybeInherit=function(e){var t=this.take("inherits");t&&(t=s.default.normalisePlugin(t,e,"inherits"),this.manipulateOptions=this.chain(t,"manipulateOptions"),this.post=this.chain(t,"post"),this.pre=this.chain(t,"pre"),this.visitor=c.default.visitors.merge([t.visitor,this.visitor]))},t.prototype.init=function(e,t){if(!this.initialized)for(var n in this.initialized=!0,this.maybeInherit(e),this.raw)throw new Error(u.get("pluginInvalidProperty",e,t,n))},t.prototype.normaliseVisitor=function(e){var t=h,n=Array.isArray(t),i=0;for(t=n?t:(0,r.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}if(e[o])throw new Error("Plugins aren't allowed to specify catch-all enter/exit handlers. Please target individual nodes.")}return c.default.explode(e),e},t}(l.default);t.default=m,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.messages;return{visitor:{Scope:function(e){var n=e.scope;for(var r in n.bindings){var o=n.bindings[r];if("const"===o.kind||"module"===o.kind){var a=o.constantViolations,s=Array.isArray(a),u=0;for(a=s?a:(0,i.default)(a);;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}throw l.buildCodeFrameError(t.get("readOnly",r))}}}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("asyncFunctions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{ArrowFunctionExpression:function(e,n){if(n.opts.spec){var r=e.node;if(r.shadow)return;r.shadow={this:!1},r.type="FunctionExpression";var i=t.thisExpression();i._forceShadow=e,e.ensureBlock(),e.get("body").unshiftContainer("body",t.expressionStatement(t.callExpression(n.addHelper("newArrowCheck"),[t.thisExpression(),i]))),e.replaceWith(t.callExpression(t.memberExpression(r,t.identifier("bind")),[t.thisExpression()]))}else e.arrowFunctionToShadowed()}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types;function n(e,n){var r=n.get(e),o=Array.isArray(r),a=0;for(r=o?r:(0,i.default)(r);;){var s;if(o){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var u=s,l=u.node;if(u.isFunctionDeclaration()){var c=t.variableDeclaration("let",[t.variableDeclarator(l.id,t.toExpression(l))]);c._blockHoist=2,l.id=null,u.replaceWith(c)}}}return{visitor:{BlockStatement:function(e){var r=e.node,i=e.parent;t.isFunction(i,{body:r})||t.isExportDeclaration(i)||n("body",e)},SwitchCase:function(e){n("consequent",e)}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=f(n(10)),i=f(n(9)),o=f(n(3));t.default=function(){return{visitor:{VariableDeclaration:function(e,t){var n=e.node,r=e.parent,i=e.scope;if(d(n)&&(h(e,null,r,i,!0),n._tdzThis)){for(var o=[n],a=0;a4&&void 0!==arguments[4]&&arguments[4];if(t||(t=e.node),!u.isFor(n))for(var o=0;o0&&e.traverse(v,t),e.skip()}},s.visitor]),v=a.default.visitors.merge([{ReferencedIdentifier:function(e,t){var n=t.letReferences[e.node.name];if(n){var r=e.scope.getBindingIdentifier(e.node.name);r&&r!==n||(t.closurify=!0)}}},s.visitor]),g={enter:function(e,t){var n=e.node;if(e.parent,e.isForStatement()){if(m(n.init)){var r=t.pushDeclar(n.init);1===r.length?n.init=r[0]:n.init=u.sequenceExpression(r)}}else if(e.isFor())m(n.left)&&(t.pushDeclar(n.left),n.left=n.left.declarations[0].id);else if(m(n))e.replaceWithMultiple(t.pushDeclar(n).map((function(e){return u.expressionStatement(e)})));else if(e.isFunction())return e.skip()}},b={LabeledStatement:function(e,t){var n=e.node;t.innerLabels.push(n.label.name)}},x={enter:function(e,t){if(e.isAssignmentExpression()||e.isUpdateExpression()){var n=e.getBindingIdentifiers();for(var r in n)t.outsideReferences[r]===e.scope.getBindingIdentifier(r)&&(t.reassignments[r]=!0)}}},_={Loop:function(e,t){var n=t.ignoreLabeless;t.ignoreLabeless=!0,e.traverse(_,t),t.ignoreLabeless=n,e.skip()},Function:function(e){e.skip()},SwitchCase:function(e,t){var n=t.inSwitchCase;t.inSwitchCase=!0,e.traverse(_,t),t.inSwitchCase=n,e.skip()},"BreakStatement|ContinueStatement|ReturnStatement":function(e,t){var n=e.node,r=e.parent,i=e.scope;if(!n[this.LOOP_IGNORE]){var o=void 0,a=function(e){return u.isBreakStatement(e)?"break":u.isContinueStatement(e)?"continue":void 0}(n);if(a){if(n.label){if(t.innerLabels.indexOf(n.label.name)>=0)return;a=a+"|"+n.label.name}else{if(t.ignoreLabeless)return;if(t.inSwitchCase)return;if(u.isBreakStatement(n)&&u.isSwitchCase(r))return}t.hasBreakContinue=!0,t.map[a]=n,o=u.stringLiteral(a)}e.isReturnStatement()&&(t.hasReturn=!0,o=u.objectExpression([u.objectProperty(u.identifier("v"),n.argument||i.buildUndefinedNode())])),o&&((o=u.returnStatement(o))[this.LOOP_IGNORE]=!0,e.skip(),e.replaceWith(u.inherits(o,n)))}}},w=function(){function e(t,n,r,a,s){(0,o.default)(this,e),this.parent=r,this.scope=a,this.file=s,this.blockPath=n,this.block=n.node,this.outsideLetReferences=(0,i.default)(null),this.hasLetReferences=!1,this.letReferences=(0,i.default)(null),this.body=[],t&&(this.loopParent=t.parent,this.loopLabel=u.isLabeledStatement(this.loopParent)&&this.loopParent.label,this.loopPath=t,this.loop=t.node)}return e.prototype.run=function(){var e=this.block;if(!e._letDone){e._letDone=!0;var t=this.getLetReferences();if(u.isFunction(this.parent)||u.isProgram(this.block))this.updateScopeInfo();else if(this.hasLetReferences)return t?this.wrapClosure():this.remap(),this.updateScopeInfo(t),this.loopLabel&&!u.isLabeledStatement(this.loopParent)?u.labeledStatement(this.loopLabel,this.loop):void 0}},e.prototype.updateScopeInfo=function(e){var t=this.scope,n=t.getFunctionParent(),r=this.letReferences;for(var i in r){var o=r[i],a=t.getBinding(o.name);a&&("let"!==a.kind&&"const"!==a.kind||(a.kind="var",e?t.removeBinding(o.name):t.moveBindingTo(o.name,n)))}},e.prototype.remap=function(){var e=this.letReferences,t=this.scope;for(var n in e){var r=e[n];(t.parentHasBinding(n)||t.hasGlobal(n))&&(t.hasOwnBinding(n)&&t.rename(r.name),this.blockPath.scope.hasOwnBinding(n)&&this.blockPath.scope.rename(r.name))}},e.prototype.wrapClosure=function(){if(this.file.opts.throwIfClosureRequired)throw this.blockPath.buildCodeFrameError("Compiling let/const in this block would add a closure (throwIfClosureRequired).");var e=this.block,t=this.outsideLetReferences;if(this.loop)for(var n in t){var r=t[n];(this.scope.hasGlobal(r.name)||this.scope.parentHasBinding(r.name))&&(delete t[r.name],delete this.letReferences[r.name],this.scope.rename(r.name),this.letReferences[r.name]=r,t[r.name]=r)}this.has=this.checkLoop(),this.hoistVarDeclarations();var i=(0,l.default)(t),o=(0,l.default)(t),s=this.blockPath.isSwitchStatement(),c=u.functionExpression(null,i,u.blockStatement(s?[e]:e.body));c.shadow=!0,this.addContinuations(c);var f=c;this.loop&&(f=this.scope.generateUidIdentifier("loop"),this.loopPath.insertBefore(u.variableDeclaration("var",[u.variableDeclarator(f,c)])));var p=u.callExpression(f,o),d=this.scope.generateUidIdentifier("ret");a.default.hasType(c.body,this.scope,"YieldExpression",u.FUNCTION_TYPES)&&(c.generator=!0,p=u.yieldExpression(p,!0)),a.default.hasType(c.body,this.scope,"AwaitExpression",u.FUNCTION_TYPES)&&(c.async=!0,p=u.awaitExpression(p)),this.buildClosure(d,p),s?this.blockPath.replaceWithMultiple(this.body):e.body=this.body},e.prototype.buildClosure=function(e,t){var n=this.has;n.hasReturn||n.hasBreakContinue?this.buildHas(e,t):this.body.push(u.expressionStatement(t))},e.prototype.addContinuations=function(e){var t={reassignments:{},outsideReferences:this.outsideLetReferences};this.scope.traverse(e,x,t);for(var n=0;n=t.length)break;s=t[r++]}else{if((r=t.next()).done)break;s=r.value}var u=s;"get"===u.kind||"set"===u.kind?a(e,u):o(e.objId,u,e.body)}}function u(e){var n=e.objId,s=e.body,u=e.computedProps,l=e.state,c=u,f=Array.isArray(c),p=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}var h=d,m=t.toComputedKey(h);if("get"===h.kind||"set"===h.kind)a(e,h);else if(t.isStringLiteral(m,{value:"__proto__"}))o(n,h,s);else{if(1===u.length)return t.callExpression(l.addHelper("defineProperty"),[e.initPropExpression,m,r(h)]);s.push(t.expressionStatement(t.callExpression(l.addHelper("defineProperty"),[n,m,r(h)])))}}}return{visitor:{ObjectExpression:{exit:function(e,n){var r=e.node,o=e.parent,a=e.scope,l=!1,c=r.properties,f=Array.isArray(c),p=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}if(l=!0===d.computed)break}if(l){var h=[],m=[],y=!1,v=r.properties,g=Array.isArray(v),b=0;for(v=g?v:(0,i.default)(v);;){var x;if(g){if(b>=v.length)break;x=v[b++]}else{if((b=v.next()).done)break;x=b.value}var _=x;_.computed&&(y=!0),y?m.push(_):h.push(_)}var w=a.generateUidIdentifierBasedOnNode(o),E=t.objectExpression(h),S=[];S.push(t.variableDeclaration("var",[t.variableDeclarator(w,E)]));var k=u;n.opts.loose&&(k=s);var A=void 0,C=k({scope:a,objId:w,body:S,computedProps:m,initPropExpression:E,getMutatorId:function(){return A||(A=a.generateUidIdentifier("mutatorMap"),S.push(t.variableDeclaration("var",[t.variableDeclarator(A,t.objectExpression([]))]))),A},state:n});A&&S.push(t.expressionStatement(t.callExpression(n.addHelper("defineEnumerableProperties"),[w,A]))),C?e.replaceWith(C):(S.push(t.expressionStatement(w)),e.replaceWithMultiple(S))}}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(3)),i=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.types;function n(e){var n=e.declarations,r=Array.isArray(n),o=0;for(n=r?n:(0,i.default)(n);;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;if(t.isPattern(s.id))return!0}return!1}function o(e){var n=e.elements,r=Array.isArray(n),o=0;for(n=r?n:(0,i.default)(n);;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;if(t.isRestElement(s))return!0}return!1}var a={ReferencedIdentifier:function(e,t){t.bindings[e.node.name]&&(t.deopt=!0,e.stop())}},s=function(){function e(t){(0,r.default)(this,e),this.blockHoist=t.blockHoist,this.operator=t.operator,this.arrays={},this.nodes=t.nodes||[],this.scope=t.scope,this.file=t.file,this.kind=t.kind}return e.prototype.buildVariableAssignment=function(e,n){var r=this.operator;t.isMemberExpression(e)&&(r="=");var i=void 0;return(i=r?t.expressionStatement(t.assignmentExpression(r,e,n)):t.variableDeclaration(this.kind,[t.variableDeclarator(e,n)]))._blockHoist=this.blockHoist,i},e.prototype.buildVariableDeclaration=function(e,n){var r=t.variableDeclaration("var",[t.variableDeclarator(e,n)]);return r._blockHoist=this.blockHoist,r},e.prototype.push=function(e,n){t.isObjectPattern(e)?this.pushObjectPattern(e,n):t.isArrayPattern(e)?this.pushArrayPattern(e,n):t.isAssignmentPattern(e)?this.pushAssignmentPattern(e,n):this.nodes.push(this.buildVariableAssignment(e,n))},e.prototype.toArray=function(e,n){return this.file.opts.loose||t.isIdentifier(e)&&this.arrays[e.name]?e:this.scope.toArray(e,n)},e.prototype.pushAssignmentPattern=function(e,n){var r=this.scope.generateUidIdentifierBasedOnNode(n),i=t.variableDeclaration("var",[t.variableDeclarator(r,n)]);i._blockHoist=this.blockHoist,this.nodes.push(i);var o=t.conditionalExpression(t.binaryExpression("===",r,t.identifier("undefined")),e.right,r),a=e.left;if(t.isPattern(a)){var s=t.expressionStatement(t.assignmentExpression("=",r,o));s._blockHoist=this.blockHoist,this.nodes.push(s),this.push(a,r)}else this.nodes.push(this.buildVariableAssignment(a,o))},e.prototype.pushObjectRest=function(e,n,r,i){for(var o=[],a=0;a=i)break;if(!t.isRestProperty(s)){var u=s.key;t.isIdentifier(u)&&!s.computed&&(u=t.stringLiteral(s.key.name)),o.push(u)}}o=t.arrayExpression(o);var l=t.callExpression(this.file.addHelper("objectWithoutProperties"),[n,o]);this.nodes.push(this.buildVariableAssignment(r.argument,l))},e.prototype.pushObjectProperty=function(e,n){t.isLiteral(e.key)&&(e.computed=!0);var r=e.value,i=t.memberExpression(n,e.key,e.computed);t.isPattern(r)?this.push(r,i):this.nodes.push(this.buildVariableAssignment(r,i))},e.prototype.pushObjectPattern=function(e,n){if(e.properties.length||this.nodes.push(t.expressionStatement(t.callExpression(this.file.addHelper("objectDestructuringEmpty"),[n]))),e.properties.length>1&&!this.scope.isStatic(n)){var r=this.scope.generateUidIdentifierBasedOnNode(n);this.nodes.push(this.buildVariableDeclaration(r,n)),n=r}for(var i=0;in.elements.length)){if(e.elements.length=r.length)break;l=r[u++]}else{if((u=r.next()).done)break;l=u.value}var c=l;if(!c)return!1;if(t.isMemberExpression(c))return!1}var f=n.elements,p=Array.isArray(f),d=0;for(f=p?f:(0,i.default)(f);;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if((d=f.next()).done)break;h=d.value}var m=h;if(t.isSpreadElement(m))return!1;if(t.isCallExpression(m))return!1;if(t.isMemberExpression(m))return!1}var y={deopt:!1,bindings:t.getBindingIdentifiers(e)};return this.scope.traverse(n,a,y),!y.deopt}},e.prototype.pushUnpackedArrayPattern=function(e,n){for(var r=0;r=y.length)break;b=y[g++]}else{if((g=y.next()).done)break;b=g.value}var x,_=b,w=m[m.length-1];w&&t.isVariableDeclaration(w)&&t.isVariableDeclaration(_)&&w.kind===_.kind?(x=w.declarations).push.apply(x,_.declarations):m.push(_)}var E=m,S=Array.isArray(E),k=0;for(E=S?E:(0,i.default)(E);;){var A;if(S){if(k>=E.length)break;A=E[k++]}else{if((k=E.next()).done)break;A=k.value}var C=A;if(C.declarations){var T=C.declarations,D=Array.isArray(T),M=0;for(T=D?T:(0,i.default)(T);;){var P;if(D){if(M>=T.length)break;P=T[M++]}else{if((M=T.next()).done)break;P=M.value}var O=P.id.name;a.bindings[O]&&(a.bindings[O].kind=C.kind)}}}1===m.length?e.replaceWith(m[0]):e.replaceWithMultiple(m)}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.messages,n=e.template,r=e.types,i=n("\n for (var KEY = 0; KEY < ARR.length; KEY++) BODY;\n "),o=n("\n for (var LOOP_OBJECT = OBJECT,\n IS_ARRAY = Array.isArray(LOOP_OBJECT),\n INDEX = 0,\n LOOP_OBJECT = IS_ARRAY ? LOOP_OBJECT : LOOP_OBJECT[Symbol.iterator]();;) {\n var ID;\n if (IS_ARRAY) {\n if (INDEX >= LOOP_OBJECT.length) break;\n ID = LOOP_OBJECT[INDEX++];\n } else {\n INDEX = LOOP_OBJECT.next();\n if (INDEX.done) break;\n ID = INDEX.value;\n }\n }\n "),a=n("\n var ITERATOR_COMPLETION = true;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY = undefined;\n try {\n for (var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY; !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done); ITERATOR_COMPLETION = true) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (!ITERATOR_COMPLETION && ITERATOR_KEY.return) {\n ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n ");function s(e){var t=e.node,n=e.scope,o=[],a=t.right;if(!r.isIdentifier(a)||!n.hasBinding(a.name)){var s=n.generateUidIdentifier("arr");o.push(r.variableDeclaration("var",[r.variableDeclarator(s,a)])),a=s}var u=n.generateUidIdentifier("i"),l=i({BODY:t.body,KEY:u,ARR:a});r.inherits(l,t),r.ensureBlock(l);var c=r.memberExpression(a,u,!0),f=t.left;return r.isVariableDeclaration(f)?(f.declarations[0].init=c,l.body.body.unshift(f)):l.body.body.unshift(r.expressionStatement(r.assignmentExpression("=",f,c))),e.parentPath.isLabeledStatement()&&(l=r.labeledStatement(e.parentPath.node.label,l)),o.push(l),o}return{visitor:{ForOfStatement:function(e,t){if(e.get("right").isArrayExpression())return e.parentPath.isLabeledStatement()?e.parentPath.replaceWithMultiple(s(e)):e.replaceWithMultiple(s(e));var n=l;t.opts.loose&&(n=u);var i=e.node,o=n(e,t),a=o.declar,c=o.loop,f=c.body;e.ensureBlock(),a&&f.body.push(a),f.body=f.body.concat(i.body.body),r.inherits(c,i),r.inherits(c.body,i.body),o.replaceParent?(e.parentPath.replaceWithMultiple(o.node),e.remove()):e.replaceWithMultiple(o.node)}}};function u(e,n){var i=e.node,a=e.scope,s=e.parent,u=i.left,l=void 0,c=void 0;if(r.isIdentifier(u)||r.isPattern(u)||r.isMemberExpression(u))c=u;else{if(!r.isVariableDeclaration(u))throw n.buildCodeFrameError(u,t.get("unknownForHead",u.type));c=a.generateUidIdentifier("ref"),l=r.variableDeclaration(u.kind,[r.variableDeclarator(u.declarations[0].id,c)])}var f=a.generateUidIdentifier("iterator"),p=a.generateUidIdentifier("isArray"),d=o({LOOP_OBJECT:f,IS_ARRAY:p,OBJECT:i.right,INDEX:a.generateUidIdentifier("i"),ID:c});l||d.body.body.shift();var h=r.isLabeledStatement(s),m=void 0;return h&&(m=r.labeledStatement(s.label,d)),{replaceParent:h,declar:l,node:m||d,loop:d}}function l(e,n){var i=e.node,o=e.scope,s=e.parent,u=i.left,l=void 0,c=o.generateUidIdentifier("step"),f=r.memberExpression(c,r.identifier("value"));if(r.isIdentifier(u)||r.isPattern(u)||r.isMemberExpression(u))l=r.expressionStatement(r.assignmentExpression("=",u,f));else{if(!r.isVariableDeclaration(u))throw n.buildCodeFrameError(u,t.get("unknownForHead",u.type));l=r.variableDeclaration(u.kind,[r.variableDeclarator(u.declarations[0].id,f)])}var p=o.generateUidIdentifier("iterator"),d=a({ITERATOR_HAD_ERROR_KEY:o.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:o.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:o.generateUidIdentifier("iteratorError"),ITERATOR_KEY:p,STEP_KEY:c,OBJECT:i.right,BODY:null}),h=r.isLabeledStatement(s),m=d[3].block.body,y=m[0];return h&&(m[0]=r.labeledStatement(s.label,y)),{replaceParent:h,declar:l,loop:y,node:d}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{FunctionExpression:{exit:function(e){if("value"!==e.key&&!e.parentPath.isObjectProperty()){var t=(0,i.default)(e);t&&e.replaceWith(t)}}},ObjectProperty:function(e){var t=e.get("value");if(t.isFunction()){var n=(0,i.default)(t);n&&t.replaceWith(n)}}}}};var r,i=(r=n(40))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{NumericLiteral:function(e){var t=e.node;t.extra&&/^0[ob]/i.test(t.extra.raw)&&(t.extra=void 0)},StringLiteral:function(e){var t=e.node;t.extra&&/\\[u]/gi.test(t.extra.raw)&&(t.extra=void 0)}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=f(n(14)),i=f(n(9)),o=f(n(2)),a=f(n(10));t.default=function(){var e=(0,a.default)(),t={ReferencedIdentifier:function(e){var t=e.node.name,n=this.remaps[t];if(n&&this.scope.getBinding(t)===e.scope.getBinding(t)){if(e.parentPath.isCallExpression({callee:e.node}))e.replaceWith(c.sequenceExpression([c.numericLiteral(0),n]));else if(e.isJSXIdentifier()&&c.isMemberExpression(n)){var r=n.object,i=n.property;e.replaceWith(c.JSXMemberExpression(c.JSXIdentifier(r.name),c.JSXIdentifier(i.name)))}else e.replaceWith(n);this.requeueInParent(e)}},AssignmentExpression:function(t){var n=t.node;if(!n[e]){var r=t.get("left");if(r.isIdentifier()){var i=r.node.name,a=this.exports[i];if(!a)return;if(this.scope.getBinding(i)!==t.scope.getBinding(i))return;n[e]=!0;var s=a,u=Array.isArray(s),l=0;for(s=u?s:(0,o.default)(s);;){var f;if(u){if(l>=s.length)break;f=s[l++]}else{if((l=s.next()).done)break;f=l.value}n=y(f,n).expression}t.replaceWith(n),this.requeueInParent(t)}else if(r.isObjectPattern()){var p=r.node.properties,d=Array.isArray(p),h=0;for(p=d?p:(0,o.default)(p);;){var m;if(d){if(h>=p.length)break;m=p[h++]}else{if((h=p.next()).done)break;m=h.value}var v=m.value.name;if(this.exports[v]){if(this.scope.getBinding(v)!==t.scope.getBinding(v))return;n[e]=!0,t.insertAfter(y(c.identifier(v),c.identifier(v)))}}}else if(r.isArrayPattern()){var g=r.node.elements,b=Array.isArray(g),x=0;for(g=b?g:(0,o.default)(g);;){var _;if(b){if(x>=g.length)break;_=g[x++]}else{if((x=g.next()).done)break;_=x.value}if(_){var w=_.name;if(this.exports[w]){if(this.scope.getBinding(w)!==t.scope.getBinding(w))return;n[e]=!0,t.insertAfter(y(c.identifier(w),c.identifier(w)))}}}}}},UpdateExpression:function(e){var t=e.get("argument");if(t.isIdentifier()){var n=t.node.name;if(this.exports[n]&&this.scope.getBinding(n)===e.scope.getBinding(n)){var r=c.assignmentExpression(e.node.operator[0]+"=",t.node,c.numericLiteral(1));if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()||e.node.prefix)return e.replaceWith(r),void this.requeueInParent(e);var i=[];i.push(r);var o;o="--"===e.node.operator?"+":"-",i.push(c.binaryExpression(o,t.node,c.numericLiteral(1))),e.replaceWithMultiple(c.sequenceExpression(i))}}}};return{inherits:l.default,visitor:{ThisExpression:function(e,t){this.ranCommonJS||!0===t.opts.allowTopLevelThis||e.findParent((function(e){return!e.is("shadow")&&g.indexOf(e.type)>=0}))||e.replaceWith(c.identifier("undefined"))},Program:{exit:function(e){this.ranCommonJS=!0;var n=!!this.opts.strict,a=!!this.opts.noInterop,u=e.scope;u.rename("module"),u.rename("exports"),u.rename("require");var l=!1,f=!1,g=e.get("body"),b=(0,i.default)(null),x=(0,i.default)(null),_=(0,i.default)(null),w=[],E=(0,i.default)(null),S=(0,i.default)(null);function k(t,n){var r=S[t];if(r)return r;var i=e.scope.generateUidIdentifier((0,s.basename)(t,(0,s.extname)(t))),o=c.variableDeclaration("var",[c.variableDeclarator(i,p(c.stringLiteral(t)).expression)]);return b[t]&&(o.loc=b[t].loc),"number"==typeof n&&n>0&&(o._blockHoist=n),w.push(o),S[t]=i}function A(e,t,n){var r=e[t]||[];e[t]=r.concat(n)}var C=g,T=Array.isArray(C),D=0;for(C=T?C:(0,o.default)(C);;){var M;if(T){if(D>=C.length)break;M=C[D++]}else{if((D=C.next()).done)break;M=D.value}var P=M;if(P.isExportDeclaration()){l=!0;var O=ke=[].concat(P.get("declaration"),P.get("specifiers")),L=Array.isArray(O),N=0;for(O=L?O:(0,o.default)(O);;){var F;if(L){if(N>=O.length)break;F=O[N++]}else{if((N=O.next()).done)break;F=N.value}var R=F;if(R.getBindingIdentifiers().__esModule)throw R.buildCodeFrameError('Illegal export "__esModule"')}}if(P.isImportDeclaration()){var I;f=!0;var j=P.node.source.value,B=b[j]||{specifiers:[],maxBlockHoist:0,loc:P.node.loc};(I=B.specifiers).push.apply(I,P.node.specifiers),"number"==typeof P.node._blockHoist&&(B.maxBlockHoist=Math.max(P.node._blockHoist,B.maxBlockHoist)),b[j]=B,P.remove()}else if(P.isExportDefaultDeclaration()){var q=P.get("declaration");if(q.isFunctionDeclaration()){var z=q.node.id,V=c.identifier("default");z?(A(x,z.name,V),w.push(y(V,z)),P.replaceWith(q.node)):(w.push(y(V,c.toExpression(q.node))),P.remove())}else if(q.isClassDeclaration()){var U=q.node.id,W=c.identifier("default");U?(A(x,U.name,W),P.replaceWithMultiple([q.node,y(W,U)])):(P.replaceWith(y(W,c.toExpression(q.node))),P.parentPath.requeue(P.get("expression.left")))}else P.replaceWith(y(c.identifier("default"),q.node)),P.parentPath.requeue(P.get("expression.left"))}else if(P.isExportNamedDeclaration()){var Y=P.get("declaration");if(Y.node){if(Y.isFunctionDeclaration()){var X=Y.node.id;A(x,X.name,X),w.push(y(X,X)),P.replaceWith(Y.node)}else if(Y.isClassDeclaration()){var H=Y.node.id;A(x,H.name,H),P.replaceWithMultiple([Y.node,y(H,H)]),_[H.name]=!0}else if(Y.isVariableDeclaration()){var G=Y.get("declarations"),$=Array.isArray(G),K=0;for(G=$?G:(0,o.default)(G);;){var Z;if($){if(K>=G.length)break;Z=G[K++]}else{if((K=G.next()).done)break;Z=K.value}var J=Z,Q=J.get("id"),ee=J.get("init"),te=[];if(ee.node||ee.replaceWith(c.identifier("undefined")),Q.isIdentifier())A(x,Q.node.name,Q.node),ee.replaceWith(y(Q.node,ee.node).expression),_[Q.node.name]=!0;else if(Q.isObjectPattern())for(var ne=0;ne=pe.length)break;me=pe[he++]}else{if((he=pe.next()).done)break;me=he.value}var ye=me;ye.isExportNamespaceSpecifier()||ye.isExportDefaultSpecifier()||ye.isExportSpecifier()&&(a||"default"!==ye.node.local.name?w.push(h(c.stringLiteral(ye.node.exported.name),c.memberExpression(fe,ye.node.local))):w.push(h(c.stringLiteral(ye.node.exported.name),c.memberExpression(c.callExpression(this.addHelper("interopRequireDefault"),[fe]),ye.node.local))),_[ye.node.exported.name]=!0)}}else{var ve=ue,ge=Array.isArray(ve),be=0;for(ve=ge?ve:(0,o.default)(ve);;){var xe;if(ge){if(be>=ve.length)break;xe=ve[be++]}else{if((be=ve.next()).done)break;xe=be.value}var _e=xe;_e.isExportSpecifier()&&(A(x,_e.node.local.name,_e.node.exported),_[_e.node.exported.name]=!0,le.push(y(_e.node.exported,_e.node.local)))}}P.replaceWithMultiple(le)}else if(P.isExportAllDeclaration()){var we=v({OBJECT:k(P.node.source.value,P.node._blockHoist)});we.loc=P.node.loc,w.push(we),P.remove()}}for(var Ee in b){var Se=b[Ee],ke=Se.specifiers,Ae=Se.maxBlockHoist;if(ke.length){for(var Ce=k(Ee,Ae),Te=void 0,De=0;De0&&(Pe._blockHoist=Ae),w.push(Pe)}Te=Me.local}else c.isImportDefaultSpecifier(Me)&&(ke[De]=c.importSpecifier(Me.local,c.identifier("default")))}var Oe=ke,Le=Array.isArray(Oe),Ne=0;for(Oe=Le?Oe:(0,o.default)(Oe);;){var Fe;if(Le){if(Ne>=Oe.length)break;Fe=Oe[Ne++]}else{if((Ne=Oe.next()).done)break;Fe=Ne.value}var Re=Fe;if(c.isImportSpecifier(Re)){var Ie=Ce;if("default"===Re.imported.name)if(Te)Ie=Te;else if(!a){Ie=Te=e.scope.generateUidIdentifier(Ce.name);var je=c.variableDeclaration("var",[c.variableDeclarator(Ie,c.callExpression(this.addHelper("interopRequireDefault"),[Ce]))]);Ae>0&&(je._blockHoist=Ae),w.push(je)}E[Re.local.name]=c.memberExpression(Ie,c.cloneWithoutLoc(Re.imported))}}}else{var Be=p(c.stringLiteral(Ee));Be.loc=b[Ee].loc,w.push(Be)}}if(f&&(0,r.default)(_).length)for(var qe=(0,r.default)(_),ze=function(e){var t=qe.slice(e,e+100),n=c.identifier("undefined");t.forEach((function(e){n=y(c.identifier(e),n).expression}));var r=c.expressionStatement(n);r._blockHoist=3,w.unshift(r)},Ve=0;Ve=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;p.isObjectProperty()&&(p=p.get("value")),n(p,p.node,e.scope,s,i)}o&&(e.scope.push({id:o}),e.replaceWith(t.assignmentExpression("=",o,e.node)))}}}}}};var o=a(n(193));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(){return{visitor:o.visitors.merge([{ArrowFunctionExpression:function(e){var t=e.get("params"),n=Array.isArray(t),r=0;for(t=n?t:(0,i.default)(t);;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var a=o;if(a.isRestElement()||a.isAssignmentPattern()){e.arrowFunctionToShadowed();break}}}},a.visitor,u.visitor,s.visitor])}};var o=n(7),a=l(n(334)),s=l(n(333)),u=l(n(335));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{ObjectMethod:function(e){var t=e.node;if("method"===t.kind){var n=r.functionExpression(null,t.params,t.body,t.generator,t.async);n.returnType=t.returnType,e.replaceWith(r.objectProperty(t.key,n,t.computed))}},ObjectProperty:function(e){var t=e.node;t.shorthand&&(t.shorthand=!1)}}}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types;function n(e,n,r){return r.opts.loose&&!t.isIdentifier(e.argument,{name:"arguments"})?e.argument:n.toArray(e.argument,!0)}function r(e){for(var n=0;n=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;t.isSpreadElement(d)?(u(),a.push(n(d,r,o))):s.push(d)}return u(),a}return{visitor:{ArrayExpression:function(e,n){var i=e.node,a=e.scope,s=i.elements;if(r(s)){var u=o(s,a,n),l=u.shift();t.isArrayExpression(l)||(u.unshift(l),l=t.arrayExpression([])),e.replaceWith(t.callExpression(t.memberExpression(l,t.identifier("concat")),u))}},CallExpression:function(e,n){var i=e.node,a=e.scope,s=i.arguments;if(r(s)){var u=e.get("callee");if(!u.isSuper()){var l=t.identifier("undefined");i.arguments=[];var c=void 0,f=(c=1===s.length&&"arguments"===s[0].argument.name?[s[0].argument]:o(s,a,n)).shift();c.length?i.arguments.push(t.callExpression(t.memberExpression(f,t.identifier("concat")),c)):i.arguments.push(f);var p=i.callee;if(u.isMemberExpression()){var d=a.maybeGenerateMemoised(p.object);d?(p.object=t.assignmentExpression("=",d,p.object),l=d):l=p.object,t.appendToMemberExpression(p,t.identifier("apply"))}else i.callee=t.memberExpression(i.callee,t.identifier("apply"));t.isSuper(l)&&(l=t.thisExpression()),i.arguments.unshift(l)}}},NewExpression:function(e,n){var i=e.node,a=e.scope,s=i.arguments;if(r(s)){var u=o(s,a,n),l=t.arrayExpression([t.nullLiteral()]);s=t.callExpression(t.memberExpression(l,t.identifier("concat")),u),e.replaceWith(t.newExpression(t.callExpression(t.memberExpression(t.memberExpression(t.memberExpression(t.identifier("Function"),t.identifier("prototype")),t.identifier("bind")),t.identifier("apply")),[i.callee,s]),[]))}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{RegExpLiteral:function(e){var t=e.node;r.is(t,"y")&&e.replaceWith(i.newExpression(i.identifier("RegExp"),[i.stringLiteral(t.pattern),i.stringLiteral(t.flags)]))}}}};var r=o(n(192)),i=o(n(1));function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types;function n(e){return t.isLiteral(e)&&"string"==typeof e.value}function r(e,n){return t.binaryExpression("+",e,n)}return{visitor:{TaggedTemplateExpression:function(e,n){var r=e.node,o=r.quasi,a=[],s=[],u=[],l=o.quasis,c=Array.isArray(l),f=0;for(l=c?l:(0,i.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;s.push(t.stringLiteral(d.value.cooked)),u.push(t.stringLiteral(d.value.raw))}s=t.arrayExpression(s),u=t.arrayExpression(u);var h="taggedTemplateLiteral";n.opts.loose&&(h+="Loose");var m=n.file.addTemplateObject(h,s,u);a.push(m),a=a.concat(o.expressions),e.replaceWith(t.callExpression(r.tag,a))},TemplateLiteral:function(e,o){var a=[],s=e.get("expressions"),u=e.node.quasis,l=Array.isArray(u),c=0;for(u=l?u:(0,i.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;a.push(t.stringLiteral(p.value.cooked));var d=s.shift();d&&(!o.opts.spec||d.isBaseType("string")||d.isBaseType("number")?a.push(d.node):a.push(t.callExpression(t.identifier("String"),[d.node])))}if(n((a=a.filter((function(e){return!t.isLiteral(e,{value:""})})))[0])||n(a[1])||a.unshift(t.stringLiteral("")),a.length>1){var h=r(a.shift(),a.shift()),m=a,y=Array.isArray(m),v=0;for(m=y?m:(0,i.default)(m);;){var g;if(y){if(v>=m.length)break;g=m[v++]}else{if((v=m.next()).done)break;g=v.value}h=r(h,g)}e.replaceWith(h)}else e.replaceWith(a[0])}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(10))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types,n=(0,i.default)();return{visitor:{Scope:function(e){var t=e.scope;t.getBinding("Symbol")&&t.rename("Symbol")},UnaryExpression:function(e){var r=e.node,i=e.parent;if(!r[n]&&!e.find((function(e){return e.node&&!!e.node._generated}))){if(e.parentPath.isBinaryExpression()&&t.EQUALITY_BINARY_OPERATORS.indexOf(i.operator)>=0){var o=e.getOpposite();if(o.isLiteral()&&"symbol"!==o.node.value&&"object"!==o.node.value)return}if("typeof"===r.operator){var a=t.callExpression(this.addHelper("typeof"),[r.argument]);if(e.get("argument").isIdentifier()){var s=t.stringLiteral("undefined"),u=t.unaryExpression("typeof",r.argument);u[n]=!0,e.replaceWith(t.conditionalExpression(t.binaryExpression("===",u,s),s,a))}else e.replaceWith(a)}}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{RegExpLiteral:function(e){var t=e.node;o.is(t,"u")&&(t.pattern=(0,i.default)(t.pattern,t.flags),o.pullFlag(t,"u"))}}}};var r,i=(r=n(612))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(192));e.exports=t.default},function(e,t,n){"use strict";e.exports=n(606)},function(e,t,n){"use strict";e.exports={default:n(408),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.scope=t.path=void 0;var r,i=(r=n(364))&&r.__esModule?r:{default:r};function o(){t.path=new i.default}function a(){t.scope=new i.default}t.clear=function(){o(),a()},t.clearPath=o,t.clearScope=a,t.path=new i.default,t.scope=new i.default},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){return e=e.split(" "),function(t){return e.indexOf(t)>=0}}Object.defineProperty(t,"__esModule",{value:!0});var i={6:r("enum await"),strict:r("implements interface let package private protected public static yield"),strictBind:r("eval arguments")},o=r("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",u=new RegExp("["+a+"]"),l=new RegExp("["+a+s+"]");a=s=null;var c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,10591,541],f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function p(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}}function d(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):p(e,c)))}function h(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):p(e,c)||p(e,f))))}var m={sourceType:"script",sourceFilename:void 0,startLine:1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null},y="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return void 0===e?"undefined":n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":n(e)},v=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},g=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":n(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":n(t))&&"function"!=typeof t?e:t},x=!0,_=!0,w=!0,E=!0,S=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,e),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.rightAssociative=!!n.rightAssociative,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null},k=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v(this,t),r.keyword=n,b(this,e.call(this,n,r))}return g(t,e),t}(S),A=function(e){function t(n,r){return v(this,t),b(this,e.call(this,n,{beforeExpr:x,binop:r}))}return g(t,e),t}(S),C={num:new S("num",{startsExpr:_}),regexp:new S("regexp",{startsExpr:_}),string:new S("string",{startsExpr:_}),name:new S("name",{startsExpr:_}),eof:new S("eof"),bracketL:new S("[",{beforeExpr:x,startsExpr:_}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:x,startsExpr:_}),braceBarL:new S("{|",{beforeExpr:x,startsExpr:_}),braceR:new S("}"),braceBarR:new S("|}"),parenL:new S("(",{beforeExpr:x,startsExpr:_}),parenR:new S(")"),comma:new S(",",{beforeExpr:x}),semi:new S(";",{beforeExpr:x}),colon:new S(":",{beforeExpr:x}),doubleColon:new S("::",{beforeExpr:x}),dot:new S("."),question:new S("?",{beforeExpr:x}),arrow:new S("=>",{beforeExpr:x}),template:new S("template"),ellipsis:new S("...",{beforeExpr:x}),backQuote:new S("`",{startsExpr:_}),dollarBraceL:new S("${",{beforeExpr:x,startsExpr:_}),at:new S("@"),eq:new S("=",{beforeExpr:x,isAssign:!0}),assign:new S("_=",{beforeExpr:x,isAssign:!0}),incDec:new S("++/--",{prefix:E,postfix:!0,startsExpr:_}),prefix:new S("prefix",{beforeExpr:x,prefix:E,startsExpr:_}),logicalOR:new A("||",1),logicalAND:new A("&&",2),bitwiseOR:new A("|",3),bitwiseXOR:new A("^",4),bitwiseAND:new A("&",5),equality:new A("==/!=",6),relational:new A("",7),bitShift:new A("<>",8),plusMin:new S("+/-",{beforeExpr:x,binop:9,prefix:E,startsExpr:_}),modulo:new A("%",10),star:new A("*",10),slash:new A("/",10),exponent:new S("**",{beforeExpr:x,binop:11,rightAssociative:!0})},T={break:new k("break"),case:new k("case",{beforeExpr:x}),catch:new k("catch"),continue:new k("continue"),debugger:new k("debugger"),default:new k("default",{beforeExpr:x}),do:new k("do",{isLoop:w,beforeExpr:x}),else:new k("else",{beforeExpr:x}),finally:new k("finally"),for:new k("for",{isLoop:w}),function:new k("function",{startsExpr:_}),if:new k("if"),return:new k("return",{beforeExpr:x}),switch:new k("switch"),throw:new k("throw",{beforeExpr:x}),try:new k("try"),var:new k("var"),let:new k("let"),const:new k("const"),while:new k("while",{isLoop:w}),with:new k("with"),new:new k("new",{beforeExpr:x,startsExpr:_}),this:new k("this",{startsExpr:_}),super:new k("super",{startsExpr:_}),class:new k("class"),extends:new k("extends",{beforeExpr:x}),export:new k("export"),import:new k("import",{startsExpr:_}),yield:new k("yield",{beforeExpr:x,startsExpr:_}),null:new k("null",{startsExpr:_}),true:new k("true",{startsExpr:_}),false:new k("false",{startsExpr:_}),in:new k("in",{beforeExpr:x,binop:7}),instanceof:new k("instanceof",{beforeExpr:x,binop:7}),typeof:new k("typeof",{beforeExpr:x,prefix:E,startsExpr:_}),void:new k("void",{beforeExpr:x,prefix:E,startsExpr:_}),delete:new k("delete",{beforeExpr:x,prefix:E,startsExpr:_})};Object.keys(T).forEach((function(e){C["_"+e]=T[e]}));var D=/\r\n?|\n|\u2028|\u2029/,M=new RegExp(D.source,"g");function P(e){return 10===e||13===e||8232===e||8233===e}var O=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,L=function e(t,n,r,i){v(this,e),this.token=t,this.isExpr=!!n,this.preserveSpace=!!r,this.override=i},N={braceStatement:new L("{",!1),braceExpression:new L("{",!0),templateQuasi:new L("${",!0),parenStatement:new L("(",!1),parenExpression:new L("(",!0),template:new L("`",!0,!0,(function(e){return e.readTmplToken()})),functionExpression:new L("function",!0)};C.parenR.updateContext=C.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===N.braceStatement&&this.curContext()===N.functionExpression?(this.state.context.pop(),this.state.exprAllowed=!1):e===N.templateQuasi?this.state.exprAllowed=!0:this.state.exprAllowed=!e.isExpr}else this.state.exprAllowed=!0},C.name.updateContext=function(e){this.state.exprAllowed=!1,e!==C._let&&e!==C._const&&e!==C._var||D.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0)},C.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?N.braceStatement:N.braceExpression),this.state.exprAllowed=!0},C.dollarBraceL.updateContext=function(){this.state.context.push(N.templateQuasi),this.state.exprAllowed=!0},C.parenL.updateContext=function(e){var t=e===C._if||e===C._for||e===C._with||e===C._while;this.state.context.push(t?N.parenStatement:N.parenExpression),this.state.exprAllowed=!0},C.incDec.updateContext=function(){},C._function.updateContext=function(){this.curContext()!==N.braceStatement&&this.state.context.push(N.functionExpression),this.state.exprAllowed=!1},C.backQuote.updateContext=function(){this.curContext()===N.template?this.state.context.pop():this.state.context.push(N.template),this.state.exprAllowed=!1};var F=function e(t,n){v(this,e),this.line=t,this.column=n},R=function e(t,n){v(this,e),this.start=t,this.end=n},I=function(){function e(){v(this,e)}return e.prototype.init=function(e,t){return this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.input=t,this.potentialArrowAt=-1,this.inMethod=this.inFunction=this.inGenerator=this.inAsync=this.inPropertyName=this.inType=this.inClassProperty=this.noAnonFunctionType=!1,this.labels=[],this.decorators=[],this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.pos=this.lineStart=0,this.curLine=e.startLine,this.type=C.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=[N.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[],this},e.prototype.curPosition=function(){return new F(this.curLine,this.pos-this.lineStart)},e.prototype.clone=function(t){var n=new e;for(var r in this){var i=this[r];t&&"context"!==r||!Array.isArray(i)||(i=i.slice()),n[r]=i}return n},e}(),j=function e(t){v(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new R(t.startLoc,t.endLoc)};function B(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}var q=function(){function e(t,n){v(this,e),this.state=new I,this.state.init(t,n)}return e.prototype.next=function(){this.isLookahead||this.state.tokens.push(new j(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},e.prototype.eat=function(e){return!!this.match(e)&&(this.next(),!0)},e.prototype.match=function(e){return this.state.type===e},e.prototype.isKeyword=function(e){return o(e)},e.prototype.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state.clone(!0);return this.state=e,t},e.prototype.setStrict=function(e){if(this.state.strict=e,this.match(C.num)||this.match(C.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(C.eof):e.override?e.override(this):this.readToken(this.fullCharCodeAtPos())},e.prototype.readToken=function(e){return d(e)||92===e?this.readWord():this.getTokenFromCode(e)},e.prototype.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.state.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.state.pos+1)-56613888},e.prototype.pushComment=function(e,t,n,r,i,o){var a={type:e?"CommentBlock":"CommentLine",value:t,start:n,end:r,loc:new R(i,o)};this.isLookahead||(this.state.tokens.push(a),this.state.comments.push(a),this.addComment(a))},e.prototype.skipBlockComment=function(){var e=this.state.curPosition(),t=this.state.pos,n=this.input.indexOf("*/",this.state.pos+=2);-1===n&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=n+2,M.lastIndex=t;for(var r=void 0;(r=M.exec(this.input))&&r.index8&&e<14||e>=5760&&O.test(String.fromCharCode(e))))break e;++this.state.pos}}},e.prototype.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var n=this.state.type;this.state.type=e,this.state.value=t,this.updateContext(n)},e.prototype.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.state.pos+2);return 46===e&&46===t?(this.state.pos+=3,this.finishToken(C.ellipsis)):(++this.state.pos,this.finishToken(C.dot))},e.prototype.readToken_slash=function(){return this.state.exprAllowed?(++this.state.pos,this.readRegexp()):61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(C.assign,2):this.finishOp(C.slash,1)},e.prototype.readToken_mult_modulo=function(e){var t=42===e?C.star:C.modulo,n=1,r=this.input.charCodeAt(this.state.pos+1);return 42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=C.exponent),61===r&&(n++,t=C.assign),this.finishOp(t,n)},e.prototype.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?this.finishOp(124===e?C.logicalOR:C.logicalAND,2):61===t?this.finishOp(C.assign,2):124===e&&125===t&&this.hasPlugin("flow")?this.finishOp(C.braceBarR,2):this.finishOp(124===e?C.bitwiseOR:C.bitwiseAND,1)},e.prototype.readToken_caret=function(){return 61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(C.assign,2):this.finishOp(C.bitwiseXOR,1)},e.prototype.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?45===t&&62===this.input.charCodeAt(this.state.pos+2)&&D.test(this.input.slice(this.state.lastTokEnd,this.state.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(C.incDec,2):61===t?this.finishOp(C.assign,2):this.finishOp(C.plusMin,1)},e.prototype.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.state.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+n)?this.finishOp(C.assign,n+1):this.finishOp(C.bitShift,n)):33===t&&60===e&&45===this.input.charCodeAt(this.state.pos+2)&&45===this.input.charCodeAt(this.state.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===t&&(n=2),this.finishOp(C.relational,n))},e.prototype.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.state.pos+1);return 61===t?this.finishOp(C.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2):61===e&&62===t?(this.state.pos+=2,this.finishToken(C.arrow)):this.finishOp(61===e?C.eq:C.prefix,1)},e.prototype.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.state.pos,this.finishToken(C.parenL);case 41:return++this.state.pos,this.finishToken(C.parenR);case 59:return++this.state.pos,this.finishToken(C.semi);case 44:return++this.state.pos,this.finishToken(C.comma);case 91:return++this.state.pos,this.finishToken(C.bracketL);case 93:return++this.state.pos,this.finishToken(C.bracketR);case 123:return this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(C.braceBarL,2):(++this.state.pos,this.finishToken(C.braceL));case 125:return++this.state.pos,this.finishToken(C.braceR);case 58:return this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(C.doubleColon,2):(++this.state.pos,this.finishToken(C.colon));case 63:return++this.state.pos,this.finishToken(C.question);case 64:return++this.state.pos,this.finishToken(C.at);case 96:return++this.state.pos,this.finishToken(C.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(C.prefix,1)}this.raise(this.state.pos,"Unexpected character '"+B(e)+"'")},e.prototype.finishOp=function(e,t){var n=this.input.slice(this.state.pos,this.state.pos+t);return this.state.pos+=t,this.finishToken(e,n)},e.prototype.readRegexp=function(){for(var e=this.state.pos,t=void 0,n=void 0;;){this.state.pos>=this.input.length&&this.raise(e,"Unterminated regular expression");var r=this.input.charAt(this.state.pos);if(D.test(r)&&this.raise(e,"Unterminated regular expression"),t)t=!1;else{if("["===r)n=!0;else if("]"===r&&n)n=!1;else if("/"===r&&!n)break;t="\\"===r}++this.state.pos}var i=this.input.slice(e,this.state.pos);++this.state.pos;var o=this.readWord1();return o&&(/^[gmsiyu]*$/.test(o)||this.raise(e,"Invalid regular expression flag")),this.finishToken(C.regexp,{pattern:i,flags:o})},e.prototype.readInt=function(e,t){for(var n=this.state.pos,r=0,i=0,o=null==t?1/0:t;i=97?s-97+10:s>=65?s-65+10:s>=48&&s<=57?s-48:1/0)>=e)break;++this.state.pos,r=r*e+a}return this.state.pos===n||null!=t&&this.state.pos-n!==t?null:r},e.prototype.readRadixNumber=function(e){this.state.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.state.start+2,"Expected number in radix "+e),d(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number"),this.finishToken(C.num,t)},e.prototype.readNumber=function(e){var t=this.state.pos,n=48===this.input.charCodeAt(t),r=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number"),n&&this.state.pos==t+1&&(n=!1);var i=this.input.charCodeAt(this.state.pos);46!==i||n||(++this.state.pos,this.readInt(10),r=!0,i=this.input.charCodeAt(this.state.pos)),69!==i&&101!==i||n||(43!==(i=this.input.charCodeAt(++this.state.pos))&&45!==i||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0),d(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number");var o=this.input.slice(t,this.state.pos),a=void 0;return r?a=parseFloat(o):n&&1!==o.length?this.state.strict?this.raise(t,"Invalid number"):a=/[89]/.test(o)?parseInt(o,10):parseInt(o,8):a=parseInt(o,10),this.finishToken(C.num,a)},e.prototype.readCodePoint=function(e){var t=void 0;if(123===this.input.charCodeAt(this.state.pos)){var n=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=n-2,null;this.raise(n,"Code point out of bounds")}}else t=this.readHexChar(4,e);return t},e.prototype.readString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.state.pos),t+=this.readEscapedChar(!1),n=this.state.pos):(P(r)&&this.raise(this.state.start,"Unterminated string constant"),++this.state.pos)}return t+=this.input.slice(n,this.state.pos++),this.finishToken(C.string,t)},e.prototype.readTmplToken=function(){for(var e="",t=this.state.pos,n=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(C.template)?36===r?(this.state.pos+=2,this.finishToken(C.dollarBraceL)):(++this.state.pos,this.finishToken(C.backQuote)):(e+=this.input.slice(t,this.state.pos),this.finishToken(C.template,n?null:e));if(92===r){e+=this.input.slice(t,this.state.pos);var i=this.readEscapedChar(!0);null===i?n=!0:e+=i,t=this.state.pos}else if(P(r)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},e.prototype.readEscapedChar=function(e){var t=!e,n=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,n){case 110:return"\n";case 114:return"\r";case 120:var r=this.readHexChar(2,t);return null===r?null:String.fromCharCode(r);case 117:var i=this.readCodePoint(t);return null===i?null:B(i);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(n>=48&&n<=55){var o=this.state.pos-1,a=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(a,8);if(s>255&&(a=a.slice(0,-1),s=parseInt(a,8)),s>0){if(e)return this.state.invalidTemplateEscapePosition=o,null;this.state.strict?this.raise(o,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=o)}return this.state.pos+=a.length-1,String.fromCharCode(s)}return String.fromCharCode(n)}},e.prototype.readHexChar=function(e,t){var n=this.state.pos,r=this.readInt(16,e);return null===r&&(t?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),r},e.prototype.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,n=this.state.pos;this.state.pos-1)||!!this.plugins[e]},t.prototype.extend=function(e,t){this[e]=t(this[e])},t.prototype.loadAllPlugins=function(){var e=this,t=Object.keys(z).filter((function(e){return"flow"!==e&&"estree"!==e}));t.push("flow"),t.forEach((function(t){var n=z[t];n&&n(e)}))},t.prototype.loadPlugins=function(e){if(e.indexOf("*")>=0)return this.loadAllPlugins(),{"*":!0};var t={};e.indexOf("flow")>=0&&(e=e.filter((function(e){return"flow"!==e})),e.push("flow")),e.indexOf("estree")>=0&&(e=e.filter((function(e){return"estree"!==e})),e.unshift("estree"));var n=e,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;if(!t[a]){t[a]=!0;var s=z[a];s&&s(this)}}return t},t.prototype.parse=function(){var e=this.startNode(),t=this.startNode();return this.nextToken(),this.parseTopLevel(e,t)},t}(q),W=U.prototype;W.addExtra=function(e,t,n){e&&((e.extra=e.extra||{})[t]=n)},W.isRelational=function(e){return this.match(C.relational)&&this.state.value===e},W.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,C.relational)},W.isContextual=function(e){return this.match(C.name)&&this.state.value===e},W.eatContextual=function(e){return this.state.value===e&&this.eat(C.name)},W.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},W.canInsertSemicolon=function(){return this.match(C.eof)||this.match(C.braceR)||D.test(this.input.slice(this.state.lastTokEnd,this.state.start))},W.isLineTerminator=function(){return this.eat(C.semi)||this.canInsertSemicolon()},W.semicolon=function(){this.isLineTerminator()||this.unexpected(null,C.semi)},W.expect=function(e,t){return this.eat(e)||this.unexpected(t,e)},W.unexpected=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected token";t&&"object"===(void 0===t?"undefined":y(t))&&t.label&&(t="Unexpected token, expected "+t.label),this.raise(null!=e?e:this.state.start,t)};var Y=U.prototype;Y.parseTopLevel=function(e,t){return t.sourceType=this.options.sourceType,this.parseBlockBody(t,!0,!0,C.eof),e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,e.tokens=this.state.tokens,this.finishNode(e,"File")};var X={kind:"loop"},H={kind:"switch"};Y.stmtToDirective=function(e){var t=e.expression,n=this.startNodeAt(t.start,t.loc.start),r=this.startNodeAt(e.start,e.loc.start),i=this.input.slice(t.start,t.end),o=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",o),r.value=this.finishNodeAt(n,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(r,"Directive",e.end,e.loc.end)},Y.parseStatement=function(e,t){this.match(C.at)&&this.parseDecorators(!0);var n=this.state.type,r=this.startNode();switch(n){case C._break:case C._continue:return this.parseBreakContinueStatement(r,n.keyword);case C._debugger:return this.parseDebuggerStatement(r);case C._do:return this.parseDoStatement(r);case C._for:return this.parseForStatement(r);case C._function:return e||this.unexpected(),this.parseFunctionStatement(r);case C._class:return e||this.unexpected(),this.parseClass(r,!0);case C._if:return this.parseIfStatement(r);case C._return:return this.parseReturnStatement(r);case C._switch:return this.parseSwitchStatement(r);case C._throw:return this.parseThrowStatement(r);case C._try:return this.parseTryStatement(r);case C._let:case C._const:e||this.unexpected();case C._var:return this.parseVarStatement(r,n);case C._while:return this.parseWhileStatement(r);case C._with:return this.parseWithStatement(r);case C.braceL:return this.parseBlock();case C.semi:return this.parseEmptyStatement(r);case C._export:case C._import:if(this.hasPlugin("dynamicImport")&&this.lookahead().type===C.parenL)break;return this.options.allowImportExportEverywhere||(t||this.raise(this.state.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.state.start,"'import' and 'export' may appear only with 'sourceType: \"module\"'")),n===C._import?this.parseImport(r):this.parseExport(r);case C.name:if("async"===this.state.value){var i=this.state.clone();if(this.next(),this.match(C._function)&&!this.canInsertSemicolon())return this.expect(C._function),this.parseFunction(r,!0,!1,!0);this.state=i}}var o=this.state.value,a=this.parseExpression();return n===C.name&&"Identifier"===a.type&&this.eat(C.colon)?this.parseLabeledStatement(r,o,a):this.parseExpressionStatement(r,a)},Y.takeDecorators=function(e){this.state.decorators.length&&(e.decorators=this.state.decorators,this.state.decorators=[])},Y.parseDecorators=function(e){for(;this.match(C.at);){var t=this.parseDecorator();this.state.decorators.push(t)}e&&this.match(C._export)||this.match(C._class)||this.raise(this.state.start,"Leading decorators must be attached to a class declaration")},Y.parseDecorator=function(){this.hasPlugin("decorators")||this.unexpected();var e=this.startNode();return this.next(),e.expression=this.parseMaybeAssign(),this.finishNode(e,"Decorator")},Y.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.isLineTerminator()?e.label=null:this.match(C.name)?(e.label=this.parseIdentifier(),this.semicolon()):this.unexpected();var r=void 0;for(r=0;r=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}a.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var s=this.state.type.isLoop?"loop":this.match(C._switch)?"switch":null,u=this.state.labels.length-1;u>=0;u--){var l=this.state.labels[u];if(l.statementStart!==e.start)break;l.statementStart=this.state.start,l.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=this.parseStatement(!0),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},Y.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Y.parseBlock=function(e){var t=this.startNode();return this.expect(C.braceL),this.parseBlockBody(t,e,!1,C.braceR),this.finishNode(t,"BlockStatement")},Y.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},Y.parseBlockBody=function(e,t,n,r){e.body=[],e.directives=[];for(var i=!1,o=void 0,a=void 0;!this.eat(r);){i||!this.state.containsOctal||a||(a=this.state.octalPosition);var s=this.parseStatement(!0,n);if(t&&!i&&this.isValidDirective(s)){var u=this.stmtToDirective(s);e.directives.push(u),void 0===o&&"use strict"===u.value.value&&(o=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else i=!0,e.body.push(s)}!1===o&&this.setStrict(!1)},Y.parseFor=function(e,t){return e.init=t,this.expect(C.semi),e.test=this.match(C.semi)?null:this.parseExpression(),this.expect(C.semi),e.update=this.match(C.parenR)?null:this.parseExpression(),this.expect(C.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,"ForStatement")},Y.parseForIn=function(e,t,n){var r=void 0;return n?(this.eatContextual("of"),r="ForAwaitStatement"):(r=this.match(C._in)?"ForInStatement":"ForOfStatement",this.next()),e.left=t,e.right=this.parseExpression(),this.expect(C.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,r)},Y.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n.keyword;;){var r=this.startNode();if(this.parseVarHead(r),this.eat(C.eq)?r.init=this.parseMaybeAssign(t):n!==C._const||this.match(C._in)||this.isContextual("of")?"Identifier"===r.id.type||t&&(this.match(C._in)||this.isContextual("of"))?r.init=null:this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(C.comma))break}return e},Y.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0,void 0,"variable declaration")},Y.parseFunction=function(e,t,n,r,i){var o=this.state.inMethod;return this.state.inMethod=!1,this.initFunction(e,r),this.match(C.star)&&(e.async&&!this.hasPlugin("asyncGenerators")?this.unexpected():(e.generator=!0,this.next())),!t||i||this.match(C.name)||this.match(C._yield)||this.unexpected(),(this.match(C.name)||this.match(C._yield))&&(e.id=this.parseBindingIdentifier()),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.state.inMethod=o,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},Y.parseFunctionParams=function(e){this.expect(C.parenL),e.params=this.parseBindingList(C.parenR)},Y.parseClass=function(e,t,n){return this.next(),this.takeDecorators(e),this.parseClassId(e,t,n),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Y.isClassProperty=function(){return this.match(C.eq)||this.match(C.semi)||this.match(C.braceR)},Y.isClassMethod=function(){return this.match(C.parenL)},Y.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},Y.parseClassBody=function(e){var t=this.state.strict;this.state.strict=!0;var n=!1,r=!1,i=[],o=this.startNode();for(o.body=[],this.expect(C.braceL);!this.eat(C.braceR);)if(this.eat(C.semi))i.length>0&&this.raise(this.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(this.match(C.at))i.push(this.parseDecorator());else{var a=this.startNode();if(i.length&&(a.decorators=i,i=[]),a.static=!1,this.match(C.name)&&"static"===this.state.value){var s=this.parseIdentifier(!0);if(this.isClassMethod()){a.kind="method",a.computed=!1,a.key=s,this.parseClassMethod(o,a,!1,!1);continue}if(this.isClassProperty()){a.computed=!1,a.key=s,o.body.push(this.parseClassProperty(a));continue}a.static=!0}if(this.eat(C.star))a.kind="method",this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be a generator"),a.computed||!a.static||"prototype"!==a.key.name&&"prototype"!==a.key.value||this.raise(a.key.start,"Classes may not have static property named prototype"),this.parseClassMethod(o,a,!0,!1);else{var u=this.match(C.name),l=this.parsePropertyName(a);if(a.computed||!a.static||"prototype"!==a.key.name&&"prototype"!==a.key.value||this.raise(a.key.start,"Classes may not have static property named prototype"),this.isClassMethod())this.isNonstaticConstructor(a)?(r?this.raise(l.start,"Duplicate constructor in the same class"):a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),r=!0,a.kind="constructor"):a.kind="method",this.parseClassMethod(o,a,!1,!1);else if(this.isClassProperty())this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Classes may not have a non-static field named 'constructor'"),o.body.push(this.parseClassProperty(a));else if(u&&"async"===l.name&&!this.isLineTerminator()){var c=this.hasPlugin("asyncGenerators")&&this.eat(C.star);a.kind="method",this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be an async function"),this.parseClassMethod(o,a,c,!0)}else!u||"get"!==l.name&&"set"!==l.name||this.isLineTerminator()&&this.match(C.star)?this.hasPlugin("classConstructorCall")&&u&&"call"===l.name&&this.match(C.name)&&"constructor"===this.state.value?(n?this.raise(a.start,"Duplicate constructor call in the same class"):a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),n=!0,a.kind="constructorCall",this.parsePropertyName(a),this.parseClassMethod(o,a,!1,!1)):this.isLineTerminator()?(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Classes may not have a non-static field named 'constructor'"),o.body.push(this.parseClassProperty(a))):this.unexpected():(a.kind=l.name,this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't have get/set modifier"),this.parseClassMethod(o,a,!1,!1),this.checkGetterSetterParamCount(a))}}i.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(o,"ClassBody"),this.state.strict=t},Y.parseClassProperty=function(e){return this.state.inClassProperty=!0,this.match(C.eq)?(this.hasPlugin("classProperties")||this.unexpected(),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.finishNode(e,"ClassProperty")},Y.parseClassMethod=function(e,t,n,r){this.parseMethod(t,n,r),e.body.push(this.finishNode(t,"ClassMethod"))},Y.parseClassId=function(e,t,n){this.match(C.name)?e.id=this.parseIdentifier():n||!t?e.id=null:this.unexpected()},Y.parseClassSuper=function(e){e.superClass=this.eat(C._extends)?this.parseExprSubscripts():null},Y.parseExport=function(e){if(this.next(),this.match(C.star)){var t=this.startNode();if(this.next(),!this.hasPlugin("exportExtensions")||!this.eatContextual("as"))return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");t.exported=this.parseIdentifier(),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)}else if(this.hasPlugin("exportExtensions")&&this.isExportDefaultSpecifier()){var n=this.startNode();if(n.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],this.match(C.comma)&&this.lookahead().type===C.star){this.expect(C.comma);var r=this.startNode();this.expect(C.star),this.expectContextual("as"),r.exported=this.parseIdentifier(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(C._default)){var i=this.startNode(),o=!1;return this.eat(C._function)?i=this.parseFunction(i,!0,!1,!1,!0):this.match(C._class)?i=this.parseClass(i,!0,!0):(o=!0,i=this.parseMaybeAssign()),e.declaration=i,o&&this.semicolon(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration")}this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)):(e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e))}return this.checkExport(e,!0),this.finishNode(e,"ExportNamedDeclaration")},Y.parseExportDeclaration=function(){return this.parseStatement(!0)},Y.isExportDefaultSpecifier=function(){if(this.match(C.name))return"async"!==this.state.value;if(!this.match(C._default))return!1;var e=this.lookahead();return e.type===C.comma||e.type===C.name&&"from"===e.value},Y.parseExportSpecifiersMaybe=function(e){this.eat(C.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},Y.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(C.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},Y.shouldParseExportDeclaration=function(){return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isContextual("async")},Y.checkExport=function(e,t,n){if(t)if(n)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length){var r=e.specifiers,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;this.checkDuplicateExports(s,s.exported.name)}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)this.checkDuplicateExports(e,e.declaration.id.name);else if("VariableDeclaration"===e.declaration.type){var u=e.declaration.declarations,l=Array.isArray(u),c=0;for(u=l?u:u[Symbol.iterator]();;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;this.checkDeclaration(p.id)}}if(this.state.decorators.length){var d=e.declaration&&("ClassDeclaration"===e.declaration.type||"ClassExpression"===e.declaration.type);e.declaration&&d||this.raise(e.start,"You can only use decorators on an export when exporting a class"),this.takeDecorators(e.declaration)}},Y.checkDeclaration=function(e){if("ObjectPattern"===e.type){var t=e.properties,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;this.checkDeclaration(o)}}else if("ArrayPattern"===e.type){var a=e.elements,s=Array.isArray(a),u=0;for(a=s?a:a[Symbol.iterator]();;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var c=l;c&&this.checkDeclaration(c)}}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type||"RestProperty"===e.type?this.checkDeclaration(e.argument):"Identifier"===e.type&&this.checkDuplicateExports(e,e.name)},Y.checkDuplicateExports=function(e,t){this.state.exportedIdentifiers.indexOf(t)>-1&&this.raiseDuplicateExportError(e,t),this.state.exportedIdentifiers.push(t)},Y.raiseDuplicateExportError=function(e,t){this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`"+t+"` has already been exported. Exported identifiers must be unique.")},Y.parseExportSpecifiers=function(){var e=[],t=!0,n=void 0;for(this.expect(C.braceL);!this.eat(C.braceR);){if(t)t=!1;else if(this.expect(C.comma),this.eat(C.braceR))break;var r=this.match(C._default);r&&!n&&(n=!0);var i=this.startNode();i.local=this.parseIdentifier(r),i.exported=this.eatContextual("as")?this.parseIdentifier(!0):i.local.__clone(),e.push(this.finishNode(i,"ExportSpecifier"))}return n&&!this.isContextual("from")&&this.unexpected(),e},Y.parseImport=function(e){return this.eat(C._import),this.match(C.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(C.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Y.parseImportSpecifiers=function(e){var t=!0;if(this.match(C.name)){var n=this.state.start,r=this.state.startLoc;if(e.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(),n,r)),!this.eat(C.comma))return}if(this.match(C.star)){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdentifier(),this.checkLVal(i.local,!0,void 0,"import namespace specifier"),void e.specifiers.push(this.finishNode(i,"ImportNamespaceSpecifier"))}for(this.expect(C.braceL);!this.eat(C.braceR);){if(t)t=!1;else if(this.eat(C.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(C.comma),this.eat(C.braceR))break;this.parseImportSpecifier(e)}},Y.parseImportSpecifier=function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},Y.parseImportSpecifierDefault=function(e,t,n){var r=this.startNodeAt(t,n);return r.local=e,this.checkLVal(r.local,!0,void 0,"default import specifier"),this.finishNode(r,"ImportDefaultSpecifier")};var $=U.prototype;$.toAssignable=function(e,t,n){if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";var r=e.properties,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;"ObjectMethod"===s.type?"get"===s.kind||"set"===s.kind?this.raise(s.key.start,"Object pattern can't contain getter or setter"):this.raise(s.key.start,"Object pattern can't contain methods"):this.toAssignable(s,t,"object destructuring pattern")}break;case"ObjectProperty":this.toAssignable(e.value,t,n);break;case"SpreadProperty":e.type="RestProperty";var u=e.argument;this.toAssignable(u,t,n);break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,t,n);break;case"AssignmentExpression":"="===e.operator?(e.type="AssignmentPattern",delete e.operator):this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break;case"MemberExpression":if(!t)break;default:var l="Invalid left-hand side"+(n?" in "+n:"expression");this.raise(e.start,l)}return e},$.toAssignableList=function(e,t,n){var r=e.length;if(r){var i=e[r-1];if(i&&"RestElement"===i.type)--r;else if(i&&"SpreadElement"===i.type){i.type="RestElement";var o=i.argument;this.toAssignable(o,t,n),"Identifier"!==o.type&&"MemberExpression"!==o.type&&"ArrayPattern"!==o.type&&this.unexpected(o.start),--r}}for(var a=0;a=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var l=u;"ObjectProperty"===l.type&&(l=l.value),this.checkLVal(l,t,n,"object destructuring pattern")}break;case"ArrayPattern":var c=e.elements,f=Array.isArray(c),p=0;for(c=f?c:c[Symbol.iterator]();;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}var h=d;h&&this.checkLVal(h,t,n,"array destructuring pattern")}break;case"AssignmentPattern":this.checkLVal(e.left,t,n,"assignment pattern");break;case"RestProperty":this.checkLVal(e.argument,t,n,"rest property");break;case"RestElement":this.checkLVal(e.argument,t,n,"rest element");break;default:var m=(t?"Binding invalid":"Invalid")+" left-hand side"+(r?" in "+r:"expression");this.raise(e.start,m)}};var K=U.prototype;K.checkPropClash=function(e,t){if(!e.computed&&!e.kind){var n=e.key;"__proto__"===("Identifier"===n.type?n.name:String(n.value))&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}},K.getExpression=function(){this.nextToken();var e=this.parseExpression();return this.match(C.eof)||this.unexpected(),e},K.parseExpression=function(e,t){var n=this.state.start,r=this.state.startLoc,i=this.parseMaybeAssign(e,t);if(this.match(C.comma)){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(C.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(o.expressions),this.finishNode(o,"SequenceExpression")}return i},K.parseMaybeAssign=function(e,t,n,r){var i=this.state.start,o=this.state.startLoc;if(this.match(C._yield)&&this.state.inGenerator){var a=this.parseYield();return n&&(a=n.call(this,a,i,o)),a}var s=void 0;t?s=!1:(t={start:0},s=!0),(this.match(C.parenL)||this.match(C.name))&&(this.state.potentialArrowAt=this.state.start);var u=this.parseMaybeConditional(e,t,r);if(n&&(u=n.call(this,u,i,o)),this.state.type.isAssign){var l=this.startNodeAt(i,o);if(l.operator=this.state.value,l.left=this.match(C.eq)?this.toAssignable(u,void 0,"assignment expression"):u,t.start=0,this.checkLVal(u,void 0,void 0,"assignment expression"),u.extra&&u.extra.parenthesized){var c=void 0;"ObjectPattern"===u.type?c="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===u.type&&(c="`([a]) = 0` use `([a] = 0)`"),c&&this.raise(u.start,"You're trying to assign to a parenthesized expression, eg. instead of "+c)}return this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return s&&t.start&&this.unexpected(t.start),u},K.parseMaybeConditional=function(e,t,n){var r=this.state.start,i=this.state.startLoc,o=this.parseExprOps(e,t);return t&&t.start?o:this.parseConditional(o,e,r,i,n)},K.parseConditional=function(e,t,n,r){if(this.eat(C.question)){var i=this.startNodeAt(n,r);return i.test=e,i.consequent=this.parseMaybeAssign(),this.expect(C.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return e},K.parseExprOps=function(e,t){var n=this.state.start,r=this.state.startLoc,i=this.parseMaybeUnary(t);return t&&t.start?i:this.parseExprOp(i,n,r,-1,e)},K.parseExprOp=function(e,t,n,r,i){var o=this.state.type.binop;if(!(null==o||i&&this.match(C._in))&&o>r){var a=this.startNodeAt(t,n);a.left=e,a.operator=this.state.value,"**"!==a.operator||"UnaryExpression"!==e.type||!e.extra||e.extra.parenthesizedArgument||e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var s=this.state.type;this.next();var u=this.state.start,l=this.state.startLoc;return a.right=this.parseExprOp(this.parseMaybeUnary(),u,l,s.rightAssociative?o-1:o,i),this.finishNode(a,s===C.logicalOR||s===C.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,t,n,r,i)}return e},K.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),n=this.match(C.incDec);t.operator=this.state.value,t.prefix=!0,this.next();var r=this.state.type;return t.argument=this.parseMaybeUnary(),this.addExtra(t,"parenthesizedArgument",!(r!==C.parenL||t.argument.extra&&t.argument.extra.parenthesized)),e&&e.start&&this.unexpected(e.start),n?this.checkLVal(t.argument,void 0,void 0,"prefix operation"):this.state.strict&&"delete"===t.operator&&"Identifier"===t.argument.type&&this.raise(t.start,"Deleting local variable in strict mode"),this.finishNode(t,n?"UpdateExpression":"UnaryExpression")}var i=this.state.start,o=this.state.startLoc,a=this.parseExprSubscripts(e);if(e&&e.start)return a;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(i,o);s.operator=this.state.value,s.prefix=!1,s.argument=a,this.checkLVal(a,void 0,void 0,"postfix operation"),this.next(),a=this.finishNode(s,"UpdateExpression")}return a},K.parseExprSubscripts=function(e){var t=this.state.start,n=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprAtom(e);return"ArrowFunctionExpression"===i.type&&i.start===r||e&&e.start?i:this.parseSubscripts(i,t,n)},K.parseSubscripts=function(e,t,n,r){for(;;){if(!r&&this.eat(C.doubleColon)){var i=this.startNodeAt(t,n);return i.object=e,i.callee=this.parseNoCallExpr(),this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n,r)}if(this.eat(C.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=this.parseIdentifier(!0),o.computed=!1,e=this.finishNode(o,"MemberExpression")}else if(this.eat(C.bracketL)){var a=this.startNodeAt(t,n);a.object=e,a.property=this.parseExpression(),a.computed=!0,this.expect(C.bracketR),e=this.finishNode(a,"MemberExpression")}else if(!r&&this.match(C.parenL)){var s=this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon();this.next();var u=this.startNodeAt(t,n);if(u.callee=e,u.arguments=this.parseCallExpressionArguments(C.parenR,s),"Import"===u.callee.type&&1!==u.arguments.length&&this.raise(u.start,"import() requires exactly one argument"),e=this.finishNode(u,"CallExpression"),s&&this.shouldParseAsyncArrow())return this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,n),u);this.toReferencedList(u.arguments)}else{if(!this.match(C.backQuote))return e;var l=this.startNodeAt(t,n);l.tag=e,l.quasi=this.parseTemplate(!0),e=this.finishNode(l,"TaggedTemplateExpression")}}},K.parseCallExpressionArguments=function(e,t){for(var n=[],r=void 0,i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(C.comma),this.eat(e))break;this.match(C.parenL)&&!r&&(r=this.state.start),n.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0))}return t&&r&&this.shouldParseAsyncArrow()&&this.unexpected(),n},K.shouldParseAsyncArrow=function(){return this.match(C.arrow)},K.parseAsyncArrowFromCallExpression=function(e,t){return this.expect(C.arrow),this.parseArrowExpression(e,t.arguments,!0)},K.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},K.parseExprAtom=function(e){var t=this.state.potentialArrowAt===this.state.start,n=void 0;switch(this.state.type){case C._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"'super' outside of function or class"),n=this.startNode(),this.next(),this.match(C.parenL)||this.match(C.bracketL)||this.match(C.dot)||this.unexpected(),this.match(C.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(n.start,"super() outside of class constructor"),this.finishNode(n,"Super");case C._import:return this.hasPlugin("dynamicImport")||this.unexpected(),n=this.startNode(),this.next(),this.match(C.parenL)||this.unexpected(null,C.parenL),this.finishNode(n,"Import");case C._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case C._yield:this.state.inGenerator&&this.unexpected();case C.name:n=this.startNode();var r="await"===this.state.value&&this.state.inAsync,i=this.shouldAllowYieldIdentifier(),o=this.parseIdentifier(r||i);if("await"===o.name){if(this.state.inAsync||this.inModule)return this.parseAwait(n)}else{if("async"===o.name&&this.match(C._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(n,!1,!1,!0);if(t&&"async"===o.name&&this.match(C.name)){var a=[this.parseIdentifier()];return this.expect(C.arrow),this.parseArrowExpression(n,a,!0)}}return t&&!this.canInsertSemicolon()&&this.eat(C.arrow)?this.parseArrowExpression(n,[o]):o;case C._do:if(this.hasPlugin("doExpressions")){var s=this.startNode();this.next();var u=this.state.inFunction,l=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,s.body=this.parseBlock(!1,!0),this.state.inFunction=u,this.state.labels=l,this.finishNode(s,"DoExpression")}case C.regexp:var c=this.state.value;return(n=this.parseLiteral(c.value,"RegExpLiteral")).pattern=c.pattern,n.flags=c.flags,n;case C.num:return this.parseLiteral(this.state.value,"NumericLiteral");case C.string:return this.parseLiteral(this.state.value,"StringLiteral");case C._null:return n=this.startNode(),this.next(),this.finishNode(n,"NullLiteral");case C._true:case C._false:return(n=this.startNode()).value=this.match(C._true),this.next(),this.finishNode(n,"BooleanLiteral");case C.parenL:return this.parseParenAndDistinguishExpression(null,null,t);case C.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(C.bracketR,!0,e),this.toReferencedList(n.elements),this.finishNode(n,"ArrayExpression");case C.braceL:return this.parseObj(!1,e);case C._function:return this.parseFunctionExpression();case C.at:this.parseDecorators();case C._class:return n=this.startNode(),this.takeDecorators(n),this.parseClass(n,!1);case C._new:return this.parseNew();case C.backQuote:return this.parseTemplate(!1);case C.doubleColon:n=this.startNode(),this.next(),n.object=null;var f=n.callee=this.parseNoCallExpr();if("MemberExpression"===f.type)return this.finishNode(n,"BindExpression");this.raise(f.start,"Binding should be performed on object property.");default:this.unexpected()}},K.parseFunctionExpression=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.state.inGenerator&&this.eat(C.dot)&&this.hasPlugin("functionSent")?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},K.parseMetaProperty=function(e,t,n){return e.meta=t,e.property=this.parseIdentifier(!0),e.property.name!==n&&this.raise(e.property.start,"The only valid meta property for new is "+t.name+"."+n),this.finishNode(e,"MetaProperty")},K.parseLiteral=function(e,t,n,r){n=n||this.state.start,r=r||this.state.startLoc;var i=this.startNodeAt(n,r);return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(n,this.state.end)),i.value=e,this.next(),this.finishNode(i,t)},K.parseParenExpression=function(){this.expect(C.parenL);var e=this.parseExpression();return this.expect(C.parenR),e},K.parseParenAndDistinguishExpression=function(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;var r=void 0;this.expect(C.parenL);for(var i=this.state.start,o=this.state.startLoc,a=[],s={start:0},u={start:0},l=!0,c=void 0,f=void 0;!this.match(C.parenR);){if(l)l=!1;else if(this.expect(C.comma,u.start||null),this.match(C.parenR)){f=this.state.start;break}if(this.match(C.ellipsis)){var p=this.state.start,d=this.state.startLoc;c=this.state.start,a.push(this.parseParenItem(this.parseRest(),p,d));break}a.push(this.parseMaybeAssign(!1,s,this.parseParenItem,u))}var h=this.state.start,m=this.state.startLoc;this.expect(C.parenR);var y=this.startNodeAt(e,t);if(n&&this.shouldParseArrow()&&(y=this.parseArrow(y))){var v=a,g=Array.isArray(v),b=0;for(v=g?v:v[Symbol.iterator]();;){var x;if(g){if(b>=v.length)break;x=v[b++]}else{if((b=v.next()).done)break;x=b.value}var _=x;_.extra&&_.extra.parenthesized&&this.unexpected(_.extra.parenStart)}return this.parseArrowExpression(y,a)}return a.length||this.unexpected(this.state.lastTokStart),f&&this.unexpected(f),c&&this.unexpected(c),s.start&&this.unexpected(s.start),u.start&&this.unexpected(u.start),a.length>1?((r=this.startNodeAt(i,o)).expressions=a,this.toReferencedList(r.expressions),this.finishNodeAt(r,"SequenceExpression",h,m)):r=a[0],this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e),r},K.shouldParseArrow=function(){return!this.canInsertSemicolon()},K.parseArrow=function(e){if(this.eat(C.arrow))return e},K.parseParenItem=function(e){return e},K.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(C.dot)){var n=this.parseMetaProperty(e,t,"target");return this.state.inFunction||this.raise(n.property.start,"new.target can only be used in functions"),n}return e.callee=this.parseNoCallExpr(),this.eat(C.parenL)?(e.arguments=this.parseExprList(C.parenR),this.toReferencedList(e.arguments)):e.arguments=[],this.finishNode(e,"NewExpression")},K.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e&&this.hasPlugin("templateInvalidEscapes")?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(C.backQuote),this.finishNode(t,"TemplateElement")},K.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)this.expect(C.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(C.braceR),t.quasis.push(n=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},K.parseObj=function(e,t){var n=[],r=Object.create(null),i=!0,o=this.startNode();o.properties=[],this.next();for(var a=null;!this.eat(C.braceR);){if(i)i=!1;else if(this.expect(C.comma),this.eat(C.braceR))break;for(;this.match(C.at);)n.push(this.parseDecorator());var s=this.startNode(),u=!1,l=!1,c=void 0,f=void 0;if(n.length&&(s.decorators=n,n=[]),this.hasPlugin("objectRestSpread")&&this.match(C.ellipsis)){if((s=this.parseSpread(e?{start:0}:void 0)).type=e?"RestProperty":"SpreadProperty",e&&this.toAssignable(s.argument,!0,"object pattern"),o.properties.push(s),!e)continue;var p=this.state.start;if(null===a){if(this.eat(C.braceR))break;if(this.match(C.comma)&&this.lookahead().type===C.braceR)continue;a=p;continue}this.unexpected(a,"Cannot have multiple rest elements when destructuring")}if(s.method=!1,s.shorthand=!1,(e||t)&&(c=this.state.start,f=this.state.startLoc),e||(u=this.eat(C.star)),!e&&this.isContextual("async")){u&&this.unexpected();var d=this.parseIdentifier();this.match(C.colon)||this.match(C.parenL)||this.match(C.braceR)||this.match(C.eq)||this.match(C.comma)?(s.key=d,s.computed=!1):(l=!0,this.hasPlugin("asyncGenerators")&&(u=this.eat(C.star)),this.parsePropertyName(s))}else this.parsePropertyName(s);this.parseObjPropValue(s,c,f,u,l,e,t),this.checkPropClash(s,r),s.shorthand&&this.addExtra(s,"shorthand",!0),o.properties.push(s)}return null!==a&&this.unexpected(a,"The rest element has to be the last element when destructuring"),n.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(o,e?"ObjectPattern":"ObjectExpression")},K.isGetterOrSetterMethod=function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(C.string)||this.match(C.num)||this.match(C.bracketL)||this.match(C.name)||this.state.type.keyword)},K.checkGetterSetterParamCount=function(e){var t="get"===e.kind?0:1;if(e.params.length!==t){var n=e.start;"get"===e.kind?this.raise(n,"getter should have no params"):this.raise(n,"setter should have exactly one param")}},K.parseObjectMethod=function(e,t,n,r){return n||t||this.match(C.parenL)?(r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n),this.finishNode(e,"ObjectMethod")):this.isGetterOrSetterMethod(e,r)?((t||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e),this.checkGetterSetterParamCount(e),this.finishNode(e,"ObjectMethod")):void 0},K.parseObjectProperty=function(e,t,n,r,i){return this.eat(C.colon)?(e.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,i),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),r?e.value=this.parseMaybeDefault(t,n,e.key.__clone()):this.match(C.eq)&&i?(i.start||(i.start=this.state.start),e.value=this.parseMaybeDefault(t,n,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))},K.parseObjPropValue=function(e,t,n,r,i,o,a){var s=this.parseObjectMethod(e,r,i,o)||this.parseObjectProperty(e,t,n,o,a);return s||this.unexpected(),s},K.parsePropertyName=function(e){if(this.eat(C.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(C.bracketR);else{e.computed=!1;var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(C.num)||this.match(C.string)?this.parseExprAtom():this.parseIdentifier(!0),this.state.inPropertyName=t}return e.key},K.initFunction=function(e,t){e.id=null,e.generator=!1,e.expression=!1,e.async=!!t},K.parseMethod=function(e,t,n){var r=this.state.inMethod;return this.state.inMethod=e.kind||!0,this.initFunction(e,n),this.expect(C.parenL),e.params=this.parseBindingList(C.parenR),e.generator=!!t,this.parseFunctionBody(e),this.state.inMethod=r,e},K.parseArrowExpression=function(e,t,n){return this.initFunction(e,n),e.params=this.toAssignableList(t,!0,"arrow function parameters"),this.parseFunctionBody(e,!0),this.finishNode(e,"ArrowFunctionExpression")},K.isStrictBody=function(e,t){if(!t&&e.body.directives.length){var n=e.body.directives,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}if("use strict"===o.value.value)return!0}}return!1},K.parseFunctionBody=function(e,t){var n=t&&!this.match(C.braceL),r=this.state.inAsync;if(this.state.inAsync=e.async,n)e.body=this.parseMaybeAssign(),e.expression=!0;else{var i=this.state.inFunction,o=this.state.inGenerator,a=this.state.labels;this.state.inFunction=!0,this.state.inGenerator=e.generator,this.state.labels=[],e.body=this.parseBlock(!0),e.expression=!1,this.state.inFunction=i,this.state.inGenerator=o,this.state.labels=a}this.state.inAsync=r;var s=this.isStrictBody(e,n),u=this.state.strict||t||s;if(s&&e.id&&"Identifier"===e.id.type&&"yield"===e.id.name&&this.raise(e.id.start,"Binding yield in strict mode"),u){var l=Object.create(null),c=this.state.strict;s&&(this.state.strict=!0),e.id&&this.checkLVal(e.id,!0,void 0,"function name");var f=e.params,p=Array.isArray(f),d=0;for(f=p?f:f[Symbol.iterator]();;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if((d=f.next()).done)break;h=d.value}var m=h;s&&"Identifier"!==m.type&&this.raise(m.start,"Non-simple parameter in strict mode"),this.checkLVal(m,!0,l,"function parameter list")}this.state.strict=c}},K.parseExprList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(C.comma),this.eat(e))break;r.push(this.parseExprListItem(t,n))}return r},K.parseExprListItem=function(e,t,n){return e&&this.match(C.comma)?null:this.match(C.ellipsis)?this.parseSpread(t):this.parseMaybeAssign(!1,t,this.parseParenItem,n)},K.parseIdentifier=function(e){var t=this.startNode();return e||this.checkReservedWord(this.state.value,this.state.start,!!this.state.type.keyword,!1),this.match(C.name)?t.name=this.state.value:this.state.type.keyword?t.name=this.state.type.keyword:this.unexpected(),!e&&"await"===t.name&&this.state.inAsync&&this.raise(t.start,"invalid use of await inside of an async function"),t.loc.identifierName=t.name,this.next(),this.finishNode(t,"Identifier")},K.checkReservedWord=function(e,t,n,r){(this.isReservedWord(e)||n&&this.isKeyword(e))&&this.raise(t,e+" is a reserved word"),this.state.strict&&(i.strict(e)||r&&i.strictBind(e))&&this.raise(t,e+" is a reserved word in strict mode")},K.parseAwait=function(e){return this.state.inAsync||this.unexpected(),this.match(C.star)&&this.raise(e.start,"await* has been removed from the async functions proposal. Use Promise.all() instead."),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},K.parseYield=function(){var e=this.startNode();return this.next(),this.match(C.semi)||this.canInsertSemicolon()||!this.match(C.star)&&!this.state.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(C.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")};var Z=U.prototype,J=["leadingComments","trailingComments","innerComments"],Q=function(){function e(t,n,r){v(this,e),this.type="",this.start=t,this.end=0,this.loc=new R(n),r&&(this.loc.filename=r)}return e.prototype.__clone=function(){var t=new e;for(var n in this)J.indexOf(n)<0&&(t[n]=this[n]);return t},e}();function ee(e,t,n,r){return e.type=t,e.end=n,e.loc.end=r,this.processComment(e),e}function te(e){return e[e.length-1]}Z.startNode=function(){return new Q(this.state.start,this.state.startLoc,this.filename)},Z.startNodeAt=function(e,t){return new Q(e,t,this.filename)},Z.finishNode=function(e,t){return ee.call(this,e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)},Z.finishNodeAt=function(e,t,n,r){return ee.call(this,e,t,n,r)},U.prototype.raise=function(e,t){var n=function(e,t){for(var n=1,r=0;;){M.lastIndex=r;var i=M.exec(e);if(!(i&&i.index0)){var t=this.state.commentStack,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else{var s=te(t);t.length>0&&s.trailingComments&&s.trailingComments[0].start>=e.end&&(i=s.trailingComments,s.trailingComments=null)}for(t.length>0&&te(t).start>=e.start&&(n=t.pop());t.length>0&&te(t).start>=e.start;)r=t.pop();if(!r&&n&&(r=n),n&&this.state.leadingComments.length>0){var u=te(this.state.leadingComments);if("ObjectProperty"===n.type){if(u.start>=e.start&&this.state.commentPreviousNode){for(a=0;a0&&(n.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===e.type&&e.arguments&&e.arguments.length){var l=te(e.arguments);l&&u.start>=l.start&&u.end<=e.end&&this.state.commentPreviousNode&&this.state.leadingComments.length>0&&(l.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}if(r){if(r.leadingComments)if(r!==e&&te(r.leadingComments).end<=e.start)e.leadingComments=r.leadingComments,r.leadingComments=null;else for(o=r.leadingComments.length-2;o>=0;--o)if(r.leadingComments[o].end<=e.start){e.leadingComments=r.leadingComments.splice(0,o+1);break}}else if(this.state.leadingComments.length>0)if(te(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(o=0;oe.start);o++);e.leadingComments=this.state.leadingComments.slice(0,o),0===e.leadingComments.length&&(e.leadingComments=null),0===(i=this.state.leadingComments.slice(o)).length&&(i=null)}this.state.commentPreviousNode=e,i&&(i.length&&i[0].start>=e.start&&te(i).end<=e.end?e.innerComments=i:e.trailingComments=i),t.push(e)}};var re=U.prototype;function ie(e){return e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}re.estreeParseRegExpLiteral=function(e){var t=e.pattern,n=e.flags,r=null;try{r=new RegExp(t,n)}catch(e){}var i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i},re.estreeParseLiteral=function(e){return this.parseLiteral(e,"Literal")},re.directiveToStmt=function(e){var t=e.value,n=this.startNodeAt(e.start,e.loc.start),r=this.startNodeAt(t.start,t.loc.start);return r.value=t.value,r.raw=t.extra.raw,n.expression=this.finishNodeAt(r,"Literal",t.end,t.loc.end),n.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(n,"ExpressionStatement",e.end,e.loc.end)};var oe=["any","mixed","empty","bool","boolean","number","string","void","null"],ae=U.prototype;ae.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||C.colon);var n=this.flowParseType();return this.state.inType=t,n},ae.flowParsePredicate=function(){var e=this.startNode(),t=this.state.startLoc,n=this.state.start;this.expect(C.modulo);var r=this.state.startLoc;return this.expectContextual("checks"),t.line===r.line&&t.column===r.column-1||this.raise(n,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(C.parenL)?(e.expression=this.parseExpression(),this.expect(C.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},ae.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(C.colon);var t=null,n=null;return this.match(C.modulo)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(C.modulo)&&(n=this.flowParsePredicate())),[t,n]},ae.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},ae.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(C.parenL);var i=this.flowParseFunctionTypeParams();n.params=i.params,n.rest=i.rest,this.expect(C.parenR);var o,a=this.flowParseTypeAndPredicateInitialiser();return n.returnType=a[0],o=a[1],r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.predicate=o,t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},ae.flowParseDeclare=function(e){return this.match(C._class)?this.flowParseDeclareClass(e):this.match(C._function)?this.flowParseDeclareFunction(e):this.match(C._var)?this.flowParseDeclareVariable(e):this.isContextual("module")?this.lookahead().type===C.dot?this.flowParseDeclareModuleExports(e):this.flowParseDeclareModule(e):this.isContextual("type")?this.flowParseDeclareTypeAlias(e):this.isContextual("opaque")?this.flowParseDeclareOpaqueType(e):this.isContextual("interface")?this.flowParseDeclareInterface(e):this.match(C._export)?this.flowParseDeclareExportDeclaration(e):void this.unexpected()},ae.flowParseDeclareExportDeclaration=function(e){if(this.expect(C._export),this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");throw this.unexpected()},ae.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.semicolon(),this.finishNode(e,"DeclareVariable")},ae.flowParseDeclareModule=function(e){this.next(),this.match(C.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var t=e.body=this.startNode(),n=t.body=[];for(this.expect(C.braceL);!this.match(C.braceR);){var r=this.startNode();if(this.match(C._import)){var i=this.lookahead();"type"!==i.value&&"typeof"!==i.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseImport(r)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),r=this.flowParseDeclare(r,!0);n.push(r)}return this.expect(C.braceR),this.finishNode(t,"BlockStatement"),this.finishNode(e,"DeclareModule")},ae.flowParseDeclareModuleExports=function(e){return this.expectContextual("module"),this.expect(C.dot),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},ae.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},ae.flowParseDeclareOpaqueType=function(e){return this.next(),this.flowParseOpaqueType(e,!0),this.finishNode(e,"DeclareOpaqueType")},ae.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},ae.flowParseInterfaceish=function(e){if(e.id=this.parseIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.mixins=[],this.eat(C._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(C.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(C.comma))}e.body=this.flowParseObjectType(!0,!1,!1)},ae.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},ae.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},ae.flowParseRestrictedIdentifier=function(e){return oe.indexOf(this.state.value)>-1&&this.raise(this.state.start,"Cannot overwrite primitive type "+this.state.value),this.parseIdentifier(e)},ae.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(C.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},ae.flowParseOpaqueType=function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(C.colon)&&(e.supertype=this.flowParseTypeInitialiser(C.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(C.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")},ae.flowParseTypeParameter=function(){var e=this.startNode(),t=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return e.name=n.name,e.variance=t,e.bound=n.typeAnnotation,this.match(C.eq)&&(this.eat(C.eq),e.default=this.flowParseType()),this.finishNode(e,"TypeParameter")},ae.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(C.jsxTagStart)?this.next():this.unexpected();do{t.params.push(this.flowParseTypeParameter()),this.isRelational(">")||this.expect(C.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},ae.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(C.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},ae.flowParseObjectPropertyKey=function(){return this.match(C.num)||this.match(C.string)?this.parseExprAtom():this.parseIdentifier(!0)},ae.flowParseObjectTypeIndexer=function(e,t,n){return e.static=t,this.expect(C.bracketL),this.lookahead().type===C.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(C.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeIndexer")},ae.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(C.parenL);!this.match(C.parenR)&&!this.match(C.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(C.parenR)||this.expect(C.comma);return this.eat(C.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(C.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},ae.flowParseObjectTypeMethod=function(e,t,n,r){var i=this.startNodeAt(e,t);return i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e,t)),i.static=n,i.key=r,i.optional=!1,this.flowObjectTypeSemicolon(),this.finishNode(i,"ObjectTypeProperty")},ae.flowParseObjectTypeCallProperty=function(e,t){var n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeCallProperty")},ae.flowParseObjectType=function(e,t,n){var r=this.state.inType;this.state.inType=!0;var i=this.startNode(),o=void 0,a=void 0,s=!1;i.callProperties=[],i.properties=[],i.indexers=[];var u=void 0,l=void 0;for(t&&this.match(C.braceBarL)?(this.expect(C.braceBarL),u=C.braceBarR,l=!0):(this.expect(C.braceL),u=C.braceR,l=!1),i.exact=l;!this.match(u);){var c=!1,f=this.state.start,p=this.state.startLoc;o=this.startNode(),e&&this.isContextual("static")&&this.lookahead().type!==C.colon&&(this.next(),s=!0);var d=this.state.start,h=this.flowParseVariance();this.match(C.bracketL)?i.indexers.push(this.flowParseObjectTypeIndexer(o,s,h)):this.match(C.parenL)||this.isRelational("<")?(h&&this.unexpected(d),i.callProperties.push(this.flowParseObjectTypeCallProperty(o,s))):this.match(C.ellipsis)?(n||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),h&&this.unexpected(h.start,"Spread properties cannot have variance"),this.expect(C.ellipsis),o.argument=this.flowParseType(),this.flowObjectTypeSemicolon(),i.properties.push(this.finishNode(o,"ObjectTypeSpreadProperty"))):(a=this.flowParseObjectPropertyKey(),this.isRelational("<")||this.match(C.parenL)?(h&&this.unexpected(h.start),i.properties.push(this.flowParseObjectTypeMethod(f,p,s,a))):(this.eat(C.question)&&(c=!0),o.key=a,o.value=this.flowParseTypeInitialiser(),o.optional=c,o.static=s,o.variance=h,this.flowObjectTypeSemicolon(),i.properties.push(this.finishNode(o,"ObjectTypeProperty")))),s=!1}this.expect(u);var m=this.finishNode(i,"ObjectTypeAnnotation");return this.state.inType=r,m},ae.flowObjectTypeSemicolon=function(){this.eat(C.semi)||this.eat(C.comma)||this.match(C.braceR)||this.match(C.braceBarR)||this.unexpected()},ae.flowParseQualifiedTypeIdentifier=function(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;for(var r=n||this.parseIdentifier();this.eat(C.dot);){var i=this.startNodeAt(e,t);i.qualification=r,i.id=this.parseIdentifier(),r=this.finishNode(i,"QualifiedTypeIdentifier")}return r},ae.flowParseGenericType=function(e,t,n){var r=this.startNodeAt(e,t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t,n),this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},ae.flowParseTypeofType=function(){var e=this.startNode();return this.expect(C._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},ae.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(C.bracketL);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t={params:e,rest:null};!this.match(C.parenR)&&!this.match(C.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(C.parenR)||this.expect(C.comma);return this.eat(C.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),t},ae.flowIdentToTypeAnnotation=function(e,t,n,r){switch(r.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"void":return this.finishNode(n,"VoidTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");default:return this.flowParseGenericType(e,t,r)}},ae.flowParsePrimaryType=function(){var e=this.state.start,t=this.state.startLoc,n=this.startNode(),r=void 0,i=void 0,o=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case C.name:return this.flowIdentToTypeAnnotation(e,t,n,this.parseIdentifier());case C.braceL:return this.flowParseObjectType(!1,!1,!0);case C.braceBarL:return this.flowParseObjectType(!1,!0,!0);case C.bracketL:return this.flowParseTupleType();case C.relational:if("<"===this.state.value)return n.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(C.parenL),r=this.flowParseFunctionTypeParams(),n.params=r.params,n.rest=r.rest,this.expect(C.parenR),this.expect(C.arrow),n.returnType=this.flowParseType(),this.finishNode(n,"FunctionTypeAnnotation");break;case C.parenL:if(this.next(),!this.match(C.parenR)&&!this.match(C.ellipsis))if(this.match(C.name)){var s=this.lookahead().type;o=s!==C.question&&s!==C.colon}else o=!0;if(o){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(C.comma)||this.match(C.parenR)&&this.lookahead().type===C.arrow))return this.expect(C.parenR),i;this.eat(C.comma)}return r=i?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):this.flowParseFunctionTypeParams(),n.params=r.params,n.rest=r.rest,this.expect(C.parenR),this.expect(C.arrow),n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation");case C.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case C._true:case C._false:return n.value=this.match(C._true),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case C.plusMin:if("-"===this.state.value)return this.next(),this.match(C.num)||this.unexpected(null,"Unexpected token, expected number"),this.parseLiteral(-this.state.value,"NumericLiteralTypeAnnotation",n.start,n.loc.start);this.unexpected();case C.num:return this.parseLiteral(this.state.value,"NumericLiteralTypeAnnotation");case C._null:return n.value=this.match(C._null),this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case C._this:return n.value=this.match(C._this),this.next(),this.finishNode(n,"ThisTypeAnnotation");case C.star:return this.next(),this.finishNode(n,"ExistentialTypeParam");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType()}this.unexpected()},ae.flowParsePostfixType=function(){for(var e=this.state.start,t=this.state.startLoc,n=this.flowParsePrimaryType();!this.canInsertSemicolon()&&this.match(C.bracketL);){var r=this.startNodeAt(e,t);r.elementType=n,this.expect(C.bracketL),this.expect(C.bracketR),n=this.finishNode(r,"ArrayTypeAnnotation")}return n},ae.flowParsePrefixType=function(){var e=this.startNode();return this.eat(C.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()},ae.flowParseAnonFunctionWithoutParens=function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(C.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e},ae.flowParseIntersectionType=function(){var e=this.startNode();this.eat(C.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(C.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")},ae.flowParseUnionType=function(){var e=this.startNode();this.eat(C.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(C.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")},ae.flowParseType=function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t},ae.flowParseTypeAnnotation=function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")},ae.flowParseTypeAndPredicateAnnotation=function(){var e=this.startNode(),t=this.flowParseTypeAndPredicateInitialiser();return e.typeAnnotation=t[0],e.predicate=t[1],this.finishNode(e,"TypeAnnotation")},ae.flowParseTypeAnnotatableIdentifier=function(){var e=this.flowParseRestrictedIdentifier();return this.match(C.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,e.type)),e},ae.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.finishNodeAt(e.expression,e.expression.type,e.typeAnnotation.end,e.typeAnnotation.loc.end)},ae.flowParseVariance=function(){var e=null;return this.match(C.plusMin)&&("+"===this.state.value?e="plus":"-"===this.state.value&&(e="minus"),this.next()),e};var se=String.fromCodePoint;if(!se){var ue=String.fromCharCode,le=Math.floor;se=function(){var e=16384,t=[],n=void 0,r=void 0,i=-1,o=arguments.length;if(!o)return"";for(var a="";++i1114111||le(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?t.push(s):(n=55296+((s-=65536)>>10),r=s%1024+56320,t.push(n,r)),(i+1==o||t.length>e)&&(a+=ue.apply(null,t),t.length=0)}return a}}var ce=se,fe={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},pe=/^[\da-fA-F]+$/,de=/^\d+$/;N.j_oTag=new L("...",!0,!0),C.jsxName=new S("jsxName"),C.jsxText=new S("jsxText",{beforeExpr:!0}),C.jsxTagStart=new S("jsxTagStart",{startsExpr:!0}),C.jsxTagEnd=new S("jsxTagEnd"),C.jsxTagStart.updateContext=function(){this.state.context.push(N.j_expr),this.state.context.push(N.j_oTag),this.state.exprAllowed=!1},C.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===N.j_oTag&&e===C.slash||t===N.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===N.j_expr):this.state.exprAllowed=!0};var he=U.prototype;function me(e){return"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?me(e.object)+"."+me(e.property):void 0}he.jsxReadToken=function(){for(var e="",t=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(C.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.state.pos),this.finishToken(C.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:P(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},he.jsxReadNewLine=function(e){var t=this.input.charCodeAt(this.state.pos),n=void 0;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n},he.jsxReadString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):P(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}return t+=this.input.slice(n,this.state.pos++),this.finishToken(C.string,t)},he.jsxReadEntity=function(){for(var e="",t=0,n=void 0,r=this.input[this.state.pos],i=++this.state.pos;this.state.pos")}return n.openingElement=i,n.closingElement=o,n.children=r,this.match(C.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSXElement")},he.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)},z.estree=function(e){e.extend("checkDeclaration",(function(e){return function(t){ie(t)?this.checkDeclaration(t.value):e.call(this,t)}})),e.extend("checkGetterSetterParamCount",(function(){return function(e){var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.start;"get"===e.kind?this.raise(n,"getter should have no params"):this.raise(n,"setter should have exactly one param")}}})),e.extend("checkLVal",(function(e){return function(t,n,r){var i=this;if("ObjectPattern"===t.type)t.properties.forEach((function(e){i.checkLVal("Property"===e.type?e.value:e,n,r,"object destructuring pattern")}));else{for(var o=arguments.length,a=Array(o>3?o-3:0),s=3;s0){var n=e.body.body,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;if("ExpressionStatement"!==a.type||"Literal"!==a.expression.type)break;if("use strict"===a.expression.value)return!0}}return!1}})),e.extend("isValidDirective",(function(){return function(e){return!("ExpressionStatement"!==e.type||"Literal"!==e.expression.type||"string"!=typeof e.expression.value||e.expression.extra&&e.expression.extra.parenthesized)}})),e.extend("stmtToDirective",(function(e){return function(t){var n=e.call(this,t),r=t.expression.value;return n.value.value=r,n}})),e.extend("parseBlockBody",(function(e){return function(t){for(var n=this,r=arguments.length,i=Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o2?r-2:0),o=2;o=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var c=l;"get"===c.kind||"set"===c.kind?this.raise(c.key.start,"Object pattern can't contain getter or setter"):c.method?this.raise(c.key.start,"Object pattern can't contain methods"):this.toAssignable(c,n,"object destructuring pattern")}return t}return e.call.apply(e,[this,t,n].concat(i))}}))},z.flow=function(e){e.extend("parseFunctionBody",(function(e){return function(t,n){return this.match(C.colon)&&!n&&(t.returnType=this.flowParseTypeAndPredicateAnnotation()),e.call(this,t,n)}})),e.extend("parseStatement",(function(e){return function(t,n){if(this.state.strict&&this.match(C.name)&&"interface"===this.state.value){var r=this.startNode();return this.next(),this.flowParseInterface(r)}return e.call(this,t,n)}})),e.extend("parseExpressionStatement",(function(e){return function(t,n){if("Identifier"===n.type)if("declare"===n.name){if(this.match(C._class)||this.match(C.name)||this.match(C._function)||this.match(C._var)||this.match(C._export))return this.flowParseDeclare(t)}else if(this.match(C.name)){if("interface"===n.name)return this.flowParseInterface(t);if("type"===n.name)return this.flowParseTypeAlias(t);if("opaque"===n.name)return this.flowParseOpaqueType(t,!1)}return e.call(this,t,n)}})),e.extend("shouldParseExportDeclaration",(function(e){return function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||e.call(this)}})),e.extend("isExportDefaultSpecifier",(function(e){return function(){return(!this.match(C.name)||"type"!==this.state.value&&"interface"!==this.state.value&&"opaque"!==this.state.value)&&e.call(this)}})),e.extend("parseConditional",(function(e){return function(t,n,r,i,o){if(o&&this.match(C.question)){var a=this.state.clone();try{return e.call(this,t,n,r,i)}catch(e){if(e instanceof SyntaxError)return this.state=a,o.start=e.pos||this.state.start,t;throw e}}return e.call(this,t,n,r,i)}})),e.extend("parseParenItem",(function(e){return function(t,n,r){if(t=e.call(this,t,n,r),this.eat(C.question)&&(t.optional=!0),this.match(C.colon)){var i=this.startNodeAt(n,r);return i.expression=t,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return t}})),e.extend("parseExport",(function(e){return function(t){return"ExportNamedDeclaration"===(t=e.call(this,t)).type&&(t.exportKind=t.exportKind||"value"),t}})),e.extend("parseExportDeclaration",(function(e){return function(t){if(this.isContextual("type")){t.exportKind="type";var n=this.startNode();return this.next(),this.match(C.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(n)}if(this.isContextual("opaque")){t.exportKind="type";var r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}if(this.isContextual("interface")){t.exportKind="type";var i=this.startNode();return this.next(),this.flowParseInterface(i)}return e.call(this,t)}})),e.extend("parseClassId",(function(e){return function(t){e.apply(this,arguments),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}})),e.extend("isKeyword",(function(e){return function(t){return(!this.state.inType||"void"!==t)&&e.call(this,t)}})),e.extend("readToken",(function(e){return function(t){return!this.state.inType||62!==t&&60!==t?e.call(this,t):this.finishOp(C.relational,1)}})),e.extend("jsx_readToken",(function(e){return function(){if(!this.state.inType)return e.call(this)}})),e.extend("toAssignable",(function(e){return function(t,n,r){return"TypeCastExpression"===t.type?e.call(this,this.typeCastToParameter(t),n,r):e.call(this,t,n,r)}})),e.extend("toAssignableList",(function(e){return function(t,n,r){for(var i=0;i2?r-2:0),o=2;odocument.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t){"use strict";t.f={}.propertyIsEnumerable},function(e,t){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(23).f,i=n(28),o=n(13)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(140);e.exports=function(e){return Object(r(e))}},function(e,t){"use strict";var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){},function(e,t,n){"use strict";t.ast=n(461),t.code=n(240),t.keyword=n(462)},function(e,t,n){"use strict";var r=n(546),i=n(547),o=n(548),a=n(549),s=n(550);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r-1:!!c&&r(e,t,n)>-1}},function(e,t,n){"use strict";var r=n(493),i=n(25),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){(function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(17),o=n(596),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?i.Buffer:void 0,l=(u?u.isBuffer:void 0)||o;e.exports=l}).call(t,n(39)(e))},function(e,t,n){"use strict";var r=n(253);e.exports=function(e){return null==e?"":r(e)}},96,function(e,t,n){"use strict";t.__esModule=!0,t.runtimeProperty=function(e){return r.memberExpression(r.identifier("regeneratorRuntime"),r.identifier(e),!1)},t.isReference=function(e){return e.isReferenced()||e.parentPath.isAssignmentExpression({left:e.node})},t.replaceWithOrRemove=function(e,t){t?e.replaceWith(t):e.remove()};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1))},function(e,t,n){(function(e,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function c(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=f(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(S(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return p(n)}var l,c="",_=!1,k=["{","}"];return h(n)&&(_=!0,k=["[","]"]),S(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(c=" "+RegExp.prototype.toString.call(n)),w(n)&&(c=" "+Date.prototype.toUTCString.call(n)),E(n)&&(c=" "+p(n)),0!==a.length||_&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=_?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,k)):k[0]+c+k[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),D(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function x(e){return _(e)&&"[object RegExp]"===k(e)}function _(e){return"object"===(void 0===e?"undefined":i(e))&&null!==e}function w(e){return _(e)&&"[object Date]"===k(e)}function E(e){return _(e)&&("[object Error]"===k(e)||e instanceof Error)}function S(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(b(a)&&(a=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"===(void 0===e?"undefined":i(e))},t.isUndefined=b,t.isRegExp=x,t.isObject=_,t.isDate=w,t.isError=E,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(void 0===e?"undefined":i(e))||void 0===e},t.isBuffer=n(627);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=n(626),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,function(){return this}(),n(8))},function(e,t,n){(function(r){"use strict";t.__esModule=!0;var i=s(n(11));t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.cwd();if("object"===(void 0===o.default?"undefined":(0,i.default)(o.default)))return null;var n=u[t];if(!n){n=new o.default;var s=a.default.join(t,".babelrc");n.id=s,n.filename=s,n.paths=o.default._nodeModulePaths(t),u[t]=n}try{return o.default._resolveFilename(e,n)}catch(e){return null}};var o=s(n(115)),a=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}var u={};e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(133)),i=s(n(3)),o=s(n(42)),a=s(n(41));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){(0,i.default)(this,t);var n=(0,o.default)(this,e.call(this));return n.dynamicData={},n}return(0,a.default)(t,e),t.prototype.setDynamic=function(e,t){this.dynamicData[e]=t},t.prototype.get=function(t){if(this.has(t))return e.prototype.get.call(this,t);if(Object.prototype.hasOwnProperty.call(this.dynamicData,t)){var n=this.dynamicData[t]();return this.set(t,n),n}},t}(r.default);t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(3)),i=o(n(239));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,i.default)("babel:verbose"),s=(0,i.default)("babel"),u=[],l=function(){function e(t,n){(0,r.default)(this,e),this.filename=n,this.file=t}return e.prototype._buildMessage=function(e){var t="[BABEL] "+this.filename;return e&&(t+=": "+e),t},e.prototype.warn=function(e){console.warn(this._buildMessage(e))},e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Error;throw new t(this._buildMessage(e))},e.prototype.deprecate=function(e){this.file.opts&&this.file.opts.suppressDeprecationMessages||(e=this._buildMessage(e),u.indexOf(e)>=0||(u.push(e),console.error(e)))},e.prototype.verbose=function(e){a.enabled&&a(this._buildMessage(e))},e.prototype.debug=function(e){s.enabled&&s(this._buildMessage(e))},e.prototype.deopt=function(e,t){this.debug(t)},e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.ImportDeclaration=t.ModuleDeclaration=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.ExportDeclaration=function(e,t){var n=e.node,r=n.source?n.source.value:null,a=t.metadata.modules.exports,s=e.get("declaration");if(s.isStatement()){var u=s.getBindingIdentifiers();for(var l in u)a.exported.push(l),a.specifiers.push({kind:"local",local:l,exported:e.isExportDefaultDeclaration()?"default":l})}if(e.isExportNamedDeclaration()&&n.specifiers){var c=n.specifiers,f=Array.isArray(c),p=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}var h=d,m=h.exported.name;a.exported.push(m),o.isExportDefaultSpecifier(h)&&a.specifiers.push({kind:"external",local:m,exported:m,source:r}),o.isExportNamespaceSpecifier(h)&&a.specifiers.push({kind:"external-namespace",exported:m,source:r});var y=h.local;y&&(r&&a.specifiers.push({kind:"external",local:y.name,exported:m,source:r}),r||a.specifiers.push({kind:"local",local:y.name,exported:m}))}}e.isExportAllDeclaration()&&a.specifiers.push({kind:"external-all",source:r})},t.Scope=function(e){e.skip()};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));t.ModuleDeclaration={enter:function(e,t){var n=e.node;n.source&&(n.source.value=t.resolveModuleSource(n.source.value))}},t.ImportDeclaration={exit:function(e,t){var n=e.node,r=[],o=[];t.metadata.modules.imports.push({source:n.source.value,imported:o,specifiers:r});var a=e.get("specifiers"),s=Array.isArray(a),u=0;for(a=s?a:(0,i.default)(a);;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var c=l,f=c.node.local.name;if(c.isImportDefaultSpecifier()&&(o.push("default"),r.push({kind:"named",imported:"default",local:f})),c.isImportSpecifier()){var p=c.node.imported.name;o.push(p),r.push({kind:"named",imported:p,local:f})}c.isImportNamespaceSpecifier()&&(o.push("*"),r.push({kind:"namespace",local:f}))}}}},function(e,t,n){"use strict";t.__esModule=!0,t.inspect=t.inherits=void 0;var r=p(n(2)),i=n(117);Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return i.inherits}}),Object.defineProperty(t,"inspect",{enumerable:!0,get:function(){return i.inspect}}),t.canCompile=d,t.list=h,t.regexify=function(e){if(!e)return new RegExp(/.^/);if(Array.isArray(e)&&(e=new RegExp(e.map(o.default).join("|"),"i")),"string"==typeof e){e=(0,f.default)(e),((0,a.default)(e,"./")||(0,a.default)(e,"*/"))&&(e=e.slice(2)),(0,a.default)(e,"**/")&&(e=e.slice(3));var t=s.default.makeRe(e,{nocase:!0});return new RegExp(t.source.slice(1,-1),"i")}if((0,l.default)(e))return e;throw new TypeError("illegal type for regexify")},t.arrayify=function e(t,n){return t?"boolean"==typeof t?e([t],n):"string"==typeof t?e(h(t),n):Array.isArray(t)?(n&&(t=t.map(n)),t):[t]:[]},t.booleanify=function(e){return"true"===e||1==e||!("false"===e||0==e||!e)&&e},t.shouldIgnore=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(e=e.replace(/\\/g,"/"),n){var i=n,o=Array.isArray(i),a=0;for(i=o?i:(0,r.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s;if(m(u,e))return!1}return!0}if(t.length){var l=t,c=Array.isArray(l),f=0;for(l=c?l:(0,r.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;if(m(d,e))return!0}}return!1};var o=p(n(577)),a=p(n(595)),s=p(n(601)),u=p(n(111)),l=p(n(276)),c=p(n(19)),f=p(n(284));function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=t||d.EXTENSIONS,r=c.default.extname(e);return(0,u.default)(n,r)}function h(e){return e?Array.isArray(e)?e:"string"==typeof e?e.split(","):[e]:[]}function m(e,t){return"function"==typeof e?e(t):e.test(t)}d.EXTENSIONS=[".js",".jsx",".es6",".es"]},function(e,t,n){"use strict";t.__esModule=!0,t.ArrayPattern=t.ObjectPattern=t.RestProperty=t.SpreadProperty=t.SpreadElement=void 0,t.Identifier=function(e){e.variance&&("plus"===e.variance?this.token("+"):"minus"===e.variance&&this.token("-")),this.word(e.name)},t.RestElement=a,t.ObjectExpression=s,t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._method(e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.token("["),this.print(e.key,e),this.token("]");else{if(i.isAssignmentPattern(e.value)&&i.isIdentifier(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&i.isIdentifier(e.key)&&i.isIdentifier(e.value)&&e.key.name===e.value.name)return}this.token(":"),this.space(),this.print(e.value,e)},t.ArrayExpression=u,t.RegExpLiteral=function(e){this.word("/"+e.pattern+"/"+e.flags)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){var t=this.getPossibleRaw(e),n=e.value+"";null==t?this.number(n):this.format.minified?this.number(t.length0&&this.space(),this.print(i,e),r {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })\n"),l=(0,i.default)("\n (() => {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })\n"),c={Function:function(e){!e.isArrowFunctionExpression()||e.node.async?e.skip():e.arrowFunctionToShadowed()},AwaitExpression:function(e,t){var n=e.node,r=t.wrapAwait;n.type="YieldExpression",r&&(n.argument=o.callExpression(r,[n.argument]))},ForAwaitStatement:function(e,t){var n=t.file,r=t.wrapAwait,i=e.node,s=(0,a.default)(e,{getAsyncIterator:n.addHelper("asyncIterator"),wrapAwait:r}),u=s.declar,l=s.loop,c=l.body;e.ensureBlock(),u&&c.body.push(u),c.body=c.body.concat(i.body.body),o.inherits(l,i),o.inherits(l.body,i.body),s.replaceParent?(e.parentPath.replaceWithMultiple(s.node),e.remove()):e.replaceWithMultiple(s.node)}};e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("decorators")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("flow")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("jsx")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("trailingFunctionCommas")}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{inherits:n(67),visitor:{Function:function(e,t){e.node.async&&!e.node.generator&&(0,i.default)(e,t.file,{wrapAsync:t.addHelper("asyncToGenerator")})}}}};var r,i=(r=n(124))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(2)),i=a(n(9));t.default=function(){return{visitor:{ObjectExpression:function(e){var t,n=e.node.properties.filter((function(e){return!o.isSpreadProperty(e)&&!e.computed})),a=(0,i.default)(null),s=(0,i.default)(null),u=(0,i.default)(null),l=n,c=Array.isArray(l),f=0;for(l=c?l:(0,r.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p,h=(t=d.key,o.isIdentifier(t)?t.name:t.value.toString()),m=!1;switch(d.kind){case"get":(a[h]||s[h])&&(m=!0),s[h]=!0;break;case"set":(a[h]||u[h])&&(m=!0),u[h]=!0;break;default:(a[h]||s[h]||u[h])&&(m=!0),a[h]=!0}m&&(d.computed=!0,d.key=o.stringLiteral(h))}}}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(9));t.default=function(e){var t=e.types;function i(e){if(!e.isCallExpression())return!1;if(!e.get("callee").isIdentifier({name:"require"}))return!1;if(e.scope.getBinding("require"))return!1;var t=e.get("arguments");return 1===t.length&&!!t[0].isStringLiteral()}var o={ReferencedIdentifier:function(e){var t=e.node,n=e.scope;"exports"!==t.name||n.getBinding("exports")||(this.hasExports=!0),"module"!==t.name||n.getBinding("module")||(this.hasModule=!0)},CallExpression:function(e){i(e)&&(this.bareSources.push(e.node.arguments[0]),e.remove())},VariableDeclarator:function(e){var t=e.get("id");if(t.isIdentifier()){var n=e.get("init");if(i(n)){var r=n.node.arguments[0];this.sourceNames[r.value]=!0,this.sources.push([t.node,r]),e.remove()}}}};return{inherits:n(77),pre:function(){this.sources=[],this.sourceNames=(0,r.default)(null),this.bareSources=[],this.hasExports=!1,this.hasModule=!1},visitor:{Program:{exit:function(e){var n=this;if(!this.ran){this.ran=!0,e.traverse(o,this);var r=this.sources.map((function(e){return e[0]})),i=this.sources.map((function(e){return e[1]}));i=i.concat(this.bareSources.filter((function(e){return!n.sourceNames[e.value]})));var u=this.getModuleName();u&&(u=t.stringLiteral(u)),this.hasExports&&(i.unshift(t.stringLiteral("exports")),r.unshift(t.identifier("exports"))),this.hasModule&&(i.unshift(t.stringLiteral("module")),r.unshift(t.identifier("module")));var l=e.node,c=s({PARAMS:r,BODY:l.body});c.expression.body.directives=l.directives,l.directives=[],l.body=[a({MODULE_NAME:u,SOURCES:i,FACTORY:c})]}}}}}};var i=o(n(4));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,i.default)("\n define(MODULE_NAME, [SOURCES], FACTORY);\n"),s=(0,i.default)("\n (function (PARAMS) {\n BODY;\n })\n");e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{inherits:n(199),visitor:(0,i.default)({operator:"**",build:function(e,n){return t.callExpression(t.memberExpression(t.identifier("Math"),t.identifier("pow")),[e,n])}})}};var r,i=(r=n(316))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";e.exports={default:n(406),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=b(n(14)),i=b(n(9)),o=b(n(133)),a=b(n(3)),s=b(n(2)),u=b(n(111)),l=b(n(278)),c=b(n(383)),f=b(n(7)),p=b(n(273)),d=g(n(20)),h=b(n(225)),m=b(n(463)),y=g(n(1)),v=n(88);function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var x=0;function _(e,t){if(y.isModuleDeclaration(e))if(e.source)_(e.source,t);else if(e.specifiers&&e.specifiers.length){var n=e.specifiers,r=Array.isArray(n),i=0;for(n=r?n:(0,s.default)(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}_(o,t)}}else e.declaration&&_(e.declaration,t);else if(y.isModuleSpecifier(e))_(e.local,t);else if(y.isMemberExpression(e))_(e.object,t),_(e.property,t);else if(y.isIdentifier(e))t.push(e.name);else if(y.isLiteral(e))t.push(e.value);else if(y.isCallExpression(e))_(e.callee,t);else if(y.isObjectExpression(e)||y.isObjectPattern(e)){var a=e.properties,u=Array.isArray(a),l=0;for(a=u?a:(0,s.default)(a);;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var f=c;_(f.key||f.argument,t)}}}var w={For:function(e){var t=y.FOR_INIT_KEYS,n=Array.isArray(t),r=0;for(t=n?t:(0,s.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i,a=e.get(o);a.isVar()&&e.scope.getFunctionParent().registerBinding("var",a)}},Declaration:function(e){e.isBlockScoped()||e.isExportDeclaration()&&e.get("declaration").isDeclaration()||e.scope.getFunctionParent().registerDeclaration(e)},ReferencedIdentifier:function(e,t){t.references.push(e)},ForXStatement:function(e,t){var n=e.get("left");(n.isPattern()||n.isIdentifier())&&t.constantViolations.push(n)},ExportDeclaration:{exit:function(e){var t=e.node,n=e.scope,r=t.declaration;if(y.isClassDeclaration(r)||y.isFunctionDeclaration(r)){var i=r.id;if(!i)return;var o=n.getBinding(i.name);o&&o.reference(e)}else if(y.isVariableDeclaration(r)){var a=r.declarations,u=Array.isArray(a),l=0;for(a=u?a:(0,s.default)(a);;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var f=c,p=y.getBindingIdentifiers(f);for(var d in p){var h=n.getBinding(d);h&&h.reference(e)}}}}},LabeledStatement:function(e){e.scope.getProgramParent().addGlobal(e.node),e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression:function(e,t){t.assignments.push(e)},UpdateExpression:function(e,t){t.constantViolations.push(e.get("argument"))},UnaryExpression:function(e,t){"delete"===e.node.operator&&t.constantViolations.push(e.get("argument"))},BlockScoped:function(e){var t=e.scope;t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e)},ClassDeclaration:function(e){var t=e.node.id;if(t){var n=t.name;e.scope.bindings[n]=e.scope.getBinding(n)}},Block:function(e){var t=e.get("body"),n=Array.isArray(t),r=0;for(t=n?t:(0,s.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;o.isFunctionDeclaration()&&e.scope.getBlockParent().registerDeclaration(o)}}},E=0,S=function(){function e(t,n){if((0,a.default)(this,e),n&&n.block===t.node)return n;var r=function(e,t,n){var r=v.scope.get(e.node)||[],i=r,o=Array.isArray(i),a=0;for(i=o?i:(0,s.default)(i);;){var u;if(o){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}var l=u;if(l.parent===t&&l.path===e)return l}r.push(n),v.scope.has(e.node)||v.scope.set(e.node,r)}(t,n,this);if(r)return r;this.uid=E++,this.parent=n,this.hub=t.hub,this.parentBlock=t.parent,this.block=t.node,this.path=t,this.labels=new o.default}return e.prototype.traverse=function(e,t,n){(0,f.default)(e,t,this,n,this.path)},e.prototype.generateDeclaredUidIdentifier=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp",t=this.generateUidIdentifier(e);return this.push({id:t}),t},e.prototype.generateUidIdentifier=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";return y.identifier(this.generateUid(e))},e.prototype.generateUid=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";e=y.toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");var t=void 0,n=0;do{t=this._generateUid(e,n),n++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var r=this.getProgramParent();return r.references[t]=!0,r.uids[t]=!0,t},e.prototype._generateUid=function(e,t){var n=e;return t>1&&(n+=t),"_"+n},e.prototype.generateUidIdentifierBasedOnNode=function(e,t){var n=e;y.isAssignmentExpression(e)?n=e.left:y.isVariableDeclarator(e)?n=e.id:(y.isObjectProperty(n)||y.isObjectMethod(n))&&(n=n.key);var r=[];_(n,r);var i=r.join("$");return i=i.replace(/^_/,"")||t||"ref",this.generateUidIdentifier(i.slice(0,20))},e.prototype.isStatic=function(e){if(y.isThisExpression(e)||y.isSuper(e))return!0;if(y.isIdentifier(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},e.prototype.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var n=this.generateUidIdentifierBasedOnNode(e);return t||this.push({id:n}),n},e.prototype.checkBlockScopedCollisions=function(e,t,n,r){if("param"!==t&&!("hoisted"===t&&"let"===e.kind||"let"!==t&&"let"!==e.kind&&"const"!==e.kind&&"module"!==e.kind&&("param"!==e.kind||"let"!==t&&"const"!==t)))throw this.hub.file.buildCodeFrameError(r,d.get("scopeDuplicateDeclaration",n),TypeError)},e.prototype.rename=function(e,t,n){var r=this.getBinding(e);if(r)return t=t||this.generateUidIdentifier(e).name,new c.default(r,e,t).rename(n)},e.prototype._renameFromMap=function(e,t,n,r){e[t]&&(e[n]=r,e[t]=null)},e.prototype.dump=function(){var e=(0,l.default)("-",60);console.log(e);var t=this;do{for(var n in console.log("#",t.block.type),t.bindings){var r=t.bindings[n];console.log(" -",n,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)},e.prototype.toArray=function(e,t){var n=this.hub.file;if(y.isIdentifier(e)){var r=this.getBinding(e.name);if(r&&r.constant&&r.path.isGenericType("Array"))return e}if(y.isArrayExpression(e))return e;if(y.isIdentifier(e,{name:"arguments"}))return y.callExpression(y.memberExpression(y.memberExpression(y.memberExpression(y.identifier("Array"),y.identifier("prototype")),y.identifier("slice")),y.identifier("call")),[e]);var i="toArray",o=[e];return!0===t?i="toConsumableArray":t&&(o.push(y.numericLiteral(t)),i="slicedToArray"),y.callExpression(n.addHelper(i),o)},e.prototype.hasLabel=function(e){return!!this.getLabel(e)},e.prototype.getLabel=function(e){return this.labels.get(e)},e.prototype.registerLabel=function(e){this.labels.set(e.node.label.name,e)},e.prototype.registerDeclaration=function(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){var t=e.get("declarations"),n=Array.isArray(t),r=0;for(t=n?t:(0,s.default)(t);;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}var o=i;this.registerBinding(e.node.kind,o)}}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration()){var a=e.get("specifiers"),u=Array.isArray(a),l=0;for(a=u?a:(0,s.default)(a);;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var f=c;this.registerBinding("module",f)}}else if(e.isExportDeclaration()){var p=e.get("declaration");(p.isClassDeclaration()||p.isFunctionDeclaration()||p.isVariableDeclaration())&&this.registerDeclaration(p)}else this.registerBinding("unknown",e)},e.prototype.buildUndefinedNode=function(){return this.hasBinding("undefined")?y.unaryExpression("void",y.numericLiteral(0),!0):y.identifier("undefined")},e.prototype.registerConstantViolation=function(e){var t=e.getBindingIdentifiers();for(var n in t){var r=this.getBinding(n);r&&r.reassign(e)}},e.prototype.registerBinding=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){var r=t.get("declarations"),i=r,o=Array.isArray(i),a=0;for(i=o?i:(0,s.default)(i);;){var u;if(o){if(a>=i.length)break;u=i[a++]}else{if((a=i.next()).done)break;u=a.value}var l=u;this.registerBinding(e,l)}}else{var c=this.getProgramParent(),f=t.getBindingIdentifiers(!0);for(var p in f){var d=f[p],m=Array.isArray(d),y=0;for(d=m?d:(0,s.default)(d);;){var v;if(m){if(y>=d.length)break;v=d[y++]}else{if((y=d.next()).done)break;v=y.value}var g=v,b=this.getOwnBinding(p);if(b){if(b.identifier===g)continue;this.checkBlockScopedCollisions(b,e,p,g)}b&&b.path.isFlow()&&(b=null),c.references[p]=!0,this.bindings[p]=new h.default({identifier:g,existing:b,scope:this,path:n,kind:e})}}}},e.prototype.addGlobal=function(e){this.globals[e.name]=e},e.prototype.hasUid=function(e){var t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1},e.prototype.hasGlobal=function(e){var t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1},e.prototype.hasReference=function(e){var t=this;do{if(t.references[e])return!0}while(t=t.parent);return!1},e.prototype.isPure=function(e,t){if(y.isIdentifier(e)){var n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(y.isClass(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(y.isClassBody(e)){var r=e.body,i=Array.isArray(r),o=0;for(r=i?r:(0,s.default)(r);;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var u=a;if(!this.isPure(u,t))return!1}return!0}if(y.isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(y.isArrayExpression(e)){var l=e.elements,c=Array.isArray(l),f=0;for(l=c?l:(0,s.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;if(!this.isPure(d,t))return!1}return!0}if(y.isObjectExpression(e)){var h=e.properties,m=Array.isArray(h),v=0;for(h=m?h:(0,s.default)(h);;){var g;if(m){if(v>=h.length)break;g=h[v++]}else{if((v=h.next()).done)break;g=v.value}var b=g;if(!this.isPure(b,t))return!1}return!0}return y.isClassMethod(e)?!(e.computed&&!this.isPure(e.key,t))&&"get"!==e.kind&&"set"!==e.kind:y.isClassProperty(e)||y.isObjectProperty(e)?!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t):y.isUnaryExpression(e)?this.isPure(e.argument,t):y.isPureish(e)},e.prototype.setData=function(e,t){return this.data[e]=t},e.prototype.getData=function(e){var t=this;do{var n=t.data[e];if(null!=n)return n}while(t=t.parent)},e.prototype.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},e.prototype.init=function(){this.references||this.crawl()},e.prototype.crawl=function(){x++,this._crawl(),x--},e.prototype._crawl=function(){var e=this.path;if(this.references=(0,i.default)(null),this.bindings=(0,i.default)(null),this.globals=(0,i.default)(null),this.uids=(0,i.default)(null),this.data=(0,i.default)(null),e.isLoop()){var t=y.FOR_INIT_KEYS,n=Array.isArray(t),r=0;for(t=n?t:(0,s.default)(t);;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var a=o,u=e.get(a);u.isBlockScoped()&&this.registerBinding(u.node.kind,u)}}if(e.isFunctionExpression()&&e.has("id")&&(e.get("id").node[y.NOT_LOCAL_BINDING]||this.registerBinding("local",e.get("id"),e)),e.isClassExpression()&&e.has("id")&&(e.get("id").node[y.NOT_LOCAL_BINDING]||this.registerBinding("local",e)),e.isFunction()){var l=e.get("params"),c=Array.isArray(l),f=0;for(l=c?l:(0,s.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;this.registerBinding("param",d)}}if(e.isCatchClause()&&this.registerBinding("let",e),!this.getProgramParent().crawling){var h={references:[],constantViolations:[],assignments:[]};this.crawling=!0,e.traverse(w,h),this.crawling=!1;var m=h.assignments,v=Array.isArray(m),g=0;for(m=v?m:(0,s.default)(m);;){var b;if(v){if(g>=m.length)break;b=m[g++]}else{if((g=m.next()).done)break;b=g.value}var x=b,_=x.getBindingIdentifiers(),E=void 0;for(var S in _)x.scope.getBinding(S)||(E=E||x.scope.getProgramParent()).addGlobal(_[S]);x.scope.registerConstantViolation(x)}var k=h.references,A=Array.isArray(k),C=0;for(k=A?k:(0,s.default)(k);;){var T;if(A){if(C>=k.length)break;T=k[C++]}else{if((C=k.next()).done)break;T=C.value}var D=T,M=D.scope.getBinding(D.node.name);M?M.reference(D):D.scope.getProgramParent().addGlobal(D.node)}var P=h.constantViolations,O=Array.isArray(P),L=0;for(P=O?P:(0,s.default)(P);;){var N;if(O){if(L>=P.length)break;N=P[L++]}else{if((L=P.next()).done)break;N=L.value}var F=N;F.scope.registerConstantViolation(F)}}},e.prototype.push=function(e){var t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=this.getFunctionParent().path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(y.ensureBlock(t.node),t=t.get("body"));var n=e.unique,r=e.kind||"var",i=null==e._blockHoist?2:e._blockHoist,o="declaration:"+r+":"+i,a=!n&&t.getData(o);if(!a){var s=y.variableDeclaration(r,[]);s._generated=!0,s._blockHoist=i,a=t.unshiftContainer("body",[s])[0],n||t.setData(o,a)}var u=y.variableDeclarator(e.id,e.init);a.node.declarations.push(u),this.registerBinding(r,a.get("declarations").pop())},e.prototype.getProgramParent=function(){var e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getFunctionParent=function(){var e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getBlockParent=function(){var e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")},e.prototype.getAllBindings=function(){var e=(0,i.default)(null),t=this;do{(0,p.default)(e,t.bindings),t=t.parent}while(t);return e},e.prototype.getAllBindingsOfKind=function(){var e=(0,i.default)(null),t=arguments,n=Array.isArray(t),r=0;for(t=n?t:(0,s.default)(t);;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var a=o,u=this;do{for(var l in u.bindings){var c=u.bindings[l];c.kind===a&&(e[l]=c)}u=u.parent}while(u)}return e},e.prototype.bindingIdentifierEquals=function(e,t){return this.getBindingIdentifier(e)===t},e.prototype.warnOnFlowBinding=function(e){return 0===x&&e&&e.path.isFlow()&&console.warn("\n You or one of the Babel plugins you are using are using Flow declarations as bindings.\n Support for this will be removed in version 7. To find out the caller, grep for this\n message and change it to a `console.trace()`.\n "),e},e.prototype.getBinding=function(e){var t=this;do{var n=t.getOwnBinding(e);if(n)return this.warnOnFlowBinding(n)}while(t=t.parent)},e.prototype.getOwnBinding=function(e){return this.warnOnFlowBinding(this.bindings[e])},e.prototype.getBindingIdentifier=function(e){var t=this.getBinding(e);return t&&t.identifier},e.prototype.getOwnBindingIdentifier=function(e){var t=this.bindings[e];return t&&t.identifier},e.prototype.hasOwnBinding=function(e){return!!this.getOwnBinding(e)},e.prototype.hasBinding=function(t,n){return!(!t||!this.hasOwnBinding(t)&&!this.parentHasBinding(t,n)&&!this.hasUid(t)&&(n||!(0,u.default)(e.globals,t))&&(n||!(0,u.default)(e.contextVariables,t)))},e.prototype.parentHasBinding=function(e,t){return this.parent&&this.parent.hasBinding(e,t)},e.prototype.moveBindingTo=function(e,t){var n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)},e.prototype.removeOwnBinding=function(e){delete this.bindings[e]},e.prototype.removeBinding=function(e){var t=this.getBinding(e);t&&t.scope.removeOwnBinding(e);var n=this;do{n.uids[e]&&(n.uids[e]=!1)}while(n=n.parent)},e}();S.globals=(0,r.default)(m.default.builtin),S.contextVariables=["arguments","undefined","Infinity","NaN"],t.default=S,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;var r,i=(r=n(362))&&r.__esModule?r:{default:r};t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],t.LOGICAL_OPERATORS=["||","&&"],t.UPDATE_OPERATORS=["++","--"];var o=t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],a=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],s=t.COMPARISON_BINARY_OPERATORS=[].concat(a,["in","instanceof"]),u=t.BOOLEAN_BINARY_OPERATORS=[].concat(s,o),l=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],c=(t.BINARY_OPERATORS=["+"].concat(l,u),t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),f=t.NUMBER_UNARY_OPERATORS=["+","-","++","--","~"],p=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void"].concat(c,f,p),t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=(0,i.default)("var used to be block scoped"),t.NOT_LOCAL_BINDING=(0,i.default)("should not be considered a local binding")},function(e,t){"use strict";e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r=n(43),i=n(142),o=n(94),a=n(153),s=n(422);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,h){for(var m,y,v=o(t),g=i(v),b=r(s,h,3),x=a(g.length),_=0,w=n?d(t,x):u?d(t,0):void 0;x>_;_++)if((p||_ in g)&&(y=b(m=g[_],_,v),e))if(n)w[_]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(c)return!1;return f?-1:l||c?c:w}}},function(e,t){"use strict";var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(15),i=n(12),o=n(57),a=n(27),s=n(29),u=n(146),l=n(55),c=n(136),f=n(16),p=n(93),d=n(23).f,h=n(137)(0),m=n(22);e.exports=function(e,t,n,y,v,g){var b=r[e],x=b,_=v?"set":"add",w=x&&x.prototype,E={};return m&&"function"==typeof x&&(g||w.forEach&&!a((function(){(new x).entries().next()})))?(x=t((function(t,n){c(t,x,e,"_c"),t._c=new b,null!=n&&l(n,v,t[_],t)})),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;!(e in w)||g&&"clear"==e||s(x.prototype,e,(function(n,r){if(c(this,x,e),!t&&g&&!f(n))return"get"==e&&void 0;var i=this._c[e](0===n?0:n,r);return t?this:i}))})),g||d(x.prototype,"size",{get:function(){return this._c.size}})):(x=y.getConstructor(t,e,v,_),u(x.prototype,n),o.NEED=!0),p(x,e),E[e]=x,i(i.G+i.W+i.F,E),g||y.setStrong(x,e,v),x}},function(e,t){"use strict";e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(138);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(144),i=n(12),o=n(147),a=n(29),s=n(28),u=n(56),l=n(429),c=n(93),f=n(433),p=n(13)("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",m="values",y=function(){return this};e.exports=function(e,t,n,v,g,b,x){l(n,t,v);var _,w,E,S=function(e){if(!d&&e in T)return T[e];switch(e){case h:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",A=g==m,C=!1,T=e.prototype,D=T[p]||T["@@iterator"]||g&&T[g],M=D||S(g),P=g?A?S("entries"):M:void 0,O="Array"==t&&T.entries||D;if(O&&(E=f(O.call(new e)))!==Object.prototype&&E.next&&(c(E,k,!0),r||s(E,p)||a(E,p,y)),A&&D&&D.name!==m&&(C=!0,M=function(){return D.call(this)}),r&&!x||!d&&!C&&T[p]||a(T,p,M),u[t]=M,u[k]=y,g)if(_={values:A?M:S(m),keys:b?M:S(h),entries:P},x)for(w in _)w in T||o(T,w,_[w]);else i(i.P+i.F*(d||C),t,_);return _}},function(e,t){"use strict";e.exports=!0},function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},function(e,t,n){"use strict";e.exports=n(29)},function(e,t,n){"use strict";var r=n(12),i=n(227),o=n(43),a=n(55);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(n=[],t?(r=0,s=o(u,arguments[2],2),a(e,!1,(function(e){n.push(s(e,r++))}))):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";var r=n(151)("keys"),i=n(95);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){"use strict";var r=n(15),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){"use strict";var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r=n(152),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(15),i=n(5),o=n(144),a=n(156),s=n(23).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";t.f=n(13)},function(e,t,n){"use strict";var r=n(437)(!0);n(143)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(15),o=n(28),a=n(22),s=n(12),u=n(147),l=n(57).KEY,c=n(27),f=n(151),p=n(93),d=n(95),h=n(13),m=n(156),y=n(155),v=n(430),g=n(425),b=n(232),x=n(21),_=n(37),w=n(154),E=n(92),S=n(90),k=n(432),A=n(235),C=n(23),T=n(44),D=A.f,M=C.f,P=k.f,O=i.Symbol,L=i.JSON,N=L&&L.stringify,F=h("_hidden"),R=h("toPrimitive"),I={}.propertyIsEnumerable,j=f("symbol-registry"),B=f("symbols"),q=f("op-symbols"),z=Object.prototype,V="function"==typeof O,U=i.QObject,W=!U||!U.prototype||!U.prototype.findChild,Y=a&&c((function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=D(z,t);r&&delete z[t],M(e,t,n),r&&e!==z&&M(z,t,r)}:M,X=function(e){var t=B[e]=S(O.prototype);return t._k=e,t},H=V&&"symbol"==r(O.iterator)?function(e){return"symbol"==(void 0===e?"undefined":r(e))}:function(e){return e instanceof O},G=function(e,t,n){return e===z&&G(q,t,n),x(e),t=w(t,!0),x(n),o(B,t)?(n.enumerable?(o(e,F)&&e[F][t]&&(e[F][t]=!1),n=S(n,{enumerable:E(0,!1)})):(o(e,F)||M(e,F,E(1,{})),e[F][t]=!0),Y(e,t,n)):M(e,t,n)},$=function(e,t){x(e);for(var n,r=g(t=_(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},K=function(e){var t=I.call(this,e=w(e,!0));return!(this===z&&o(B,e)&&!o(q,e))&&(!(t||!o(this,e)||!o(B,e)||o(this,F)&&this[F][e])||t)},Z=function(e,t){if(e=_(e),t=w(t,!0),e!==z||!o(B,t)||o(q,t)){var n=D(e,t);return!n||!o(B,t)||o(e,F)&&e[F][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=P(_(e)),r=[],i=0;n.length>i;)o(B,t=n[i++])||t==F||t==l||r.push(t);return r},Q=function(e){for(var t,n=e===z,r=P(n?q:_(e)),i=[],a=0;r.length>a;)!o(B,t=r[a++])||n&&!o(z,t)||i.push(B[t]);return i};V||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function t(n){this===z&&t.call(q,n),o(this,F)&&o(this[F],e)&&(this[F][e]=!1),Y(this,e,E(1,n))};return a&&W&&Y(z,e,{configurable:!0,set:t}),X(e)},u(O.prototype,"toString",(function(){return this._k})),A.f=Z,C.f=G,n(236).f=k.f=J,n(91).f=K,n(145).f=Q,a&&!n(144)&&u(z,"propertyIsEnumerable",K,!0),m.f=function(e){return X(h(e))}),s(s.G+s.W+s.F*!V,{Symbol:O});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)h(ee[te++]);for(var ne=T(h.store),re=0;ne.length>re;)y(ne[re++]);s(s.S+s.F*!V,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=O(e)},keyFor:function(e){if(H(e))return v(j,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!V,"Object",{create:function(e,t){return void 0===t?S(e):$(S(e),t)},defineProperty:G,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),L&&s(s.S+s.F*(!V||c((function(){var e=O();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){if(void 0!==e&&!H(e)){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);return"function"==typeof(t=r[1])&&(n=t),!n&&b(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!H(t))return t}),r[1]=t,N.apply(L,r)}}}),O.prototype[R]||n(29)(O.prototype,R,O.prototype.valueOf),p(O,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(38)(n(17),"Map");e.exports=r},function(e,t,n){"use strict";var r=n(551),i=n(552),o=n(553),a=n(554),s=n(555);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){"use strict";var r=n(499),i=n(102),o=n(270),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){var r={"./index":50,"./index.js":50,"./logger":120,"./logger.js":120,"./metadata":121,"./metadata.js":121,"./options/build-config-chain":51,"./options/build-config-chain.js":51,"./options/config":33,"./options/config.js":33,"./options/index":52,"./options/index.js":52,"./options/option-manager":34,"./options/option-manager.js":34,"./options/parsers":53,"./options/parsers.js":53,"./options/removed":54,"./options/removed.js":54};function i(e){return n(o(e))}function o(e){return r[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=178},function(e,t,n){var r={"./build-config-chain":51,"./build-config-chain.js":51,"./config":33,"./config.js":33,"./index":52,"./index.js":52,"./option-manager":34,"./option-manager.js":34,"./parsers":53,"./parsers.js":53,"./removed":54,"./removed.js":54};function i(e){return n(o(e))}function o(e){return r[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=179},function(e,t){"use strict";e.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Math.max(n,0);var i=r.highlightCode&&a.default.supportsColor||r.forceColor,o=a.default;r.forceColor&&(o=new a.default.constructor({enabled:!0}));var s=function(e,t){return i?e(t):t},c=u(o);i&&(e=d(c,e));var f=r.linesAbove||2,p=r.linesBelow||3,h=e.split(l),m=Math.max(t-(f+1),0),y=Math.min(h.length,t+p);t||n||(m=0,y=h.length);var v=String(y).length,g=h.slice(m,y).map((function(e,r){var i=m+1+r,o=" "+(" "+i).slice(-v)+" | ";if(i===t){var a="";if(n){var u=e.slice(0,n-1).replace(/[^\t]/g," ");a=["\n ",s(c.gutter,o.replace(/\d/g," ")),u,s(c.marker,"^")].join("")}return[s(c.marker,">"),s(c.gutter,o),e,a].join("")}return" "+s(c.gutter,o)+e})).join("\n");return i?o.reset(g):g};var r=n(468),i=s(r),o=s(n(97)),a=s(n(401));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold,gutter:e.grey,marker:e.red.bold}}var l=/\r\n|[\n\r\u2028\u2029]/,c=/^[a-z][\w-]*$/i,f=/^[()\[\]{}]$/;function p(e){var t=e.slice(-2),n=t[0],i=t[1],a=(0,r.matchToToken)(e);if("name"===a.type){if(o.default.keyword.isReservedWordES6(a.value))return"keyword";if(c.test(a.value)&&("<"===i[n-1]||"1&&void 0!==arguments[1]?arguments[1]:{};return t.filename=e,x(c.default.readFileSync(e,"utf8"),t)};var c=g(n(115)),f=v(n(122)),p=v(n(20)),d=v(n(1)),h=g(n(7)),m=g(n(34)),y=g(n(298));function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}t.util=f,t.messages=p,t.types=d,t.traverse=h.default,t.OptionManager=m.default,t.Pipeline=y.default;var b=new y.default,x=(t.analyse=b.analyse.bind(b),t.transform=b.transform.bind(b));t.transformFromAst=b.transformFromAst.bind(b)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.reduce((function(e,n){return e||(0,i.default)(n,t)}),null)};var r,i=(r=n(118))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){(function(r){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.cwd();return(0,i.default)((0,o.default)(e),t)};var i=a(n(183)),o=a(n(291));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default}).call(t,n(8))},function(e,t,n){(function(r){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.cwd();return(0,i.default)((0,o.default)(e),t)};var i=a(n(183)),o=a(n(292));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default}).call(t,n(8))},function(e,t,n){"use strict";t.__esModule=!0,t.CodeGenerator=void 0;var r=l(n(3)),i=l(n(42)),o=l(n(41));t.default=function(e,t,n){return new c(e,t,n).generate()};var a=l(n(459)),s=l(n(313)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(20));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2];(0,r.default)(this,t);var u=n.tokens||[],l=f(a,o,u),c=o.sourceMaps?new s.default(o,a):null,p=(0,i.default)(this,e.call(this,l,c,u));return p.ast=n,p}return(0,o.default)(t,e),t.prototype.generate=function(){return e.prototype.generate.call(this,this.ast)},t}(l(n(312)).default);function f(e,t,n){var r=" ";if(e&&"string"==typeof e){var i=(0,a.default)(e).indent;i&&" "!==i&&(r=i)}var o={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,quotes:t.quotes||p(e,n),jsonCompatibleStrings:t.jsonCompatibleStrings,indent:{adjustMultilineComment:!0,style:r,base:0},flowCommaSeparator:t.flowCommaSeparator};return o.minified?(o.compact=!0,o.shouldPrintComment=o.shouldPrintComment||function(){return o.comments}):o.shouldPrintComment=o.shouldPrintComment||function(e){return o.comments||e.indexOf("@license")>=0||e.indexOf("@preserve")>=0},"auto"===o.compact&&(o.compact=e.length>5e5,o.compact&&console.error("[BABEL] "+u.get("codeGeneratorDeopt",t.filename,"500KB"))),o.compact&&(o.indent.adjustMultilineComment=!1),o}function p(e,t){if(!e)return"double";for(var n={single:0,double:0},r=0,i=0;i=3))break}return n.single>n.double?"single":"double"}t.CodeGenerator=function(){function e(t,n,i){(0,r.default)(this,e),this._generator=new c(t,n,i)}return e.prototype.generate=function(){return this._generator.generate()},e}()},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(2)),i=l(n(14));t.needsWhitespace=y,t.needsWhitespaceBefore=function(e,t){return y(e,t,"before")},t.needsWhitespaceAfter=function(e,t){return y(e,t,"after")},t.needsParens=function(e,t,n){return!!t&&(!(!s.isNewExpression(t)||t.callee!==e||!m(e))||h(f,e,t,n))};var o=l(n(311)),a=u(n(310)),s=u(n(1));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(e){return e&&e.__esModule?e:{default:e}}function c(e){var t={};function n(e,n){var r=t[e];t[e]=r?function(e,t,i){var o=r(e,t,i);return null==o?n(e,t,i):o}:n}var o=(0,i.default)(e),a=Array.isArray(o),u=0;for(o=a?o:(0,r.default)(o);;){var l;if(a){if(u>=o.length)break;l=o[u++]}else{if((u=o.next()).done)break;l=u.value}var c=l,f=s.FLIPPED_ALIAS_KEYS[c];if(f){var p=f,d=Array.isArray(p),h=0;for(p=d?p:(0,r.default)(p);;){var m;if(d){if(h>=p.length)break;m=p[h++]}else{if((h=p.next()).done)break;m=h.value}n(m,e[c])}}else n(c,e[c])}return t}var f=c(a),p=c(o.default.nodes),d=c(o.default.list);function h(e,t,n,r){var i=e[t.type];return i?i(t,n,r):null}function m(e){return!!s.isCallExpression(e)||!!s.isMemberExpression(e)&&(m(e.object)||!e.computed&&m(e.property))}function y(e,t,n){if(!e)return 0;s.isExpressionStatement(e)&&(e=e.expression);var r=h(p,e,t);if(!r){var i=h(d,e,t);if(i)for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:"var";e.traverse(a,{kind:n,emit:t})};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),a={Scope:function(e,t){"let"===t.kind&&e.skip()},Function:function(e){e.skip()},VariableDeclaration:function(e,t){if(!t.kind||e.node.kind===t.kind){var n=[],r=void 0,a=e.get("declarations"),s=Array.isArray(a),u=0;for(a=s?a:(0,i.default)(a);;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var c=l;for(var f in r=c.node.id,c.node.init&&n.push(o.expressionStatement(o.assignmentExpression("=",c.node.id,c.node.init))),c.getBindingIdentifiers())t.emit(o.identifier(f),f)}e.parentPath.isFor({left:e.node})?e.replaceWith(r):e.replaceWithMultiple(n)}}};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){return 1===n.length&&r.isSpreadElement(n[0])&&r.isIdentifier(n[0].argument,{name:"arguments"})?r.callExpression(r.memberExpression(e,r.identifier("apply")),[t,n[0].argument]):r.callExpression(r.memberExpression(e,r.identifier("call")),[t].concat(n))};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.is=function(e,t){return o.isRegExpLiteral(e)&&e.flags.indexOf(t)>=0},t.pullFlag=function(e,t){var n=e.flags.split("");e.flags.indexOf(t)<0||((0,i.default)(n,t),e.flags=n.join(""))};var r,i=(r=n(277))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1))},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(3)),i=l(n(10)),o=l(n(191)),a=u(n(20)),s=u(n(1));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.default)();function f(e){return s.isMemberExpression(e)&&s.isSuper(e.object)}function p(e,t){var n=t?e:s.memberExpression(e,s.identifier("prototype"));return s.logicalExpression("||",s.memberExpression(n,s.identifier("__proto__")),s.callExpression(s.memberExpression(s.identifier("Object"),s.identifier("getPrototypeOf")),[n]))}var d={Function:function(e){e.inShadow("this")||e.skip()},ReturnStatement:function(e,t){e.inShadow("this")||t.returns.push(e)},ThisExpression:function(e,t){e.node[c]||t.thises.push(e)},enter:function(e,t){var n=t.specHandle;t.isLoose&&(n=t.looseHandle);var r=e.isCallExpression()&&e.get("callee").isSuper(),i=n.call(t,e);i&&(t.hasSuper=!0),r&&t.bareSupers.push(e),!0===i&&e.requeue(),!0!==i&&i&&(Array.isArray(i)?e.replaceWithMultiple(i):e.replaceWith(i))}},h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.default)(this,e),this.forceSuperMemoisation=t.forceSuperMemoisation,this.methodPath=t.methodPath,this.methodNode=t.methodNode,this.superRef=t.superRef,this.isStatic=t.isStatic,this.hasSuper=!1,this.inClass=n,this.isLoose=t.isLoose,this.scope=this.methodPath.scope,this.file=t.file,this.opts=t,this.bareSupers=[],this.returns=[],this.thises=[]}return e.prototype.getObjectRef=function(){return this.opts.objectRef||this.opts.getObjectRef()},e.prototype.setSuperProperty=function(e,t,n){return s.callExpression(this.file.addHelper("set"),[p(this.getObjectRef(),this.isStatic),n?e:s.stringLiteral(e.name),t,s.thisExpression()])},e.prototype.getSuperProperty=function(e,t){return s.callExpression(this.file.addHelper("get"),[p(this.getObjectRef(),this.isStatic),t?e:s.stringLiteral(e.name),s.thisExpression()])},e.prototype.replace=function(){this.methodPath.traverse(d,this)},e.prototype.getLooseSuperProperty=function(e,t){var n=this.methodNode,r=this.superRef||s.identifier("Function");return t.property===e||s.isCallExpression(t,{callee:e})?void 0:s.isMemberExpression(t)&&!n.static?s.memberExpression(r,s.identifier("prototype")):r},e.prototype.looseHandle=function(e){var t=e.node;if(e.isSuper())return this.getLooseSuperProperty(t,e.parent);if(e.isCallExpression()){var n=t.callee;if(!s.isMemberExpression(n))return;if(!s.isSuper(n.object))return;return s.appendToMemberExpression(n,s.identifier("call")),t.arguments.unshift(s.thisExpression()),!0}},e.prototype.specHandleAssignmentExpression=function(e,t,n){return"="===n.operator?this.setSuperProperty(n.left.property,n.right,n.left.computed):(e=e||t.scope.generateUidIdentifier("ref"),[s.variableDeclaration("var",[s.variableDeclarator(e,n.left)]),s.expressionStatement(s.assignmentExpression("=",n.left,s.binaryExpression(n.operator[0],e,n.right)))])},e.prototype.specHandle=function(e){var t=void 0,n=void 0,r=void 0,i=e.parent,o=e.node;if(function(e,t){return!!s.isSuper(e)&&!s.isMemberExpression(t,{computed:!1})&&!s.isCallExpression(t,{callee:e})}(o,i))throw e.buildCodeFrameError(a.get("classesIllegalBareSuper"));if(s.isCallExpression(o)){var u=o.callee;if(s.isSuper(u))return;f(u)&&(t=u.property,n=u.computed,r=o.arguments)}else if(s.isMemberExpression(o)&&s.isSuper(o.object))t=o.property,n=o.computed;else{if(s.isUpdateExpression(o)&&f(o.argument)){var l=s.binaryExpression(o.operator[0],o.argument,s.numericLiteral(1));if(o.prefix)return this.specHandleAssignmentExpression(null,e,l);var c=e.scope.generateUidIdentifier("ref");return this.specHandleAssignmentExpression(c,e,l).concat(s.expressionStatement(c))}if(s.isAssignmentExpression(o)&&f(o.left))return this.specHandleAssignmentExpression(null,e,o)}if(t){var p=this.getSuperProperty(t,n);return r?this.optimiseCall(p,r):p}},e.prototype.optimiseCall=function(e,t){var n=s.thisExpression();return n[c]=!0,(0,o.default)(e,n,t)},e}();t.default=h,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.list=void 0;var r=o(n(14));t.get=a;var i=o(n(321));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=i.default[e];if(!t)throw new ReferenceError("Unknown helper "+e);return t().expression}t.list=(0,r.default)(i.default).map((function(e){return e.replace(/^_/,"")})).filter((function(e){return"__esModule"!==e})),t.default=a},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("asyncGenerators")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("classConstructorCall")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("classProperties")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("doExpressions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("exponentiationOperator")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("exportExtensions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("functionBind")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("objectRestSpread")}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(2)),i=o(n(10));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.types,o=(0,i.default)();return{inherits:n(196),visitor:{Class:function(e){if(!e.node[o]){e.node[o]=!0;var n=function(e){var t=e.get("body.body"),n=Array.isArray(t),i=0;for(t=n?t:(0,r.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}var a=o;if("constructorCall"===a.node.kind)return a}return null}(e);n&&function(e,n){var r=n.node,i=r.id||n.scope.generateUidIdentifier("class");n.parentPath.isExportDefaultDeclaration()&&(n=n.parentPath).insertAfter(t.exportDefaultDeclaration(i)),n.replaceWithMultiple(a({CLASS_REF:n.scope.generateUidIdentifier(i.name),CALL_REF:n.scope.generateUidIdentifier(i.name+"Call"),CALL:t.functionExpression(null,e.node.params,e.node.body),CLASS:t.toExpression(r),WRAPPER_REF:i})),e.remove()}(n,e)}}}}};var a=(0,o(n(4)).default)("\n let CLASS_REF = CLASS;\n var CALL_REF = CALL;\n var WRAPPER_REF = function (...args) {\n if (this instanceof WRAPPER_REF) {\n return Reflect.construct(CLASS_REF, args);\n } else {\n return CALL_REF.apply(this, args);\n }\n };\n WRAPPER_REF.__proto__ = CLASS_REF;\n WRAPPER_REF;\n");e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(2));t.default=function(e){var t=e.types,a={Super:function(e){e.parentPath.isCallExpression({callee:e.node})&&this.push(e.parentPath)}},s={ReferencedIdentifier:function(e){this.scope.hasOwnBinding(e.node.name)&&(this.collision=!0,e.skip())}},u=(0,o.default)("\n Object.defineProperty(REF, KEY, {\n // configurable is false by default\n enumerable: true,\n writable: true,\n value: VALUE\n });\n "),l=function(e,n){var r=n.key,i=n.value,o=n.computed;return u({REF:e,KEY:t.isIdentifier(r)&&!o?t.stringLiteral(r.name):r,VALUE:i||t.identifier("undefined")})},c=function(e,n){var r=n.key,i=n.value,o=n.computed;return t.expressionStatement(t.assignmentExpression("=",t.memberExpression(e,r,o||t.isLiteral(r)),i))};return{inherits:n(197),visitor:{Class:function(e,n){var o=n.opts.spec?l:c,u=!!e.node.superClass,f=void 0,p=[],d=e.get("body"),h=d.get("body"),m=Array.isArray(h),y=0;for(h=m?h:(0,r.default)(h);;){var v;if(m){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}var g=v;g.isClassProperty()?p.push(g):g.isClassMethod({kind:"constructor"})&&(f=g)}if(p.length){var b=[],x=void 0;e.isClassExpression()||!e.node.id?((0,i.default)(e),x=e.scope.generateUidIdentifier("class")):x=e.node.id;var _=[],w=p,E=Array.isArray(w),S=0;for(w=E?w:(0,r.default)(w);;){var k;if(E){if(S>=w.length)break;k=w[S++]}else{if((S=w.next()).done)break;k=S.value}var A=k.node;if(!(A.decorators&&A.decorators.length>0)&&(n.opts.spec||A.value))if(A.static)b.push(o(x,A));else{if(!A.value)continue;_.push(o(t.thisExpression(),A))}}if(_.length){if(!f){var C=t.classMethod("constructor",t.identifier("constructor"),[],t.blockStatement([]));u&&(C.params=[t.restElement(t.identifier("args"))],C.body.body.push(t.returnStatement(t.callExpression(t.super(),[t.spreadElement(t.identifier("args"))])))),f=d.unshiftContainer("body",C)[0]}var T={collision:!1,scope:f.scope},D=p,M=Array.isArray(D),P=0;for(D=M?D:(0,r.default)(D);;){var O;if(M){if(P>=D.length)break;O=D[P++]}else{if((P=D.next()).done)break;O=P.value}if(O.traverse(s,T),T.collision)break}if(T.collision){var L=e.scope.generateUidIdentifier("initialiseProps");b.push(t.variableDeclaration("var",[t.variableDeclarator(L,t.functionExpression(null,[],t.blockStatement(_)))])),_=[t.expressionStatement(t.callExpression(t.memberExpression(L,t.identifier("call")),[t.thisExpression()]))]}if(u){var N=[];f.traverse(a,N);var F=N,R=Array.isArray(F),I=0;for(F=R?F:(0,r.default)(F);;){var j;if(R){if(I>=F.length)break;j=F[I++]}else{if((I=F.next()).done)break;j=I.value}j.insertAfter(_)}}else f.get("body").unshiftContainer("body",_)}var B=p,q=Array.isArray(B),z=0;for(B=q?B:(0,r.default)(B);;){var V;if(q){if(z>=B.length)break;V=B[z++]}else{if((z=B.next()).done)break;V=z.value}V.remove()}b.length&&(e.isClassExpression()?(e.scope.push({id:x}),e.replaceWith(t.assignmentExpression("=",x,e.node))):(e.node.id||(e.node.id=x),e.parentPath.isExportDeclaration()&&(e=e.parentPath)),e.insertAfter(b))}},ArrowFunctionExpression:function(e){var t=e.get("body");t.isClassExpression()&&t.get("body").get("body").some((function(e){return e.isClassProperty()}))&&e.ensureBlock()}}}};var i=a(n(40)),o=a(n(4));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(9)),i=s(n(2));t.default=function(e){var t=e.types;function o(e,n,o){var a=[],s=e.node.decorators;if(s){e.node.decorators=null;var l=s=s.reverse().map((function(e){return e.expression})),c=Array.isArray(l),f=0;for(l=c?l:(0,i.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;a.push(u({CLASS_REF:n,DECORATOR:d}))}}var h=(0,r.default)(null),m=e.get("body.body"),y=Array.isArray(m),v=0;for(m=y?m:(0,i.default)(m);;){var g;if(y){if(v>=m.length)break;g=m[v++]}else{if((v=m.next()).done)break;g=v.value}var b=g;if(b.node.decorators){var x=t.toKeyAlias(b.node);h[x]=h[x]||[],h[x].push(b.node),b.remove()}}for(var _ in h)h[_];return a}function s(e){if(e.isClass()){if(e.node.decorators)return!0;var t=e.node.body.body,n=Array.isArray(t),r=0;for(t=n?t:(0,i.default)(t);;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}if(o.decorators)return!0}}else if(e.isObjectExpression()){var a=e.node.properties,s=Array.isArray(a),u=0;for(a=s?a:(0,i.default)(a);;){var l;if(s){if(u>=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}if(l.decorators)return!0}}return!1}function l(e){throw e.buildCodeFrameError('Decorators are not officially supported yet in 6.x pending a proposal update.\nHowever, if you need to use them you can install the legacy decorators transform with:\n\nnpm install babel-plugin-transform-decorators-legacy --save-dev\n\nand add the following line to your .babelrc file:\n\n{\n "plugins": ["transform-decorators-legacy"]\n}\n\nThe repo url is: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.\n ')}return{inherits:n(125),visitor:{ClassExpression:function(e){if(s(e)){l(e),(0,a.default)(e);var n=e.scope.generateDeclaredUidIdentifier("ref"),r=[];r.push(t.assignmentExpression("=",n,e.node)),(r=r.concat(o(e,n))).push(n),e.replaceWith(t.sequenceExpression(r))}},ClassDeclaration:function(e){if(s(e)){l(e),(0,a.default)(e);var n=e.node.id,r=[];(r=r.concat(o(e,n).map((function(e){return t.expressionStatement(e)})))).push(t.expressionStatement(n)),e.insertAfter(r)}},ObjectExpression:function(e){s(e)&&l(e)}}}};var o=s(n(4)),a=s(n(319));function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.default)("\n CLASS_REF = DECORATOR(CLASS_REF) || CLASS_REF;\n");e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{inherits:n(198),visitor:{DoExpression:function(e){var t=e.node.body.body;t.length?e.replaceWithMultiple(t):e.replaceWith(e.scope.buildUndefinedNode())}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=p(n(2)),i=p(n(3)),o=n(7),a=p(n(193)),s=p(n(191)),u=f(n(188)),l=p(n(4)),c=f(n(1));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}var d=(0,l.default)("\n (function () {\n super(...arguments);\n })\n"),h={"FunctionExpression|FunctionDeclaration":function(e){e.is("shadow")||e.skip()},Method:function(e){e.skip()}},m=o.visitors.merge([h,{Super:function(e){if(this.isDerived&&!this.hasBareSuper&&!e.parentPath.isCallExpression({callee:e.node}))throw e.buildCodeFrameError("'super.*' is not allowed before super()")},CallExpression:{exit:function(e){if(e.get("callee").isSuper()&&(this.hasBareSuper=!0,!this.isDerived))throw e.buildCodeFrameError("super() is only allowed in a derived constructor")}},ThisExpression:function(e){if(this.isDerived&&!this.hasBareSuper&&!e.inShadow("this"))throw e.buildCodeFrameError("'this' is not allowed before super()")}}]),y=o.visitors.merge([h,{ThisExpression:function(e){this.superThises.push(e)}}]),v=function(){function e(t,n){(0,i.default)(this,e),this.parent=t.parent,this.scope=t.scope,this.node=t.node,this.path=t,this.file=n,this.clearDescriptors(),this.instancePropBody=[],this.instancePropRefs={},this.staticPropBody=[],this.body=[],this.bareSuperAfter=[],this.bareSupers=[],this.pushedConstructor=!1,this.pushedInherits=!1,this.isLoose=!1,this.superThises=[],this.classId=this.node.id,this.classRef=this.node.id?c.identifier(this.node.id.name):this.scope.generateUidIdentifier("class"),this.superName=this.node.superClass||c.identifier("Function"),this.isDerived=!!this.node.superClass}return e.prototype.run=function(){var e=this,t=this.superName,n=this.file,r=this.body,i=this.constructorBody=c.blockStatement([]);this.constructor=this.buildConstructor();var o=[],a=[];if(this.isDerived&&(a.push(t),t=this.scope.generateUidIdentifierBasedOnNode(t),o.push(t),this.superName=t),this.buildBody(),i.body.unshift(c.expressionStatement(c.callExpression(n.addHelper("classCallCheck"),[c.thisExpression(),this.classRef]))),r=r.concat(this.staticPropBody.map((function(t){return t(e.classRef)}))),this.classId&&1===r.length)return c.toExpression(r[0]);r.push(c.returnStatement(this.classRef));var s=c.functionExpression(null,o,c.blockStatement(r));return s.shadow=!0,c.callExpression(s,a)},e.prototype.buildConstructor=function(){var e=c.functionDeclaration(this.classRef,[],this.constructorBody);return c.inherits(e,this.node),e},e.prototype.pushToMap=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",r=arguments[3],i=void 0;e.static?(this.hasStaticDescriptors=!0,i=this.staticMutatorMap):(this.hasInstanceDescriptors=!0,i=this.instanceMutatorMap);var o=u.push(i,e,n,this.file,r);return t&&(o.enumerable=c.booleanLiteral(!0)),o},e.prototype.constructorMeMaybe=function(){var e=!1,t=this.path.get("body.body"),n=Array.isArray(t),i=0;for(t=n?t:(0,r.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}if(e=o.equals("kind","constructor"))break}if(!e){var a=void 0,s=void 0;if(this.isDerived){var u=d().expression;a=u.params,s=u.body}else a=[],s=c.blockStatement([]);this.path.get("body").unshiftContainer("body",c.classMethod("constructor",c.identifier("constructor"),a,s))}},e.prototype.buildBody=function(){if(this.constructorMeMaybe(),this.pushBody(),this.verifyConstructor(),this.userConstructor){var e=this.constructorBody;e.body=e.body.concat(this.userConstructor.body.body),c.inherits(this.constructor,this.userConstructor),c.inherits(e,this.userConstructor.body)}this.pushDescriptors()},e.prototype.pushBody=function(){var e=this.path.get("body.body"),t=Array.isArray(e),n=0;for(e=t?e:(0,r.default)(e);;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var o=i,s=o.node;if(o.isClassProperty())throw o.buildCodeFrameError("Missing class properties transform.");if(s.decorators)throw o.buildCodeFrameError("Method has decorators, put the decorator plugin before the classes one.");if(c.isClassMethod(s)){var u="constructor"===s.kind;if(u&&(o.traverse(m,this),!this.hasBareSuper&&this.isDerived))throw o.buildCodeFrameError("missing super() call in constructor");var l=new a.default({forceSuperMemoisation:u,methodPath:o,methodNode:s,objectRef:this.classRef,superRef:this.superName,isStatic:s.static,isLoose:this.isLoose,scope:this.scope,file:this.file},!0);l.replace(),u?this.pushConstructor(l,s,o):this.pushMethod(s,o)}}},e.prototype.clearDescriptors=function(){this.hasInstanceDescriptors=!1,this.hasStaticDescriptors=!1,this.instanceMutatorMap={},this.staticMutatorMap={}},e.prototype.pushDescriptors=function(){this.pushInherits();var e=this.body,t=void 0,n=void 0;if(this.hasInstanceDescriptors&&(t=u.toClassObject(this.instanceMutatorMap)),this.hasStaticDescriptors&&(n=u.toClassObject(this.staticMutatorMap)),t||n){t&&(t=u.toComputedObjectFromClass(t)),n&&(n=u.toComputedObjectFromClass(n));var r=c.nullLiteral(),i=[this.classRef,r,r,r,r];t&&(i[1]=t),n&&(i[2]=n),this.instanceInitializersId&&(i[3]=this.instanceInitializersId,e.unshift(this.buildObjectAssignment(this.instanceInitializersId))),this.staticInitializersId&&(i[4]=this.staticInitializersId,e.unshift(this.buildObjectAssignment(this.staticInitializersId)));for(var o=0,a=0;a=s.length)break;f=s[l++]}else{if((l=s.next()).done)break;f=l.value}var p=f;this.wrapSuperCall(p,o,a,n),i&&p.find((function(e){return e===t||(e.isLoop()||e.isConditional()?(i=!1,!0):void 0)}))}var d=this.superThises,h=Array.isArray(d),m=0;for(d=h?d:(0,r.default)(d);;){var v;if(h){if(m>=d.length)break;v=d[m++]}else{if((m=d.next()).done)break;v=m.value}v.replaceWith(a)}var g=function(t){return c.callExpression(e.file.addHelper("possibleConstructorReturn"),[a].concat(t||[]))},b=n.get("body");b.length&&!b.pop().isReturnStatement()&&n.pushContainer("body",c.returnStatement(i?a:g()));var x=this.superReturns,_=Array.isArray(x),w=0;for(x=_?x:(0,r.default)(x);;){var E;if(_){if(w>=x.length)break;E=x[w++]}else{if((w=x.next()).done)break;E=w.value}var S=E;if(S.node.argument){var k=S.scope.generateDeclaredUidIdentifier("ret");S.get("argument").replaceWithMultiple([c.assignmentExpression("=",k,S.node.argument),g(k)])}else S.get("argument").replaceWith(g())}}},e.prototype.pushMethod=function(e,t){var n=t?t.scope:this.scope;"method"===e.kind&&this._processMethod(e,n)||this.pushToMap(e,!1,null,n)},e.prototype._processMethod=function(){return!1},e.prototype.pushConstructor=function(e,t,n){this.bareSupers=e.bareSupers,this.superReturns=e.returns,n.scope.hasOwnBinding(this.classRef.name)&&n.scope.rename(this.classRef.name);var r=this.constructor;this.userConstructorPath=n,this.userConstructor=t,this.hasConstructor=!0,c.inheritsComments(r,t),r._ignoreUserWhitespace=!0,r.params=t.params,c.inherits(r.body,t.body),r.body.directives=t.body.directives,this._pushConstructor()},e.prototype._pushConstructor=function(){this.pushedConstructor||(this.pushedConstructor=!0,(this.hasInstanceDescriptors||this.hasStaticDescriptors)&&this.pushDescriptors(),this.body.push(this.constructor),this.pushInherits())},e.prototype.pushInherits=function(){this.isDerived&&!this.pushedInherits&&(this.pushedInherits=!0,this.body.unshift(c.expressionStatement(c.callExpression(this.file.addHelper("inherits"),[this.classRef,this.superName]))))},e}();t.default=v,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(9)),i=u(n(2)),o=u(n(10));t.default=function(e){var t=e.types,n=(0,o.default)(),s={"AssignmentExpression|UpdateExpression":function(e){if(!e.node[n]){e.node[n]=!0;var r=e.get(e.isAssignmentExpression()?"left":"argument");if(r.isIdentifier()){var o=r.node.name;if(this.scope.getBinding(o)===e.scope.getBinding(o)){var a=this.exports[o];if(a){var s=e.node,u=e.isUpdateExpression()&&!s.prefix;u&&("++"===s.operator?s=t.binaryExpression("+",s.argument,t.numericLiteral(1)):"--"===s.operator?s=t.binaryExpression("-",s.argument,t.numericLiteral(1)):u=!1);var l=a,c=Array.isArray(l),f=0;for(l=c?l:(0,i.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;s=this.buildCall(d,s).expression}u&&(s=t.sequenceExpression([s,e.node])),e.replaceWith(s)}}}}}};return{visitor:{CallExpression:function(e,n){if(e.node.callee.type===f){var r=n.contextIdent;e.replaceWith(t.callExpression(t.memberExpression(r,t.identifier("import")),e.node.arguments))}},ReferencedIdentifier:function(e,n){"__moduleName"!=e.node.name||e.scope.hasBinding("__moduleName")||e.replaceWith(t.memberExpression(n.contextIdent,t.identifier("id")))},Program:{enter:function(e,t){t.contextIdent=e.scope.generateUidIdentifier("context")},exit:function(e,n){var o=e.scope.generateUidIdentifier("export"),u=n.contextIdent,f=(0,r.default)(null),p=[],d=[],h=[],m=[],y=[],v=[];function g(e,t){f[e]=f[e]||[],f[e].push(t)}function b(e,t,n){var r=void 0;p.forEach((function(t){t.key===e&&(r=t)})),r||p.push(r={key:e,imports:[],exports:[]}),r[t]=r[t].concat(n)}function x(e,n){return t.expressionStatement(t.callExpression(o,[t.stringLiteral(e),n]))}var _=e.get("body"),w=!0,E=_,S=Array.isArray(E),k=0;for(E=S?E:(0,i.default)(E);;){var A;if(S){if(k>=E.length)break;A=E[k++]}else{if((k=E.next()).done)break;A=k.value}var C=A;if(C.isExportDeclaration()&&(C=C.get("declaration")),C.isVariableDeclaration()&&"var"!==C.node.kind){w=!1;break}}var T=_,D=Array.isArray(T),M=0;for(T=D?T:(0,i.default)(T);;){var P;if(D){if(M>=T.length)break;P=T[M++]}else{if((M=T.next()).done)break;P=M.value}var O=P;if(w&&O.isFunctionDeclaration())d.push(O.node),v.push(O);else if(O.isImportDeclaration()){var L=O.node.source.value;for(var N in b(L,"imports",O.node.specifiers),O.getBindingIdentifiers())O.scope.removeBinding(N),y.push(t.identifier(N));O.remove()}else if(O.isExportAllDeclaration())b(O.node.source.value,"exports",O.node),O.remove();else if(O.isExportDefaultDeclaration()){var F=O.get("declaration");if(F.isClassDeclaration()||F.isFunctionDeclaration()){var R=F.node.id,I=[];R?(I.push(F.node),I.push(x("default",R)),g(R.name,"default")):I.push(x("default",t.toExpression(F.node))),!w||F.isClassDeclaration()?O.replaceWithMultiple(I):(d=d.concat(I),v.push(O))}else O.replaceWith(x("default",F.node))}else if(O.isExportNamedDeclaration()){var j=O.get("declaration");if(j.node){O.replaceWith(j);var B=[],q=void 0;if(O.isFunction()){var z,V=j.node,U=V.id.name;w?(g(U,U),d.push(V),d.push(x(U,V.id)),v.push(O)):((z={})[U]=V.id,q=z)}else q=j.getBindingIdentifiers();for(var W in q)g(W,W),B.push(x(W,t.identifier(W)));O.insertAfter(B)}else{var Y=O.node.specifiers;if(Y&&Y.length)if(O.node.source)b(O.node.source.value,"exports",Y),O.remove();else{var X=[],H=Y,G=Array.isArray(H),$=0;for(H=G?H:(0,i.default)(H);;){var K;if(G){if($>=H.length)break;K=H[$++]}else{if(($=H.next()).done)break;K=$.value}var Z=K;X.push(x(Z.exported.name,Z.local)),g(Z.local.name,Z.exported.name)}O.replaceWithMultiple(X)}}}}p.forEach((function(n){var r=[],a=e.scope.generateUidIdentifier(n.key),s=n.imports,u=Array.isArray(s),l=0;for(s=u?s:(0,i.default)(s);;){var f;if(u){if(l>=s.length)break;f=s[l++]}else{if((l=s.next()).done)break;f=l.value}var p=f;t.isImportNamespaceSpecifier(p)?r.push(t.expressionStatement(t.assignmentExpression("=",p.local,a))):t.isImportDefaultSpecifier(p)&&(p=t.importSpecifier(p.local,t.identifier("default"))),t.isImportSpecifier(p)&&r.push(t.expressionStatement(t.assignmentExpression("=",p.local,t.memberExpression(a,p.imported))))}if(n.exports.length){var d=e.scope.generateUidIdentifier("exportObj");r.push(t.variableDeclaration("var",[t.variableDeclarator(d,t.objectExpression([]))]));var y=n.exports,v=Array.isArray(y),g=0;for(y=v?y:(0,i.default)(y);;){var b;if(v){if(g>=y.length)break;b=y[g++]}else{if((g=y.next()).done)break;b=g.value}var x=b;t.isExportAllDeclaration(x)?r.push(c({KEY:e.scope.generateUidIdentifier("key"),EXPORT_OBJ:d,TARGET:a})):t.isExportSpecifier(x)&&r.push(t.expressionStatement(t.assignmentExpression("=",t.memberExpression(d,x.exported),t.memberExpression(a,x.local))))}r.push(t.expressionStatement(t.callExpression(o,[d])))}m.push(t.stringLiteral(n.key)),h.push(t.functionExpression(null,[a],t.blockStatement(r)))}));var J=this.getModuleName();J&&(J=t.stringLiteral(J)),w&&(0,a.default)(e,(function(e){return y.push(e)})),y.length&&d.unshift(t.variableDeclaration("var",y.map((function(e){return t.variableDeclarator(e)})))),e.traverse(s,{exports:f,buildCall:x,scope:e.scope});var Q=v,ee=Array.isArray(Q),te=0;for(Q=ee?Q:(0,i.default)(Q);;){var ne;if(ee){if(te>=Q.length)break;ne=Q[te++]}else{if((te=Q.next()).done)break;ne=te.value}ne.remove()}e.node.body=[l({SYSTEM_REGISTER:t.memberExpression(t.identifier(n.opts.systemGlobal||"System"),t.identifier("register")),BEFORE_BODY:d,MODULE_NAME:J,SETTERS:h,SOURCES:m,BODY:e.node.body,EXPORT_IDENTIFIER:o,CONTEXT_IDENTIFIER:u})]}}}}};var a=u(n(190)),s=u(n(4));function u(e){return e&&e.__esModule?e:{default:e}}var l=(0,s.default)('\n SYSTEM_REGISTER(MODULE_NAME, [SOURCES], function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {\n "use strict";\n BEFORE_BODY;\n return {\n setters: [SETTERS],\n execute: function () {\n BODY;\n }\n };\n });\n'),c=(0,s.default)('\n for (var KEY in TARGET) {\n if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY];\n }\n'),f="Import";e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{inherits:n(131),visitor:{Program:{exit:function(e,n){var r=e.get("body").pop();if(function(e){if(e.isExpressionStatement()){var t=e.get("expression");if(!t.isCallExpression())return!1;if(!t.get("callee").isIdentifier({name:"define"}))return!1;var n=t.get("arguments");return!(3===n.length&&!n.shift().isStringLiteral()||2!==n.length||!n.shift().isArrayExpression()||!n.shift().isFunctionExpression())}}(r)){var o=r.node.expression,l=o.arguments,c=3===l.length?l.shift():null,f=o.arguments[0],p=o.arguments[1],d=n.opts.globals||{},h=f.elements.map((function(e){return"module"===e.value||"exports"===e.value?t.identifier(e.value):t.callExpression(t.identifier("require"),[e])})),m=f.elements.map((function(e){if("module"===e.value)return t.identifier("mod");if("exports"===e.value)return t.memberExpression(t.identifier("mod"),t.identifier("exports"));var r=void 0;if(n.opts.exactGlobals){var o=d[e.value];r=o?o.split(".").reduce((function(e,n){return t.memberExpression(e,t.identifier(n))}),t.identifier("global")):t.memberExpression(t.identifier("global"),t.identifier(t.toIdentifier(e.value)))}else{var a=(0,i.basename)(e.value,(0,i.extname)(e.value)),s=d[a]||a;r=t.memberExpression(t.identifier("global"),t.identifier(t.toIdentifier(s)))}return r})),y=c?c.value:this.file.opts.basename,v=t.memberExpression(t.identifier("global"),t.identifier(t.toIdentifier(y))),g=null;if(n.opts.exactGlobals){var b=d[y];if(b){g=[];var x=b.split(".");v=x.slice(1).reduce((function(e,n){return g.push(a({GLOBAL_REFERENCE:e})),t.memberExpression(e,t.identifier(n))}),t.memberExpression(t.identifier("global"),t.identifier(x[0])))}}var _=s({BROWSER_ARGUMENTS:m,PREREQUISITE_ASSIGNMENTS:g,GLOBAL_TO_ASSIGN:v});r.replaceWith(u({MODULE_NAME:c,AMD_ARGUMENTS:f,COMMON_ARGUMENTS:h,GLOBAL_EXPORT:_,FUNC:p}))}}}}}};var r,i=n(19),o=(r=n(4))&&r.__esModule?r:{default:r},a=(0,o.default)("\n GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}\n"),s=(0,o.default)("\n var mod = { exports: {} };\n factory(BROWSER_ARGUMENTS);\n PREREQUISITE_ASSIGNMENTS\n GLOBAL_TO_ASSIGN = mod.exports;\n"),u=(0,o.default)('\n (function (global, factory) {\n if (typeof define === "function" && define.amd) {\n define(MODULE_NAME, AMD_ARGUMENTS, factory);\n } else if (typeof exports !== "undefined") {\n factory(COMMON_ARGUMENTS);\n } else {\n GLOBAL_EXPORT\n }\n })(this, FUNC);\n');e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;function r(e,n,i){var o=e.specifiers[0];if(t.isExportNamespaceSpecifier(o)||t.isExportDefaultSpecifier(o)){var a,s=e.specifiers.shift(),u=i.generateUidIdentifier(s.exported.name);a=t.isExportNamespaceSpecifier(s)?t.importNamespaceSpecifier(u):t.importDefaultSpecifier(u),n.push(t.importDeclaration([a],e.source)),n.push(t.exportNamedDeclaration(null,[t.exportSpecifier(u,s.exported)])),r(e,n,i)}}return{inherits:n(200),visitor:{ExportNamedDeclaration:function(e){var t=e.node,n=[];r(t,n,e.scope),n.length&&(t.specifiers.length>=1&&n.push(t),e.replaceWithMultiple(n))}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types,r="@flow";return{inherits:n(126),visitor:{Program:function(e,t){var n=t.file.ast.comments,o=Array.isArray(n),a=0;for(n=o?n:(0,i.default)(n);;){var s;if(o){if(a>=n.length)break;s=n[a++]}else{if((a=n.next()).done)break;s=a.value}var u=s;u.value.indexOf(r)>=0&&(u.value=u.value.replace(r,""),u.value.replace(/\*/g,"").trim()||(u.ignore=!0))}},Flow:function(e){e.remove()},ClassProperty:function(e){e.node.variance=null,e.node.typeAnnotation=null,e.node.value||e.remove()},Class:function(e){e.node.implements=null,e.get("body.body").forEach((function(e){e.isClassProperty()&&(e.node.typeAnnotation=null,e.node.value||e.remove())}))},AssignmentPattern:function(e){e.node.left.optional=!1},Function:function(e){for(var t=e.node,n=0;n=s.length)break;c=s[l++]}else{if((l=s.next()).done)break;c=l.value}var f=c,p=f.key;t.isIdentifier(p)&&!f.computed&&(p=t.stringLiteral(f.key.name)),a.push(p)}return[o.argument,t.callExpression(e.addHelper("objectWithoutProperties"),[r,t.arrayExpression(a)])]}function a(e,n,i,o){if(n.isAssignmentPattern())a(e,n.get("left"),i,o);else if(n.isObjectPattern()&&r(n)){var s=e.scope.generateUidIdentifier("ref"),u=t.variableDeclaration("let",[t.variableDeclarator(n.node,s)]);u._blockHoist=i?o-i:1,e.ensureBlock(),e.get("body").unshiftContainer("body",u),n.replaceWith(s)}}return{inherits:n(202),visitor:{Function:function(e){for(var t=e.get("params"),n=0;n1&&!t.isIdentifier(this.originalPath.node.init)){var i=e.scope.generateUidIdentifierBasedOnNode(this.originalPath.node.init,"ref");return this.originalPath.insertBefore(t.variableDeclarator(i,this.originalPath.node.init)),void this.originalPath.replaceWith(t.variableDeclarator(this.originalPath.node.id,i))}var a=this.originalPath.node.init,s=[];e.findParent((function(e){if(e.isObjectProperty())s.unshift(e.node.key.name);else if(e.isVariableDeclarator())return!0})),s.length&&s.forEach((function(e){a=t.memberExpression(a,t.identifier(e))}));var u=o(n,e.parentPath.node.properties,a),l=u[0],c=u[1];r.insertAfter(t.variableDeclarator(l,c)),r=r.getSibling(r.key+1),0===e.parentPath.node.properties.length&&e.findParent((function(e){return e.isObjectProperty()||e.isVariableDeclarator()})).remove()}},{originalPath:e})}},ExportNamedDeclaration:function(e){var n=e.get("declaration");if(n.isVariableDeclaration()&&r(n)){var i=[];for(var o in e.getOuterBindingIdentifiers(e)){var a=t.identifier(o);i.push(t.exportSpecifier(a,a))}e.replaceWith(n.node),e.insertAfter(t.exportNamedDeclaration(null,i))}},CatchClause:function(e){var t=e.get("param");a(t.parentPath,t)},AssignmentExpression:function(e,n){var i=e.get("left");if(i.isObjectPattern()&&r(i)){var a=[],s=void 0;(e.isCompletionRecord()||e.parentPath.isExpressionStatement())&&(s=e.scope.generateUidIdentifierBasedOnNode(e.node.right,"ref"),a.push(t.variableDeclaration("var",[t.variableDeclarator(s,e.node.right)])));var u=o(n,e.node.left.properties,s),l=u[0],c=u[1],f=t.clone(e.node);f.right=s,a.push(t.expressionStatement(f)),a.push(t.toStatement(t.assignmentExpression("=",l,c))),s&&a.push(t.expressionStatement(s)),e.replaceWithMultiple(a)}},ForXStatement:function(e){var n=e.node,i=e.scope,o=e.get("left"),a=n.left;if(t.isObjectPattern(a)&&r(o)){var s=i.generateUidIdentifier("ref");return n.left=t.variableDeclaration("var",[t.variableDeclarator(s)]),e.ensureBlock(),void n.body.body.unshift(t.variableDeclaration("var",[t.variableDeclarator(a,s)]))}if(t.isVariableDeclaration(a)){var u=a.declarations[0].id;if(t.isObjectPattern(u)){var l=i.generateUidIdentifier("ref");n.left=t.variableDeclaration(a.kind,[t.variableDeclarator(l,null)]),e.ensureBlock(),n.body.body.unshift(t.variableDeclaration(n.left.kind,[t.variableDeclarator(u,l)]))}}},ObjectExpression:function(e,n){if(function(e){var n=e.properties,r=Array.isArray(n),o=0;for(n=r?n:(0,i.default)(n);;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;if(t.isSpreadProperty(s))return!0}return!1}(e.node)){var r=n.opts.useBuiltIns||!1;if("boolean"!=typeof r)throw new Error("transform-object-rest-spread currently only accepts a boolean option for useBuiltIns (defaults to false)");var o=[],a=[],s=e.node.properties,u=Array.isArray(s),l=0;for(s=u?s:(0,i.default)(s);;){var c;if(u){if(l>=s.length)break;c=s[l++]}else{if((l=s.next()).done)break;c=l.value}var f=c;t.isSpreadProperty(f)?(d(),o.push(f.argument)):a.push(f)}d(),t.isObjectExpression(o[0])||o.unshift(t.objectExpression([]));var p=r?t.memberExpression(t.identifier("Object"),t.identifier("assign")):n.addHelper("extends");e.replaceWith(t.callExpression(p,o))}function d(){a.length&&(o.push(t.objectExpression(a)),a=[])}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;function n(e,n){for(var r=n.arguments[0].properties,i=!0,o=0;o=s.length)break;c=s[l++]}else{if((l=s.next()).done)break;c=l.value}var f=c,p=n.exec(f.value);if(p){if("React.DOM"===(a=p[1]))throw o.buildCodeFrameError(f,"The @jsx React.DOM pragma has been deprecated as of React 0.12");break}}i.set("jsxIdentifier",(function(){return a.split(".").map((function(e){return t.identifier(e)})).reduce((function(e,n){return t.memberExpression(e,n)}))}))},{inherits:i.default,visitor:a}};var i=a(n(127)),o=a(n(351));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(){return{visitor:{Program:function(e,t){if(!1!==t.opts.strict&&!1!==t.opts.strictMode){var n=e.node.directives,r=Array.isArray(n),a=0;for(n=r?n:(0,i.default)(n);;){var s;if(r){if(a>=n.length)break;s=n[a++]}else{if((a=n.next()).done)break;s=a.value}if("use strict"===s.value.value)return}e.unshiftContainer("directives",o.directive(o.directiveLiteral("use strict")))}}}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=C(n(83)),i=C(n(76)),o=C(n(75)),a=C(n(68)),s=C(n(69)),u=C(n(71)),l=C(n(78)),c=C(n(80)),f=C(n(130)),p=C(n(72)),d=C(n(74)),h=C(n(82)),m=C(n(85)),y=C(n(66)),v=C(n(81)),g=C(n(79)),b=C(n(73)),x=C(n(70)),_=C(n(84)),w=C(n(77)),E=C(n(208)),S=C(n(131)),k=C(n(209)),A=C(n(86));function C(e){return e&&e.__esModule?e:{default:e}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=["commonjs","amd","umd","systemjs"],C=!1,T="commonjs",D=!1;if(void 0!==t&&(void 0!==t.loose&&(C=t.loose),void 0!==t.modules&&(T=t.modules),void 0!==t.spec&&(D=t.spec)),"boolean"!=typeof C)throw new Error("Preset es2015 'loose' option must be a boolean.");if("boolean"!=typeof D)throw new Error("Preset es2015 'spec' option must be a boolean.");if(!1!==T&&-1===n.indexOf(T))throw new Error("Preset es2015 'modules' option must be 'false' to indicate no modules\nor a module type which be be one of: 'commonjs' (default), 'amd', 'umd', 'systemjs'");var M={loose:C};return{plugins:[[r.default,{loose:C,spec:D}],i.default,o.default,[a.default,{spec:D}],s.default,[u.default,M],l.default,c.default,f.default,[p.default,M],[d.default,M],h.default,m.default,y.default,[v.default,M],g.default,[b.default,M],x.default,_.default,"commonjs"===T&&[w.default,M],"systemjs"===T&&[E.default,M],"amd"===T&&[S.default,M],"umd"===T&&[k.default,M],[A.default,{async:!1,asyncGenerators:!1}]].filter(Boolean)}}var D=T({});t.default=D,Object.defineProperty(D,"buildPreset",{configurable:!0,writable:!0,enumerable:!1,value:T}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(132))&&r.__esModule?r:{default:r};t.default={plugins:[i.default]},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(128)),i=o(n(129));function o(e){return e&&e.__esModule?e:{default:e}}t.default={plugins:[r.default,i.default]},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(221)),i=a(n(203)),o=a(n(210));function a(e){return e&&e.__esModule?e:{default:e}}t.default={presets:[r.default],plugins:[i.default,o.default]},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(222)),i=s(n(204)),o=s(n(205)),a=s(n(324));function s(e){return e&&e.__esModule?e:{default:e}}t.default={presets:[r.default],plugins:[a.default,i.default,o.default]},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(128)),i=u(n(129)),o=u(n(132)),a=u(n(213)),s=u(n(327));function u(e){return e&&e.__esModule?e:{default:e}}t.default={plugins:[r.default,i.default,o.default,s.default,a.default]},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(3))&&r.__esModule?r:{default:r};t.default=function e(t,n){(0,i.default)(this,e),this.file=t,this.options=n},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.Flow=t.Pure=t.Generated=t.User=t.Var=t.BlockScoped=t.Referenced=t.Scope=t.Expression=t.Statement=t.BindingIdentifier=t.ReferencedMemberExpression=t.ReferencedIdentifier=void 0;var r=n(1),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r);t.ReferencedIdentifier={types:["Identifier","JSXIdentifier"],checkPath:function(e,t){var n=e.node,o=e.parent;if(!i.isIdentifier(n,t)&&!i.isJSXMemberExpression(o,t)){if(!i.isJSXIdentifier(n,t))return!1;if(r.react.isCompatTag(n.name))return!1}return i.isReferenced(n,o)}},t.ReferencedMemberExpression={types:["MemberExpression"],checkPath:function(e){var t=e.node,n=e.parent;return i.isMemberExpression(t)&&i.isReferenced(t,n)}},t.BindingIdentifier={types:["Identifier"],checkPath:function(e){var t=e.node,n=e.parent;return i.isIdentifier(t)&&i.isBinding(t,n)}},t.Statement={types:["Statement"],checkPath:function(e){var t=e.node,n=e.parent;if(i.isStatement(t)){if(i.isVariableDeclaration(t)){if(i.isForXStatement(n,{left:t}))return!1;if(i.isForStatement(n,{init:t}))return!1}return!0}return!1}},t.Expression={types:["Expression"],checkPath:function(e){return e.isIdentifier()?e.isReferencedIdentifier():i.isExpression(e.node)}},t.Scope={types:["Scopable"],checkPath:function(e){return i.isScope(e.node,e.parent)}},t.Referenced={checkPath:function(e){return i.isReferenced(e.node,e.parent)}},t.BlockScoped={checkPath:function(e){return i.isBlockScoped(e.node)}},t.Var={types:["VariableDeclaration"],checkPath:function(e){return i.isVar(e.node)}},t.User={checkPath:function(e){return e.node&&!!e.node.loc}},t.Generated={checkPath:function(e){return!e.isUser()}},t.Pure={checkPath:function(e,t){return e.scope.isPure(e.node,t)}},t.Flow={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:function(e){var t=e.node;return!(!i.isFlow(t)&&(i.isImportDeclaration(t)?"type"!==t.importKind&&"typeof"!==t.importKind:i.isExportDeclaration(t)?"type"!==t.exportKind:!i.isImportSpecifier(t)||"type"!==t.importKind&&"typeof"!==t.importKind))}}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(3))&&r.__esModule?r:{default:r},o=function(){function e(t){var n=t.existing,r=t.identifier,o=t.scope,a=t.path,s=t.kind;(0,i.default)(this,e),this.identifier=r,this.scope=o,this.path=a,this.kind=s,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.clearValue(),n&&(this.constantViolations=[].concat(n.path,n.constantViolations,this.constantViolations))}return e.prototype.deoptValue=function(){this.clearValue(),this.hasDeoptedValue=!0},e.prototype.setValue=function(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)},e.prototype.clearValue=function(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null},e.prototype.reassign=function(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)},e.prototype.reference=function(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))},e.prototype.dereference=function(){this.references--,this.referenced=!!this.references},e}();t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(9))&&r.__esModule?r:{default:r};t.getBindingIdentifiers=a,t.getOuterBindingIdentifiers=function(e,t){return a(e,t,!0)};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function a(e,t,n){for(var r=[].concat(e),a=(0,i.default)(null);r.length;){var s=r.shift();if(s){var u=o.getBindingIdentifiers.keys[s.type];if(o.isIdentifier(s))t?(a[s.name]=a[s.name]||[]).push(s):a[s.name]=s;else if(o.isExportDeclaration(s))o.isDeclaration(s.declaration)&&r.push(s.declaration);else{if(n){if(o.isFunctionDeclaration(s)){r.push(s.id);continue}if(o.isFunctionExpression(s))continue}if(u)for(var l=0;ll;)for(var p,d=s(arguments[l++]),h=c?r(d).concat(c(d)):r(d),m=h.length,y=0;m>y;)f.call(d,p=h[y++])&&(n[p]=d[p]);return n}:u},function(e,t,n){"use strict";var r=n(91),i=n(92),o=n(37),a=n(154),s=n(28),u=n(231),l=Object.getOwnPropertyDescriptor;t.f=n(22)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r=n(237),i=n(141).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(28),i=n(37),o=n(420)(!1),a=n(150)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){"use strict";var r=n(228),i=n(13)("iterator"),o=n(56);e.exports=n(5).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){(function(r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(458)).log=function(){return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))})),e.splice(o,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(t,n(8))},function(e,t){"use strict";!function(){var t,n,r,i,o,a;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()},function(e,t,n){"use strict";var r=n(38)(n(17),"Set");e.exports=r},function(e,t,n){"use strict";var r=n(160),i=n(561),o=n(562);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t-1?s[u?t[l]:l]:void 0}}},function(e,t,n){"use strict";var r=n(38),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){"use strict";var r=n(242),i=n(482),o=n(254);e.exports=function(e,t,n,a,s,u){var l=1&n,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++dr&&(t[r]=t[n]),++r);return t.length=r,t},t.makeAccessor=function(e){var t=h(),n=f(null);function r(r){return s.call(r,t)||function(r){var i;o(r,t,(function(t,o){if(t===n)return o?i=null:i||(i=e(r))}))}(r),r[t](n)}return e=e||y,r.forget=function(e){s.call(e,t)&&e[t](n,!0)},r}},function(e,t,n){var r;(function(e,i){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(a){var s="object"==o(t)&&t,u="object"==o(e)&&e&&e.exports==s&&e,l="object"==(void 0===i?"undefined":o(i))&&i;l.global!==l&&l.window!==l||(a=l);var c="A range’s `stop` value must be greater than or equal to the `start` value.",f="Invalid code point value. Code points range from U+000000 to U+10FFFF.",p=55296,d=56319,h=56320,m=57343,y=/\\x00([^0123456789]|$)/g,v={},g=v.hasOwnProperty,b=function(e,t){for(var n=-1,r=e.length;++n=n&&tn)return e;if(t<=r&&n>=i)e.splice(o,2);else{if(t>=r&&n=r&&t<=i)e[o+1]=t;else if(n>=r&&n<=i)return e[o]=n+1,e;o+=2}}return e},T=function(e,t){var n,r,i=0,o=null,a=e.length;if(t<0||t>1114111)throw RangeError(f);for(;i=n&&tt)return e.splice(null!=o?o+2:0,0,t,t+1),e;if(t==r)return t+1==e[i+2]?(e.splice(i,4,n,e[i+3]),e):(e[i+1]=t+1,e);o=i,i+=2}return e.push(t,t+1),e},D=function(e,t){for(var n,r,i=0,o=e.slice(),a=t.length;i1114111||n<0||n>1114111)throw RangeError(f);for(var r,i,o=0,a=!1,s=e.length;on)return e;r>=t&&r<=n&&(i>t&&i-1<=n?(e.splice(o,2),o-=2):(e.splice(o-1,2),o-=2))}else{if(r==n+1)return e[o]=t,e;if(r>n)return e.splice(o,0,t,n+1),e;if(t>=r&&t=r&&t=i&&(e[o]=t,e[o+1]=n+1,a=!0)}o+=2}return a||e.push(t,n+1),e},O=function(e,t){var n=0,r=e.length,i=e[n],o=e[r-1];if(r>=2&&(to))return!1;for(;n=i&&t=40&&e<=43||45==e||46==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+B(e):e>=32&&e<=126?B(e):e<=255?"\\x"+E(S(e),2):"\\u"+E(S(e),4)},z=function(e){return e<=65535?q(e):"\\u{"+e.toString(16).toUpperCase()+"}"},V=function(e){var t,n=e.length,r=e.charCodeAt(0);return r>=p&&r<=d&&n>1?(t=e.charCodeAt(1),1024*(r-p)+t-h+65536):r},U=function(e){var t,n,r="",i=0,o=e.length;if(N(e))return q(e[0]);for(;i1&&(t=k.call(arguments)),this instanceof e?(this.data=[],t?this.add(t):this):(new e).add(t)};Y.version="1.3.2";var X=Y.prototype;!function(e,t){var n;for(n in t)g.call(t,n)&&(e[n]=t[n])}(X,{add:function(e){var t=this;return null==e?t:e instanceof Y?(t.data=D(t.data,e.data),t):(arguments.length>1&&(e=k.call(arguments)),_(e)?(b(e,(function(e){t.add(e)})),t):(t.data=T(t.data,w(e)?e:V(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof Y?(t.data=M(t.data,e.data),t):(arguments.length>1&&(e=k.call(arguments)),_(e)?(b(e,(function(e){t.remove(e)})),t):(t.data=A(t.data,w(e)?e:V(e)),t))},addRange:function(e,t){var n=this;return n.data=P(n.data,w(e)?e:V(e),w(t)?t:V(t)),n},removeRange:function(e,t){var n=this,r=w(e)?e:V(e),i=w(t)?t:V(t);return n.data=C(n.data,r,i),n},intersection:function(e){var t=this,n=e instanceof Y?F(e.data):e;return t.data=function(e,t){for(var n,r=0,i=t.length,o=[];r=p&&n<=d&&(o.push(t,p),r.push(p,n+1)),n>=h&&n<=m&&(o.push(t,p),r.push(p,56320),i.push(h,n+1)),n>m&&(o.push(t,p),r.push(p,56320),i.push(h,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):t>=p&&t<=d?(n>=p&&n<=d&&r.push(t,n+1),n>=h&&n<=m&&(r.push(t,56320),i.push(h,n+1)),n>m&&(r.push(t,56320),i.push(h,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):t>=h&&t<=m?(n>=h&&n<=m&&i.push(t,n+1),n>m&&(i.push(t,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):t>m&&t<=65535?n<=65535?o.push(t,n+1):(o.push(t,65536),a.push(65536,n+1)):a.push(t,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:i,bmp:o,astral:a}}(e),o=i.loneHighSurrogates,a=i.loneLowSurrogates,s=i.bmp,u=i.astral,l=!L(o),c=!L(a),f=W(u);return t&&(s=D(s,o),l=!1,s=D(s,a),c=!1),L(s)||r.push(U(s)),f.length&&r.push(function(e){var t=[];return b(e,(function(e){var n=e[0],r=e[1];t.push(U(n)+U(r))})),t.join("|")}(f)),l&&r.push(U(o)+"(?![\\uDC00-\\uDFFF])"),c&&r.push("(?:[^\\uD800-\\uDBFF]|^)"+U(a)),r.join("|")}(this.data,!!e&&e.bmpOnly,!!e&&e.hasUnicodeFlag);return t?t.replace(y,"\\0$1"):"[]"},toRegExp:function(e){var t=this.toString(e&&-1!=e.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(t,e||"")},valueOf:function(){return F(this.data)}}),X.toArray=X.valueOf,"object"==o(n(49))&&n(49)?void 0===(r=function(){return Y}.call(t,n,t,e))||(e.exports=r):s&&!s.nodeType?u?u.exports=Y:s.regenerate=Y:a.regenerate=Y}(void 0)}).call(t,n(39)(e),function(){return this}())},function(e,t,n){"use strict";var r=c(n(35)),i=c(n(64)),o=l(n(1)),a=l(n(607)),s=l(n(608)),u=l(n(116));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e){return e&&e.__esModule?e:{default:e}}var f=Object.prototype.hasOwnProperty;function p(e){i.default.ok(this instanceof p),o.assertIdentifier(e),this.nextTempId=0,this.contextId=e,this.listing=[],this.marked=[!0],this.finalLoc=h(),this.tryEntries=[],this.leapManager=new a.LeapManager(this)}var d=p.prototype;function h(){return o.numericLiteral(-1)}function m(e){return new Error("all declarations should have been transformed into assignments before the Exploder began its work: "+(0,r.default)(e))}t.Emitter=p,d.mark=function(e){o.assertLiteral(e);var t=this.listing.length;return-1===e.value?e.value=t:i.default.strictEqual(e.value,t),this.marked[t]=!0,e},d.emit=function(e){o.isExpression(e)&&(e=o.expressionStatement(e)),o.assertStatement(e),this.listing.push(e)},d.emitAssign=function(e,t){return this.emit(this.assign(e,t)),e},d.assign=function(e,t){return o.expressionStatement(o.assignmentExpression("=",e,t))},d.contextProperty=function(e,t){return o.memberExpression(this.contextId,t?o.stringLiteral(e):o.identifier(e),!!t)},d.stop=function(e){e&&this.setReturnValue(e),this.jump(this.finalLoc)},d.setReturnValue=function(e){o.assertExpression(e.value),this.emitAssign(this.contextProperty("rval"),this.explodeExpression(e))},d.clearPendingException=function(e,t){o.assertLiteral(e);var n=o.callExpression(this.contextProperty("catch",!0),[e]);t?this.emitAssign(t,n):this.emit(n)},d.jump=function(e){this.emitAssign(this.contextProperty("next"),e),this.emit(o.breakStatement())},d.jumpIf=function(e,t){o.assertExpression(e),o.assertLiteral(t),this.emit(o.ifStatement(e,o.blockStatement([this.assign(this.contextProperty("next"),t),o.breakStatement()])))},d.jumpIfNot=function(e,t){o.assertExpression(e),o.assertLiteral(t);var n;n=o.isUnaryExpression(e)&&"!"===e.operator?e.argument:o.unaryExpression("!",e),this.emit(o.ifStatement(n,o.blockStatement([this.assign(this.contextProperty("next"),t),o.breakStatement()])))},d.makeTempVar=function(){return this.contextProperty("t"+this.nextTempId++)},d.getContextFunction=function(e){return o.functionExpression(e||null,[this.contextId],o.blockStatement([this.getDispatchLoop()]),!1,!1)},d.getDispatchLoop=function(){var e=this,t=[],n=void 0,r=!1;return e.listing.forEach((function(i,a){e.marked.hasOwnProperty(a)&&(t.push(o.switchCase(o.numericLiteral(a),n=[])),r=!1),r||(n.push(i),o.isCompletionStatement(i)&&(r=!0))})),this.finalLoc.value=this.listing.length,t.push(o.switchCase(this.finalLoc,[]),o.switchCase(o.stringLiteral("end"),[o.returnStatement(o.callExpression(this.contextProperty("stop"),[]))])),o.whileStatement(o.numericLiteral(1),o.switchStatement(o.assignmentExpression("=",this.contextProperty("prev"),this.contextProperty("next")),t))},d.getTryLocsList=function(){if(0===this.tryEntries.length)return null;var e=0;return o.arrayExpression(this.tryEntries.map((function(t){var n=t.firstLoc.value;i.default.ok(n>=e,"try entries out of order"),e=n;var r=t.catchEntry,a=t.finallyEntry,s=[t.firstLoc,r?r.firstLoc:null];return a&&(s[2]=a.firstLoc,s[3]=a.afterLoc),o.arrayExpression(s)})))},d.explode=function(e,t){var n=e.node,i=this;if(o.assertNode(n),o.isDeclaration(n))throw m(n);if(o.isStatement(n))return i.explodeStatement(e);if(o.isExpression(n))return i.explodeExpression(e,t);switch(n.type){case"Program":return e.get("body").map(i.explodeStatement,i);case"VariableDeclarator":throw m(n);case"Property":case"SwitchCase":case"CatchClause":throw new Error(n.type+" nodes should be handled by their parents");default:throw new Error("unknown Node of type "+(0,r.default)(n.type))}},d.explodeStatement=function(e,t){var n=e.node,l=this,c=void 0,f=void 0,p=void 0;if(o.assertStatement(n),t?o.assertIdentifier(t):t=null,o.isBlockStatement(n))e.get("body").forEach((function(e){l.explodeStatement(e)}));else if(s.containsLeap(n))switch(n.type){case"ExpressionStatement":l.explodeExpression(e.get("expression"),!0);break;case"LabeledStatement":f=h(),l.leapManager.withEntry(new a.LabeledEntry(f,n.label),(function(){l.explodeStatement(e.get("body"),n.label)})),l.mark(f);break;case"WhileStatement":c=h(),f=h(),l.mark(c),l.jumpIfNot(l.explodeExpression(e.get("test")),f),l.leapManager.withEntry(new a.LoopEntry(f,c,t),(function(){l.explodeStatement(e.get("body"))})),l.jump(c),l.mark(f);break;case"DoWhileStatement":var d=h(),m=h();f=h(),l.mark(d),l.leapManager.withEntry(new a.LoopEntry(f,m,t),(function(){l.explode(e.get("body"))})),l.mark(m),l.jumpIf(l.explodeExpression(e.get("test")),d),l.mark(f);break;case"ForStatement":p=h();var v=h();f=h(),n.init&&l.explode(e.get("init"),!0),l.mark(p),n.test&&l.jumpIfNot(l.explodeExpression(e.get("test")),f),l.leapManager.withEntry(new a.LoopEntry(f,v,t),(function(){l.explodeStatement(e.get("body"))})),l.mark(v),n.update&&l.explode(e.get("update"),!0),l.jump(p),l.mark(f);break;case"TypeCastExpression":return l.explodeExpression(e.get("expression"));case"ForInStatement":p=h(),f=h();var g=l.makeTempVar();l.emitAssign(g,o.callExpression(u.runtimeProperty("keys"),[l.explodeExpression(e.get("right"))])),l.mark(p);var b=l.makeTempVar();l.jumpIf(o.memberExpression(o.assignmentExpression("=",b,o.callExpression(g,[])),o.identifier("done"),!1),f),l.emitAssign(n.left,o.memberExpression(b,o.identifier("value"),!1)),l.leapManager.withEntry(new a.LoopEntry(f,p,t),(function(){l.explodeStatement(e.get("body"))})),l.jump(p),l.mark(f);break;case"BreakStatement":l.emitAbruptCompletion({type:"break",target:l.leapManager.getBreakLoc(n.label)});break;case"ContinueStatement":l.emitAbruptCompletion({type:"continue",target:l.leapManager.getContinueLoc(n.label)});break;case"SwitchStatement":var x=l.emitAssign(l.makeTempVar(),l.explodeExpression(e.get("discriminant")));f=h();for(var _=h(),w=_,E=[],S=n.cases||[],k=S.length-1;k>=0;--k){var A=S[k];o.assertSwitchCase(A),A.test?w=o.conditionalExpression(o.binaryExpression("===",x,A.test),E[k]=h(),w):E[k]=_}var C=e.get("discriminant");u.replaceWithOrRemove(C,w),l.jump(l.explodeExpression(C)),l.leapManager.withEntry(new a.SwitchEntry(f),(function(){e.get("cases").forEach((function(e){var t=e.key;l.mark(E[t]),e.get("consequent").forEach((function(e){l.explodeStatement(e)}))}))})),l.mark(f),-1===_.value&&(l.mark(_),i.default.strictEqual(f.value,_.value));break;case"IfStatement":var T=n.alternate&&h();f=h(),l.jumpIfNot(l.explodeExpression(e.get("test")),T||f),l.explodeStatement(e.get("consequent")),T&&(l.jump(f),l.mark(T),l.explodeStatement(e.get("alternate"))),l.mark(f);break;case"ReturnStatement":l.emitAbruptCompletion({type:"return",value:l.explodeExpression(e.get("argument"))});break;case"WithStatement":throw new Error("WithStatement not supported in generator functions.");case"TryStatement":f=h();var D=n.handler,M=D&&h(),P=M&&new a.CatchEntry(M,D.param),O=n.finalizer&&h(),L=O&&new a.FinallyEntry(O,f),N=new a.TryEntry(l.getUnmarkedCurrentLoc(),P,L);l.tryEntries.push(N),l.updateContextPrevLoc(N.firstLoc),l.leapManager.withEntry(N,(function(){if(l.explodeStatement(e.get("block")),M){O?l.jump(O):l.jump(f),l.updateContextPrevLoc(l.mark(M));var t=e.get("handler.body"),n=l.makeTempVar();l.clearPendingException(N.firstLoc,n),t.traverse(y,{safeParam:n,catchParamName:D.param.name}),l.leapManager.withEntry(P,(function(){l.explodeStatement(t)}))}O&&(l.updateContextPrevLoc(l.mark(O)),l.leapManager.withEntry(L,(function(){l.explodeStatement(e.get("finalizer"))})),l.emit(o.returnStatement(o.callExpression(l.contextProperty("finish"),[L.firstLoc]))))})),l.mark(f);break;case"ThrowStatement":l.emit(o.throwStatement(l.explodeExpression(e.get("argument"))));break;default:throw new Error("unknown Statement of type "+(0,r.default)(n.type))}else l.emit(n)};var y={Identifier:function(e,t){e.node.name===t.catchParamName&&u.isReference(e)&&u.replaceWithOrRemove(e,t.safeParam)},Scope:function(e,t){e.scope.hasOwnBinding(t.catchParamName)&&e.skip()}};d.emitAbruptCompletion=function(e){(function(e){var t=e.type;return"normal"===t?!f.call(e,"target"):"break"===t||"continue"===t?!f.call(e,"value")&&o.isLiteral(e.target):("return"===t||"throw"===t)&&f.call(e,"value")&&!f.call(e,"target")})(e)||i.default.ok(!1,"invalid completion record: "+(0,r.default)(e)),i.default.notStrictEqual(e.type,"normal","normal completions are not abrupt");var t=[o.stringLiteral(e.type)];"break"===e.type||"continue"===e.type?(o.assertLiteral(e.target),t[1]=e.target):"return"!==e.type&&"throw"!==e.type||e.value&&(o.assertExpression(e.value),t[1]=e.value),this.emit(o.returnStatement(o.callExpression(this.contextProperty("abrupt"),t)))},d.getUnmarkedCurrentLoc=function(){return o.numericLiteral(this.listing.length)},d.updateContextPrevLoc=function(e){e?(o.assertLiteral(e),-1===e.value?e.value=this.listing.length:i.default.strictEqual(e.value,this.listing.length)):e=this.getUnmarkedCurrentLoc(),this.emitAssign(this.contextProperty("prev"),e)},d.explodeExpression=function(e,t){var n=e.node;if(!n)return n;o.assertExpression(n);var a=this,u=void 0,l=void 0;function c(e){if(o.assertExpression(e),!t)return e;a.emit(e)}if(!s.containsLeap(n))return c(n);var f=s.containsLeap.onlyChildren(n);function p(e,t,n){i.default.ok(!n||!e,"Ignoring the result of a child expression but forcing it to be assigned to a temporary variable?");var r=a.explodeExpression(t,n);return n||(e||f&&!o.isLiteral(r))&&(r=a.emitAssign(e||a.makeTempVar(),r)),r}switch(n.type){case"MemberExpression":return c(o.memberExpression(a.explodeExpression(e.get("object")),n.computed?p(null,e.get("property")):n.property,n.computed));case"CallExpression":var d=e.get("callee"),m=e.get("arguments"),y=void 0,v=[],g=!1;if(m.forEach((function(e){g=g||s.containsLeap(e.node)})),o.isMemberExpression(d.node))if(g){var b=p(a.makeTempVar(),d.get("object")),x=d.node.computed?p(null,d.get("property")):d.node.property;v.unshift(b),y=o.memberExpression(o.memberExpression(b,x,d.node.computed),o.identifier("call"),!1)}else y=a.explodeExpression(d);else y=p(null,d),o.isMemberExpression(y)&&(y=o.sequenceExpression([o.numericLiteral(0),y]));return m.forEach((function(e){v.push(p(null,e))})),c(o.callExpression(y,v));case"NewExpression":return c(o.newExpression(p(null,e.get("callee")),e.get("arguments").map((function(e){return p(null,e)}))));case"ObjectExpression":return c(o.objectExpression(e.get("properties").map((function(e){return e.isObjectProperty()?o.objectProperty(e.node.key,p(null,e.get("value")),e.node.computed):e.node}))));case"ArrayExpression":return c(o.arrayExpression(e.get("elements").map((function(e){return p(null,e)}))));case"SequenceExpression":var _=n.expressions.length-1;return e.get("expressions").forEach((function(e){e.key===_?u=a.explodeExpression(e,t):a.explodeExpression(e,!0)})),u;case"LogicalExpression":l=h(),t||(u=a.makeTempVar());var w=p(u,e.get("left"));return"&&"===n.operator?a.jumpIfNot(w,l):(i.default.strictEqual(n.operator,"||"),a.jumpIf(w,l)),p(u,e.get("right"),t),a.mark(l),u;case"ConditionalExpression":var E=h();l=h();var S=a.explodeExpression(e.get("test"));return a.jumpIfNot(S,E),t||(u=a.makeTempVar()),p(u,e.get("consequent"),t),a.jump(l),a.mark(E),p(u,e.get("alternate"),t),a.mark(l),u;case"UnaryExpression":return c(o.unaryExpression(n.operator,a.explodeExpression(e.get("argument")),!!n.prefix));case"BinaryExpression":return c(o.binaryExpression(n.operator,p(null,e.get("left")),p(null,e.get("right"))));case"AssignmentExpression":return c(o.assignmentExpression(n.operator,a.explodeExpression(e.get("left")),a.explodeExpression(e.get("right"))));case"UpdateExpression":return c(o.updateExpression(n.operator,a.explodeExpression(e.get("argument")),n.prefix));case"YieldExpression":l=h();var k=n.argument&&a.explodeExpression(e.get("argument"));if(k&&n.delegate){var A=a.makeTempVar();return a.emit(o.returnStatement(o.callExpression(a.contextProperty("delegateYield"),[k,o.stringLiteral(A.property.name),l]))),a.mark(l),A}return a.emitAssign(a.contextProperty("next"),l),a.emit(o.returnStatement(k||null)),a.mark(l),a.contextProperty("sent");default:throw new Error("unknown Expression of type "+(0,r.default)(n.type))}}},function(e,t){"use strict";e.exports=function(e){var t=/^\\\\\?\\/.test(e),n=/[^\x00-\x80]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},function(e,t,n){"use strict";var r=n(63),i=Object.prototype.hasOwnProperty;function o(){this._array=[],this._set=Object.create(null)}o.fromArray=function(e,t){for(var n=new o,r=0,i=e.length;r=0&&e>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,o,a,s,u=e.length,l=0,c=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),l+=(o&=31)<>1,1==(1&a)?-s:s),n.rest=t}},function(e,t,n){"use strict";var r=n(286),i=n(63),o=n(285).ArraySet,a=n(618).MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)})),n},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=i.relative(a,r));var s=new o,u=new o;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=i.join(n,t.source)),null!=a&&(t.source=i.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var l=t.source;null==l||s.has(l)||s.add(l);var c=t.name;null==c||u.has(c)||u.add(c)}),this),this._sources=s,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=a&&(t=i.relative(a,t)),this.setSourceContent(t,r))}),this)},s.prototype._validateMapping=function(e,t,n,r){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,o,a=0,s=1,u=0,l=0,c=0,f=0,p="",d=this._mappings.toArray(),h=0,m=d.length;h0){if(!i.compareByGeneratedPositionsInflated(t,d[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-f),f=o,e+=r.encode(t.originalLine-1-l),l=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-c),c=n)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){"use strict";t.SourceMapGenerator=n(287).SourceMapGenerator,t.SourceMapConsumer=n(620).SourceMapConsumer,t.SourceNode=n(621).SourceNode},function(e,t,n){(function(e){"use strict";Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach((function(t){var n=e[t];Object.keys(n).forEach((function(t){var r=n[t];e[t]=n[t]={open:"["+r[0]+"m",close:"["+r[1]+"m"}})),Object.defineProperty(e,t,{value:n,enumerable:!1})})),e}})}).call(t,n(39)(e))},function(e,t,n){"use strict";e.exports=n(182)},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return["babel-plugin-"+e,e]},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=["babel-preset-"+e,e],n=e.match(/^(@[^/]+)\/(.+)$/);if(n){var r=n[1],i=n[2];t.push(r+"/babel-preset-"+i)}return t},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(2));t.default=function(e,t){if(e&&t)return(0,i.default)(e,t,(function(e,t){if(t&&Array.isArray(e)){var n=t.slice(0),i=e,o=Array.isArray(i),a=0;for(i=o?i:(0,r.default)(i);;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s;n.indexOf(u)<0&&n.push(u)}return n}}))};var i=o(n(590));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){if(e){if("Program"===e.type)return r.file(e,t||[],n||[]);if("File"===e.type)return e}throw new Error("Not a valid ast?")};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global",n=s.identifier("babelHelpers"),r=function(t){return h(t,n,e)},a=void 0,u={global:f,umd:p,var:d}[t];if(!u)throw new Error(o.get("unsupportedOutputType",t));return a=u(n,r),(0,i.default)(a).code};var r=l(n(194)),i=u(n(186)),o=l(n(20)),a=u(n(4)),s=l(n(1));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c=(0,a.default)('\n (function (root, factory) {\n if (typeof define === "function" && define.amd) {\n define(AMD_ARGUMENTS, factory);\n } else if (typeof exports === "object") {\n factory(COMMON_ARGUMENTS);\n } else {\n factory(BROWSER_ARGUMENTS);\n }\n })(UMD_ROOT, function (FACTORY_PARAMETERS) {\n FACTORY_BODY\n });\n');function f(e,t){var n=[],i=s.functionExpression(null,[s.identifier("global")],s.blockStatement(n)),o=s.program([s.expressionStatement(s.callExpression(i,[r.get("selfGlobal")]))]);return n.push(s.variableDeclaration("var",[s.variableDeclarator(e,s.assignmentExpression("=",s.memberExpression(s.identifier("global"),e),s.objectExpression([])))])),t(n),o}function p(e,t){var n=[];return n.push(s.variableDeclaration("var",[s.variableDeclarator(e,s.identifier("global"))])),t(n),s.program([c({FACTORY_PARAMETERS:s.identifier("global"),BROWSER_ARGUMENTS:s.assignmentExpression("=",s.memberExpression(s.identifier("root"),e),s.objectExpression([])),COMMON_ARGUMENTS:s.identifier("exports"),AMD_ARGUMENTS:s.arrayExpression([s.stringLiteral("exports")]),FACTORY_BODY:n,UMD_ROOT:s.identifier("this")})])}function d(e,t){var n=[];return n.push(s.variableDeclaration("var",[s.variableDeclarator(e,s.objectExpression([]))])),t(n),n.push(s.expressionStatement(e)),s.program(n)}function h(e,t,n){r.list.forEach((function(i){if(!(n&&n.indexOf(i)<0)){var o=s.identifier(i);e.push(s.expressionStatement(s.assignmentExpression("=",s.memberExpression(t,o),r.get(i))))}}))}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(65)),i=o(n(594));function o(e){return e&&e.__esModule?e:{default:e}}t.default=new r.default({name:"internal.blockHoist",visitor:{Block:{exit:function(e){for(var t=e.node,n=!1,r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return t.code=!1,t.mode="lint",this.transform(e,t)},e.prototype.pretransform=function(e,t){var n=new a.default(t,this);return n.wrap(e,(function(){return n.addCode(e),n.parseCode(e),n}))},e.prototype.transform=function(e,t){var n=new a.default(t,this);return n.wrap(e,(function(){return n.addCode(e),n.parseCode(e),n.transform()}))},e.prototype.analyse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return t.code=!1,n&&(t.plugins=t.plugins||[],t.plugins.push(new o.default({visitor:n}))),this.transform(e,t).metadata},e.prototype.transformFromAst=function(e,t,n){e=(0,i.default)(e);var r=new a.default(n,this);return r.wrap(t,(function(){return r.addCode(t),r.addAst(e),r.transform()}))},e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(3)),i=s(n(42)),o=s(n(41)),a=s(n(119));function s(e){return e&&e.__esModule?e:{default:e}}s(n(50));var u=function(e){function t(n,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(this,t);var s=(0,i.default)(this,e.call(this));return s.plugin=o,s.key=o.key,s.file=n,s.opts=a,s}return(0,o.default)(t,e),t.prototype.addHelper=function(){var e;return(e=this.file).addHelper.apply(e,arguments)},t.prototype.addImport=function(){var e;return(e=this.file).addImport.apply(e,arguments)},t.prototype.getModuleName=function(){var e;return(e=this.file).getModuleName.apply(e,arguments)},t.prototype.buildCodeFrameError=function(){var e;return(e=this.file).buildCodeFrameError.apply(e,arguments)},t}(a.default);t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(3)),i=o(n(625));function o(e){return e&&e.__esModule?e:{default:e}}var a=/^[ \t]+$/,s=function(){function e(t){(0,r.default)(this,e),this._map=null,this._buf=[],this._last="",this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._map=t}return e.prototype.get=function(){this._flush();var e=this._map,t={code:(0,i.default)(this._buf.join("")),map:null,rawMappings:e&&e.getRawMappings()};return e&&Object.defineProperty(t,"map",{configurable:!0,enumerable:!0,get:function(){return this.map=e.get()},set:function(e){Object.defineProperty(this,"map",{value:e,writable:!0})}}),t},e.prototype.append=function(e){this._flush();var t=this._sourcePosition,n=t.line,r=t.column,i=t.filename,o=t.identifierName;this._append(e,n,r,o,i)},e.prototype.queue=function(e){if("\n"===e)for(;this._queue.length>0&&a.test(this._queue[0][0]);)this._queue.shift();var t=this._sourcePosition,n=t.line,r=t.column,i=t.filename,o=t.identifierName;this._queue.unshift([e,n,r,o,i])},e.prototype._flush=function(){for(var e=void 0;e=this._queue.pop();)this._append.apply(this,e)},e.prototype._append=function(e,t,n,r,i){this._map&&"\n"!==e[0]&&this._map.mark(this._position.line,this._position.column,t,n,r,i),this._buf.push(e),this._last=e[e.length-1];for(var o=0;o0&&"\n"===this._queue[0][0]&&this._queue.shift()},e.prototype.removeLastSemicolon=function(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()},e.prototype.endsWith=function(e){if(1===e.length){var t=void 0;if(this._queue.length>0){var n=this._queue[0][0];t=n[n.length-1]}else t=this._last;return t===e}var r=this._last+this._queue.reduce((function(e,t){return t[0]+e}),"");return e.length<=r.length&&r.slice(-e.length)===e},e.prototype.hasContent=function(){return this._queue.length>0||!!this._last},e.prototype.source=function(e,t){if(!e||t){var n=t?t[e]:null;this._sourcePosition.identifierName=t&&t.identifierName||null,this._sourcePosition.line=n?n.line:null,this._sourcePosition.column=n?n.column:null,this._sourcePosition.filename=t&&t.filename||null}},e.prototype.withSource=function(e,t,n){if(!this._map)return n();var r=this._sourcePosition.line,i=this._sourcePosition.column,o=this._sourcePosition.filename,a=this._sourcePosition.identifierName;this.source(e,t),n(),this._sourcePosition.line=r,this._sourcePosition.column=i,this._sourcePosition.filename=o,this._sourcePosition.identifierName=a},e.prototype.getCurrentColumn=function(){var e=this._queue.reduce((function(e,t){return t[0]+e}),""),t=e.lastIndexOf("\n");return-1===t?this._position.column+e.length:e.length-1-t},e.prototype.getCurrentLine=function(){for(var e=this._queue.reduce((function(e,t){return t[0]+e}),""),t=0,n=0;n")),this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.token("?"),this.token(":"),this.space(),this.print(e.typeAnnotation,e)},t.InterfaceExtends=a,t._interfaceish=function(e){this.print(e.id,e),this.print(e.typeParameters,e),e.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),e.mixins&&e.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e)),this.space(),this.print(e.body,e)},t._variance=function(e){"plus"===e.variance?this.token("+"):"minus"===e.variance&&this.token("-")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:s})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.EmptyTypeAnnotation=function(){this.word("empty")},t.NullableTypeAnnotation=function(e){this.token("?"),this.print(e.typeAnnotation,e)};var r=n(123);Object.defineProperty(t,"NumericLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.NumericLiteral}}),Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return r.StringLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.StringTypeAnnotation=function(){this.word("string")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.token("["),this.printList(e.types,e),this.token("]")},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.token("="),this.space(),this.print(e.right,e),this.semicolon()},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.token(":"),this.space(),this.print(e.supertype,e)),e.impltype&&(this.space(),this.token("="),this.space(),this.print(e.impltype,e)),this.semicolon()},t.TypeAnnotation=function(e){this.token(":"),this.space(),e.optional&&this.token("?"),this.print(e.typeAnnotation,e)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e),e.default&&(this.space(),this.token("="),this.space(),this.print(e.default,e))},t.TypeParameterInstantiation=u,t.ObjectTypeAnnotation=function(e){var t=this;e.exact?this.token("{|"):this.token("{");var n=e.properties.concat(e.callProperties,e.indexers);n.length&&(this.space(),this.printJoin(n,e,{addNewlines:function(e){if(e&&!n[0])return 1},indent:!0,statement:!0,iterator:function(){1!==n.length&&(t.format.flowCommaSeparator?t.token(","):t.semicolon(),t.space())}}),this.space()),e.exact?this.token("|}"):this.token("}")},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.token("["),this.print(e.id,e),this.token(":"),this.space(),this.print(e.key,e),this.token("]"),this.token(":"),this.space(),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.print(e.key,e),e.optional&&this.token("?"),this.token(":"),this.space(),this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.token("."),this.print(e.id,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:l})},t.TypeCastExpression=function(e){this.token("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.token(")")},t.VoidTypeAnnotation=function(){this.word("void")};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function o(e){if(e.declaration){var t=e.declaration;this.print(t,e),i.isStatement(t)||this.semicolon()}else this.token("{"),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.token("}"),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function a(e){this.print(e.id,e),this.print(e.typeParameters,e)}function s(){this.space(),this.token("&"),this.space()}function u(e){this.token("<"),this.printList(e.params,e,{}),this.token(">")}function l(){this.space(),this.token("|"),this.space()}t.ClassImplements=a,t.GenericTypeAnnotation=a,t.TypeParameterDeclaration=u},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};function o(){this.space()}t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.token("="),this.print(e.value,e))},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.token(":"),this.print(e.name,e)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.token("."),this.print(e.property,e)},t.JSXSpreadAttribute=function(e){this.token("{"),this.token("..."),this.print(e.argument,e),this.token("}")},t.JSXExpressionContainer=function(e){this.token("{"),this.print(e.expression,e),this.token("}")},t.JSXSpreadChild=function(e){this.token("{"),this.token("..."),this.print(e.expression,e),this.token("}")},t.JSXText=function(e){this.token(e.value)},t.JSXElement=function(e){var t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();var n=e.children,r=Array.isArray(n),o=0;for(n=r?n:(0,i.default)(n);;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;this.print(s,e)}this.dedent(),this.print(e.closingElement,e)}},t.JSXOpeningElement=function(e){this.token("<"),this.print(e.name,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:o})),e.selfClosing?(this.space(),this.token("/>")):this.token(">")},t.JSXClosingElement=function(e){this.token("")},t.JSXEmptyExpression=function(){}},function(e,t,n){"use strict";t.__esModule=!0,t.FunctionDeclaration=void 0,t._params=function(e){var t=this;this.print(e.typeParameters,e),this.token("("),this.printList(e.params,e,{iterator:function(e){e.optional&&t.token("?"),t.print(e.typeAnnotation,e)}}),this.token(")"),e.returnType&&this.print(e.returnType,e)},t._method=function(e){var t=e.kind,n=e.key;"method"!==t&&"init"!==t||e.generator&&this.token("*"),"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async"),this.space()),e.computed?(this.token("["),this.print(n,e),this.token("]")):this.print(n,e),this._params(e),this.space(),this.print(e.body,e)},t.FunctionExpression=i,t.ArrowFunctionExpression=function(e){e.async&&(this.word("async"),this.space());var t=e.params[0];1===e.params.length&&r.isIdentifier(t)&&!function(e,t){return e.typeParameters||e.returnType||t.typeAnnotation||t.optional||t.trailingComments}(e,t)?this.print(t,e):this._params(e),this.space(),this.token("=>"),this.space(),this.print(e.body,e)};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function i(e){e.async&&(this.word("async"),this.space()),this.word("function"),e.generator&&this.token("*"),e.id?(this.space(),this.print(e.id,e)):this.space(),this._params(e),this.space(),this.print(e.body,e)}t.FunctionDeclaration=i},function(e,t,n){"use strict";t.__esModule=!0,t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportSpecifier=function(e){this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},t.ExportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},t.ExportAllDeclaration=function(e){this.word("export"),this.space(),this.token("*"),this.space(),this.word("from"),this.space(),this.print(e.source,e),this.semicolon()},t.ExportNamedDeclaration=function(){this.word("export"),this.space(),i.apply(this,arguments)},t.ExportDefaultDeclaration=function(){this.word("export"),this.space(),this.word("default"),this.space(),i.apply(this,arguments)},t.ImportDeclaration=function(e){this.word("import"),this.space(),("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space());var t=e.specifiers.slice(0);if(t&&t.length){for(;;){var n=t[0];if(!r.isImportDefaultSpecifier(n)&&!r.isImportNamespaceSpecifier(n))break;this.print(t.shift(),e),t.length&&(this.token(","),this.space())}t.length&&(this.token("{"),this.space(),this.printList(t,e),this.space(),this.token("}")),this.space(),this.word("from"),this.space()}this.print(e.source,e),this.semicolon()},t.ImportNamespaceSpecifier=function(e){this.token("*"),this.space(),this.word("as"),this.space(),this.print(e.local,e)};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function i(e){if(e.declaration){var t=e.declaration;this.print(t,e),r.isStatement(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var n=e.specifiers.slice(0),i=!1;;){var o=n[0];if(!r.isExportDefaultSpecifier(o)&&!r.isExportNamespaceSpecifier(o))break;i=!0,this.print(n.shift(),e),n.length&&(this.token(","),this.space())}(n.length||!n.length&&!i)&&(this.token("{"),n.length&&(this.space(),this.printList(n,e),this.space()),this.token("}")),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}}},function(e,t,n){"use strict";t.__esModule=!0,t.ThrowStatement=t.BreakStatement=t.ReturnStatement=t.ContinueStatement=t.ForAwaitStatement=t.ForOfStatement=t.ForInStatement=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.WithStatement=function(e){this.word("with"),this.space(),this.token("("),this.print(e.object,e),this.token(")"),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.space();var t=e.alternate&&o.isIfStatement(a(e.consequent));t&&(this.token("{"),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.token("}")),e.alternate&&(this.endsWith("}")&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.ForStatement=function(e){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.token(";"),e.test&&(this.space(),this.print(e.test,e)),this.token(";"),e.update&&(this.space(),this.print(e.update,e)),this.token(")"),this.printBlock(e)},t.WhileStatement=function(e){this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.printBlock(e)},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.token("("),this.print(e.test,e),this.token(")"),this.semicolon()},t.LabeledStatement=function(e){this.print(e.label,e),this.token(":"),this.space(),this.print(e.body,e)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.CatchClause=function(e){this.word("catch"),this.space(),this.token("("),this.print(e.param,e),this.token(")"),this.space(),this.print(e.body,e)},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.token("("),this.print(e.discriminant,e),this.token(")"),this.space(),this.token("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines:function(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1}}),this.token("}")},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.token(":")):(this.word("default"),this.token(":")),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.VariableDeclaration=function(e,t){this.word(e.kind),this.space();var n=!1;if(!o.isFor(t)){var r=e.declarations,a=Array.isArray(r),s=0;for(r=a?r:(0,i.default)(r);;){var u;if(a){if(s>=r.length)break;u=r[s++]}else{if((s=r.next()).done)break;u=s.value}u.init&&(n=!0)}}var f=void 0;n&&(f="const"===e.kind?c:l),this.printList(e.declarations,e,{separator:f}),(!o.isFor(t)||t.left!==e&&t.init!==e)&&this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.token("="),this.space(),this.print(e.init,e))};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function a(e){return o.isStatement(e.body)?a(e.body):e}var s=function(e){return function(t){this.word("for"),this.space(),"await"===e&&(this.word("await"),this.space()),this.token("("),this.print(t.left,t),this.space(),this.word("await"===e?"of":e),this.space(),this.print(t.right,t),this.token(")"),this.printBlock(t)}};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return function(n){this.word(e);var r=n[t];if(r){this.space();var i=this.startTerminatorless();this.print(r,n),this.endTerminatorless(i)}this.semicolon()}}function l(){if(this.token(","),this.newline(),this.endsWith("\n"))for(var e=0;e<4;e++)this.space(!0)}function c(){if(this.token(","),this.newline(),this.endsWith("\n"))for(var e=0;e<6;e++)this.space(!0)}t.ForInStatement=s("in"),t.ForOfStatement=s("of"),t.ForAwaitStatement=s("await"),t.ContinueStatement=u("continue"),t.ReturnStatement=u("return","argument"),t.BreakStatement=u("break"),t.ThrowStatement=u("throw","argument")},function(e,t){"use strict";t.__esModule=!0,t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){var n=t.quasis[0]===e,r=t.quasis[t.quasis.length-1]===e,i=(n?"`":"}")+e.value.raw+(r?"`":"${");this.token(i)},t.TemplateLiteral=function(e){for(var t=e.quasis,n=0;ns)return!0}return!1},t.BinaryExpression=function(e,t){return"in"===e.operator&&(r.isVariableDeclarator(t)||r.isFor(t))},t.SequenceExpression=function(e,t){return!(r.isForStatement(t)||r.isThrowStatement(t)||r.isReturnStatement(t)||r.isIfStatement(t)&&t.test===e||r.isWhileStatement(t)&&t.test===e||r.isForInStatement(t)&&t.right===e||r.isSwitchStatement(t)&&t.discriminant===e||r.isExpressionStatement(t)&&t.expression===e)},t.YieldExpression=a,t.ClassExpression=function(e,t,n){return l(n,{considerDefaultExports:!0})},t.UnaryLike=s,t.FunctionExpression=function(e,t,n){return l(n,{considerDefaultExports:!0})},t.ArrowFunctionExpression=function(e,t){return!!(r.isExportDeclaration(t)||r.isBinaryExpression(t)||r.isLogicalExpression(t)||r.isUnaryExpression(t)||r.isTaggedTemplateExpression(t))||s(e,t)},t.ConditionalExpression=u,t.AssignmentExpression=function(e){return!!r.isObjectPattern(e.left)||u.apply(void 0,arguments)};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),i={"||":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10};function o(e,t){return r.isArrayTypeAnnotation(t)}function a(e,t){return r.isBinary(t)||r.isUnaryLike(t)||r.isCallExpression(t)||r.isMemberExpression(t)||r.isNewExpression(t)||r.isConditionalExpression(t)&&e===t.test}function s(e,t){return r.isMemberExpression(t,{object:e})||r.isCallExpression(t,{callee:e})||r.isNewExpression(t,{callee:e})}function u(e,t){return!!(r.isUnaryLike(t)||r.isBinary(t)||r.isConditionalExpression(t,{test:e})||r.isAwaitExpression(t))||s(e,t)}function l(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.considerArrow,i=void 0!==n&&n,o=t.considerDefaultExports,a=void 0!==o&&o,s=e.length-1,u=e[s],l=e[--s];s>0;){if(r.isExpressionStatement(l,{expression:u})||r.isTaggedTemplateExpression(l)||a&&r.isExportDefaultDeclaration(l,{declaration:u})||i&&r.isArrowFunctionExpression(l,{body:u}))return!0;if(!(r.isCallExpression(l,{callee:u})||r.isSequenceExpression(l)&&l.expressions[0]===u||r.isMemberExpression(l,{object:u})||r.isConditional(l,{test:u})||r.isBinary(l,{left:u})||r.isAssignmentExpression(l,{left:u})))return!1;u=l,l=e[--s]}return!1}t.FunctionTypeAnnotation=o,t.AwaitExpression=a},function(e,t,n){"use strict";var r,i=(r=n(588))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.isMemberExpression(e)?(a(e.object,t),e.computed&&a(e.property,t)):o.isBinary(e)||o.isAssignmentExpression(e)?(a(e.left,t),a(e.right,t)):o.isCallExpression(e)?(t.hasCall=!0,a(e.callee,t)):o.isFunction(e)?t.hasFunction=!0:o.isIdentifier(e)&&(t.hasHelper=t.hasHelper||s(e.callee)),t}function s(e){return o.isMemberExpression(e)?s(e.object)||s(e.property):o.isIdentifier(e)?"require"===e.name||"_"===e.name[0]:o.isCallExpression(e)?s(e.callee):!(!o.isBinary(e)&&!o.isAssignmentExpression(e))&&(o.isIdentifier(e.left)&&s(e.left)||s(e.right))}function u(e){return o.isLiteral(e)||o.isObjectExpression(e)||o.isArrayExpression(e)||o.isIdentifier(e)||o.isMemberExpression(e)}t.nodes={AssignmentExpression:function(e){var t=a(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:function(e,t){return{before:e.consequent.length||t.cases[0]===e}},LogicalExpression:function(e){if(o.isFunction(e.left)||o.isFunction(e.right))return{after:!0}},Literal:function(e){if("use strict"===e.value)return{after:!0}},CallExpression:function(e){if(o.isFunction(e.callee)||s(e))return{before:!0,after:!0}},VariableDeclaration:function(e){for(var t=0;t0?new h.default(r):null}return e.prototype.generate=function(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()},e.prototype.indent=function(){this.format.compact||this.format.concise||this._indent++},e.prototype.dedent=function(){this.format.compact||this.format.concise||this._indent--},e.prototype.semicolon=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._maybeAddAuxComment(),this._append(";",!e)},e.prototype.rightBrace=function(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")},e.prototype.space=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.format.compact||(this._buf.hasContent()&&!this.endsWith(" ")&&!this.endsWith("\n")||e)&&this._space()},e.prototype.word=function(e){this._endsWithWord&&this._space(),this._maybeAddAuxComment(),this._append(e),this._endsWithWord=!0},e.prototype.number=function(e){this.word(e),this._endsWithInteger=(0,c.default)(+e)&&!x.test(e)&&!g.test(e)&&!b.test(e)&&"."!==e[e.length-1]},e.prototype.token=function(e){("--"===e&&this.endsWith("!")||"+"===e[0]&&this.endsWith("+")||"-"===e[0]&&this.endsWith("-")||"."===e[0]&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e)},e.prototype.newline=function(e){if(!this.format.retainLines&&!this.format.compact)if(this.format.concise)this.space();else if(!(this.endsWith("\n\n")||("number"!=typeof e&&(e=1),e=Math.min(2,e),(this.endsWith("{\n")||this.endsWith(":\n"))&&e--,e<=0)))for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];this._maybeAddParen(e),this._maybeIndent(e),t?this._buf.queue(e):this._buf.append(e),this._endsWithWord=!1,this._endsWithInteger=!1},e.prototype._maybeIndent=function(e){this._indent&&this.endsWith("\n")&&"\n"!==e[0]&&this._buf.queue(this._getIndent())},e.prototype._maybeAddParen=function(e){var t=this._parenPushNewlineState;if(t){this._parenPushNewlineState=null;var n=void 0;for(n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if(e&&e.length){n.indent&&this.indent();for(var r={addNewlines:n.addNewlines},i=0;i1&&void 0!==arguments[1])||arguments[1];e.innerComments&&(t&&this.indent(),this._printComments(e.innerComments),t&&this.dedent())},e.prototype.printSequence=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.statement=!0,this.printJoin(e,t,n)},e.prototype.printList=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==n.separator&&(n.separator=w),this.printJoin(e,t,n)},e.prototype._printNewline=function(e,t,n,r){var i=this;if(!this.format.retainLines&&!this.format.compact)if(this.format.concise)this.space();else{var o=0;if(null!=t.start&&!t._ignoreUserWhitespace&&this._whitespace)if(e){var a=t.leadingComments,s=a&&(0,u.default)(a,(function(e){return!!e.loc&&i.format.shouldPrintComment(e.value)}));o=this._whitespace.getNewlinesBefore(s||t)}else{var c=t.trailingComments,f=c&&(0,l.default)(c,(function(e){return!!e.loc&&i.format.shouldPrintComment(e.value)}));o=this._whitespace.getNewlinesAfter(f||t)}else{e||o++,r.addNewlines&&(o+=r.addNewlines(e,t)||0);var p=d.needsWhitespaceAfter;e&&(p=d.needsWhitespaceBefore),p(t,n)&&o++,this._buf.hasContent()||(o=0)}this.newline(o)}},e.prototype._getComments=function(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]},e.prototype._printComment=function(e){var t=this;if(this.format.shouldPrintComment(e.value)&&!e.ignore&&!this._printedComments.has(e)){if(this._printedComments.add(e),null!=e.start){if(this._printedCommentStarts[e.start])return;this._printedCommentStarts[e.start]=!0}this.newline(this._whitespace?this._whitespace.getNewlinesBefore(e):0),this.endsWith("[")||this.endsWith("{")||this.space();var n="CommentLine"===e.type?"//"+e.value+"\n":"/*"+e.value+"*/";if("CommentBlock"===e.type&&this.format.indent.adjustMultilineComment){var r=e.loc&&e.loc.start.column;if(r){var i=new RegExp("\\n\\s{1,"+r+"}","g");n=n.replace(i,"\n")}var o=Math.max(this._getIndent().length,this._buf.getCurrentColumn());n=n.replace(/\n(?!$)/g,"\n"+(0,f.default)(" ",o))}this.withSource("start",e.loc,(function(){t._append(n)})),this.newline((this._whitespace?this._whitespace.getNewlinesAfter(e):0)+("CommentLine"===e.type?-1:0))}},e.prototype._printComments=function(e){if(e&&e.length){var t=e,n=Array.isArray(t),r=0;for(t=n?t:(0,i.default)(t);;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var a=o;this._printComment(a)}}},e}();function w(){this.token(","),this.space()}t.default=_;for(var E=[n(309),n(303),n(308),n(302),n(306),n(307),n(123),n(304),n(301),n(305)],S=0;S=0){for(;i&&e.start===r[i-1].start;)--i;t=r[i-1],n=r[i]}return this._getNewlinesBetween(t,n)},e.prototype.getNewlinesAfter=function(e){var t=void 0,n=void 0,r=this.tokens,i=this._findToken((function(t){return t.end-e.end}),0,r.length);if(i>=0){for(;i&&e.end===r[i-1].end;)--i;t=r[i],","===(n=r[i+1]).type.label&&(n=r[i+2])}return n&&"eof"===n.type.label?1:this._getNewlinesBetween(t,n)},e.prototype._getNewlinesBetween=function(e,t){if(!t||!t.loc)return 0;for(var n=e?e.loc.end.line:1,r=t.loc.start.line,i=0,o=n;o=n)return-1;var r=t+n>>>1,i=e(this.tokens[r]);return i<0?this._findToken(e,r+1,n):i>0?this._findToken(e,t,r):0===i?r:-1},e}();t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:(0,i.default)(t);;){var a;if(n){if(r>=t.length)break;a=t[r++]}else{if((r=t.next()).done)break;a=r.value}var s=a,u=s.node,l=u.expression;if(o.isMemberExpression(l)){var c=s.scope.maybeGenerateMemoised(l.object),f=void 0,p=[];c?(f=c,p.push(o.assignmentExpression("=",c,l.object))):f=l.object,p.push(o.callExpression(o.memberExpression(o.memberExpression(f,l.property,l.computed),o.identifier("bind")),[f])),1===p.length?u.expression=p[0]:u.expression=o.sequenceExpression(p)}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};function n(t){return t&&t.operator===e.operator+"="}function r(e,t){return o.assignmentExpression("=",e,t)}return t.ExpressionStatement=function(t,a){if(!t.isCompletionRecord()){var s=t.node.expression;if(n(s)){var u=[],l=(0,i.default)(s.left,u,a,t.scope,!0);u.push(o.expressionStatement(r(l.ref,e.build(l.uid,s.right)))),t.replaceWithMultiple(u)}}},t.AssignmentExpression=function(t,o){var a=t.node,s=t.scope;if(n(a)){var u=[],l=(0,i.default)(a.left,u,o,s);u.push(r(l.ref,e.build(l.uid,a.right))),t.replaceWithMultiple(u)}},t.BinaryExpression=function(t){var n=t.node;n.operator===e.operator&&t.replaceWith(e.build(n.left,n.right))},t};var r,i=(r=n(318))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.scope,n=e.node,r=o.functionExpression(null,[],n.body,n.generator,n.async),s=r,u=[];(0,i.default)(e,(function(e){return t.push({id:e})}));var l={foundThis:!1,foundArguments:!1};e.traverse(a,l),l.foundArguments&&(s=o.memberExpression(r,o.identifier("apply")),u=[],l.foundThis&&u.push(o.thisExpression()),l.foundArguments&&(l.foundThis||u.push(o.nullLiteral()),u.push(o.identifier("arguments"))));var c=o.callExpression(s,u);return n.generator&&(c=o.yieldExpression(c,!0)),o.returnStatement(c)};var r,i=(r=n(190))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),a={enter:function(e,t){e.isThisExpression()&&(t.foundThis=!0),e.isReferencedIdentifier({name:"arguments"})&&(t.foundArguments=!0)},Function:function(e){e.skip()}};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,i,o){var a;a=r.isIdentifier(e)&&o?e:function(e,t,n,i){var o=void 0;if(r.isSuper(e))return e;if(r.isIdentifier(e)){if(i.hasBinding(e.name))return e;o=e}else{if(!r.isMemberExpression(e))throw new Error("We can't explode this node type "+e.type);if(o=e.object,r.isSuper(o)||r.isIdentifier(o)&&i.hasBinding(o.name))return o}var a=i.generateUidIdentifierBasedOnNode(o);return t.push(r.variableDeclaration("var",[r.variableDeclarator(a,o)])),a}(e,t,0,i);var s=void 0,u=void 0;if(r.isIdentifier(e))s=e,u=a;else{var l=function(e,t,n,i){var o=e.property,a=r.toComputedKey(e,o);if(r.isLiteral(a)&&r.isPureish(a))return a;var s=i.generateUidIdentifierBasedOnNode(o);return t.push(r.variableDeclaration("var",[r.variableDeclarator(s,o)])),s}(e,t,0,i),c=e.computed||r.isLiteral(l);u=s=r.memberExpression(a,l,c)}return{uid:u,ref:s}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(2));t.default=function(e){e.assertClass();var t=[];function n(n){if(n.node&&!n.isPure()){var r=e.scope.generateDeclaredUidIdentifier();t.push(o.assignmentExpression("=",r,n.node)),n.replaceWith(r)}}function a(e){if(Array.isArray(e)&&e.length){e=e.reverse(),(0,i.default)(e);var t=e,o=Array.isArray(t),a=0;for(t=o?t:(0,r.default)(t);;){var s;if(o){if(a>=t.length)break;s=t[a++]}else{if((a=t.next()).done)break;s=a.value}n(s)}}}n(e.get("superClass")),a(e.get("decorators"));var s=e.get("body.body"),u=Array.isArray(s),l=0;for(s=u?s:(0,r.default)(s);;){var c;if(u){if(l>=s.length)break;c=s[l++]}else{if((l=s.next()).done)break;c=l.value}var f=c;f.is("computed")&&n(f.get("key")),f.has("decorators")&&a(e.get("decorators"))}t&&e.insertBefore(t.map((function(e){return o.expressionStatement(e)})))};var i=a(n(315)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=e.node,i=e.scope,a=e.parent,l=i.generateUidIdentifier("step"),c=i.generateUidIdentifier("value"),f=n.left,p=void 0;r.isIdentifier(f)||r.isPattern(f)||r.isMemberExpression(f)?p=r.expressionStatement(r.assignmentExpression("=",f,c)):r.isVariableDeclaration(f)&&(p=r.variableDeclaration(f.kind,[r.variableDeclarator(f.declarations[0].id,c)]));var d=s();(0,o.default)(d,u,null,{ITERATOR_HAD_ERROR_KEY:i.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:i.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:i.generateUidIdentifier("iteratorError"),ITERATOR_KEY:i.generateUidIdentifier("iterator"),GET_ITERATOR:t.getAsyncIterator,OBJECT:n.right,STEP_VALUE:c,STEP_KEY:l,AWAIT:t.wrapAwait}),d=d.body.body;var h=r.isLabeledStatement(a),m=d[3].block.body,y=m[0];return h&&(m[0]=r.labeledStatement(a.label,y)),{replaceParent:h,node:d,declar:p,loop:y}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),i=a(n(4)),o=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.default)("\n function* wrapper() {\n var ITERATOR_COMPLETION = true;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY = undefined;\n try {\n for (\n var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY, STEP_VALUE;\n (\n STEP_KEY = yield AWAIT(ITERATOR_KEY.next()),\n ITERATOR_COMPLETION = STEP_KEY.done,\n STEP_VALUE = yield AWAIT(STEP_KEY.value),\n !ITERATOR_COMPLETION\n );\n ITERATOR_COMPLETION = true) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (!ITERATOR_COMPLETION && ITERATOR_KEY.return) {\n yield AWAIT(ITERATOR_KEY.return());\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n }\n"),u={noScope:!0,Identifier:function(e,t){e.node.name in t&&e.replaceInline(t[e.node.name])},CallExpression:function(e,t){var n=e.node.callee;r.isIdentifier(n)&&"AWAIT"===n.name&&!t.AWAIT&&e.replaceWith(e.node.arguments[0])}};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(4))&&r.__esModule?r:{default:r},o={};t.default=o,o.typeof=(0,i.default)('\n (typeof Symbol === "function" && typeof Symbol.iterator === "symbol")\n ? function (obj) { return typeof obj; }\n : function (obj) {\n return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype\n ? "symbol"\n : typeof obj;\n };\n'),o.jsx=(0,i.default)('\n (function () {\n var REACT_ELEMENT_TYPE = (typeof Symbol === "function" && Symbol.for && Symbol.for("react.element")) || 0xeac7;\n\n return function createRawReactElement (type, props, key, children) {\n var defaultProps = type && type.defaultProps;\n var childrenLength = arguments.length - 3;\n\n if (!props && childrenLength !== 0) {\n // If we\'re going to assign props.children, we create a new object now\n // to avoid mutating defaultProps.\n props = {};\n }\n if (props && defaultProps) {\n for (var propName in defaultProps) {\n if (props[propName] === void 0) {\n props[propName] = defaultProps[propName];\n }\n }\n } else if (!props) {\n props = defaultProps || {};\n }\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 3];\n }\n props.children = childArray;\n }\n\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key === undefined ? null : \'\' + key,\n ref: null,\n props: props,\n _owner: null,\n };\n };\n\n })()\n'),o.asyncIterator=(0,i.default)('\n (function (iterable) {\n if (typeof Symbol === "function") {\n if (Symbol.asyncIterator) {\n var method = iterable[Symbol.asyncIterator];\n if (method != null) return method.call(iterable);\n }\n if (Symbol.iterator) {\n return iterable[Symbol.iterator]();\n }\n }\n throw new TypeError("Object is not async iterable");\n })\n'),o.asyncGenerator=(0,i.default)('\n (function () {\n function AwaitValue(value) {\n this.value = value;\n }\n\n function AsyncGenerator(gen) {\n var front, back;\n\n function send(key, arg) {\n return new Promise(function (resolve, reject) {\n var request = {\n key: key,\n arg: arg,\n resolve: resolve,\n reject: reject,\n next: null\n };\n\n if (back) {\n back = back.next = request;\n } else {\n front = back = request;\n resume(key, arg);\n }\n });\n }\n\n function resume(key, arg) {\n try {\n var result = gen[key](arg)\n var value = result.value;\n if (value instanceof AwaitValue) {\n Promise.resolve(value.value).then(\n function (arg) { resume("next", arg); },\n function (arg) { resume("throw", arg); });\n } else {\n settle(result.done ? "return" : "normal", result.value);\n }\n } catch (err) {\n settle("throw", err);\n }\n }\n\n function settle(type, value) {\n switch (type) {\n case "return":\n front.resolve({ value: value, done: true });\n break;\n case "throw":\n front.reject(value);\n break;\n default:\n front.resolve({ value: value, done: false });\n break;\n }\n\n front = front.next;\n if (front) {\n resume(front.key, front.arg);\n } else {\n back = null;\n }\n }\n\n this._invoke = send;\n\n // Hide "return" method if generator return is not supported\n if (typeof gen.return !== "function") {\n this.return = undefined;\n }\n }\n\n if (typeof Symbol === "function" && Symbol.asyncIterator) {\n AsyncGenerator.prototype[Symbol.asyncIterator] = function () { return this; };\n }\n\n AsyncGenerator.prototype.next = function (arg) { return this._invoke("next", arg); };\n AsyncGenerator.prototype.throw = function (arg) { return this._invoke("throw", arg); };\n AsyncGenerator.prototype.return = function (arg) { return this._invoke("return", arg); };\n\n return {\n wrap: function (fn) {\n return function () {\n return new AsyncGenerator(fn.apply(this, arguments));\n };\n },\n await: function (value) {\n return new AwaitValue(value);\n }\n };\n\n })()\n'),o.asyncGeneratorDelegate=(0,i.default)('\n (function (inner, awaitWrap) {\n var iter = {}, waiting = false;\n\n function pump(key, value) {\n waiting = true;\n value = new Promise(function (resolve) { resolve(inner[key](value)); });\n return { done: false, value: awaitWrap(value) };\n };\n\n if (typeof Symbol === "function" && Symbol.iterator) {\n iter[Symbol.iterator] = function () { return this; };\n }\n\n iter.next = function (value) {\n if (waiting) {\n waiting = false;\n return value;\n }\n return pump("next", value);\n };\n\n if (typeof inner.throw === "function") {\n iter.throw = function (value) {\n if (waiting) {\n waiting = false;\n throw value;\n }\n return pump("throw", value);\n };\n }\n\n if (typeof inner.return === "function") {\n iter.return = function (value) {\n return pump("return", value);\n };\n }\n\n return iter;\n })\n'),o.asyncToGenerator=(0,i.default)('\n (function (fn) {\n return function () {\n var gen = fn.apply(this, arguments);\n return new Promise(function (resolve, reject) {\n function step(key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n return Promise.resolve(value).then(function (value) {\n step("next", value);\n }, function (err) {\n step("throw", err);\n });\n }\n }\n\n return step("next");\n });\n };\n })\n'),o.classCallCheck=(0,i.default)('\n (function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError("Cannot call a class as a function");\n }\n });\n'),o.createClass=(0,i.default)('\n (function() {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i ++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if ("value" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n })()\n'),o.defineEnumerableProperties=(0,i.default)('\n (function (obj, descs) {\n for (var key in descs) {\n var desc = descs[key];\n desc.configurable = desc.enumerable = true;\n if ("value" in desc) desc.writable = true;\n Object.defineProperty(obj, key, desc);\n }\n return obj;\n })\n'),o.defaults=(0,i.default)("\n (function (obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = Object.getOwnPropertyDescriptor(defaults, key);\n if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }\n return obj;\n })\n"),o.defineProperty=(0,i.default)("\n (function (obj, key, value) {\n // Shortcircuit the slow defineProperty path when possible.\n // We are trying to avoid issues where setters defined on the\n // prototype cause side effects under the fast path of simple\n // assignment. By checking for existence of the property with\n // the in operator, we can optimize most of this overhead away.\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n });\n"),o.extends=(0,i.default)("\n Object.assign || (function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n })\n"),o.get=(0,i.default)('\n (function get(object, property, receiver) {\n if (object === null) object = Function.prototype;\n\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent === null) {\n return undefined;\n } else {\n return get(parent, property, receiver);\n }\n } else if ("value" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n\n if (getter === undefined) {\n return undefined;\n }\n\n return getter.call(receiver);\n }\n });\n'),o.inherits=(0,i.default)('\n (function (subClass, superClass) {\n if (typeof superClass !== "function" && superClass !== null) {\n throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n })\n'),o.instanceof=(0,i.default)('\n (function (left, right) {\n if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {\n return right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n });\n'),o.interopRequireDefault=(0,i.default)("\n (function (obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n })\n"),o.interopRequireWildcard=(0,i.default)("\n (function (obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n newObj.default = obj;\n return newObj;\n }\n })\n"),o.newArrowCheck=(0,i.default)('\n (function (innerThis, boundThis) {\n if (innerThis !== boundThis) {\n throw new TypeError("Cannot instantiate an arrow function");\n }\n });\n'),o.objectDestructuringEmpty=(0,i.default)('\n (function (obj) {\n if (obj == null) throw new TypeError("Cannot destructure undefined");\n });\n'),o.objectWithoutProperties=(0,i.default)("\n (function (obj, keys) {\n var target = {};\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n return target;\n })\n"),o.possibleConstructorReturn=(0,i.default)('\n (function (self, call) {\n if (!self) {\n throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");\n }\n return call && (typeof call === "object" || typeof call === "function") ? call : self;\n });\n'),o.selfGlobal=(0,i.default)('\n typeof global === "undefined" ? self : global\n'),o.set=(0,i.default)('\n (function set(object, property, value, receiver) {\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent !== null) {\n set(parent, property, value, receiver);\n }\n } else if ("value" in desc && desc.writable) {\n desc.value = value;\n } else {\n var setter = desc.set;\n\n if (setter !== undefined) {\n setter.call(receiver, value);\n }\n }\n\n return value;\n });\n'),o.slicedToArray=(0,i.default)('\n (function () {\n // Broken out into a separate function to avoid deoptimizations due to the try/catch for the\n // array iterator case.\n function sliceIterator(arr, i) {\n // this is an expanded form of `for...of` that properly supports abrupt completions of\n // iterators etc. variable names have been minimised to reduce the size of this massive\n // helper. sometimes spec compliancy is annoying :(\n //\n // _n = _iteratorNormalCompletion\n // _d = _didIteratorError\n // _e = _iteratorError\n // _i = _iterator\n // _s = _step\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i["return"]) _i["return"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError("Invalid attempt to destructure non-iterable instance");\n }\n };\n })();\n'),o.slicedToArrayLoose=(0,i.default)('\n (function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n var _arr = [];\n for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {\n _arr.push(_step.value);\n if (i && _arr.length === i) break;\n }\n return _arr;\n } else {\n throw new TypeError("Invalid attempt to destructure non-iterable instance");\n }\n });\n'),o.taggedTemplateLiteral=(0,i.default)("\n (function (strings, raw) {\n return Object.freeze(Object.defineProperties(strings, {\n raw: { value: Object.freeze(raw) }\n }));\n });\n"),o.taggedTemplateLiteralLoose=(0,i.default)("\n (function (strings, raw) {\n strings.raw = raw;\n return strings;\n });\n"),o.temporalRef=(0,i.default)('\n (function (val, name, undef) {\n if (val === undef) {\n throw new ReferenceError(name + " is not defined - temporal dead zone");\n } else {\n return val;\n }\n })\n'),o.temporalUndefined=(0,i.default)("\n ({})\n"),o.toArray=(0,i.default)("\n (function (arr) {\n return Array.isArray(arr) ? arr : Array.from(arr);\n });\n"),o.toConsumableArray=(0,i.default)("\n (function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n return arr2;\n } else {\n return Array.from(arr);\n }\n });\n"),e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{pre:function(e){e.set("helpersNamespace",t.identifier("babelHelpers"))}}},e.exports=t.default},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(89);e.exports=function(e){var t=e.types,n={};return{visitor:{Identifier:function(e,o){if("MemberExpression"!==e.parent.type&&"ClassMethod"!==e.parent.type&&!e.isPure()&&o.opts.hasOwnProperty(e.node.name)){var a=o.opts[e.node.name];null==a&&(a=t.identifier(String(a)));var s=void 0===a?"undefined":r(a);"string"===s||"boolean"===s?a={type:s,replacement:a}:t.isNode(a)?a={type:"node",replacement:a}:"object"===s&&"node"===a.type&&"string"==typeof a.replacement&&(a.replacement=n[a.replacement]?n[a.replacement]:i.parseExpression(a.replacement));var u=a.replacement;switch(a.type){case"boolean":e.replaceWith(t.booleanLiteral(u));break;case"node":t.isNode(u)&&e.replaceWith(u);break;default:var l=String(u);e.replaceWith(t.stringLiteral(l))}}}}}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("dynamicImport")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("functionSent")}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{inherits:n(67)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types,r={Function:function(e){e.skip()},YieldExpression:function(e,n){var r=e.node;if(r.delegate){var i=n.addHelper("asyncGeneratorDelegate");r.argument=t.callExpression(i,[t.callExpression(n.addHelper("asyncIterator"),[r.argument]),t.memberExpression(n.addHelper("asyncGenerator"),t.identifier("await"))])}}};return{inherits:n(195),visitor:{Function:function(e,n){e.node.async&&e.node.generator&&(e.traverse(r,n),(0,i.default)(e,n.file,{wrapAsync:t.memberExpression(n.addHelper("asyncGenerator"),t.identifier("wrap")),wrapAwait:t.memberExpression(n.addHelper("asyncGenerator"),t.identifier("await"))}))}}}};var r,i=(r=n(124))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return{inherits:n(67),visitor:{Function:function(e,t){e.node.async&&!e.node.generator&&(0,i.default)(e,t.file,{wrapAsync:t.addImport(t.opts.module,t.opts.method)})}}}};var r,i=(r=n(124))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.types;function r(e,t){if(!t.applyDecoratedDescriptor){t.applyDecoratedDescriptor=e.scope.generateUidIdentifier("applyDecoratedDescriptor");var n=f({NAME:t.applyDecoratedDescriptor});e.scope.getProgramParent().path.unshiftContainer("body",n)}return t.applyDecoratedDescriptor}function i(e){var n=(e.isClass()?[e].concat(e.get("body.body")):e.get("properties")).reduce((function(e,t){return e.concat(t.node.decorators||[])}),[]).filter((function(e){return!t.isIdentifier(e.expression)}));if(0!==n.length)return t.sequenceExpression(n.map((function(n){var r=n.expression,i=n.expression=e.scope.generateDeclaredUidIdentifier("dec");return t.assignmentExpression("=",i,r)})).concat([e.node]))}function p(e,n,i){e.scope.generateDeclaredUidIdentifier("desc"),e.scope.generateDeclaredUidIdentifier("value");var o=e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj"),c=i.reduce((function(i,c){var f=c.decorators||[];if(c.decorators=null,0===f.length)return i;if(c.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");var p=t.isLiteral(c.key)?c.key:t.stringLiteral(c.key.name),d=e.isClass()&&!c.static?a({CLASS_REF:o}).expression:o;if(t.isClassProperty(c,{static:!1})){var h=e.scope.generateDeclaredUidIdentifier("descriptor"),m=c.value?t.functionExpression(null,[],t.blockStatement([t.returnStatement(c.value)])):t.nullLiteral();c.value=t.callExpression(function(e,t){if(!t.initializerWarningHelper){t.initializerWarningHelper=e.scope.generateUidIdentifier("initializerWarningHelper");var n=l({NAME:t.initializerWarningHelper});e.scope.getProgramParent().path.unshiftContainer("body",n)}return t.initializerWarningHelper}(e,n),[h,t.thisExpression()]),i=i.concat([t.assignmentExpression("=",h,t.callExpression(r(e,n),[d,p,t.arrayExpression(f.map((function(e){return e.expression}))),t.objectExpression([t.objectProperty(t.identifier("enumerable"),t.booleanLiteral(!0)),t.objectProperty(t.identifier("initializer"),m)])]))])}else i=i.concat(t.callExpression(r(e,n),[d,p,t.arrayExpression(f.map((function(e){return e.expression}))),t.isObjectProperty(c)||t.isClassProperty(c,{static:!0})?u({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:d,PROPERTY:p}).expression:s({TARGET:d,PROPERTY:p}).expression,d]));return i}),[]);return t.sequenceExpression([t.assignmentExpression("=",o,e.node),t.sequenceExpression(c),o])}return{inherits:n(125),visitor:{ExportDefaultDeclaration:function(e){if(e.get("declaration").isClassDeclaration()){var n=e.node,r=n.declaration.id||e.scope.generateUidIdentifier("default");n.declaration.id=r,e.replaceWith(n.declaration),e.insertAfter(t.exportNamedDeclaration(null,[t.exportSpecifier(r,t.identifier("default"))]))}},ClassDeclaration:function(e){var n=e.node,r=n.id||e.scope.generateUidIdentifier("class");e.replaceWith(t.variableDeclaration("let",[t.variableDeclarator(r,t.toExpression(n))]))},ClassExpression:function(e,t){var n=i(e)||function(e,t){var n=e.node.decorators||[];if(e.node.decorators=null,0!==n.length){var r=e.scope.generateDeclaredUidIdentifier("class");return n.map((function(e){return e.expression})).reverse().reduce((function(e,t){return o({CLASS_REF:r,DECORATOR:t,INNER:e}).expression}),e.node)}}(e)||function(e,t){if(e.node.body.body.some((function(e){return(e.decorators||[]).length>0})))return p(e,t,e.node.body.body)}(e,t);n&&e.replaceWith(n)},ObjectExpression:function(e,t){var n=i(e)||function(e,t){if(e.node.properties.some((function(e){return(e.decorators||[]).length>0})))return p(e,t,e.node.properties)}(e,t);n&&e.replaceWith(n)},AssignmentExpression:function(e,n){n.initializerWarningHelper&&e.get("left").isMemberExpression()&&e.get("left.property").isIdentifier()&&e.get("right").isCallExpression()&&e.get("right.callee").isIdentifier({name:n.initializerWarningHelper.name})&&e.replaceWith(t.callExpression(function(e,t){if(!t.initializerDefineProp){t.initializerDefineProp=e.scope.generateUidIdentifier("initDefineProp");var n=c({NAME:t.initializerDefineProp});e.scope.getProgramParent().path.unshiftContainer("body",n)}return t.initializerDefineProp}(e,n),[e.get("left.object").node,t.stringLiteral(e.get("left.property").node.name),e.get("right.arguments")[0].node,e.get("right.arguments")[1].node]))}}}};var r,i=(r=n(4))&&r.__esModule?r:{default:r},o=(0,i.default)("\n DECORATOR(CLASS_REF = INNER) || CLASS_REF;\n"),a=(0,i.default)("\n CLASS_REF.prototype;\n"),s=(0,i.default)("\n Object.getOwnPropertyDescriptor(TARGET, PROPERTY);\n"),u=(0,i.default)("\n (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {\n enumerable: true,\n configurable: true,\n writable: true,\n initializer: function(){\n return TEMP;\n }\n })\n"),l=(0,i.default)("\n function NAME(descriptor, context){\n throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');\n }\n"),c=(0,i.default)("\n function NAME(target, property, descriptor, context){\n if (!descriptor) return;\n\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0,\n });\n }\n"),f=(0,i.default)("\n function NAME(target, property, decorators, descriptor, context){\n var desc = {};\n Object['ke' + 'ys'](descriptor).forEach(function(key){\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n if ('value' in desc || desc.initializer){\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function(desc, decorator){\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0){\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0){\n // This is a hack to avoid this being processed by 'transform-runtime'.\n // See issue #9.\n Object['define' + 'Property'](target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n")},function(e,t,n){"use strict";t.__esModule=!0,t.visitor=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function i(e,t){return r.callExpression(t.addHelper("temporalRef"),[e,r.stringLiteral(e.name),t.addHelper("temporalUndefined")])}function o(e,t,n){var r=n.letReferences[e.name];return!!r&&t.getBindingIdentifier(e.name)===r}t.visitor={ReferencedIdentifier:function(e,t){if(this.file.opts.tdz){var n=e.node,a=e.parent,s=e.scope;if(!e.parentPath.isFor({left:n})&&o(n,s,t)){var u=s.getBinding(n.name).path,l=function(e,t){var n=t._guessExecutionStatusRelativeTo(e);return"before"===n?"inside":"after"===n?"outside":"maybe"}(e,u);if("inside"!==l)if("maybe"===l){var c=i(n,t.file);if(u.parent._tdzThis=!0,e.skip(),e.parentPath.isUpdateExpression()){if(a._ignoreBlockScopingTDZ)return;e.parentPath.replaceWith(r.sequenceExpression([c,a]))}else e.replaceWith(c)}else"outside"===l&&e.replaceWith(r.throwStatement(r.inherits(r.newExpression(r.identifier("ReferenceError"),[r.stringLiteral(n.name+" is not defined - temporal dead zone")]),n)))}}},AssignmentExpression:{exit:function(e,t){if(this.file.opts.tdz){var n=e.node;if(!n._ignoreBlockScopingTDZ){var a=[],s=e.getBindingIdentifiers();for(var u in s){var l=s[u];o(l,e.scope,t)&&a.push(i(l,t.file))}a.length&&(n._ignoreBlockScopingTDZ=!0,a.push(n),e.replaceWithMultiple(a.map(r.expressionStatement)))}}}}}},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(3)),i=l(n(42)),o=l(n(41)),a=l(n(40)),s=l(n(207)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){(0,r.default)(this,t);var n=(0,i.default)(this,e.apply(this,arguments));return n.isLoose=!0,n}return(0,o.default)(t,e),t.prototype._processMethod=function(e,t){if(!e.decorators){var n=this.classRef;e.static||(n=u.memberExpression(n,u.identifier("prototype")));var r=u.memberExpression(n,e.key,e.computed||u.isLiteral(e.key)),i=u.functionExpression(null,e.params,e.body,e.generator,e.async);i.returnType=e.returnType;var o=u.toComputedKey(e,e.key);u.isStringLiteral(o)&&(i=(0,a.default)({node:i,id:o,scope:t}));var s=u.expressionStatement(u.assignmentExpression("=",r,i));return u.inheritsComments(s,e),this.body.push(s),!0}},t}(s.default);t.default=c,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{BinaryExpression:function(e){var n=e.node;"instanceof"===n.operator&&e.replaceWith(t.callExpression(this.addHelper("instanceof"),[n.left,n.right]))}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.visitor=void 0;var r=u(n(2)),i=u(n(189)),o=u(n(317)),a=u(n(4)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function u(e){return e&&e.__esModule?e:{default:e}}var l=(0,a.default)("\n let VARIABLE_NAME =\n ARGUMENTS.length > ARGUMENT_KEY && ARGUMENTS[ARGUMENT_KEY] !== undefined ?\n ARGUMENTS[ARGUMENT_KEY]\n :\n DEFAULT_VALUE;\n"),c=(0,a.default)("\n let $0 = $1[$2];\n");function f(e,t){if(!e.hasOwnBinding(t.name))return!0;var n=e.getOwnBinding(t.name).kind;return"param"===n||"local"===n}var p={ReferencedIdentifier:function(e,t){var n=e.scope,r=e.node;"eval"!==r.name&&f(n,r)||(t.iife=!0,e.stop())},Scope:function(e){e.skip()}};t.visitor={Function:function(e){var t=e.node,n=e.scope;if(function(e){var t=e.params,n=Array.isArray(t),i=0;for(t=n?t:(0,r.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}var a=o;if(!s.isIdentifier(a))return!0}return!1}(t)){e.ensureBlock();var a={iife:!1,scope:n},u=[],d=s.identifier("arguments");d._shadowedFunctionLiteral=e;for(var h=(0,i.default)(t),m=e.get("params"),y=0;y=h||g.isPattern()){var x=n.generateUidIdentifier("x");x._isDefaultPlaceholder=!0,t.params[y]=x}else t.params[y]=g.node;a.iife||(b.isIdentifier()&&!f(n,b.node)?a.iife=!0:b.traverse(p,a)),S(g.node,b.node,y)}else a.iife||v.isIdentifier()||v.traverse(p,a)}for(var _=h+1;_",h,l),o.binaryExpression("-",h,l),o.numericLiteral(0)));var v=s({ARGUMENTS:a,ARRAY_KEY:m,ARRAY_LEN:y,START:l,ARRAY:i,KEY:c,LEN:h});if(u.deopted)v._blockHoist=t.params.length+1,t.body.body.unshift(v);else{v._blockHoist=1;var g=e.getEarliestCommonAncestorFrom(u.references).getStatementParent();g.findParent((function(e){if(!e.isLoop())return e.isFunction();g=e})),g.insertBefore(v)}}else{var b=u.candidates,x=Array.isArray(b),_=0;for(b=x?b:(0,r.default)(b);;){var w;if(x){if(_>=b.length)break;w=b[_++]}else{if((_=b.next()).done)break;w=_.value}var E=w,S=E.path;switch(E.cause){case"indexGetter":p(S,a,u.offset);break;case"lengthGetter":d(S,a,u.offset);break;default:S.replaceWith(a)}}}}}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{MemberExpression:{exit:function(e){var n=e.node,r=n.property;n.computed||!t.isIdentifier(r)||t.isValidIdentifier(r.name)||(n.property=t.stringLiteral(r.name),n.computed=!0)}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{ObjectProperty:{exit:function(e){var n=e.node,r=n.key;n.computed||!t.isIdentifier(r)||t.isValidIdentifier(r.name)||(n.key=t.stringLiteral(r.name))}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types;return{visitor:{ObjectExpression:function(e,n){var r=e.node,a=!1,s=r.properties,u=Array.isArray(s),l=0;for(s=u?s:(0,i.default)(s);;){var c;if(u){if(l>=s.length)break;c=s[l++]}else{if((l=s.next()).done)break;c=l.value}var f=c;if("get"===f.kind||"set"===f.kind){a=!0;break}}if(a){var p={};r.properties=r.properties.filter((function(e){return!!(e.computed||"get"!==e.kind&&"set"!==e.kind)||(o.push(p,e,null,n),!1)})),e.replaceWith(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("defineProperties")),[r,o.toDefineObject(p)]))}}}}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(188));e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.parse,n=e.traverse;return{visitor:{CallExpression:function(e){if(e.get("callee").isIdentifier({name:"eval"})&&1===e.node.arguments.length){var r=e.get("arguments")[0].evaluate();if(!r.confident)return;var i=r.value;if("string"!=typeof i)return;var o=t(i);return n.removeProperties(o),o.program}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;function r(e,n){e.addComment("trailing",i(e,n)),e.replaceWith(t.noop())}function i(e,t){var n=e.getSource().replace(/\*-\//g,"*-ESCAPED/").replace(/\*\//g,"*-/");return t&&t.optional&&(n="?"+n),":"!==n[0]&&(n=":: "+n),n}return{inherits:n(126),visitor:{TypeCastExpression:function(e){var n=e.node;e.get("expression").addComment("trailing",i(e.get("typeAnnotation"))),e.replaceWith(t.parenthesizedExpression(n.expression))},Identifier:function(e){var t=e.node;t.optional&&!t.typeAnnotation&&e.addComment("trailing",":: ?")},AssignmentPattern:{exit:function(e){e.node.left.optional=!1}},Function:{exit:function(e){e.node.params.forEach((function(e){return e.optional=!1}))}},ClassProperty:function(e){var t=e.node,n=e.parent;t.value||r(e,n)},"ExportNamedDeclaration|Flow":function(e){var n=e.node,i=e.parent;t.isExportNamedDeclaration(n)&&!t.isFlow(n.declaration)||r(e,i)},ImportDeclaration:function(e){var n=e.node,i=e.parent;t.isImportDeclaration(n)&&"type"!==n.importKind&&"typeof"!==n.importKind||r(e,i)}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{FunctionExpression:{exit:function(e){var n=e.node;n.id&&(n._ignoreUserWhitespace=!0,e.replaceWith(t.callExpression(t.functionExpression(null,[],t.blockStatement([t.toStatement(n),t.returnStatement(n.id)])),[])))}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{CallExpression:function(e,t){e.get("callee").matchesPattern("Object.assign")&&(e.node.callee=t.addHelper("extends"))}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{CallExpression:function(e,t){e.get("callee").matchesPattern("Object.setPrototypeOf")&&(e.node.callee=t.addHelper("defaults"))}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(2));t.default=function(e){var t=e.types;function n(e){return t.isLiteral(t.toComputedKey(e,e.key),{value:"__proto__"})}function o(e){var n=e.left;return t.isMemberExpression(n)&&t.isLiteral(t.toComputedKey(n,n.property),{value:"__proto__"})}function a(e,n,r){return t.expressionStatement(t.callExpression(r.addHelper("defaults"),[n,e.right]))}return{visitor:{AssignmentExpression:function(e,n){if(o(e.node)){var r=[],i=e.node.left.object,s=e.scope.maybeGenerateMemoised(i);s&&r.push(t.expressionStatement(t.assignmentExpression("=",s,i))),r.push(a(e.node,s||i,n)),s&&r.push(s),e.replaceWithMultiple(r)}},ExpressionStatement:function(e,n){var r=e.node.expression;t.isAssignmentExpression(r,{operator:"="})&&o(r)&&e.replaceWith(a(r,r.left.object,n))},ObjectExpression:function(e,o){var a=void 0,s=e.node,u=s.properties,l=Array.isArray(u),c=0;for(u=l?u:(0,r.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;n(p)&&(a=p.value,(0,i.default)(s.properties,p))}if(a){var d=[t.objectExpression([]),a];s.properties.length&&d.push(s),e.replaceWith(t.callExpression(o.addHelper("extends"),d))}}}}};var i=o(n(277));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(11))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types,n={enter:function(e,n){var r=function(){n.isImmutable=!1,e.stop()};if(e.isJSXClosingElement())e.skip();else{if(e.isJSXIdentifier({name:"ref"})&&e.parentPath.isJSXAttribute({name:e.node}))return r();if(!(e.isJSXIdentifier()||e.isIdentifier()||e.isJSXMemberExpression()||e.isImmutable())){if(e.isPure()){var o=e.evaluate();if(o.confident){var a=o.value;if(!(a&&"object"===(void 0===a?"undefined":(0,i.default)(a))||"function"==typeof a))return}else if(t.isIdentifier(o.deopt))return}r()}}}};return{visitor:{JSXElement:function(e){if(!e.node._hoisted){var t={isImmutable:!0};e.traverse(n,t),t.isImmutable?e.hoist():e.node._hoisted=!0}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){var t=e.types;function n(e,n){return t.isJSXAttribute(e)&&t.isJSXIdentifier(e.name,{name:n})}function r(e){var n=e.value;return n?(t.isJSXExpressionContainer(n)&&(n=n.expression),n):t.identifier("true")}return{visitor:{JSXElement:function(e,o){var a=e.node,s=a.openingElement;if(!function(e){for(var r=0;r=f.length)break;h=f[d++]}else{if((d=f.next()).done)break;h=d.value}var m=h;if(n(m,"key"))l=r(m);else{var y=m.name.name,v=t.isValidIdentifier(y)?t.identifier(y):t.stringLiteral(y);_(u.properties,v,r(m))}}var g=[c,u];if(l||a.children.length){var b=t.react.buildChildren(a);g.push.apply(g,[l||t.unaryExpression("void",t.numericLiteral(0),!0)].concat(b))}var x=t.callExpression(o.addHelper("jsx"),g);e.replaceWith(x)}function _(e,n,r){e.push(t.objectProperty(n,r))}}}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{manipulateOptions:function(e,t){t.plugins.push("jsx")},visitor:(0,i.default)({pre:function(e){e.callee=e.tagExpr},post:function(e){t.react.isCompatTag(e.tagName)&&(e.call=t.callExpression(t.memberExpression(t.memberExpression(t.identifier("React"),t.identifier("DOM")),e.tagExpr,t.isLiteral(e.tagExpr)),e.args))}})}};var r,i=(r=n(348))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={JSXNamespacedName:function(e){throw e.buildCodeFrameError("Namespace tags are not supported. ReactJSX is not XML.")}};return t.JSXElement={exit:function(t,r){var i=function(t,r){t.parent.children=o.react.buildChildren(t.parent);var i=n(t.node.name,t.node),a=[],s=void 0;o.isIdentifier(i)?s=i.name:o.isLiteral(i)&&(s=i.value);var u={tagExpr:i,tagName:s,args:a};e.pre&&e.pre(u,r);var l=t.node.attributes;return l=l.length?function(e,t){var n,r,i=[],a=[],s=t.opts.useBuiltIns||!1;if("boolean"!=typeof s)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");function u(){i.length&&(a.push(o.objectExpression(i)),i=[])}for(;e.length;){var l=e.shift();o.isJSXSpreadAttribute(l)?(u(),a.push(l.argument)):i.push((r=void 0,r=function(e){return o.isJSXExpressionContainer(e)?e.expression:e}((n=l).value||o.booleanLiteral(!0)),o.isStringLiteral(r)&&!o.isJSXExpressionContainer(n.value)&&(r.value=r.value.replace(/\n\s+/g," ")),o.isValidIdentifier(n.name.name)?n.name.type="Identifier":n.name=o.stringLiteral(n.name.name),o.inherits(o.objectProperty(n.name,r),n)))}if(u(),1===a.length)e=a[0];else{o.isObjectExpression(a[0])||a.unshift(o.objectExpression([]));var c=s?o.memberExpression(o.identifier("Object"),o.identifier("assign")):t.addHelper("extends");e=o.callExpression(c,a)}return e}(l,r):o.nullLiteral(),a.push(l),e.post&&e.post(u,r),u.call||o.callExpression(u.callee,a)}(t.get("openingElement"),r);i.arguments=i.arguments.concat(t.node.children),i.arguments.length>=3&&(i._prettyCall=!0),t.replaceWith(o.inherits(i,t.node))}},t;function n(e,t){if(o.isJSXIdentifier(e)){if("this"===e.name&&o.isReferenced(e,t))return o.thisExpression();if(!i.default.keyword.isIdentifierNameES6(e.name))return o.stringLiteral(e.name);e.type="Identifier"}else if(o.isJSXMemberExpression(e))return o.memberExpression(n(e.object,e),n(e.property,e));return e}};var r,i=(r=n(97))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{JSXOpeningElement:function(e){var r=e.node,i=t.jSXIdentifier(n),o=t.thisExpression();r.attributes.push(t.jSXAttribute(i,t.jSXExpressionContainer(o)))}}}};var n="__self";e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{JSXOpeningElement:function(e,i){var o=t.jSXIdentifier(n),a=e.container.openingElement.loc;if(a){for(var s=e.container.openingElement.attributes,u=0;u3||c<=u||(s=l,u=c)}var f;throw f=s?t.get("undeclaredVariableSuggestion",n.name,s):t.get("undeclaredVariable",n.name),e.buildCodeFrameError(f,ReferenceError)}}}}};var r,i=(r=n(471))&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(211))&&r.__esModule?r:{default:r};t.default={plugins:[i.default]},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{presets:[!1!==t.es2015&&[r.default.buildPreset,t.es2015],!1!==t.es2016&&i.default,!1!==t.es2017&&o.default].filter(Boolean)}};var r=a(n(217)),i=a(n(218)),o=a(n(219));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(355)),i=s(n(215)),o=s(n(127)),a=s(n(214));function s(e){return e&&e.__esModule?e:{default:e}}t.default={presets:[r.default],plugins:[i.default,o.default,a.default],env:{development:{plugins:[]}}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(220)),i=a(n(206)),o=a(n(212));function a(e){return e&&e.__esModule?e:{default:e}}t.default={presets:[r.default],plugins:[i.default,o.default]},e.exports=t.default},function(e,t,n){"use strict";e.exports={default:n(407),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(410),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(412),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(413),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(415),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(416),__esModule:!0}},function(e,t,n){"use strict";e.exports={default:n(417),__esModule:!0}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(2)),i=s(n(3)),o=s(n(36)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t,n,r,o){(0,i.default)(this,e),this.queue=null,this.parentPath=o,this.scope=t,this.state=r,this.opts=n}return e.prototype.shouldVisit=function(e){var t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;var n=a.VISITOR_KEYS[e.type];if(!n||!n.length)return!1;var i=n,o=Array.isArray(i),s=0;for(i=o?i:(0,r.default)(i);;){var u;if(o){if(s>=i.length)break;u=i[s++]}else{if((s=i.next()).done)break;u=s.value}if(e[u])return!0}return!1},e.prototype.create=function(e,t,n,r){return o.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:r})},e.prototype.maybeQueue=function(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))},e.prototype.visitMultiple=function(e,t,n){if(0===e.length)return!1;for(var r=[],i=0;i=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s;if(u.resync(),0!==u.contexts.length&&u.contexts[u.contexts.length-1]===this||u.pushContext(this),null!==u.key&&!(t.indexOf(u.node)>=0)){if(t.push(u.node),u.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}var l=e,c=Array.isArray(l),f=0;for(l=c?l:(0,r.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}p.popContext()}return this.queue=null,n},e.prototype.visit=function(e,t){var n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))},e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(2));t.findParent=function(e){for(var t=this;t=t.parentPath;)if(e(t))return t;return null},t.find=function(e){var t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.getFunctionParent=function(){return this.findParent((function(e){return e.isFunction()||e.isProgram()}))},t.getStatementParent=function(){var e=this;do{if(Array.isArray(e.container))return e}while(e=e.parentPath)},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,n){var o=void 0,a=i.VISITOR_KEYS[e.type],s=n,u=Array.isArray(s),l=0;for(s=u?s:(0,r.default)(s);;){var c;if(u){if(l>=s.length)break;c=s[l++]}else{if((l=s.next()).done)break;c=l.value}var f=c[t+1];o?(f.listKey&&o.listKey===f.listKey&&f.keya.indexOf(f.parentKey))&&(o=f):o=f}return o}))},t.getDeepestCommonAncestorFrom=function(e,t){var n=this;if(!e.length)return this;if(1===e.length)return e[0];var i=1/0,o=void 0,a=void 0,s=e.map((function(e){var t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==n);return t.length=f.length)break;h=f[d++]}else{if((d=f.next()).done)break;h=d.value}if(h[l]!==c)break e}o=l,a=c}if(a)return t?t(a,o,s):a;throw new Error("Couldn't find intersection")},t.getAncestry=function(){var e=this,t=[];do{t.push(e)}while(e=e.parentPath);return t},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent((function(t){return t===e}))},t.inType=function(){for(var e=this;e;){var t=arguments,n=Array.isArray(t),i=0;for(t=n?t:(0,r.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}var a=o;if(e.node.type===a)return!0}e=e.parentPath}return!1},t.inShadow=function(e){var t=this.isFunction()?this:this.findParent((function(e){return e.isFunction()}));if(t){if(t.isFunctionExpression()||t.isFunctionDeclaration()){var n=t.node.shadow;if(n&&(!e||!1!==n[e]))return t}else if(t.isArrowFunctionExpression())return t;return null}};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function o(e){return e&&e.__esModule?e:{default:e}}o(n(36))},function(e,t){"use strict";t.__esModule=!0,t.shareCommentsWithSiblings=function(){if("string"!=typeof this.key){var e=this.node;if(e){var t=e.trailingComments,n=e.leadingComments;if(t||n){var r=this.getSibling(this.key-1),i=this.getSibling(this.key+1);r.node||(r=i),i.node||(i=r),r.addComments("trailing",n),i.addComments("leading",t)}}}},t.addComment=function(e,t,n){this.addComments(e,[{type:n?"CommentLine":"CommentBlock",value:t}])},t.addComments=function(e,t){if(t){var n=this.node;if(n){var r=e+"Comments";n[r]?n[r]=n[r].concat(t):n[r]=t}}}},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(2));t.call=function(e){var t=this.opts;return this.debug((function(){return e})),!(!this.node||!this._call(t[e]))||!!this.node&&this._call(t[this.node.type]&&t[this.node.type][e])},t._call=function(e){if(!e)return!1;var t=e,n=Array.isArray(t),i=0;for(t=n?t:(0,r.default)(t);;){var o;if(n){if(i>=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}var a=o;if(a){var s=this.node;if(!s)return!0;if(a.call(this.state,this,this.state))throw new Error("Unexpected return value from visitor method "+a);if(this.node!==s)return!0;if(this.shouldStop||this.shouldSkip||this.removed)return!0}}return!1},t.isBlacklisted=function(){var e=this.opts.blacklist;return e&&e.indexOf(this.node.type)>-1},t.visit=function(){return!!this.node&&!this.isBlacklisted()&&(!this.opts.shouldSkip||!this.opts.shouldSkip(this))&&(this.call("enter")||this.shouldSkip?(this.debug((function(){return"Skip..."})),this.shouldStop):(this.debug((function(){return"Recursing into..."})),i.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop))},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){this.skipKeys[e]=!0},t.stop=function(){this.shouldStop=!0,this.shouldSkip=!0},t.setScope=function(){if(!this.opts||!this.opts.noScope){var e=this.context&&this.context.scope;if(!e)for(var t=this.parentPath;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()}},t.setContext=function(e){return this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.skipKeys={},e&&(this.context=e,this.state=e.state,this.opts=e.opts),this.setScope(),this},t.resync=function(){this.removed||(this._resyncParent(),this._resyncList(),this._resyncKey())},t._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncKey=function(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:this;if(!e.removed){var t=this.contexts,n=t,i=Array.isArray(n),o=0;for(n=i?n:(0,r.default)(n);;){var a;if(i){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;s.maybeQueue(e)}}},t._getQueueContexts=function(){for(var e=this,t=this.contexts;!t.length;)t=(e=e.parentPath).contexts;return t};var i=o(n(7));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.toComputedKey=function(){var e=this.node,t=void 0;if(this.isMemberExpression())t=e.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");t=e.key}return e.computed||r.isIdentifier(t)&&(t=r.stringLiteral(t.name)),t},t.ensureBlock=function(){return r.ensureBlock(this.node)},t.arrowFunctionToShadowed=function(){if(this.isArrowFunctionExpression()){this.ensureBlock();var e=this.node;e.expression=!1,e.type="FunctionExpression",e.shadow=e.shadow||!0}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1))},function(e,t,n){(function(e){"use strict";t.__esModule=!0;var r=a(n(11)),i=a(n(2)),o=a(n(133));function a(e){return e&&e.__esModule?e:{default:e}}t.evaluateTruthy=function(){var e=this.evaluate();if(e.confident)return!!e.value},t.evaluate=function(){var t=!0,n=void 0,a=new o.default;function l(e){t&&(n=e,t=!1)}var c=function n(o){var c=o.node;if(a.has(c)){var f=a.get(c);return f.resolved?f.value:void l(o)}var p={resolved:!1};a.set(c,p);var d=function(o){if(t){var a=o.node;if(o.isSequenceExpression()){var c=o.get("expressions");return n(c[c.length-1])}if(o.isStringLiteral()||o.isNumericLiteral()||o.isBooleanLiteral())return a.value;if(o.isNullLiteral())return null;if(o.isTemplateLiteral()){var f="",p=0,d=o.get("expressions"),h=a.quasis,m=Array.isArray(h),y=0;for(h=m?h:(0,i.default)(h);;){var v;if(m){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}var g=v;if(!t)break;f+=g.value.cooked;var b=d[p++];b&&(f+=String(n(b)))}if(!t)return;return f}if(o.isConditionalExpression()){var x=n(o.get("test"));if(!t)return;return n(x?o.get("consequent"):o.get("alternate"))}if(o.isExpressionWrapper())return n(o.get("expression"));if(o.isMemberExpression()&&!o.parentPath.isCallExpression({callee:a})){var _=o.get("property"),w=o.get("object");if(w.isLiteral()&&_.isIdentifier()){var E=w.node.value,S=void 0===E?"undefined":(0,r.default)(E);if("number"===S||"string"===S)return E[_.node.name]}}if(o.isReferencedIdentifier()){var k=o.scope.getBinding(a.name);if(k&&k.constantViolations.length>0)return l(k.path);if(k&&o.node.start=M.length)break;L=M[O++]}else{if((O=M.next()).done)break;L=O.value}var N=L;if(!(N=N.evaluate()).confident)return l(N);D.push(N.value)}return D}if(o.isObjectExpression()){var F={},R=o.get("properties"),I=Array.isArray(R),j=0;for(R=I?R:(0,i.default)(R);;){var B;if(I){if(j>=R.length)break;B=R[j++]}else{if((j=R.next()).done)break;B=j.value}var q=B;if(q.isObjectMethod()||q.isSpreadProperty())return l(q);var z=q.get("key"),V=z;if(q.node.computed){if(!(V=V.evaluate()).confident)return l(z);V=V.value}else V=V.isIdentifier()?V.node.name:V.node.value;var U=q.get("value"),W=U.evaluate();if(!W.confident)return l(U);W=W.value,F[V]=W}return F}if(o.isLogicalExpression()){var Y=t,X=n(o.get("left")),H=t;t=Y;var G=n(o.get("right")),$=t;switch(t=H&&$,a.operator){case"||":if(X&&H)return t=!0,X;if(!t)return;return X||G;case"&&":if((!X&&H||!G&&$)&&(t=!0),!t)return;return X&&G}}if(o.isBinaryExpression()){var K=n(o.get("left"));if(!t)return;var Z=n(o.get("right"));if(!t)return;switch(a.operator){case"-":return K-Z;case"+":return K+Z;case"/":return K/Z;case"*":return K*Z;case"%":return K%Z;case"**":return Math.pow(K,Z);case"<":return K":return K>Z;case"<=":return K<=Z;case">=":return K>=Z;case"==":return K==Z;case"!=":return K!=Z;case"===":return K===Z;case"!==":return K!==Z;case"|":return K|Z;case"&":return K&Z;case"^":return K^Z;case"<<":return K<>":return K>>Z;case">>>":return K>>>Z}}if(o.isCallExpression()){var J=o.get("callee"),Q=void 0,ee=void 0;if(J.isIdentifier()&&!o.scope.getBinding(J.node.name,!0)&&s.indexOf(J.node.name)>=0&&(ee=e[a.callee.name]),J.isMemberExpression()){var te=J.get("object"),ne=J.get("property");if(te.isIdentifier()&&ne.isIdentifier()&&s.indexOf(te.node.name)>=0&&u.indexOf(ne.node.name)<0&&(ee=(Q=e[te.node.name])[ne.node.name]),te.isLiteral()&&ne.isIdentifier()){var re=(0,r.default)(te.node.value);"string"!==re&&"number"!==re||(ee=(Q=te.node.value)[ne.node.name])}}if(ee){var ie=o.get("arguments").map(n);if(!t)return;return ee.apply(Q,ie)}}l(o)}}(o);return t&&(p.resolved=!0,p.value=d),d}(this);return t||(c=void 0),{confident:t,deopt:n,value:c}};var s=["String","Number","Math"],u=["random"]}).call(t,function(){return this}())},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(9)),i=s(n(2));t.getStatementParent=function(){var e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):void 0},t.getCompletionRecords=function(){var e=[],t=function(t){t&&(e=e.concat(t.getCompletionRecords()))};if(this.isIfStatement())t(this.get("consequent")),t(this.get("alternate"));else if(this.isDoExpression()||this.isFor()||this.isWhile())t(this.get("body"));else if(this.isProgram()||this.isBlockStatement())t(this.get("body").pop());else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(t(this.get("block")),t(this.get("handler")),t(this.get("finalizer"))):e.push(this)}return e},t.getSibling=function(e){return o.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getAllNextSiblings=function(){for(var e=this.key,t=this.getSibling(++e),n=[];t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function(){for(var e=this.key,t=this.getSibling(--e),n=[];t.node;)n.push(t),t=this.getSibling(--e);return n},t.get=function(e,t){!0===t&&(t=this.context);var n=e.split(".");return 1===n.length?this._getKey(e,t):this._getPattern(n,t)},t._getKey=function(e,t){var n=this,r=this.node,i=r[e];return Array.isArray(i)?i.map((function(a,s){return o.default.get({listKey:e,parentPath:n,parent:r,container:i,key:s}).setContext(t)})):o.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)},t._getPattern=function(e,t){var n=this,r=e,o=Array.isArray(r),a=0;for(r=o?r:(0,i.default)(r);;){var s;if(o){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var u=s;n="."===u?n.parentPath:Array.isArray(n)?n[u]:n.get(u,t)}return n},t.getBindingIdentifiers=function(e){return a.getBindingIdentifiers(this.node,e)},t.getOuterBindingIdentifiers=function(e){return a.getOuterBindingIdentifiers(this.node,e)},t.getBindingIdentifierPaths=function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,i=[].concat(n),o=(0,r.default)(null);i.length;){var s=i.shift();if(s&&s.node){var u=a.getBindingIdentifiers.keys[s.node.type];if(s.isIdentifier())if(e){var l=o[s.node.name]=o[s.node.name]||[];l.push(s)}else o[s.node.name]=s;else if(s.isExportDeclaration()){var c=s.get("declaration");c.isDeclaration()&&i.push(c)}else{if(t){if(s.isFunctionDeclaration()){i.push(s.get("id"));continue}if(s.isFunctionExpression())continue}if(u)for(var f=0;f=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var l=s;if(a.isAnyTypeAnnotation(l)||u(e,l,!0))return!0}return!1}return u(e,t,!0)},t.baseTypeStrictlyMatches=function(e){var t=this.getTypeAnnotation();if(e=e.getTypeAnnotation(),!a.isAnyTypeAnnotation(t)&&a.isFlowBaseAnnotation(t))return e.type===t.type},t.isGenericType=function(e){var t=this.getTypeAnnotation();return a.isGenericTypeAnnotation(t)&&a.isIdentifier(t.id,{name:e})};var o=s(n(376)),a=s(n(1));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e,t,n){if("string"===e)return a.isStringTypeAnnotation(t);if("number"===e)return a.isNumberTypeAnnotation(t);if("boolean"===e)return a.isBooleanTypeAnnotation(t);if("any"===e)return a.isAnyTypeAnnotation(t);if("mixed"===e)return a.isMixedTypeAnnotation(t);if("empty"===e)return a.isEmptyTypeAnnotation(t);if("void"===e)return a.isVoidTypeAnnotation(t);if(n)return!1;throw new Error("Unknown base type "+e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.default=function(e){if(this.isReferenced()){var t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t){var n=e.scope.getBinding(t),r=[];e.typeAnnotation=o.unionTypeAnnotation(r);var s=[],l=a(n,e,s),c=u(e,t);if(c){var f=a(n,c.ifStatement);l=l.filter((function(e){return f.indexOf(e)<0})),r.push(c.typeAnnotation)}if(l.length){var p=l=l.concat(s),d=Array.isArray(p),h=0;for(p=d?p:(0,i.default)(p);;){var m;if(d){if(h>=p.length)break;m=p[h++]}else{if((h=p.next()).done)break;m=h.value}var y=m;r.push(y.getTypeAnnotation())}}if(r.length)return o.createUnionTypeAnnotation(r)}(this,e.name):"undefined"===e.name?o.voidTypeAnnotation():"NaN"===e.name||"Infinity"===e.name?o.numberTypeAnnotation():void e.name}};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function a(e,t,n){var r=e.constantViolations.slice();return r.unshift(e.path),r.filter((function(e){var r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"function"===r&&n.push(e),"before"===r}))}function s(e,t){var n=t.node.operator,r=t.get("right").resolve(),i=t.get("left").resolve(),a=void 0;if(i.isIdentifier({name:e})?a=r:r.isIdentifier({name:e})&&(a=i),a)return"==="===n?a.getTypeAnnotation():o.BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(n)>=0?o.numberTypeAnnotation():void 0;if("==="===n){var s=void 0,u=void 0;if(i.isUnaryExpression({operator:"typeof"})?(s=i,u=r):r.isUnaryExpression({operator:"typeof"})&&(s=r,u=i),(u||s)&&(u=u.resolve()).isLiteral()&&"string"==typeof u.node.value&&s.get("argument").isIdentifier({name:e}))return o.createTypeAnnotationBasedOnTypeof(u.node.value)}}function u(e,t){var n=function(e){for(var t=void 0;t=e.parentPath;){if(t.isIfStatement()||t.isConditionalExpression())return"test"===e.key?void 0:t;e=t}}(e);if(n){var r=[n.get("test")],i=[];do{var a=r.shift().resolve();if(a.isLogicalExpression()&&(r.push(a.get("left")),r.push(a.get("right"))),a.isBinaryExpression()){var l=s(t,a);l&&i.push(l)}}while(r.length);return i.length?{typeAnnotation:o.createUnionTypeAnnotation(i),ifStatement:n}:u(n,t)}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=t.Identifier=void 0;var r=n(375);Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}}),t.VariableDeclarator=function(){return this.get("id").isIdentifier()?this.get("init").getTypeAnnotation():void 0},t.TypeCastExpression=o,t.NewExpression=function(e){if(this.get("callee").isIdentifier())return i.genericTypeAnnotation(e.callee)},t.TemplateLiteral=function(){return i.stringTypeAnnotation()},t.UnaryExpression=function(e){var t=e.operator;return"void"===t?i.voidTypeAnnotation():i.NUMBER_UNARY_OPERATORS.indexOf(t)>=0?i.numberTypeAnnotation():i.STRING_UNARY_OPERATORS.indexOf(t)>=0?i.stringTypeAnnotation():i.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0?i.booleanTypeAnnotation():void 0},t.BinaryExpression=function(e){var t=e.operator;if(i.NUMBER_BINARY_OPERATORS.indexOf(t)>=0)return i.numberTypeAnnotation();if(i.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0)return i.booleanTypeAnnotation();if("+"===t){var n=this.get("right"),r=this.get("left");return r.isBaseType("number")&&n.isBaseType("number")?i.numberTypeAnnotation():r.isBaseType("string")||n.isBaseType("string")?i.stringTypeAnnotation():i.unionTypeAnnotation([i.stringTypeAnnotation(),i.numberTypeAnnotation()])}},t.LogicalExpression=function(){return i.createUnionTypeAnnotation([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])},t.ConditionalExpression=function(){return i.createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])},t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.UpdateExpression=function(e){var t=e.operator;if("++"===t||"--"===t)return i.numberTypeAnnotation()},t.StringLiteral=function(){return i.stringTypeAnnotation()},t.NumericLiteral=function(){return i.numberTypeAnnotation()},t.BooleanLiteral=function(){return i.booleanTypeAnnotation()},t.NullLiteral=function(){return i.nullLiteralTypeAnnotation()},t.RegExpLiteral=function(){return i.genericTypeAnnotation(i.identifier("RegExp"))},t.ObjectExpression=function(){return i.genericTypeAnnotation(i.identifier("Object"))},t.ArrayExpression=a,t.RestElement=s,t.CallExpression=function(){return l(this.get("callee"))},t.TaggedTemplateExpression=function(){return l(this.get("tag"))};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function o(e){return e.typeAnnotation}function a(){return i.genericTypeAnnotation(i.identifier("Array"))}function s(){return a()}function u(){return i.genericTypeAnnotation(i.identifier("Function"))}function l(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?i.genericTypeAnnotation(i.identifier("AsyncIterator")):i.genericTypeAnnotation(i.identifier("Promise"));if(e.node.returnType)return e.node.returnType}}o.validParent=!0,s.validParent=!0,t.FunctionExpression=u,t.ArrowFunctionExpression=u,t.FunctionDeclaration=u,t.ClassExpression=u,t.ClassDeclaration=u},function(e,t,n){"use strict";t.__esModule=!0,t.is=void 0;var r=a(n(2));t.matchesPattern=function(e,t){if(!this.isMemberExpression())return!1;var n=e.split("."),r=[this.node],i=0;function a(e){var t=n[i];return"*"===t||e===t}for(;r.length;){var s=r.shift();if(t&&i===n.length)return!0;if(o.isIdentifier(s)){if(!a(s.name))return!1}else if(o.isLiteral(s)){if(!a(s.value))return!1}else{if(o.isMemberExpression(s)){if(s.computed&&!o.isLiteral(s.property))return!1;r.unshift(s.property),r.unshift(s.object);continue}if(!o.isThisExpression(s))return!1;if(!a("this"))return!1}if(++i>n.length)return!1}return i===n.length},t.has=s,t.isStatic=function(){return this.scope.isStatic(this.node)},t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t},t.isNodeType=function(e){return o.isType(this.type,e)},t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?o.isBlockStatement(e):!!this.isBlockStatement()&&o.isExpression(e))},t.isCompletionRecord=function(e){var t=this,n=!0;do{var r=t.container;if(t.isFunction()&&!n)return!!e;if(n=!1,Array.isArray(r)&&t.key!==r.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!o.isBlockStatement(this.container)&&(0,i.default)(o.STATEMENT_OR_BLOCK_KEYS,this.key)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier())return!1;var n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;var r=n.path,i=r.parentPath;return!(!i.isImportDeclaration()||i.node.source.value!==e||t&&(!r.isImportDefaultSpecifier()||"default"!==t)&&(!r.isImportNamespaceSpecifier()||"*"!==t)&&(!r.isImportSpecifier()||r.node.imported.name!==t))},t.getSource=function(){var e=this.node;return e.end?this.hub.file.code.slice(e.start,e.end):""},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},t._guessExecutionStatusRelativeTo=function(e){var t=e.scope.getFunctionParent(),n=this.scope.getFunctionParent();if(t.node!==n.node){var r=this._guessExecutionStatusRelativeToDifferentFunctions(t);if(r)return r;e=t.path}var i=e.getAncestry();if(i.indexOf(this)>=0)return"after";var a=this.getAncestry(),s=void 0,u=void 0,l=void 0;for(l=0;l=0){s=c;break}}if(!s)return"before";var f=i[u-1],p=a[l-1];return f&&p?f.listKey&&f.container===p.container?f.key>p.key?"before":"after":o.VISITOR_KEYS[f.type].indexOf(f.key)>o.VISITOR_KEYS[p.type].indexOf(p.key)?"before":"after":"before"},t._guessExecutionStatusRelativeToDifferentFunctions=function(e){var t=e.path;if(t.isFunctionDeclaration()){var n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";var i=n.referencePaths,o=i,a=Array.isArray(o),s=0;for(o=a?o:(0,r.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var l=u;if("callee"!==l.key||!l.parentPath.isCallExpression())return}var c=void 0,f=i,p=Array.isArray(f),d=0;for(f=p?f:(0,r.default)(f);;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if((d=f.next()).done)break;h=d.value}var m=h,y=!!m.find((function(e){return e.node===t.node}));if(!y){var v=this._guessExecutionStatusRelativeTo(m);if(c){if(c!==v)return}else c=v}}return c}},t.resolve=function(e,t){return this._resolve(e,t)||this},t._resolve=function(e,t){if(!(t&&t.indexOf(this)>=0))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){var n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){var i=n.path.resolve(e,t);if(this.find((function(e){return e.node===i.node})))return;return i}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){var a=this.toComputedKey();if(!o.isLiteral(a))return;var s=a.value,u=this.get("object").resolve(e,t);if(u.isObjectExpression()){var l=u.get("properties"),c=Array.isArray(l),f=0;for(l=c?l:(0,r.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;if(d.isProperty()){var h=d.get("key"),m=d.isnt("computed")&&h.isIdentifier({name:s});if(m=m||h.isLiteral({value:s}))return d.get("value").resolve(e,t)}}}else if(u.isArrayExpression()&&!isNaN(+s)){var y=u.get("elements")[s];if(y)return y.resolve(e,t)}}}};var i=a(n(111)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}t.is=s},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(2)),i=s(n(3)),o=n(1),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o);function s(e){return e&&e.__esModule?e:{default:e}}var u={ReferencedIdentifier:function(e,t){if(!e.isJSXIdentifier()||!o.react.isCompatTag(e.node.name)||e.parentPath.isJSXMemberExpression()){if("this"===e.node.name){var n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}var r=e.scope.getBinding(e.node.name);r&&r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},l=function(){function e(t,n){(0,i.default)(this,e),this.breakOnScopePaths=[],this.bindings={},this.scopes=[],this.scope=n,this.path=t,this.attachAfter=!1}return e.prototype.isCompatibleScope=function(e){for(var t in this.bindings){var n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0},e.prototype.getCompatibleScopes=function(){var e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)},e.prototype.getAttachmentPath=function(){var e=this._getAttachmentPath();if(e){var t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(var n in this.bindings)if(t.hasOwnBinding(n)){var i=this.bindings[n];if("param"!==i.kind&&this.getAttachmentParentForPath(i.path).key>e.key){this.attachAfter=!0,e=i.path;var o=i.constantViolations,a=Array.isArray(o),s=0;for(o=a?o:(0,r.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var l=u;this.getAttachmentParentForPath(l).key>e.key&&(e=l)}}}return e.parentPath.isExportDeclaration()&&(e=e.parentPath),e}},e.prototype._getAttachmentPath=function(){var e=this.scopes.pop();if(e){if(e.path.isFunction()){if(this.hasOwnParamBindings(e)){if(this.scope===e)return;return e.path.get("body").get("body")[0]}return this.getNextScopeAttachmentParent()}return e.path.isProgram()?this.getNextScopeAttachmentParent():void 0}},e.prototype.getNextScopeAttachmentParent=function(){var e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)},e.prototype.getAttachmentParentForPath=function(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()||e.isVariableDeclarator()&&null!==e.parentPath.node&&e.parentPath.node.declarations.length>1)return e}while(e=e.parentPath)},e.prototype.hasOwnParamBindings=function(e){for(var t in this.bindings)if(e.hasOwnBinding(t)){var n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1},e.prototype.run=function(){var e=this.path.node;if(!e._hoisted){e._hoisted=!0,this.path.traverse(u,this),this.getCompatibleScopes();var t=this.getAttachmentPath();if(t&&t.getFunctionParent()!==this.path.getFunctionParent()){var n=t.scope.generateUidIdentifier("ref"),r=a.variableDeclarator(n,this.path.node);t[this.attachAfter?"insertAfter":"insertBefore"]([t.isVariableDeclarator()?r:a.variableDeclaration("var",[r])]);var i=this.path.parentPath;i.isJSXElement()&&this.path.container===i.node.children&&(n=a.JSXExpressionContainer(n)),this.path.replaceWith(n)}}},e}();t.default=l,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(11)),i=l(n(2));t.insertBefore=function(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertBefore(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key)this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertBefore(e);if(!this.isStatementOrBlock())throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");this.node&&e.push(this.node),this._replaceWith(u.blockStatement(e))}return[this]},t._containerInsert=function(e,t){this.updateSiblingKeys(e,t.length);for(var n=[],r=0;r=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}var h=d;h.setScope(),h.debug((function(){return"Inserted."}));var m=l,y=Array.isArray(m),v=0;for(m=y?m:(0,i.default)(m);;){var g;if(y){if(v>=m.length)break;g=m[v++]}else{if((v=m.next()).done)break;g=v.value}g.maybeQueue(h,!0)}}return n},t._containerInsertBefore=function(e){return this._containerInsert(this.key,e)},t._containerInsertAfter=function(e){return this._containerInsert(this.key+1,e)},t._maybePopFromStatements=function(e){var t=e[e.length-1];(u.isIdentifier(t)||u.isExpressionStatement(t)&&u.isIdentifier(t.expression))&&!this.isCompletionRecord()&&e.pop()},t.insertAfter=function(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertAfter(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key){if(this.node){var t=this.scope.generateDeclaredUidIdentifier();e.unshift(u.expressionStatement(u.assignmentExpression("=",t,this.node))),e.push(u.expressionStatement(t))}this.replaceExpressionWithStatements(e)}else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertAfter(e);if(!this.isStatementOrBlock())throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");this.node&&e.unshift(this.node),this._replaceWith(u.blockStatement(e))}return[this]},t.updateSiblingKeys=function(e,t){if(this.parent)for(var n=o.path.get(this.parent),r=0;r=e&&(i.key+=t)}},t._verifyNodeList=function(e){if(!e)return[];e.constructor!==Array&&(e=[e]);for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:this.scope,t=new a.default(this,e);return t.run()};var o=n(88),a=l(n(378)),s=l(n(36)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n(2))&&r.__esModule?r:{default:r};t.remove=function(){this._assertUnremoved(),this.resync(),this._callRemovalHooks()||(this.shareCommentsWithSiblings(),this._remove()),this._markRemoved()},t._callRemovalHooks=function(){var e=o.hooks,t=Array.isArray(e),n=0;for(e=t?e:(0,i.default)(e);;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}if(r(this,this.parentPath))return!0}},t._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},t._markRemoved=function(){this.shouldSkip=!0,this.removed=!0,this.node=null},t._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")};var o=n(379)},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(2));t.replaceWithMultiple=function(e){this.resync(),e=this._verifyNodeList(e),u.inheritLeadingComments(e[0],this.node),u.inheritTrailingComments(e[e.length-1],this.node),this.node=this.container[this.key]=null,this.insertAfter(e),this.node?this.requeue():this.remove()},t.replaceWithSourceString=function(e){this.resync();try{e="("+e+")",e=(0,s.parse)(e)}catch(n){var t=n.loc;throw t&&(n.message+=" - make sure this is an expression.",n.message+="\n"+(0,i.default)(e,t.line,t.column+1)),n}return e=e.program.body[0].expression,o.default.removeProperties(e),this.replaceWith(e)},t.replaceWith=function(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");if(e instanceof a.default&&(e=e.node),!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node!==e){if(this.isProgram()&&!u.isProgram(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");if(this.isNodeType("Statement")&&u.isExpression(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=u.expressionStatement(e))),this.isNodeType("Expression")&&u.isStatement(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);var t=this.node;t&&(u.inheritsComments(e,t),u.removeComments(t)),this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue()}},t._replaceWith=function(e){if(!this.container)throw new ReferenceError("Container is falsy");this.inList?u.validate(this.parent,this.key,[e]):u.validate(this.parent,this.key,e),this.debug((function(){return"Replace with "+(e&&e.type)})),this.node=this.container[this.key]=e},t.replaceExpressionWithStatements=function(e){this.resync();var t=u.toSequenceExpression(e,this.scope);if(u.isSequenceExpression(t)){var n=t.expressions;n.length>=2&&this.parentPath.isExpressionStatement()&&this._maybePopFromStatements(n),1===n.length?this.replaceWith(n[0]):this.replaceWith(t)}else{if(!t){var i=u.functionExpression(null,[],u.blockStatement(e));i.shadow=!0,this.replaceWith(u.callExpression(i,[])),this.traverse(c);var o=this.get("callee").getCompletionRecords(),a=Array.isArray(o),s=0;for(o=a?o:(0,r.default)(o);;){var l;if(a){if(s>=o.length)break;l=o[s++]}else{if((s=o.next()).done)break;l=s.value}var f=l;if(f.isExpressionStatement()){var p=f.findParent((function(e){return e.isLoop()}));if(p){var d=p.getData("expressionReplacementReturnUid");if(d)d=u.identifier(d.name);else{var h=this.get("callee");d=h.scope.generateDeclaredUidIdentifier("ret"),h.get("body").pushContainer("body",u.returnStatement(d)),p.setData("expressionReplacementReturnUid",d)}f.get("expression").replaceWith(u.assignmentExpression("=",d,f.node.expression))}else f.replaceWith(u.returnStatement(f.node.expression))}}return this.node}this.replaceWith(t)}},t.replaceInline=function(e){return this.resync(),Array.isArray(e)?Array.isArray(this.container)?(e=this._verifyNodeList(e),this._containerInsertAfter(e),this.remove()):this.replaceWithMultiple(e):this.replaceWith(e)};var i=l(n(181)),o=l(n(7)),a=l(n(36)),s=n(89),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function l(e){return e&&e.__esModule?e:{default:e}}var c={Function:function(e){e.skip()},VariableDeclaration:function(e){if("var"===e.node.kind){var t=e.getBindingIdentifiers();for(var n in t)e.scope.push({id:t[n]});var i=[],o=e.node.declarations,a=Array.isArray(o),s=0;for(o=a?o:(0,r.default)(o);;){var l;if(a){if(s>=o.length)break;l=o[s++]}else{if((s=o.next()).done)break;l=s.value}var c=l;c.init&&i.push(u.expressionStatement(u.assignmentExpression("=",c.id,c.init)))}e.replaceWithMultiple(i)}}}},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(3)),i=(o(n(225)),function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)));function o(e){return e&&e.__esModule?e:{default:e}}var a={ReferencedIdentifier:function(e,t){var n=e.node;n.name===t.oldName&&(n.name=t.newName)},Scope:function(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||e.skip()},"AssignmentExpression|Declaration":function(e,t){var n=e.getOuterBindingIdentifiers();for(var r in n)r===t.oldName&&(n[r].name=t.newName)}},s=function(){function e(t,n,i){(0,r.default)(this,e),this.newName=i,this.oldName=n,this.binding=t}return e.prototype.maybeConvertFromExportDeclaration=function(e){var t=e.parentPath.isExportDeclaration()&&e.parentPath;if(t){var n=t.isExportDefaultDeclaration();n&&(e.isFunctionDeclaration()||e.isClassDeclaration())&&!e.node.id&&(e.node.id=e.scope.generateUidIdentifier("default"));var r=e.getOuterBindingIdentifiers(),o=[];for(var a in r){var s=a===this.oldName?this.newName:a,u=n?"default":a;o.push(i.exportSpecifier(i.identifier(s),i.identifier(u)))}if(o.length){var l=i.exportNamedDeclaration(null,o);e.isFunctionDeclaration()&&(l._blockHoist=3),t.insertAfter(l),t.replaceWith(e.node)}}},e.prototype.rename=function(e){var t=this.binding,n=this.oldName,r=this.newName,i=t.scope,o=t.path.find((function(e){return e.isDeclaration()||e.isFunctionExpression()}));o&&this.maybeConvertFromExportDeclaration(o),i.traverse(e||i.block,a,this),e||(i.removeOwnBinding(n),i.bindings[r]=t,this.binding.identifier.name=r),t.type},e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=f(n(11)),i=f(n(14)),o=f(n(2));t.explode=p,t.verify=d,t.merge=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],r={},i=0;i=s.length)break;p=s[f++]}else{if((f=s.next()).done)break;p=f.value}e[p]=r}}}d(e),delete e.__esModule,function(e){for(var t in e)if(!g(t)){var n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),y(e);var h=(0,i.default)(e),m=Array.isArray(h),x=0;for(h=m?h:(0,o.default)(h);;){var _;if(m){if(x>=h.length)break;_=h[x++]}else{if((x=h.next()).done)break;_=x.value}var w=_;if(!g(w)){var E=a[w];if(E){var S=e[w];for(var k in S)S[k]=v(E,S[k]);if(delete e[w],E.types){var A=E.types,C=Array.isArray(A),T=0;for(A=C?A:(0,o.default)(A);;){var D;if(C){if(T>=A.length)break;D=A[T++]}else{if((T=A.next()).done)break;D=T.value}var M=D;e[M]?b(e[M],S):e[M]=S}}else b(e,S)}}}for(var P in e)if(!g(P)){var O=e[P],L=u.FLIPPED_ALIAS_KEYS[P],N=u.DEPRECATED_KEYS[P];if(N&&(console.trace("Visitor defined for "+P+" but it has been renamed to "+N),L=[N]),L){delete e[P];var F=L,R=Array.isArray(F),I=0;for(F=R?F:(0,o.default)(F);;){var j;if(R){if(I>=F.length)break;j=F[I++]}else{if((I=F.next()).done)break;j=I.value}var B=j,q=e[B];q?b(q,O):e[B]=(0,l.default)(O)}}}for(var z in e)g(z)||y(e[z]);return e}function d(e){if(!e._verified){if("function"==typeof e)throw new Error(s.get("traverseVerifyRootFunction"));for(var t in e)if("enter"!==t&&"exit"!==t||h(t,e[t]),!g(t)){if(u.TYPES.indexOf(t)<0)throw new Error(s.get("traverseVerifyNodeType",t));var n=e[t];if("object"===(void 0===n?"undefined":(0,r.default)(n)))for(var i in n){if("enter"!==i&&"exit"!==i)throw new Error(s.get("traverseVerifyVisitorProperty",t,i));h(t+"."+i,n[i])}}e._verified=!0}}function h(e,t){var n=[].concat(t),i=Array.isArray(n),a=0;for(n=i?n:(0,o.default)(n);;){var s;if(i){if(a>=n.length)break;s=n[a++]}else{if((a=n.next()).done)break;s=a.value}var u=s;if("function"!=typeof u)throw new TypeError("Non-function found defined in "+e+" with type "+(void 0===u?"undefined":(0,r.default)(u)))}}function m(e,t,n){var r={},i=function(i){var o=e[i];if(!Array.isArray(o))return"continue";o=o.map((function(e){var r=e;return t&&(r=function(n){return e.call(t,n,t)}),n&&(r=n(t.key,i,r)),r})),r[i]=o};for(var o in e)i(o);return r}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function v(e,t){var n=function(n){if(e.checkPath(n))return t.apply(this,arguments)};return n.toString=function(){return t.toString()},n}function g(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"blacklist"===e||"noScope"===e||"skipKeys"===e}function b(e,t){for(var n in t)e[n]=[].concat(e[n]||[],t[n])}},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(359)),i=l(n(35)),o=l(n(2));t.toComputedKey=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.key||e.property;return e.computed||u.isIdentifier(t)&&(t=u.stringLiteral(t.name)),t},t.toSequenceExpression=function(e,t){if(e&&e.length){var n=[],r=c(e,t,n);if(r){var i=n,a=Array.isArray(i),s=0;for(i=a?i:(0,o.default)(i);;){var u;if(a){if(s>=i.length)break;u=i[s++]}else{if((s=i.next()).done)break;u=s.value}var l=u;t.push(l)}return r}}},t.toKeyAlias=f,t.toIdentifier=p,t.toBindingIdentifierName=function(e){return"eval"!==(e=p(e))&&"arguments"!==e||(e="_"+e),e},t.toStatement=function(e,t){if(u.isStatement(e))return e;var n=!1,r=void 0;if(u.isClass(e))n=!0,r="ClassDeclaration";else if(u.isFunction(e))n=!0,r="FunctionDeclaration";else if(u.isAssignmentExpression(e))return u.expressionStatement(e);if(n&&!e.id&&(r=!1),!r){if(t)return!1;throw new Error("cannot turn "+e.type+" to a statement")}return e.type=r,e},t.toExpression=function(e){if(u.isExpressionStatement(e)&&(e=e.expression),u.isExpression(e))return e;if(u.isClass(e)?e.type="ClassExpression":u.isFunction(e)&&(e.type="FunctionExpression"),!u.isExpression(e))throw new Error("cannot turn "+e.type+" to an expression");return e},t.toBlock=function(e,t){return u.isBlockStatement(e)?e:(u.isEmptyStatement(e)&&(e=[]),Array.isArray(e)||(u.isStatement(e)||(e=u.isFunction(t)?u.returnStatement(e):u.expressionStatement(e)),e=[e]),u.blockStatement(e))},t.valueToNode=function(e){if(void 0===e)return u.identifier("undefined");if(!0===e||!1===e)return u.booleanLiteral(e);if(null===e)return u.nullLiteral();if("string"==typeof e)return u.stringLiteral(e);if("number"==typeof e)return u.numericLiteral(e);if((0,s.default)(e)){var t=e.source,n=e.toString().match(/\/([a-z]+|)$/)[1];return u.regExpLiteral(t,n)}if(Array.isArray(e))return u.arrayExpression(e.map(u.valueToNode));if((0,a.default)(e)){var r=[];for(var i in e){var o;o=u.isValidIdentifier(i)?u.identifier(i):u.stringLiteral(i),r.push(u.objectProperty(o,u.valueToNode(e[i])))}return u.objectExpression(r)}throw new Error("don't know how to turn this value into a node")};var a=l(n(275)),s=l(n(276)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){var r=[],i=!0,a=e,s=Array.isArray(a),l=0;for(a=s?a:(0,o.default)(a);;){var f;if(s){if(l>=a.length)break;f=a[l++]}else{if((l=a.next()).done)break;f=l.value}var p=f;if(i=!1,u.isExpression(p))r.push(p);else if(u.isExpressionStatement(p))r.push(p.expression);else if(u.isVariableDeclaration(p)){if("var"!==p.kind)return;var d=p.declarations,h=Array.isArray(d),m=0;for(d=h?d:(0,o.default)(d);;){var y;if(h){if(m>=d.length)break;y=d[m++]}else{if((m=d.next()).done)break;y=m.value}var v=y,g=u.getBindingIdentifiers(v);for(var b in g)n.push({kind:p.kind,id:g[b]});v.init&&r.push(u.assignmentExpression("=",v.id,v.init))}i=!0}else if(u.isIfStatement(p)){var x=p.consequent?c([p.consequent],t,n):t.buildUndefinedNode(),_=p.alternate?c([p.alternate],t,n):t.buildUndefinedNode();if(!x||!_)return;r.push(u.conditionalExpression(p.test,x,_))}else if(u.isBlockStatement(p)){var w=c(p.body,t,n);if(!w)return;r.push(w)}else{if(!u.isEmptyStatement(p))return;i=!0}}return i&&r.push(t.buildUndefinedNode()),1===r.length?r[0]:u.sequenceExpression(r)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.key,n=void 0;return"method"===e.kind?f.increment()+"":(n=u.isIdentifier(t)?t.name:u.isStringLiteral(t)?(0,i.default)(t.value):(0,i.default)(u.removePropertiesDeep(u.cloneDeep(t))),e.computed&&(n="["+n+"]"),e.static&&(n="static:"+n),n)}function p(e){return e=(e=(e=(e+="").replace(/[^a-zA-Z0-9$_]/g,"-")).replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),u.isValidIdentifier(e)||(e="_"+e),e||"_"}f.uid=0,f.increment=function(){return f.uid>=r.default?f.uid=0:f.uid++}},function(e,t,n){"use strict";var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),o=n(135),a=n(26),s=(r=a)&&r.__esModule?r:{default:r};(0,s.default)("ArrayExpression",{fields:{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,s.default)("AssignmentExpression",{fields:{operator:{validate:(0,a.assertValueType)("string")},left:{validate:(0,a.assertNodeType)("LVal")},right:{validate:(0,a.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),(0,s.default)("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:a.assertOneOf.apply(void 0,o.BINARY_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),(0,s.default)("Directive",{visitor:["value"],fields:{value:{validate:(0,a.assertNodeType)("DirectiveLiteral")}}}),(0,s.default)("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),(0,s.default)("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Directive"))),default:[]},body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),(0,s.default)("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,s.default)("CallExpression",{visitor:["callee","arguments"],fields:{callee:{validate:(0,a.assertNodeType)("Expression")},arguments:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","SpreadElement")))}},aliases:["Expression"]}),(0,s.default)("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("BlockStatement")}},aliases:["Scopable"]}),(0,s.default)("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Expression")},alternate:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),(0,s.default)("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),(0,s.default)("DebuggerStatement",{aliases:["Statement"]}),(0,s.default)("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),(0,s.default)("EmptyStatement",{aliases:["Statement"]}),(0,s.default)("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),(0,s.default)("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,a.assertNodeType)("Program")}}}),(0,s.default)("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),(0,s.default)("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,a.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},update:{validate:(0,a.assertNodeType)("Expression"),optional:!0},body:{validate:(0,a.assertNodeType)("Statement")}}}),(0,s.default)("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:{id:{validate:(0,a.assertNodeType)("Identifier")},params:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("LVal")))},body:{validate:(0,a.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,a.assertValueType)("boolean")},async:{default:!1,validate:(0,a.assertValueType)("boolean")}},aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"]}),(0,s.default)("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},params:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("LVal")))},body:{validate:(0,a.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,a.assertValueType)("boolean")},async:{default:!1,validate:(0,a.assertValueType)("boolean")}}}),(0,s.default)("Identifier",{builder:["name"],visitor:["typeAnnotation"],aliases:["Expression","LVal"],fields:{name:{validate:function(e,t,n){i.isValidIdentifier(n)}},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator")))}}}),(0,s.default)("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,a.assertNodeType)("Statement")}}}),(0,s.default)("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("Statement")}}}),(0,s.default)("StringLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,s.default)("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,a.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,s.default)("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),(0,s.default)("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,s.default)("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Literal"],fields:{pattern:{validate:(0,a.assertValueType)("string")},flags:{validate:(0,a.assertValueType)("string"),default:""}}}),(0,s.default)("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:a.assertOneOf.apply(void 0,o.LOGICAL_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}}}),(0,s.default)("MemberExpression",{builder:["object","property","computed"],visitor:["object","property"],aliases:["Expression","LVal"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},property:{validate:function(e,t,n){var r=e.computed?"Expression":"Identifier";(0,a.assertNodeType)(r)(e,t,n)}},computed:{default:!1}}}),(0,s.default)("NewExpression",{visitor:["callee","arguments"],aliases:["Expression"],fields:{callee:{validate:(0,a.assertNodeType)("Expression")},arguments:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","SpreadElement")))}}}),(0,s.default)("Program",{visitor:["directives","body"],builder:["body","directives"],fields:{directives:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Directive"))),default:[]},body:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","FunctionParent"]}),(0,s.default)("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("ObjectMethod","ObjectProperty","SpreadProperty")))}}}),(0,s.default)("ObjectMethod",{builder:["kind","key","params","body","computed"],fields:{kind:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("method","get","set")),default:"method"},computed:{validate:(0,a.assertValueType)("boolean"),default:!1},key:{validate:function(e,t,n){var r=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];a.assertNodeType.apply(void 0,r)(e,t,n)}},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator")))},body:{validate:(0,a.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,a.assertValueType)("boolean")},async:{default:!1,validate:(0,a.assertValueType)("boolean")}},visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),(0,s.default)("ObjectProperty",{builder:["key","value","computed","shorthand","decorators"],fields:{computed:{validate:(0,a.assertValueType)("boolean"),default:!1},key:{validate:function(e,t,n){var r=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];a.assertNodeType.apply(void 0,r)(e,t,n)}},value:{validate:(0,a.assertNodeType)("Expression","Pattern","RestElement")},shorthand:{validate:(0,a.assertValueType)("boolean"),default:!1},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"]}),(0,s.default)("RestElement",{visitor:["argument","typeAnnotation"],aliases:["LVal"],fields:{argument:{validate:(0,a.assertNodeType)("LVal")},decorators:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Decorator")))}}}),(0,s.default)("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),(0,s.default)("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression")))}},aliases:["Expression"]}),(0,s.default)("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Statement")))}}}),(0,s.default)("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,a.assertNodeType)("Expression")},cases:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("SwitchCase")))}}}),(0,s.default)("ThisExpression",{aliases:["Expression"]}),(0,s.default)("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),(0,s.default)("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{body:{validate:(0,a.assertNodeType)("BlockStatement")},handler:{optional:!0,handler:(0,a.assertNodeType)("BlockStatement")},finalizer:{optional:!0,validate:(0,a.assertNodeType)("BlockStatement")}}}),(0,s.default)("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:a.assertOneOf.apply(void 0,o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),(0,s.default)("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:a.assertOneOf.apply(void 0,o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),(0,s.default)("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{kind:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("var","let","const"))},declarations:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("VariableDeclarator")))}}}),(0,s.default)("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:(0,a.assertNodeType)("LVal")},init:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),(0,s.default)("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("BlockStatement","Statement")}}}),(0,s.default)("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{object:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("BlockStatement","Statement")}}})},function(e,t,n){"use strict";var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r};(0,o.default)("AssignmentPattern",{visitor:["left","right"],aliases:["Pattern","LVal"],fields:{left:{validate:(0,i.assertNodeType)("Identifier")},right:{validate:(0,i.assertNodeType)("Expression")},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],aliases:["Pattern","LVal"],fields:{elements:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Identifier","Pattern","RestElement")))},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("LVal")))},body:{validate:(0,i.assertNodeType)("BlockStatement","Expression")},async:{validate:(0,i.assertValueType)("boolean"),default:!1}}}),(0,o.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("ClassMethod","ClassProperty")))}}}),(0,o.default)("ClassDeclaration",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Statement","Declaration","Pureish"],fields:{id:{validate:(0,i.assertNodeType)("Identifier")},body:{validate:(0,i.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,i.assertNodeType)("Expression")},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ClassExpression",{inherits:"ClassDeclaration",aliases:["Scopable","Class","Expression","Pureish"],fields:{id:{optional:!0,validate:(0,i.assertNodeType)("Identifier")},body:{validate:(0,i.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,i.assertNodeType)("Expression")},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,i.assertNodeType)("StringLiteral")}}}),(0,o.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,i.assertNodeType)("FunctionDeclaration","ClassDeclaration","Expression")}}}),(0,o.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,i.assertNodeType)("Declaration"),optional:!0},specifiers:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("ExportSpecifier")))},source:{validate:(0,i.assertNodeType)("StringLiteral"),optional:!0}}}),(0,o.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")},exported:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ForOfStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,i.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,i.assertNodeType)("Expression")},body:{validate:(0,i.assertNodeType)("Statement")}}}),(0,o.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{specifiers:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,i.assertNodeType)("StringLiteral")}}}),(0,o.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,i.assertNodeType)("Identifier")},imported:{validate:(0,i.assertNodeType)("Identifier")},importKind:{validate:(0,i.assertOneOf)(null,"type","typeof")}}}),(0,o.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,i.assertValueType)("string")},property:{validate:(0,i.assertValueType)("string")}}}),(0,o.default)("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:{kind:{validate:(0,i.chain)((0,i.assertValueType)("string"),(0,i.assertOneOf)("get","set","method","constructor")),default:"method"},computed:{default:!1,validate:(0,i.assertValueType)("boolean")},static:{default:!1,validate:(0,i.assertValueType)("boolean")},key:{validate:function(e,t,n){var r=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];i.assertNodeType.apply(void 0,r)(e,t,n)}},params:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("LVal")))},body:{validate:(0,i.assertNodeType)("BlockStatement")},generator:{default:!1,validate:(0,i.assertValueType)("boolean")},async:{default:!1,validate:(0,i.assertValueType)("boolean")}}}),(0,o.default)("ObjectPattern",{visitor:["properties","typeAnnotation"],aliases:["Pattern","LVal"],fields:{properties:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("RestProperty","Property")))},decorators:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Decorator")))}}}),(0,o.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("Super",{aliases:["Expression"]}),(0,o.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,i.assertNodeType)("Expression")},quasi:{validate:(0,i.assertNodeType)("TemplateLiteral")}}}),(0,o.default)("TemplateElement",{builder:["value","tail"],fields:{value:{},tail:{validate:(0,i.assertValueType)("boolean"),default:!1}}}),(0,o.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("TemplateElement")))},expressions:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("Expression")))}}}),(0,o.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,i.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,i.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r};(0,o.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("ForAwaitStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,i.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,i.assertNodeType)("Expression")},body:{validate:(0,i.assertNodeType)("Statement")}}}),(0,o.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{}}),(0,o.default)("Import",{aliases:["Expression"]}),(0,o.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:(0,i.assertNodeType)("BlockStatement")}}}),(0,o.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,o.default)("RestProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,i.assertNodeType)("LVal")}}}),(0,o.default)("SpreadProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r};(0,o.default)("AnyTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow"],fields:{}}),(0,o.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("BooleanLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),(0,o.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),(0,o.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed"],aliases:["Property"],fields:{computed:{validate:(0,i.assertValueType)("boolean"),default:!1}}}),(0,o.default)("DeclareClass",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareInterface",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareModule",{visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("ExistentialTypeParam",{aliases:["Flow"]}),(0,o.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow"],fields:{}}),(0,o.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{}}),(0,o.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),(0,o.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),(0,o.default)("InterfaceDeclaration",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),(0,o.default)("MixedTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"]}),(0,o.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"]}),(0,o.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}}),(0,o.default)("NumericLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),(0,o.default)("NumberTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("StringLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),(0,o.default)("StringTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("ThisTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),(0,o.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("OpaqueType",{visitor:["id","typeParameters","impltype","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),(0,o.default)("TypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{}}),(0,o.default)("TypeParameter",{visitor:["bound"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeParameterDeclaration",{visitor:["params"],aliases:["Flow"],fields:{}}),(0,o.default)("TypeParameterInstantiation",{visitor:["params"],aliases:["Flow"],fields:{}}),(0,o.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties"],aliases:["Flow"],fields:{}}),(0,o.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{}}),(0,o.default)("ObjectTypeIndexer",{visitor:["id","key","value"],aliases:["Flow","UserWhitespacable"],fields:{}}),(0,o.default)("ObjectTypeProperty",{visitor:["key","value"],aliases:["Flow","UserWhitespacable"],fields:{}}),(0,o.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{}}),(0,o.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{}}),(0,o.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),(0,o.default)("VoidTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}})},function(e,t,n){"use strict";n(26),n(386),n(387),n(389),n(391),n(392),n(388)},function(e,t,n){"use strict";var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r};(0,o.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,i.assertNodeType)("JSXElement","StringLiteral","JSXExpressionContainer")}}}),(0,o.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression")}}}),(0,o.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,i.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,i.assertNodeType)("JSXClosingElement")},children:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement")))}}}),(0,o.default)("JSXEmptyExpression",{aliases:["JSX","Expression"]}),(0,o.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("JSXIdentifier",{builder:["name"],aliases:["JSX","Expression"],fields:{name:{validate:(0,i.assertValueType)("string")}}}),(0,o.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX","Expression"],fields:{object:{validate:(0,i.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,o.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,i.assertNodeType)("JSXIdentifier")},name:{validate:(0,i.assertNodeType)("JSXIdentifier")}}}),(0,o.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,i.assertNodeType)("JSXIdentifier","JSXMemberExpression")},selfClosing:{default:!1,validate:(0,i.assertValueType)("boolean")},attributes:{validate:(0,i.chain)((0,i.assertValueType)("array"),(0,i.assertEach)((0,i.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))}}}),(0,o.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,i.assertNodeType)("Expression")}}}),(0,o.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,i.assertValueType)("string")}}})},function(e,t,n){"use strict";var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r};(0,o.default)("Noop",{visitor:[]}),(0,o.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}})},function(e,t,n){"use strict";t.__esModule=!0,t.createUnionTypeAnnotation=function(e){var t=i(e);return 1===t.length?t[0]:r.unionTypeAnnotation(t)},t.removeTypeDuplicates=i,t.createTypeAnnotationBasedOnTypeof=function(e){if("string"===e)return r.stringTypeAnnotation();if("number"===e)return r.numberTypeAnnotation();if("undefined"===e)return r.voidTypeAnnotation();if("boolean"===e)return r.booleanTypeAnnotation();if("function"===e)return r.genericTypeAnnotation(r.identifier("Function"));if("object"===e)return r.genericTypeAnnotation(r.identifier("Object"));if("symbol"===e)return r.genericTypeAnnotation(r.identifier("Symbol"));throw new Error("Invalid typeof value")};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function i(e){for(var t={},n={},o=[],a=[],s=0;s=0)){if(r.isAnyTypeAnnotation(u))return[u];if(r.isFlowBaseAnnotation(u))n[u.type]=u;else if(r.isUnionTypeAnnotation(u))o.indexOf(u.types)<0&&(e=e.concat(u.types),o.push(u.types));else if(r.isGenericTypeAnnotation(u)){var l=u.id.name;if(t[l]){var c=t[l];c.typeParameters?u.typeParameters&&(c.typeParameters.params=i(c.typeParameters.params.concat(u.typeParameters.params))):c=u.typeParameters}else t[l]=u}else a.push(u)}}for(var f in n)a.push(n[f]);for(var p in t)a.push(t[p]);return a}},function(e,t,n){"use strict";t.__esModule=!0,t.isReactComponent=void 0,t.isCompatTag=function(e){return!!e&&/^[a-z]|\-/.test(e)},t.buildChildren=function(e){for(var t=[],n=0;n=0)return!0}else if(i===e)return!0}return!1},t.isReferenced=function(e,t){switch(t.type){case"BindExpression":return t.object===e||t.callee===e;case"MemberExpression":case"JSXMemberExpression":return!(t.property!==e||!t.computed)||t.object===e;case"MetaProperty":return!1;case"ObjectProperty":if(t.key===e)return t.computed;case"VariableDeclarator":return t.id!==e;case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":var n=t.params,r=Array.isArray(n),i=0;for(n=r?n:(0,o.default)(n);;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}if(a===e)return!1}return t.id!==e;case"ExportSpecifier":return!t.source&&t.local===e;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"JSXAttribute":return t.name!==e;case"ClassProperty":return t.key===e?t.computed:t.value===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ClassDeclaration":case"ClassExpression":return t.id!==e;case"ClassMethod":case"ObjectMethod":return t.key===e&&t.computed;case"LabeledStatement":return!1;case"CatchClause":return t.param!==e;case"RestElement":return!1;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ObjectPattern":case"ArrayPattern":return!1}return!0},t.isValidIdentifier=function(e){return"string"==typeof e&&!s.default.keyword.isReservedWordES6(e,!0)&&"await"!==e&&s.default.keyword.isIdentifierNameES6(e)},t.isLet=function(e){return u.isVariableDeclaration(e)&&("var"!==e.kind||e[l.BLOCK_SCOPED_SYMBOL])},t.isBlockScoped=function(e){return u.isFunctionDeclaration(e)||u.isClassDeclaration(e)||u.isLet(e)},t.isVar=function(e){return u.isVariableDeclaration(e,{kind:"var"})&&!e[l.BLOCK_SCOPED_SYMBOL]},t.isSpecifierDefault=function(e){return u.isImportDefaultSpecifier(e)||u.isIdentifier(e.imported||e.exported,{name:"default"})},t.isScope=function(e,t){return(!u.isBlockStatement(e)||!u.isFunction(t,{body:e}))&&u.isScopable(e)},t.isImmutable=function(e){return!!u.isType(e.type,"Immutable")||!!u.isIdentifier(e)&&"undefined"===e.name},t.isNodesEquivalent=function e(t,n){if("object"!==(void 0===t?"undefined":(0,i.default)(t))||"object"!==(void 0===t?"undefined":(0,i.default)(t))||null==t||null==n)return t===n;if(t.type!==n.type)return!1;var a=(0,r.default)(u.NODE_FIELDS[t.type]||t.type),s=Array.isArray(a),l=0;for(a=s?a:(0,o.default)(a);;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var f=c;if((0,i.default)(t[f])!==(0,i.default)(n[f]))return!1;if(Array.isArray(t[f])){if(!Array.isArray(n[f]))return!1;if(t[f].length!==n[f].length)return!1;for(var p=0;p=0&&l>0){for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())=0?u:l;r.length&&(s=[o,a])}return s}e.exports=n,n.range=i},function(e,t){"use strict";t.byteLength=function(e){return 3*e.length/4-u(e)},t.toByteArray=function(e){var t,n,o,a,s,l=e.length;a=u(e),s=new i(3*l/4-a),n=a>0?l-4:l;var c=0;for(t=0;t>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===a?(o=r[e.charCodeAt(t)]<<2|r[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===a&&(o=r[e.charCodeAt(t)]<<10|r[e.charCodeAt(t+1)]<<4|r[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o="",a=[],s=16383,u=0,c=r-i;uc?c:u+s));return 1===i?(t=e[r-1],o+=n[t>>2],o+=n[t<<4&63],o+="=="):2===i&&(t=(e[r-2]<<8)+e[r-1],o+=n[t>>10],o+=n[t>>4&63],o+=n[t<<2&63],o+="="),a.push(o),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t,n){"use strict";var r=n(402),i=n(396);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),v(function(e){return e.split("\\\\").join(o).split("\\{").join(a).split("\\}").join(s).split("\\,").join(u).split("\\.").join(l)}(e),!0).map(f)):[]};var o="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function f(e){return e.split(o).join("\\").split(a).join("{").split(s).join("}").split(u).join(",").split(l).join(".")}function p(e){if(!e)return[""];var t=[],n=i("{","}",e);if(!n)return e.split(",");var r=n.pre,o=n.body,a=n.post,s=r.split(",");s[s.length-1]+="{"+o+"}";var u=p(a);return a.length&&(s[s.length-1]+=u.shift(),s.push.apply(s,u)),t.push.apply(t,s),t}function d(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function y(e,t){return e>=t}function v(e,t){var n=[],o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var a,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),f=u||l,g=o.body.indexOf(",")>=0;if(!f&&!g)return o.post.match(/,.*\}/)?v(e=o.pre+"{"+o.body+s+o.post):[e];if(f)a=o.body.split(/\.\./);else if(1===(a=p(o.body)).length&&1===(a=v(a[0],!1).map(d)).length)return(_=o.post.length?v(o.post,!1):[""]).map((function(e){return o.pre+a[0]+e}));var b,x=o.pre,_=o.post.length?v(o.post,!1):[""];if(f){var w=c(a[0]),E=c(a[1]),S=Math.max(a[0].length,a[1].length),k=3==a.length?Math.abs(c(a[2])):1,A=m;E0){var P=new Array(M+1).join("0");D=T<0?"-"+P+D.slice(1):P+D}}b.push(D)}}else b=r(a,(function(e){return v(e,!1)}));for(var O=0;O=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,function(){return this}())},function(e,t){"use strict";var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){"use strict";var r=n(460),i=n(289),o=n(622),a=n(464),s=n(623),u=Object.defineProperties,l="win32"===t.platform&&!/^xterm/i.test(t.env.TERM);function c(e){this.enabled=e&&void 0!==e.enabled?e.enabled:s}l&&(i.blue.open="");var f,p=(f={},Object.keys(i).forEach((function(e){i[e].closeRe=new RegExp(r(i[e].close),"g"),f[e]={get:function(){return h.call(this,this._styles.concat(e))}}})),f),d=u((function(){}),p);function h(e){var t=function e(){return m.apply(e,arguments)};return t._styles=e,t.enabled=this.enabled,t.__proto__=d,t}function m(){var e=arguments,t=e.length,n=0!==t&&String(arguments[0]);if(t>1)for(var r=1;rc;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(16),i=n(232),o=n(13)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(421);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(23).f,i=n(90),o=n(146),a=n(43),s=n(136),u=n(55),l=n(143),c=n(233),f=n(436),p=n(22),d=n(57).fastKey,h=n(58),m=p?"_s":"size",y=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&u(r,n,e[l],e)}));return o(c.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=h(this,t),r=y(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!y(h(this,t),e)}}),p&&r(c.prototype,"size",{get:function(){return h(this,t)[m]}}),c},def:function(e,t,n){var r,i,o=y(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:y,setStrong:function(e,t,n){l(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?c(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,c(1))}),n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){"use strict";var r=n(228),i=n(419);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){"use strict";var r=n(44),i=n(145),o=n(91);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){"use strict";var r=n(15).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(56),i=n(13)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){"use strict";var r=n(90),i=n(92),o=n(93),a={};n(29)(a,n(13)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(44),i=n(37);e.exports=function(e,t){for(var n,o=i(e),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){"use strict";var r=n(23),i=n(21),o=n(44);e.exports=n(22)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(37),o=n(236).f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(i(e))}},function(e,t,n){"use strict";var r=n(28),i=n(94),o=n(150)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(12),i=n(5),o=n(27);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){"use strict";var r=n(16),i=n(21),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(43)(Function.call,n(235).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(15),i=n(5),o=n(23),a=n(22),s=n(13)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(152),i=n(140);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(152),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){"use strict";var r=n(21),i=n(238);e.exports=n(5).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){"use strict";var r=n(418),i=n(233),o=n(56),a=n(37);e.exports=n(143)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(423),i=n(58),o="Map";e.exports=n(139)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(12);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";var r=n(12);r(r.S+r.F,"Object",{assign:n(234)})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Object",{create:n(90)})},function(e,t,n){"use strict";var r=n(94),i=n(44);n(434)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t,n){"use strict";var r=n(12);r(r.S,"Object",{setPrototypeOf:n(435).set})},function(e,t,n){"use strict";var r,i=n(137)(0),o=n(147),a=n(57),s=n(234),u=n(229),l=n(16),c=n(27),f=n(58),p="WeakMap",d=a.getWeak,h=Object.isExtensible,m=u.ufstore,y={},v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(e){if(l(e)){var t=d(e);return!0===t?m(f(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,p),e,t)}},b=e.exports=n(139)(p,v,g,u,!0,!0);c((function(){return 7!=(new b).set((Object.freeze||Object)(y),7).get(y)}))&&(s((r=u.getConstructor(v,p)).prototype,g),a.NEED=!0,i(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];o(t,e,(function(t,i){if(l(t)&&!h(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},function(e,t,n){"use strict";var r=n(229),i=n(58),o="WeakSet";n(139)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";n(148)("Map")},function(e,t,n){"use strict";n(149)("Map")},function(e,t,n){"use strict";var r=n(12);r(r.P+r.R,"Map",{toJSON:n(424)("Map")})},function(e,t,n){"use strict";n(155)("asyncIterator")},function(e,t,n){"use strict";n(155)("observable")},function(e,t,n){"use strict";n(148)("WeakMap")},function(e,t,n){"use strict";n(149)("WeakMap")},function(e,t,n){"use strict";n(148)("WeakSet")},function(e,t,n){"use strict";n(149)("WeakSet")},function(e,t,n){"use strict";var r;function i(e){function n(){if(n.enabled){var e=n,i=+new Date,o=i-(r||i);e.diff=o,e.prev=r,e.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s0)?c:-c])?t[0]++:t=u[c]=[1,0]:t&&(t[1]+=Number(n))}}));var l,c,f=function(e){var t=0,n=0,r=0;for(var i in e){var o=e[i],a=o[0],s=o[1];(a>n||a===n&&s>r)&&(n=a,r=s,t=Number(i))}return t}(u);return f?a>=o?(l="space",c=r(" ",f)):(l="tab",c=r("\t",f)):(l=null,c=""),{amount:f,type:l,indent:c}}},function(e,t){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},function(e,t){"use strict";!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()},function(e,t,n){"use strict";!function(){var t=n(240);function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function s(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(o=e.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!a(i))return!1;a=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return s(e)&&!o(e,t)},isIdentifierES6:function(e,t){return u(e)&&!a(e,t)}}}()},function(e,t,n){"use strict";e.exports=n(630)},function(e,t,n){"use strict";var r=n(180),i=new RegExp(r().source);e.exports=i.test.bind(i)},function(e,t){"use strict";t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*m}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(603);e.exports=Number.isFinite||function(e){return!("number"!=typeof e||r(e)||e===1/0||e===-1/0)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,n){var r;(function(e,i){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(a){var s="object"==o(t)&&t,u="object"==o(e)&&e&&e.exports==s&&e,l="object"==(void 0===i?"undefined":o(i))&&i;l.global!==l&&l.window!==l||(a=l);var c={},f=c.hasOwnProperty,p=function(e,t){var n;for(n in e)f.call(e,n)&&t(n,e[n])},d=c.toString,h={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},m=/["'\\\b\f\n\r\t]/,y=/[0-9]/,v=/[ !#-&\(-\[\]-~]/,g=function e(t,n){var r,i,o={escapeEverything:!1,escapeEtago:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",__indent__:"",__inline1__:!1,__inline2__:!1},a=n&&n.json;a&&(o.quotes="double",o.wrap=!0),r=o,n=(i=n)?(p(i,(function(e,t){r[e]=t})),r):r,"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");var s,u,l="double"==n.quotes?'"':"'",c=n.compact,f=n.indent,g=n.lowercaseHex,b="",x=n.__inline1__,_=n.__inline2__,w=c?"":"\n",E=!0,S="binary"==n.numbers,k="octal"==n.numbers,A="decimal"==n.numbers,C="hexadecimal"==n.numbers;if(a&&t&&("function"==typeof(u=t.toJSON)||"[object Function]"==d.call(u))&&(t=t.toJSON()),!function(e){return"string"==typeof e||"[object String]"==d.call(e)}(t)){if(function(e){return"[object Map]"==d.call(e)}(t))return 0==t.size?"new Map()":(c||(n.__inline1__=!0),"new Map("+e(Array.from(t),n)+")");if(function(e){return"[object Set]"==d.call(e)}(t))return 0==t.size?"new Set()":"new Set("+e(Array.from(t),n)+")";if(function(e){return"[object Array]"==d.call(e)}(t))return s=[],n.wrap=!0,x?(n.__inline1__=!1,n.__inline2__=!0):(b=n.__indent__,f+=b,n.__indent__=f),function(e,t){for(var n=e.length,r=-1;++r=55296&&D<=56319&&L>O+1&&(M=P.charCodeAt(O+1))>=56320&&M<=57343){var F=(1024*(D-55296)+M-56320+65536).toString(16);g||(F=F.toUpperCase()),s+="\\u{"+F+"}",O++}else{if(!n.escapeEverything){if(v.test(N)){s+=N;continue}if('"'==N){s+=l==N?'\\"':N;continue}if("'"==N){s+=l==N?"\\'":N;continue}}if("\0"!=N||a||y.test(P.charAt(O+1)))if(m.test(N))s+=h[N];else{F=N.charCodeAt(0).toString(16),g||(F=F.toUpperCase());var R=F.length>2||a,I="\\"+(R?"u":"x")+("0000"+F).slice(R?-4:-2);s+=I}else s+="\\0"}}return n.wrap&&(s=l+s+l),n.escapeEtago?s.replace(/<\/(script|style)/gi,"<\\/$1"):s};g.version="1.3.0","object"==o(n(49))&&n(49)?void 0===(r=function(){return g}.call(t,n,t,e))||(e.exports=r):s&&!s.nodeType?u?u.exports=g:s.jsesc=g:a.jsesc=g}(void 0)}).call(t,n(39)(e),function(){return this}())},function(e,t,n){"use strict";var r,i,o,a,s,u,l,c,f,p,d,h,m,y,v,g,b,x,_,w,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S="object"===E(t)?t:{};S.parse=(l={"'":"'",'"':'"',"\\":"\\","/":"/","\n":"",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=[" ","\t","\r","\n","\v","\f"," ","\ufeff"],f=function(e){return""===e?"EOF":"'"+e+"'"},p=function(e){var t=new SyntaxError;throw t.message=e+" at line "+i+" column "+o+" of the JSON5 data. Still to read: "+JSON.stringify(s.substring(r-1,r+19)),t.at=r,t.lineNumber=i,t.columnNumber=o,t},d=function(e){return e&&e!==a&&p("Expected "+f(e)+" instead of "+f(a)),a=s.charAt(r),r++,o++,("\n"===a||"\r"===a&&"\n"!==h())&&(i++,o=0),a},h=function(){return s.charAt(r)},m=function(){var e=a;for("_"!==a&&"$"!==a&&(a<"a"||a>"z")&&(a<"A"||a>"Z")&&p("Bad identifier as unquoted key");d()&&("_"===a||"$"===a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9");)e+=a;return e},y=function(){var e,t="",n="",r=10;if("-"!==a&&"+"!==a||(t=a,d(a)),"I"===a)return("number"!=typeof(e=x())||isNaN(e))&&p("Unexpected word for number"),"-"===t?-e:e;if("N"===a)return e=x(),isNaN(e)||p("expected word to be NaN"),e;switch("0"===a&&(n+=a,d(),"x"===a||"X"===a?(n+=a,d(),r=16):a>="0"&&a<="9"&&p("Octal literal")),r){case 10:for(;a>="0"&&a<="9";)n+=a,d();if("."===a)for(n+=".";d()&&a>="0"&&a<="9";)n+=a;if("e"===a||"E"===a)for(n+=a,d(),"-"!==a&&"+"!==a||(n+=a,d());a>="0"&&a<="9";)n+=a,d();break;case 16:for(;a>="0"&&a<="9"||a>="A"&&a<="F"||a>="a"&&a<="f";)n+=a,d()}if(e="-"===t?-n:+n,isFinite(e))return e;p("Bad number")},v=function(){var e,t,n,r,i="";if('"'===a||"'"===a)for(n=a;d();){if(a===n)return d(),i;if("\\"===a)if(d(),"u"===a){for(r=0,t=0;t<4&&(e=parseInt(d(),16),isFinite(e));t+=1)r=16*r+e;i+=String.fromCharCode(r)}else if("\r"===a)"\n"===h()&&d();else{if("string"!=typeof l[a])break;i+=l[a]}else{if("\n"===a)break;i+=a}}p("Bad string")},g=function(){"/"!==a&&p("Not a comment"),d("/"),"/"===a?function(){"/"!==a&&p("Not an inline comment");do{if(d(),"\n"===a||"\r"===a)return void d()}while(a)}():"*"===a?function(){"*"!==a&&p("Not a block comment");do{for(d();"*"===a;)if(d("*"),"/"===a)return void d("/")}while(a);p("Unterminated block comment")}():p("Unrecognized comment")},b=function(){for(;a;)if("/"===a)g();else{if(!(c.indexOf(a)>=0))return;d()}},x=function(){switch(a){case"t":return d("t"),d("r"),d("u"),d("e"),!0;case"f":return d("f"),d("a"),d("l"),d("s"),d("e"),!1;case"n":return d("n"),d("u"),d("l"),d("l"),null;case"I":return d("I"),d("n"),d("f"),d("i"),d("n"),d("i"),d("t"),d("y"),1/0;case"N":return d("N"),d("a"),d("N"),NaN}p("Unexpected "+f(a))},_=function(){var e=[];if("["===a)for(d("["),b();a;){if("]"===a)return d("]"),e;if(","===a?p("Missing array element"):e.push(u()),b(),","!==a)return d("]"),e;d(","),b()}p("Bad array")},w=function(){var e,t={};if("{"===a)for(d("{"),b();a;){if("}"===a)return d("}"),t;if(e='"'===a||"'"===a?v():m(),b(),d(":"),t[e]=u(),b(),","!==a)return d("}"),t;d(","),b()}p("Bad object")},u=function(){switch(b(),a){case"{":return w();case"[":return _();case'"':case"'":return v();case"-":case"+":case".":return y();default:return a>="0"&&a<="9"?y():x()}},function(e,t){var n;return s=String(e),r=0,i=1,o=1,a=" ",n=u(),b(),a&&p("Syntax error"),"function"==typeof t?function e(n,r){var i,o,a=n[r];if(a&&"object"===(void 0===a?"undefined":E(a)))for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(n,r,a)}({"":n},""):n}),S.stringify=function(e,t,n){if(t&&"function"!=typeof t&&!a(t))throw new Error("Replacer must be a function or an array");var r=function(e,n,r){var i=e[n];return i&&i.toJSON&&"function"==typeof i.toJSON&&(i=i.toJSON()),"function"==typeof t?t.call(e,n,i):t?r||a(e)||t.indexOf(n)>=0?i:void 0:i};function i(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e||"$"===e}function o(e){if("string"!=typeof e)return!1;if(!((t=e[0])>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t))return!1;for(var t,n=1,r=e.length;n10&&(e=e.substring(0,10));for(var r=n?"":"\n",i=0;i=0&&(s=c(" ",n,!0)));var f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,p={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function d(e){return f.lastIndex=0,f.test(e)?'"'+e.replace(f,(function(e){var t=p[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}var h={"":e};return void 0===e?r(h,"",!0):function e(t,n,i){var f,p,h=r(t,n,i);switch(h&&!function(e){return"[object Date]"===Object.prototype.toString.call(e)}(h)&&(h=h.valueOf()),void 0===h?"undefined":E(h)){case"boolean":return h.toString();case"number":return isNaN(h)||!isFinite(h)?"null":h.toString();case"string":return d(h.toString());case"object":if(null===h)return"null";if(a(h)){l(h),f="[",u.push(h);for(var m=0;mo?s>o?o+1:s:s>a?a+1:s;return o}},function(e,t,n){"use strict";var r=n(38)(n(17),"DataView");e.exports=r},function(e,t,n){"use strict";var r=n(536),i=n(537),o=n(538),a=n(539),s=n(540);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},function(e,t){"use strict";e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=t?e:t)),e}},function(e,t,n){"use strict";var r=n(18),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){"use strict";var r=n(489),i=n(526)(r);e.exports=i},function(e,t,n){"use strict";var r=n(161),i=n(543);e.exports=function e(t,n,o,a,s){var u=-1,l=t.length;for(o||(o=i),s||(s=[]);++u0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){"use strict";var r=n(248),i=n(32);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t){"use strict";e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t){"use strict";e.exports=function(e,t,n,r){for(var i=n-1,o=e.length;++i-1;)d!==e&&u.call(d,h,1),u.call(e,h,1);return e}},function(e,t){"use strict";var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},function(e,t,n){"use strict";var r=n(576),i=n(259),o=n(110),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){"use strict";e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t){"use strict";e.exports=function(e,t){for(var n=-1,r=Array(e);++n=200){var m=t?null:s(e);if(m)return u(m);p=!1,c=a,h=new r}else h=t?[]:d;e:for(;++lt||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&e=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){"use strict";var r=n(31),i=n(170);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){"use strict";var r=n(31),i=n(263);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){"use strict";var r=n(17)["__core-js_shared__"];e.exports=r},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a-1}},function(e,t,n){"use strict";var r=n(100);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){"use strict";var r=n(473),i=n(98),o=n(159);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){"use strict";var r=n(104);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){"use strict";var r=n(104);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){"use strict";var r=n(104);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){"use strict";var r=n(104);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){"use strict";var r=n(589);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){"use strict";var r=n(271)(Object.keys,Object);e.exports=r},function(e,t){"use strict";e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t){"use strict";var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){"use strict";var r=n(244),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";var r=n(98);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){"use strict";e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){"use strict";e.exports=function(e){return this.__data__.get(e)}},function(e,t){"use strict";e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){"use strict";var r=n(98),i=n(159),o=n(160);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t){"use strict";e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){"use strict";var r=n(485),i=n(253),o=n(48),a=n(114);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},function(e,t){"use strict";e.exports=function(){return!1}},function(e,t,n){"use strict";var r=n(598);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){"use strict";var r=n(18),i=n(62),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){"use strict";var r=n(31),i=n(47);e.exports=function(e){return r(e,i(e))}},function(e,t,n){"use strict";var r=n(514);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){"use strict";e.exports=p,p.Minimatch=d;var r={sep:"/"};try{r=n(19)}catch(e){}var i=p.GLOBSTAR=d.GLOBSTAR={},o=n(398),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",u="[^/]*?",l="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),c=/\/+/;function f(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function p(e,t,n){if("string"!=typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new d(t,n).match(e))}function d(e,t){if(!(this instanceof d))return new d(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function h(e,t){if(t||(t=this instanceof d?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}p.filter=function(e,t){return t=t||{},function(n,r,i){return p(n,e,t)}},p.defaults=function(e){if(!e||!Object.keys(e).length)return p;var t=p,n=function(n,r,i){return t.minimatch(n,r,f(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,f(e,r))},n},d.defaults=function(e){return e&&Object.keys(e).length?p.defaults(e).Minimatch:d},d.prototype.debug=function(){},d.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(c)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n}else this.empty=!0;else this.comment=!0}},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,o="",c=!!n.nocase,f=!1,p=[],d=[],h=!1,y=-1,v=-1,g="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function x(){if(r){switch(r){case"*":o+=u,c=!0;break;case"?":o+=s,c=!0;break;default:o+="\\"+r}b.debug("clearStateChar %j %j",r,o),r=!1}}for(var _,w=0,E=e.length;w-1;M--){var P=d[M],O=o.slice(0,P.reStart),L=o.slice(P.reStart,P.reEnd-8),N=o.slice(P.reEnd-8,P.reEnd),F=o.slice(P.reEnd);N+=F;var R=O.split("(").length-1,I=F;for(w=0;w=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,d),p!==s))}if("string"==typeof c?(l=r.nocase?f.toLowerCase()===c.toLowerCase():f===c,this.debug("string match",c,f,l)):(l=f.match(c),this.debug("pattern match",c,f,l)),!l)return!1}if(o===s&&a===u)return!0;if(o===s)return n;if(a===u)return o===s-1&&""===e[o];throw new Error("wtf?")}},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=1e3,i=60*r,o=60*i,a=24*o;function s(e,t,n){if(!(e0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*a;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o;case"minutes":case"minute":case"mins":case"min":case"m":return n*i;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(u=e,a,"day")||s(u,o,"hour")||s(u,i,"minute")||s(u,r,"second")||u+" ms":function(e){return e>=a?Math.round(e/a)+"d":e>=o?Math.round(e/o)+"h":e>=i?Math.round(e/i)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){(function(t){"use strict";function n(e){return"/"===e.charAt(0)}function r(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(t[2]||r)}e.exports="win32"===t.platform?r:n,e.exports.posix=n,e.exports.win32=r}).call(t,n(8))},function(e,t,n){"use strict";var r,i=(r=n(14))&&r.__esModule?r:{default:r},o=s(n(1)),a=s(n(116));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var u=Object.prototype.hasOwnProperty;t.hoist=function(e){o.assertFunction(e.node);var t={};function n(e,n){o.assertVariableDeclaration(e);var r=[];return e.declarations.forEach((function(e){t[e.id.name]=o.identifier(e.id.name),e.init?r.push(o.assignmentExpression("=",e.id,e.init)):n&&r.push(e.id)})),0===r.length?null:1===r.length?r[0]:o.sequenceExpression(r)}e.get("body").traverse({VariableDeclaration:{exit:function(e){var t=n(e.node,!1);null===t?e.remove():a.replaceWithOrRemove(e,o.expressionStatement(t)),e.skip()}},ForStatement:function(e){var t=e.node.init;o.isVariableDeclaration(t)&&a.replaceWithOrRemove(e.get("init"),n(t,!1))},ForXStatement:function(e){var t=e.get("left");t.isVariableDeclaration()&&a.replaceWithOrRemove(t,n(t.node,!0))},FunctionDeclaration:function(e){var n=e.node;t[n.id.name]=n.id;var r=o.expressionStatement(o.assignmentExpression("=",n.id,o.functionExpression(n.id,n.params,n.body,n.generator,n.expression)));e.parentPath.isBlockStatement()?(e.parentPath.unshiftContainer("body",r),e.remove()):a.replaceWithOrRemove(e,r),e.skip()},FunctionExpression:function(e){e.skip()}});var r={};e.get("params").forEach((function(e){var t=e.node;o.isIdentifier(t)&&(r[t.name]=t)}));var s=[];return(0,i.default)(t).forEach((function(e){u.call(r,e)||s.push(o.variableDeclarator(t[e],null))})),0===s.length?null:o.variableDeclaration("var",s)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return n(610)}},function(e,t,n){"use strict";var r,i=(r=n(64))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),a=n(117);function s(){i.default.ok(this instanceof s)}function u(e){s.call(this),o.assertLiteral(e),this.returnLoc=e}function l(e,t,n){s.call(this),o.assertLiteral(e),o.assertLiteral(t),n?o.assertIdentifier(n):n=null,this.breakLoc=e,this.continueLoc=t,this.label=n}function c(e){s.call(this),o.assertLiteral(e),this.breakLoc=e}function f(e,t,n){s.call(this),o.assertLiteral(e),t?i.default.ok(t instanceof p):t=null,n?i.default.ok(n instanceof d):n=null,i.default.ok(t||n),this.firstLoc=e,this.catchEntry=t,this.finallyEntry=n}function p(e,t){s.call(this),o.assertLiteral(e),o.assertIdentifier(t),this.firstLoc=e,this.paramId=t}function d(e,t){s.call(this),o.assertLiteral(e),o.assertLiteral(t),this.firstLoc=e,this.afterLoc=t}function h(e,t){s.call(this),o.assertLiteral(e),o.assertIdentifier(t),this.breakLoc=e,this.label=t}function m(e){i.default.ok(this instanceof m);var t=n(283).Emitter;i.default.ok(e instanceof t),this.emitter=e,this.entryStack=[new u(e.finalLoc)]}(0,a.inherits)(u,s),t.FunctionEntry=u,(0,a.inherits)(l,s),t.LoopEntry=l,(0,a.inherits)(c,s),t.SwitchEntry=c,(0,a.inherits)(f,s),t.TryEntry=f,(0,a.inherits)(p,s),t.CatchEntry=p,(0,a.inherits)(d,s),t.FinallyEntry=d,(0,a.inherits)(h,s),t.LabeledEntry=h;var y=m.prototype;t.LeapManager=m,y.withEntry=function(e,t){i.default.ok(e instanceof s),this.entryStack.push(e);try{t.call(this.emitter)}finally{var n=this.entryStack.pop();i.default.strictEqual(n,e)}},y._findLeapLocation=function(e,t){for(var n=this.entryStack.length-1;n>=0;--n){var r=this.entryStack[n],i=r[e];if(i)if(t){if(r.label&&r.label.name===t.name)return i}else if(!(r instanceof h))return i}return null},y.getBreakLoc=function(e){return this._findLeapLocation("breakLoc",e)},y.getContinueLoc=function(e){return this._findLeapLocation("continueLoc",e)}},function(e,t,n){"use strict";var r,i=(r=n(64))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),a=n(281).makeAccessor(),s=Object.prototype.hasOwnProperty;function u(e,t){function n(e){o.assertNode(e);var t=!1;function n(e){return t||(Array.isArray(e)?e.some(n):o.isNode(e)&&(i.default.strictEqual(t,!1),t=r(e))),t}var a=o.VISITOR_KEYS[e.type];if(a)for(var s=0;s0&&(m.node.body=v);var g=function(e){var t=e.node;return i.assertFunction(t),t.id||(t.id=e.scope.parent.generateUidIdentifier("callee")),t.generator&&i.isFunctionDeclaration(t)?function(e){var t=e.node;i.assertIdentifier(t.id);var n=e.findParent((function(e){return e.isProgram()||e.isBlockStatement()}));if(!n)return t.id;var o=n.node;r.default.ok(Array.isArray(o.body));var a=f(o);a.decl||(a.decl=i.variableDeclaration("var",[]),n.unshiftContainer("body",a.decl),a.declPath=n.get("body.0")),r.default.strictEqual(a.declPath.node,a.decl);var s=n.scope.generateUidIdentifier("marked"),l=i.callExpression(u.runtimeProperty("mark"),[t.id]),c=a.decl.declarations.push(i.variableDeclarator(s,l))-1,p=a.declPath.get("declarations."+c+".init");return r.default.strictEqual(p.node,l),p.addComment("leading","#__PURE__"),s}(e):t.id}(e);i.assertIdentifier(n.id);var b=i.identifier(n.id.name+"$"),x=(0,o.hoist)(e),_=function(e,t){var n={didRenameArguments:!1,argsId:t};return e.traverse(p,n),n.didRenameArguments}(e,c);if(_){x=x||i.variableDeclaration("var",[]);var w=i.identifier("arguments");w._shadowedFunctionLiteral=e,x.declarations.push(i.variableDeclarator(c,w))}var E=new a.Emitter(l);E.explode(e.get("body")),x&&x.declarations.length>0&&y.push(x);var S=[E.getContextFunction(b),n.generator?g:i.nullLiteral(),i.thisExpression()],k=E.getTryLocsList();k&&S.push(k);var A=i.callExpression(u.runtimeProperty(n.async?"async":"wrap"),S);y.push(i.returnStatement(A)),n.body=i.blockStatement(y);var C=m.node.directives;C&&(n.body.directives=C);var T=n.generator;T&&(n.generator=!1),n.async&&(n.async=!1),T&&i.isExpression(n)&&(u.replaceWithOrRemove(e,i.callExpression(u.runtimeProperty("mark"),[n])),e.addComment("leading","#__PURE__")),e.requeue()}}};var f=n(281).makeAccessor(),p={"FunctionExpression|FunctionDeclaration":function(e){e.skip()},Identifier:function(e,t){"arguments"===e.node.name&&u.isReference(e)&&(u.replaceWithOrRemove(e,t.argsId),t.didRenameArguments=!0)}},d={MetaProperty:function(e){var t=e.node;"function"===t.meta.name&&"sent"===t.property.name&&u.replaceWithOrRemove(e,i.memberExpression(this.context,i.identifier("_sent")))}},h={Function:function(e){e.skip()},AwaitExpression:function(e){var t=e.node.argument;u.replaceWithOrRemove(e,i.yieldExpression(i.callExpression(u.runtimeProperty("awrap"),[t]),!1))}}},function(e,t,n){"use strict";var r=n(282);t.REGULAR={d:r().addRange(48,57),D:r().addRange(0,47).addRange(58,65535),s:r(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:r().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535),w:r(95).addRange(48,57).addRange(65,90).addRange(97,122),W:r(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)},t.UNICODE={d:r().addRange(48,57),D:r().addRange(0,47).addRange(58,1114111),s:r(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:r().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:r(95).addRange(48,57).addRange(65,90).addRange(97,122),W:r(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)},t.UNICODE_IGNORE_CASE={d:r().addRange(48,57),D:r().addRange(0,47).addRange(58,1114111),s:r(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:r().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:r(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122),W:r(75,83,96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)}},function(e,t,n){"use strict";var r=n(613).generate,i=n(614).parse,o=n(282),a=n(631),s=n(611);function u(e){return g?v?s.UNICODE_IGNORE_CASE[e]:s.UNICODE[e]:s.REGULAR[e]}var l={}.hasOwnProperty,c=o().addRange(0,1114111),f=o().addRange(0,65535),p=c.clone().remove(10,13,8232,8233),d=p.clone().intersection(f);function h(e,t){for(var n in t)e[n]=t[n]}function m(e,t){if(t){var n=i(t,"");switch(n.type){case"characterClass":case"group":case"value":break;default:n=function(e,t){return{type:"group",behavior:"ignore",body:[e],raw:"(?:"+t+")"}}(n,t)}h(e,n)}}function y(e){return t=a,n=e,!!l.call(t,n)&&a[e];var t,n}o.prototype.iuAddRange=function(e,t){do{var n=y(e);n&&this.add(n)}while(++e<=t);return this};var v=!1,g=!1;function b(e){switch(e.type){case"dot":m(e,(g?p:d).toString());break;case"characterClass":e=function(e){var t=o();return e.body.forEach((function(e){switch(e.type){case"value":if(t.add(e.codePoint),v&&g){var n=y(e.codePoint);n&&t.add(n)}break;case"characterClassRange":var r=e.min.codePoint,i=e.max.codePoint;t.addRange(r,i),v&&g&&t.iuAddRange(r,i);break;case"characterClassEscape":t.add(u(e.value));break;default:throw Error("Unknown term type: "+e.type)}})),e.negative&&(t=(g?c:f).clone().remove(t)),m(e,t.toString()),e}(e);break;case"characterClassEscape":m(e,u(e.value).toString());break;case"alternative":case"disjunction":case"group":case"quantifier":e.body=e.body.map(b);break;case"value":var t=e.codePoint,n=o(t);if(v&&g){var r=y(t);r&&n.add(r)}m(e,n.toString());break;case"anchor":case"empty":case"group":case"reference":break;default:throw Error("Unknown term type: "+e.type)}return e}e.exports=function(e,t){var n=i(e,t);return v=!!t&&t.indexOf("i")>-1,g=!!t&&t.indexOf("u")>-1,h(n,b(n)),r(n)}},function(e,t,n){var r;(function(e,i){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};(function(){var a={function:!0,object:!0},s=a["undefined"==typeof window?"undefined":o(window)]&&window||this,u=a[o(t)]&&t,l=a[o(e)]&&e&&!e.nodeType&&e,c=u&&l&&"object"==(void 0===i?"undefined":o(i))&&i;!c||c.global!==c&&c.window!==c&&c.self!==c||(s=c);var f=String.fromCharCode,p=Math.floor;function d(){var e,t,n=16384,r=[],i=-1,o=arguments.length;if(!o)return"";for(var a="";++i1114111||p(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,r.push(e,t)),(i+1==o||r.length>n)&&(a+=f.apply(null,r),r.length=0)}return a}function h(e,t){if(-1==t.indexOf("|")){if(e==t)return;throw Error("Invalid node type: "+e)}if(!(t=h.hasOwnProperty(t)?h[t]:h[t]=RegExp("^(?:"+t+")$")).test(e))throw Error("Invalid node type: "+e)}function m(e){var t=e.type;if(m.hasOwnProperty(t)&&"function"==typeof m[t])return m[t](e);throw Error("Invalid node type: "+t)}function y(e){return h(e.type,"anchor|characterClassEscape|characterClassRange|dot|value"),m(e)}function v(e){return h(e.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|value"),m(e)}m.alternative=function(e){h(e.type,"alternative");var t=e.body,n=t?t.length:0;if(1==n)return v(t[0]);for(var r=-1,i="";++r=55296&&r<=56319&&(t=m().charCodeAt(0))>=56320&&t<=57343?o("symbol",1024*(r-55296)+t-56320+65536,++N-2,N):o("symbol",r,N-1,N)}function u(e,t,r,i){return null==i&&(r=N-1,i=N),n({type:"quantifier",min:e,max:t,greedy:!0,body:null,range:[r,i]})}function l(e,t,r,i){return n({type:"characterClass",body:e,negative:t,range:[r,i]})}function c(e,t,r,i){return e.codePoint>t.codePoint&&D("invalid range in character class",e.raw+"-"+t.raw,r,i),n({type:"characterClassRange",min:e,max:t,range:[r,i]})}function f(e){return"alternative"===e.type?e.body:[e]}function p(t){t=t||1;var n=e.substring(N,N+t);return N+=t||1,n}function d(e){h(e)||D("character",e)}function h(t){if(e.indexOf(t,N)===N)return p(t.length)}function m(){return e[N]}function y(t){return e.indexOf(t,N)===N}function v(t){return e[N+1]===t}function g(t){var n=e.substring(N).match(t);return n&&(n.range=[],n.range[0]=N,p(n[0].length),n.range[1]=N),n}function b(){var e=[],t=N;for(e.push(x());h("|");)e.push(x());return 1===e.length?e[0]:function(e,t,r){return n({type:"disjunction",body:e,range:[t,r]})}(e,t,N)}function x(){for(var e,t=[],r=N;e=_();)t.push(e);return 1===t.length?t[0]:function(e,t,r){return n({type:"alternative",body:e,range:[t,r]})}(t,r,N)}function _(){if(N>=e.length||y("|")||y(")"))return null;var t=h("^")?i("start",1):h("$")?i("end",1):h("\\b")?i("boundary",2):h("\\B")?i("not-boundary",2):w("(?=","lookahead","(?!","negativeLookahead");if(t)return t;var o,a=(o=g(/^[^^$\\.*+?(){[|]/))?s(o):h(".")?n({type:"dot",range:[N-1,N]}):h("\\")?((o=k())||D("atomEscape"),o):(o=function(){var e,t=N;return(e=g(/^\[\^/))?(e=A(),d("]"),l(e,!0,t,N)):h("[")?(e=A(),d("]"),l(e,!1,t,N)):null}())?o:w("(?:","ignore","(","normal");a||D("Expected atom");var c=function(){var e,t,n,r,i=N;return h("*")?t=u(0):h("+")?t=u(1):h("?")?t=u(0,1):(e=g(/^\{([0-9]+)\}/))?t=u(n=parseInt(e[1],10),n,e.range[0],e.range[1]):(e=g(/^\{([0-9]+),\}/))?t=u(n=parseInt(e[1],10),void 0,e.range[0],e.range[1]):(e=g(/^\{([0-9]+),([0-9]+)\}/))&&((n=parseInt(e[1],10))>(r=parseInt(e[2],10))&&D("numbers out of order in {} quantifier","",i,N),t=u(n,r,e.range[0],e.range[1])),t&&h("?")&&(t.greedy=!1,t.range[1]+=1),t}()||!1;return c?(c.body=f(a),r(c,a.range[0]),c):a}function w(e,t,r,i){var o=null,a=N;if(h(e))o=t;else{if(!h(r))return!1;o=i}var s=b();s||D("Expected disjunction"),d(")");var u=function(e,t,r,i){return n({type:"group",behavior:e,body:t,range:[r,i]})}(o,f(s),a,N);return"normal"==o&&O&&P++,u}function E(e){var t,r;if(L&&"unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&y("\\")&&v("u")){var i=N;N++;var o=S();"unicodeEscape"==o.kind&&(r=o.codePoint)>=56320&&r<=57343?(e.range[1]=o.range[1],e.codePoint=1024*(t-55296)+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",n(e)):N=i}return e}function S(){return k(!0)}function k(e){var t,i=N;if(t=function(){var e,t,i;if(e=g(/^(?!0)\d+/)){t=e[0];var o=parseInt(e[0],10);return o<=P?(i=e[0],n({type:"reference",matchIndex:parseInt(i,10),range:[N-1-i.length,N]})):(M.push(o),p(-e[0].length),(e=g(/^[0-7]{1,3}/))?a("octal",parseInt(e[0],8),e[0],1):r(e=s(g(/^[89]/)),e.range[0]-1))}return(e=g(/^[0-7]{1,3}/))?(t=e[0],/^0{1,3}$/.test(t)?a("null",0,"0",t.length+1):a("octal",parseInt(t,8),t,1)):!!(e=g(/^[dDsSwW]/))&&n({type:"characterClassEscape",value:e[0],range:[N-2,N]})}(),t)return t;if(e){if(h("b"))return a("singleEscape",8,"\\b");h("B")&&D("\\B not possible inside of CharacterClass","",i)}return function(){var e,t,n,r;if(e=g(/^[fnrtv]/)){var i=0;switch(e[0]){case"t":i=9;break;case"n":i=10;break;case"v":i=11;break;case"f":i=12;break;case"r":i=13}return a("singleEscape",i,"\\"+e[0])}return(e=g(/^c([a-zA-Z])/))?a("controlLetter",e[1].charCodeAt(0)%32,e[1],2):(e=g(/^x([0-9a-fA-F]{2})/))?a("hexadecimalEscape",parseInt(e[1],16),e[1],2):(e=g(/^u([0-9a-fA-F]{4})/))?E(a("unicodeEscape",parseInt(e[1],16),e[1],2)):L&&(e=g(/^u\{([0-9a-fA-F]+)\}/))?a("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):("‌","‍",n=m(),r=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),36===n||95===n||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||92===n||n>=128&&r.test(String.fromCharCode(n))?h("‌")?a("identifier",8204,"‌"):h("‍")?a("identifier",8205,"‍"):null:a("identifier",(t=p()).charCodeAt(0),t,1))}()}function A(){var e,t;return y("]")?[]:((t=T())||D("classAtom"),(e=y("]")?[t]:C(t))||D("nonEmptyClassRanges"),e)}function C(e){var t,n,r;if(y("-")&&!v("]")){d("-"),(r=T())||D("classAtom"),n=N;var i=A();return i||D("classRanges"),t=e.range[0],"empty"===i.type?[c(e,r,t,n)]:[c(e,r,t,n)].concat(i)}return(r=function(){var e=T();return e||D("classAtom"),y("]")?e:C(e)}())||D("nonEmptyClassRangesNoDash"),[e].concat(r)}function T(){return h("-")?s("-"):(e=g(/^[^\\\]-]/))?s(e[0]):h("\\")?((e=S())||D("classEscape"),E(e)):void 0;var e}function D(t,n,r,i){r=null==r?N:r,i=null==i?r:i;var o=Math.max(0,r-10),a=Math.min(i+10,e.length),s=" "+e.substring(o,a),u=" "+new Array(r-o+1).join(" ")+"^";throw SyntaxError(t+" at position "+r+(n?": "+n:"")+"\n"+s+"\n"+u)}var M=[],P=0,O=!0,L=-1!==(t||"").indexOf("u"),N=0;""===(e=String(e))&&(e="(?:)");var F=b();F.range[1]!==e.length&&D("Could not parse entire input - got stuck","",F.range[1]);for(var R=0;R>=1);return n}},function(e,t){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e0?r-u>1?n(u,r,i,o,a,s):s==t.LEAST_UPPER_BOUND?r1?n(e,u,i,o,a,s):s==t.LEAST_UPPER_BOUND?u:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,o){if(0===r.length)return-1;var a=n(-1,r.length,e,r,i,o||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===i(r[a],r[a-1],!0);)--a;return a}},function(e,t,n){"use strict";var r=n(63);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,o,a,s;n=e,i=(t=this._last).generatedLine,o=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,o>i||o==i&&s>=a||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t){"use strict";function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,i,o){if(i=0){var s=this._originalMappings[a];if(void 0===e.column)for(var u=s.originalLine;s&&s.originalLine===u;)o.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)o.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return o},t.SourceMapConsumer=u,l.prototype=Object.create(u.prototype),l.prototype.consumer=u,l.fromSourceMap=function(e){var t=Object.create(l.prototype),n=t._names=o.fromArray(e._names.toArray(),!0),i=t._sources=o.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),u=t.__generatedMappings=[],f=t.__originalMappings=[],p=0,d=a.length;p1&&(n.source=m+o[1],m+=o[1],n.originalLine=d+o[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=h+o[3],h=n.originalColumn,o.length>4&&(n.name=y+o[4],y+=o[4])),w.push(n),"number"==typeof n.originalLine&&_.push(n)}s(w,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,s(_,r.compareByOriginalPositions),this.__originalMappings=_},l.prototype._findMapping=function(e,t,n,r,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,o,a)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=r.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=r.join(this.sourceRoot,o)));var a=r.getArg(i,"name",null);return null!==a&&(a=this._names.at(a)),{source:o,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:r.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,f.prototype=Object.create(u.prototype),f.prototype.constructor=u,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(f&&p(f,u()),r.add(a.join(""))),t.sources.forEach((function(e){var o=t.sourceContentFor(e);null!=o&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,o))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var o=n?i.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,o,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n1&&(r+=" ("+o+")")),e(t.content,n({filename:r},function(e){return{presets:e.presets||["react","es2015"],plugins:e.plugins||["transform-class-properties","transform-object-rest-spread","transform-flow-strip-types"],sourceMaps:"inline"}}(t))).code}(e,t),i.appendChild(r)}function s(e,t){var n=e.getAttribute(t);return""===n?[]:n?n.split(",").map((function(e){return e.trim()})):null}},function(e,t){e.exports={builtin:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,System:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es6:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,System:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AutocompleteErrorEvent:!1,BarProp:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,blur:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CDATASection:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClientRect:!1,ClientRectList:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConvolverNode:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSAnimation:!1,CSSFontFaceRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransition:!1,CSSUnknownRule:!1,CSSViewportRule:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,Debug:!1,defaultStatus:!1,defaultstatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentTimeline:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMParser:!1,DOMSettableTokenList:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ElementTimeControl:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,FederatedCredential:!1,fetch:!1,File:!1,FileError:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAppletElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLKeygenElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBEnvironment:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,Image:!1,ImageBitmap:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,InputMethodContext:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!1,Location:!1,locationbar:!1,matchMedia:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyError:!1,MediaKeyEvent:!1,MediaKeyMessageEvent:!1,MediaKeys:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaSource:!1,MediaRecorder:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,navigator:!1,Navigator:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,opera:!1,Option:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,parent:!1,PasswordCredential:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,Plugin:!1,PluginArray:!1,PopStateEvent:!1,postMessage:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,RadioNodeList:!1,Range:!1,ReadableByteStream:!1,ReadableStream:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,resizeTo:!1,Response:!1,RTCIceCandidate:!1,RTCSessionDescription:!1,RTCPeerConnection:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedKeyframeList:!1,SharedWorker:!1,showModalDialog:!1,SiteBoundCredential:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,status:!1,statusbar:!1,stop:!1,Storage:!1,StorageEvent:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCSSRule:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGEvent:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGLocatable:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformable:!1,SVGTransformList:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGURIReference:!1,SVGUseElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGVKernElement:!1,SVGZoomAndPan:!1,SVGZoomEvent:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeEvent:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,VTTCue:!1,WaveShaperNode:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestProgressEvent:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1,XSLTProcessor:!1},worker:{applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,arguments:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,GLOBAL:!1,global:!1,Intl:!1,module:!1,process:!1,require:!1,root:!1,setImmediate:!1,setInterval:!1,setTimeout:!1},commonjs:{exports:!0,module:!1,require:!1,global:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,check:!1,describe:!1,expect:!1,gen:!1,it:!1,fdescribe:!1,fit:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,Java:!1,java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{Y:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ls:!1,ln:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,_:!1,Accounts:!1,AccountsClient:!1,AccountsServer:!1,AccountsCommon:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPServer:!1,DDPRateLimiter:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{caches:!1,Cache:!1,CacheStorage:!1,Client:!1,clients:!1,Clients:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,FetchEvent:!1,importScripts:!1,registration:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,skipWaiting:!1,WindowClient:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1},protractor:{$:!1,$$:!1,browser:!1,By:!1,by:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1}}},function(e,t){e.exports={75:8490,83:383,107:8490,115:383,181:924,197:8491,383:83,452:453,453:452,455:456,456:455,458:459,459:458,497:498,498:497,837:8126,914:976,917:1013,920:1012,921:8126,922:1008,924:181,928:982,929:1009,931:962,934:981,937:8486,962:931,976:914,977:1012,981:934,982:928,1008:922,1009:929,1012:[920,977],1013:917,7776:7835,7835:7776,8126:[837,921],8486:937,8490:75,8491:197,66560:66600,66561:66601,66562:66602,66563:66603,66564:66604,66565:66605,66566:66606,66567:66607,66568:66608,66569:66609,66570:66610,66571:66611,66572:66612,66573:66613,66574:66614,66575:66615,66576:66616,66577:66617,66578:66618,66579:66619,66580:66620,66581:66621,66582:66622,66583:66623,66584:66624,66585:66625,66586:66626,66587:66627,66588:66628,66589:66629,66590:66630,66591:66631,66592:66632,66593:66633,66594:66634,66595:66635,66596:66636,66597:66637,66598:66638,66599:66639,66600:66560,66601:66561,66602:66562,66603:66563,66604:66564,66605:66565,66606:66566,66607:66567,66608:66568,66609:66569,66610:66570,66611:66571,66612:66572,66613:66573,66614:66574,66615:66575,66616:66576,66617:66577,66618:66578,66619:66579,66620:66580,66621:66581,66622:66582,66623:66583,66624:66584,66625:66585,66626:66586,66627:66587,66628:66588,66629:66589,66630:66590,66631:66591,66632:66592,66633:66593,66634:66594,66635:66595,66636:66596,66637:66597,66638:66598,66639:66599,68736:68800,68737:68801,68738:68802,68739:68803,68740:68804,68741:68805,68742:68806,68743:68807,68744:68808,68745:68809,68746:68810,68747:68811,68748:68812,68749:68813,68750:68814,68751:68815,68752:68816,68753:68817,68754:68818,68755:68819,68756:68820,68757:68821,68758:68822,68759:68823,68760:68824,68761:68825,68762:68826,68763:68827,68764:68828,68765:68829,68766:68830,68767:68831,68768:68832,68769:68833,68770:68834,68771:68835,68772:68836,68773:68837,68774:68838,68775:68839,68776:68840,68777:68841,68778:68842,68779:68843,68780:68844,68781:68845,68782:68846,68783:68847,68784:68848,68785:68849,68786:68850,68800:68736,68801:68737,68802:68738,68803:68739,68804:68740,68805:68741,68806:68742,68807:68743,68808:68744,68809:68745,68810:68746,68811:68747,68812:68748,68813:68749,68814:68750,68815:68751,68816:68752,68817:68753,68818:68754,68819:68755,68820:68756,68821:68757,68822:68758,68823:68759,68824:68760,68825:68761,68826:68762,68827:68763,68828:68764,68829:68765,68830:68766,68831:68767,68832:68768,68833:68769,68834:68770,68835:68771,68836:68772,68837:68773,68838:68774,68839:68775,68840:68776,68841:68777,68842:68778,68843:68779,68844:68780,68845:68781,68846:68782,68847:68783,68848:68784,68849:68785,68850:68786,71840:71872,71841:71873,71842:71874,71843:71875,71844:71876,71845:71877,71846:71878,71847:71879,71848:71880,71849:71881,71850:71882,71851:71883,71852:71884,71853:71885,71854:71886,71855:71887,71856:71888,71857:71889,71858:71890,71859:71891,71860:71892,71861:71893,71862:71894,71863:71895,71864:71896,71865:71897,71866:71898,71867:71899,71868:71900,71869:71901,71870:71902,71871:71903,71872:71840,71873:71841,71874:71842,71875:71843,71876:71844,71877:71845,71878:71846,71879:71847,71880:71848,71881:71849,71882:71850,71883:71851,71884:71852,71885:71853,71886:71854,71887:71855,71888:71856,71889:71857,71890:71858,71891:71859,71892:71860,71893:71861,71894:71862,71895:71863,71896:71864,71897:71865,71898:71866,71899:71867,71900:71868,71901:71869,71902:71870,71903:71871}}]))},e.exports=t()},4631:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(e),l=u&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),y=/Android/.test(e),v=m||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),g=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),_=f&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(f=!1,u=!0);var w=g&&(l||f&&(null==_||_<12.11)),E=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,A=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return C(e).appendChild(t)}function D(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(F=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function q(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function H(e){for(;X.length<=e;)X.push(G(X)+" ");return X[e]}function G(e){return e[e.length-1]}function $(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Q(e))||t.test(e):Q(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var ue=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var u,l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c=a.length,f=[],p=0;p-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=pe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ge(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function we(e){be(e),xe(e)}function Ee(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),g&&e.ctrlKey&&1==t&&(t=3),t}var ke,Ae,Ce=function(){if(a&&s<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==ke){var t=D("span","​");T(e,D("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ke=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=ke?D("span","​"):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Ae)return Ae;var t=T(e,document.createTextNode("AخA")),n=k(t,0,1).getBoundingClientRect(),r=k(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Ae=r.right-n.right<3)}var Me,Pe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Oe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le="oncopy"in(Me=D("div"))||(Me.setAttribute("oncopy","return;"),"function"==typeof Me.oncopy),Ne=null;var Fe={},Re={};function Ie(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fe[e]=t}function je(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return je("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return je("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=je(t);var n=Fe[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(qe.hasOwnProperty(t.name)){var i=qe[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var qe={};function ze(e,t){I(t,qe.hasOwnProperty(e)?qe[e]:qe[e]={})}function Ve(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ue(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function We(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?et(n,Xe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,Xe(e,t.line).text.length)}function ut(e,t){for(var n=[],r=0;r=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.post},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var lt=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var i=[e.state.modeGen],o={};xt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],u=1,l=0;n.state=!0,xt(e,t.text,s.mode,n,(function(e,t){for(var n=u;le&&i.splice(u,1,e,i[u+1],r),u+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;ne.options.maxHighlightLength&&Ve(e.doc.mode,r.state),o=ft(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var u=Xe(o,s-1),l=u.stateAfter;if(l&&(!n||s+(l instanceof lt?l.lookAhead:0)<=o.modeFrontier))return s;var c=j(u.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Xe(r,o-1).stateAfter,s=a?ct.fromSaved(r,a,o):new ct(r,We(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof lt?new ct(e,Ve(e.mode,t.state),n,t.lookAhead):new ct(e,Ve(e.mode,t),n)},ct.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lt(t,this.maxLookAhead):t};var vt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function gt(e,t,n,r){var i,o,a=e.doc,s=a.mode,u=Xe(a,(t=st(a,t)).line),l=dt(e,t.line,n),c=new Ye(u.text,e.options.tabSize,l);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,f.pos),f.pos=t.length,u=null):u=bt(yt(n,f,r.state,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||c!=u){for(;l=t:o.to>t);(r||(r=[])).push(new Et(a,o.from,s?null:o.to))}}return r}(n,i,a),u=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||Ot(n,o.marker)<0)&&(n=o.marker)}return n}function It(e,t,n,r,i){var o=Xe(e,t),a=wt&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?tt(l.to,n)>=0:tt(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?tt(l.from,r)<=0:tt(l.from,r)<0)))return!0}}}function jt(e){for(var t;t=Nt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=Xe(e,t),r=jt(n);return n==r?t:Ke(r)}function qt(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!zt(e,r))return t;for(;n=Ft(r);)r=n.find(1,!0).line;return Ke(r)+1}function zt(e,t){var n=wt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Xt=function(e,t,n){this.text=e,Dt(this,t),this.height=n?n(this):1};function Ht(e){e.parent=null,Tt(e)}Xt.prototype.lineNo=function(){return Ke(this)},ge(Xt);var Gt={},$t={};function Kt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?$t:Gt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Zt(e,t){var n=M("span",null,null,u?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Qt,De(e.display.measure)&&(a=le(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,pt(e,o,t!=e.display.externalMeasured&&Ke(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function Jt(e){var t=D("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Qt(e,t,n,r,i,o,u){if(t){var l,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;il&&f.from<=l);p++);if(f.to>=c)return e(n,r,i,o,a,s,u);e(n,r.slice(0,f.to-l),i,o,null,s,u),o=null,r=r.slice(f.to-l),l=f.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,u,l,c,f,p,d=i.length,h=0,m=1,y="",v=0;;){if(v==h){u=l=c=s="",p=null,f=null,v=1/0;for(var g=[],b=void 0,x=0;xh||w.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&v>_.to&&(v=_.to,l=""),w.className&&(u+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&_.from==h&&(c+=" "+w.startStyle),w.endStyle&&_.to==v&&(b||(b=[])).push(w.endStyle,_.to),w.title&&((p||(p={})).title=w.title),w.attributes)for(var E in w.attributes)(p||(p={}))[E]=w.attributes[E];w.collapsed&&(!f||Ot(f.marker,w)<0)&&(f=_)}else _.from>h&&v>_.from&&(v=_.from)}if(b)for(var S=0;S=d)break;for(var A=Math.min(d,v);;){if(y){var C=h+y.length;if(!f){var T=C>A?y.slice(0,A-h):y;t.addToken(t,T,a?a+u:u,c,h+T.length==v?l:"",s,p)}if(C>=A){y=y.slice(A-h),h=A;break}h=C,c=""}y=i.slice(o,o=n[m++]),a=Kt(n[m++],t.cm.options)}}else for(var D=1;Dn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Mn(e,t,n,r){return Ln(e,On(e,t),n,r)}function Pn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((u.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Rn(t.map,n,r),u=o.node,l=o.start,c=o.end,f=o.collapse;if(3==u.nodeType){for(var p=0;p<4;p++){for(;l&&re(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;l>0&&(f=r="right"),i=e.options.lineWrapping&&(d=u.getClientRects()).length>1?d["right"==r?d.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=u.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Fn}for(var m=i.top-t.rect.top,y=i.bottom-t.rect.top,v=(m+y)/2,g=t.view.measure.heights,b=0;bt)&&(i=(o=u-s)-1,t>=u&&(a="right")),null!=i){if(r=e[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==u-s)for(;l=0&&(n=e[i]).left==n.right;i--);return n}function jn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(u=r.text.length,l="before"):u<=0&&(u=0,l="after"),!s)return a("before"==l?u-1:u,"before"==l);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=se(s,u,l),p=ae,d=c(u,f,"before"==l);return null!=p&&(d.other=c(u,p,"before"!=l)),d}function Gn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=Xe(e.doc,t.line),i=Ut(r)+En(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function $n(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Kn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return $n(r.first,0,null,-1,-1);var i=Ze(r,n),o=r.first+r.size-1;if(i>o)return $n(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,i);;){var s=er(e,a,i,t,n),u=Rt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var l=u.find(1);if(l.line==i)return l;a=Xe(r,i=l.line)}}function Zn(e,t,n,r){r-=Un(t);var i=t.text.length,o=oe((function(t){return Ln(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Ln(e,n,t).top>r}),o,i)}}function Jn(e,t,n,r){return n||(n=On(e,t)),Zn(e,t,n,Wn(e,t,Ln(e,n,r),"line").top)}function Qn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Ut(t);var o=On(e,t),a=Un(t),s=0,u=t.text.length,l=!0,c=le(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?nr:tr)(e,t,n,o,c,r,i);s=(l=1!=f.level)?f.from:f.to-1,u=l?f.to:f.from-1}var p,d,h=null,m=null,y=oe((function(t){var n=Ln(e,o,t);return n.top+=a,n.bottom+=a,!!Qn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,u),v=!1;if(m){var g=r-m.left=x.bottom?1:0}return $n(n,y=ie(t.text,y,1),d,v,r-p)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var u=i[s],l=1!=u.level;return Qn(Hn(e,et(n,l?u.to:u.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var l=1!=u.level,c=Hn(e,et(n,l?u.from:u.to,l?"after":"before"),"line",t,r);Qn(c,o,a,!0)&&c.top>a&&(u=i[s-1])}return u}function nr(e,t,n,r,i,o,a){var s=Zn(e,t,r,a),u=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,f=null,p=0;p=l||d.to<=u)){var h=Ln(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(u,d.from)).right,m=hm)&&(c=d,f=m)}}return c||(c=i[i.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Nn){Nn=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(D("br"));Nn.appendChild(document.createTextNode("x"))}T(e.measure,Nn);var n=Nn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),n=D("pre",[t],"CodeMirror-line-like");T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(zt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(u=Xe(e.doc,l.line).text).length==l.ch){var c=j(u,u.length,e.options.tabSize)-u.length;l=et(l.line,Math.max(0,Math.round((o-kn(e.display).left)/ir(e.display))-c))}return l}function cr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)wt&&Bt(e.doc,t)i.viewFrom?dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)dr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):dr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):dr(e)}else{var s=hr(e,t,t,-1),u=hr(e,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):dr(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var o=r.view[cr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==q(a,n)&&a.push(n)}}}function dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=cr(e,t),a=e.display.view;if(!wt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?p:r,(function(e,t,i,f){var y="ltr"==i,v=d(e,y?"left":"right"),g=d(t-1,y?"right":"left"),b=null==n&&0==e,x=null==r&&t==p,_=0==f,w=!m||f==m.length-1;if(g.top-v.top<=3){var E=(l?x:b)&&w,S=(l?b:x)&&_?s:(y?v:g).left,k=E?u:(y?g:v).right;c(S,v.top,k-S,v.bottom)}else{var A,C,T,D;y?(A=l&&b&&_?s:v.left,C=l?u:h(e,i,"before"),T=l?s:h(t,i,"after"),D=l&&x&&w?u:g.right):(A=l?h(e,i,"before"):s,C=!l&&b&&_?u:v.right,T=!l&&x&&w?s:g.left,D=l?h(t,i,"after"):u),c(A,v.top,C-A,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||kr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function wr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Sr(e))}function Er(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&kr(e))}),100)}function Sr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),_r(e))}function kr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Ar(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||p<-.005)&&($e(i.line,u),Cr(i.line),i.rest))for(var d=0;de.display.sizerWidth){var h=Math.ceil(l/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Cr(e){if(e.widgets)for(var t=0;t=a&&(o=Ze(t,Ut(Xe(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function Dr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Tn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Sn(n),u=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(l?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Cn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+p-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Mr(e,t){null!=t&&(Lr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Pr(e){Lr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Or(e,t,n){null==t&&null==n||Lr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Lr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Nr(e,Gn(e,t.from),Gn(e,t.to),t.margin))}function Nr(e,t,n,r){var i=Dr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Or(e,i.scrollLeft,i.scrollTop)}function Fr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ui(e,{top:t}),Rr(e,t,!0),n&&ui(e),ri(e,100))}function Rr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ir(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function jr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Sn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+An(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Br=function(e,t,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),fe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),fe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=g&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qr=function(){};function zr(e,t){t||(t=jr(e));var n=e.display.barWidth,r=e.display.barHeight;Vr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Ar(e),Vr(e,jr(e)),n=e.display.barWidth,r=e.display.barHeight}function Vr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}qr.prototype.update=function(){return{bottom:0,right:0}},qr.prototype.setScrollLeft=function(){},qr.prototype.setScrollTop=function(){},qr.prototype.clear=function(){};var Ur={native:Br,null:qr};function Wr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ur[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Ir(e,t):Fr(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var Yr=0;function Xr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yr},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Hr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function $r(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Kr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ar(t),e.barMeasure=jr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+An(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Cn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Zr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=D("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-En(e.display))+"px;\n height: "+(t.bottom-t.top+An(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Hn(e,t),u=n&&n!=t?Hn(e,n):s,l=Dr(e,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(Fr(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(Ir(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ve(t.mode,r.state):null,u=ft(e,o,r,!0);s&&(r.state=s),o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),p=0;!f&&pn)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Qr(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;pi(e)&&(dr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),wt&&(o=Bt(e.doc,o),a=qt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,cr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Ut(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=mr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=O();if(!t||!P(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&P(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return u&&g&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,f=0;f-1&&(d=!1),cn(e,p,c,n)),d&&(C(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(Qe(e.options,c)))),a=p.node.nextSibling}else{var h=vn(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=O()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Cn(e))r&&(t.visible=Tr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Sn(e.display)-Tn(e),n.top)}),t.visible=Tr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;Ar(e);var i=jr(e);yr(e),zr(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ui(e,t){var n=new oi(e,t);if(ai(e,n)){Ar(e),si(e,n);var r=jr(e);yr(e),zr(e,r),ci(e,r),n.finish()}}function li(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",un(e,"gutterChanged",e)}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+An(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&l||o&&c){if(o&&g&&u)e:for(var p=t.target,d=a.view;p!=s;p=p.parentNode)for(var h=0;h=0&&tt(e,r.to())<=0)return n}return-1};var Ei=function(e,t){this.anchor=e,this.head=t};function Si(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=q(t,i);for(var o=1;o0:u>=0){var l=ot(s.from(),a.from()),c=it(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ei(f?c:l,f?l:c))}}return new wi(t,n)}function ki(e,t){return new wi([new Ei(e,t||e)],0)}function Ai(e){return e.text?et(e.from.line+e.text.length-1,G(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ci(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Ai(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ai(t).ch-t.to.ch),et(n,r)}function Ti(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}un(e,"change",e,t)}function Ni(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),G(e.done)):e.done.length&&!G(e.done).ranges?G(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),G(e.done)):void 0}(i,i.lastOp==r)))a=G(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Ai(t):o.changes.push(ji(e,t));else{var u=G(i.done);for(u&&u.ranges||Vi(e.sel,i.done),o={changes:[ji(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function zi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,G(i.done),t))?i.done[i.done.length-1]=t:Vi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function Vi(e,t){var n=G(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ui(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Wi(e){if(!e)return null;for(var t,n=0;n-1&&(G(s)[f]=l[f],delete l[f])}}}return r}function Hi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new Ei(i,t)}return new Ei(n||t,t)}function Gi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Qi(e,new wi([Hi(e.sel.primary(),t,n,i)],0),r)}function $i(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(he(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),p=void 0;if((r<0?c:l)&&(f=ao(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=tt(f,n))&&(r<0?p<0:p>0))return io(e,f,t,r,i)}var d=u.find(r<0?-1:1);return(r<0?l:c)&&(d=ao(e,d,r,d.line==t.line?o:null)),d?io(e,d,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1;return io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0)||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line0)){var c=[u,1],f=tt(l.from,s.from),p=tt(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:l.to}),i.splice.apply(i,c),u+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)co(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else co(e,t)}}function co(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Ti(e,t);qi(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,At(e,t));var r=[];Ni(e,(function(e,n){n||-1!=q(r,e.history)||(go(e.history,t),r.push(e.history)),ho(e,t,null,At(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,u="undo"==t?o.undone:o.done,l=0;l=0;--d){var h=p(d);if(h)return h.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new wi($(e.sel.ranges,(function(e){return new Ei(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=He(e,t.from,t.to),n||(n=Ti(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=Ke(jt(Xe(r,o.line))),r.iter(u,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),Li(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,(function(e){var t=Wt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Xe(e,r).stateAfter;if(i&&(!(i instanceof lt)||r+i.lookAhead1||!(this.children[0]instanceof xo))){var s=[];this.collapse(s),this.children=[new xo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(It(e,t.line,t,n,o)||t.line!=n.line&&It(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt=!0}o.addToHistory&&qi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,l=e.cm;if(e.iter(u,n.line+1,(function(e){l&&o.collapsed&&!l.options.lineWrapping&&jt(e)==l.display.maxLine&&(s=!0),o.collapsed&&u!=t.line&&$e(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Et(o,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){zt(e,t)&&$e(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(_t=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++So,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)fr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)pr(l,c,"text");o.atomic&&no(l.doc),un(l,"markerAdded",l,o)}return o}ko.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Xr(e),ve(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Hr(e),this.parent&&this.parent.clear()}},ko.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;u--)lo(this,r[u]);s?Ji(this,s):this.cm&&Pr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),eo(t.doc,ki(n,n)),p)for(var d=0;d=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Pr(e)}))}function Jo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qo(e,t,n){var r=Jo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=le(n,t.doc.direction);if(o){var a,s=i<0?G(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=On(t,n);a=i<0?n.text.length-1:0;var c=Ln(t,l,a).top;a=oe((function(e){return Ln(t,l,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Jo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,u)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=g?Uo.macDefault:Uo.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Zo(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Xe(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ei(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Qr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(tt((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,l=ei(e,(function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Er(e)),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",c),de(i.scroller,"dragstart",f),de(i.scroller,"drop",l),o||(be(t),r.addNew||Gi(e.doc,n,null,null,r.extend),u&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,fe(i.wrapper.ownerDocument,"mouseup",l),fe(i.wrapper.ownerDocument,"mousemove",c),fe(i.scroller,"dragstart",f),fe(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&Er(e);var i=e.display,o=e.doc;be(t);var s,u,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(u=o.sel.contains(n),s=u>-1?c[u]:new Ei(n,n)):(s=o.sel.primary(),u=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ei(n,n)),n=lr(e,t,!0,!0),u=-1;else{var f=va(e,n,r.unit);s=r.extend?Hi(s,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=c.length,Qi(o,Si(e,c.concat([s]),u),{scroll:!1,origin:"*mouse"})):c.length>1&&c[u].empty()&&"char"==r.unit&&!r.extend?(Qi(o,Si(e,c.slice(0,u).concat(c.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ki(o,u,s,U):(u=0,Qi(o,new wi([s],0),U),l=o.sel);var p=n;function d(t){if(0!=tt(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=j(Xe(o,n.line).text,n.ch,a),f=j(Xe(o,t.line).text,t.ch,a),d=Math.min(c,f),h=Math.max(c,f),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var v=Xe(o,m).text,g=Y(v,d,a);d==h?i.push(new Ei(et(m,g),et(m,g))):v.length>g&&i.push(new Ei(et(m,g),et(m,Y(v,h,a))))}i.length||i.push(new Ei(n,n)),Qi(o,Si(e,l.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=s,_=va(e,t,r.unit),w=x.anchor;tt(_.anchor,w)>0?(b=_.head,w=ot(x.from(),_.anchor)):(b=_.anchor,w=it(x.to(),_.head));var E=l.ranges.slice(0);E[u]=function(e,t){var n=t.anchor,r=t.head,i=Xe(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=le(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=se(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);u=c==l-1||c==l?f<0:f>0}var p=o[l+(u?-1:0)],d=u==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new Ei(new et(n.line,h,m),r)}(e,new Ei(st(o,w),b)),Qi(o,Si(e,E,u),U)}}var h=i.wrapper.getBoundingClientRect(),m=0;function y(t){var n=++m,a=lr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=tt(a,p)){e.curOp.focus=O(),d(a);var s=Tr(i,o);(a.line>=s.to||a.lineh.bottom?20:0;u&&setTimeout(ei(e,(function(){m==n&&(i.scroller.scrollTop+=u,y(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(be(t),i.input.focus()),de(i.wrapper.ownerDocument,"mousemove",g),de(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=ei(e,(function(e){0!==e.buttons&&Se(e)?y(e):v(e)})),b=ei(e,v);e.state.selectingText=b,fe(i.wrapper.ownerDocument,"mousemove",g),fe(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):Ee(e)==n.scroller&&be(e):2==i?(r&&Gi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(E?t.display.input.onContextMenu(e):Er(t)))}}function va(e,t,n){if("char"==n)return new Ei(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ei(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new Ei(r.from,r.to)}function ga(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ve(e,n))return _e(t);o-=s.top-a.viewOffset;for(var u=0;u=i)return he(e,n,e,Ze(e.doc,o),e.display.gutterSpecs[u].className,t),_e(t)}}function ba(e,t){return ga(e,t,"gutterClick",!0)}function xa(e,t){wn(e.display,t)||function(e,t){return!!ve(e,"gutterContextMenu")&&ga(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||E||e.display.input.onContextMenu(t)}function _a(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qn(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var wa={toString:function(){return"CodeMirror.Init"}},Ea={},Sa={};function ka(e,t,n){if(!t!=!(n&&n!=wa)){var r=e.display.dragFunctions,i=t?fe:de;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Aa(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),ur(e),fr(e),qn(e),setTimeout((function(){return zr(e)}),100)}function Ca(e,t){var n=this;if(!(this instanceof Ca))return new Ca(e,t);this.options=t=t?I(t):{},I(Ea,t,!1);var r=t.value;"string"==typeof r?r=new Po(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ca.inputStyles[t.inputStyle](this),o=this.display=new yi(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,_a(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;fe(t.scroller,"mousedown",ei(e,ya)),fe(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=lr(e,t);if(n&&!ba(e,t)&&!wn(e.display,t)){be(t);var r=e.findWordAt(n);Gi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),fe(t.scroller,"contextmenu",(function(t){return xa(e,t)})),fe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||xa(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function u(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}fe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!o(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||u(r,r.prev)?new Ei(a,a):!r.prev.prev||u(r,r.prev.prev)?e.findWordAt(a):new Ei(et(a.line,0),st(e.doc,et(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),be(n)}i()})),fe(t.scroller,"touchcancel",i),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Fr(e,t.scroller.scrollTop),Ir(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return _i(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return _i(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||we(t)},over:function(t){me(e,t)||(function(e,t){var n=lr(e,t);if(n){var r=document.createDocumentFragment();gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}(e,t),we(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Oo<100))we(t);else if(!me(e,t)&&!wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Lo),leave:function(t){me(e,t)||No(e)}};var l=t.input.getField();fe(l,"keyup",(function(t){return fa.call(e,t)})),fe(l,"keydown",ei(e,ca)),fe(l,"keypress",ei(e,pa)),fe(l,"focus",(function(t){return Sr(e,t)})),fe(l,"blur",(function(t){return kr(e,t)}))}(this),Io(),Xr(this),this.curOp.forceUpdate=!0,Fi(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Sr(n)}),20):kr(this),Sa)Sa.hasOwnProperty(l)&&Sa[l](this,t[l],wa);pi(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?j(Xe(o,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)p+=a,f+="\t";if(pa,u=Pe(t),l=null;if(s&&r.ranges.length>1)if(Ma&&Ma.text.join("\n")==t){if(r.ranges.length%Ma.text.length==0){l=[];for(var c=0;c=0;p--){var d=r.ranges[p],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(Xe(o,m.line).text.length,m.ch+G(u).length)):s&&Ma&&Ma.lineWise&&Ma.text.join("\n")==u.join("\n")&&(h=m=et(h.line,0)));var y={from:h,to:m,text:l?l[p%l.length]:u,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};lo(e.doc,y),un(e,"inputRead",e,y)}t&&!s&&Na(e,t),Pr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function La(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Qr(t,(function(){return Oa(t,n,0,null,"paste")})),!0}function Na(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Da(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Da(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function Fa(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?function(e,t,n,r){var i=le(t,e.doc.direction);if(!i)return Qo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&p>=c.begin)){var d=f?"before":"after";return new et(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,u(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l0?c.end:u(c.begin,-1);return null==y||r>0&&y==t.text.length||!(m=h(r>0?0:i.length-1,r,l(y)))?null:m}(e.cm,s,t,n):Qo(s,t,n);if(null==a){if(o||((l=t.line+u)=e.first+e.size||(t=new et(l,t.ch,t.sticky),!(s=Xe(e,l)))))return!1;t=ea(i,e.cm,s,t.line,u)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,p)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||d||m||(m="s"),c&&c!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(c=m),n>0&&!l(!d))break}var y=oo(e,t,o,a,!0);return nt(o,y)&&(y.hitSide=!0),y}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(u-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Kn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var qa=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function za(e,t){var n=Pn(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),i=Dn(n,r,t.line),o=le(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Rn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Va(e,t){return t&&(e.bad=!0),e}function Ua(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Va(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&za(t,i)||{node:u[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=et(a.line-1,Xe(r.doc,a.line-1).length)),s.ch==Xe(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=cr(r,a.line))?(t=Ke(i.view[0].line),n=i.view[0].node):(t=Ke(i.view[e].line),n=i.view[e-1].node.nextSibling);var u,l,c=cr(r,s.line);if(c==i.view.length-1?(u=i.viewTo-1,l=i.lineDiv.lastChild):(u=Ke(i.view[c+1].line)-1,l=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),u=!1;function l(){a&&(o+=s,u&&(o+=s),a=u=!1)}function c(e){e&&(l(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(et(r,0),et(i+1,0),(y=+p,function(e){return e.id==y}));return void(d.length&&(o=d[0].find(0))&&c(He(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&l();for(var m=0;m1&&p.length>1;)if(G(f)==G(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,m=f[0],y=p[0],v=Math.min(m.length,y.length);da.ch&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=g.slice(0,g.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var _=et(t,d),w=et(u,p.length?G(p).length-h:0);return f.length>1||f[0]||tt(_,w)?(mo(r.doc,f,_,w,"+input"),!0):void 0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},qa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,(function(){return fr(e.cm)}))},qa.prototype.setUneditable=function(e){e.contentEditable="false"},qa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Oa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},qa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;var Ya=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Ya.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Pa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Fa(r);Pa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),fe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(i,"paste",(function(e){me(r,e)||La(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(i,"cut",o),fe(i,"copy",o),fe(e.scroller,"paste",(function(t){if(!wn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){wn(e,t)||be(t)})),fe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ya.prototype.createField=function(e){this.wrapper=Ia(),this.textarea=this.wrapper.firstChild},Ya.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ya.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=vr(e);if(e.options.moveInputWithCursor){var i=Hn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ya.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ya.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ya.prototype.getField=function(){return this.textarea},Ya.prototype.supportsTouch=function(){return!1},Ya.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||O()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ya.prototype.blur=function(){this.textarea.blur()},Ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ya.prototype.receivedFocus=function(){this.slowPoll()},Ya.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ya.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ya.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Oe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||g&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,l=Math.min(r.length,i.length);u1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ya.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ya.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=lr(n,e),l=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Qi)(n.doc,ki(o),V);var c,p=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(c=window.scrollY),r.input.focus(),u&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&y(),E){we(e);var m=function(){de(window,"mouseup",m),setTimeout(v,20)};fe(window,"mouseup",m)}else setTimeout(v,50)}function y(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&y();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ya.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ya.prototype.setUneditable=function(){},Ya.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=wa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=wa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Mi(e)}),!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Pi(e),qn(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=wa&&e.refresh()})),n("specialCharPlaceholder",Jt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){_a(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ko(t),i=n!=wa&&Ko(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Aa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=di(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return zr(e)}),!0),n("scrollbarStyle","native",(function(e){Wr(e),zr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=di(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(kr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,ka),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Pi,!0),n("addModeClass",!1,Pi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Pi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ca),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ko(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Da(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Pr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u0&&Ki(this.doc,r,new Ei(o,l[r].to()),V)}}})),getTokenAt:function(e,t){return gt(this,e,t)},getLineTokens:function(e,t){return gt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=pt(this,Xe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Xe(this.doc,e)}else r=e;return Wn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ut(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,u=this.display,l=(e=Hn(this,st(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),u.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var f=Math.max(u.wrapper.clientHeight,this.doc.height),p=Math.max(u.sizer.clientWidth,u.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(l=e.bottom),c+t.offsetWidth>p&&(c=p-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(c=u.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(u.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:l,right:c+t.offsetWidth,bottom:l+t.offsetHeight},null!=(s=Dr(o,a)).scrollTop&&Fr(o,s.scrollTop),null!=s.scrollLeft&&Ir(o,s.scrollLeft))},triggerOnKeyDown:ti(ca),triggerOnKeyPress:ti(pa),triggerOnKeyUp:fa,triggerOnMouseDown:ti(ya),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Na(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&ur(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Fi(this,e),qn(this),this.display.input.reset(),Or(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ge(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ca);var Xa="iter insert remove copy getEditor constructor".split(" ");for(var Ha in Po.prototype)Po.prototype.hasOwnProperty(Ha)&&q(Xa,Ha)<0&&(Ca.prototype[Ha]=function(e){return function(){return e.apply(this.doc,arguments)}}(Po.prototype[Ha]));return ge(Po),Ca.inputStyles={textarea:Ya,contenteditable:qa},Ca.defineMode=function(e){Ca.defaults.mode||"null"==e||(Ca.defaults.mode=e),Ie.apply(this,arguments)},Ca.defineMIME=function(e,t){Re[e]=t},Ca.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ca.defineMIME("text/plain","null"),Ca.defineExtension=function(e,t){Ca.prototype[e]=t},Ca.defineDocExtension=function(e,t){Po.prototype[e]=t},Ca.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=O();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(fe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ca((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=fe,e.wheelEventPixels=xi,e.Doc=Po,e.splitLines=Pe,e.countColumn=j,e.findColumn=Y,e.isWordChar=Q,e.Pass=z,e.signal=he,e.Line=Xt,e.changeEnd=Ai,e.scrollbarModel=Ur,e.Pos=et,e.cmpPos=tt,e.modes=Fe,e.mimeModes=Re,e.resolveMode=je,e.getMode=Be,e.modeExtensions=qe,e.extendMode=ze,e.copyState=Ve,e.startState=We,e.innerMode=Ue,e.commands=ta,e.keyMap=Uo,e.keyName=$o,e.isModifierKey=Ho,e.lookupKey=Xo,e.normalizeKeyMap=Yo,e.StringStream=Ye,e.SharedTextMarker=Co,e.TextMarker=ko,e.LineWidget=wo,e.e_preventDefault=be,e.e_stopPropagation=xe,e.e_stop=we,e.addClass=L,e.contains=P,e.rmClass=A,e.keyNames=Bo}(Ca),Ca.version="5.61.0",Ca}()},96876:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,u=n.json||s,l=!1!==n.trackScope,c=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function y(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=y,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=y),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Ke(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(f))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(d.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var i=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(i)){var o=p[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=y;break}r="*"==n}return m("comment","comment")}function g(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=y;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),u="([{}])".indexOf(s);if(u>=0&&u<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(f.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function _(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){if(!l)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var E={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function k(){return S.apply(null,arguments),!0}function A(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function C(e){var t=E.state;if(E.marked="def",l){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=T(e,t.context);if(null!=r)return void(t.context=r)}else if(!A(e,t.localVars))return void(t.localVars=new P(e,t.localVars));n.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new P(e,t.globalVars))}}function T(e,t){if(t){if(t.block){var n=T(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return A(e,t.vars)?t:new M(t.prev,new P(e,t.vars),!1)}return null}function D(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function P(e,t){this.name=e,this.next=t}var O=new P("this",new P("arguments",null));function L(){E.state.context=new M(E.state.context,E.state.localVars,!1),E.state.localVars=O}function N(){E.state.context=new M(E.state.context,E.state.localVars,!0),E.state.localVars=null}function F(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function R(e,t){var n=function(){var n=E.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new _(r,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function I(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function j(e){return function t(n){return n==e?k():";"==e||"}"==n||")"==n||"]"==n?S():k(t)}}function B(e,t){return"var"==e?k(R("vardef",t),_e,j(";"),I):"keyword a"==e?k(R("form"),U,B,I):"keyword b"==e?k(R("form"),B,I):"keyword d"==e?E.stream.match(/^\s*$/,!1)?k():k(R("stat"),Y,j(";"),I):"debugger"==e?k(j(";")):"{"==e?k(R("}"),N,se,I,F):";"==e?k():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==I&&E.state.cc.pop()(),k(R("form"),U,B,I,Ce)):"function"==e?k(Pe):"for"==e?k(R("form"),N,Te,B,F,I):"class"==e||c&&"interface"==t?(E.marked="keyword",k(R("form","class"==e?e:t),Re,I)):"variable"==e?c&&"declare"==t?(E.marked="keyword",k(B)):c&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?k(Ge):"type"==t?k(Le,j("operator"),pe,j(";")):k(R("form"),we,j("{"),R("}"),se,I,I)):c&&"namespace"==t?(E.marked="keyword",k(R("form"),z,B,I)):c&&"abstract"==t?(E.marked="keyword",k(B)):k(R("stat"),ee):"switch"==e?k(R("form"),U,j("{"),R("}","switch"),N,se,I,I,F):"case"==e?k(z,j(":")):"default"==e?k(j(":")):"catch"==e?k(R("form"),L,q,B,I,F):"export"==e?k(R("stat"),qe,I):"import"==e?k(R("stat"),Ve,I):"async"==e?k(B):"@"==t?k(z,B):S(R("stat"),z,j(";"),I)}function q(e){if("("==e)return k(Ne,j(")"))}function z(e,t){return W(e,t,!1)}function V(e,t){return W(e,t,!0)}function U(e){return"("!=e?S():k(R(")"),Y,j(")"),I)}function W(e,t,n){if(E.state.fatArrowAt==E.stream.start){var r=n?Z:K;if("("==e)return k(L,R(")"),oe(Ne,")"),I,j("=>"),r,F);if("variable"==e)return S(L,we,j("=>"),r,F)}var i=n?H:X;return x.hasOwnProperty(e)?k(i):"function"==e?k(Pe,i):"class"==e||c&&"interface"==t?(E.marked="keyword",k(R("form"),Fe,I)):"keyword c"==e||"async"==e?k(n?V:z):"("==e?k(R(")"),Y,j(")"),I,i):"operator"==e||"spread"==e?k(n?V:z):"["==e?k(R("]"),He,I,i):"{"==e?ae(ne,"}",null,i):"quasi"==e?S(G,i):"new"==e?k(function(e){return function(t){return"."==t?k(e?Q:J):"variable"==t&&c?k(ge,e?H:X):S(e?V:z)}}(n)):k()}function Y(e){return e.match(/[;\}\)\],]/)?S():S(z)}function X(e,t){return","==e?k(Y):H(e,t,!1)}function H(e,t,n){var r=0==n?X:H,i=0==n?z:V;return"=>"==e?k(L,n?Z:K,F):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?k(r):c&&"<"==t&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(R(">"),oe(pe,">"),I,r):"?"==t?k(z,j(":"),i):k(i):"quasi"==e?S(G,r):";"!=e?"("==e?ae(V,")","call",r):"."==e?k(te,r):"["==e?k(R("]"),Y,j("]"),I,r):c&&"as"==t?(E.marked="keyword",k(pe,r)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),k(i)):void 0:void 0}function G(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?k(G):k(z,$)}function $(e){if("}"==e)return E.marked="string-2",E.state.tokenize=g,k(G)}function K(e){return b(E.stream,E.state),S("{"==e?B:z)}function Z(e){return b(E.stream,E.state),S("{"==e?B:V)}function J(e,t){if("target"==t)return E.marked="keyword",k(X)}function Q(e,t){if("target"==t)return E.marked="keyword",k(H)}function ee(e){return":"==e?k(I,B):S(X,j(";"),I)}function te(e){if("variable"==e)return E.marked="property",k()}function ne(e,t){return"async"==e?(E.marked="property",k(ne)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?k(re):(c&&E.state.fatArrowAt==E.stream.start&&(n=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+n[0].length),k(ie))):"number"==e||"string"==e?(E.marked=s?"property":E.style+" property",k(ie)):"jsonld-keyword"==e?k(ie):c&&D(t)?(E.marked="keyword",k(ne)):"["==e?k(z,ue,j("]"),ie):"spread"==e?k(V,ie):"*"==t?(E.marked="keyword",k(ne)):":"==e?S(ie):void 0;var n}function re(e){return"variable"!=e?S(ie):(E.marked="property",k(Pe))}function ie(e){return":"==e?k(V):"("==e?S(Pe):void 0}function oe(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=E.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),k((function(n,r){return n==t||r==t?S():S(e)}),r)}return i==t||o==t?k():n&&n.indexOf(";")>-1?S(e):k(j(t))}return function(n,i){return n==t||i==t?k():S(e,r)}}function ae(e,t,n){for(var r=3;r"),pe):void 0}function de(e){if("=>"==e)return k(pe)}function he(e){return e.match(/[\}\)\]]/)?k():","==e||";"==e?k(he):S(me,he)}function me(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",k(me)):"?"==t||"number"==e||"string"==e?k(me):":"==e?k(pe):"["==e?k(j("variable"),le,j("]"),me):"("==e?S(Oe,me):e.match(/[;\}\)\],]/)?void 0:k()}function ye(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?k(ye):":"==e?k(pe):"spread"==e?k(ye):S(pe)}function ve(e,t){return"<"==t?k(R(">"),oe(pe,">"),I,ve):"|"==t||"."==e||"&"==t?k(pe):"["==e?k(pe,j("]"),ve):"extends"==t||"implements"==t?(E.marked="keyword",k(pe)):"?"==t?k(pe,j(":"),pe):void 0}function ge(e,t){if("<"==t)return k(R(">"),oe(pe,">"),I,ve)}function be(){return S(pe,xe)}function xe(e,t){if("="==t)return k(pe)}function _e(e,t){return"enum"==t?(E.marked="keyword",k(Ge)):S(we,ue,ke,Ae)}function we(e,t){return c&&D(t)?(E.marked="keyword",k(we)):"variable"==e?(C(t),k()):"spread"==e?k(we):"["==e?ae(Se,"]"):"{"==e?ae(Ee,"}"):void 0}function Ee(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?k(we):"}"==e?S():"["==e?k(z,j("]"),j(":"),Ee):k(j(":"),we,ke)):(C(t),k(ke))}function Se(){return S(we,ke)}function ke(e,t){if("="==t)return k(V)}function Ae(e){if(","==e)return k(_e)}function Ce(e,t){if("keyword b"==e&&"else"==t)return k(R("form","else"),B,I)}function Te(e,t){return"await"==t?k(Te):"("==e?k(R(")"),De,I):void 0}function De(e){return"var"==e?k(_e,Me):"variable"==e?k(Me):S(Me)}function Me(e,t){return")"==e?k():";"==e?k(Me):"in"==t||"of"==t?(E.marked="keyword",k(z,Me)):S(z,Me)}function Pe(e,t){return"*"==t?(E.marked="keyword",k(Pe)):"variable"==e?(C(t),k(Pe)):"("==e?k(L,R(")"),oe(Ne,")"),I,ce,B,F):c&&"<"==t?k(R(">"),oe(be,">"),I,Pe):void 0}function Oe(e,t){return"*"==t?(E.marked="keyword",k(Oe)):"variable"==e?(C(t),k(Oe)):"("==e?k(L,R(")"),oe(Ne,")"),I,ce,F):c&&"<"==t?k(R(">"),oe(be,">"),I,Oe):void 0}function Le(e,t){return"keyword"==e||"variable"==e?(E.marked="type",k(Le)):"<"==t?k(R(">"),oe(be,">"),I):void 0}function Ne(e,t){return"@"==t&&k(z,Ne),"spread"==e?k(Ne):c&&D(t)?(E.marked="keyword",k(Ne)):c&&"this"==e?k(ue,ke):S(we,ue,ke)}function Fe(e,t){return"variable"==e?Re(e,t):Ie(e,t)}function Re(e,t){if("variable"==e)return C(t),k(Ie)}function Ie(e,t){return"<"==t?k(R(">"),oe(be,">"),I,Ie):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(E.marked="keyword"),k(c?pe:z,Ie)):"{"==e?k(R("}"),je,I):void 0}function je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&D(t))&&E.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",k(je)):"variable"==e||"keyword"==E.style?(E.marked="property",k(Be,je)):"number"==e||"string"==e?k(Be,je):"["==e?k(z,ue,j("]"),Be,je):"*"==t?(E.marked="keyword",k(je)):c&&"("==e?S(Oe,je):";"==e||","==e?k(je):"}"==e?k():"@"==t?k(z,je):void 0}function Be(e,t){if("?"==t)return k(Be);if(":"==e)return k(pe,ke);if("="==t)return k(V);var n=E.state.lexical.prev;return S(n&&"interface"==n.info?Oe:Pe)}function qe(e,t){return"*"==t?(E.marked="keyword",k(Xe,j(";"))):"default"==t?(E.marked="keyword",k(z,j(";"))):"{"==e?k(oe(ze,"}"),Xe,j(";")):S(B)}function ze(e,t){return"as"==t?(E.marked="keyword",k(j("variable"))):"variable"==e?S(V,ze):void 0}function Ve(e){return"string"==e?k():"("==e?S(z):"."==e?S(X):S(Ue,We,Xe)}function Ue(e,t){return"{"==e?ae(Ue,"}"):("variable"==e&&C(t),"*"==t&&(E.marked="keyword"),k(Ye))}function We(e){if(","==e)return k(Ue,We)}function Ye(e,t){if("as"==t)return E.marked="keyword",k(Ue)}function Xe(e,t){if("from"==t)return E.marked="keyword",k(z)}function He(e){return"]"==e?k():S(oe(V,"]"))}function Ge(){return S(R("form"),we,j("{"),R("}"),oe($e,"}"),I,I)}function $e(){return S(we,ke)}function Ke(e,t,n){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return F.lex=!0,I.lex=!0,{startState:function(e){var t={tokenize:y,lastType:"sof",cc:[],lexical:new _((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new M(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():u?z:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&w(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==g)return e.Pass;if(t.tokenize!=y)return 0;var i,s=r&&r.charAt(0),u=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var c=t.cc[l];if(c==I)u=u.prev;else if(c!=Ce&&c!=F)break}for(;("stat"==u.type||"form"==u.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==X||i==H)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;a&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,p=s==f;return"vardef"==f?u.indented+("operator"==t.lastType||","==t.lastType?u.info.length+1:0):"form"==f&&"{"==s?u.indented:"form"==f?u.indented+o:"stat"==f?u.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=u.info||p||0==n.doubleIndentSwitch?u.align?u.column+(p?0:1):u.indented+(p?0:o):u.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:s,jsonMode:u,expressionAllowed:Ke,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=z&&t!=V||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4631))},71548:(e,t,n)=>{!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,i){var o=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,i&&i.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=o.indent(e,"","");return e.tagName=t,n}function u(n,i){return i.context.mode==o?function(n,i,l){if(2==l.depth)return n.match(/^.*?\*\//)?l.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){o.skipAttribute(l.state);var c=s(l.state),f=l.state.context;if(f&&n.match(/^[^>]*>\s*$/,!1)){for(;f.prev&&!f.startOfLine;)f=f.prev;f.startOfLine?c-=r.indentUnit:l.prev.state.lexical&&(c=l.prev.state.lexical.indented)}else 1==l.depth&&(c+=r.indentUnit);return i.context=new t(e.startState(a,c),a,0,i.context),null}if(1==l.depth){if("<"==n.peek())return o.skipAttribute(l.state),i.context=new t(e.startState(o,s(l.state)),o,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return l.depth=2,u(n,i)}var p,d=o.token(n,l.state),h=n.current();return/\btag\b/.test(d)?/>$/.test(h)?l.state.context?l.depth=0:i.context=i.context.prev:/^-1&&n.backUp(h.length-p),d}(n,i,i.context):function(n,r,i){if("<"==n.peek()&&a.expressionAllowed(n,i.state))return a.skipExpression(i.state),r.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,r.context),null;var s=a.token(n,i.state);if(!s&&null!=i.depth){var u=n.current();"{"==u?i.depth++:"}"==u&&0==--i.depth&&(r.context=r.context.prev)}return s}(n,i,i.context)}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:u,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(4631),n(29589),n(96876))},29589:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,u={},l=i.htmlMode?t:n;for(var c in l)u[c]=l[c];for(var c in i)u[c]=i[c];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=p,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function p(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=f,t.state=g,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=p;break}return"string"},r.isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function h(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=h(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=h(e-1),n.tokenize(t,n)}}return"meta"}}function m(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(u.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!u.contextGrabbers.hasOwnProperty(n)||!u.contextGrabbers[n].hasOwnProperty(t))return;y(e)}}function g(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?x:g}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",E):u.allowMissingTagName&&"endTag"==e?(a="tag bracket",E(e,0,n)):(a="error",b)}function x(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&u.implicitlyClosed.hasOwnProperty(n.context.tagName)&&y(n),n.context&&n.context.tagName==r||!1===u.matchClosing?(a="tag",_):(a="tag error",w)}return u.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,0,n)):(a="error",w)}function _(e,t,n){return"endTag"!=e?(a="error",_):(y(n),g)}function w(e,t,n){return a="error",_(e,0,n)}function E(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||u.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new m(n,r,i==n.indented)),g}return a="error",E}function S(e,t,n){return"equals"==e?k:(u.allowMissing||(a="error"),E(e,0,n))}function k(e,t,n){return"string"==e?A:"word"==e&&u.allowUnquoted?(a="string",E):(a="error",E(e,0,n))}function A(e,t,n){return"string"==e?A:E(e,0,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:g,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=p&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==u.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=E)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(4631))},35563:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),prop_types__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(45697),prop_types__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(73935),babel_standalone__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(90181),babel_standalone__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(babel_standalone__WEBPACK_IMPORTED_MODULE_2__),_createClass=function(){function e(e,t){for(var n=0;n {\n var list = [];\n var console = { log(...x) {\n list.push({val: x, multipleArgs: x.length !== 1})\n }};\n "+t+"\n return list;\n });\n ",{presets:["es2015","react","stage-1"]}).code},this._setTimeout=function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(45697),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(73935),react_dom_server__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(97762),react_dom_server__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react_dom_server__WEBPACK_IMPORTED_MODULE_2__),babel_standalone__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(90181),babel_standalone__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(babel_standalone__WEBPACK_IMPORTED_MODULE_3__),_extends=Object.assign||function(e){for(var t=1;t {\n class Comp extends React.Component {\n\n getChildContext() {\n return "+JSON.stringify(r)+";\n }\n\n render() {\n return (\n "+n+"\n );\n }\n }\n\n Comp.childContextTypes = "+(e=r,"{ "+Object.keys(e).map((function(e){return e+": PropTypes.any.isRequired"})).join(", ")+" };\n\n return Comp;\n });\n "),{presets:["es2015","react","stage-1"]}).code:(0,babel_standalone__WEBPACK_IMPORTED_MODULE_3__.transform)("\n (("+Object.keys(a).join(",")+", mountNode) => {\n "+n+"\n });\n ",{presets:["es2015","react","stage-1"]}).code},_this._executeCode=function(){var mountNode=_this.mount,_this$props2=_this.props,scope=_this$props2.scope,noRender=_this$props2.noRender,previewComponent=_this$props2.previewComponent,scopeWithProps=_extends({},scope,{PropTypes:prop_types__WEBPACK_IMPORTED_MODULE_4___default()}),tempScope=[];try{Object.keys(scopeWithProps).forEach((function(e){return tempScope.push(scopeWithProps[e])})),tempScope.push(mountNode);var compiledCode=_this._compileCode();if(noRender){var Comp=react__WEBPACK_IMPORTED_MODULE_0__.createElement(eval(compiledCode).apply(void 0,tempScope));react_dom_server__WEBPACK_IMPORTED_MODULE_2___default().renderToString(react__WEBPACK_IMPORTED_MODULE_0__.createElement(previewComponent,{},Comp)),(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.render)(react__WEBPACK_IMPORTED_MODULE_0__.createElement(previewComponent,{},Comp),mountNode)}else eval(compiledCode).apply(void 0,tempScope);clearTimeout(_this.timeoutID),_this.setState({error:null})}catch(e){var error=e.toString();clearTimeout(_this.timeoutID),_this.timeoutID=setTimeout((function(){_this.setState({error})}),500)}},_this.componentDidMount=function(){_this._executeCode()},_this.componentDidUpdate=function(e){_this.props.code!==e.code&&_this._executeCode()},_ret=_temp,_possibleConstructorReturn(_this,_ret)}return _inherits(Preview,_Component),_createClass(Preview,[{key:"render",value:function(){var e=this,t=this.state.error;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,null!==t?react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"playgroundError"},t):null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:function(t){e.mount=t},className:"previewArea"}))}}]),Preview}(react__WEBPACK_IMPORTED_MODULE_0__.Component);Preview.defaultProps={previewComponent:"div"},Preview.propTypes={code:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string.isRequired,scope:prop_types__WEBPACK_IMPORTED_MODULE_4___default().object.isRequired,previewComponent:prop_types__WEBPACK_IMPORTED_MODULE_4___default().node,noRender:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,context:prop_types__WEBPACK_IMPORTED_MODULE_4___default().object};const __WEBPACK_DEFAULT_EXPORT__=Preview},7694:(e,t,n)=>{n(61761),e.exports=n(25645).RegExp.escape},24963:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},83365:(e,t,n)=>{var r=n(92032);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},17722:(e,t,n)=>{var r=n(86314)("unscopables"),i=Array.prototype;null==i[r]&&n(87728)(i,r,{}),e.exports=function(e){i[r][e]=!0}},83328:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},27007:(e,t,n)=>{var r=n(55286);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},5216:(e,t,n)=>{"use strict";var r=n(20508),i=n(92337),o=n(10875);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),u=i(t,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:i(l,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},46852:(e,t,n)=>{"use strict";var r=n(20508),i=n(92337),o=n(10875);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)t[s++]=e;return t}},9490:(e,t,n)=>{var r=n(3531);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},79315:(e,t,n)=>{var r=n(22110),i=n(10875),o=n(92337);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},10050:(e,t,n)=>{var r=n(741),i=n(49797),o=n(20508),a=n(10875),s=n(16886);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,h){for(var m,y,v=o(t),g=i(v),b=r(s,h,3),x=a(g.length),_=0,w=n?d(t,x):u?d(t,0):void 0;x>_;_++)if((p||_ in g)&&(y=b(m=g[_],_,v),e))if(n)w[_]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(c)return!1;return f?-1:l||c?c:w}}},37628:(e,t,n)=>{var r=n(24963),i=n(20508),o=n(49797),a=n(10875);e.exports=function(e,t,n,s,u){r(t);var l=i(e),c=o(l),f=a(l.length),p=u?f-1:0,d=u?-1:1;if(n<2)for(;;){if(p in c){s=c[p],p+=d;break}if(p+=d,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=d)p in c&&(s=t(s,c[p],p,l));return s}},42736:(e,t,n)=>{var r=n(55286),i=n(4302),o=n(86314)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},16886:(e,t,n)=>{var r=n(42736);e.exports=function(e,t){return new(r(e))(t)}},34398:(e,t,n)=>{"use strict";var r=n(24963),i=n(55286),o=n(97242),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i{var r=n(92032),i=n(86314)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},92032:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},9824:(e,t,n)=>{"use strict";var r=n(99275).f,i=n(42503),o=n(24408),a=n(741),s=n(83328),u=n(3531),l=n(42923),c=n(15436),f=n(2974),p=n(67057),d=n(84728).fastKey,h=n(1616),m=p?"_s":"size",y=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&u(r,n,e[l],e)}));return o(c.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=h(this,t),r=y(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!y(h(this,t),e)}}),p&&r(c.prototype,"size",{get:function(){return h(this,t)[m]}}),c},def:function(e,t,n){var r,i,o=y(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:y,setStrong:function(e,t,n){l(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?c(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,c(1))}),n?"entries":"values",!n,!0),f(t)}}},86132:(e,t,n)=>{var r=n(41488),i=n(9490);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},23657:(e,t,n)=>{"use strict";var r=n(24408),i=n(84728).getWeak,o=n(27007),a=n(55286),s=n(83328),u=n(3531),l=n(10050),c=n(79181),f=n(1616),p=l(5),d=l(6),h=0,m=function(e){return e._l||(e._l=new y)},y=function(){this.a=[]},v=function(e,t){return p(e.a,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var l=e((function(e,r){s(e,l,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&u(r,n,e[o],e)}));return r(l.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?m(f(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?m(f(this,t)).has(e):n&&c(n,this._i)}}),l},def:function(e,t,n){var r=i(o(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},45795:(e,t,n)=>{"use strict";var r=n(3816),i=n(42985),o=n(77234),a=n(24408),s=n(84728),u=n(3531),l=n(83328),c=n(55286),f=n(74253),p=n(7462),d=n(22943),h=n(40266);e.exports=function(e,t,n,m,y,v){var g=r[e],b=g,x=y?"set":"add",_=b&&b.prototype,w={},E=function(e){var t=_[e];o(_,e,"delete"==e||"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||_.forEach&&!f((function(){(new b).entries().next()})))){var S=new b,k=S[x](v?{}:-0,1)!=S,A=f((function(){S.has(1)})),C=p((function(e){new b(e)})),T=!v&&f((function(){for(var e=new b,t=5;t--;)e[x](t,t);return!e.has(-0)}));C||((b=t((function(t,n){l(t,b,e);var r=h(new g,t,b);return null!=n&&u(n,y,r[x],r),r}))).prototype=_,_.constructor=b),(A||T)&&(E("delete"),E("has"),y&&E("get")),(T||k)&&E(x),v&&_.clear&&delete _.clear}else b=m.getConstructor(t,e,y,x),a(b.prototype,n),s.NEED=!0;return d(b,e),w[e]=b,i(i.G+i.W+i.F*(b!=g),w),v||m.setStrong(b,e,y),b}},25645:e=>{var t=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=t)},92811:(e,t,n)=>{"use strict";var r=n(99275),i=n(90681);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},741:(e,t,n)=>{var r=n(24963);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},53537:(e,t,n)=>{"use strict";var r=n(74253),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},870:(e,t,n)=>{"use strict";var r=n(27007),i=n(21689),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},91355:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},67057:(e,t,n)=>{e.exports=!n(74253)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},62457:(e,t,n)=>{var r=n(55286),i=n(3816).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},74430:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5541:(e,t,n)=>{var r=n(47184),i=n(64548),o=n(14682);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},42985:(e,t,n)=>{var r=n(3816),i=n(25645),o=n(87728),a=n(77234),s=n(741),u=function(e,t,n){var l,c,f,p,d=e&u.F,h=e&u.G,m=e&u.S,y=e&u.P,v=e&u.B,g=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),x=b.prototype||(b.prototype={});for(l in h&&(n=t),n)f=((c=!d&&g&&void 0!==g[l])?g:n)[l],p=v&&c?s(f,r):y&&"function"==typeof f?s(Function.call,f):f,g&&a(g,l,f,e&u.U),b[l]!=f&&o(b,l,p),y&&x[l]!=f&&(x[l]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},8852:(e,t,n)=>{var r=n(86314)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},74253:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},28082:(e,t,n)=>{"use strict";var r=n(87728),i=n(77234),o=n(74253),a=n(91355),s=n(86314);e.exports=function(e,t,n){var u=s(e),l=n(a,u,""[e]),c=l[0],f=l[1];o((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)}))&&(i(String.prototype,e,c),r(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},53218:(e,t,n)=>{"use strict";var r=n(27007);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},13325:(e,t,n)=>{"use strict";var r=n(4302),i=n(55286),o=n(10875),a=n(741),s=n(86314)("isConcatSpreadable");e.exports=function e(t,n,u,l,c,f,p,d){for(var h,m,y=c,v=0,g=!!p&&a(p,d,3);v0)y=e(t,n,h,o(h.length),y,f-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=h}y++}v++}return y}},3531:(e,t,n)=>{var r=n(741),i=n(28851),o=n(86555),a=n(27007),s=n(10875),u=n(69002),l={},c={},f=e.exports=function(e,t,n,f,p){var d,h,m,y,v=p?function(){return e}:u(e),g=r(n,f,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(d=s(e.length);d>b;b++)if((y=t?g(a(h=e[b])[0],h[1]):g(e[b]))===l||y===c)return y}else for(m=v.call(e);!(h=m.next()).done;)if((y=i(m,g,h.value,t))===l||y===c)return y};f.BREAK=l,f.RETURN=c},3816:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},79181:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},87728:(e,t,n)=>{var r=n(99275),i=n(90681);e.exports=n(67057)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},40639:(e,t,n)=>{var r=n(3816).document;e.exports=r&&r.documentElement},1734:(e,t,n)=>{e.exports=!n(67057)&&!n(74253)((function(){return 7!=Object.defineProperty(n(62457)("div"),"a",{get:function(){return 7}}).a}))},40266:(e,t,n)=>{var r=n(55286),i=n(27375).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},97242:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},49797:(e,t,n)=>{var r=n(92032);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},86555:(e,t,n)=>{var r=n(87234),i=n(86314)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},4302:(e,t,n)=>{var r=n(92032);e.exports=Array.isArray||function(e){return"Array"==r(e)}},18367:(e,t,n)=>{var r=n(55286),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},55286:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},55364:(e,t,n)=>{var r=n(55286),i=n(92032),o=n(86314)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},28851:(e,t,n)=>{var r=n(27007);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},49988:(e,t,n)=>{"use strict";var r=n(42503),i=n(90681),o=n(22943),a={};n(87728)(a,n(86314)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},42923:(e,t,n)=>{"use strict";var r=n(4461),i=n(42985),o=n(77234),a=n(87728),s=n(87234),u=n(49988),l=n(22943),c=n(468),f=n(86314)("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",h="values",m=function(){return this};e.exports=function(e,t,n,y,v,g,b){u(n,t,y);var x,_,w,E=function(e){if(!p&&e in C)return C[e];switch(e){case d:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",k=v==h,A=!1,C=e.prototype,T=C[f]||C["@@iterator"]||v&&C[v],D=T||E(v),M=v?k?E("entries"):D:void 0,P="Array"==t&&C.entries||T;if(P&&(w=c(P.call(new e)))!==Object.prototype&&w.next&&(l(w,S,!0),r||"function"==typeof w[f]||a(w,f,m)),k&&T&&T.name!==h&&(A=!0,D=function(){return T.call(this)}),r&&!b||!p&&!A&&C[f]||a(C,f,D),s[t]=D,s[S]=m,v)if(x={values:k?D:E(h),keys:g?D:E(d),entries:M},b)for(_ in x)_ in C||o(C,_,x[_]);else i(i.P+i.F*(p||A),t,x);return x}},7462:(e,t,n)=>{var r=n(86314)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},15436:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},87234:e=>{e.exports={}},4461:e=>{e.exports=!1},13086:e=>{var t=Math.expm1;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:t},34934:(e,t,n)=>{var r=n(61801),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return is||n!=n?l*(1/0):l*n}},46206:e=>{e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},68757:e=>{e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},61801:e=>{e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},84728:(e,t,n)=>{var r=n(93953)("meta"),i=n(55286),o=n(79181),a=n(99275).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(74253)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!o(e,r)&&c(e),e}}},50133:(e,t,n)=>{var r=n(88416),i=n(42985),o=n(3825)("metadata"),a=o.store||(o.store=new(n(30147))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o};e.exports={store:a,map:s,has:function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){s(n,r,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){i(i.S,"Reflect",e)}}},14351:(e,t,n)=>{var r=n(3816),i=n(74193).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(92032)(a);e.exports=function(){var e,t,n,l=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(l)}}else n=function(){i.call(r,l)};else{var f=!0,p=document.createTextNode("");new o(l).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},43499:(e,t,n)=>{"use strict";var r=n(24963);function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},35345:(e,t,n)=>{"use strict";var r=n(47184),i=n(64548),o=n(14682),a=n(20508),s=n(49797),u=Object.assign;e.exports=!u||n(74253)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=i.f,f=o.f;u>l;)for(var p,d=s(arguments[l++]),h=c?r(d).concat(c(d)):r(d),m=h.length,y=0;m>y;)f.call(d,p=h[y++])&&(n[p]=d[p]);return n}:u},42503:(e,t,n)=>{var r=n(27007),i=n(35588),o=n(74430),a=n(69335)("IE_PROTO"),s=function(){},u=function(){var e,t=n(62457)("iframe"),r=o.length;for(t.style.display="none",n(40639).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("
Loading...
================================================ FILE: docs/index.html ================================================ Redirect Redirecting to docs... ================================================ FILE: docs/src/App.js ================================================ import React from 'react'; import PropTypes from 'prop-types'; import { HashRouter as Router, Link, Route } from 'react-router-dom'; import _ from 'lodash'; import * as Docs from './docs'; import * as Lessons from './lessons'; const lessons = [ { name: 'Quick Start', path: '/quick-start', Component: Lessons.QuickStartLesson, }, { name: 'XY Plots', path: '/xy-plots', Component: Lessons.XYPlotsLesson }, // TODO lesson needs to be cleaned up, see lessons/GettersAndAccessors // {name: "Getters & Accessors", path: '/getters-and-accessors', Component: Lessons.GettersAndAccessorsLesson}, // TODO lesson needs to be cleaned up, see lessons/Interaction // {name: "Interaction", path: '/interaction', Component: Lessons.InteractionLesson}, ]; const mainComponents = [ { name: 'XYPlot', path: '/xy-plot', Component: Docs.XYPlotDocs }, { name: 'ZoomContainer', path: '/zoom-container', Component: Docs.ZoomContainerDocs, }, ]; const xyChartComponents = [ { name: 'AriaLabelContainer', path: '/aria-label-container', Component: Docs.AriaLabelContainerDocs, }, { name: 'AreaBarChart', path: '/area-bar-chart', Component: Docs.AreaBarChartDocs, }, { name: 'AreaChart', path: '/area-chart', Component: Docs.AreaChartDocs }, { name: 'AreaHeatmap', path: '/area-heatmap', Component: Docs.AreaHeatmapDocs, }, { name: 'BarChart', path: '/bar-chart', Component: Docs.BarChartDocs }, { name: 'ColorHeatmap', path: '/color-heatmap', Component: Docs.ColorHeatmapDocs, }, { name: 'FunnelChart', path: '/funnel-chart', Component: Docs.FunnelChartDocs, }, { name: 'Histogram', path: '/histogram', Component: Docs.HistogramDocs }, { name: 'KernelDensityEstimation', path: '/kernel-density-estimation', Component: Docs.KernelDensityEstimationDocs, }, { name: 'LineChart', path: '/line-chart', Component: Docs.LineChartDocs }, { name: 'MarkerLineChart', path: '/marker-line-chart', Component: Docs.MarkerLineChartDocs, }, { name: 'RangeBarChart', path: '/range-bar-chart', Component: Docs.RangeBarChartDocs, }, { name: 'ScatterPlot', path: '/scatter-plot', Component: Docs.ScatterPlotDocs, }, ]; const standaloneChartComponents = [ { name: 'PieChart', path: '/pie-chart', Component: Docs.PieChartDocs }, { name: 'SankeyDiagram', path: '/sankey', Component: Docs.SankeyDiagramDocs }, { name: 'TreeMap', path: '/tree-map', Component: Docs.TreeMapDocs }, ]; const dataMarkComponents = [ { name: 'Bar', path: '/bar', Component: Docs.BarDocs }, { name: 'RangeRect', path: '/range-rect', Component: Docs.RangeRectDocs }, { name: 'XLine', path: '/x-line', Component: Docs.XLineDocs }, { name: 'YLine', path: '/y-line', Component: Docs.YLineDocs }, ]; const axisComponents = [ { name: 'XAxis', path: '/x-axis', Component: Docs.XAxisDocs }, { name: 'XAxisLabels', path: '/x-axis-labels', Component: Docs.XAxisLabelsDocs, }, { name: 'XAxisTitle', path: '/x-axis-title', Component: Docs.XAxisTitleDocs }, { name: 'XGrid', path: '/x-grid', Component: Docs.XGridDocs }, { name: 'XTicks', path: '/x-ticks', Component: Docs.XTicksDocs }, { name: 'YAxis', path: '/y-axis', Component: Docs.YAxisDocs }, { name: 'YAxisLabels', path: '/y-axis-labels', Component: Docs.YAxisLabelsDocs, }, { name: 'YAxisTitle', path: '/y-axis-title', Component: Docs.YAxisTitleDocs }, { name: 'YGrid', path: '/y-grid', Component: Docs.YGridDocs }, { name: 'YTicks', path: '/y-ticks', Component: Docs.YTicksDocs }, ]; const allComponents = lessons .concat(mainComponents) .concat(xyChartComponents) .concat(standaloneChartComponents) .concat(dataMarkComponents) .concat(axisComponents); const NavLink = ({ label, to }) => { return ( (
  • {label}
  • )} /> ); }; NavLink.propTypes = { label: PropTypes.string, to: PropTypes.string, }; const Nav = () => { return (

    Lessons

      {lessons.map((lesson, i) => { return ( ); })}

    Component Docs

      {mainComponents.map((component, i) => { return ( ); })}

    XY Chart Components

      {xyChartComponents.map((component, i) => { return ( ); })}

    Standalone Chart Components

      {standaloneChartComponents.map((component, i) => { return ( ); })}

    XY Data Components

      {dataMarkComponents.map((component, i) => { return ( ); })}

    XY Axis Components

      {axisComponents.map((component, i) => { return ( ); })}
    ); }; export const Home = () => (

    Reactochart is a library of React components for creating charts and graphs, used internally at Spotify.

    ); export const App = () => (
    ); import * as Reactochart from '../../src'; const { XYPlot, XAxis, YAxis, RangeBarChart, LineChart, ScatterPlot, BarChart, MarkerLineChart, ColorHeatmap, AreaHeatmap, } = Reactochart; class MultipleXYExample extends React.Component { render() { return (
    d} y={d => Math.sin(d * 3) * 0.7 + 1.2} yEnd={d => Math.sin(d * 3) * Math.cos(d * 3) * 0.7 + 1.2} barThickness={2} barStyle={{ fill: '#3690c0' }} /> d} y={d => Math.pow( Math.abs(Math.sin(d * 5)), Math.abs(Math.sin(d * 0.25)), ) * 1.8 } lineStyle={{ stroke: '#02818a', strokeWidth: 3 }} /> d} y={d => Math.pow(2, (d + 2) * 1.8) * 0.1} pointSymbol={} /> d} y={d => -Math.abs(Math.sin(d * 4) * Math.cos(d * 3))} barThickness={3} barStyle={{ fill: '#67a9cf' }} /> d} y={d => Math.cos(d)} lineStyle={{ stroke: '#ec7014', strokeWidth: 3 }} /> _.range(-2, 0, 0.1).map(j => [i, j]), ), )} value={([i, j]) => Math.sin(i * j * 5)} /* eslint-disable */ x={([i, j]) => i} xEnd={([i, j]) => i + 0.1} y={([i, j]) => j} yEnd={([i, j]) => j + 0.1} /* eslint-enable */ colors={['#d0d1e6', '#016450']} interpolator="lab" /> _.range(-2, -1, 0.1).map(j => [i, j]), ), )} area={([i, j]) => -Math.sin(i * j * 5)} /* eslint-disable no-unused-vars */ x={([i, j]) => i} xEnd={([i, j]) => i + 0.1} y={([i, j]) => j} yEnd={([i, j]) => j + 0.1} /* eslint-enable no-unused-vars */ rectStyle={{ fill: '#016450' }} />
    ); } } ================================================ FILE: docs/src/ComponentDocs.js ================================================ import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import { remark } from 'remark'; import remarkReact from 'remark-react'; const ComponentDocs = props => { const { name, propDocs, children } = props; const componentProps = _.get(propDocs, 'props'); const sortedProps = Object.entries(componentProps) .sort((a, b) => (a[0] < b[0] ? -1 : 1)) .reduce((acc, [key, value]) => { acc[key] = value; return acc; }, {}); return (

    {name}

    {propDocs.description ? (
    {renderMarkdown(propDocs.description)}
    ) : null}

    {name} props:

    {_.map(sortedProps, (propInfo, propKey) => { return (
    {propKey}: {renderType(propInfo)} {propInfo.required && ' (required)'} {propInfo.description ?
    : null} {propInfo.description ? ( {renderMarkdown(propInfo.description)} ) : null} {propInfo.defaultValue ? (
    default value: {propInfo.defaultValue.value}
    ) : null}
    ); })}
    {children}
    ); }; ComponentDocs.propTypes = { name: PropTypes.string, propDocs: PropTypes.object, children: PropTypes.any, }; function renderTypeValues(propInfo, propKey) { return _.get(propInfo, 'value', []) .map(propType => { const type = _.get(propType, propKey, ''); if (type === 'enum') { return renderTypeValues(propType, 'value'); } else if (type === 'instanceOf') { return _.get(propType, 'value', '').toLowerCase(); } return type; }) .join(' || '); } function renderType(propInfo) { const typeInfo = _.get(propInfo, 'type'); if (!typeInfo) { return 'unknown'; } const typeName = _.get(typeInfo, 'name', 'unknown'); let type = typeName; if (typeName === 'union') { if (!typeInfo.computed) { type = renderTypeValues(typeInfo, 'name'); } else { // Handle custom proptypes type = 'func || value'; } } else if (typeName === 'custom') { if (typeInfo.raw === 'CustomPropTypes.valueOrAccessor') { type = 'date || func || number || string'; } else if (typeInfo.raw === 'CustomPropTypes.getter') { type = 'array || func || number || string'; } } else if (typeName === 'arrayOf') { const arrayType = _.get(propInfo, 'type.value.name', {}); type = `Array<${arrayType}>`; } else if (typeName === 'enum') { type = renderTypeValues(typeInfo, 'value'); } return type; } function renderMarkdown(markdownText = '') { return remark() .use(remarkReact, React) .processSync(markdownText).contents; } export default ComponentDocs; ================================================ FILE: docs/src/ExampleSection.js ================================================ import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import _ from 'lodash'; import * as d3 from 'd3'; // eslint-disable-line no-restricted-imports import Playground from 'component-playground'; // import *all* reactochart components/utils - usually you'd import one at a time import * as Reactochart from '../../src'; import { randomWalk, randomWalkSeries, randomWalkTimeSeries, } from './data/util'; window.Reactochart = Reactochart; export default class ExampleSection extends React.Component { static propTypes = { codeText: PropTypes.string, scope: PropTypes.object, isExpanded: PropTypes.bool, label: PropTypes.node, id: PropTypes.string, description: PropTypes.node, onClick: PropTypes.func, }; static defaultProps = { codeText: '', scope: {}, isExpanded: true, label: 'Example', id: '', }; onClick = e => { if (this.props.onClick) { this.props.onClick(e, this.props.id); } }; render() { const { codeText, isExpanded, label, id, description } = this.props; const scope = { React, ReactDOM, d3, _, randomWalk, randomWalkSeries, randomWalkTimeSeries, // include all Reactochart components in scope ...Reactochart, ...this.props.scope, }; return (

    {label || id} {isExpanded ? '▼' : '►'}

    {isExpanded ? (
    {description ? (
    {description}
    ) : null}
    ) : null}
    ); } } ================================================ FILE: docs/src/Lesson.js ================================================ import React from 'react'; import PropTypes from 'prop-types'; export default class Lesson extends React.Component { static propTypes = { name: PropTypes.string, children: PropTypes.any, }; render() { const { name, children } = this.props; return (

    {name}

    {children}
    ); } } ================================================ FILE: docs/src/data/util.js ================================================ import _ from 'lodash'; export function randomWalk(length = 100, start = 0, variance = 10) { return _.reduce( _.range(length - 1), sequence => { return sequence.concat(_.last(sequence) + _.random(-variance, variance)); }, [start], ); } export function randomWalkSeries(length = 100, start = 0, variance = 10) { return randomWalk(length, start, variance).map((n, i) => [i, n]); } export function randomWalkTimeSeries( length = 100, start = 0, variance = 10, startDate = new Date(2015, 0, 1), ) { let date = startDate; return randomWalk(length, start, variance).map(n => { date = new Date(date.getTime() + 24 * 60 * 60 * 1000); return [date, n]; }); } export function removeRandomData(data, removeCount = 5) { const gapData = data.slice(); _.times(removeCount, () => { if (!gapData.length) return; const gapIndex = _.random(gapData.length - 1); gapData.splice(gapIndex, 1); }); return gapData; } ================================================ FILE: docs/src/docs/AreaBarChart/AreaBarChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'rates-by-age', label: 'Smoking Rates by Age', codeText: require('./examples/RatesByAge.js.example').default, }, { id: 'basic', label: 'Basic AreaBarChart', codeText: require('./examples/AreaBarChart.js.example').default, }, ]; export default class AreaBarChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/AreaBarChart/examples/AreaBarChart.js.example ================================================ const AreaBarChartExample = (props) => { return
    Math.sin(d / 10) * 10} xEnd={d => Math.sin((d + 1) / 10) * 10} y={d => Math.cos(d / (Math.PI))} /> Math.cos(d / (Math.PI))} y={d => Math.sin(d / 10) * 10} yEnd={d => Math.sin((d + 1) / 10) * 10} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AreaBarChart/examples/RatesByAge.js.example ================================================ const RatesByAge = (props) => { return

    US Smoking Rates by Age Group

    d.ageMin} xEnd={d => d.ageMax} y={d => d.rate} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AreaBarChart/propDocs.json ================================================ { "description": "`AreaBarChart` is a variation on the standard bar chart. Just like a normal bar chart, each bar represents a single\nvalue on the *dependent* axis (Y axis for vertical bars), and the bar stretches from zero to this value.\nHowever, on the *independent* axis, each bar represents a *range* (min/max) of values,\nrather than being centered on a specific value.\nIn other words, the bar *lengths* act the same way as standard bar chart bars,\nbut their *thicknesses* are variable and meaningful.\n`AreaBarChart`s are the correct way to display histograms with variable bin sizes.\nThey are so named because, in cases like these histograms, since both the bar thickness and length are meaningful,\nso too is the bar's total *area*, unlike in other bar charts.", "displayName": "AreaBarChart", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot" }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot" }, "data": { "type": { "name": "array" }, "required": true, "description": "Array of data to be plotted. One bar will be rendered per datum in this array." }, "horizontal": { "type": { "name": "bool" }, "required": false, "description": "Boolean which determines whether the chart will use horizontal or vertical bars.\nWhen `true`, bars will be horizontal, ie. the X-axis will be treated as the dependent axis.", "defaultValue": { "value": "false", "computed": false } }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for bar X values, called once per bar (datum), or a single value to be used for all bars.\nIf `horizontal` is `false`, this gets the start (min value) of the *independent* variable range, spanned by the bar's thickness.\nIf `horizontal` is `true`, this gets the *dependent* variable value, the end of the bar's length" }, "xEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for the end (max X value) of the *independent* variable range, spanned by the bar's thickness.\nShould only be passed when `horizontal` is `false` (ignored otherwise)." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for bar Y values, called once per bar (datum), or a single value to be used for all bars.\nIf `horizontal` is `true`, this gets the start (min value) of the *independent* variable range which is spanned by the bar's thickness.\nIf `horizontal` is `false`, this gets the *dependent* variable value, the end of the bar's length" }, "yEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for the end (max Y value) of the *independent* variable range, spanned by the bar's thickness.\nShould only be passed when `horizontal` is `true` (ignored otherwise)." }, "barClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each bar\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "barStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each bar\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "onMouseMoveBar": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a bar." }, "onMouseEnterBar": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a bar." }, "onMouseLeaveBar": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a bar." } } } ================================================ FILE: docs/src/docs/AreaChart/AreaChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic AreaChart', codeText: require('./examples/AreaChart.js.example').default, }, { id: 'twoDatasets', label: 'Area Chart with Two Datasets', codeText: require('./examples/Area2Datasets.js.example').default, }, { id: 'difference', label: 'Difference Area Chart', codeText: require('./examples/AreaDifference.js.example').default, }, ]; export default class AreaChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/AreaChart/examples/Area2Datasets.js.example ================================================ class Area2DatasetsExample extends React.Component { render() { const data1 = randomWalkTimeSeries(115).map(([x,y]) => ({x, y})); const data2 = randomWalkTimeSeries(115).map(([x,y]) => ({x, y})); // we have two datasets, but AreaChart takes one combined dataset // so combine the two datasets into one using the combineDatasets utility function // (import from 'Reactochart/utils') // original datasets are of the shape [{x: ..., y: 20}] // combined is of the shape [{x: ..., y0: 20, y1: 30}] const combined = utils.Data.combineDatasets([ {data: data1, combineKey: 'x', dataKeys: {y: 'y0'}}, {data: data2, combineKey: 'x', dataKeys: {y: 'y1'}} ], 'x'); return
    d.x} y={d => d.y0} yEnd={d => d.y1} />
    } } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AreaChart/examples/AreaChart.js.example ================================================ const AreaChartExample = (props) => { return
    d} y={d => Math.sin(d / 10) * 10} yEnd={d => Math.cos((d + 1) / 10) * 10} />
    } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AreaChart/examples/AreaDifference.js.example ================================================ class AreaDifferenceExample extends React.Component { render() { const data1 = randomWalkTimeSeries(115).map(([x, y]) => ({x, y})); const data2 = randomWalkTimeSeries(115).map(([x, y]) => ({x, y})); // we have two datasets, but AreaChart takes one combined dataset // so combine the two datasets into one using the combineDatasets utility function // (from 'reactochart/utils/Data') const combined = utils.Data.combineDatasets([ {data: data1, combineKey: 'x', dataKeys: {y: 'y0'}}, {data: data2, combineKey: 'x', dataKeys: {y: 'y1'}} ], 'x'); return
    d.x} y={d => d.y0} yEnd={d => d.y1} /> d.x} y={d => d.y} lineStyle={{strokeWidth: 3}} /> d.x} y={d => d.y} />
    } } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AreaChart/propDocs.json ================================================ { "description": "`AreaChart` represents a simple bivariate area chart,\na filled path drawn between two lines (datasets).", "displayName": "AreaChart", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "The array of data objects" }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for area X values, called once per datum,\nor a single X value to be used for the entire line." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for area's starting (minimum) Y values, called once per datum,\nor a single Y value to be used for the entire line.\nShould return the minimum of the Y range spanned by the area at this point." }, "yEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for area's ending (maximum) Y values, called once per datum,\nor a single Y value to be used for the entire line.\nShould return the maximum of the Y range spanned by the area at this point." }, "pathClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to area path element.", "defaultValue": { "value": "''", "computed": false } }, "pathStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to area path element.", "defaultValue": { "value": "{}", "computed": false } }, "isDifference": { "type": { "name": "bool" }, "required": false, "description": "If isDifference is true, AreaChart generates a \"difference chart\" with two area paths instead of one:\none path which shows when YEnd > Y, and one vice versa, allowing them to be styled differently (eg red/green)." }, "pathStylePositive": { "type": { "name": "object" }, "required": false, "description": "When isDifference is true, pathStylePositive can be passed to style the\npositive area difference.\nIgnored if isDifference is false." }, "pathStyleNegative": { "type": { "name": "object" }, "required": false, "description": "When isDifference is true, pathStyleNegative can be passed to style the\nnegative area difference.\nIgnored if isDifference is false." }, "shouldShowGaps": { "type": { "name": "bool" }, "required": false, "description": "If true, will show gaps in the shaded area for data where props.isDefined(datum) returns false.", "defaultValue": { "value": "true", "computed": false } }, "isDefined": { "type": { "name": "func" }, "required": false, "description": "If shouldShowGaps is true, isDefined function describes when a datum\nshould be considered \"defined\" vs. when to show gap by default.\nShows gap if either y or yEnd are undefined.", "defaultValue": { "value": "(d, i, accessors) => {\n return (\n !isUndefined(accessors.y(d, i)) && !isUndefined(accessors.yEnd(d, i))\n );\n}", "computed": false } }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "xScaleType": { "type": { "name": "string" }, "required": false, "description": "Type of X scale - provided by XYPlot." }, "yScaleType": { "type": { "name": "string" }, "required": false, "description": "Type of Y scale - provided by XYPlot." }, "height": { "type": { "name": "number" }, "required": false, "description": "Height of chart - provided by XYPlot." }, "curve": { "type": { "name": "func" }, "required": false, "description": "D3 curve for path generation." } } } ================================================ FILE: docs/src/docs/AreaHeatmap/AreaHeatmapDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic AreaHeatmap', codeText: require('./examples/AreaHeatmap.js.example').default, }, ]; export default class AreaHeatmapExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/AreaHeatmap/examples/AreaHeatmap.js.example ================================================ const AreaHeatmapExample = (props) => { const gridData = _.range(30).map(m => { return _.range(30).map(n => { return { x: n, xEnd: n + 1, y: m, yEnd: m + 1, value: Math.sin(m * n * 0.01) }; }); }); const data = _.flatten(gridData); return
    d.value} x={d => d.x} xEnd={d => d.xEnd} y={d => d.y} yEnd={d => d.yEnd} rectStyle={{fill: 'rebeccapurple'}} /> d.value} x={d => d.x} xEnd={d => d.xEnd} y={d => d.y} yEnd={d => d.yEnd} rectStyle={{fill: '#41ab5d'}} /> d.value * -1} x={d => d.x} xEnd={d => d.xEnd} y={d => d.y} yEnd={d => d.yEnd} rectStyle={{fill: '#fc4e2a'}} />
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AreaHeatmap/propDocs.json ================================================ { "description": "`AreaHeatmap` is still undergoing experimental changes!\nWe do not consider this chart to be production ready as it does not support categorical data.", "displayName": "AreaHeatmap", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "onMouseEnter", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null } ], "returns": null }, { "name": "onMouseLeave", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null } ], "returns": null }, { "name": "onMouseMove", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data objects." }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "" }, "xEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "" }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "" }, "yEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "" }, "area": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "" }, "unitsPerPixel": { "type": { "name": "number" }, "required": false, "description": "" }, "rectClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each rect\nor accessor function which returns a class", "defaultValue": { "value": "''", "computed": false } }, "rectStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each rect,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot" }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot" }, "onMouseEnter": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseLeave": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseMove": { "type": { "name": "func" }, "required": false, "description": "" } } } ================================================ FILE: docs/src/docs/AriaLabelContainer/AriaLabelContainerDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'one-dataset', label: 'With One Dataset', codeText: require('./examples/OneDataset.js.example').default, }, { id: 'two-dataset', label: 'With Two Datasets', codeText: require('./examples/TwoDatasets.js.example').default, }, { id: 'action', label: 'With Interactions', codeText: require('./examples/WithActions.js.example').default, }, ]; export default class AriaLabelContainerExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/AriaLabelContainer/examples/OneDataset.js.example ================================================ const AriaLabelContainerExample = (props) => { const data = _.range(10).map(d => ({ x: d, y: Math.round(d * Math.random() * 10) })) return d.x} y={d => d.y} lineStyle={{stroke: '#ff7f0e', strokeWidth: 3}} /> { const { 0: dataPoint } = datasets; if(xValue){ return `xValue, ${dataPoint.x}; yValue, ${dataPoint.y}` } }} datasetWithAccessor={ [{ data: data, accessor: d => d.x }] } /> ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AriaLabelContainer/examples/TwoDatasets.js.example ================================================ const AriaLabelContainerExample = (props) => { const data0 = _.range(10).map(d => ({ x: d, y: Math.round(d * Math.random() * 10) })) const data1 = _.range(7).map(d => ({ x: d, y: Math.round(d * Math.random() * 10) })) const ariaLabelGenerator = (xValue, datasets) => { const { 0: data0Point, 1: data1Point } = datasets; let ariaLabelString = `x Value, ${xValue}`; if(data0Point) { ariaLabelString += `, data0 y Value ${data0Point.y}`; } if(data1Point) { ariaLabelString += `, data1 y Value ${data1Point.y}`; } return ariaLabelString; } return d.x} y={d => d.y} lineStyle={{stroke: '#ff7f0e', strokeWidth: 3}} /> d.x} y={d => d.y} lineStyle={{stroke: '#2ca02c', strokeWidth: 3}} /> d.x, }, { data: data1, accessor: d => d.x, } ]} /> ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AriaLabelContainer/examples/WithActions.js.example ================================================ const AriaLabelContainerExample = (props) => { const [selectedValue, setSelectedValue] = React.useState(); const data = _.range(10).map(d => ({ x: d, y: d * 50, })) const onMouseMove = ({xValue, yValue}) => { setSelectedValue({ x: xValue, y: yValue }); } const onMouseLeave = () => setSelectedValue(); const onKeyDown = (event, xValue, datasets) => { const dataPoint = datasets[0]; switch (event.keyCode) { // enter key code case 13: setSelectedValue(dataPoint); break; default: break; } } return (
    d.x} y={d => d.y} lineStyle={{stroke: '#ff7f0e', strokeWidth: 3}} /> { const dataPoint = datasets[0]; if(dataPoint) { return `x Value, ${dataPoint.x}; y Value: ${dataPoint.y}` } }} onKeyDown={onKeyDown} datasetWithAccessor={[ { data, accessor: d => d.x } ]} /> {selectedValue &&

    {`(${selectedValue.x}, ${selectedValue.y})`}

    }
    ); }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/AriaLabelContainer/propDocs.json ================================================ { "description": "`AriaLabelContainer` provides a mechanism for keyboard navigation of\n`LineChart` and `AreaChart` graphs within `XYPlot`. This component renders\na rectangle for a given `numFrames` across a Line/Area chart. `numFrames` should\nbe equal to the number of data points in your dataset. Users can navigate to a frame\neither by pressing `Tab`, or through their assistive technology. `AriaLabelContainer`\ntakes an `ariaLabelGenerator`, which generates an aria-label for each frame of the chart.\n[aria-labels](https://www.w3.org/TR/WCAG20-TECHS/ARIA6.html#ARIA6-description) are critical for users accessing\nthe web with screenreaders or other assistive technologies.", "displayName": "AriaLabelContainer", "methods": [], "props": { "datasetWithAccessor": { "type": { "name": "arrayOf", "value": { "name": "shape", "value": { "data": { "name": "arrayOf", "value": { "name": "object" }, "required": true }, "accessor": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor.isRequired", "required": true } } } }, "required": true, "description": "An array containing n objects in the following shape:\n[{\n data: Array of your data points, normally used in rendering specific line or area charts\n accessor: A function used to access the data point on the x axis from the `data` attribute\n (datum) => number\n}]" }, "ariaLabelGenerator": { "type": { "name": "func" }, "required": true, "description": "A function that takes the xValue at the start of the frame, an array of datapoints at that xValue, and the index of the frame,\nand returns a string to render as an aria label\nfor the specific frame in the Interface.\n\n(xValue, [datapoints], frameIndex) => string" }, "onKeyDown": { "type": { "name": "func" }, "required": false, "description": "an optional `onKeyDown` event handler to provide for each frame\nwhen selected.\nBest practices are to describe how the user will interact with the chart in\nthe ariaLabelGenerator\n\n(event, xValue, [datapoints]) => void" }, "height": { "type": { "name": "number" }, "required": false, "description": "height of the chart - provided by `XYPlot`" }, "width": { "type": { "name": "number" }, "required": false, "description": "width of the chart - provided by `XYPlot`" }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot" } } } ================================================ FILE: docs/src/docs/Bar/BarDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic Bar', codeText: require('./examples/Bar.js.example').default, }, ]; export default class BarExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/Bar/examples/Bar.js.example ================================================ const BarExample = (props) => { return
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/Bar/propDocs.json ================================================ { "description": "Bar is a low-level component to be used in XYPlot-type charts (namely BarChart).\nIt is specified in terms of a range (min & max) of values on one axis and a\nsingle value on the other axis.\nPassing props `x`, `xEnd` and `y` specifies a horizontal bar, centered on `y`\nand spanning from `x` to `xEnd`.\nPassing props `x`, `y`, and `yEnd' specifies a vertical bar, centered on `x`\nand spanning from `y` to `yEnd`.", "displayName": "Bar", "methods": [], "props": { "x": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": false, "description": "For a vertical bar, `x` represents the X data value on which the bar is centered.\nFor a horizontal bar, `x` represents the *starting* X value of the bar, ie. the minimum of the range it spans", "defaultValue": { "value": "0", "computed": false } }, "y": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": false, "description": "For a horizontal bar, `y` represents the Y data value on which the bar is centered.\nFor a vertical bar, `y` represents the *starting* Y value of the bar, ie. the minimum of the range it spans", "defaultValue": { "value": "0", "computed": false } }, "xEnd": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": false, "description": "For a horizontal bar, `xEnd` represents the *ending* X data value of the bar, ie. the maximum of the range it spans.\nThis prop should not be defined if the bar is vertical." }, "yEnd": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": false, "description": "For a vertical bar, `yEnd` represents the *ending* Y data value of the bar, ie. the maximum of the range it spans.\nThis prop should not be defined if the bar is horizontal." }, "thickness": { "type": { "name": "number" }, "required": false, "description": "The thickness of the bar, in pixels. (width of vertical bar, or height of horizontal bar).", "defaultValue": { "value": "8", "computed": false } }, "className": { "type": { "name": "string" }, "required": false, "description": "Class name(s) to be included on the bar's element.", "defaultValue": { "value": "''", "computed": false } }, "style": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be included on the bar's element.", "defaultValue": { "value": "{}", "computed": false } }, "onMouseMove": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within the bar." }, "onMouseEnter": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters the bar." }, "onMouseLeave": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves the bar." }, "onClick": { "type": { "name": "func" }, "required": false, "description": "`click` event handler callback, called when user clicks the bar." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "showLabel": { "type": { "name": "bool" }, "required": false, "description": "Conditional if column should display values above/beside bar." }, "labelFormat": { "type": { "name": "func" }, "required": false, "description": "Format to use for the values or accessor that returns the updated value." }, "labelDistance": { "type": { "name": "number" }, "required": false, "description": "The distance from the column the label appears in pixels.", "defaultValue": { "value": "24", "computed": false } }, "labelClassName": { "type": { "name": "string" }, "required": false, "description": "Class name(s) to be included on the bar's element." } } } ================================================ FILE: docs/src/docs/BarChart/BarChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic BarChart', codeText: require('./examples/BarChart.js.example').default, }, { id: 'gradient', label: 'BarChart with Linear Gradient', codeText: require('./examples/BarChartLinearGradient.js.example').default, }, ]; export default class BarChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/BarChart/examples/BarChart.js.example ================================================ const BarChartExample = (props) => { const count = 30; const startDate = new Date(1992, 0, 1); const numbers = _.range(count); const letters = _.times(count, n => String.fromCharCode(97 + n)); const dates = _.times(count, n => new Date(+(startDate) + (n * 1000 * 60 * 60 * 24 * 100))); const getNumberValue = (d) => 1.97 + Math.cos(d / 10); const getDateValue = (d) => getNumberValue(d.getFullYear() + (d.getMonth() / 12)); const getLetterValue = (d) => getNumberValue(d.charCodeAt(0)); const chartDefs = _.zip([numbers, letters, dates], [getNumberValue, getLetterValue, getDateValue]); return
    {([true, false]).map((horizontal, index) => { return

    {horizontal ? "Horizontal" : "Vertical"}

    {chartDefs.map(([data, getValue], index2) => { return d} y={horizontal ? d => d : getValue} /> ; })}
    ; })}
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/BarChart/examples/BarChartLinearGradient.js.example ================================================ const BarChartWithDefs = (props) => { const data = [ {x: 0, y: 80}, {x: 5, y: 60}, {x: 10, y: 90}, {x: 15, y: 30}, ]; return
    d.x} y={d => d.y} barThickness={40} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/BarChart/propDocs.json ================================================ { "description": "`BarChart` represents a basic \"Value/Value\" bar chart,\nwhere each bar represents a single independent variable value and a single dependent value,\nwith bars that are centered horizontally on x-value and extend from 0 to y-value,\n(or centered vertically on their y-value and extend from 0 to the x-value, in the case of horizontal chart variant)\n\nFor other bar chart types, see RangeBarChart and AreaBarChart", "displayName": "BarChart", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getSpacing", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": false, "description": "Array of data to be plotted. One bar will be rendered per datum in the array.", "defaultValue": { "value": "[]", "computed": false } }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for bar X values, called once per bar (datum), or a single value to be used for all bars.\nIf `horizontal` is `true`, this becomes 0.\nIf `horizontal` is `false`, this gets the *dependent* variable value, the end of the bar's length." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for bar Y values, called once per bar (datum), or a single value to be used for all bars.\nIf `horizontal` is `false`, this becomes 0.\nIf `horizontal` is `true`, this gets the *dependent* variable value, the end of the bar's length." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "horizontal": { "type": { "name": "bool" }, "required": false, "description": "Boolean which determines whether the chart will use horizontal or vertical bars.\nWhen `true`, bars will be horizontal, ie. the X-axis will be treated as the dependent axis.", "defaultValue": { "value": "false", "computed": false } }, "barThickness": { "type": { "name": "number" }, "required": false, "description": "Thickness (in pixels) of each bar (ie. bar height if `horizontal` is `true`, otherwise bar width).", "defaultValue": { "value": "8", "computed": false } }, "barStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each bar,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "barClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each bar,\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "onMouseMoveBar": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a bar." }, "onMouseEnterBar": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a bar." }, "onMouseLeaveBar": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a bar." }, "onClick": { "type": { "name": "func" }, "required": false, "description": "`click` event handler callback, called when user clicks the bar." } } } ================================================ FILE: docs/src/docs/ColorHeatmap/ColorHeatmapDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic ColorHeatmap', codeText: require('./examples/ColorHeatmap.js.example').default, }, { id: 'categorical', label: 'Categorical ColorHeatmap', codeText: require('./examples/CategoricalColorHeatmap.js.example').default, }, ]; export default class ColorHeatmapExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/ColorHeatmap/examples/CategoricalColorHeatmap.js.example ================================================ const CategoricalColorHeatmapExample = (props) => { // sorry, kinda hacky currently! // working on a better solution... -d const playTypes = ['www', 'open', 'play', 'other']; const platforms = ['desktop', 'mobile', 'webplayer', 'other']; const gridData = playTypes.map(function(n, i) { return platforms.map(function(m, j) { return { x: i, xEnd: i + 1, y: j, yEnd: j+1, value: Math.sin(i * j * 0.1) }; }) }); const data = _.flatten(gridData); return
    d.value} x={d => d.x} xEnd={d => d.xEnd} y={d => d.y} yEnd={d => d.yEnd} colors={['rebeccapurple', 'goldenrod']} interpolator={'lab'} /> i + 0.5)} labelFormat={d => playTypes[Math.round(d - 0.5)]} /> i + 0.5)} labelFormat={d => platforms[Math.round(d - 0.5)]} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/ColorHeatmap/examples/ColorHeatmap.js.example ================================================ const ColorHeatMapExample = (props) => { const gridData = _.range(30).map(m => { return _.range(30).map(n => { return { x: n, xEnd: n + 1, y: m, yEnd: m + 1, value: Math.sin(m * n * 0.01) }; }); }); const data = _.flatten(gridData); return
    d.value} x={d => d.x} xEnd={d => d.xEnd} y={d => d.y} yEnd={d => d.yEnd} colors={['rebeccapurple', 'goldenrod']} interpolator={'lab'} /> d.value} x={d => d.x} xEnd={d => d.xEnd} y={d => d.y} yEnd={d => d.yEnd} valueDomain={[-1, 0, 1]} colors={['Crimson', '#eee', 'ForestGreen']} interpolator={'lab'} />
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/ColorHeatmap/propDocs.json ================================================ { "description": "`ColorHeatmap` can be used to represent individual values contained in a matrix through colors.", "displayName": "ColorHeatmap", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data to be plotted - should be 1D array of all grid values" }, "value": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for the value of the datum, called once per datum, or a\nsingle value to be used for all data." }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for x values, called once per datum, or a\nsingle value to be used for all `x` data." }, "xEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for x end values, called once per datum, or a\nsingle value to be used for all `xEnd` data." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for y values, called once per datum, or a\nsingle value to be used for all `y` data." }, "yEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for y end values, called once per datum, or a\nsingle value to be used for all `yEnd` data." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot" }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot" }, "colorScale": { "type": { "name": "func" }, "required": false, "description": "A d3 color scale or function which receives the datum value as an argument.\nThis will be constructred from the `colors`, `valueDomain` and\n`interpolator` props, if `colorScale` is undefined." }, "colors": { "type": { "name": "array" }, "required": false, "description": "An array of color strings" }, "valueDomain": { "type": { "name": "array" }, "required": false, "description": "Custom domain of the data.\nOtherwise it will be the extent of your data." }, "interpolator": { "type": { "name": "string" }, "required": false, "description": "Interpolator for colors. Possible options include \"hcl\", \"hsl\", \"lab\" and \"rgb\"", "defaultValue": { "value": "'lab'", "computed": false } }, "rectStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each rect,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "rectClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each rect,\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } } } } ================================================ FILE: docs/src/docs/FunnelChart/FunnelChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic FunnelChart', codeText: require('./examples/FunnelChart.js.example').default, }, ]; export default class FunnelChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/FunnelChart/examples/FunnelChart.js.example ================================================ const FunnelChartExample = (props) => { const funnelData = [ {observation: 1, value: 100}, {observation: 2, value: 85}, {observation: 3, value: 42}, {observation: 4, value: 37}, {observation: 5, value: 12} ]; return
    d.observation} y={d => d.value} /> d.value} y={d => d.observation} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/FunnelChart/propDocs.json ================================================ { "description": "`FunnelChart` is used to visualize the progressive reduction of data as it passes\nfrom one phase to another.", "displayName": "FunnelChart", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data to be plotted." }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for X values, called once per datum, or a single value to be used for all data." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for Y values, called once per datum, or a single value to be used for all data." }, "color": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Color applied to the path element,\nor accessor function which returns a class.\n\nNote that the first datum's color would not be applied since it fills in the area of the path" }, "horizontal": { "type": { "name": "bool" }, "required": false, "description": "Boolean which determines whether the chart will be horizontal." }, "pathClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Classname applied to each path element,\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "pathStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Style applied to each path element,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." } } } ================================================ FILE: docs/src/docs/Histogram/HistogramDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic Histogram', codeText: require('./examples/Histogram.js.example').default, }, ]; export default class HistogramExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/Histogram/examples/Histogram.js.example ================================================ const HistogramExample = (props) => { const randomNormalArr = _.times(1000, d3.randomNormal(0, 1)).concat(_.times(1000, d3.randomNormal(3, 0.5))); return
    d} />

    With nicing applied

    d} nice={true} thresholds={10} />

    With specified binDomain

    d} binDomain={[-6, 6]} />
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/Histogram/propDocs.json ================================================ { "description": "`Histogram` is used to represent the distribution of numerical data. Histograms, only relate\nto one variable, where data is typically \"binned\" and counted.", "displayName": "Histogram", "methods": [ { "name": "getScaleType", "docblock": null, "modifiers": ["static"], "params": [], "returns": null }, { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "computeHistogram", "docblock": null, "modifiers": ["static"], "params": [ { "name": "data", "type": null }, { "name": "thresholds", "type": null }, { "name": "accessor", "type": null }, { "name": "binDomain", "type": null }, { "name": "nice", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": false, "description": "The array of data objects for the histogram.\nThese should be individual \"samples\" or \"facts\", not an array of bins -\nthis component will count and bin the samples for you. If you have data that is already binned,\nuse the `` component.", "defaultValue": { "value": "[]", "computed": false } }, "value": { "type": { "name": "func" }, "required": false, "description": "Data value accessor function, called once per datum, which returns the values to bin and plot in the histogram.\nIf `data` is just an array of numbers, this may be the identity function (`d => d`)." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "thresholds": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "array" } ] }, "required": false, "description": "Following [d3's thresholds documentation](https://github.com/d3/d3-array#histogram_thresholds) ...\n\nIf a number `count` is specified, then the domain will be uniformly divided into approximately `count` bins.\n\nIf an array `[x0, x1 ... xN]` is specified, then any value less than `x0` will be placed in the first bin; any value greater than\nor equal to `x0` but less than `x1` will be placed in the second bin; and so on. The generated histogram will have `array.length` + 1 bins.", "defaultValue": { "value": "30", "computed": false } }, "binDomain": { "type": { "name": "array" }, "required": false, "description": "The domain over which your data will be binned. Defined as an array `[min, max]`.\nIf not provided, binDomain will be the domain of your data values by default.\n\nWarning: This prop takes priority if `nice = true`." }, "nice": { "type": { "name": "bool" }, "required": false, "description": "If true, nicely rounds the start and end values of your bins.\nImplemented using [d3's ticks nicing logic](https://github.com/d3/d3-array#ticks).", "defaultValue": { "value": "false", "computed": false } }, "barClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each bar,\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "barStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each bar,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "onMouseMoveBar": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a bar." }, "onMouseEnterBar": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a bar." }, "onMouseLeaveBar": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a bar." } } } ================================================ FILE: docs/src/docs/KernelDensityEstimation/KernelDensityEstimationDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic KernelDensityEstimation', codeText: require('./examples/KernelDensityEstimation.js.example').default, }, ]; export default class KernelDensityEstimationExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/KernelDensityEstimation/examples/KernelDensityEstimation.js.example ================================================ const KernelDensityEstimationExample = (props) => { const randomNormalArr = _.times(1000, d3.randomNormal(0, 1)).concat(_.times(1000, d3.randomNormal(3, 0.5))); return
    d} /> d} bandwidth={0.5} /> d} bandwidth={0.1} /> d} bandwidth={2} />
    {/*
    */} {/**/} {/* Math.random()}*/} {/*pointRadius={1}*/} {/*/>*/} {/**/} {/*
    */}
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/KernelDensityEstimation/propDocs.json ================================================ { "description": "Kernel Density Estimation is still undergoing experimental changes!\nWe do not consider this chart to be production ready but\nencourage you to try it out and contribute to any of its missing features.", "displayName": "KernelDensityEstimation", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [], "returns": null }, { "name": "getKdeData", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data objects." }, "bandwidth": { "type": { "name": "number" }, "required": false, "description": "Kernel bandwidth for kernel density estimator.\nHigh bandwidth => oversmoothing & underfitting; low bandwidth => undersmoothing & overfitting", "defaultValue": { "value": "0.5", "computed": false } }, "sampleCount": { "type": { "name": "number" }, "required": false, "description": "Number of samples to take from the KDE,\nie. the resolution/smoothness of the KDE line - more samples => higher resolution, smooth line.\nDefaults to null, which causes it to be auto-determined based on width.", "defaultValue": { "value": "null", "computed": false } }, "lineStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the line path.", "defaultValue": { "value": "{}", "computed": false } }, "lineClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to the line path.", "defaultValue": { "value": "''", "computed": false } }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for bar X values, called once per bar (datum)." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." } } } ================================================ FILE: docs/src/docs/LineChart/LineChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic LineChart', codeText: require('./examples/LineChart.js.example').default, }, { id: 'interactive', label: 'Interactive LineChart', codeText: require('./examples/InteractiveLineChart.js.example').default, }, ]; export default class LineChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/LineChart/examples/InteractiveLineChart.js.example ================================================ const line1 = d => Math.sin(d*.1); const line2 = d => Math.cos(d*.1); const line3 = d => Math.sin(d*.2) * 1.5; const dPlusOne = d => d + 1; const gridData = _.range(30).map(m => { return _.range(30).map(n => { return { x: n, xEnd: n + 1, y: m, yEnd: m + 1, value: Math.sin(m * n * 0.01) }; }); }); const randomNormalArr = _.times(1000, d3.randomNormal(0, 1)).concat(_.times(1000, d3.randomNormal(3, 0.5))); class InteractiveLineChartExample extends React.Component { state = { activeX: null }; _onMouseMove = ({xValue, yValue}) => { this.setState({activeX: xValue}); }; render() { const {activeX} = this.state; const colors = d3.scaleOrdinal(d3.schemeCategory10); return
    {/**/} {activeX ? : null } {/*{activeX ?*/} {/* [activeX, lineFunc(activeX)])}*/} {/*getX={0}*/} {/*getY={1}*/} {/*pointRadius={5}*/} {/*/> :*/} {/*null*/} {/*}*/} {activeX ?

    {this.state.activeX.toFixed(3)}

    : null }
    } } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/LineChart/examples/LineChart.js.example ================================================ const LineChartExample = (props) => { return
    d} y={d => Math.sin(d*.1)} lineStyle={{stroke: '#ff7f0e', strokeWidth: 3}} /> d} y={d => Math.cos(d*.1)} lineStyle={{stroke: '#1f77b4', strokeWidth: 2}} /> d} y={d => Math.sin(d*.2) * 1.5} lineStyle={{stroke: '#2ca02c', strokeWidth: 1}} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/LineChart/propDocs.json ================================================ { "description": "`LineChart` displays a series of points connected by straight line segments.\nEach `LineChart` renders one line.", "displayName": "LineChart", "methods": [ { "name": "getBisectorState", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getHovered", "docblock": null, "modifiers": [], "params": [ { "name": "x", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data objects" }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for line X values, called once per datum, or a single value to be used for the entire line." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for line Y values, called once per datum, or a single value to be used for the entire line." }, "lineStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the line path.", "defaultValue": { "value": "{}", "computed": false } }, "lineClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to the line path.", "defaultValue": { "value": "''", "computed": false } }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "curve": { "type": { "name": "func" }, "required": false, "description": "D3 curve for path generation", "defaultValue": { "value": "curveLinear", "computed": true } } } } ================================================ FILE: docs/src/docs/MarkerLineChart/MarkerLineChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic MarkerLineChart', codeText: require('./examples/MarkerLineChart.js.example').default, }, { id: 'withBar', label: 'MarkerLineChart with BarChart', codeText: require('./examples/MarkerLineWithBarChart.js.example').default, }, ]; export default class MarkerLineChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/MarkerLineChart/examples/MarkerLineChart.js.example ================================================ const MarkerLineChartExample = (props) => { return
    d} y={d => Math.sin(d / (Math.PI))} /> d} y={d => Math.sin(d / (Math.PI))} />
    Math.sin(d / 10) * 10} xEnd={d => Math.sin((d + 1) / 10) * 10} y={d => Math.sin(d / (Math.PI))} /> Math.sin(d / (Math.PI))} y={d => Math.sin(d / 10) * 10} yEnd={d => Math.sin((d + 1) / 10) * 10} />
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/MarkerLineChart/examples/MarkerLineWithBarChart.js.example ================================================ const MarkerLineWithBarChartExample = (props) => { const data1 = [[1, 12], [2, 23], [3, 14], [4, 17], [5, 29], [6, 21]]; const data2 = [[1, 14], [2, 21], [3, 19], [4, 11], [5, 27], [6, 11]]; return
    d[0]} y={d => d[1]} /> d[0]} y={d => d[1]} lineLength={15} />
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/MarkerLineChart/propDocs.json ================================================ { "description": "`MarkerLineChart` is similar to a bar chart,\nexcept that it just draws a line at the data value, rather than a full bar.\nIf the independent variable is a range, the length of the line will represent that range,\notherwise all lines will be the same length.\nThe dependent variable must be a single value, not a range.", "displayName": "MarkerLineChart", "methods": [ { "name": "getSpacing", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "onMouseEnterLine", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseMoveLine", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseLeaveLine", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "renderRangeValueLine", "docblock": null, "modifiers": [], "params": [ { "name": "d", "type": null }, { "name": "i", "type": null } ], "returns": null }, { "name": "renderValueValueLine", "docblock": null, "modifiers": [], "params": [ { "name": "d", "type": null }, { "name": "i", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data objects. One marker line will be rendered per datum in the array." }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for marker line's X values, called once per line (datum), or a single value to be used for all marker lines.\nIf `horizontal` is `false`, this gets the *independent* variable value on which the line is centered.\nIf `horizontal` is `true`, this gets the start (minimum value) of the *dependent* variable." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for marker line's Y values, called once per line (datum), or a single value to be used for all marker lines.\nIf `horizontal` is `false`, this gets the start (minimum value) of the *dependent* variable.\nIf `horizontal` is `true`, this gets the *independent* variable value on which the line is centered." }, "xEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for the end (maximum X-values) of the *dependent* variable, which is where the marker line is rendered,\nor a single value to be used for all marker lines.\nShould only be passed when `horizontal` is `true` (ignored otherwise)." }, "yEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for the end (maximum Y-values) of the *dependent* variable range which is where the marker line is rendered,\nor a single value to be used for all marker lines.\nShould only be passed when `horizontal` is `false` (ignored otherwise)." }, "horizontal": { "type": { "name": "bool" }, "required": false, "description": "Boolean which determines whether the chart will be horizontal.\nWhen `true` the X-axis will be treated as the dependent axis.", "defaultValue": { "value": "false", "computed": false } }, "lineLength": { "type": { "name": "number" }, "required": false, "description": "Length of the marker line.", "defaultValue": { "value": "10", "computed": false } }, "xScaleType": { "type": { "name": "string" }, "required": false, "description": "D3 scale type for X axis - provided by XYPlot." }, "yScaleType": { "type": { "name": "string" }, "required": false, "description": "D3 scale type for Y axis - provided by XYPlot." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "lineClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to the line path,\nor an accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "lineStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each marker line,\nor an accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "onMouseEnterLine": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a marker line." }, "onMouseMoveLine": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a marker line." }, "onMouseLeaveLine": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a marker line." } } } ================================================ FILE: docs/src/docs/MeasuredValueLabel/MeasuredValueLabelDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic MeasuredValueLabel', codeText: require('./examples/MeasuredValueLabel.js.example').default, }, ]; export default class MeasuredValueLabelExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/MeasuredValueLabel/examples/MeasuredValueLabel.js.example ================================================ const MeasuredValueLabelExample = (props) => { return
    insert example here
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/MeasuredValueLabel/propDocs.json ================================================ { "description": "", "displayName": "MeasuredValueLabel", "methods": [ { "name": "getLabel", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "value": { "type": { "name": "any" }, "required": false, "description": "" }, "format": { "type": { "name": "func" }, "required": false, "description": "", "defaultValue": { "value": "identity", "computed": true } }, "children": { "type": { "name": "any" }, "required": false, "description": "" }, "style": { "defaultValue": { "value": "{\n fontFamily: 'Helvetica, sans-serif',\n fontSize: '20px',\n lineHeight: 1,\n textAnchor: 'middle',\n}", "computed": false }, "required": false } } } ================================================ FILE: docs/src/docs/PieChart/PieChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic PieChart', codeText: require('./examples/PieChart.js.example').default, }, ]; export default class PieChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/PieChart/examples/PieChart.js.example ================================================ class PieChartExample extends React.Component { state = { sinVal: 0 }; _animateValue = () => { const sinVal = Math.min( Math.abs( Math.cos(new Date() * 0.001) * Math.sin(new Date() * 0.0011) + 1, ), 2, ); this.setState({ sinVal }); }; componentDidMount() { this._interval = setInterval(this._animateValue, 20); } componentWillUnmount() { clearInterval(this._interval); } getPieSliceFill = datum => { const color = d3.interpolateSinebow(datum / 100); return { fill: color, }; }; render() { const slice = d => d; return (
    `${val}%`} pieSliceLabelDistance={20} holeRadius={75} radius={100} marginTop={50} marginBottom={50} marginLeft={50} marginRight={50} />
    ); } } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/PieChart/propDocs.json ================================================ { "description": "`PieChart` is a circular graphic that is divided into slices to illustrate proportions or percentages.", "displayName": "PieChart", "methods": [ { "name": "onMouseEnterSlice", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseMoveSlice", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseLeaveSlice", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseEnterLine", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseMoveLine", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseLeaveLine", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onClick", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "renderMarkerLine", "docblock": null, "modifiers": [], "params": [ { "name": "pathData", "type": null } ], "returns": null }, { "name": "renderSliceLabel", "docblock": null, "modifiers": [], "params": [ { "name": "value", "type": null }, { "name": "slice", "type": null }, { "name": "center", "type": null }, { "name": "radius", "type": null }, { "name": "index", "type": null } ], "returns": null }, { "name": "renderCenterLabel", "docblock": null, "modifiers": [], "params": [ { "name": "center", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data to plot with pie chart." }, "slice": { "type": { "name": "custom", "raw": "CustomPropTypes.getter.isRequired" }, "required": false, "description": "" }, "total": { "type": { "name": "number" }, "required": false, "description": "Total expected sum of all the pie slice values.\nIf provided && slices don't add up to total, an \"empty\" slice will be rendered for the rest\nIf not provided, will be the sum of all values (ie. all values will always add up to 100%)" }, "width": { "type": { "name": "number" }, "required": false, "description": "Optional width of the SVG\nif not passed in and height is passed in, same # is used for both (ie. width=100 means height=100 also)\nif neither is passed, but radius is, radius+margins is used\nif neither is passed, and radius isn't either, 150 is used" }, "height": { "type": { "name": "number" }, "required": false, "description": "Optional height of the SVG\nif not passed in and width is passed in, same # is used for both (ie. width=100 means height=100 also)\nif neither is passed, but radius is, radius+margins is used\nif neither is passed, and radius isn't either, 150 is used" }, "radius": { "type": { "name": "number" }, "required": false, "description": "Optional radius of the pie chart, inferred from margin/width/height if not provided." }, "marginTop": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "marginBottom": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "marginLeft": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "marginRight": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "holeRadius": { "type": { "name": "number" }, "required": false, "description": "Optional radius of the \"donut hole\" circle drawn on top of the pie chart to turn it into a donut chart." }, "centerLabel": { "type": { "name": "string" }, "required": false, "description": "Optional label text to display in the middle of the pie/donut." }, "centerLabelClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to center label.", "defaultValue": { "value": "''", "computed": false } }, "centerLabelStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to center label.", "defaultValue": { "value": "{}", "computed": false } }, "getPieSliceLabel": { "type": { "name": "func" }, "required": false, "description": "Accessor for getting labels that are rendered outside each slice of the pie chart.\nIf not provided no labels will be rendered." }, "pieSliceLabelStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object applied to each slice label.\nWhen a function is provided it will receive the value for the slice and should return the\nstyle object for that slice's label.\nUsed along with `getPieSliceLabel`." }, "pieSliceLabelDistance": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "func" } ] }, "required": false, "description": "Distance to render the label from the outer edge of the pie chart. Positive numbers will\nmove away from the center and negative numbers will move toward the center.\nWhen a function is provided it will receive the value for the slice and should return the\ndistance for that slice's label.\nUsed along with `getPieSliceLabel`." }, "pieSliceClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each pie slice,\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "pieSliceStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object applied to each pie slice.\nWhen a function is provided it will receive the value and index for the\nslice as its parameters, and should return the style object for the slice.", "defaultValue": { "value": "{}", "computed": false } }, "markerLineValue": { "type": { "name": "number" }, "required": false, "description": "Value for where to place markerline." }, "markerLineClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to marker line.", "defaultValue": { "value": "''", "computed": false } }, "markerLineStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to marker line.", "defaultValue": { "value": "{}", "computed": false } }, "markerLineOverhangInner": { "type": { "name": "number" }, "required": false, "description": "Number of pixels marker line hangs inside the pie chart.", "defaultValue": { "value": "2", "computed": false } }, "markerLineOverhangOuter": { "type": { "name": "number" }, "required": false, "description": "Number of pixels marker line hangs outside the pie chart.", "defaultValue": { "value": "2", "computed": false } }, "onMouseEnterLine": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters the marker line." }, "onMouseMoveLine": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within the marker line." }, "onMouseLeaveLine": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves the marker line." }, "onMouseEnterSlice": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a pie slice." }, "onMouseMoveSlice": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a pie slice." }, "onMouseLeaveSlice": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a pie slice." }, "onClick": { "type": { "name": "func" }, "required": false, "description": "`click` event handler callback, called when user click a pie slice." } } } ================================================ FILE: docs/src/docs/RangeBarChart/RangeBarChartDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic RangeBarChart', codeText: require('./examples/RangeBarChart.js.example').default, }, ]; export default class RangeBarChartExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/RangeBarChart/examples/RangeBarChart.js.example ================================================ const RangeBarChartExample = (props) => { const count = 30; const dateDomain = [new Date(1992, 0, 1), new Date(2001, 0, 1)]; const numberDomain = [-2, 2]; const ordinalDomain = _.range(count).map(n => String.fromCharCode(97 + n)); const dates = _.range(30).map(n => new Date(+(dateDomain[0]) + (n * 1000 * 60 * 60 * 24 * 100))); const addDays = (date, n) => new Date(+(date) + (1000 * 60 * 60 * 24 * n)); const numberRanges = _.range(30).map(n => [Math.sin(n/5), Math.sin(n/8) + Math.cos(n/5)].sort((a, b) => (a - b))); const dateRanges = _.range(30).map(n => [dates[n], addDays(dates[n], (Math.sin(n/8) * 100))].sort((a, b) => (a - b))); const numberNumberRangeData = _.zip(_.range(30), numberRanges); const dateNumberRangeData = _.zip(dates, numberRanges); const ordinalNumberRangeData = _.zip(ordinalDomain, numberRanges); const numberDateRangeData = _.zip(_.range(30), dateRanges); const dateDateRangeData = _.zip(dates, dateRanges); const ordinalDateRangeData = _.zip(ordinalDomain, dateRanges); return
    {[true, false].map(horizontal => { const title = horizontal ? "Horizontal" : "Vertical"; const getters = horizontal ? {y: d => d[0], x: d => d[1][0], xEnd: d => d[1][1]} : {x: d => d[0], y: d => d[1][0], yEnd: d => d[1][1]}; const depDomain = horizontal ? 'xDomain' : 'yDomain'; const indepDomain = horizontal ? 'yDomain' : 'xDomain'; const size = {width: 300, height: 350}; return

    {title}

    })} d} y={d => Math.sin(d*2)} yEnd={d => Math.sin(d*2) * Math.cos(d*2)} barThickness={6} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/RangeBarChart/propDocs.json ================================================ { "description": "`RangeBarChart` is a variation on the standard bar chart. Just like a normal bar chart, each bar represents a single\nvalue on the *independent* axis (X axis for vertical bars), and is centered on this value.\nHowever, on the *dependent* axis, each bar represents a *range* (min/max) of values,\nrather than always starting at zero.", "displayName": "RangeBarChart", "methods": [ { "name": "getDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getSpacing", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data to be plotted. One bar will be rendered per datum in this array." }, "horizontal": { "type": { "name": "bool" }, "required": false, "description": "Boolean which determines whether the chart will use horizontal or vertical bars.\nWhen `true`, bars will be horizontal, ie. the X-axis will be treated as the dependent axis.", "defaultValue": { "value": "false", "computed": false } }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for bar X values, called once per bar (datum), or a single value to be used for all bars.\nIf `horizontal` is `false`, this gets the *independent* variable value on which the bar is centered.\nIf `horizontal` is `true`, this gets the start (minimum value) of the *dependent* variable range which is spanned by the bar's length." }, "xEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for the end (maximum X-values) of the *dependent* variable range which is spanned by the bar's length,\nor a single value to be used for all bars.\nShould only be passed when `horizontal` is `true` (ignored otherwise)." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for bar Y values, called once per bar (datum), or a single value to be used for all bars.\nIf `horizontal` is `false`, this gets the start (minimum value) of the *dependent* variable range which is spanned by the bar's length.\nIf `horizontal` is `true`, this gets the *independent* variable value on which the bar is centered." }, "yEnd": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for the end (maximum Y-values) of the *dependent* variable range which is spanned by the bar's length,\nor a single value to be used for all bars.\nShould only be passed when `horizontal` is `false` (ignored otherwise)." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "barThickness": { "type": { "name": "number" }, "required": false, "description": "Thickness (in pixels) of each bar (ie. bar height if `horizontal` is `true`, otherwise bar width),", "defaultValue": { "value": "8", "computed": false } }, "barStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each bar,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "barClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each bar,\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "onMouseMoveBar": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a bar." }, "onMouseEnterBar": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a bar." }, "onMouseLeaveBar": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a bar." }, "onClick": { "type": { "name": "func" }, "required": false, "description": "`click` event handler callback, called when user clicks the bar." }, "showLabels": { "type": { "name": "bool" }, "required": false, "description": "Conditional if column should display values above/beside each bar." }, "barLabelFormat": { "type": { "name": "func" }, "required": false, "description": "Format to use for the values or accessor that returns the updated value on each bar." }, "labelDistance": { "type": { "name": "number" }, "required": false, "description": "The distance from the column the text appears in pixels - default is 24." }, "labelClassName": { "type": { "name": "string" }, "required": false, "description": "Class name(s) to be included on each bar's element." } } } ================================================ FILE: docs/src/docs/RangeRect/RangeRectDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic RangeRect', codeText: require('./examples/RangeRect.js.example').default, }, ]; export default class RangeRectExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/RangeRect/examples/RangeRect.js.example ================================================ const RangeRectExample = (props) => { return
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/RangeRect/propDocs.json ================================================ { "description": "RangeRect is a low-level component to be used in XYPlot-type charts (namely AreaBarChart).\nIt is a rectangle which represents a range (min & max) of values on both (X & Y) axes.\nIt takes a single datum object, and getters which specify how to retrieve the range values from it.", "displayName": "RangeRect", "methods": [], "props": { "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for the X (horizontal) axis." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for the Y (vertical) axis." }, "x": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": true, "description": "Starting (minimum) X value (left edge, usually) of the rectangle range" }, "xEnd": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": true, "description": "Ending (maximum) X value (right edge, usually) of the rectangle range" }, "y": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": true, "description": "Starting (minimum) Y value (bottom edge, usually) of the rectangle range" }, "yEnd": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": true, "description": "Ending (maximum) Y value (top edge, usually) of the rectangle range" }, "className": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to the rectangle element", "defaultValue": { "value": "''", "computed": false } }, "style": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the rectangle element", "defaultValue": { "value": "{}", "computed": false } }, "onMouseMove": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within the rectangle." }, "onMouseEnter": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters the rectangle." }, "onMouseLeave": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves the rectangle." } } } ================================================ FILE: docs/src/docs/SankeyDiagram/SankeyDiagramDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic SankeyDiagram', codeText: require('./examples/SankeyDiagram.js.example').default, }, { id: 'interactive', label: 'Interactive Sankey Diagram', codeText: require('./examples/SankeyInteractive.js.example').default, }, ]; export default class SankeyDiagramExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/SankeyDiagram/examples/SankeyDiagram.js.example ================================================ const SankeyDiagramExample = (props) => { const graph = getSampleData(); return
    ; }; ReactDOM.render(, mountNode); function getSampleData() { return {"nodes":[ {"name":"Agricultural 'waste'"}, {"name":"Bio-conversion"}, {"name":"Liquid"}, {"name":"Losses"}, {"name":"Solid"}, {"name":"Gas"}, {"name":"Biofuel imports"}, {"name":"Biomass imports"}, {"name":"Coal imports"}, {"name":"Coal"}, {"name":"Coal reserves"}, {"name":"District heating"}, {"name":"Industry"}, {"name":"Heating and cooling - commercial"}, {"name":"Heating and cooling - homes"}, {"name":"Electricity grid"}, {"name":"Over generation / exports"}, {"name":"H2 conversion"}, {"name":"Road transport"}, {"name":"Agriculture"}, {"name":"Rail transport"}, {"name":"Lighting & appliances - commercial"}, {"name":"Lighting & appliances - homes"}, {"name":"Gas imports"}, {"name":"Ngas"}, {"name":"Gas reserves"}, {"name":"Thermal generation"}, {"name":"Geothermal"}, {"name":"H2"}, {"name":"Hydro"}, {"name":"International shipping"}, {"name":"Domestic aviation"}, {"name":"International aviation"}, {"name":"National navigation"}, {"name":"Marine algae"}, {"name":"Nuclear"}, {"name":"Oil imports"}, {"name":"Oil"}, {"name":"Oil reserves"}, {"name":"Other waste"}, {"name":"Pumped heat"}, {"name":"Solar PV"}, {"name":"Solar Thermal"}, {"name":"Solar"}, {"name":"Tidal"}, {"name":"UK land based bioenergy"}, {"name":"Wave"}, {"name":"Wind"} ], "links":[ {"source":0,"target":1,"value":124.729}, {"source":1,"target":2,"value":0.597}, {"source":1,"target":3,"value":26.862}, {"source":1,"target":4,"value":280.322}, {"source":1,"target":5,"value":81.144}, {"source":6,"target":2,"value":35}, {"source":7,"target":4,"value":35}, {"source":8,"target":9,"value":11.606}, {"source":10,"target":9,"value":63.965}, {"source":9,"target":4,"value":75.571}, {"source":11,"target":12,"value":10.639}, {"source":11,"target":13,"value":22.505}, {"source":11,"target":14,"value":46.184}, {"source":15,"target":16,"value":104.453}, {"source":15,"target":14,"value":113.726}, {"source":15,"target":17,"value":27.14}, {"source":15,"target":12,"value":342.165}, {"source":15,"target":18,"value":37.797}, {"source":15,"target":19,"value":4.412}, {"source":15,"target":13,"value":40.858}, {"source":15,"target":3,"value":56.691}, {"source":15,"target":20,"value":7.863}, {"source":15,"target":21,"value":90.008}, {"source":15,"target":22,"value":93.494}, {"source":23,"target":24,"value":40.719}, {"source":25,"target":24,"value":82.233}, {"source":5,"target":13,"value":0.129}, {"source":5,"target":3,"value":1.401}, {"source":5,"target":26,"value":151.891}, {"source":5,"target":19,"value":2.096}, {"source":5,"target":12,"value":48.58}, {"source":27,"target":15,"value":7.013}, {"source":17,"target":28,"value":20.897}, {"source":17,"target":3,"value":6.242}, {"source":28,"target":18,"value":20.897}, {"source":29,"target":15,"value":6.995}, {"source":2,"target":12,"value":121.066}, {"source":2,"target":30,"value":128.69}, {"source":2,"target":18,"value":135.835}, {"source":2,"target":31,"value":14.458}, {"source":2,"target":32,"value":206.267}, {"source":2,"target":19,"value":3.64}, {"source":2,"target":33,"value":33.218}, {"source":2,"target":20,"value":4.413}, {"source":34,"target":1,"value":4.375}, {"source":24,"target":5,"value":122.952}, {"source":35,"target":26,"value":839.978}, {"source":36,"target":37,"value":504.287}, {"source":38,"target":37,"value":107.703}, {"source":37,"target":2,"value":611.99}, {"source":39,"target":4,"value":56.587}, {"source":39,"target":1,"value":77.81}, {"source":40,"target":14,"value":193.026}, {"source":40,"target":13,"value":70.672}, {"source":41,"target":15,"value":59.901}, {"source":42,"target":14,"value":19.263}, {"source":43,"target":42,"value":19.263}, {"source":43,"target":41,"value":59.901}, {"source":4,"target":19,"value":0.882}, {"source":4,"target":26,"value":400.12}, {"source":4,"target":12,"value":46.477}, {"source":26,"target":15,"value":525.531}, {"source":26,"target":3,"value":787.129}, {"source":26,"target":11,"value":79.329}, {"source":44,"target":15,"value":9.452}, {"source":45,"target":1,"value":182.01}, {"source":46,"target":15,"value":19.013}, {"source":47,"target":15,"value":289.366} ]}; } ================================================ FILE: docs/src/docs/SankeyDiagram/examples/SankeyInteractive.js.example ================================================ const graph = getSampleData(); class SankeyInteractiveExample extends React.Component { state = { activeNode: undefined, activeLinkSource: undefined, activeLinkTarget: undefined }; render() { return
    `Step: ${step}`} stepLabelPadding={16} nodes={graph.nodes} links={graph.links} nodeId={getNodeId} nodeAlignment="left" nodeLabelPlacement="after" nodeLabelText={getNodeLabel} nodeStyle={(node) => { const nodeId = getNodeId(node); if(nodeId === this.state.activeNode) return {fill: 'red'}; if(nodeId === this.state.activeLinkSource || nodeId === this.state.activeLinkTarget) return {fill: 'blue'}; return {}; }} linkStyle={(link) => { const sourceId = getNodeId(link.source); const targetId = getNodeId(link.target); if(this.state.activeLinkSource === sourceId && this.state.activeLinkTarget === targetId) return {stroke: 'thistle'}; return {}; }} onMouseEnterNode={(event, info) => { this.setState({activeNode: getNodeId(info.node)}) }} onMouseLeaveNode={(event, info) => { this.setState({activeNode: undefined}) }} onMouseEnterLink={(event, info) => { this.setState({ activeLinkSource: getNodeId(info.link.source), activeLinkTarget: getNodeId(info.link.target), }); }} onMouseLeaveLink={(event, info) => { this.setState({activeLinkSource: undefined, activeLinkTarget: undefined}); }} />
    ; } } ReactDOM.render(, mountNode); function getNodeId(node) { return node.id } function getNodeLabel(node) { return node.label; } function getSampleData() { return { nodes: [ {id: 'week', label: "Week"}, {id: 'weekdays', label: "Weekdays"}, {id: 'weekends', label: "Weekends"}, {id: 'sleep', label: "Sleep"}, {id: 'work', label: "Work"}, {id: 'eating', label: "Eating"}, {id: 'free', label: "Free Time"}, {id: 'meetings', label: "Meetings"}, {id: 'communication', label: "Communication"}, {id: 'programming', label: "Programming"}, {id: 'socializing', label: "Socializing"}, {id: 'media', label: "Media (TV, books, etc.)"}, {id: 'outdoors', label: "Outdoors"}, ], links: [ {source: 'week', target: 'weekdays', value: 120}, {source: 'week', target: 'weekends', value: 48}, {source: 'weekdays', target: 'sleep', value: 40}, {source: 'weekdays', target: 'work', value: 40}, {source: 'weekdays', target: 'eating', value: 10}, {source: 'weekdays', target: 'free', value: 30}, {source: 'weekends', target: 'sleep', value: 16}, {source: 'weekends', target: 'eating', value: 4}, {source: 'weekends', target: 'free', value: 28}, {source: 'free', target: 'socializing', value: 20}, {source: 'free', target: 'media', value: 20}, {source: 'free', target: 'outdoors', value: 10}, {source: 'work', target: 'meetings', value: 10}, {source: 'work', target: 'communication', value: 8}, {source: 'work', target: 'programming', value: 22} ] } } ================================================ FILE: docs/src/docs/SankeyDiagram/propDocs.json ================================================ { "description": "A `SankeyDiagram` is a type of flow diagram which visualizes directed flow between nodes\nof a network graph. Currently only *acyclic* networks are supported.", "displayName": "SankeyDiagram", "methods": [ { "name": "makeSankeyGraph", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "nodes": { "type": { "name": "arrayOf", "value": { "name": "object" } }, "required": true, "description": "Array of node objects, represented by vertical rectangles.\nThese represent the base entities which links flow into & out of." }, "links": { "type": { "name": "arrayOf", "value": { "name": "shape", "value": { "source": { "name": "union", "value": [ { "name": "string" }, { "name": "number" } ], "required": false }, "target": { "name": "union", "value": [ { "name": "string" }, { "name": "number" } ], "required": false }, "value": { "name": "number", "required": false } } } }, "required": true, "description": "Array of link objects, represented by curved paths between nodes.\nLinks represent a magnitude of flow between one node and another.\nEach should have a 'source' node [identifier], a 'target' node [identifier],\nand a numerical value representing flow magnitude." }, "width": { "type": { "name": "number" }, "required": false, "description": "Width of the SVG element.", "defaultValue": { "value": "400", "computed": false } }, "height": { "type": { "name": "number" }, "required": false, "description": "Height of the SVG element.", "defaultValue": { "value": "300", "computed": false } }, "shouldClone": { "type": { "name": "bool" }, "required": false, "description": "Boolean which decides if the nodes & links props should be cloned before being mutated into\nthe Sankey data structure. Passing `false` is faster, but may cause unintended side effects\nif nodes or links data are used elsewhere", "defaultValue": { "value": "true", "computed": false } }, "className": { "type": { "name": "string" }, "required": false, "description": "`className` attribute to be applied to the SVG element.", "defaultValue": { "value": "''", "computed": false } }, "style": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the SVG element.", "defaultValue": { "value": "{}", "computed": false } }, "standalone": { "type": { "name": "bool" }, "required": false, "description": "Boolean which determines whether the chart should be rendered as a standalone `` element\nor a `` group element (as a child within an existing ``).\nTrue by default, pass `false` to render in a ``.", "defaultValue": { "value": "true", "computed": false } }, "marginTop": { "type": { "name": "number" }, "required": false, "description": "Internal top margin, in pixels. Generally used to leave extra space inside the SVG for labels.", "defaultValue": { "value": "0", "computed": false } }, "marginBottom": { "type": { "name": "number" }, "required": false, "description": "Internal bottom margin, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "marginLeft": { "type": { "name": "number" }, "required": false, "description": "Internal left margin, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "marginRight": { "type": { "name": "number" }, "required": false, "description": "Internal right margin, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "showNodes": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "func" } ] }, "required": false, "description": "Boolean which determines if node rectangles should be shown,\nor function (`showNode(node, graph)`) which returns a boolean", "defaultValue": { "value": "true", "computed": false } }, "nodeId": { "type": { "name": "func" }, "required": false, "description": "Accessor function `nodeId(node, graph)` which specifies how to access the ID of each node object.\nThese should be the same identifiers used by `links[].source` and `.target`.\nUses the node's index in `nodes` array by default.", "defaultValue": { "value": "node => node.index", "computed": false } }, "nodeWidth": { "type": { "name": "number" }, "required": false, "description": "Width (in pixels) of the vertical node rectangles.", "defaultValue": { "value": "12", "computed": false } }, "nodePadding": { "type": { "name": "number" }, "required": false, "description": "Vertical padding (in pixels) between each of the node lines.", "defaultValue": { "value": "8", "computed": false } }, "nodeAlignment": { "type": { "name": "enum", "value": [ { "value": "'left'", "computed": false }, { "value": "'right'", "computed": false }, { "value": "'center'", "computed": false }, { "value": "'justify'", "computed": false } ] }, "required": false, "description": "Node alignment method used to layout the nodes.\nMust be 'left', 'right', 'center', or 'justify'.\nSee [d3-sankey alignment docs](https://github.com/d3/d3-sankey#alignments) for more details.", "defaultValue": { "value": "'justify'", "computed": false } }, "nodeClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "`className` attribute to be applied to each node,\nor accessor function which returns a class (string).", "defaultValue": { "value": "''", "computed": false } }, "nodeStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each node,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "nodeSort": { "type": { "name": "func" }, "required": false, "description": "Node sort function" }, "onMouseEnterNode": { "type": { "name": "func" }, "required": false, "description": "Node `mouseenter` event handler, called when user's mouse enters a node." }, "onMouseLeaveNode": { "type": { "name": "func" }, "required": false, "description": "Node `mouseleave` event handler, called when user's mouse leaves a node." }, "onMouseMoveNode": { "type": { "name": "func" }, "required": false, "description": "Node `mousemove` event handler, called when user's mouse moves within a node." }, "onMouseDownNode": { "type": { "name": "func" }, "required": false, "description": "Node `mousedown` event handler, called when user's mouse button is depressed within a node." }, "onMouseUpNode": { "type": { "name": "func" }, "required": false, "description": "Node `mouseup` event handler, called when user's mouse button is released within a node." }, "onClickNode": { "type": { "name": "func" }, "required": false, "description": "Node `click` event handler, called when user clicks within a node." }, "showLinks": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "func" } ] }, "required": false, "description": "Boolean which determines if link paths should be shown,\nor function (`showLink(link, graph)`) which returns a boolean", "defaultValue": { "value": "true", "computed": false } }, "linkClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each link,\nor accessor function which returns a class (string).", "defaultValue": { "value": "''", "computed": false } }, "linkSort": { "type": { "name": "func" }, "required": false, "description": "Link sort function" }, "linkStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each link,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "onMouseEnterLink": { "type": { "name": "func" }, "required": false, "description": "Link `mouseenter` event handler, called when user's mouse enters a link." }, "onMouseLeaveLink": { "type": { "name": "func" }, "required": false, "description": "Link `mouseleave` event handler, called when user's mouse leaves a link." }, "onMouseMoveLink": { "type": { "name": "func" }, "required": false, "description": "Link `mousemove` event handler, called when user's mouse moves within a link." }, "onMouseDownLink": { "type": { "name": "func" }, "required": false, "description": "Link `mousedown` event handler, called when user's mouse button is depressed within a link." }, "onMouseUpLink": { "type": { "name": "func" }, "required": false, "description": "Link `mouseup` event handler, called when user's mouse button is released within a link." }, "onClickLink": { "type": { "name": "func" }, "required": false, "description": "Link `click` event handler, called when user clicks within a link." }, "showNodeTerminals": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "func" } ] }, "required": false, "description": "Boolean which determines if node terminals should be shown,\nor function (`showLink(link, graph)`) which returns a boolean.\nTerminals are bars that run alongside to show the amount\nwhich has flowed *in* but not *out*", "defaultValue": { "value": "true", "computed": false } }, "nodeTerminalWidth": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "number" } ] }, "required": false, "description": "Width (in pixels) of the node terminal rectangles,\nor accessor function `f(node, graph)` which returns a width.", "defaultValue": { "value": "5", "computed": false } }, "nodeTerminalDistance": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "func" } ] }, "required": false, "description": "Distance (in pixels) between nodes and their terminals,\nor accessor function `f(node, graph)` which returns a distance.", "defaultValue": { "value": "1", "computed": false } }, "nodeTerminalClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "`className` attribute to be applied to each node terminal,\nor accessor function which returns a class (string).", "defaultValue": { "value": "''", "computed": false } }, "nodeTerminalStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each node terminal,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "nodeTerminalAttributes": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Attributes object to be applied to each node terminal element,\nor accessor function which returns an object.", "defaultValue": { "value": "{ rx: 2, ry: 2 }", "computed": false } }, "onMouseEnterNodeTerminal": { "type": { "name": "func" }, "required": false, "description": "Node terminal `mouseenter` event handler, called when user's mouse enters a node terminal." }, "onMouseLeaveNodeTerminal": { "type": { "name": "func" }, "required": false, "description": "Node terminal `mouseleave` event handler, called when user's mouse leaves a node terminal." }, "onMouseMoveNodeTerminal": { "type": { "name": "func" }, "required": false, "description": "Node terminal `mousemove` event handler, called when user's mouse moves within a node terminal." }, "onMouseDownNodeTerminal": { "type": { "name": "func" }, "required": false, "description": "Node terminal `mousedown` event handler, called when user's mouse button is depressed within a node terminal." }, "onMouseUpNodeTerminal": { "type": { "name": "func" }, "required": false, "description": "Node terminal `mouseup` event handler, called when user's mouse button is released within a node terminal." }, "onClickNodeTerminal": { "type": { "name": "func" }, "required": false, "description": "Node terminal `click` event handler, called when user clicks within a node terminal." }, "showNodeLabels": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "func" } ] }, "required": false, "description": "Boolean which determines if node labels should be shown,\nor function (`showLink(link, graph)`) which returns a boolean", "defaultValue": { "value": "true", "computed": false } }, "nodeLabelPlacement": { "type": { "name": "union", "value": [ { "name": "enum", "value": [ { "value": "'before'", "computed": false }, { "value": "'after'", "computed": false }, { "value": "'above'", "computed": false }, { "value": "'below'", "computed": false } ] }, { "name": "func" } ] }, "required": false, "description": "Placement of the node label relative to the node rectangle.\nExpects 'before', 'after', 'above' or 'below', or a function which returns one of these.\nBy default, labels in the left half of the diagram are placed 'after' and those in the right half 'before'", "defaultValue": { "value": "(node, graph) => {\n return node.depth < graph.maxDepth / 2 ? 'after' : 'before';\n}", "computed": false } }, "nodeLabelDistance": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "func" } ] }, "required": false, "description": "Distance (in pixels) between nodes and their labels,\nor accessor function `f(node, graph)` which returns a distance.", "defaultValue": { "value": "4", "computed": false } }, "nodeLabelText": { "type": { "name": "func" }, "required": false, "description": "Accessor function `nodeLabelText(node, graph)` which returns the content to be used for node labels.\nThe function may return a string/number (rendered as SVG ``),\nor arbitrary React SVG element(s) (rendered as-is inside the SVG).\nNOTE: in the latter case (returning arbitrary SVG), `nodeLabelPlacement`, `nodeLabelDistance`,\n`nodeLabelClassName` and `nodeLabelStyle` props will not be applied -\nuser is responsible for all positioning and attributes on this element.", "defaultValue": { "value": "(node, graph, props) => {\n if (has(node, 'name')) return node.name;\n if (has(node, 'label')) return node.label;\n return getValue(props.nodeId, node, graph, props);\n}", "computed": false } }, "nodeLabelClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "`className` attribute to be applied to each node label,\nor accessor function which returns a class (string).", "defaultValue": { "value": "''", "computed": false } }, "nodeLabelStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each node label,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "showLinkLabels": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "func" } ] }, "required": false, "description": "Boolean which determines if link labels should be shown,\nor function (`showLink(link, graph)`) which returns a boolean", "defaultValue": { "value": "false", "computed": false } }, "linkLabelText": { "type": { "name": "func" }, "required": false, "description": "Accessor function `f(link, graph)` which returns the text to be used for link labels.", "defaultValue": { "value": "(link, graph, props) => {\n const linkValue = link.value || 0;\n const valueText = formatPrefix('.1~f', linkValue)(linkValue);\n const sourceText = getValue(\n props.nodeLabelText,\n link.source,\n graph,\n props,\n );\n const targetText = getValue(\n props.nodeLabelText,\n link.target,\n graph,\n props,\n );\n return `${sourceText}→${targetText}: ${valueText}`;\n}", "computed": false } }, "linkLabelClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "`className` attribute to be applied to each link label,\nor accessor function which returns a class (string).", "defaultValue": { "value": "''", "computed": false } }, "linkLabelStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each link label,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "linkLabelAttributes": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Attributes object to be applied to each link label element,\nor accessor function which returns an object.", "defaultValue": { "value": "{}", "computed": false } }, "linkLabelStartOffset": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "number" } ] }, "required": false, "description": "`startOffset` attribute to apply to the link label `` element.\nMay be a number (in SVG units) or percent string (`\"25%\"`)", "defaultValue": { "value": "'25%'", "computed": false } }, "showLinkSourceLabels": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "func" } ] }, "required": false, "description": "Boolean which determines if link *source* labels should be shown,\nor function (`showLink(link, graph)`) which returns a boolean", "defaultValue": { "value": "false", "computed": false } }, "linkSourceLabelText": { "type": { "name": "func" }, "required": false, "description": "Accessor function `f(link, graph)` which returns the text to be used for link *source* labels.", "defaultValue": { "value": "(link, graph, props) => {\n const valueRelative = link.valueSourceRelative;\n if (valueRelative === null || !isFinite(valueRelative)) return '';\n const percentText =\n valueRelative < 0.001 ? '<0.1%' : numberFormat('.1~%')(valueRelative);\n return `${percentText} to ${getValue(\n props.nodeLabelText,\n link.target,\n graph,\n props,\n )}`;\n}", "computed": false } }, "linkSourceLabelClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "`className` attribute to be applied to each link *source* label,\nor accessor function which returns a class (string).", "defaultValue": { "value": "''", "computed": false } }, "linkSourceLabelStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each link *source* label,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "linkSourceLabelAttributes": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Attributes object to be applied to each link *source* label,\nor accessor function which returns an object.", "defaultValue": { "value": "{}", "computed": false } }, "linkSourceLabelStartOffset": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "number" } ] }, "required": false, "description": "`startOffset` attribute to apply to the link *source* label `` element.\nMay be a number (in SVG units) or percent string (`\"25%\"`)", "defaultValue": { "value": "'2%'", "computed": false } }, "showLinkTargetLabels": { "type": { "name": "union", "value": [ { "name": "bool" }, { "name": "func" } ] }, "required": false, "description": "Boolean which determines if link *target* labels should be shown,\nor function (`showLink(link, graph)`) which returns a boolean", "defaultValue": { "value": "false", "computed": false } }, "linkTargetLabelText": { "type": { "name": "func" }, "required": false, "description": "Accessor function `f(link, graph)` which returns the text to be used for link *target* labels.", "defaultValue": { "value": "(link, graph, props) => {\n const valueRelative = link.valueTargetRelative;\n if (valueRelative === null || !isFinite(valueRelative)) return '';\n const percentText =\n valueRelative < 0.001 ? '<0.1%' : numberFormat('.1~%')(valueRelative);\n return `${percentText} from ${getValue(\n props.nodeLabelText,\n link.source,\n graph,\n props,\n )}`;\n}", "computed": false } }, "linkTargetLabelClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "`className` attribute to be applied to each link *target* label,\nor accessor function which returns a class (string).", "defaultValue": { "value": "''", "computed": false } }, "linkTargetLabelStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each link *target* label,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "linkTargetLabelAttributes": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Attributes object to be applied to each link *target* label,\nor accessor function which returns an object.", "defaultValue": { "value": "{}", "computed": false } }, "linkTargetLabelStartOffset": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "number" } ] }, "required": false, "description": "`startOffset` attribute to apply to the link *target* label `` element.\nMay be a number (in SVG units) or percent string (`\"25%\"`)", "defaultValue": { "value": "'98%'", "computed": false } }, "stepLabelText": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Text for step label or\naccessor function `f(step)` that returns the label text" }, "stepLabelClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "`className` attribute applied to each label,\nor accessor function which returns a class (string)" }, "stepLabelStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each label,\nor accessor function which returns an object" }, "stepLabelPadding": { "type": { "name": "number" }, "required": false, "description": "Vertical padding (in pixels) between step label and uppermost positioned node of that step", "defaultValue": { "value": "8", "computed": false } } } } ================================================ FILE: docs/src/docs/ScatterPlot/ScatterPlotDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic ScatterPlot', codeText: require('./examples/ScatterPlot.js.example').default, }, ]; export default class ScatterPlotExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/ScatterPlot/examples/ScatterPlot.js.example ================================================ const randomScatter = [ _.zip(randomWalk(20, 100), randomWalk(20, 100)), _.zip(randomWalk(3000, 10000), randomWalk(3000, 10000)), _.zip(randomWalk(50, 100), randomWalk(50, 100)), _.zip(randomWalk(100, 100), randomWalk(100, 100)), _.zip(randomWalk(200, 100), randomWalk(200, 100)) ]; const emojis = ["😀", "😁", "😂", "😅", "😆", "😇", "😈", "👿", "😉", "😊", "😐", "😑", "😒", "😓", "😔", "😕", "😖", "😗", "😘", "😙", "😚", "😛", "😜", "😝", "👻", "👹", "👺", "💩", "💀", "👽", "👾", "🙇", "💁", "🙅", "🙆", "🙋", "🙎", "🙍", "💆", "💇"]; const ScatterPlotExample = () => { const rectangleSymbol = ; const triangleSymbol = ; const randomEmoji = (d, i) => _.sample(emojis); return
    d[0]} y={d => d[1]} pointSymbol={rectangleSymbol} /> d[0]} y={d => d[1]} pointSymbol={randomEmoji} pointOffset={[0, 2]} /> d[0]} y={d => d[1]} pointSymbol={(d, i) => i} /> d[0]} y={d => d[1]} pointSymbol={triangleSymbol} pointOffset={[-4, -3]} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/ScatterPlot/propDocs.json ================================================ { "description": "`ScatterPlot` displays its data as a collection of points. Each point represents\nthe relationship between two variables, one plotted along the x-axis and the other on the y-axis.", "displayName": "ScatterPlot", "methods": [ { "name": "onMouseEnterPoint", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseMovePoint", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "onMouseLeavePoint", "docblock": null, "modifiers": [], "params": [ { "name": "e", "type": null }, { "name": "d", "type": null } ], "returns": null }, { "name": "renderPoint", "docblock": null, "modifiers": [], "params": [ { "name": "d", "type": null }, { "name": "i", "type": null } ], "returns": null } ], "props": { "data": { "type": { "name": "array" }, "required": true, "description": "Array of data to be plotted." }, "x": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for plot X values, called once per datum, or a single value to be used for all points." }, "y": { "type": { "name": "custom", "raw": "CustomPropTypes.valueOrAccessor" }, "required": false, "description": "Accessor function for plot Y values, called once per datum, or a single value to be used for all points." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "pointRadius": { "type": { "name": "number" }, "required": false, "description": "Used with the default point symbol (circle), defines the circle radius.", "defaultValue": { "value": "3", "computed": false } }, "pointSymbol": { "type": { "name": "union", "value": [ { "name": "node" }, { "name": "func" } ] }, "required": false, "description": "Text or SVG node to use as custom point symbol, or function which returns text/SVG.", "defaultValue": { "value": "", "computed": false } }, "pointOffset": { "type": { "name": "arrayOf", "value": { "name": "number" } }, "required": false, "description": "Manual x and y offset applied to the point to center it, for custom point symbols which can't be auto-centered.", "defaultValue": { "value": "[0, 0]", "computed": false } }, "pointStyle": { "type": { "name": "union", "value": [ { "name": "object" }, { "name": "func" } ] }, "required": false, "description": "Inline style object to be applied to each point,\nor accessor function which returns a style object.", "defaultValue": { "value": "{}", "computed": false } }, "pointClassName": { "type": { "name": "union", "value": [ { "name": "string" }, { "name": "func" } ] }, "required": false, "description": "Class attribute to be applied to each point,\nor accessor function which returns a class.", "defaultValue": { "value": "''", "computed": false } }, "onMouseEnterPoint": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a point." }, "onMouseMovePoint": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a point." }, "onMouseLeavePoint": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a point." } } } ================================================ FILE: docs/src/docs/TreeMap/TreeMapDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic TreeMap', codeText: require('./examples/TreeMap.js.example').default, }, { id: 'animated', label: 'Animated TreeMap', codeText: require('./examples/AnimatedTreeMap.js.example').default, }, ]; export default class TreeMapExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/TreeMap/examples/AnimatedTreeMap.js.example ================================================ class AnimatedTreeMapExample extends React.Component { constructor(props) { super(props); const data = { children: _.range(1, 5).map(n => ({ children: _.times(n * n, m => ({ size: (n +1) * (m + 1) + (100 * Math.random()), size2: (n +1) * (m + 1) + (100 * Math.random()) })) })) }; this.state = { getValue: "size", data }; } _animateValue = () => { if(this.state.getValue === "size") this.setState({getValue: "size2"}); else this.setState({getValue: "size"}); }; componentDidMount() { this._interval = setInterval(this._animateValue, 1000); } componentWillUnmount() { clearInterval(this._interval); } render() { const {getValue, data} = this.state; const colorScale = d3.scaleLinear() .domain([0, 65]) .range(['#6b6ecf', '#8ca252']) .interpolate(d3.interpolateHcl); return
    ({ backgroundColor: colorScale(parseInt(node.data.size)), border: '1px solid #333' })} sticky width={400} height={500} />
    } } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/TreeMap/examples/TreeMap.js.example ================================================ const TreeMapExample = props => { const data = { children: _.range(1, 5).map(n => ({ children: _.times(n * n, m => ({ size: n * (m + 1) })) })) }; const colorScale = d3 .scaleLinear() .domain([0, 65]) .range(["#6b6ecf", "#8ca252"]) .interpolate(d3.interpolateHcl); return (
    d.size} getLabel={d => d.value} nodeStyle={node => ({ backgroundColor: colorScale(parseInt(node.data.size)), border: "1px solid #333" })} width={400} height={500} />
    ); }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/TreeMap/propDocs.json ================================================ { "description": "`TreeMap` displays hierarchical data where a leaf node's rectangle has an area proportional to a specified dimension of the data.", "displayName": "TreeMap", "methods": [ { "name": "initTreemap", "docblock": null, "modifiers": ["static"], "params": [ { "name": "rootNode", "type": null }, { "name": "tree", "type": null }, { "name": "options", "type": null } ], "returns": null }, { "name": "getStateFromProps", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "width": { "type": { "name": "number" }, "required": true, "description": "" }, "height": { "type": { "name": "number" }, "required": true, "description": "" }, "data": { "type": { "name": "object" }, "required": true, "description": "Data is an object with a key of `children` and an array of objects as its value.\ni.e. { children: [{ children: [{ size: 3 }, { size: 8 }] }, { size: 4 }]}" }, "getValue": { "type": { "name": "custom", "raw": "CustomPropTypes.getter" }, "required": false, "description": "Key or accessor to retrieve value of data point", "defaultValue": { "value": "'value'", "computed": false } }, "getChildren": { "type": { "name": "custom", "raw": "CustomPropTypes.getter" }, "required": false, "description": "Key or accessor to retrieve children of data point", "defaultValue": { "value": "'children'", "computed": false } }, "getLabel": { "type": { "name": "custom", "raw": "CustomPropTypes.getter" }, "required": false, "description": "Key or accessor to retrieve label for given Node", "defaultValue": { "value": "'name'", "computed": false } }, "sort": { "type": { "name": "func" }, "required": false, "description": "Function passed in to sort nodes" }, "padding": { "type": { "name": "number" }, "required": false, "description": "See d3 docs for treemap - Adds outer and inner padding to tree" }, "round": { "type": { "name": "bool" }, "required": false, "description": "See d3 docs for treemap - Enables or disables rounding" }, "sticky": { "type": { "name": "bool" }, "required": false, "description": "If sticky, on data change the TreeMap will not force a recreation of the tree and animate data changes.\nOtherwise we recreate the tree given its new props" }, "ratio": { "type": { "name": "number" }, "required": false, "description": "Sets the desired aspect ratio of the generated rectangles" }, "nodeStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "Inline style object applied to each Node,\nor accessor function which returns a style object" }, "labelStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "Inline style object applied to each Label,\nor accessor function which returns a style object" }, "minLabelWidth": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "minLabelHeight": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "onClickNode": { "type": { "name": "func" }, "required": false, "description": "`onClick` event handler callback, called when user clicks a NodeComponent." }, "onMouseEnterNode": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters a NodeComponent." }, "onMouseLeaveNode": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves a NodeComponent." }, "onMouseMoveNode": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within a NodeComponent." }, "NodeComponent": { "type": { "name": "func" }, "required": false, "description": "Optional treemap node, otherwise we default to our TreeMapNode component", "defaultValue": { "value": "TreeMapNode", "computed": true } }, "NodeLabelComponent": { "type": { "name": "func" }, "required": false, "description": "Optional treemap node label, otherwise we default to our TreeMapNodeLabel component", "defaultValue": { "value": "TreeMapNodeLabel", "computed": true } } } } ================================================ FILE: docs/src/docs/TreeMapNode/TreeMapNodeDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic TreeMapNode', codeText: require('./examples/TreeMapNode.js.example').default, }, ]; export default class TreeMapNodeExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/TreeMapNode/examples/TreeMapNode.js.example ================================================ const TreeMapNodeExample = (props) => { return
    insert example here
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/TreeMapNode/propDocs.json ================================================ { "description": "", "methods": [], "props": { "node": { "type": { "name": "shape", "value": { "parent": { "name": "object", "required": false }, "children": { "name": "array", "required": false }, "value": { "name": "number", "required": false }, "depth": { "name": "number", "required": false }, "x": { "name": "number", "required": false }, "y": { "name": "number", "required": false }, "dx": { "name": "number", "required": false }, "dy": { "name": "number", "required": false } } }, "required": false, "description": "" }, "nodeStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "" }, "minLabelWidth": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "minLabelHeight": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "0", "computed": false } }, "getLabel": { "type": { "name": "custom", "raw": "CustomPropTypes.getter" }, "required": false, "description": "" }, "labelStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "" }, "NodeLabelComponent": { "type": { "name": "func" }, "required": false, "description": "" } } } ================================================ FILE: docs/src/docs/TreeMapNodeLabel/TreeMapNodeLabelDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic TreeMapNodeLabel', codeText: require('./examples/TreeMapNodeLabel.js.example').default, }, ]; export default class TreeMapNodeLabelExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/TreeMapNodeLabel/examples/TreeMapNodeLabel.js.example ================================================ const TreeMapNodeLabelExample = (props) => { return
    insert example here
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/TreeMapNodeLabel/propDocs.json ================================================ { "description": "", "methods": [], "props": { "node": { "type": { "name": "object" }, "required": false, "description": "" }, "getLabel": { "type": { "name": "custom", "raw": "CustomPropTypes.getter" }, "required": false, "description": "" }, "labelStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "" }, "minLabelWidth": { "type": { "name": "number" }, "required": false, "description": "" }, "minLabelHeight": { "type": { "name": "number" }, "required": false, "description": "" } } } ================================================ FILE: docs/src/docs/XAxis/XAxisDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic XAxis', codeText: require('./examples/XAxis.js.example').default, }, { id: 'customTicks', label: 'XAxis with custom ticks', codeText: require('./examples/XAxisCustomTicks.js.example').default, }, ]; export default class XAxisExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/XAxis/examples/XAxis.js.example ================================================ const XAxisExample = (props) => { const dateDomain = [new Date(2008, 0, 1), new Date(2017, 0, 1)]; const numberDomain = [-20, 20]; const categoricalDomain = ['puppies', 'kitties', 'ponies']; const smallSize = {width: 300, height: 100}; return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XAxis/examples/XAxisCustomTicks.js.example ================================================ const XAxisExample = (props) => { const size = {width: 350, height: 100}; return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XAxis/propDocs.json ================================================ { "description": "`XAxis` is the horizontal axis of the chart. `XAxis` is a wrapper around `XGrid`, `XTicks`,\n`XAxisLabels`, and `XAxisTitle`. See their respective docs for prop documentation.", "displayName": "XAxis", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "handleOnMouseMove", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null }, { "name": "handleOnMouseEnter", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null }, { "name": "handleOnMouseLeave", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null }, { "name": "handleOnClick", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null } ], "props": { "xScale": { "type": { "name": "func" }, "required": false, "description": "" }, "width": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "400", "computed": false } }, "height": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "250", "computed": false } }, "position": { "type": { "name": "string" }, "required": false, "description": "", "defaultValue": { "value": "'bottom'", "computed": false } }, "placement": { "type": { "name": "string" }, "required": false, "description": "" }, "nice": { "type": { "name": "bool" }, "required": false, "description": "Extends the x domain to start and end on rounded values,\nguaranteeing the original domain will be covered.\nSee d3 docs for more information", "defaultValue": { "value": "true", "computed": false } }, "ticks": { "type": { "name": "array" }, "required": false, "description": "" }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "Internal top spacing of XAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "Internal bottom spacing of XAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "Internal left spacing of XAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "Internal right spacing of XAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "showTitle": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "showLabels": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "showTicks": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "showGrid": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "title": { "type": { "name": "string" }, "required": false, "description": "" }, "titleDistance": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "5", "computed": false } }, "titleAlign": { "type": { "name": "string" }, "required": false, "description": "" }, "titleRotate": { "type": { "name": "bool" }, "required": false, "description": "" }, "titleStyle": { "type": { "name": "object" }, "required": false, "description": "" }, "labelDistance": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "3", "computed": false } }, "labelClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "labelStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "" }, "labelFormat": { "type": { "name": "func" }, "required": false, "description": "" }, "labelFormats": { "type": { "name": "array" }, "required": false, "description": "" }, "labels": { "type": { "name": "array" }, "required": false, "description": "" }, "noLabelOverhang": { "type": { "name": "bool" }, "required": false, "description": "" }, "labelOffset": { "type": { "name": "number" }, "required": false, "description": "Adds horizontal offset (along the XAxis) to the labels" }, "tickLength": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "5", "computed": false } }, "tickClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "tickStyle": { "type": { "name": "object" }, "required": false, "description": "" }, "gridLineClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "gridLineStyle": { "type": { "name": "object" }, "required": false, "description": "" }, "onMouseClickLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseEnterLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseMoveLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseLeaveLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseEnterAxis": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters the x axis." }, "onMouseLeaveAxis": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves the x axis." }, "onMouseMoveAxis": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within the x axis." }, "onMouseClickAxis": { "type": { "name": "func" }, "required": false, "description": "`click` event handler callback, called when user's mouse clicks on the x axis." }, "showLine": { "type": { "name": "bool" }, "required": false, "description": "Show X Axis line", "defaultValue": { "value": "true", "computed": false } }, "lineStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the X Axis line", "defaultValue": { "value": "{}", "computed": false } } } } ================================================ FILE: docs/src/docs/XAxisLabels/XAxisLabelsDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic XAxisLabels', codeText: require('./examples/XAxisLabels.js.example').default, }, ]; export default class XAxisLabelsExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/XAxisLabels/examples/XAxisLabels.js.example ================================================ const XAxisLabelsExample = (props) => { const chartStyle = {marginBottom: '10px'}; return
    label + "%"} position="top" distance={2} tickCount={5} labelStyle={(label) => { return { fontSize: '10px', fill: label.text === "20%" ? "red" : "black" }; } } />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XAxisLabels/propDocs.json ================================================ { "description": "", "displayName": "XAxisLabels", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getLabels", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "height": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "250", "computed": false } }, "position": { "type": { "name": "enum", "value": [ { "value": "'top'", "computed": false }, { "value": "'bottom'", "computed": false } ] }, "required": false, "description": "Position of x axis labels. Accepted options are \"top\" or \"bottom\".", "defaultValue": { "value": "'bottom'", "computed": false } }, "placement": { "type": { "name": "enum", "value": [ { "value": "'below'", "computed": false }, { "value": "'above'", "computed": false } ] }, "required": false, "description": "Placement of labels in regards to the x axis. Accepted options are \"above\" or \"below\"." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the label given spacingTop." }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the label given spacingBottom." }, "distance": { "type": { "name": "number" }, "required": false, "description": "Label distance from X Axis.", "defaultValue": { "value": "4", "computed": false } }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "Number of ticks on axis.", "defaultValue": { "value": "10", "computed": false } }, "ticks": { "type": { "name": "array" }, "required": false, "description": "Custom ticks to display.", "defaultValue": { "value": "null", "computed": false } }, "labelStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "Inline style object applied to each label,\nor accessor function which returns a style object\n\nDisclaimer: labelStyle will merge its defaults with the given labelStyle prop\nin order to ensure that our collision library measureText is able to calculate the\nsmallest amount of possible collissions along the axis. It's therefore dependent on\nfontFamily, size and fontStyle to always be passed in. If you're looking to have a centralized\nstylesheet, we suggest creating a styled label component that wraps XAxisLabels with your preferred styles.", "defaultValue": { "value": "{\n fontFamily: 'Helvetica, sans-serif',\n fontSize: '14px',\n lineHeight: 1,\n textAnchor: 'middle',\n}", "computed": false } }, "labelClassName": { "type": { "name": "string" }, "required": false, "description": "", "defaultValue": { "value": "''", "computed": false } }, "format": { "type": { "name": "func" }, "required": false, "description": "An accessor function that returns the updated label.\n\nFor example, given labels with real numbers one can pass in the following accessor,\n(label) => `${label}%`, to display percentages." }, "formats": { "type": { "name": "array" }, "required": false, "description": "Formats to use for the labels in priority order. XAxisLabels will try to be smart about which format\nto use that keeps the labels distinct and provides the least amount of collisions when rendered. Formats\ncan be either string(s) or function(s), utilizing d3-format.\n\nFor example, given labels with real numbers one can pass in [\".0%\"] for a rounded percentage, like 12%." }, "labels": { "type": { "name": "array" }, "required": false, "description": "Custom labels provided. Note that each object in the array has to be of shape.\n`{\n value,\n text,\n height,\n width\n}`\nvalue - value you'd like this label to be aligned with\ntext - text you'd like displayed\nheight - height of the given label\nwidth - width of the given label" }, "noLabelOverhang": { "type": { "name": "bool" }, "required": false, "description": "Default label behavior places the text centered below the data point it delineates. This can allow\noverhang where the first and possibly last labels' text hangs over the edges of the x axis range.\nSetting this to `true` will force the first and last labels to align in such a way that their text does\nnot exceed the x range. That is, the first label will be text-anchor: \"start\" instead of \"middle\", and\nthe label marking the right edge of the chart will be anchored to the \"end\" instead of \"middle\".\n\nThis affects spacing calculations." }, "nice": { "type": { "name": "bool" }, "required": false, "description": "Round ticks to capture extent of given x domain from XYPlot.", "defaultValue": { "value": "true", "computed": false } }, "onMouseEnterLabel": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters the label." }, "onMouseMoveLabel": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within the label." }, "onMouseLeaveLabel": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves the label." }, "onMouseClickLabel": { "type": { "name": "func" }, "required": false, "description": "`mouseclick` event handler callback, called when user's mouse clicks the label." }, "offset": { "type": { "name": "number" }, "required": false, "description": "Adds horizontal offset (along the XAxis) to the labels", "defaultValue": { "value": "0", "computed": false } } } } ================================================ FILE: docs/src/docs/XAxisTitle/XAxisTitleDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic XAxisTitle', codeText: require('./examples/XAxisTitle.js.example').default, }, { id: 'all', label: 'All XAxisTitle Options', codeText: require('./examples/XAxisTitleAll.js.example').default, }, ]; export default class XAxisTitleExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/XAxisTitle/examples/XAxisTitle.js.example ================================================ const XAxisTitleExample = (props) => { const xyProps = { width: 500, height: 200, xDomain: [0, 100], yDomain: [0, 100] }; return ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XAxisTitle/examples/XAxisTitleAll.js.example ================================================ const XAxisTitleExample = (props) => { const xyProps = { width: 500, height: 360, xDomain: [0, 100], yDomain: [0, 100] }; return ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XAxisTitle/propDocs.json ================================================ { "description": "", "displayName": "XAxisTitle", "methods": [ { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "height": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "250", "computed": false } }, "width": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "400", "computed": false } }, "distance": { "type": { "name": "number" }, "required": false, "description": "Title distance from X Axis", "defaultValue": { "value": "5", "computed": false } }, "position": { "type": { "name": "enum", "value": [ { "value": "'top'", "computed": false }, { "value": "'bottom'", "computed": false } ] }, "required": false, "description": "Position of title in regards to the x axis. Accepted options are \"top\" or \"bottom\"", "defaultValue": { "value": "'bottom'", "computed": false } }, "placement": { "type": { "name": "enum", "value": [ { "value": "'above'", "computed": false }, { "value": "'below'", "computed": false } ] }, "required": false, "description": "Placement of title in regards to the x axis. Accepted options are \"above\" or \"below\"" }, "alignment": { "type": { "name": "enum", "value": [ { "value": "'left'", "computed": false }, { "value": "'center'", "computed": false }, { "value": "'right'", "computed": false } ] }, "required": false, "description": "", "defaultValue": { "value": "'center'", "computed": false } }, "rotate": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "false", "computed": false } }, "style": { "type": { "name": "object" }, "required": false, "description": "Object declaring styles for label.\n\nDisclaimer: labelStyle will merge its defaults with the given labelStyle prop\nin order to ensure that our collision library measureText is able to calculate the\nsmallest amount of possible collisions along the axis. It's therefore dependent on\nfontFamily, size and fontStyle to always be passed in. If you're looking to have a centralized\nstylesheet, we suggest creating a styled title component that wraps XAxisTitle with your preferred styles.", "defaultValue": { "value": "{\n fontFamily: 'Helvetica, sans-serif',\n fontSize: '24px',\n fontWeight: 'bold',\n lineHeight: 1,\n}", "computed": false } }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "title": { "type": { "name": "string" }, "required": false, "description": "" }, "children": { "type": { "name": "any" }, "required": false, "description": "" } } } ================================================ FILE: docs/src/docs/XGrid/XGridDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic XGrid', codeText: require('./examples/XGrid.js.example').default, }, ]; export default class XGridExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/XGrid/examples/XGrid.js.example ================================================ const XGridExample = (props) => { const size = {width: 400, height: 300}; return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XGrid/propDocs.json ================================================ { "description": "", "displayName": "XGrid", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "width": { "type": { "name": "number" }, "required": false, "description": "" }, "height": { "type": { "name": "number" }, "required": false, "description": "" }, "xScale": { "type": { "name": "func" }, "required": false, "description": "" }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "" }, "nice": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "ticks": { "type": { "name": "array" }, "required": false, "description": "" }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "" }, "lineClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "lineStyle": { "type": { "name": "object" }, "required": false, "description": "", "defaultValue": { "value": "{}", "computed": false } } } } ================================================ FILE: docs/src/docs/XLine/XLineDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic XLine', codeText: require('./examples/XLine.js.example').default, }, ]; export default class XLineExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/XLine/examples/XLine.js.example ================================================ const XLineExample = (props) => { return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XLine/propDocs.json ================================================ { "description": "`XLine` is a vertical line rendered on the x axis", "displayName": "XLine", "methods": [], "props": { "height": { "type": { "name": "number" }, "required": false, "description": "Height of chart - provided by XYPlot" }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot" }, "value": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": true, "description": "" }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot" }, "yLimit": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": false, "description": "" }, "yDomain": { "type": { "name": "array" }, "required": false, "description": "The Y domain of the data as an array - provided by XYPlot" }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "Spacing top - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "Spacing bottom - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "style": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the line", "defaultValue": { "value": "{}", "computed": false } }, "className": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to the line", "defaultValue": { "value": "''", "computed": false } } } } ================================================ FILE: docs/src/docs/XTicks/XTicksDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic XTicks', codeText: require('./examples/XTicks.js.example').default, }, ]; export default class XTicksExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/XTicks/examples/XTicks.js.example ================================================ const XTicksExample = (props) => { const size = {width: 300, height: 100}; const chartStyle = {marginBottom: '10px'}; return
    Default:
    Multiple sets of ticks, with options:
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XTicks/propDocs.json ================================================ { "description": "", "displayName": "XTicks", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "height": { "type": { "name": "number" }, "required": false, "description": "Height of chart - provided by XYPlot." }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot." }, "position": { "type": { "name": "enum", "value": [ { "value": "'bottom'", "computed": false }, { "value": "'top'", "computed": false } ] }, "required": false, "description": "Position of x ticks. Accepted options are \"bottom\" or \"top\".", "defaultValue": { "value": "'bottom'", "computed": false } }, "placement": { "type": { "name": "enum", "value": [ { "value": "'above'", "computed": false }, { "value": "'below'", "computed": false } ] }, "required": false, "description": "Placement of ticks in regards to the x axis. Accepted options are \"above\" or \"below\"." }, "ticks": { "type": { "name": "array" }, "required": false, "description": "Custom ticks to display." }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "Number of ticks on axis." }, "tickLength": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "5", "computed": false } }, "tickStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object applied to each tick.", "defaultValue": { "value": "{}", "computed": false } }, "tickClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to each tick.", "defaultValue": { "value": "''", "computed": false } }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the ticks given spacingTop." }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the ticks given spacingBottom." }, "nice": { "type": { "name": "bool" }, "required": false, "description": "Round ticks to capture extent of given x domain from XYPlot.", "defaultValue": { "value": "true", "computed": false } } } } ================================================ FILE: docs/src/docs/XYPlot/XYPlotDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic XYPlot', codeText: require('./examples/XYPlot.js.example').default, }, { id: 'spacing', label: 'Custom Spacing', codeText: require('./examples/CustomSpacing.js.example').default, }, ]; export default class XYPlotExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/XYPlot/examples/CustomSpacing.js.example ================================================ const SpacingExample = (props) => { const spacing = {spacingLeft: 10, spacingTop: 53, spacingRight: 16, spacingBottom: 9}; return
    d} y={d => Math.sin(d*.1)} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XYPlot/examples/XYPlot.js.example ================================================ const MultipleXYExample = (props) => { return
    d} y={d => (Math.sin(d*3) * .7) + 1.2} yEnd={d => (Math.sin(d*3) * Math.cos(d*3) * .7) + 1.2} barThickness={2} barStyle={{fill: '#3690c0'}} /> d} y={d => Math.pow(Math.abs(Math.sin(d*5)), Math.abs(Math.sin(d*.25))) * 1.8} lineStyle={{stroke: '#02818a', strokeWidth: 3}} /> d} y={d => Math.pow(2, (d + 2) * 1.8) * 0.1} pointSymbol={} /> d} y={d => -Math.abs(Math.sin(d*4) * Math.cos(d*3))} barThickness={3} barStyle={{fill: '#67a9cf'}} /> d} y={d => Math.cos(d)} lineStyle={{stroke: '#ec7014', strokeWidth: 3}} /> _.range(-2, 0, .1).map(j => [i, j])))} value={([i, j]) => Math.sin(i * j * 5)} x={([i, j]) => i} xEnd={([i, j]) => i + .1} y={([i, j]) => j} yEnd={([i, j]) => j + .1} colors={['#d0d1e6', '#016450']} interpolator={'lab'} /> _.range(-2, -1, .1).map(j => [i, j])))} area={([i, j]) => -Math.sin(i * j * 5)} x={([i, j]) => i} xEnd={([i, j]) => i + .1} y={([i, j]) => j} yEnd={([i, j]) => j + .1} rectStyle={{fill: '#016450'}} />
    ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/XYPlot/propDocs.json ================================================ { "description": "", "displayName": "XYPlot", "methods": [ { "name": "onXYMouseEvent", "docblock": null, "modifiers": [], "params": [ { "name": "callbackKey", "type": null }, { "name": "event", "type": null } ], "returns": null } ], "props": { "width": { "type": { "name": "number" }, "required": false, "description": "(outer) width of the chart (SVG element).", "defaultValue": { "value": "400", "computed": false } }, "height": { "type": { "name": "number" }, "required": false, "description": "(outer) width of the chart (SVG element).", "defaultValue": { "value": "250", "computed": false } }, "xDomain": { "type": { "name": "array" }, "required": false, "description": "The X domain of the data as an array.\nFor numerical scales, this is represented as [min, max] of the data;\nfor ordinal/categorical scales it is an array of known values ie. ['a', 'b', 'c'].\nAutomatically determined from data if not passed." }, "yDomain": { "type": { "name": "array" }, "required": false, "description": "The Y domain of the data as an array.\nFor numerical scales, this is represented as [min, max] of the data;\nfor ordinal/categorical scales it is an array of known values ie. ['a', 'b', 'c'].\nAutomatically determined from data if not passed." }, "xScaleType": { "type": { "name": "string" }, "required": false, "description": "" }, "yScaleType": { "type": { "name": "string" }, "required": false, "description": "" }, "invertXScale": { "type": { "name": "bool" }, "required": false, "description": "Whether or not to invert the x scale", "defaultValue": { "value": "false", "computed": false } }, "invertYScale": { "type": { "name": "bool" }, "required": false, "description": "Whether or not to invert the y scale", "defaultValue": { "value": "false", "computed": false } }, "includeXZero": { "type": { "name": "bool" }, "required": false, "description": "Whether or not to coerce 0 into your x domain", "defaultValue": { "value": "false", "computed": false } }, "includeYZero": { "type": { "name": "bool" }, "required": false, "description": "Whether or not to coerce 0 into your y domain", "defaultValue": { "value": "false", "computed": false } }, "marginTop": { "type": { "name": "number" }, "required": false, "description": "Internal top margin, in pixels." }, "marginBottom": { "type": { "name": "number" }, "required": false, "description": "Internal bottom margin, in pixels." }, "marginLeft": { "type": { "name": "number" }, "required": false, "description": "Internal left margin, in pixels." }, "marginRight": { "type": { "name": "number" }, "required": false, "description": "Internal right margin, in pixels." }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "Internal top spacing of XYPlot, in pixels." }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "Internal bottom spacing of XYPlot, in pixels." }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "Internal left spacing of XYPlot, in pixels." }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "Internal right spacing of XYPlot, in pixels." }, "onMouseMove": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseEnter": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseLeave": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseDown": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseUp": { "type": { "name": "func" }, "required": false, "description": "" }, "onClick": { "type": { "name": "func" }, "required": false, "description": "" }, "xyPlotContainerStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the parent SVG element that wraps XYPlot.", "defaultValue": { "value": "{}", "computed": false } }, "xyPlotStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the plot.\nThis is the inner rect DOM element where the graphs are rendered within the axes.", "defaultValue": { "value": "{}", "computed": false } }, "xyPlotClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute applied to xy plot", "defaultValue": { "value": "''", "computed": false } }, "xScale": { "type": { "name": "func" }, "required": false, "description": "Scale determined by our resolveXYScales higher order component.\nOverride this prop if you'd like to pass in your own d3 scale." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "Scale determined by our resolveXYScales higher order component.\nOverride this prop if you'd like to pass in your own d3 scale." }, "children": { "type": { "name": "any" }, "required": false, "description": "" } } } ================================================ FILE: docs/src/docs/YAxis/YAxisDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic YAxis', codeText: require('./examples/YAxis.js.example').default, }, { id: 'customTicks', label: 'YAxis with custom ticks', codeText: require('./examples/YAxisCustomTicks.js.example').default, }, ]; export default class YAxisExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/YAxis/examples/YAxis.js.example ================================================ const YAxisExample = (props) => { const dateDomain = [new Date(2008, 0, 1), new Date(2017, 0, 1)]; const numberDomain = [-20, 20]; const categoricalDomain = ['puppies', 'kitties', 'ponies']; const size = {width: 100, height: 300}; const chartStyle = {display: 'inline-block', marginRight: '10px'}; return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YAxis/examples/YAxisCustomTicks.js.example ================================================ const YAxisCustomTicksExample = (props) => { const size = {width: 150, height: 300}; return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YAxis/propDocs.json ================================================ { "description": "`YAxis` is the vertical axis of the chart. `YAxis` is a wrapper around `YGrid`, `YTicks`,\n`YAxisLabels`, and `YAxisTitle`. See their respective docs for prop documentation.", "displayName": "YAxis", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "handleOnMouseMove", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null }, { "name": "handleOnMouseEnter", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null }, { "name": "handleOnMouseLeave", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null }, { "name": "handleOnClick", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null } ], "returns": null } ], "props": { "yScale": { "type": { "name": "func" }, "required": false, "description": "" }, "width": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "400", "computed": false } }, "height": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "250", "computed": false } }, "position": { "type": { "name": "string" }, "required": false, "description": "", "defaultValue": { "value": "'left'", "computed": false } }, "placement": { "type": { "name": "string" }, "required": false, "description": "" }, "nice": { "type": { "name": "bool" }, "required": false, "description": "Extends the y domain to start and end on rounded values,\nguaranteeing the original domain will be covered.\nSee d3 docs for more information", "defaultValue": { "value": "true", "computed": false } }, "ticks": { "type": { "name": "array" }, "required": false, "description": "" }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "Internal top spacing of YAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "Internal bottom spacing of YAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "Internal left spacing of YAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "Internal right spacing of YAxis, in pixels.", "defaultValue": { "value": "0", "computed": false } }, "showTitle": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "showLabels": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "showTicks": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "showGrid": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "title": { "type": { "name": "string" }, "required": false, "description": "" }, "titleDistance": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "5", "computed": false } }, "titleAlign": { "type": { "name": "string" }, "required": false, "description": "" }, "titleRotate": { "type": { "name": "bool" }, "required": false, "description": "" }, "titleStyle": { "type": { "name": "object" }, "required": false, "description": "" }, "labelDistance": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "3", "computed": false } }, "labelClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "labelStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "" }, "labelFormat": { "type": { "name": "func" }, "required": false, "description": "" }, "labelFormats": { "type": { "name": "array" }, "required": false, "description": "" }, "labels": { "type": { "name": "array" }, "required": false, "description": "" }, "labelOffset": { "type": { "name": "number" }, "required": false, "description": "Adds vertical offset (along the YAxis) to the labels" }, "tickLength": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "5", "computed": false } }, "tickClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "tickStyle": { "type": { "name": "object" }, "required": false, "description": "" }, "gridLineClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "gridLineStyle": { "type": { "name": "object" }, "required": false, "description": "" }, "onMouseClickLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseEnterLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseMoveLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseLeaveLabel": { "type": { "name": "func" }, "required": false, "description": "" }, "onMouseEnterAxis": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters the y axis." }, "onMouseLeaveAxis": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves the y axis." }, "onMouseMoveAxis": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within the y axis." }, "onMouseClickAxis": { "type": { "name": "func" }, "required": false, "description": "`click` event handler callback, called when user's mouse clicks on the y axis." }, "showLine": { "type": { "name": "bool" }, "required": false, "description": "Show Y Axis line", "defaultValue": { "value": "true", "computed": false } }, "lineStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the Y Axis line", "defaultValue": { "value": "{}", "computed": false } } } } ================================================ FILE: docs/src/docs/YAxisLabels/YAxisLabelsDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic YAxisLabels', codeText: require('./examples/YAxisLabels.js.example').default, }, ]; export default class YAxisLabelsExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/YAxisLabels/examples/YAxisLabels.js.example ================================================ const YAxisLabelsExample = (props) => { const chartStyle = {marginBottom: '10px'}; return
    label + "%"} position="right" tickCount={5} labelStyle={(label) => { const is20 = Math.abs(label.value) === 20; return { fill: is20 ? "green" : "black", fontWeight: is20 ? 900 : 400 }; }} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YAxisLabels/propDocs.json ================================================ { "description": "", "displayName": "YAxisLabels", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getLabels", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "height": { "type": { "name": "number" }, "required": false, "description": "Height of chart - provided by XYPlot.", "defaultValue": { "value": "250", "computed": false } }, "width": { "type": { "name": "number" }, "required": false, "description": "Width of chart - provided by XYPlot.", "defaultValue": { "value": "400", "computed": false } }, "position": { "type": { "name": "enum", "value": [ { "value": "'left'", "computed": false }, { "value": "'right'", "computed": false } ] }, "required": false, "description": "Position of y axis labels. Accepted options are \"left\" or \"right\".", "defaultValue": { "value": "'left'", "computed": false } }, "placement": { "type": { "name": "enum", "value": [ { "value": "'before'", "computed": false }, { "value": "'after'", "computed": false } ] }, "required": false, "description": "Placement of labels in regards to the y axis. Accepted options are \"before\" or \"after\"." }, "distance": { "type": { "name": "number" }, "required": false, "description": "Label distance from Y Axis.", "defaultValue": { "value": "4", "computed": false } }, "nice": { "type": { "name": "bool" }, "required": false, "description": "Round ticks to capture extent of given y domain from XYPlot.", "defaultValue": { "value": "true", "computed": false } }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "Number of ticks on axis.", "defaultValue": { "value": "10", "computed": false } }, "ticks": { "type": { "name": "array" }, "required": false, "description": "Custom ticks to display.", "defaultValue": { "value": "null", "computed": false } }, "labelStyle": { "type": { "name": "union", "value": [ { "name": "func" }, { "name": "object" } ] }, "required": false, "description": "Inline style object applied to each label,\nor accessor function which returns a style object\n\nDisclaimer: labelStyle will merge its defaults with the given labelStyle prop\nin order to ensure that our collision library measureText is able to calculate the\nsmallest amount of possible collisions along the axis. It's therefore dependent on\nfontFamily, size and fontStyle to always be passed in. If you're looking to have a centralized\nstylesheet, we suggest creating a styled label component that wraps YAxisLabels with your preferred styles.", "defaultValue": { "value": "{\n fontFamily: 'Helvetica, sans-serif',\n fontSize: '14px',\n lineHeight: 1,\n textAnchor: 'end',\n}", "computed": false } }, "labelClassName": { "type": { "name": "string" }, "required": false, "description": "", "defaultValue": { "value": "''", "computed": false } }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the label given spacingLeft" }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the label given spacingRight" }, "onMouseEnterLabel": { "type": { "name": "func" }, "required": false, "description": "`mouseenter` event handler callback, called when user's mouse enters the label." }, "onMouseMoveLabel": { "type": { "name": "func" }, "required": false, "description": "`mousemove` event handler callback, called when user's mouse moves within the label." }, "onMouseLeaveLabel": { "type": { "name": "func" }, "required": false, "description": "`mouseleave` event handler callback, called when user's mouse leaves the label." }, "onMouseClickLabel": { "type": { "name": "func" }, "required": false, "description": "`mouseclick` event handler callback, called when user's mouse clicks the label." }, "format": { "type": { "name": "func" }, "required": false, "description": "An accessor function that returns the updated label.\n\nFor example, given labels with real numbers one can pass in the following accessor,\n(label) => `${label}%`, to display percentages." }, "formats": { "type": { "name": "array" }, "required": false, "description": "Formats to use for the labels in priority order. XAxisLabels will try to be smart about which format\nto use that keeps the labels distinct and provides the least amount of collisions when rendered. Formats\ncan be either string(s) or function(s), utilizing d3-format.\n\nFor example, given labels with real numbers one can pass in [\".0%\"] for a rounded percentage, like 12%." }, "labels": { "type": { "name": "array" }, "required": false, "description": "Custom labels provided. Note that each object in the array has to be of shape.\n`{\n value,\n text,\n height,\n width\n}`\nvalue - value you'd like this label to be aligned with\ntext - text you'd like displayed\nheight - height of the given label\nwidth - width of the given label" }, "offset": { "type": { "name": "number" }, "required": false, "description": "Adds vertical offset (along the YAxis) to the labels.", "defaultValue": { "value": "0", "computed": false } } } } ================================================ FILE: docs/src/docs/YAxisTitle/YAxisTitleDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic YAxisTitle', codeText: require('./examples/YAxisTitle.js.example').default, }, { id: 'all', label: 'YAxisTitle Positions and Placements', codeText: require('./examples/YAxisTitleAll.js.example').default, }, ]; export default class YAxisTitleExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/YAxisTitle/examples/YAxisTitle.js.example ================================================ const YAxisTitleExample = (props) => { const xyProps = { width: 400, height: 300, xDomain: [0, 100], yDomain: [0, 100] }; return ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YAxisTitle/examples/YAxisTitleAll.js.example ================================================ const YAxisTitleExample = (props) => { const xyProps = { width: 500, height: 360, xDomain: [0, 100], yDomain: [0, 100] }; return ; }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YAxisTitle/propDocs.json ================================================ { "description": "", "displayName": "YAxisTitle", "methods": [ { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "height": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "250", "computed": false } }, "width": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "400", "computed": false } }, "distance": { "type": { "name": "number" }, "required": false, "description": "Title distance from Y Axis", "defaultValue": { "value": "5", "computed": false } }, "position": { "type": { "name": "enum", "value": [ { "value": "'left'", "computed": false }, { "value": "'right'", "computed": false } ] }, "required": false, "description": "Position of title in regards to the y axis. Accepted options are \"left\" or \"right\"", "defaultValue": { "value": "'left'", "computed": false } }, "alignment": { "type": { "name": "enum", "value": [ { "value": "'top'", "computed": false }, { "value": "'middle'", "computed": false }, { "value": "'bottom'", "computed": false } ] }, "required": false, "description": "", "defaultValue": { "value": "'middle'", "computed": false } }, "placement": { "type": { "name": "enum", "value": [ { "value": "'before'", "computed": false }, { "value": "'after'", "computed": false } ] }, "required": false, "description": "Placement of title in regards to the y axis. Accepted options are \"before\" or \"after\"" }, "rotate": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "style": { "type": { "name": "object" }, "required": false, "description": "Object declaring styles for label.\n\nDisclaimer: style will merge its defaults with the given style prop\nin order to ensure that our collision library measureText is able to calculate the\nsmallest amount of possible collisions along the axis. It's therefore dependent on\nfontFamily, size and fontStyle to always be passed in. If you're looking to have a centralized\nstylesheet, we suggest creating a styled title component that wraps YAxisTitle with your preferred styles.", "defaultValue": { "value": "{\n fontFamily: 'Helvetica, sans-serif',\n fontSize: '24px',\n fontWeight: 'bold',\n lineHeight: 1,\n}", "computed": false } }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "title": { "type": { "name": "string" }, "required": false, "description": "" }, "children": { "type": { "name": "any" }, "required": false, "description": "" } } } ================================================ FILE: docs/src/docs/YGrid/YGridDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic YGrid', codeText: require('./examples/YGrid.js.example').default, }, ]; export default class YGridExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/YGrid/examples/YGrid.js.example ================================================ const YGridExample = (props) => { const size = {width: 400, height: 300}; return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YGrid/propDocs.json ================================================ { "description": "", "displayName": "YGrid", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "width": { "type": { "name": "number" }, "required": false, "description": "" }, "height": { "type": { "name": "number" }, "required": false, "description": "" }, "yScale": { "type": { "name": "func" }, "required": false, "description": "" }, "spacingTop": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingBottom": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "" }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "" }, "nice": { "type": { "name": "bool" }, "required": false, "description": "", "defaultValue": { "value": "true", "computed": false } }, "ticks": { "type": { "name": "array" }, "required": false, "description": "" }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "" }, "lineClassName": { "type": { "name": "string" }, "required": false, "description": "" }, "lineStyle": { "type": { "name": "object" }, "required": false, "description": "", "defaultValue": { "value": "{}", "computed": false } } } } ================================================ FILE: docs/src/docs/YLine/YLineDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic YLine', codeText: require('./examples/YLine.js.example').default, }, ]; export default class YLineExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/YLine/examples/YLine.js.example ================================================ const YLineExample = (props) => { return
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YLine/propDocs.json ================================================ { "description": "`YLine` is a horizontal line rendered on the y axis", "displayName": "YLine", "methods": [], "props": { "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot" }, "width": { "type": { "name": "number" }, "required": false, "description": "Width of chart - provided by XYPlot." }, "value": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": true, "description": "" }, "xScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for X axis - provided by XYPlot" }, "xLimit": { "type": { "name": "union", "value": [ { "name": "number" }, { "name": "string" }, { "name": "instanceOf", "value": "Date" } ] }, "required": false, "description": "" }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "Spacing left - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "Spacing right - provided by XYPlot", "defaultValue": { "value": "0", "computed": false } }, "style": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to the line", "defaultValue": { "value": "{}", "computed": false } }, "className": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to the line", "defaultValue": { "value": "''", "computed": false } } } } ================================================ FILE: docs/src/docs/YTicks/YTicksDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic YTicks', codeText: require('./examples/YTicks.js.example').default, }, ]; export default class YTicksExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/YTicks/examples/YTicks.js.example ================================================ const YTicksExample = (props) => { const size = {width: 100, height: 300}; const chartStyle = {display: 'inline-block', marginRight: '10px'}; return
    Left: default params
    Right: Multiple sets of ticks, with options
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/YTicks/propDocs.json ================================================ { "description": "", "displayName": "YTicks", "methods": [ { "name": "getTickDomain", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null }, { "name": "getMargin", "docblock": null, "modifiers": ["static"], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "width": { "type": { "name": "number" }, "required": false, "description": "Width of chart - provided by XYPlot." }, "yScale": { "type": { "name": "func" }, "required": false, "description": "D3 scale for Y axis - provided by XYPlot." }, "position": { "type": { "name": "enum", "value": [ { "value": "'left'", "computed": false }, { "value": "'right'", "computed": false } ] }, "required": false, "description": "Position of y ticks. Accepted options are \"left\" or \"right\".", "defaultValue": { "value": "'left'", "computed": false } }, "placement": { "type": { "name": "enum", "value": [ { "value": "'before'", "computed": false }, { "value": "'after'", "computed": false } ] }, "required": false, "description": "Placement of ticks in regards to the y axis. Accepted options are \"before\" or \"after\"." }, "ticks": { "type": { "name": "array" }, "required": false, "description": "Custom ticks to display." }, "tickCount": { "type": { "name": "number" }, "required": false, "description": "Number of ticks on axis." }, "tickLength": { "type": { "name": "number" }, "required": false, "description": "", "defaultValue": { "value": "5", "computed": false } }, "tickStyle": { "type": { "name": "object" }, "required": false, "description": "Inline style object to be applied to each tick.", "defaultValue": { "value": "{}", "computed": false } }, "tickClassName": { "type": { "name": "string" }, "required": false, "description": "Class attribute to be applied to each tick." }, "spacingLeft": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the ticks given spacingLeft." }, "spacingRight": { "type": { "name": "number" }, "required": false, "description": "Spacing - provided by XYPlot and used to determine the placement of the ticks given spacingRight." }, "nice": { "type": { "name": "bool" }, "required": false, "description": "Round ticks to capture extent of given y domain from XYPlot.", "defaultValue": { "value": "true", "computed": false } } } } ================================================ FILE: docs/src/docs/ZoomContainer/ZoomContainerDocs.js ================================================ import React from 'react'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: 'basic', label: 'Basic ZoomContainer', codeText: require('./examples/ZoomContainer.js.example').default, }, { id: 'controlled', label: 'Controlled ZoomContainer', codeText: require('./examples/ZoomContainerControlled.js.example').default, }, ]; export default class ZoomContainerExamples extends React.Component { render() { return ( {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } ================================================ FILE: docs/src/docs/ZoomContainer/examples/ZoomContainer.js.example ================================================ const ZoomContainerExample = (props) => { return
    d} y={d => Math.sin(d*.1)} />
    }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/ZoomContainer/examples/ZoomContainerControlled.js.example ================================================ const width = 600; const height = 350; function getNewZoomProps(newZoomScale, oldZoomScale, oldZoomX, oldZoomY, width, height) { // Some math is required here in order to ensure that whatever is in the center of the viewport // remains in the center of the viewport after zooming in/out. // It's possible to only update zoomScale (and not zoomX & zoomY), but doing so will zoom relative to the // top left corner of the chart, rather than viewport center. return { zoomX: width / 2 - newZoomScale / oldZoomScale * (width / 2 - oldZoomX), zoomY: height / 2 - newZoomScale / oldZoomScale * (height / 2 - oldZoomY), zoomScale: newZoomScale }; } class ZoomControlledExample extends React.Component { state = { zoomTransform: {k: 1, x: 0, y: 0}, zoomX: 0, zoomY: 0, zoomScale: 1 }; handleZoom = nextZoomTransform => { // callback called when user has zoomed (or panned) // pass the new zoom transform from callback back down as props if (!nextZoomTransform) return; this.setState({ zoomX: nextZoomTransform.x, zoomY: nextZoomTransform.y, zoomScale: nextZoomTransform.k }); }; handleClickZoomIn = () => { const {zoomScale, zoomX, zoomY} = this.state; const newZoomScale = this.state.zoomScale * 1.25; this.setState(getNewZoomProps(newZoomScale, zoomScale, zoomX, zoomY, width, height)); }; handleClickZoomOut = () => { const {zoomScale, zoomX, zoomY} = this.state; const newZoomScale = this.state.zoomScale / 1.25; this.setState(getNewZoomProps(newZoomScale, zoomScale, zoomX, zoomY, width, height)); }; render() { return (
    d} y={d => Math.sin(d * 0.1)} />
    ); } } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/docs/ZoomContainer/propDocs.json ================================================ { "description": "`ZoomContainer` is a wrapper that gives users the ability to zoom in, zoom out and drag its children components.", "displayName": "ZoomContainer", "methods": [ { "name": "handleZoom", "docblock": null, "modifiers": [], "params": [ { "name": "event", "type": null }, { "name": "...args", "type": null } ], "returns": null }, { "name": "_updateZoomProps", "docblock": null, "modifiers": [], "params": [ { "name": "props", "type": null } ], "returns": null } ], "props": { "width": { "type": { "name": "number" }, "required": false, "description": "(outer) width of the chart (SVG element).", "defaultValue": { "value": "800", "computed": false } }, "height": { "type": { "name": "number" }, "required": false, "description": "(outer) width of the chart (SVG element).", "defaultValue": { "value": "600", "computed": false } }, "onZoom": { "type": { "name": "func" }, "required": false, "description": "Zoom callback function, called when zoom changes.\nFor controlled version of this component, you should update zoomX, zoomY and zoomScale props in this callback." }, "controlled": { "type": { "name": "bool" }, "required": false, "description": "Boolean which determines whether the component is \"controlled\" (true) or \"stateful\" (false).\nWhen true, zoom transformation is controlled entirely by the `zoomX`, `zoomY` and `zoomScale` props, which\nyou are responsible for updating in the `onZoom` callback function.\nWhen false, zoom transformation is handled by internal state, and the `zoomX`, `zoomY` and `zoomScale` props\nspecify only the initial X, Y and scale transformation of the component.", "defaultValue": { "value": "false", "computed": false } }, "disableMouseWheelZoom": { "type": { "name": "bool" }, "required": false, "description": "Disables wheel-driven zooming (say to not interfere with native scrolling).", "defaultValue": { "value": "false", "computed": false } }, "zoomX": { "type": { "name": "number" }, "required": false, "description": "The X-coordinate of the zoom transformation (or initial X-coordinate, if `controlled` is false).", "defaultValue": { "value": "0", "computed": false } }, "zoomY": { "type": { "name": "number" }, "required": false, "description": "The Y-coordinate of the zoom transformation (or initial Y-coordinate, if `controlled` is false).", "defaultValue": { "value": "0", "computed": false } }, "zoomScale": { "type": { "name": "number" }, "required": false, "description": "The scaling factor of the zoom transformation (or initial scaling, if `controlled` is false).\n1.0 is normal size, 2.0 is double size, 0.5 is half size.", "defaultValue": { "value": "1", "computed": false } }, "extent": { "type": { "name": "array" }, "required": false, "description": "Sets the viewport extent to the specified array of points [[x0, y0], [x1, y1]],\nwhere [x0, y0] is the top-left corner of the viewport and [x1, y1] is the bottom-right corner of the viewport.\nSee d3-zoom docs for more information." }, "scaleExtent": { "type": { "name": "array" }, "required": false, "description": "Sets the scale extent to the specified array of numbers [k0, k1]\nwhere k0 is the minimum allowed scale factor and k1 is the maximum allowed scale factor.\nSee d3-zoom docs for more information." }, "translateExtent": { "type": { "name": "array" }, "required": false, "description": "Sets the translate extent to the specified array of points [[x0, y0], [x1, y1]],\nwhere [x0, y0] is the top-left corner of the world and [x1, y1] is the bottom-right corner of the world.\nSee d3-zoom docs for more information." }, "clickDistance": { "type": { "name": "number" }, "required": false, "description": "Sets the maximum distance that the mouse can move between mousedown and mouseup that will trigger\na subsequent click event.\nSee d3-zoom docs for more information." }, "duration": { "type": { "name": "number" }, "required": false, "description": "Sets the duration for zoom transitions on double-click and double-tap to the specified number of milliseconds.\nSee d3-zoom docs for more information." }, "interpolate": { "type": { "name": "func" }, "required": false, "description": "Sets the interpolation factory for zoom transitions to the specified function.\nSee d3-zoom docs for more information." }, "constrain": { "type": { "name": "func" }, "required": false, "description": "Sets the transform constraint function to the specified function.\nSee d3-zoom docs for more information." }, "filter": { "type": { "name": "func" }, "required": false, "description": "Sets the zoom event filter to the specified function.\nSee d3-zoom docs for more information." }, "touchable": { "type": { "name": "func" }, "required": false, "description": "Sets the touch support detector to the specified function.\nSee d3-zoom docs for more information." }, "wheelDelta": { "type": { "name": "func" }, "required": false, "description": "Sets the wheel delta function to the specified function.\nSee d3-zoom docs for more information." }, "children": { "type": { "name": "any" }, "required": false, "description": "" } } } ================================================ FILE: docs/src/docs/index.js ================================================ export { default as AreaBarChartDocs } from './AreaBarChart/AreaBarChartDocs'; export { default as AreaChartDocs } from './AreaChart/AreaChartDocs'; export { default as AreaHeatmapDocs } from './AreaHeatmap/AreaHeatmapDocs'; export { default as AriaLabelContainerDocs, } from './AriaLabelContainer/AriaLabelContainerDocs'; export { default as BarDocs } from './Bar/BarDocs'; export { default as BarChartDocs } from './BarChart/BarChartDocs'; export { default as ColorHeatmapDocs } from './ColorHeatmap/ColorHeatmapDocs'; export { default as FunnelChartDocs } from './FunnelChart/FunnelChartDocs'; export { default as HistogramDocs } from './Histogram/HistogramDocs'; export { default as KernelDensityEstimationDocs, } from './KernelDensityEstimation/KernelDensityEstimationDocs'; export { default as LineChartDocs } from './LineChart/LineChartDocs'; export { default as MarkerLineChartDocs, } from './MarkerLineChart/MarkerLineChartDocs'; export { default as MeasuredValueLabelDocs, } from './MeasuredValueLabel/MeasuredValueLabelDocs'; export { default as PieChartDocs } from './PieChart/PieChartDocs'; export { default as RangeBarChartDocs, } from './RangeBarChart/RangeBarChartDocs'; export { default as RangeRectDocs } from './RangeRect/RangeRectDocs'; export { default as SankeyDiagramDocs, } from './SankeyDiagram/SankeyDiagramDocs'; export { default as ScatterPlotDocs } from './ScatterPlot/ScatterPlotDocs'; export { default as TreeMapDocs } from './TreeMap/TreeMapDocs'; export { default as XAxisDocs } from './XAxis/XAxisDocs'; export { default as XAxisLabelsDocs } from './XAxisLabels/XAxisLabelsDocs'; export { default as XAxisTitleDocs } from './XAxisTitle/XAxisTitleDocs'; export { default as XGridDocs } from './XGrid/XGridDocs'; export { default as XLineDocs } from './XLine/XLineDocs'; export { default as XTicksDocs } from './XTicks/XTicksDocs'; export { default as XYPlotDocs } from './XYPlot/XYPlotDocs'; export { default as YAxisDocs } from './YAxis/YAxisDocs'; export { default as YAxisLabelsDocs } from './YAxisLabels/YAxisLabelsDocs'; export { default as YAxisTitleDocs } from './YAxisTitle/YAxisTitleDocs'; export { default as YGridDocs } from './YGrid/YGridDocs'; export { default as YLineDocs } from './YLine/YLineDocs'; export { default as YTicksDocs } from './YTicks/YTicksDocs'; export { default as ZoomContainerDocs, } from './ZoomContainer/ZoomContainerDocs'; ================================================ FILE: docs/src/index_html.ejs ================================================ <%= htmlWebpackPlugin.options.title %>
    Loading...
    ================================================ FILE: docs/src/lessons/GettersAndAccessors/GettersAndAccessorsLesson.js ================================================ import React from 'react'; import ReactDOM from 'react-dom'; import Lesson from '../../Lesson'; import ExampleSection from '../../ExampleSection'; const examples = [ { id: 'basic', label: 'Getters and Accessors Example', codeText: require('./examples/GettersAndAccessors.js.example'), }, ]; export default class GettersAndAccessorsLesson extends React.Component { render() { return (

    By now, you may have noticed that the charts in all of the previous examples have props called getX and getY, for which we've (so far) given values 'x' and 'y' respectively. We call these sorts of props{' '} getter props, and they allow Reactochart to be flexible about the format of the data you use in your charts.

    A getter prop tells the chart how to get the parameters it needs from the data you provide. Getters are used in components which accept a{' '} data array prop, and for each element (or "datum") in the{' '} data, the getter accesses a value from the datum in order to draw one part of the chart. For example, in a{' '} LineChart, getX and getY{' '} determine the X and Y values where each line segment should be drawn, while in a BarChart they determine the X position and height of each bar. Some types of charts have other getters too, for example a chart which represents data as a series of colors might have a getColor prop.

    This description of getters make them sound like functions which are run on each datum, so why did we pass strings 'x' and{' '} 'y'? All getters are in fact transformed into{' '} accessor functions inside Reactochart, but getters themselves have a bit more flexibility, for the sake of convenience. Here are all the types of values which may be passed as a getter, and the rules which determine how they are handled:

    • Function: The simplest case - if the getter is a function, it will be run on each datum in data and the return value will be used.
    • Number: If an integer number is provided, the chart will assume that data objects are arrays, and will use the number as an array index to access the value. eg.{' '} getX={'{'}3{'}'} {' '} is equivalent to{' '} getX={'{'}(datum) => datum[3]{'}'}
    • String: The string will be used as an object key to access a value within each datum object. eg. passing{' '} getX='x' is equivalent to{' '} getX={'{'}(datum) => datum.x{'}'} . If your data objects are more complicated, the string may also contain dots to specify values which are multiple levels deep, and/or numbers in brackets to specify values which are in arrays, eg{' '} "userInfo[0].demographics.age",
    • Null/undefined: Passing null or{' '} undefined tells Reactochart to simply use the datum itself as the value, ie. it's equivalent to{' '} getX={'{'}(datum) => datum{'}'} .

    The last option mentioned above - passing null or{' '} undefined to use the datum value itself - allows Reactochart to be used as an ad hoc "graphing calculator". Simply generate a range of numbers for your data (Lodash's{' '} _.range function is useful for this), and pass{' '} null for getX and some numerical function for getY. This is a great way to test your chart before your data is ready. This pattern will be used in future examples, since it's an easy way to generate "fake" data.

    ); } } ================================================ FILE: docs/src/lessons/GettersAndAccessors/examples/GettersAndAccessors.js.example ================================================ const GettersAndAccessorsExample = (props) => { // sample data in a few different shapes const arrData = [ [0, 4], [5, 20], [10, 13], [15, 19] ]; const objData = [ {count: 4, friends: [{id: 'a', age: 24}, {id: 'b', age: 19}]}, {count: 7, friends: [{id: 'a', age: 28}, {id: 'b', age: 29}]}, {count: 19, friends: [{id: 'a', age: 22}, {id: 'b', age: 44}]}, {count: 22, friends: [{id: 'a', age: 41}, {id: 'b', age: 22}]}, ]; return {/* array getters: line X is d[0] and line Y is d[1] */} {/* use strings for deep object access */} {/* or use functions if you prefer */} d.count} getY={(d) => d.friends[1].age} lineStyle={{stroke: 'purple'}} /> }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/lessons/GettersAndAccessors/examples/GraphingCalculator.js.example ================================================ const GraphingCalculatorExample = (props) => { // generate an array of numbers using _.range // returns [0, 1, 2, 3, ..., 99] const data = _.range(100); return Math.sin(d*0.1)} /> }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/lessons/Interaction/InteractionLesson.js ================================================ import React from 'react'; import Lesson from '../../Lesson'; import ExampleSection from '../../ExampleSection'; const examples = [ { id: 'basic', label: 'Interaction Example', codeText: require('./examples/Interaction.js.example').default, }, ]; export default class InteractionLesson extends React.Component { render() { return ( {/* Interaction lesson goes here. intersperse with examples or leave examples loop below */} {examples.map(example => { return ; })} ); } } // todo: flesh out this lesson and re-do this example: const CustomSelectionRect = () => { const { scale, hoveredYVal } = this.props; return hoveredYVal ? ( ) : null; }; class CustomChildExample extends React.Component { state = { hoveredYVal: null, }; onMouseMoveChart = ({ yValue }) => { this.setState({ hoveredYVal: yValue }); }; render() { return (
    ); } } ================================================ FILE: docs/src/lessons/Interaction/examples/Interaction.js.example ================================================ // const InteractionExample = React.createClass({ class InteractionExample extends React.Component { getInitialState() { return { activeValue: null } } onEnterBar(e, d) { this.setState({activeValue: d}); } onLeaveBar(e, d) { this.setState({activeValue: null}) } render() { const {activeValue} = this.state; return
    {_.isNumber(activeValue) ?
    {activeValue.toFixed(2)}
    :
    Hover over the chart to show values
    } Math.sin(d / 10) * 10} getXEnd={d => Math.sin((d + 1) / 10) * 10} getY={d => Math.cos(d / (Math.PI))} onMouseEnterBar={this.onEnterBar} onMouseLeaveBar={this.onLeaveBar} /> ;
    } } ReactDOM.render(, mountNode); ================================================ FILE: docs/src/lessons/QuickStart/QuickStartLesson.js ================================================ import React from 'react'; import Lesson from '../../Lesson'; import ExampleSection from '../../ExampleSection'; const examples = [ { id: 'basic', label: 'Quick Start Example', codeText: require('./examples/QuickStart.js.example').default, }, ]; export default class QuickStartLesson extends React.Component { render() { return (

    To get started using Reactochart, first install it using{' '} npm:

    npm install --save reactochart

    Then you can import individual Reactochart components:

    import LineChart from 'reactochart/LineChart'

    The examples in this documentation will omit these imports to save space, so make sure you remember to include them in your code to get things working. For example, the example below requires importing the following components:

              import XYPlot from 'reactochart/XYPlot';
              
    import XAxis from 'reactochart/XAxis';
    import YAxis from 'reactochart/YAxis';
    import LineChart from 'reactochart/LineChart';

    If you prefer, you can import all of Reactochart at once, though this may hinder some optimizations, such as webpack{' '} tree-shaking:

              import {'{'}XYPlot, XAxis, YAxis, LineChart{'}'} from 'reactochart';
              
    // or
    import * as Reactochart from 'reactochart';

    And now, here's our first line chart showing the basic usage of these components. In this and all future examples, the code on the left side is editable and will update the preview on the right - so experiment and see for yourself how things work!

    {examples.map(example => { return ; })}
    ); } } ================================================ FILE: docs/src/lessons/QuickStart/examples/QuickStart.js.example ================================================ const QuickStartExample = (props) => { return d.x} y={d => d.y} /> }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/lessons/XYPlots/XYPlotsLesson.js ================================================ import React from 'react'; import Lesson from '../../Lesson'; import ExampleSection from '../../ExampleSection'; export default class XYPlotsLesson extends React.Component { render() { return (

    Nearly all of the chart components included in Reactochart (except PieChart and TreeMap) are cartesian or "X/Y"-type charts. They accept an array of data and represent these data with some form of SVG marks on a 2-dimensional X/Y coordinate plane.

    These chart components are not meant to be rendered on their own, but should instead always be wrapped in a {'<'}XYPlot{'>'} {' '} component. XYPlot is a wrapper which iterates over all of its charts and generates a common set of X and Y{' '} scales, which are shared and provided to its children as scale props.{' '} XYPlot also accepts several other props which apply to all of its children, such as width and{' '} height.

    Here's an example of basic XYPlot to render a{' '} LineChart:

    Generally, you will want to render a XAxis and a{' '} YAxis component along with your chart. These components render titles, labels, ticks and grid lines to denote your X and Y axes. One advantage of using a common XYPlot wrapper is that it ensures the axis labels are using the same scales as the charts themselves, and are therefore correctly labeling them.{' '} XAxis and YAxis accept several props to control how they are displayed; see their docs for more information.

    Note that the axes will take up some space in the margin around the chart. The width and height props provided to XYPlot control the outer width of the chart, including the margin and the axes inside them. The inner size of the chart plot itself is determined by XYPlot and passed down to children charts as (smaller) width and{' '} height props.

    Another advantage of XYPlot is that it provides a common container for rendering multiple charts together on the same axes. These can be charts of the same type (ie. multiple{' '} LineCharts), and/or multiple kinds of charts. Any of the XY-type charts in Reactochart can be rendered alongside one another inside XYPlot.

    Note that these charts render SVG elements, which do not respect{' '} z-index; instead their Z-order is determined by the order in which they are drawn. So if you want to draw a{' '} BarChart underneath a LineChart, put it before the LineChart inside XYPlot.

    ); } } ================================================ FILE: docs/src/lessons/XYPlots/examples/LineChart.js.example ================================================ const XYLineChartExample = (props) => { const data = [ {x: 0, y: 20}, {x: 5, y: 30}, {x: 10, y: 35}, {x: 15, y: 30}, ]; return d.x} y={d => d.y} /> }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/lessons/XYPlots/examples/LineChartWithAxis.js.example ================================================ const XYLineChartExample = (props) => { const data = [ {x: 0, y: 2}, {x: 5, y: 22}, {x: 10, y: 32}, {x: 15, y: 36}, ]; return d.x} y={d => d.y} /> }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/lessons/XYPlots/examples/MultiChart.js.example ================================================ const MultiChartExample = (props) => { const data = [ {x: 0, y: 2, z: 3}, {x: 5, y: 22, z: 12}, {x: 10, y: 32, z: 15}, {x: 15, y: 36, z: 25}, ]; return d.x} y={d => d.y} barThickness={35} barStyle={{fill: '#888'}} /> d.x} y={d => d.y} lineStyle={{stroke: 'royalblue', strokeWidth: 5}} /> d.x} y={d => d.z} lineStyle={{stroke: 'coral', strokeWidth: 3}} /> }; ReactDOM.render(, mountNode); ================================================ FILE: docs/src/lessons/index.js ================================================ export { default as QuickStartLesson } from "./QuickStart/QuickStartLesson"; export { default as XYPlotsLesson } from "./XYPlots/XYPlotsLesson"; export { default as GettersAndAccessorsLesson } from "./GettersAndAccessors/GettersAndAccessorsLesson"; export { default as InteractionLesson } from "./Interaction/InteractionLesson"; ================================================ FILE: docs/src/main.js ================================================ import '../styles/main.less'; import React from 'react'; import ReactDOM from 'react-dom'; import { App } from './App'; ReactDOM.render(, document.getElementById('container')); ================================================ FILE: docs/src/templates/ComponentDocsPage.js.template ================================================ import React from 'react'; import ReactDOM from 'react-dom'; import ComponentDocs from '../../ComponentDocs'; import ExampleSection from '../../ExampleSection'; // autogenerated docs data containing descriptions of this component's props import propDocs from './propDocs.json'; const examples = [ { id: "basic", label: "Basic ${componentName}", codeText: require('./examples/${componentName}.js.example').default, }, ]; export default class ${componentName}Examples extends React.Component { render() { return {/* documentation goes here. intersperse docs with examples or leave examples loop below */} {examples.map(example => { return ; })} ; } } ================================================ FILE: docs/src/templates/ComponentExample.js.template ================================================ const ${componentName}Example = (props) => { return
    insert example here
    ; }; ReactDOM.render(<${componentName}Example />, mountNode); ================================================ FILE: docs/src/templates/Lesson.js.template ================================================ import React from 'react'; import ReactDOM from 'react-dom'; import Lesson from '../../Lesson'; import ExampleSection from '../../ExampleSection'; const examples = [ { id: "basic", label: "${name} Example", codeText: require('./examples/${componentName}.js.example').default, }, ]; export default class ${componentName}Lesson extends React.Component { render() { return {/* ${name} lesson goes here. intersperse with examples or leave examples loop below */} {examples.map(example => { return ; })} ; } } ================================================ FILE: docs/styles/main.less ================================================ @import "../../styles/charts.less"; body { //font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; //margin: 0; //padding: 0; //background: #f0f0f0; //color: #0f0f0f; #container { //margin: 10px; } } .sidebar-nav { h1, h2, h3, h4, h5, h6 { color: #f8f8f8; text-transform: uppercase; } h3 { font-size: 16px; } h4 { font-size: 14px; } } .example { margin-bottom: 2em; } .component-docs { padding: 0 30px; } .prop-docs { background-color: #efefef; padding: 15px; .prop-description, .prop-default { display: block; margin-left: 2em; font-size: 0.85em; } } .example-section { display: inline-block; margin: 10px; &.example-section-visible { display: block; } .example-section-button { display: inline-block; //margin: 10px; padding: 10px 20px; font-size: 20pt; font-weight: bold; background: #cccccc; cursor: pointer; border-radius: 5px; .example-arrow { color: #888; } &.active { background-color: #4cba6f; .example-arrow { color: #0f0f0f; } } } .example-section-content { margin: 10px 20px; } } .playground { display: flex; flex-wrap: wrap; .playgroundCode, .playgroundPreview { border: 1px solid #efefef; border-radius: 3px; flex-basis: 150px; &:before { display: block; text-align: center; color: #616467; background-color: #f8f8f8; border-bottom: 1px solid #efefef; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; line-height: 28px; } } .playgroundCode { margin-right: 8px; flex-grow: 0.6; &:before { content: "Editable Source"; } .CodeMirror { font-size: 10pt; font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; } } .playgroundPreview { margin-left: 8px; //text-align: center; flex-grow: 0.4; &:before { content: "Live Preview"; } .previewArea { padding: 8px 6px; } } } ================================================ FILE: index.html ================================================ Redirect Redirecting to docs... ================================================ FILE: jest.config.js ================================================ const dontTranspiledThese = ['internmap', 'delaunator', 'robust-predicates']; const dontTranspile = dontTranspiledThese.join('|'); const config = { collectCoverage: true, collectCoverageFrom: ['src/**/*.js'], setupFiles: ['/tests/jsdom/setup.js'], setupFilesAfterEnv: ['./node_modules/jest-enzyme/lib/index.js'], transformIgnorePatterns: [ `[/\\\\]node_modules[/\\\\]((?!(?<=[/\\\\])(d3-?|${dontTranspile})).)+\\.(js|jsx|ts|tsx)$`, ], }; module.exports = config; ================================================ FILE: package.json ================================================ { "name": "reactochart", "description": "Reactochart - React Charts, graphs and data visualization", "author": "Dan Delany ", "contributors": [ "Erica Hyman ", "Isaac Ezer " ], "version": "6.1.1", "main": "index.js", "files": [ "*.js", "*.js.map", "styles.css", "utils/", "src/" ], "engines": { "node": ">=12.0.0" }, "scripts": { "analyze-bundle": "source-map-explorer node_modules ./*.js ./*.js.map ./utils styles.css src/", "lint": "eslint ./src ./docs/src", "lint-fix": "eslint ./src --fix", "prepublishOnly": "npm run build", "build": "npm run build-lib && npm run build-css", "dev": "webpack-dev-server --config webpack.config.base.js", "docs": "npm run make-docs && npm run build-docs", "build-lib": "npm run clean && BABEL_ENV=production babel src --out-dir ./ --source-maps", "build-css": "lessc ./styles/charts.less ./styles.css", "build-docs": "cross-env webpack --config webpack.config.build.js", "make-docs": "node scripts/makeDocs.js", "clean": "node scripts/clean.js", "serve": "python -m SimpleHTTPServer", "test": "npm run test-jest && npm run lint", "test-browser": "webpack-dev-server --config tests/browser/webpack.config.test.js", "test-jest": "cross-env NODE_PATH=$NODE_PATH:$PWD/src BABEL_ENV=test jest ./tests/jsdom" }, "dependencies": { "d3": "6 || 7", "d3-sankey": "^0.12.3", "invariant": "^2.2.0", "lodash": "^4.17.15", "prop-types": "^15.8.1", "units-css": "^0.4.0" }, "peerDependencies": { "react": "^15.6.0 || ^16.0.0", "react-dom": "^15.6.0 || ^16.0.0" }, "devDependencies": { "@babel/cli": "^7.16.8", "@babel/core": "^7.16.7", "@babel/plugin-proposal-class-properties": "^7.16.7", "@babel/plugin-proposal-object-rest-spread": "^7.16.7", "@babel/eslint-parser": "^7.16.0", "@babel/preset-env": "^7.16.8", "@babel/preset-flow": "^7.16.7", "@babel/preset-react": "^7.16.7", "@babel/register": "^7.16.9", "@spotify/eslint-config-react": "^12.0.0", "@spotify/eslint-config-base": "^12.0.0", "@spotify/web-scripts": "^12.0.0", "babel-jest": "^24.9.0", "babel-loader": "^8.2.3", "babel-plugin-lodash": "^3.3.4", "babel-plugin-rewire": "^1.2.0", "chai": "^4.2.0", "chai-enzyme": "^1.0.0-beta.1", "clean-webpack-plugin": "^4.0.0", "component-playground": "^3.2.1", "copy-webpack-plugin": "^10.2.4", "cross-env": "^7.0.3", "css-loader": "^3.5.3", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.6", "eslint": "^8.9.0", "eslint-config-prettier": "8.4.0", "eslint-plugin-chai-friendly": "^0.5.0", "eslint-plugin-jest": "^23.20.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-react": "^7.28.0", "glob": "^7.2.0", "html-webpack-plugin": "^5.5.0", "husky": "^4.3.8", "jest": "^24.9.0", "jest-canvas-mock": "^2.3.1", "jest-enzyme": "^7.1.2", "jsdom": "^15.2.0", "json-loader": "^0.5.2", "less": "^4.1.2", "less-loader": "^10.2.0", "lessc": "^1.0.2", "mocha": "^7.0.1", "prettier": "~1.18.2", "raw-loader": "^4.0.2", "react": "^16.14.0", "react-addons-update": "^15.6.0", "react-docgen": "5.1.0", "react-dom": "^16.14.0", "react-pure-render-debug": "^1.1.1", "react-router": "^5.2.1", "react-router-dom": "^5.3.0", "react-test-renderer": "^16.14.0", "remark": "^14.0.2", "remark-react": "^9.0.1", "shelljs": "^0.8.5", "sinon": "^9.0.0", "sinon-chai": "^3.5.0", "source-map-explorer": "^2.5.2", "style-loader": "^1.3.0", "webpack": "^5.69.1", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.7.4" }, "license": "Apache-2.0", "repository": { "type": "git", "url": "https://github.com/spotify/reactochart" }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "husky": { "hooks": { "pre-commit": "web-scripts precommit --no-typecheck" } } } ================================================ FILE: prettier.config.js ================================================ module.exports = require('@spotify/web-scripts/config/prettier.config'); ================================================ FILE: scripts/clean.js ================================================ const fs = require('fs'); const sh = require('shelljs'); const { fileExists, dirExists } = require('./utils'); const srcContents = sh.ls('src'); // We don't want to commit built files, so it is useful to have a `clean` script which deletes them if they exist. // However, Reactochart is built in the root directory // (so that modules may be required with eg. `require('reactochart/LineChart')`). // This makes cleanup harder than simply deleting a `build` directory. // Instead this looks for any files in the root directory which match the name of a file in the `src` directory, // and deletes them if they exist. // Sounds dangerous, but any files in root which share a name with src would have been overwritten by the build anyway. srcContents.forEach(fileOrDir => { if (fileExists(`src/${fileOrDir}`) && fileExists(`./${fileOrDir}`)) { console.log(`deleting file ./${fileOrDir}`); sh.rm(`./${fileOrDir}`); } else if (dirExists(`src/${fileOrDir}`) && dirExists(fileOrDir)) { console.log(`deleting directory ./${fileOrDir}`); sh.rm('-rf', `./${fileOrDir}`); } // check for source maps too if (fileExists(`./${fileOrDir}.map`)) { console.log(`deleting file ./${fileOrDir}.map`); sh.rm(`./${fileOrDir}.map`); } }); // Clean compiled css file if (fileExists('./styles.css')) { sh.rm('./styles.css'); } ================================================ FILE: scripts/makeDocs.js ================================================ const fs = require('fs'); const sh = require('shelljs'); const _ = require('lodash'); const { isUpperCase, fileExists, dirExists, ensureDir, fileNameFromPath, stripFileExtension, } = require('./utils'); const EXCLUDED_DOCGEN_FILES = ['TreeMapNode.js', 'TreeMapNodeLabel.js']; const docsDirPath = `${__dirname}/../docs/src/docs`; const docsPageTemplatePath = `${__dirname}/../docs/src/templates/ComponentDocsPage.js.template`; const exampleTemplatePath = `${__dirname}/../docs/src/templates/ComponentExample.js.template`; // generate a list of all JS files in `src` that start with an uppercase letter // these are the components for which we will generate docs const jsFilePaths = sh.ls(`${__dirname}/../src/*.js`); const componentPaths = jsFilePaths.filter( path => !EXCLUDED_DOCGEN_FILES.includes(fileNameFromPath(path)) && isUpperCase(fileNameFromPath(path)[0]), ); ensureDir(docsDirPath); componentPaths.forEach(path => { const fileName = fileNameFromPath(path); const componentName = stripFileExtension(fileName); const componentDocsPath = `${docsDirPath}/${componentName}`; // use react-docgen to autogenerate prop docs json file from component src files ensureDir(componentDocsPath); console.log('Generating prop docs for', componentName); sh.exec( `react-docgen ${path} --pretty -o ${componentDocsPath}/propDocs.json`, ); const docsPagePath = `${componentDocsPath}/${componentName}Docs.js`; const examplesDirPath = `${componentDocsPath}/examples`; const examplePath = `${examplesDirPath}/${componentName}.js.example`; if (!fileExists(docsPagePath)) { // use template file to generate a stub example page for this component const docsTemplate = _.template(sh.cat(docsPageTemplatePath).toString()); const docsPageStub = docsTemplate({ componentName }); fs.writeFile(docsPagePath, docsPageStub, err => { if (err) throw err; console.log('wrote to', docsPagePath); }); // use template to generate stub example file, to be used for live preview (using component-playground) const exampleTemplate = _.template(sh.cat(exampleTemplatePath).toString()); const exampleStub = exampleTemplate({ componentName }); ensureDir(examplesDirPath); fs.writeFile(examplePath, exampleStub, err => { if (err) throw err; console.log('wrote to', examplePath); }); } }); // export all docs files from docs/index.js const componentDocExports = componentPaths.map(componentPath => { const fileName = fileNameFromPath(componentPath); const componentName = stripFileExtension(fileName); return `export {default as ${componentName}Docs} from './${componentName}/${componentName}Docs';\n`; }); fs.writeFile(`${docsDirPath}/index.js`, componentDocExports.join(''), err => { if (err) throw err; console.log('wrote exports'); }); ================================================ FILE: scripts/makeLesson.js ================================================ const fs = require('fs'); const sh = require('shelljs'); const _ = require('lodash'); const { isUpperCase, fileExists, dirExists, ensureDir, fileNameFromPath, stripFileExtension, } = require('./utils'); const lessonsDirPath = `${__dirname}/../docs/src/lessons`; const lessonTemplatePath = `${__dirname}/../docs/src/templates/Lesson.js.template`; const exampleTemplatePath = `${__dirname}/../docs/src/templates/ComponentExample.js.template`; if (process.argv.length <= 2) { console.log(`Usage: ${__filename} LESSON_NAME`); process.exit(-1); } const lessonName = process.argv[2]; console.log(lessonName); const componentName = lessonName .split(' ') .map(_.capitalize) .join(''); console.log('componentName', componentName); const lessonDirPath = `${lessonsDirPath}/${componentName}`; const lessonComponentPath = `${lessonDirPath}/${componentName}Lesson.js`; ensureDir(lessonsDirPath); ensureDir(lessonDirPath); if (!fileExists(lessonComponentPath)) { // use template file to generate a stub example page for this component const lessonTemplate = _.template(sh.cat(lessonTemplatePath).toString()); const lessonStub = lessonTemplate({ name: lessonName, componentName }); fs.writeFile(lessonComponentPath, lessonStub, err => { if (err) throw err; console.log('created stub lesson component:', lessonComponentPath); }); const examplesDirPath = `${lessonDirPath}/examples`; const examplePath = `${examplesDirPath}/${componentName}.js.example`; // use template to generate stub example file, to be used for live preview (using component-playground) const exampleTemplate = _.template(sh.cat(exampleTemplatePath).toString()); const exampleStub = exampleTemplate({ componentName }); ensureDir(examplesDirPath); fs.writeFile(examplePath, exampleStub, err => { if (err) throw err; console.log('created stub example:', examplePath); }); } ================================================ FILE: scripts/utils.js ================================================ const fs = require('fs'); const sh = require('shelljs'); const _ = require('lodash'); function isUpperCase(letter) { return letter.toUpperCase() === letter; } function fileExists(path) { return sh.test('-f', path); } function dirExists(path) { return sh.test('-d', path); } function ensureDir(path) { if (!dirExists(path)) sh.mkdir('-p', path); } function fileNameFromPath(path) { return _.last(path.split('/')); } function stripFileExtension(fileName) { return _.dropRight(fileName.split('.')).join('.'); } module.exports = { isUpperCase, fileExists, dirExists, ensureDir, fileNameFromPath, stripFileExtension, }; ================================================ FILE: src/AreaBarChart.js ================================================ import get from 'lodash/get'; import isFunction from 'lodash/isFunction'; import PropTypes from 'prop-types'; import React from 'react'; import RangeRect from './RangeRect'; import * as CustomPropTypes from './utils/CustomPropTypes'; import { domainFromRangeData, getValue, makeAccessor2 } from './utils/Data'; import { dataTypeFromScaleType } from './utils/Scale'; import { bindTrailingArgs } from './util.js'; import xyPropsEqual from './utils/xyPropsEqual'; /** * `AreaBarChart` is a variation on the standard bar chart. Just like a normal bar chart, each bar represents a single * value on the *dependent* axis (Y axis for vertical bars), and the bar stretches from zero to this value. * However, on the *independent* axis, each bar represents a *range* (min/max) of values, * rather than being centered on a specific value. * In other words, the bar *lengths* act the same way as standard bar chart bars, * but their *thicknesses* are variable and meaningful. * `AreaBarChart`s are the correct way to display histograms with variable bin sizes. * They are so named because, in cases like these histograms, since both the bar thickness and length are meaningful, * so too is the bar's total *area*, unlike in other bar charts. */ export default class AreaBarChart extends React.Component { static propTypes = { /** * D3 scale for X axis - provided by XYPlot */ xScale: PropTypes.func, /** * D3 scale for Y axis - provided by XYPlot */ yScale: PropTypes.func, /** * Array of data to be plotted. One bar will be rendered per datum in this array. */ data: PropTypes.array.isRequired, /** * Boolean which determines whether the chart will use horizontal or vertical bars. * When `true`, bars will be horizontal, ie. the X-axis will be treated as the dependent axis. */ horizontal: PropTypes.bool, /** * Accessor function for bar X values, called once per bar (datum), or a single value to be used for all bars. * If `horizontal` is `false`, this gets the start (min value) of the *independent* variable range, spanned by the bar's thickness. * If `horizontal` is `true`, this gets the *dependent* variable value, the end of the bar's length */ x: CustomPropTypes.valueOrAccessor, /** * Accessor function for the end (max X value) of the *independent* variable range, spanned by the bar's thickness. * Should only be passed when `horizontal` is `false` (ignored otherwise). */ xEnd: CustomPropTypes.valueOrAccessor, /** * Accessor function for bar Y values, called once per bar (datum), or a single value to be used for all bars. * If `horizontal` is `true`, this gets the start (min value) of the *independent* variable range which is spanned by the bar's thickness. * If `horizontal` is `false`, this gets the *dependent* variable value, the end of the bar's length */ y: CustomPropTypes.valueOrAccessor, /** * Accessor function for the end (max Y value) of the *independent* variable range, spanned by the bar's thickness. * Should only be passed when `horizontal` is `true` (ignored otherwise). */ yEnd: CustomPropTypes.valueOrAccessor, /** * Class attribute to be applied to each bar * or accessor function which returns a class. */ barClassName: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), /** * Inline style object to be applied to each bar * or accessor function which returns a style object. */ barStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.func]), /** * `mousemove` event handler callback, called when user's mouse moves within a bar. */ onMouseMoveBar: PropTypes.func, /** * `mouseenter` event handler callback, called when user's mouse enters a bar. */ onMouseEnterBar: PropTypes.func, /** * `mouseleave` event handler callback, called when user's mouse leaves a bar. */ onMouseLeaveBar: PropTypes.func, }; static defaultProps = { horizontal: false, barClassName: '', barStyle: {}, }; static getDomain(props) { const { xScaleType, yScaleType, horizontal, data } = props; // only have to specify range axis domain, other axis uses default domainFromData // for area bar chart, the independent variable is the range // ie. the range controls the thickness of the bar const rangeAxis = horizontal ? 'y' : 'x'; const rangeDataType = dataTypeFromScaleType( rangeAxis === 'x' ? xScaleType : yScaleType, ); // make accessor functions from getX|Y and getX|YEnd const rangeStartAccessor = makeAccessor2(props[`${rangeAxis}`]); const rangeEndAccessor = makeAccessor2(props[`${rangeAxis}End`]); return { [`${rangeAxis}Domain`]: domainFromRangeData( data, rangeStartAccessor, rangeEndAccessor, rangeDataType, ), }; } shouldComponentUpdate(nextProps) { const shouldUpdate = !xyPropsEqual(this.props, nextProps, ['barStyle']); return shouldUpdate; } render() { const { xScale, yScale, data, horizontal, x, xEnd, y, yEnd, barClassName, barStyle, } = this.props; return ( {data.map((d, i) => { const [onMouseEnter, onMouseMove, onMouseLeave] = [ 'onMouseEnterBar', 'onMouseMoveBar', 'onMouseLeaveBar', ].map(eventName => { // partially apply this bar's data point as 2nd callback argument const callback = get(this.props, eventName); return isFunction(callback) ? bindTrailingArgs(callback, d) : null; }); return ( ); })} ); } } ================================================ FILE: src/AreaChart.js ================================================ import { area } from 'd3-shape'; import isUndefined from 'lodash/isUndefined'; import uniqueId from 'lodash/uniqueId'; import PropTypes from 'prop-types'; import React from 'react'; import * as CustomPropTypes from './utils/CustomPropTypes'; import { combineDomains, domainFromData, makeAccessor2 } from './utils/Data'; import xyPropsEqual from './utils/xyPropsEqual'; /** * `AreaChart` represents a simple bivariate area chart, * a filled path drawn between two lines (datasets). */ // todo horizontal prop, for filling area horizontally? // todo support ordinal (like days of the week) data? // todo build StackedAreaChart that composes multiple AreaCharts export default class AreaChart extends React.Component { static propTypes = { /** * The array of data objects */ data: PropTypes.array.isRequired, /** * Accessor function for area X values, called once per datum, * or a single X value to be used for the entire line. */ x: CustomPropTypes.valueOrAccessor, /** * Accessor function for area's starting (minimum) Y values, called once per datum, * or a single Y value to be used for the entire line. * Should return the minimum of the Y range spanned by the area at this point. */ y: CustomPropTypes.valueOrAccessor, /** * Accessor function for area's ending (maximum) Y values, called once per datum, * or a single Y value to be used for the entire line. * Should return the maximum of the Y range spanned by the area at this point. */ yEnd: CustomPropTypes.valueOrAccessor, /** * Class attribute to be applied to area path element. */ // TODO: update to allow function to be passed pathClassName: PropTypes.string, /** * Inline style object to be applied to area path element. */ // TODO: update to allow function to be passed pathStyle: PropTypes.object, /** * If isDifference is true, AreaChart generates a "difference chart" with two area paths instead of one: * one path which shows when YEnd > Y, and one vice versa, allowing them to be styled differently (eg red/green). */ isDifference: PropTypes.bool, /** * When isDifference is true, pathStylePositive can be passed to style the * positive area difference. * Ignored if isDifference is false. */ pathStylePositive: PropTypes.object, /** * When isDifference is true, pathStyleNegative can be passed to style the * negative area difference. * Ignored if isDifference is false. */ pathStyleNegative: PropTypes.object, /** * If true, will show gaps in the shaded area for data where props.isDefined(datum) returns false. */ shouldShowGaps: PropTypes.bool, /** * If shouldShowGaps is true, isDefined function describes when a datum * should be considered "defined" vs. when to show gap by default. * Shows gap if either y or yEnd are undefined. */ isDefined: PropTypes.func, /** * D3 scale for X axis - provided by XYPlot. */ xScale: PropTypes.func, /** * D3 scale for Y axis - provided by XYPlot. */ yScale: PropTypes.func, /** * Type of X scale - provided by XYPlot. */ xScaleType: PropTypes.string, /** * Type of Y scale - provided by XYPlot. */ yScaleType: PropTypes.string, /** * Height of chart - provided by XYPlot. */ height: PropTypes.number, /** * D3 curve for path generation. */ curve: PropTypes.func, }; static defaultProps = { shouldShowGaps: true, isDefined: (d, i, accessors) => { return ( !isUndefined(accessors.y(d, i)) && !isUndefined(accessors.yEnd(d, i)) ); }, pathClassName: '', pathStyle: {}, }; static getDomain(props) { // custom Y domain - the total (union) extent of getY and getYEnd combined const { data, x, y, yEnd } = props; const accessors = { x: makeAccessor2(x), y: makeAccessor2(y), yEnd: makeAccessor2(yEnd), }; return { yDomain: combineDomains([ domainFromData(data, accessors.y), domainFromData(data, accessors.yEnd), ]), }; } shouldComponentUpdate(nextProps) { const shouldUpdate = !xyPropsEqual(this.props, nextProps, [ 'pathStyle', 'pathStylePositive', 'pathStyleNegative', ]); return shouldUpdate; } render() { const { data, x, y, yEnd, xScale, yScale, isDifference, pathStyle, pathStylePositive, pathStyleNegative, shouldShowGaps, pathClassName, isDefined, curve, } = this.props; const accessors = { x: makeAccessor2(x), y: makeAccessor2(y), yEnd: makeAccessor2(yEnd), }; // create d3 area path generator const areaGenerator = area(); // if gaps in data should be shown, use `props.isDefined` function as the `defined` param for d3's area generator; // but wrap it & pass in accessors as well, so that the function can easily access the relevant data values if (shouldShowGaps) { areaGenerator.defined((d, i) => isDefined(d, i, accessors)); } areaGenerator .x((d, i) => xScale(accessors.x(d, i))) .y0((d, i) => yScale(accessors.y(d, i))) .y1((d, i) => yScale(accessors.yEnd(d, i))); if (curve) { areaGenerator.curve(curve); } const areaPathStr = areaGenerator(data); if (isDifference) { // difference chart - create 2 clip paths, one which clips to only show path where YEnd > Y, and other vice versa // don't document height prop from XYPlot /* eslint-disable react/prop-types */ areaGenerator.y0(this.props.height); /* eslint-enable react/prop-types */ const clipBelowPathStr = areaGenerator(data); areaGenerator.y0(0); const clipAbovePathStr = areaGenerator(data); // make sure we have a unique ID for this chart, so clip path IDs don't affect other charts const chartId = uniqueId(); const clipAboveId = `clip-above-area-${chartId}`; const clipBelowId = `clip-below-area-${chartId}`; const pathStyleAbove = pathStylePositive || pathStyle || {}; const pathStyleBelow = pathStyleNegative || pathStyle || {}; return ( ); } return ( ); } } ================================================ FILE: src/AreaHeatmap.js ================================================ import { extent } from 'd3-array'; import flatten from 'lodash/flatten'; import isFunction from 'lodash/isFunction'; import PropTypes from 'prop-types'; import React from 'react'; import { methodIfFuncProp } from './util.js'; import * as CustomPropTypes from './utils/CustomPropTypes'; import { getValue, makeAccessor2 } from './utils/Data'; import xyPropsEqual from './utils/xyPropsEqual'; /** * `AreaHeatmap` is still undergoing experimental changes! * We do not consider this chart to be production ready as it does not support categorical data. */ // todo support categorical data export default class AreaHeatmap extends React.Component { static propTypes = { /** * Array of data objects. */ data: PropTypes.array.isRequired, x: CustomPropTypes.valueOrAccessor, xEnd: CustomPropTypes.valueOrAccessor, y: CustomPropTypes.valueOrAccessor, yEnd: CustomPropTypes.valueOrAccessor, area: CustomPropTypes.valueOrAccessor, unitsPerPixel: PropTypes.number, /** * Class attribute to be applied to each rect * or accessor function which returns a class */ rectClassName: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), /** * Inline style object to be applied to each rect, * or accessor function which returns a style object. */ rectStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.func]), /** * D3 scale for X axis - provided by XYPlot */ xScale: PropTypes.func, /** * D3 scale for Y axis - provided by XYPlot */ yScale: PropTypes.func, onMouseEnter: PropTypes.func, onMouseLeave: PropTypes.func, onMouseMove: PropTypes.func, }; static defaultProps = { rectClassName: '', rectStyle: {} }; static getDomain(props) { const { data, x, xEnd, y, yEnd } = props; return { x: extent( flatten([data.map(makeAccessor2(x)), data.map(makeAccessor2(xEnd))]), ), y: extent( flatten([data.map(makeAccessor2(y)), data.map(makeAccessor2(yEnd))]), ), }; } shouldComponentUpdate(nextProps) { const shouldUpdate = !xyPropsEqual(this.props, nextProps, ['rectStyle']); return shouldUpdate; } onMouseEnter = e => { this.props.onMouseEnter(e); }; onMouseLeave = e => { this.props.onMouseLeave(e); }; onMouseMove = e => { const { xScale, yScale, onMouseMove } = this.props; if (!isFunction(onMouseMove)) return; const boundBox = this.refs.background.getBoundingClientRect(); if (!boundBox) return; const [x, y] = [ e.clientX - (boundBox.left || 0), e.clientY - (boundBox.top || 0), ]; const [xVal, yVal] = [xScale.invert(x), yScale.invert(y)]; onMouseMove(e, { xVal, yVal }); }; render() { const { data, area, x, xEnd, y, yEnd, xScale, yScale, scaleWidth, scaleHeight, rectClassName, rectStyle, } = this.props; const [areaAccessor, xAccessor, xEndAccessor, yAccessor, yEndAccessor] = [ area, x, xEnd, y, yEnd, ].map(makeAccessor2); // to determine how many data units are represented by 1 square pixel of area, // find the bin that would require the highest unit-per-pixel scale if its rectangle filled the whole container const unitsPerPixel = this.props.unitsPerPixel || Math.max.apply( this, data.map((d, i) => { // ratio of this bin's area (in data units) to the entire area of its container rectangle (in pixels) return ( getValue(area, d, i) / Math.abs( (xScale(getValue(xEnd, d, i)) - xScale(getValue(x, d, i))) * (yScale(getValue(yEnd, d, i)) - yScale(getValue(y, d, i))), ) ); }), ); const handlers = { onMouseMove: methodIfFuncProp('onMouseMove', this.props, this), onMouseEnter: methodIfFuncProp('onMouseEnter', this.props, this), onMouseLeave: methodIfFuncProp('onMouseLeave', this.props, this), }; return ( ); } } ================================================ FILE: src/AriaLabelContainer.js ================================================ import React from 'react'; import PropTypes from 'prop-types'; import { ascending } from 'd3-array'; import * as CustomPropTypes from './utils/CustomPropTypes'; import { getValue } from './utils/Data'; AriaLabelContainer.propTypes = { /** * An array containing n objects in the following shape: * [{ * data: Array of your data points, normally used in rendering specific line or area charts * accessor: A function used to access the data point on the x axis from the `data` attribute * (datum) => number * }] */ datasetWithAccessor: PropTypes.arrayOf( PropTypes.shape({ data: PropTypes.arrayOf(PropTypes.object).isRequired, accessor: CustomPropTypes.valueOrAccessor.isRequired, }), ).isRequired, /** * A function that takes the xValue at the start of the frame, an array of datapoints at that xValue, and the index of the frame, * and returns a string to render as an aria label * for the specific frame in the Interface. * * (xValue, [datapoints], frameIndex) => string */ ariaLabelGenerator: PropTypes.func.isRequired, /** * an optional `onKeyDown` event handler to provide for each frame * when selected. * Best practices are to describe how the user will interact with the chart in * the ariaLabelGenerator * * (event, xValue, [datapoints]) => void */ onKeyDown: PropTypes.func, /** * height of the chart - provided by `XYPlot` */ height: PropTypes.number, /** * width of the chart - provided by `XYPlot` */ width: PropTypes.number, /** * D3 scale for X axis - provided by XYPlot */ xScale: PropTypes.func, }; /** * `AriaLabelContainer` provides a mechanism for keyboard navigation of * `LineChart` and `AreaChart` graphs within `XYPlot`. This component renders * a rectangle for a given `numFrames` across a Line/Area chart. `numFrames` should * be equal to the number of data points in your dataset. Users can navigate to a frame * either by pressing `Tab`, or through their assistive technology. `AriaLabelContainer` * takes an `ariaLabelGenerator`, which generates an aria-label for each frame of the chart. * [aria-labels](https://www.w3.org/TR/WCAG20-TECHS/ARIA6.html#ARIA6-description) are critical for users accessing * the web with screenreaders or other assistive technologies. */ export default function AriaLabelContainer(props) { const { ariaLabelGenerator, onKeyDown, height, width, datasetWithAccessor, xScale, } = props; const domain = xScale.domain(); const groupedData = {}; // determine number of frames from n datasets with potentially different accessors datasetWithAccessor.forEach(({ data, accessor }, index) => { data.forEach(d => { const xValue = getValue(accessor, d); const key = xValue.toString(); if (!groupedData[key]) { groupedData[key] = { xValue, data: new Array(datasetWithAccessor.length), // account for missing datapoints in different datasets }; } groupedData[key].data[index] = d; }); }); const zippedDatapoints = Object.values(groupedData).sort((a, b) => ascending(a.xValue, b.xValue), ); const numFrames = zippedDatapoints.length; const sliceWidth = width / (numFrames - 1); return ( {zippedDatapoints.map(({ xValue, data }, index) => ( { if (!!onKeyDown) { onKeyDown(event, xValue, data); } }} /> ))} ); } ================================================ FILE: src/Bar.js ================================================ import invariant from 'invariant'; import isUndefined from 'lodash/isUndefined'; import PropTypes from 'prop-types'; import React from 'react'; import { hasOneOfTwo } from './util'; /** * Bar is a low-level component to be used in XYPlot-type charts (namely BarChart). * It is specified in terms of a range (min & max) of values on one axis and a * single value on the other axis. * Passing props `x`, `xEnd` and `y` specifies a horizontal bar, centered on `y` * and spanning from `x` to `xEnd`. * Passing props `x`, `y`, and `yEnd' specifies a vertical bar, centered on `x` * and spanning from `y` to `yEnd`. */ export default class Bar extends React.Component { static propTypes = { /** * For a vertical bar, `x` represents the X data value on which the bar is centered. * For a horizontal bar, `x` represents the *starting* X value of the bar, ie. the minimum of the range it spans */ x: PropTypes.oneOfType([ PropTypes.number, PropTypes.string, PropTypes.instanceOf(Date), ]), /** * For a horizontal bar, `y` represents the Y data value on which the bar is centered. * For a vertical bar, `y` represents the *starting* Y value of the bar, ie. the minimum of the range it spans */ y: PropTypes.oneOfType([ PropTypes.number, PropTypes.string, PropTypes.instanceOf(Date), ]), /** * For a horizontal bar, `xEnd` represents the *ending* X data value of the bar, ie. the maximum of the range it spans. * This prop should not be defined if the bar is vertical. */ xEnd: PropTypes.oneOfType([ PropTypes.number, PropTypes.string, PropTypes.instanceOf(Date), ]), /** * For a vertical bar, `yEnd` represents the *ending* Y data value of the bar, ie. the maximum of the range it spans. * This prop should not be defined if the bar is horizontal. */ yEnd: PropTypes.oneOfType([ PropTypes.number, PropTypes.string, PropTypes.instanceOf(Date), ]), /** * The thickness of the bar, in pixels. (width of vertical bar, or height of horizontal bar). */ thickness: PropTypes.number, /** * Class name(s) to be included on the bar's element. */ className: PropTypes.string, /** * Inline style object to be included on the bar's element. */ style: PropTypes.object, /** * `mousemove` event handler callback, called when user's mouse moves within the bar. */ onMouseMove: PropTypes.func, /** * `mouseenter` event handler callback, called when user's mouse enters the bar. */ onMouseEnter: PropTypes.func, /** * `mouseleave` event handler callback, called when user's mouse leaves the bar. */ onMouseLeave: PropTypes.func, /** * `click` event handler callback, called when user clicks the bar. */ onClick: PropTypes.func, /** * D3 scale for X axis - provided by XYPlot. */ xScale: PropTypes.func, /** * D3 scale for Y axis - provided by XYPlot. */ yScale: PropTypes.func, /** * Conditional if column should display values above/beside bar. */ showLabel: PropTypes.bool, /** * Format to use for the values or accessor that returns the updated value. */ labelFormat: PropTypes.func, /** * The distance from the column the label appears in pixels. */ labelDistance: PropTypes.number, /** * Class name(s) to be included on the bar's element. */ labelClassName: PropTypes.string, }; static defaultProps = { x: 0, y: 0, thickness: 8, className: '', style: {}, labelDistance: 24, }; render() { // x/y are values in the *data* domain, not pixel domain const { xScale, yScale, x, xEnd, y, yEnd, thickness, style, onMouseEnter, onMouseMove, onMouseLeave, onClick, showLabel, className, labelFormat, labelDistance, labelClassName, } = this.props; invariant( hasOneOfTwo(xEnd, yEnd), `Bar expects an xEnd *or* yEnd prop, but not both.`, ); const orientation = isUndefined(xEnd) ? 'vertical' : 'horizontal'; const classNameForBar = `rct-chart-bar rct-chart-bar-${orientation} ${className}`; const labelClass = `rct-chart-bar-label ${labelClassName || ''}`; let rectX; let rectY; let width; let height; let xText; let yText; let textAnchor; let textValue; if (orientation === 'horizontal') { rectY = yScale(y) - thickness / 2; const x0 = xScale(x); const x1 = xScale(xEnd); rectX = Math.min(x0, x1); width = Math.abs(x1 - x0); height = thickness; // horizontal text formatting to right of bar xText = Math.max(x0, x1) + labelDistance; yText = rectY + thickness / 2 + 5; textAnchor = ''; textValue = xEnd; } else { // vertical rectX = xScale(x) - thickness / 2; const y0 = yScale(y); const y1 = yScale(yEnd); rectY = Math.min(y0, y1); height = Math.abs(y1 - y0); width = thickness; // vertical text formatting xText = rectX + thickness / 2; yText = rectY - labelDistance; textAnchor = 'middle'; textValue = yEnd; } const rect = (