diff --git a/.gitignore b/.gitignore index 3c3629e..474763e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ node_modules + +*storybook.log \ No newline at end of file diff --git a/.storybook/main.ts b/.storybook/main.ts new file mode 100644 index 0000000..f5dba2c --- /dev/null +++ b/.storybook/main.ts @@ -0,0 +1,27 @@ +import type { StorybookConfig } from "@storybook/react-vite"; + +const config: StorybookConfig = { + stories: ["./stories/**/*.mdx", "./stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"], + addons: [ + // "@storybook/addon-onboarding", + // "@storybook/addon-links", + // "@storybook/addon-essentials", + // "@chromatic-com/storybook", + // "@storybook/addon-interactions", + { + name: "@storybook/addon-essentials", + options: { + actions: false, + }, + } + ], + framework: { + name: "@storybook/react-vite", + options: {}, + }, + docs: { + autodocs: "tag", + }, + +}; +export default config; diff --git a/.storybook/preview.ts b/.storybook/preview.ts new file mode 100644 index 0000000..9db75e4 --- /dev/null +++ b/.storybook/preview.ts @@ -0,0 +1,18 @@ +import type { Preview } from "@storybook/react"; + +const preview: Preview = { + parameters: { + controls: { + matchers: { + color: /(background|color)$/i, + date: /Date$/i, + }, + }, options: { + storySort: { + order: ['Getting started', ['nbody', 'Installation', 'Integration'], 'Usage', 'Examples'], + }, + } + }, +}; + +export default preview; diff --git a/.storybook/stories/Examples/Simulation.mdx b/.storybook/stories/Examples/Simulation.mdx new file mode 100644 index 0000000..e9c77a7 --- /dev/null +++ b/.storybook/stories/Examples/Simulation.mdx @@ -0,0 +1,18 @@ +import { Meta, Story } from '@storybook/blocks'; + +import * as SimulationStories from './Simulation.stories'; + + + +# Button + +Button is a clickable interactive element that triggers a response. + +You can place text and icons inside of a button. + +Buttons are often used for form submissions and to toggle elements into view. + +## Usage + + + \ No newline at end of file diff --git a/.storybook/stories/Examples/Simulation.stories.tsx b/.storybook/stories/Examples/Simulation.stories.tsx new file mode 100644 index 0000000..44a9b5a --- /dev/null +++ b/.storybook/stories/Examples/Simulation.stories.tsx @@ -0,0 +1,66 @@ +import type { Meta, StoryObj } from '@storybook/react'; +import { Simulation } from './Simulation'; + +// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export +const meta = { + title: 'Examples/Simulation', + component: Simulation, + parameters: { + // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout + layout: 'centered', + controls: { + disable: true, + } + }, + // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs + tags: [], + // More on argTypes: https://storybook.js.org/docs/api/argtypes + argTypes: { + // storyName: { + + // } + // visType: { + + // } + // record: { + + // } + // looped: { + + // } + // controller: { + + // } + // showTrails: { + + // } + // showDebugInfo: { + + // } + // maxFrameRate: { + + // } + // maxTrailLength: { + + // } + }, + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + args: { }, +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args +export const TwoDim: Story = { + args: { + storyName: '2D', + }, +}; + +export const ThreeDim: Story = { + args: { + storyName: '3D', + visType: '3D', + }, +}; \ No newline at end of file diff --git a/.storybook/stories/Examples/Simulation.tsx b/.storybook/stories/Examples/Simulation.tsx new file mode 100644 index 0000000..0df1757 --- /dev/null +++ b/.storybook/stories/Examples/Simulation.tsx @@ -0,0 +1,80 @@ +import React from 'react'; +import { CelestialBody, ControllerType, Gravity, Simulation as NbodySimulation, RungeKutta4Sim, State, Universe, Vector3, VisType } from "../../../src/index"; + +interface SimulationProps { + storyName: string; + visType?: VisType; + record?: boolean; + looped?: boolean; + controller?: ControllerType; + showTrails?: boolean; + showDebugInfo?: boolean; + maxFrameRate?: number; + maxTrailLength?: number; +} + +/** + * Primary UI component for user interaction + */ +export const Simulation = ({ + storyName = 'default', + visType = '2D', + record = false, + looped = true, + controller = 'ui', + showTrails = false, + showDebugInfo = true, + maxFrameRate = -1, + maxTrailLength = 100, + ...props +}: SimulationProps) => { + const divId = 'demo-' + storyName; + const force = new Gravity(1); + const a = new CelestialBody( + "a", + 1, + new Vector3(-0.97000436, 0.24308753, 0), + new Vector3(0.466203685, 0.43236573, 0), + new Vector3(0, 0, 0) + ); + const b = new CelestialBody( + "b", + 1, + new Vector3(0.97000436, -0.24308753, 0), + new Vector3(0.466203685, 0.43236573, 0), + new Vector3(0, 0, 0) + ); + const c = new CelestialBody( + "c", + 1, + new Vector3(0, 0, 0), + new Vector3(-2 * 0.466203685, -2 * 0.43236573, 0), + new Vector3(0, 0, 0) + ); + const universe: Universe = new Universe({ + label: "a", + currState: new State([a, b, c]), + color: "rgba(254, 209, 106, 1)", + simFunc: new RungeKutta4Sim(force, [1, 2, 2, 1]), + } + ); + + const simulation = new NbodySimulation([universe], { + visType, + record, + looped, + controller, + showTrails, + showDebugInfo, + maxFrameRate, + maxTrailLength, + }); + + return ( +
simulation.start(divId, 600, 600)}> +
+ ); +}; diff --git a/.storybook/stories/Install.mdx b/.storybook/stories/Install.mdx new file mode 100644 index 0000000..5d42744 --- /dev/null +++ b/.storybook/stories/Install.mdx @@ -0,0 +1,20 @@ +import { Meta, Story } from '@storybook/blocks'; + + + +# Installation guide +nbody is available on the npm registry as [nbody](https://www.npmjs.com/package/nbody). Simply follow the following install commands based on your package manager. Since nbody relies on [three](https://threejs.org/) and [Plotly.js](https://plotly.com/javascript/) for visualization of the simulations, they have to be installed alongside nbody. + +If you are using Typescript, you may also have to install type definitions as well. + + +```bash +npm install nbody three plotly.js-dist +npm install --save-dev @types/three @types/plotly.js +``` +or + +```bash +yarn add nbody three plotly.js-dist +yarn add -D @types/three @types/plotly.js +``` diff --git a/.storybook/stories/Integration.mdx b/.storybook/stories/Integration.mdx new file mode 100644 index 0000000..49882e8 --- /dev/null +++ b/.storybook/stories/Integration.mdx @@ -0,0 +1,123 @@ +import { Meta, Story } from '@storybook/blocks'; + + + +# Integration + +Once installed into your `node_modules`, you can use **nbody** in your choice of your frontend framework just like you would any other client side library. + +## Table of Contents +- [Compatible Frameworks](#compatible-frameworks) +- [React](#react) +- [Typescript](#typescript) + +## Compatible Frameworks + +Following combinations of Frontend frameworks + build tools + dev tools have been tested to be compatible with nbody. Consider raising a [request](https://github.com/source-academy/nbody/issues) if any frameworks are missing. Additionally do consider contributing to the project directly. + +- React + Vite +- React + Vite + TS +- React + Webpack +- React + Webpack + TS + +## React + +```javascript +import { + CelestialBody, Gravity, VelocityVerletSim, State, Universe, Simulation, RungeKutta4Sim, ExplicitEulerSim, SemiImplicitEulerSim, CoMTransformation, Vector3 +} from "nbody"; + +function run(divId, width, height) { + let g = 1; + + let force = new Gravity(g); + let sim = new VelocityVerletSim(force); + + let a = new CelestialBody( + "a", + 1, + new Vector3(-0.97000436, 0.24308753, 0), + new Vector3(0.466203685, 0.43236573, 0), + new Vector3(0, 0, 0) + ); + + let b = new CelestialBody( + "b", + 1, + new Vector3(0.97000436, -0.24308753, 0), + new Vector3(0.466203685, 0.43236573, 0), + new Vector3(0, 0, 0) + ); + + let c = new CelestialBody( + "c", + 1, + new Vector3(0, 0, 0), + new Vector3(-2 * 0.466203685, -2 * 0.43236573, 0), + new Vector3(0, 0, 0) + ); + + let state = new State([a, b, c]); + + let universe = new Universe({ + label: "1", + currState: state.clone(), + color: "rgba(112, 185, 177, 1)", + simFunc: sim, + }); + + let simulation = new Simulation(universe, { + visType: "3D", + showTrails: true, + controller: "ui", + }); + + simulation.start(divId, 800, 800, width, height); +} + +function App() { + return ( +
run("demo-canvas", 800, 800)} + >
+ ); +} + +export default App; +``` + +## Typescript + +```typescript +class TranslateZTransformation implements Transformation { + transform(state: State, deltaT: number): State { + const newState = state.clone(); + newState.bodies.forEach((body) => { + body.position.z += 1; + }); + return newState; + } +} + +function run(divId: string) { + ... + + let universe: Universe = new Universe({ + label: "Translated Universe", + currState: new State([a, b, c]), + color: "rgba(254, 209, 106, 1)", + simFunc: new VelocityVerletSim(new Gravity(1)), + transformations: [new TranslateZTransformation()] + } + ); + + ... +} +``` \ No newline at end of file diff --git a/.storybook/stories/Nbody.mdx b/.storybook/stories/Nbody.mdx new file mode 100644 index 0000000..6d9e04f --- /dev/null +++ b/.storybook/stories/Nbody.mdx @@ -0,0 +1,27 @@ +import { Meta, Story } from "@storybook/blocks"; + + + +[API](https://source-academy.github.io/nbody/api) + +# nbody + +A JS/TS library to configure, simulate and visualize nbody simulations in the browser. + +# Background + +The [**n-body problem**](https://en.wikipedia.org/wiki/N-body_problem), a cornerstone of celestial mechanics, involves predicting the motions of multiple objects interacting **gravitationally**. While solvable analytically for [two-bodies](https://en.wikipedia.org/wiki/Two-body_problem), we rely on computer simulations using numerical integration methods for three or more. + +This project aims to bridge the _space_ between accuracy, accessibility, performance and education. With this JS/TS library, you can + +- **Effortlessly configure** your system of bodies. +- **Simulate with flexibility** utilizing various accurate and/or performant numerical integration methods or even write you own. +- **Visually explore** and immerse yourself with customizable 2D and 3D visualizations and intuitive UI controls + +# Development + +**nbody** is maintained by the open-source [Source Academy](https://github.com/source-academy/) development community based in National University of Singapore. Anyone from anywhere is free to contribute to the project and the community. + +# Contributors + +- [Yeluri Ketan](https://yeluriketan.vercel.app/) - Creator and Maintainer diff --git a/.storybook/stories/Usage/CelestialBody.mdx b/.storybook/stories/Usage/CelestialBody.mdx new file mode 100644 index 0000000..e0a997d --- /dev/null +++ b/.storybook/stories/Usage/CelestialBody.mdx @@ -0,0 +1,13 @@ +import { Meta, Story } from '@storybook/blocks'; + + + +```ts + const a = new CelestialBody( + "a", + 1, + new Vector3(-0.97000436, 0.24308753, 0), + new Vector3(0.466203685, 0.43236573, 0), + new Vector3(0, 0, 0) + ); +``` \ No newline at end of file diff --git a/.storybook/stories/assets/accessibility.png b/.storybook/stories/assets/accessibility.png new file mode 100644 index 0000000..6ffe6fe Binary files /dev/null and b/.storybook/stories/assets/accessibility.png differ diff --git a/.storybook/stories/assets/accessibility.svg b/.storybook/stories/assets/accessibility.svg new file mode 100644 index 0000000..a328883 --- /dev/null +++ b/.storybook/stories/assets/accessibility.svg @@ -0,0 +1,5 @@ + + Accessibility + + + \ No newline at end of file diff --git a/.storybook/stories/assets/addon-library.png b/.storybook/stories/assets/addon-library.png new file mode 100644 index 0000000..95deb38 Binary files /dev/null and b/.storybook/stories/assets/addon-library.png differ diff --git a/.storybook/stories/assets/assets.png b/.storybook/stories/assets/assets.png new file mode 100644 index 0000000..cfba681 Binary files /dev/null and b/.storybook/stories/assets/assets.png differ diff --git a/.storybook/stories/assets/avif-test-image.avif b/.storybook/stories/assets/avif-test-image.avif new file mode 100644 index 0000000..530709b Binary files /dev/null and b/.storybook/stories/assets/avif-test-image.avif differ diff --git a/.storybook/stories/assets/context.png b/.storybook/stories/assets/context.png new file mode 100644 index 0000000..e5cd249 Binary files /dev/null and b/.storybook/stories/assets/context.png differ diff --git a/.storybook/stories/assets/discord.svg b/.storybook/stories/assets/discord.svg new file mode 100644 index 0000000..1204df9 --- /dev/null +++ b/.storybook/stories/assets/discord.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/.storybook/stories/assets/docs.png b/.storybook/stories/assets/docs.png new file mode 100644 index 0000000..a749629 Binary files /dev/null and b/.storybook/stories/assets/docs.png differ diff --git a/.storybook/stories/assets/figma-plugin.png b/.storybook/stories/assets/figma-plugin.png new file mode 100644 index 0000000..8f79b08 Binary files /dev/null and b/.storybook/stories/assets/figma-plugin.png differ diff --git a/.storybook/stories/assets/github.svg b/.storybook/stories/assets/github.svg new file mode 100644 index 0000000..158e026 --- /dev/null +++ b/.storybook/stories/assets/github.svg @@ -0,0 +1,3 @@ + + + diff --git a/.storybook/stories/assets/share.png b/.storybook/stories/assets/share.png new file mode 100644 index 0000000..8097a37 Binary files /dev/null and b/.storybook/stories/assets/share.png differ diff --git a/.storybook/stories/assets/styling.png b/.storybook/stories/assets/styling.png new file mode 100644 index 0000000..d341e82 Binary files /dev/null and b/.storybook/stories/assets/styling.png differ diff --git a/.storybook/stories/assets/testing.png b/.storybook/stories/assets/testing.png new file mode 100644 index 0000000..d4ac39a Binary files /dev/null and b/.storybook/stories/assets/testing.png differ diff --git a/.storybook/stories/assets/theming.png b/.storybook/stories/assets/theming.png new file mode 100644 index 0000000..1535eb9 Binary files /dev/null and b/.storybook/stories/assets/theming.png differ diff --git a/.storybook/stories/assets/tutorials.svg b/.storybook/stories/assets/tutorials.svg new file mode 100644 index 0000000..4b2fc7c --- /dev/null +++ b/.storybook/stories/assets/tutorials.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/.storybook/stories/assets/youtube.svg b/.storybook/stories/assets/youtube.svg new file mode 100644 index 0000000..33a3a61 --- /dev/null +++ b/.storybook/stories/assets/youtube.svg @@ -0,0 +1,4 @@ + + + + diff --git a/.vscode/settings.json b/.vscode/settings.json index d3164c2..6fde596 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,11 @@ { - "eslint.workingDirectories": ["src"], + "eslint.workingDirectories": ["src", ".storybook"], "[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, + "[typescriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, "eslint.format.enable": true, "editor.codeActionsOnSave": { "source.organizeImports": "always", diff --git a/dist/src/CelestialBody.js b/dist/src/CelestialBody.js index c322895..bda3bb5 100644 --- a/dist/src/CelestialBody.js +++ b/dist/src/CelestialBody.js @@ -29,4 +29,3 @@ export class CelestialBody { return new CelestialBody(this.label, this.mass, position === undefined ? this.position.clone() : position, velocity === undefined ? this.velocity.clone() : velocity, acceleration === undefined ? this.acceleration.clone() : acceleration); } } -//# sourceMappingURL=CelestialBody.js.map \ No newline at end of file diff --git a/dist/src/CelestialBody.js.map b/dist/src/CelestialBody.js.map deleted file mode 100644 index e57d037..0000000 --- a/dist/src/CelestialBody.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CelestialBody.js","sourceRoot":"","sources":["../../src/CelestialBody.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,OAAO,aAAa;IAsBxB;;;;;;;OAOG;IACH,YACE,KAAa,EACb,IAAY,EACZ,QAAiB,EACjB,QAAiB,EACjB,YAAqB;QAErB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,QAAkB,EACtB,QAAkB,EAClB,YAAsB;QACtB,OAAO,IAAI,aAAa,CACtB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,EACzD,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,EACzD,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,YAAY,CACtE,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/Force.js b/dist/src/Force.js index 69d14e3..4fc2b00 100644 --- a/dist/src/Force.js +++ b/dist/src/Force.js @@ -22,4 +22,3 @@ export class LambdaForce { return this.fn(bodies); } } -//# sourceMappingURL=Force.js.map \ No newline at end of file diff --git a/dist/src/Force.js.map b/dist/src/Force.js.map deleted file mode 100644 index c245114..0000000 --- a/dist/src/Force.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Force.js","sourceRoot":"","sources":["../../src/Force.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,OAAO,WAAW;IAMtB;;;;;;OAMG;IACH,YAAY,EAA0C;QACpD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAGD;;;;OAIG;IACH,SAAS,CAAC,MAAuB;QAC/B,OAAO,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/SimulateFunction.js b/dist/src/SimulateFunction.js index fc94acf..3770add 100644 --- a/dist/src/SimulateFunction.js +++ b/dist/src/SimulateFunction.js @@ -23,4 +23,3 @@ export class LambdaSim { return this.fn(deltaT, currState, prevState); } } -//# sourceMappingURL=SimulateFunction.js.map \ No newline at end of file diff --git a/dist/src/SimulateFunction.js.map b/dist/src/SimulateFunction.js.map deleted file mode 100644 index 3deeede..0000000 --- a/dist/src/SimulateFunction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SimulateFunction.js","sourceRoot":"","sources":["../../src/SimulateFunction.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,MAAM,OAAO,SAAS;IAGpB;;;;;OAKG;IACH,YAAY,EAAiE;QAC3E,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,MAAc,EAAE,SAAgB,EAAE,SAAgB;QACzD,OAAO,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC/C,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/Simulation.js b/dist/src/Simulation.js index 0444a70..c569915 100644 --- a/dist/src/Simulation.js +++ b/dist/src/Simulation.js @@ -185,4 +185,3 @@ export class Simulation { this.visualizer.stop(); } } -//# sourceMappingURL=Simulation.js.map \ No newline at end of file diff --git a/dist/src/Simulation.js.map b/dist/src/Simulation.js.map deleted file mode 100644 index 5302558..0000000 --- a/dist/src/Simulation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Simulation.js","sourceRoot":"","sources":["../../src/Simulation.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAgB9B;;;GAGG;AACH,MAAM,OAAO,UAAU;IAmErB;;;;;;;;;;;OAWG;IACH,YACE,SAAgC,EAChC,EACE,OAAO,GAAG,IAAI,EACd,MAAM,GAAG,KAAK,EACd,MAAM,GAAG,IAAI,EACb,UAAU,GAAG,MAAM,EACnB,UAAU,GAAG,KAAK,EAClB,aAAa,GAAG,KAAK,EACrB,YAAY,GAAG,CAAC,CAAC,EACjB,cAAc,GAAG,GAAG,GAUrB;QAnEH;;;WAGG;QACH,aAAQ,GAmBJ;YACA,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,EAAE;SACjB,CAAC;QAyCF,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACpE,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;QACD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACjE,IAAI,YAAY,CAAC,IAAI,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;YAChD,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,MAAM,EAAE,CAAC;YACX,mCAAmC;YACnC,yDAAyD;YACzD,IAAI;YACJ,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU;kBACX,OAAO,KAAK,IAAI;oBAChB,CAAC,CAAC,IAAI,mBAAmB,CAAC,IAAI,CAAC;oBAC/B,CAAC,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,UAAU;kBACX,OAAO,KAAK,IAAI;oBAChB,CAAC,CAAC,IAAI,kBAAkB,CAAC,IAAI,CAAC;oBAC9B,CAAC,CAAC,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,KAAa;QACpB,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;QAC9B,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;QAC9B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAC;QAC/B,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;IAClC,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,UAAmB;QAC/B,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;YACtC,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,OAAO;YACT,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,KAAa,EAAE,IAAa;QAC1C,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QAC3C,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,iBAAiB;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,cAAsB;QACtC,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC/B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACvC,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,MAAc;QACzB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAClC,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CACH,KAAa,EACb,KAAa,EACb,MAAc,EACd,QAAgB,CAAC,EACjB,SAAkB,KAAK,EACvB,YAAoB,CAAC;QAErB,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACjE,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;QAC5B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,IAAI;QACF,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/State.js b/dist/src/State.js index 20aa829..72a056c 100644 --- a/dist/src/State.js +++ b/dist/src/State.js @@ -18,4 +18,3 @@ export class State { return new State(this.bodies.map((body) => body.clone())); } } -//# sourceMappingURL=State.js.map \ No newline at end of file diff --git a/dist/src/State.js.map b/dist/src/State.js.map deleted file mode 100644 index 7bd3eba..0000000 --- a/dist/src/State.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"State.js","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,OAAO,KAAK;IAMhB;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/Transformation.js b/dist/src/Transformation.js index 30a7143..a99b53c 100644 --- a/dist/src/Transformation.js +++ b/dist/src/Transformation.js @@ -23,4 +23,3 @@ export class LambdaTransformation { return this.fn(state, deltaT); } } -//# sourceMappingURL=Transformation.js.map \ No newline at end of file diff --git a/dist/src/Transformation.js.map b/dist/src/Transformation.js.map deleted file mode 100644 index 7577995..0000000 --- a/dist/src/Transformation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Transformation.js","sourceRoot":"","sources":["../../src/Transformation.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAG/B;;;;;;OAMG;IACH,YAAY,EAA2C;QACrD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,KAAY,EAAE,MAAc;QACpC,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/Universe.js b/dist/src/Universe.js index f371dad..5c39a02 100644 --- a/dist/src/Universe.js +++ b/dist/src/Universe.js @@ -54,4 +54,3 @@ export class Universe { }); } } -//# sourceMappingURL=Universe.js.map \ No newline at end of file diff --git a/dist/src/Universe.js.map b/dist/src/Universe.js.map deleted file mode 100644 index 6801ab0..0000000 --- a/dist/src/Universe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Universe.js","sourceRoot":"","sources":["../../src/Universe.ts"],"names":[],"mappings":"AAmCA;;;GAGG;AACH,MAAM,OAAO,QAAQ;IAoBnB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACzF,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAC7F,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QACpE,IAAI,CAAC,SAAS;cACV,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;QACzE,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,KAAK;cACN,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QACzE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,eAAe;cAChB,MAAM,CAAC,eAAe,KAAK,SAAS;gBACpC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC;oBACrC,CAAC,CAAC,MAAM,CAAC,eAAe;oBACxB,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,MAAc;QACzB,IAAI,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAClC,MAAM,EACN,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,SAAS,CACf,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACjC,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,KAAK;QACH,OAAO,IAAI,QAAQ,CAAC;YAClB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;YACjC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;YACjC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/Visualizer.js b/dist/src/Visualizer.js index 25785bb..cb0ff5c 100644 --- a/dist/src/Visualizer.js +++ b/dist/src/Visualizer.js @@ -1,2 +1 @@ export {}; -//# sourceMappingURL=Visualizer.js.map \ No newline at end of file diff --git a/dist/src/Visualizer.js.map b/dist/src/Visualizer.js.map deleted file mode 100644 index 71c014d..0000000 --- a/dist/src/Visualizer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Visualizer.js","sourceRoot":"","sources":["../../src/Visualizer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/src/index.js b/dist/src/index.js index 1ed6e96..6c00158 100644 --- a/dist/src/index.js +++ b/dist/src/index.js @@ -15,4 +15,3 @@ import { Universe } from './Universe'; import { RealTimeVisualizer, RealTimeVisualizer3D, RecordingVisualizer, RecordingVisualizer3D, } from './library/Visualizer'; import { Vector3 } from 'three'; export { BodyCenterTransformation, CelestialBody, CentripetalForce, CombinedForce, CoMTransformation, ExplicitEulerSim, Gravity, LambdaForce, LambdaSim, LambdaTransformation, RealTimeVisualizer, RealTimeVisualizer3D, RecordingVisualizer, RecordingVisualizer3D, RotateTransformation, RungeKutta4Sim, SemiImplicitEulerSim, Simulation, State, Universe, Vector3, VelocityVerletSim, }; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/index.js.map b/dist/src/index.js.map deleted file mode 100644 index 7e15b5c..0000000 --- a/dist/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,aAAa,GACd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAc,MAAM,SAAS,CAAC;AAClD,OAAO,EACL,gBAAgB,EAAE,aAAa,EAAE,OAAO,GACzC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,gBAAgB,EAAE,cAAc,EAChC,oBAAoB,EAAE,iBAAiB,GACxC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,SAAS,EAAyB,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,UAAU,EAAqC,MAAM,cAAc,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EAAE,oBAAoB,GACxC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAuB,MAAM,kBAAkB,CAAC;AAE7E,OAAO,EAAE,QAAQ,EAAuB,MAAM,YAAY,CAAC;AAE3D,OAAO,EACL,kBAAkB,EAAE,oBAAoB,EACxC,mBAAmB,EAAE,qBAAqB,GAC3C,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EACL,wBAAwB,EAAE,aAAa,EAAE,gBAAgB,EACzD,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,oBAAoB,EAAE,kBAAkB,EAC7H,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EAAE,cAAc,EACpC,oBAAoB,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,GAC9E,CAAC"} \ No newline at end of file diff --git a/dist/src/library/Force.js b/dist/src/library/Force.js index aa9d3ad..edd0194 100644 --- a/dist/src/library/Force.js +++ b/dist/src/library/Force.js @@ -102,4 +102,3 @@ export class CombinedForce { return forceVal; } } -//# sourceMappingURL=Force.js.map \ No newline at end of file diff --git a/dist/src/library/Force.js.map b/dist/src/library/Force.js.map deleted file mode 100644 index f7ad36c..0000000 --- a/dist/src/library/Force.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Force.js","sourceRoot":"","sources":["../../../src/library/Force.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC;;;GAGG;AACH,MAAM,OAAO,OAAO;IAOlB;;;OAGG;IACH,YAAY,IAAY,SAAS;QAC/B,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAuB;QAC/B,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;QACtB,IAAI,GAAG,GAAc,EAAE,CAAC;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3B,GAAG,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC;QACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC/B,IAAI,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBACzD,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;gBACtB,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;;;;OAMG;IACK,aAAa,CAAC,CAAgB,EAAE,CAAgB;QACtD,IAAI,MAAM,GAAG,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,QAAQ,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;QACnD,OAAO,CAAC,CAAC,QAAQ;aACd,KAAK,EAAE;aACP,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;aACf,SAAS,EAAE;aACX,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,gBAAgB;IAM3B;;;OAGG;IACH,YAAY,SAAkB,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAuB;QAC/B,kCAAkC;QAClC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACzB,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;iBACxC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACtB,OAAO,eAAe,CAAC,SAAS,CAC9B,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,CAClE,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAe;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAuB;QAC/B,MAAM,QAAQ,GAAc,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACnE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC5B,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;iBACpB,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;gBACtB,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/library/SimulateFunction.js b/dist/src/library/SimulateFunction.js index 9b2dce7..4c5b59d 100644 --- a/dist/src/library/SimulateFunction.js +++ b/dist/src/library/SimulateFunction.js @@ -336,4 +336,3 @@ export class RungeKutta4Sim { .multiplyScalar(deltaT))); } } -//# sourceMappingURL=SimulateFunction.js.map \ No newline at end of file diff --git a/dist/src/library/SimulateFunction.js.map b/dist/src/library/SimulateFunction.js.map deleted file mode 100644 index a491a01..0000000 --- a/dist/src/library/SimulateFunction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SimulateFunction.js","sourceRoot":"","sources":["../../../src/library/SimulateFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,uDAAuD;AACvD,4BAA4B;AAC5B,gDAAgD;AAEhD,0CAA0C;AAC1C,8CAA8C;AAC9C,MAAM;AAEN,0BAA0B;AAC1B,wBAAwB;AACxB,sBAAsB;AACtB,wBAAwB;AACxB,eAAe;AACf,mFAAmF;AACnF,iEAAiE;AACjE,iCAAiC;AACjC,mBAAmB;AACnB,sCAAsC;AACtC,8BAA8B;AAC9B,kCAAkC;AAClC,+BAA+B;AAC/B,2BAA2B;AAC3B,kBAAkB;AAClB,yDAAyD;AACzD,oBAAoB;AACpB,WAAW;AACX,UAAU;AAEV,gCAAgC;AAChC,uCAAuC;AACvC,MAAM;AAEN,2EAA2E;AAC3E,yBAAyB;AACzB,kCAAkC;AAClC,QAAQ;AAER,qEAAqE;AACrE,uDAAuD;AACvD,6DAA6D;AAC7D,kCAAkC;AAClC,QAAQ;AAER,qCAAqC;AACrC,6DAA6D;AAC7D,QAAQ;AAER,mFAAmF;AACnF,iEAAiE;AACjE,uCAAuC;AACvC,4CAA4C;AAC5C,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;AACjB,WAAW;AACX,2BAA2B;AAC3B,kBAAkB;AAClB,yDAAyD;AACzD,oBAAoB;AACpB,WAAW;AACX,UAAU;AAEV,gCAAgC;AAChC,uCAAuC;AACvC,MAAM;AAEN,eAAe;AACf,uBAAuB;AACvB,wBAAwB;AACxB,0BAA0B;AAC1B,qBAAqB;AACrB,iBAAiB;AACjB,+EAA+E;AAE/E,uBAAuB;AACvB,iBAAiB;AACjB,+CAA+C;AAC/C,+DAA+D;AAC/D,gCAAgC;AAChC,uBAAuB;AACvB,MAAM;AAEN,4EAA4E;AAC5E,+DAA+D;AAC/D,MAAM;AACN,IAAI;AAEJ;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAM5B;;;OAGG;IACH,YAAY,eAAsB;QAChC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,MAAc,EAAE,SAAgB;QACvC,IAAI,MAAM,IAAI,CAAC,EAAE,CAAC;YAChB,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC;QAC3B,CAAC;QACD,0DAA0D;QAC1D,IAAI,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC7C,IAAI,WAAW,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;YAC5B,WAAW,CAAC,QAAQ,GAAG,IAAI,CAAC,UAAU,CACpC,WAAW,CAAC,QAAQ,EACpB,WAAW,CAAC,QAAQ,EACpB,WAAW,CAAC,YAAY,EACxB,MAAM,CACP,CAAC;YACF,OAAO,WAAW,CAAC;QACrB,CAAC,CAAC,CAAC;QACH,iCAAiC;QACjC,IAAI,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC9D,OAAO,IAAI,KAAK,CACd,aAAa,CAAC,GAAG,CAAC,CAAC,CAAgB,EAAE,CAAS,EAAE,EAAE;YAChD,IAAI,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACjD,mDAAmD;YACnD,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC;iBACxC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;YAC/B,CAAC,CAAC,YAAY,GAAG,QAAQ,CAAC;YAC1B,OAAO,CAAC,CAAC;QACX,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACK,UAAU,CAChB,OAAgB,EAChB,OAAgB,EAChB,SAAkB,EAClB,MAAc;QAEd,OAAO,OAAO;aACX,KAAK,EAAE;aACP,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE;aACjB,cAAc,CAAC,MAAM,CAAC,CAAC;aACzB,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE;aACnB,cAAc,CAAC,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,gBAAgB;IAM3B;;;OAGG;IACH,YAAY,KAAY;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CACN,MAAc,EACd,SAAgB;QAEhB,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK;QACvD,+BAA+B;QAC/B,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC/C,+BAA+B;QAC/B,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,CACpD,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC1D,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC7B,iCAAiC;YACjC,CAAC,CAAC,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;OAOG;IACK,UAAU,CAAC,IAAa,EAAE,IAAa,EAAE,MAAc;QAC7D,OAAO,IAAI,CAAC,KAAK,EAAE;aAChB,cAAc,CAAC,MAAM,CAAC;aACtB,GAAG,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAM/B;;;OAGG;IACH,YAAY,KAAY;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CACN,MAAc,EACd,SAAgB;QAEhB,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC/C,+BAA+B;YAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;YACvE,OAAO,CAAC,CAAC,KAAK;YACZ,oCAAoC;YACpC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,EAC/C,UAAU,CACX,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC1D,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC7B,iCAAiC;YACjC,CAAC,CAAC,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;OAOG;IACK,UAAU,CAAC,IAAa,EAAE,IAAa,EAAE,MAAc;QAC7D,OAAO,IAAI,CAAC,KAAK,EAAE;aAChB,cAAc,CAAC,MAAM,CAAC;aACtB,GAAG,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;CACF;AAgBD;;;GAGG;AACH,MAAM,OAAO,cAAc;IAUzB;;;;OAIG;IACH,YAAY,KAAY,EAAE,OAAiB;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACzD,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CACN,MAAc,EACd,SAAgB;QAEhB,IAAI,OAAO,GAAsB,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC5D,gBAAgB;YAChB,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;YAC5B,aAAa;YACb,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;SACzB,CAAC,CAAC,CAAC;QACJ,+BAA+B;QAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QACtE,4BAA4B;QAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QACtE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACvB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,+BAA+B;QAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QACtE,4BAA4B;QAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QACtE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACvB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,2BAA2B;QAC3B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;QAClE,wBAAwB;QACxB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;QAClE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACvB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAClD,MAAM,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC;YACpC,MAAM,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC;YACpC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAC7B,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAC7B,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,CAAC,KAAK,CACZ,aAAa,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;iBACrC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClB,aAAa,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;iBACrC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CACnB,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC1D,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC7B,CAAC,CAAC,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;OAQG;IACK,UAAU,CAChB,MAAuB,EACvB,OAA0B,EAC1B,KAAa,EACb,MAAc;QAEd,iCAAiC;QACjC,IAAI,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAClC,IAAI,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;YACxB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE;iBAC9C,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;YAC3B,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;QACH,gBAAgB;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;aACnC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;;OAQG;IACK,UAAU,CAChB,MAAuB,EACvB,OAA0B,EAC1B,IAAY,EACZ,MAAc;QAEd,2BAA2B;QAC3B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE;aAC3C,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE;aAC7B,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/library/Transformation.js b/dist/src/library/Transformation.js index ea1384a..d418405 100644 --- a/dist/src/library/Transformation.js +++ b/dist/src/library/Transformation.js @@ -88,4 +88,3 @@ export class RotateTransformation { // return state; // } // } -//# sourceMappingURL=Transformation.js.map \ No newline at end of file diff --git a/dist/src/library/Transformation.js.map b/dist/src/library/Transformation.js.map deleted file mode 100644 index 61b9676..0000000 --- a/dist/src/library/Transformation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Transformation.js","sourceRoot":"","sources":["../../../src/library/Transformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC;;;GAGG;AACH,MAAM,OAAO,wBAAwB;IACnC;;;;OAIG;IACH,SAAS,CAAC,KAAY;QACpB,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QACnD,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACzB,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAC5B;;;;OAIG;IACH,SAAS,CAAC,KAAY;QACpB,IAAI,SAAS,GAAG,CAAC,CAAC;QAClB,IAAI,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC;QACxB,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACzB,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC;YACpB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE;iBACvB,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC5B,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACzB,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAI/B;;;;OAIG;IACH,YAAY,IAAa,EAAE,KAAa;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,KAAY;QACpB,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACzB,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACjD,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACjD,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED,uDAAuD;AACvD,4BAA4B;AAC5B,4BAA4B;AAE5B,gDAAgD;AAChD,wBAAwB;AACxB,yBAAyB;AACzB,MAAM;AAEN,qCAAqC;AACrC,kFAAkF;AAClF,oGAAoG;AACpG,oCAAoC;AACpC,yDAAyD;AACzD,yDAAyD;AACzD,6DAA6D;AAC7D,UAAU;AACV,oBAAoB;AACpB,MAAM;AACN,IAAI"} \ No newline at end of file diff --git a/dist/src/library/Visualizer.js b/dist/src/library/Visualizer.js index 01cfd2e..42764e9 100644 --- a/dist/src/library/Visualizer.js +++ b/dist/src/library/Visualizer.js @@ -1,9 +1,9 @@ +/* eslint-disable import/extensions */ import GUI from 'lil-gui'; import Plotly from 'plotly.js-dist'; import * as THREE from 'three'; -import { OrbitControls, ViewHelper } from 'three/examples/jsm/Addons'; -import Stats from 'three/examples/jsm/libs/stats.module'; -let animationId = null; +import { OrbitControls, ViewHelper } from 'three/examples/jsm/Addons.js'; +import Stats from 'three/examples/jsm/libs/stats.module.js'; /** * Clips a number to a minimum and maximum value. * @param x number to clip. @@ -79,6 +79,7 @@ export class RealTimeVisualizer { * @param simulation simulation object */ constructor(simulation) { + this.animationId = null; this.divId = ''; this.universeTrails = []; this.simulation = simulation; @@ -125,10 +126,7 @@ export class RealTimeVisualizer { */ start(divId, width, height) { if (this.divId !== '') { - // throw new Error( - // 'Simulation already playing. Stop the current playtime before initiating a new one.', - // ); - console.error('Simulation already playing. Stop the current playtime before initiating a new one.'); + console.error(divId, 'Simulation already playing. Stop the current playtime before initiating a new one.'); return; } this.divId = divId; @@ -213,8 +211,6 @@ export class RealTimeVisualizer { ], }); const timePerFrame = 1000 / this.simulation.maxFrameRate; - if (animationId !== null) - return; let lastPaintTimestampMs = 0; let lastSimTimestampMs = 0; /** @@ -234,13 +230,13 @@ export class RealTimeVisualizer { const paint = (timestampMs) => { if (this.simulation.controls.speed === 0 || this.simulation.controls.paused) { - animationId = requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); return; } step(timestampMs); if (timePerFrame > 0 && timestampMs - lastPaintTimestampMs < timePerFrame) { - animationId = requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); return; } lastPaintTimestampMs = timestampMs; @@ -279,14 +275,19 @@ export class RealTimeVisualizer { if (this.simulation.showDebugInfo && stats) { stats.update(); } - animationId = requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); }; - animationId = requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); } /** * Stop the simulation and visualization. */ stop() { + console.log('stopping in viz'); + if (this.animationId === null) { + return; + } + cancelAnimationFrame(this.animationId); Plotly.purge(this.divId); this.divId = ''; this.universeTrails.forEach((ut) => { @@ -358,6 +359,8 @@ export class RealTimeVisualizer3D { * @param simulation simulation object. */ constructor(simulation) { + this.animationId = null; + this.renderer = null; this.universeTrails = []; this.simulation = simulation; } @@ -405,10 +408,7 @@ export class RealTimeVisualizer3D { */ start(divId, width, height) { if (this.scene !== undefined) { - // throw new Error( - // 'Simulation already playing. Stop the current playtime before initiating a new one.', - // ); - console.error('Simulation already playing. Stop the current playtime before initiating a new one.'); + console.error(divId, 'Simulation already playing. Stop the current playtime before initiating a new one.'); return; } let element = document.getElementById(divId); @@ -428,10 +428,10 @@ export class RealTimeVisualizer3D { this.scene = new THREE.Scene(); const camera = new THREE.OrthographicCamera(width / -2, width / 2, height / 2, height / -2, 0, 10000000000); camera.position.set(0, 0, Math.max(width, height)); - const renderer = new THREE.WebGLRenderer(); - renderer.setSize(width, height); - renderer.autoClear = false; - element.appendChild(renderer.domElement); + this.renderer = new THREE.WebGLRenderer(); + this.renderer.setSize(width, height); + this.renderer.autoClear = false; + element.appendChild(this.renderer.domElement); let stats; if (this.simulation.showDebugInfo) { stats = new Stats(); @@ -460,12 +460,12 @@ export class RealTimeVisualizer3D { // labelRenderer.domElement.style.position = 'absolute'; // labelRenderer.domElement.style.top = '0px'; // element.appendChild(labelRenderer.domElement); - const orbitControls = new OrbitControls(camera, renderer.domElement); + const orbitControls = new OrbitControls(camera, this.renderer.domElement); orbitControls.listenToKeyEvents(window); orbitControls.update(); const axesHelper = new THREE.AxesHelper(width); this.scene.add(axesHelper); - const viewHelper = new ViewHelper(camera, renderer.domElement); + const viewHelper = new ViewHelper(camera, this.renderer.domElement); // var m: Map = new Map(); let arr = []; this.simulation.universes.forEach((u) => { @@ -505,20 +505,20 @@ export class RealTimeVisualizer3D { const paint = (timestampMs) => { if (this.simulation.controls.speed === 0 || this.simulation.controls.paused) { - requestAnimationFrame(paint); - renderer.clear(); - renderer.render(this.scene, camera); - viewHelper.render(renderer); + this.animationId = requestAnimationFrame(paint); + this.renderer.clear(); + this.renderer.render(this.scene, camera); + viewHelper.render(this.renderer); // labelRenderer.render(scene, camera); orbitControls.update(); return; } step(timestampMs); if (timePerFrame > 0 && timestampMs - lastPaint < timePerFrame) { - requestAnimationFrame(paint); - renderer.clear(); - renderer.render(this.scene, camera); - viewHelper.render(renderer); + this.animationId = requestAnimationFrame(paint); + this.renderer.clear(); + this.renderer.render(this.scene, camera); + viewHelper.render(this.renderer); // labelRenderer.render(scene, camera); orbitControls.update(); return; @@ -547,22 +547,29 @@ export class RealTimeVisualizer3D { }); } }); - requestAnimationFrame(paint); - renderer.clear(); - renderer.render(this.scene, camera); - viewHelper.render(renderer); + this.animationId = requestAnimationFrame(paint); + this.renderer.clear(); + this.renderer.render(this.scene, camera); + viewHelper.render(this.renderer); // labelRenderer.render(scene, camera); orbitControls.update(); }; - requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); } /** * Stop the simulation and visualization. */ stop() { - var _a; - (_a = this.scene) === null || _a === void 0 ? void 0 : _a.clear(); + var _a, _b, _c; + if (this.animationId === null) { + return; + } + cancelAnimationFrame(this.animationId); + (_a = this.renderer) === null || _a === void 0 ? void 0 : _a.clear(); + (_b = this.renderer) === null || _b === void 0 ? void 0 : _b.dispose(); + (_c = this.scene) === null || _c === void 0 ? void 0 : _c.clear(); this.scene = undefined; + this.renderer = null; this.universeTrails.forEach((ut) => { ut.popAllTrails(); }); @@ -579,6 +586,7 @@ export class RecordingVisualizer { * @param simulation simulation object */ constructor(simulation) { + this.animationId = null; this.divId = ''; this.universeTrails = []; this.simulation = simulation; @@ -626,9 +634,6 @@ export class RecordingVisualizer { */ start(divId, width, height, recordFor) { if (this.divId !== '') { - // throw new Error( - // 'Simulation already playing. Stop the current playtime before initiating a new one.', - // ); console.error('Simulation already playing. Stop the current playtime before initiating a new one.'); return; } @@ -726,8 +731,6 @@ export class RecordingVisualizer { 'resetScale2d', ], }); - if (animationId !== null) - return; /** * Paint the visualization * @param timestampMs current timestamp in milliseconds, provided by requestAnimationFrame @@ -735,7 +738,7 @@ export class RecordingVisualizer { const paint = (timestampMs) => { if (this.simulation.controls.speed === 0 || this.simulation.controls.paused) { - animationId = requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); return; } const currPlayInd = Math.round(playInd); @@ -792,14 +795,18 @@ export class RecordingVisualizer { playInd = totalFrames - 1; } } - animationId = requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); }; - animationId = requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); } /** * Stop the simulation and visualization. */ stop() { + if (this.animationId === null) { + return; + } + cancelAnimationFrame(this.animationId); Plotly.purge(this.divId); this.divId = ''; this.universeTrails = []; @@ -815,6 +822,7 @@ export class RecordingVisualizer3D { * @param simulation simulation object. */ constructor(simulation) { + this.animationId = null; this.universeTrails = []; this.simulation = simulation; } @@ -863,9 +871,6 @@ export class RecordingVisualizer3D { */ start(divId, width, height, recordFor) { if (this.scene !== undefined) { - // throw new Error( - // 'Simulation already playing. Stop the current playtime before initiating a new one.', - // ); console.error('Simulation already playing. Stop the current playtime before initiating a new one.'); return; } @@ -961,7 +966,7 @@ export class RecordingVisualizer3D { const paint = (timestampMs) => { if (this.simulation.controls.speed === 0 || this.simulation.controls.paused) { - requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); renderer.clear(); renderer.render(this.scene, camera); viewHelper.render(renderer); @@ -1010,20 +1015,24 @@ export class RecordingVisualizer3D { playInd = totalFrames - 1; } } - requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); renderer.clear(); renderer.render(this.scene, camera); viewHelper.render(renderer); // labelRenderer.render(scene, camera); orbitControls.update(); }; - requestAnimationFrame(paint); + this.animationId = requestAnimationFrame(paint); } /** * Stop the simulation and visualization. */ stop() { var _a; + if (this.animationId === null) { + return; + } + cancelAnimationFrame(this.animationId); (_a = this.scene) === null || _a === void 0 ? void 0 : _a.clear(); this.scene = undefined; this.universeTrails.forEach((ut) => { @@ -1032,4 +1041,3 @@ export class RecordingVisualizer3D { this.universeTrails = []; } } -//# sourceMappingURL=Visualizer.js.map \ No newline at end of file diff --git a/dist/src/library/Visualizer.js.map b/dist/src/library/Visualizer.js.map deleted file mode 100644 index 4d59043..0000000 --- a/dist/src/library/Visualizer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Visualizer.js","sourceRoot":"","sources":["../../../src/library/Visualizer.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,SAAS,CAAC;AAC1B,OAAO,MAAkC,MAAM,gBAAgB,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,MAAM,sCAAsC,CAAC;AAMzD,IAAI,WAAW,GAAkB,IAAI,CAAC;AAEtC;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,CAAS,EAAE,GAAW,EAAE,GAAW;IACrD,IAAI,CAAC,GAAG,GAAG;QAAE,OAAO,GAAG,CAAC;IACxB,IAAI,CAAC,GAAG,GAAG;QAAE,OAAO,GAAG,CAAC;IACxB,OAAO,CAAC,CAAC;AACX,CAAC;AAED;;GAEG;AACH,MAAM,mBAAmB;IAsBvB;;;;OAIG;IACH,YAAY,cAAsB,EAAE,KAAa;QA1BjD,SAAI,GAQA;YACA,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;YACL,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACN,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,OAAO;aACf;SACF,CAAC;QAWF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,CAAS,EAAE,CAAS;QAC3B,IAAI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YAC3C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACpB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACpB,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;QACzD,CAAC;IACH,CAAC;IAED;;OAEG;IACH,YAAY;QACV,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACpB,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAK7B;;;OAGG;IACH,YAAY,UAAsB;QAPlC,UAAK,GAAW,EAAE,CAAC;QACnB,mBAAc,GAA0B,EAAE,CAAC;QAOzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACK,WAAW,CAAC,aAA0B;QAC5C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;YAClB,SAAS,EAAE,aAAa;SACzB,CAAC,CAAC;QACH,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;QAC3C,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QAC/B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;QAChC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAErC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QACxC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzB,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC;aAC1B,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;YAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;gBACpB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC;YACzD,CAAC;YACD,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC,CAAC,CAAC;QACL,MAAM,kBAAkB,GAAG,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC1D,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACzC,kBAAkB;iBACf,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC;iBACjC,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;gBAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;oBACpB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;gBACxC,CAAC;gBACD,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;YACvC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc;QAChD,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;YACtB,mBAAmB;YACnB,0FAA0F;YAC1F,KAAK;YACL,OAAO,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAC;YACpG,OAAO;QACT,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,qCAAqC;QACrC,uCAAuC;QACvC,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,SAAS,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACxE,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACtD,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC,CAAC;QACJ,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;QAEnE,MAAM,MAAM,GAAoB;YAC9B,aAAa,EAAE,SAAS;YACxB,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE;gBACJ,KAAK,EAAE,SAAS;aACjB;YACD,KAAK,EAAE;gBACL,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,KAAK,GAAG,CAAC,GAAG,KAAK,CAAC;aACjD;YACD,KAAK,EAAE;gBACL,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC;aACnD;YACD,sBAAsB;YACtB,UAAU,EAAE,KAAK;YACjB,KAAK;YACL,MAAM;SACP,CAAC;QAEF,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;YACxC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;QAED,IAAI,KAAwB,CAAC;QAC7B,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAClC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;YACpB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;YACtC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;YAC/B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YACtC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QAED,MAAM,SAAS,GAAW,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CACzD,CAAC,GAAa,EAAU,EAAE;YACxB,MAAM,SAAS,GAAG,IAAI,mBAAmB,CACvC,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,EACnC,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CACzD,CAAC;YACF,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACpC,MAAM,QAAQ,GAAS;gBACrB,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACtD,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACtD,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE;oBACN,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,OAAO,EAAE,CAAC;oBACV,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;iBAClE;aACF,CAAC;YACF,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC;gBACpC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;oBACjC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACjD,CAAC,CAAC,CAAC;gBACH,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;YACpC,CAAC;YACD,OAAO;gBACL,QAAQ;gBACR;oBACE,CAAC,EAAE,EAAE;oBACL,CAAC,EAAE,EAAE;iBACN;aACF,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE;YACvC,UAAU,EAAE,IAAI;YAChB,sBAAsB,EAAE;gBACtB,SAAS;gBACT,UAAU;gBACV,SAAS;gBACT,cAAc;aACf;SACF,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;QACzD,IAAI,WAAW,KAAK,IAAI;YAAE,OAAO;QACjC,IAAI,oBAAoB,GAAG,CAAC,CAAC;QAC7B,IAAI,kBAAkB,GAAG,CAAC,CAAC;QAE3B;;;WAGG;QACH,MAAM,IAAI,GAAG,CAAC,WAAmB,EAAQ,EAAE;YACzC,IAAI,CAAC,UAAU,CAAC,YAAY,CAC1B,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK;kBAC3B,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,kBAAkB,EAAE,KAAK,CAAC,CAAC;kBAClD,IAAI,CACT,CAAC;YACF,kBAAkB,GAAG,WAAW,CAAC;QACnC,CAAC,CAAC;QAEF;;;WAGG;QACH,MAAM,KAAK,GAAG,CAAC,WAAmB,EAAE,EAAE;YACpC,IACE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;mBACjC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAClC,CAAC;gBACD,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;gBAC3C,OAAO;YACT,CAAC;YACD,IAAI,CAAC,WAAW,CAAC,CAAC;YAElB,IACE,YAAY,GAAG,CAAC;mBACb,WAAW,GAAG,oBAAoB,GAAG,YAAY,EACpD,CAAC;gBACD,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;gBAC3C,OAAO;YACT,CAAC;YACD,oBAAoB,GAAG,WAAW,CAAC;YAEnC,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAChD,CAAC,GAAa,EAAE,CAAS,EAAU,EAAE;gBACnC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;oBAChD,OAAO;wBACL;4BACE,CAAC,EAAE,EAAE;4BACL,CAAC,EAAE,EAAE;yBACN;wBACD,EAAE;qBACH,CAAC;gBACJ,CAAC;gBACD,MAAM,QAAQ,GAAS;oBACrB,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;oBACtD,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;oBACtD,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;oBACzD,MAAM,EAAE;wBACN,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;wBACjE,KAAK,EAAE,GAAG,CAAC,KAAK;wBAChB,OAAO,EAAE,CAAC;qBACX;oBACD,IAAI,EAAE,SAAS;iBAChB,CAAC;gBAEF,IAAI,SAAS,GAAS,EAAE,CAAC;gBACzB,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC;oBACpC,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;oBACzC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;wBACjC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACjD,CAAC,CAAC,CAAC;oBACH,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC;gBAC7B,CAAC;gBACD,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC/B,CAAC,CACF,CAAC;YAEF,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YACtC,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,IAAI,KAAK,EAAE,CAAC;gBAC3C,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,CAAC;YACD,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC,CAAC;QAEF,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,IAAI;QACF,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YACjC,EAAE,CAAC,YAAY,EAAE,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IAC3B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,kBAAkB;IAStB;;;;;;OAMG;IACH,YACE,cAAsB,EACtB,KAAa,EACb,KAAkB,EAClB,KAAa;QAEb,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC;QAC5C,QAAQ,CAAC,YAAY,CACnB,UAAU,EACV,IAAI,KAAK,CAAC,eAAe,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAClD,CAAC;QACF,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAC5B,QAAQ,EACR,IAAI,KAAK,CAAC,cAAc,CAAC;YACvB,KAAK;YACL,IAAI,EAAE,KAAK,GAAG,KAAK;SACpB,CAAC,CACH,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,GAAkB;QACzB,IAAI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;YAC3B,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;YACxD,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC7D,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YACtD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAC/B,UAAU,EACV,IAAI,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,CACvC,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAChD,GAAG,CAAC,OAAO,EAAE,EACb,IAAI,CAAC,QAAQ,GAAG,CAAC,CAClB,CAAC;YACF,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;YAC1D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC;QAC9D,CAAC;IACH,CAAC;IAED;;OAEG;IACH,YAAY;QACV,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAC/B,UAAU,EACV,IAAI,KAAK,CAAC,eAAe,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAClD,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IACvB,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAK/B;;;OAGG;IACH,YAAY,UAAsB;QANlC,mBAAc,GAAyB,EAAE,CAAC;QAOxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACK,WAAW,CAAC,aAA0B;QAC5C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;YAClB,SAAS,EAAE,aAAa;SACzB,CAAC,CAAC;QACH,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;QAC3C,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QAC/B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;QAChC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAErC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QACxC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzB,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC;aAC1B,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;YAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;gBACpB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;oBACjC,EAAE,CAAC,YAAY,EAAE,CAAC;gBACpB,CAAC,CAAC,CAAC;YACL,CAAC;YACD,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC,CAAC,CAAC;QACL,MAAM,kBAAkB,GAAG,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC1D,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACzC,kBAAkB;iBACf,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC;iBACjC,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;gBAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;oBACpB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;gBACxC,CAAC;gBACD,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;YACvC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc;QAChD,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,mBAAmB;YACnB,0FAA0F;YAC1F,KAAK;YACL,OAAO,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAC;YACpG,OAAO;QACT,CAAC;QACD,IAAI,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;QACpC,qCAAqC;QACrC,uCAAuC;QACvC,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,SAAS,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACxE,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACtD,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC,CAAC;QACJ,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;QAEnE,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;QAE/B,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,kBAAkB,CACzC,KAAK,GAAG,CAAC,CAAC,EACV,KAAK,GAAG,CAAC,EACT,MAAM,GAAG,CAAC,EACV,MAAM,GAAG,CAAC,CAAC,EACX,CAAC,EACD,WAAW,CACZ,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QAEnD,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;QAC3C,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAChC,QAAQ,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAEzC,IAAI,KAAwB,CAAC;QAC7B,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAClC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;YACpB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;YACtC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;YAC9B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YACvC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;YACxC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;QAED,kDAAkD;QAClD,gCAAgC;QAChC,+CAA+C;QAC/C,kDAAkD;QAClD,kCAAkC;QAClC,4CAA4C;QAC5C,oDAAoD;QAEpD,gDAAgD;QAChD,oCAAoC;QACpC,+BAA+B;QAC/B,6BAA6B;QAC7B,4BAA4B;QAC5B,6CAA6C;QAC7C,wCAAwC;QACxC,wDAAwD;QACxD,8CAA8C;QAC9C,iDAAiD;QAEjD,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;QACrE,aAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxC,aAAa,CAAC,MAAM,EAAE,CAAC;QAEvB,MAAM,UAAU,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE/D,sDAAsD;QACtD,IAAI,GAAG,GAAyB,EAAE,CAAC;QAEnC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,IAAI,CAAC,cAAc,CAAC,IAAI,CACtB,IAAI,kBAAkB,CACpB,IAAI,CAAC,UAAU,CAAC,cAAc,EAC9B,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAClD,IAAI,CAAC,KAAM,EACX,KAAK,CACN,CACF,CAAC;YACF,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC/B,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,cAAc,CAClC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAC1C,CAAC,EACD,CAAC,CACF,CAAC;gBACF,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;gBAC9C,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,YAAY,CACjC,IAAI,EACJ,IAAI,KAAK,CAAC,iBAAiB,CAAC;oBAC1B,aAAa;oBACb,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;iBAChC,CAAC,CACH,CAAC;gBACF,IAAI,CAAC,KAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE;qBAClC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC1B,wCAAwC;gBACxC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACjB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,yBAAyB;QAEzB,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;QACzD,IAAI,kBAAkB,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;QAC3C,IAAI,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;QAElC;;;WAGG;QACH,MAAM,IAAI,GAAG,CAAC,WAAmB,EAAE,EAAE;YACnC,IAAI,CAAC,UAAU,CAAC,YAAY,CAC1B,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK;kBAC3B,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,kBAAkB,EAAE,KAAK,CAAC,CAAC;kBAClD,IAAI,CACT,CAAC;YACF,kBAAkB,GAAG,WAAW,CAAC;QACnC,CAAC,CAAC;QAEF;;;WAGG;QACH,MAAM,KAAK,GAAG,CAAC,WAAmB,EAAE,EAAE;YACpC,IACE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;mBACjC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAClC,CAAC;gBACD,qBAAqB,CAAC,KAAK,CAAC,CAAC;gBAC7B,QAAQ,CAAC,KAAK,EAAE,CAAC;gBACjB,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAM,EAAE,MAAM,CAAC,CAAC;gBACrC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAC5B,uCAAuC;gBACvC,aAAa,CAAC,MAAM,EAAE,CAAC;gBACvB,OAAO;YACT,CAAC;YACD,IAAI,CAAC,WAAW,CAAC,CAAC;YAElB,IAAI,YAAY,GAAG,CAAC,IAAI,WAAW,GAAG,SAAS,GAAG,YAAY,EAAE,CAAC;gBAC/D,qBAAqB,CAAC,KAAK,CAAC,CAAC;gBAC7B,QAAQ,CAAC,KAAK,EAAE,CAAC;gBACjB,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAM,EAAE,MAAM,CAAC,CAAC;gBACrC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAC5B,uCAAuC;gBACvC,aAAa,CAAC,MAAM,EAAE,CAAC;gBACvB,OAAO;YACT,CAAC;YAED,SAAS,GAAG,WAAW,CAAC;YACxB,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,IAAI,KAAK,EAAE,CAAC;gBAC3C,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,CAAC;YAED,IAAI,GAAG,GAAG,CAAC,CAAC;YACZ,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACzC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;oBACnD,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;wBAC/B,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC;wBACxB,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE;6BACtC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC1B,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;4BACxC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;wBACrD,CAAC;wBACD,GAAG,EAAE,CAAC;oBACR,CAAC,CAAC,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACN,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;wBAC/B,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC;wBACzB,GAAG,EAAE,CAAC;oBACR,CAAC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC,CAAC;YACH,qBAAqB,CAAC,KAAK,CAAC,CAAC;YAC7B,QAAQ,CAAC,KAAK,EAAE,CAAC;YACjB,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAM,EAAE,MAAM,CAAC,CAAC;YACrC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5B,uCAAuC;YACvC,aAAa,CAAC,MAAM,EAAE,CAAC;QACzB,CAAC,CAAC;QAEF,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAI;;QACF,MAAA,IAAI,CAAC,KAAK,0CAAE,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YACjC,EAAE,CAAC,YAAY,EAAE,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IAC3B,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IAK9B;;;OAGG;IACH,YAAY,UAAsB;QAPlC,UAAK,GAAW,EAAE,CAAC;QACnB,mBAAc,GAA0B,EAAE,CAAC;QAOzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACK,WAAW,CAAC,aAA0B;QAC5C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;YAClB,SAAS,EAAE,aAAa;SACzB,CAAC,CAAC;QACH,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;QAC3C,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QAC/B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;QAChC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAErC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QACxC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzB,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC;aAC1B,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;YAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;gBACpB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC;YACzD,CAAC;YACD,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC,CAAC,CAAC;QACL,MAAM,kBAAkB,GAAG,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC1D,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACzC,kBAAkB;iBACf,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC;iBACjC,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;gBAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;oBACpB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;gBACxC,CAAC;gBACD,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;YACvC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc,EAAE,SAAiB;QACnE,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;YACtB,mBAAmB;YACnB,0FAA0F;YAC1F,KAAK;YACL,OAAO,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAC;YACpG,OAAO;QACT,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,qCAAqC;QACrC,uCAAuC;QACvC,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,SAAS,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACxE,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACtD,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC,CAAC;QACJ,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;QAEnE,MAAM,cAAc,GAAc,EAAE,CAAC;QACrC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,SAAS,CAAC;QAC7D,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YAC/D,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACzC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC;QACL,CAAC;QAED,MAAM,MAAM,GAAoB;YAC9B,aAAa,EAAE,SAAS;YACxB,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE;gBACJ,KAAK,EAAE,SAAS;aACjB;YACD,KAAK,EAAE;gBACL,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,KAAK,GAAG,CAAC,GAAG,KAAK,CAAC;aACjD;YACD,KAAK,EAAE;gBACL,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC;aACnD;YACD,sBAAsB;YACtB,UAAU,EAAE,KAAK;YACjB,KAAK;YACL,MAAM;SACP,CAAC;QAEF,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;YACxC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;QAED,IAAI,KAAwB,CAAC;QAC7B,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAClC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;YACpB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;YACtC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;YAC/B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YACtC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QAED,MAAM,SAAS,GAAW,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CACzD,CAAC,GAAa,EAAU,EAAE;YACxB,MAAM,SAAS,GAAG,IAAI,mBAAmB,CACvC,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,EACnC,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CACzD,CAAC;YACF,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACpC,MAAM,QAAQ,GAAS;gBACrB,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACtD,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACtD,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE;oBACN,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,OAAO,EAAE,CAAC;oBACV,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;iBAClE;aACF,CAAC;YACF,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC;gBACpC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;oBACjC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACjD,CAAC,CAAC,CAAC;gBACH,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;YACpC,CAAC;YACD,OAAO;gBACL,QAAQ;gBACR;oBACE,CAAC,EAAE,EAAE;oBACL,CAAC,EAAE,EAAE;iBACN;aACF,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE;YACvC,UAAU,EAAE,IAAI;YAChB,sBAAsB,EAAE;gBACtB,QAAQ;gBACR,SAAS;gBACT,UAAU;gBACV,SAAS;gBACT,cAAc;aACf;SACF,CAAC,CAAC;QAEH,IAAI,WAAW,KAAK,IAAI;YAAE,OAAO;QAEjC;;;WAGG;QACH,MAAM,KAAK,GAAG,CAAC,WAAmB,EAAE,EAAE;YACpC,IACE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;mBACjC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAClC,CAAC;gBACD,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;gBAC3C,OAAO;YACT,CAAC;YAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAChD,CAAC,GAAa,EAAE,CAAS,EAAU,EAAE;gBACnC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;oBAChD,OAAO;wBACL;4BACE,CAAC,EAAE,EAAE;4BACL,CAAC,EAAE,EAAE;yBACN;wBACD,EAAE;qBACH,CAAC;gBACJ,CAAC;gBACD,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;gBACjD,MAAM,QAAQ,GAAS;oBACrB,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;oBAClD,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;oBAClD,SAAS,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;oBACrD,MAAM,EAAE;wBACN,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;wBAC7D,KAAK,EAAE,GAAG,CAAC,KAAK;wBAChB,OAAO,EAAE,CAAC;qBACX;oBACD,IAAI,EAAE,SAAS;iBAChB,CAAC;gBAEF,IAAI,SAAS,GAAS,EAAE,CAAC;gBACzB,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC;oBACpC,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;oBACzC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAQ,EAAE;wBACnC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACjD,CAAC,CAAC,CAAC;oBACH,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC;gBAC7B,CAAC;gBACD,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC/B,CAAC,CACF,CAAC;YACF,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YAEtC,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,IAAI,KAAK,EAAE,CAAC;gBAC3C,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,CAAC;YAED,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC/D,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;oBAC3B,OAAO,GAAG,CAAC,CAAC,OAAO,GAAG,WAAW,CAAC,GAAG,WAAW,CAAC,GAAG,WAAW,CAAC;gBAClE,CAAC;qBAAM,CAAC;oBACN,OAAO,GAAG,CAAC,CAAC;gBACd,CAAC;YACH,CAAC;iBAAM,IAAI,OAAO,IAAI,WAAW,EAAE,CAAC;gBAClC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;oBAC3B,OAAO,IAAI,WAAW,CAAC;gBACzB,CAAC;qBAAM,CAAC;oBACN,OAAO,GAAG,WAAW,GAAG,CAAC,CAAC;gBAC5B,CAAC;YACH,CAAC;YACD,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAC7C,CAAC,CAAC;QAEF,WAAW,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,IAAI;QACF,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IAC3B,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,qBAAqB;IAKhC;;;OAGG;IACH,YAAY,UAAsB;QANlC,mBAAc,GAAyB,EAAE,CAAC;QAOxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACK,WAAW,CAAC,aAA0B;QAC5C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;YAClB,SAAS,EAAE,aAAa;SACzB,CAAC,CAAC;QACH,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;QAC3C,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QAC/B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;QAChC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAErC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QACxC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzB,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC;aAC1B,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;YAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;gBACpB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;oBACjC,EAAE,CAAC,YAAY,EAAE,CAAC;gBACpB,CAAC,CAAC,CAAC;YACL,CAAC;YACD,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;QAC5B,CAAC,CAAC,CAAC;QACL,MAAM,kBAAkB,GAAG,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC1D,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACzC,kBAAkB;iBACf,GAAG,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC;iBACjC,QAAQ,CAAC,CAAC,KAAc,EAAE,EAAE;gBAC3B,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;oBACpB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;gBACxC,CAAC;gBACD,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;YACvC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc,EAAE,SAAiB;QACnE,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,mBAAmB;YACnB,0FAA0F;YAC1F,KAAK;YACL,OAAO,CAAC,KAAK,CAAC,oFAAoF,CAAC,CAAC;YACpG,OAAO;QACT,CAAC;QACD,IAAI,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,qCAAqC;QACrC,uCAAuC;QACvC,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,SAAS,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACxE,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACtD,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC,CAAC;QACJ,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;QAEnE,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;QAE/B,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,kBAAkB,CACzC,KAAK,GAAG,CAAC,CAAC,EACV,KAAK,GAAG,CAAC,EACT,MAAM,GAAG,CAAC,EACV,MAAM,GAAG,CAAC,CAAC,EACX,CAAC,EACD,WAAW,CACZ,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QAEnD,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;QAC3C,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAChC,QAAQ,CAAC,SAAS,GAAG,KAAK,CAAC;QAC3B,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAEzC,IAAI,KAAwB,CAAC;QAC7B,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;YAClC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;YACpB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;YACtC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;YAC9B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YACvC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;YACxC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;QAED,kDAAkD;QAClD,gCAAgC;QAChC,+CAA+C;QAC/C,kDAAkD;QAClD,kCAAkC;QAClC,4CAA4C;QAC5C,oDAAoD;QAEpD,gDAAgD;QAChD,oCAAoC;QACpC,+BAA+B;QAC/B,6BAA6B;QAC7B,4BAA4B;QAC5B,6CAA6C;QAC7C,wCAAwC;QACxC,wDAAwD;QACxD,8CAA8C;QAC9C,iDAAiD;QAEjD,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;QACrE,aAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxC,aAAa,CAAC,MAAM,EAAE,CAAC;QAEvB,MAAM,UAAU,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE/D,sDAAsD;QACtD,IAAI,GAAG,GAAyB,EAAE,CAAC;QAEnC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,IAAI,CAAC,cAAc,CAAC,IAAI,CACtB,IAAI,kBAAkB,CACpB,IAAI,CAAC,UAAU,CAAC,cAAc,EAC9B,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAClD,IAAI,CAAC,KAAM,EACX,KAAK,CACN,CACF,CAAC;YACF,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC/B,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,cAAc,CAClC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAC1C,CAAC,EACD,CAAC,CACF,CAAC;gBACF,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;gBAC9C,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,YAAY,CACjC,IAAI,EACJ,IAAI,KAAK,CAAC,iBAAiB,CAAC;oBAC1B,aAAa;oBACb,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;iBAChC,CAAC,CACH,CAAC;gBACF,IAAI,CAAC,KAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE;qBAClC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC1B,wCAAwC;gBACxC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACjB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,yBAAyB;QAEzB,MAAM,cAAc,GAAc,EAAE,CAAC;QACrC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,SAAS,CAAC;QAC7D,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YAC/D,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACzC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC;QACL,CAAC;QAED;;;WAGG;QACH,MAAM,KAAK,GAAG,CAAC,WAAmB,EAAE,EAAE;YACpC,IACE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;mBACjC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAClC,CAAC;gBACD,qBAAqB,CAAC,KAAK,CAAC,CAAC;gBAC7B,QAAQ,CAAC,KAAK,EAAE,CAAC;gBACjB,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAM,EAAE,MAAM,CAAC,CAAC;gBACrC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAC5B,uCAAuC;gBACvC,aAAa,CAAC,MAAM,EAAE,CAAC;gBACvB,OAAO;YACT,CAAC;YAED,IAAI,GAAG,GAAG,CAAC,CAAC;YACZ,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACzC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;oBACnD,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;oBAC7C,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;wBAC7B,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC;wBACxB,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE;6BACtC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC1B,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;4BACxC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;wBACrD,CAAC;wBACD,GAAG,EAAE,CAAC;oBACR,CAAC,CAAC,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACN,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE;wBAC9B,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC;wBACzB,GAAG,EAAE,CAAC;oBACR,CAAC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,IAAI,KAAK,EAAE,CAAC;gBAC3C,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,CAAC;YAED,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC/D,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;oBAC3B,OAAO,GAAG,CAAC,CAAC,OAAO,GAAG,WAAW,CAAC,GAAG,WAAW,CAAC,GAAG,WAAW,CAAC;gBAClE,CAAC;qBAAM,CAAC;oBACN,OAAO,GAAG,CAAC,CAAC;gBACd,CAAC;YACH,CAAC;iBAAM,IAAI,OAAO,IAAI,WAAW,EAAE,CAAC;gBAClC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;oBAC3B,OAAO,IAAI,WAAW,CAAC;gBACzB,CAAC;qBAAM,CAAC;oBACN,OAAO,GAAG,WAAW,GAAG,CAAC,CAAC;gBAC5B,CAAC;YACH,CAAC;YAED,qBAAqB,CAAC,KAAK,CAAC,CAAC;YAC7B,QAAQ,CAAC,KAAK,EAAE,CAAC;YACjB,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAM,EAAE,MAAM,CAAC,CAAC;YACrC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5B,uCAAuC;YACvC,aAAa,CAAC,MAAM,EAAE,CAAC;QACzB,CAAC,CAAC;QAEF,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAI;;QACF,MAAA,IAAI,CAAC,KAAK,0CAAE,KAAK,EAAE,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;YACjC,EAAE,CAAC,YAAY,EAAE,CAAC;QACpB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IAC3B,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/plotly.js b/dist/src/plotly.js index 49893ec..e8a0cbb 100644 --- a/dist/src/plotly.js +++ b/dist/src/plotly.js @@ -28,4 +28,3 @@ export class SimulationPlot { this.layout = layout; } } -//# sourceMappingURL=plotly.js.map \ No newline at end of file diff --git a/dist/src/plotly.js.map b/dist/src/plotly.js.map deleted file mode 100644 index 72e1dcc..0000000 --- a/dist/src/plotly.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plotly.js","sourceRoot":"","sources":["../../src/plotly.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,OAAO,cAAc;IAKzB;;;;;;OAMG;IACH,YACE,YAAiB,EACjB,IAAU,EACV,GAAe,EACf,MAAuB;QAOzB;;;WAGG;QACI,iBAAY,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC;QAE/C;;;WAGG;QACI,SAAI,GAAG,CAAC,KAAa,EAAE,EAAE;YAC9B,IAAI,CAAC,YAAY,CACf,KAAK,EACL,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,MAAM,CACZ,CAAC;QACJ,CAAC,CAAC;QAtBA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAmBF"} \ No newline at end of file diff --git a/dist/types/src/library/Visualizer.d.ts b/dist/types/src/library/Visualizer.d.ts index 17db7d4..11da1c7 100644 --- a/dist/types/src/library/Visualizer.d.ts +++ b/dist/types/src/library/Visualizer.d.ts @@ -39,6 +39,7 @@ declare class PlotlyUniverseTrail { * @category Visualizers */ export declare class RealTimeVisualizer implements Visualizer { + animationId: number | null; simulation: Simulation; divId: string; universeTrails: PlotlyUniverseTrail[]; @@ -98,6 +99,8 @@ declare class ThreeUniverseTrail { * @category Visualizers */ export declare class RealTimeVisualizer3D implements Visualizer { + animationId: number | null; + renderer: THREE.WebGLRenderer | null; simulation: Simulation; scene?: THREE.Scene; universeTrails: ThreeUniverseTrail[]; @@ -128,6 +131,7 @@ export declare class RealTimeVisualizer3D implements Visualizer { * @category Visualizers */ export declare class RecordingVisualizer implements Visualizer { + animationId: number | null; simulation: Simulation; divId: string; universeTrails: PlotlyUniverseTrail[]; @@ -159,6 +163,7 @@ export declare class RecordingVisualizer implements Visualizer { * @category Visualizers */ export declare class RecordingVisualizer3D implements Visualizer { + animationId: number | null; simulation: Simulation; scene?: THREE.Scene; universeTrails: ThreeUniverseTrail[]; diff --git a/docs/.nojekyll b/docs/api/.nojekyll similarity index 100% rename from docs/.nojekyll rename to docs/api/.nojekyll diff --git a/docs/assets/highlight.css b/docs/api/assets/highlight.css similarity index 100% rename from docs/assets/highlight.css rename to docs/api/assets/highlight.css diff --git a/docs/assets/icons.js b/docs/api/assets/icons.js similarity index 100% rename from docs/assets/icons.js rename to docs/api/assets/icons.js diff --git a/docs/assets/icons.svg b/docs/api/assets/icons.svg similarity index 100% rename from docs/assets/icons.svg rename to docs/api/assets/icons.svg diff --git a/docs/assets/main.js b/docs/api/assets/main.js similarity index 100% rename from docs/assets/main.js rename to docs/api/assets/main.js diff --git a/docs/assets/navigation.js b/docs/api/assets/navigation.js similarity index 100% rename from docs/assets/navigation.js rename to docs/api/assets/navigation.js diff --git a/docs/api/assets/search.js b/docs/api/assets/search.js new file mode 100644 index 0000000..0023137 --- /dev/null +++ b/docs/api/assets/search.js @@ -0,0 +1 @@ +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACtV9a48jN5Lgf5ExuPuQKyffZH88z+5gcLvAYWfOXwyjoVZlV2utkmr1qLbX6P9+iOAjSSYjlaoqz9196mwlyQgG4x3BrN9Xp+PX8+rDT7+vftkdHlYfGLfd6rB5GlYfVv/j+PDbD8PhMpz+ftoczp+Pp6fNZXc8rLrV9bRffVht95vzeTh/Tw1cf7k87VddHLf6sFp96yIkxXiCtD0ezpfTdXs5nu5b/LtyZgaoWz1vTsPhMrePERney3HflzjqTlzyea/GJD+AH4b9cL7sNnuYN0GmePsupJ6uuIi+JZrZVnouE9z95tOwXwIxDnwDrKfN+bwEVBj3BkjPx/OuKRINaNnYN0B8GfbH7e6yhB2+y8a+AeJmux32w6kt+g2o1fj7IBeCuN0fD8MiLg0D79xlIWqHy2n3PFw2+385nrYtqOWAdxK4xqILZa7Clzi8LWqbpYDj4LthFsf2OFzwfUsGW2Dz8ffvNj/E49On3WF4IE4wf/s+xzdZcdnZFWgSB/eZoOAU5OcbtCOgLT2yKcAF50XtsDisf7vhVkxGvNOhtVZdeHA1ynd7EAT0267DHOycrP/86/N+t91d/vm6H05/200xqAe8C1Gbiy6i6QTfOXlYCDeOvRticYjn3dN1v7ksBZoNv3+n2QH+5bR5adn38Pu7HFe+1qJTikgRh/OXeQh/uWPdhWqpWP+2Qmrgn5H8XzdPnx42bauRvXsX0tfrLSJ/jiAlH1P9OQH1mfbH2hC0UkInEB8/Xn57vk2h7z4f1mnoTWjrz6QWpU9/AvI2BxAknHBBS2WmN+/IAXcpyRG1e09/1Im3zr5c/Y6Tz0AsO3eYQJ86qXYraDf1bZNok/O+4YO0Br0jF7zWE2nifi9vtIDfZBMS5h0c0wa8jHmquTQf0T4YjcRtN+wW4TP++vdhs//77mn4cXe+bva7/2qEYdMh78JbxLKLOKuBNZUXOOz8/v/6sBiDcs5bMQgqoCW3FALFlLfCf9i93LH3OPqtUK+H3ctwOg9/P212+6ltpMBPpr0Cj0LANg8PPxwPl9PxDiTKOSMGl/PDP+3O//R82r14lf4KfM6XzemynBHC6LdS4Xw5Pt8BFAe/hgNmFYv48wIUxJ//IOUSFn6lehF/fh8FE7F4nYqhsTgNh4fhtEh5RxSyKW+Hf5eSixi8Ss3N4LAdGonYGfBh/Nsh363sIgqvVncFLm9QeIkf30Hl0TgtVXrpZO5Ue3OQFym+EfBdqq/kiEL5bY+nh93hcdatmox5J9XXXneh5psi/irFR+CwTO8txmFW7RAoLNI6izGgvCsC+C33ajHcmyqHQGCxxpnD5A6FQ/HBK/TNYowodUMxxA1tcwfcprIhwc7qmllOmFc1TUerMeqPUjf3uVot9N9H5dznbN2Bx31q5y535x4sCH+HRuCGw3MH7PvVz90uzzw2b1FBb3F67sBqsRpa6vbcBXuZKlro+NzgjFwdHS+by3AjX9ka9D7KiFp4mS5q4U6pol93DV4jwYfh7wD38LhvCD0NOIx/FeSFqUoa+u1U5a2956x1PTwO//N6uWxkq/5Rvn4fdpouuYyRSkzvKha3YM6XipdB+zrsHr9cGjzbgDeOvRPishpJC+TNQgm9y4xF/jY87f76dKO3oDXoXdiFXHgR0zRxv4t1aPjzDHQD8rJDpYHfPNpbO88PmPa8xlfvc5jlcsuOcMSOrhb/7XkYpu5rDS4b+FpY56Wwzm+HtTv/r/3mt93h8SawfORroT1vrucGB1aQ4qjXQjkN5+vTbTBp2Ft44svxK+FKtxgjH/0W7lgOtR79xr3+7xAELN1tNv6N+10MeTr+DXv+t82vSLp/HQ6Ply9Ldj2Z8YZ93wm9NePV0Jsx0ATibOCzBEoj2pkCmQlxmjAKw3NpGj349X3MTVppmaVBdAjv4NPxYdfoR8pApBHLVl/Q757jP9vnPsE8IzIpnPHFu5C6WGwRtRNe1AWL0/DSZpASVj7udZC219NpCaR83CshHfcLaLd/A9Xal21KCPP3bG5BOO+e/uV62N6AMY56HZRLEbxO5a6ENh29GOoCMazOZ1YSW/vKhPHHcC/nx+G0Hy6tQGoy4l3Es73qIjmdojwXP/2w2W9B6S/HYTrtfjyWRVMEAjdDqXnIzjA1HkLIfe6H09/zLjhob4MrAPnL2YPlauyoK9uTd3BT5/NmO5y/v92bfKOrtrnWgpbayY2SDNtg9QcQ/yKmzIDVY5bvYXK4t1ZdECnXCLf3RaRfM/h35F5vJAHnF12QAZzJPpb8GvXVD8fD591jxa/ly9kNzfaAkqt9d6Pxs8JusadwC+B6udMQJgdEF3sQNzFY7kwsw6DwLG5DX+RkLIJcehw3IS9zPhZBrj2Rm7CXOiWLoFMeyk0s7nVWKGxqUf5xd27YnPBrS3h/7la7w8Pw6+rD7yuABJriw4qvxdqtutXn3bB/gA8E+PW71fb49ASY/Rze/TiA3wAj/JDv+1X3U99JtTZM/Pxz91OcgS9Yx9ec8Y53bK161Ynwf9nxtWGd6tiaK9Hprl9rwzvT8bUwrrOdWCupOtfxdc861sN0xTsG61mlEQ5CZwCEd8yshWUFeHgzjuMwTnRcr7mSxTge0Ox7iWjKniGa8H/AjwmN+JmeIX5MacSPM9a5jq0tDwjKXnsElbUdwyWM7hhsVSrdMVhMGDXiJACy7oRZ8xIleAGocI4UEEJ0DEBzrTpmAScjO+Y6sTZGdLwHUEJ0nHViLZjqOO/kWgvWcdHJNQMUpH8YgUuScPAGNqx60zEN83ruwXJjPDTOOq5gXxpIGokHKII94LZT615kO1WwIddxuxbaFMBU2KrujecCJjvYWA8bwx3abB296n4SfSfk2vByHR3WUdyflrISaeeY7UTfSX+srFNr4zIqGFiQd7Jf6748AzO3IO/UmkndCaCv4eN6FtaTLQTt3Hp+mU5Ij+i4noP1VAs/t2Q95fHMxAWEUrR4Dt/gCXDpj50L5LZ+ba0Lx245sJQYWUozCwzA1sLBol46O2HjAwiIk7KTPWDiXCenEgyCKptngK9AbIyyuEmpQQbZ2mjrZY4pFA22llEyNOskyJ4GYoLsOa06ibIndCeRWZnsJEyyspMwSQOGgCrvXaf6MFux+MADJBUXVrAw47xTIAVc8U5p/0u2L06rJj4KuN+WRtViNBvlexRrFUQfCW1lkDTQCkA2PAzE3lqbgQclYjpuJgqPRfWiHYAVSAZgHc0zUWOgBpTpBI8Mnubjm65fu94GzW38qXCJGhG1HZ4OsBKeDqAIxFPaBpL3IiAtgOJi7azzFIchnuJceorjL0DxXjtPceZ0p2x8cGE93YdfgIxrYTI5Z6BndJvJvArq1xbWAolyxutxCQIA6GstgwK0zvOSAqUBRy4YA17iawYPgImwxuMvuPCYgJBoEJsezlt2Yi173mkVH3R8QB3fyw64e60K/DXNTDrX13eoaQ17FE52QJe1NCIDB9oP3rO1ERW5TGFXmSXZxAa6aue5XDmB7AF0QbJyGxSM1hqMF3BwIKJ2gQmAZAo25eBc+/gAg51lQFa5Vs552hlPOcdNp2EVY1Vn4hyD2xWyMxx53XZGxAfpH7JtgXo1quXW4CtcC8iMDoBFhwH+jwqHceQjIb1m1r1C6VYK/QOBbAxWbM2VyTyUnjxifJWNZLQzwwJyDHQwyqR3uuD/6G0x5pHyGkd4TkfF430z5T0Wzb3DIrUBXPnaZezBQX8Z3ZImzsOpOxBsVGX+9AX4Qqh0QY3BqTupvTBpy/xhS8U7Y1D0dWcsoq87A7qJSdlZwEMy21k0IkJ1YI/WnKvOgngZwTsrYR2rO6v8LxnWgiawCDKEWEbkOLCOBkKqgDdqYFid406sZ1bFmWc8xFYHJyxtBIZ7bE18sCiLrAPDir84NDqGd867opkLwEHdAhy71qIUMS6DfZRKJUOCmtf2DGjL173VoHCD5g1WwlMbxqAO4KB7UJtK3jl0KozLEAAFCXS1a+ZKpwZfebfNeMA9KE88VBMtMriuGmkhvEOgtATq9GurmD9LAGx5YAU8QhiMtHC9Bpz6tdO8cyKMcRLdEds5gNUD4XRY2Rk08a5zqAtY5mpwUJXghDT4FhUsTAXVg4gL5zwNJeipHjwYhdtkoC6d7MAvxt8yCIbmMRNoBfzj9TQPzjtj1itqEVjMgeY2aII6wGLNYQ54sGsnINwQ/rcMMGhb1suWxgrvRrRhtutYr9KWdHoy6cnCqAyCozQ9d0HmjQyhHDPeEQClbtAWOy9WBqITFg4IHQE4MuRLJp3nS8NEMO6SB5sODzgLrJX3MqVn2V5YUPF+DKp4CDMTV7DehXeMoUV02WEJ1Lhgt6f8gO/y8E+L4EaCwZA2Bog8BH5okQwLhkgAIdDNgaDWogn2egxCQtRjMIRBZOzDRdS+DgCg+mW5hyzoIBdfobOBRqdfK2ZDOKA7ByKG7AL4S+6PABQoh1/AXeMwx/Yoof1aK3AYwyzpZRYNMvh4Ajbr10GDzOEI+vjAYEGrYPvg0wVLDFiZ+OAURhcWD8VPA+Izr7WYRLPPOgYsgg4WYxhZSBhnUCpgHMYWOCMqT+YVNTwgk4gOXPPwi4gP0kPKyOoddNUKwHk4fcWCYvU6HwUSDx/Um1eeTvoT5gL1E19b0PyMg1MH0QmepzU533lDpFthIr7LhpJeOL5BD0mxlD9R3h4GaTHMwHmItYkKXgNfOp978ZRUuRIRChEzTYFQgSTcBQ4LrrDVgcUN8ywuTDDV2livzDWkclBSWOB5B047A6MtgGN8kkRnDq+gHV6ho4sRHEtQKp7HFQteC2RMkNlBrSKzCxWYHdjGe0CR2SXapX7tvGT7B8/sigXWBqcTFZhRwTORaKAgbLB+c+DOOoF4RbvkGNglv2DgelBKuF0OIShiC2M9q0Ocga6FtKaDCiJbMzBHPE0VfXwrWJwhkNkhJSSEf8roaGgmLz15YWe40pZDHekRiJiX6K3zhyND6kuZoAvAPy7ZAgmGak9mzIDbFusiaYUaWzStnOwrvxynV345yrII6azemoCRFZ51peaedQ38jjIMzrrnVOni0alcO0taO0sWOBUiSW8YXaaNZdRp3gm+Uz97lmVqVNSjfo6vTNTPSQlbn9BRwLvguXpGlWCwMUAEaczU86xSjiq1Y0IFLSs0xmzAiib+ZOODC3gyGfW1ZPGBx0VlVNgSYWcZCUnra3yVjZxRsLJUsFKSsZR/RTBUDOzQbgPbsMhi/jTFyFneV+V6ZJ6OSYUOXGYUJOpe2UrN4StcxWoF5yTWPehPabwfJ234F8TFgTOl+tJ3k7Q2ja/4WoIDBksosA4SXEIucwxRlSjWpGqpSyToCzCDIqVb08hSlUiMplUzM4PvsiQyCrgSLfiqjJAVyqRqJmIVa9h2pK6CBL6CuFEDA0L+MjyZ9GSjM66SW44uas/ydDdyqmYNs42vYr7WAlQBAQ6m+MBx0T7GdR3zWZk8ElS+YNBkViWydTH0NNK210Wry7ODVcjokJiasB6+arHehOUgywq/aF2ynlIk68VXNetpWbOe0jTr4btsKHKpNi0ToUouVTSXqpJLFXIpRNBTLlUll+oZLtUll+oZLtUp9S18TIVqQwGRGehjpdOTiU94xqLPEjWaZkT9BkbUM4yo38CI2jOia52dDpwo1n3vdZ8vwQALSu84qD7+Zvq68KFpNtQEG041oJ5hQ12yoTYkb+mSC7WlNaAu2VC7Gd4q2dD0NG+Z/g/XgIaRjIevXsl4htOMZ/jrGc8gQxvWYjx8lzFeYjetIrtpTTOeoQut8dVt/WcUzXj4LhuqScYzJYsaQys1U/KosTTjmZJHjZthPPceSs32JG/Z/vW8ZRnNW5a9nrcs8qzhLd7y70IVF11MAbUE/390KIXGtA5YX4APpR2sgGFoiaUN4115aWKeVLiQJ5UshKHShPQoOqEmrOudddPbjmElhIPrbWR6AjAG66s6PZn01qbfXHzykRM+Mf+UUYFOvvtXmAuEShqAdXB2AFVCDGx5p9f5SaHcGNHwV/BVNhLlxrQ8G1uKjdVkHOBfYarHN7JAaCvC/1F9QkgkQubDp3uAqDHoRX0KbQ0ixrUMtKmDnKhJKRBAMnVHeJRQPq1oyac1VdESwlRkUKTxWLME1hFjzTIVJrGeCmEpcnPPQySsjIRIGHISIYkD9Ugss/Q8ZHMERIZWhnomw0KLf9LpyfiSZrYZS5+/jcUXKUaUMacnnfDFF9iN7zNQ0hdfTKx6Y73VFzZ0qpyO28Lqi7Kh+oIPFqs50ldf4BesvgAxUJLgFbMi7QU5HXIv1vnfsl05sjZj3T+iNuNQF1rbYHB8hUZFWL8NuXaQzIBCO2YZmOtLwXKMzOu4qAF17MfqY2JHMxHyKSaUL3rjCz3SsVDoYSzUd3rhmag3vrxjmQ1qC1IQIgzxIXMvg/7iobwD6zmfCVa+vOOLiajo4VitSk/aP2WbQ13rmtl+F6uWwEsAUYQcZx8KGJqFuqAV1kuTtKFcAWk/lCahld+tc1GauPPSBDlC66sUoeKlIkWcCVIFEBzmRiGbgsrCP6FigFSDU/4p2xOtVd07ljTfVMnsgOZYEs3wpmua7h9S03R0TdOpN3M67lyKP5DlkVGQ0ZFRSkanPUB8xXxCTnhiggkyJnTteFtugt9ghQwRPhYynI7+vjN1+dHRdU+X6p553hUZ0YJh8d5MqBGb3vg6C4vlBah3In5QaHEht8aw8ASi5bCBCcyts3VKzaHNcc1w0tnUBBVqltKMYoI1EiWULy3aaCahfBLSpNARB0k2CyVbLMxC9wFwXdV14DAhDiXXBhJ1slzbAAmKAyhbnHlHDZhdIUyB0gWcgl4F71Wop/B+HGaCE8J7659GhFjfI0ZNsviXMbmpXchpIk6WScBJhLo1AMO+nT5kybG1ZN1DQ4mvfrm8G67HXDhrejP+pa+yOg9MuEAAaUUggDV+t6HHtR9/M0gKjbsNT0zUDa+sRyUPbkMLA/7uGExablmPnXes3VbUR4WN7iTqaeivc9Gd9CwPGns8Z6xp49kjxcGRBIZRqEg4gxyJxbfW/5bjgvVDRnBBVMKxXUhBhhu7sIPKB+OANIEGMo8b6N3eBy2BKw3+FEd5rtQ8MCU8IP44imETHOyO9/4pxxVb9HgzPPcvQ0uTN28OW4c9UOzLBAiItnOh4NTzHLEMDY7Hx5Fkcu3yEIb1WHjkzUjOv6wbBhAfBerOYeAU8IGKP3qhGKuhEyEij8EgT0YD0RDSEcZ7dP1bE1rKPSHxCbeA45B+nLEccYwWeFMH+ZepnIEEBLNqvHgnFYCdABCIj8qXQ4PmWsgOOrDgIQeJ+hWi2BZIm4RNjb3z0oQNps4JX8/H/ggkIFCEibC/jF4eI8VywnEZhgFy8QmzWNggb9OT80857o5MMPh3vugsPepe74eQCTNmEP54FZJwQyn0fehQoxcsPXH/lIFnPZ2IYKy/kYkI+YcOOKpqdmfMJ5ybXaTxXVjHO3ih7VUCF8Tm9I5jW3m18kyzM+N541NyLGIHFN5jACtPt0J51w5SH9o7IzlkUJsKIZsJ5NjprKwYS7/Rh3ChpourA8+nErDvVQCVx2wsBhsThnPh/SAgsaldDobN0e0Ge3zl66iKZZ26sTEXV4OeMggx8EGyePvChHc5JKwKwn7WylWQVEgraesrl8BwIvwfY4I+dOlBos136UEY78IQ3y5vgksLNwownJG99eEMshzSNfpkBnteMIyGERw9b5gkXKwqo+NketFxvB7gnzCilsV5znQ6v7rV2fm+MtNx2U96nbGjmctmYMjqdmff1UxdV7DVYPTvZDNtGl4GsuJZhO45JWznS+VBNzIUG2hUCf3S0DOH/dLKBeEw3rL1eFPCd5UAj2HsqmKvj4A0SZrnG0ggXvHVd3ji2KRvwJJi+d2BcyNV+k2n30x6sukJbRz4hsonJnMFgS3M7StA4V11CShe/ukw1CkcWGxy5qp9YDwWzjS0pSE5wbKINddBKyvrQk8eBLB4r8BFFnG528H9pTHXCYgBKxnj8Q5Hz3wGzoQ+LIzKYus03hHQsatZB2mBNy74QP5opHNBVuCn5E6J6E7hGWAyjE+8I2xebquc1Ndc9pxGvSpMUL2QdfYPLvS2ydhr6nxLWXGW6DqqtivvX2LPU2gA74MLGS+DYLtWvFeEO9QpRWlCUgX6mpSvSAV3vFdBC2nOQyslEyFFaVhIUbqQSwFdo2S8qIQJWNUXNKPLgSw1Nf9fz5wAjavMCcNGZbih3nKsuP5HJE8YtjK3sycstTnDdQ+fPuHB6CobzH6vYvoE+l1kuKDhEynKeKtjXMifKB0yZDAYSWNiqQOS35hAgTG+gcyLGOTgXEigKOMTKHC3BBMooFR8bx38xH3uDvhQ+WtVBaujuoeaZ4vaNmZYpbNZM2/poAtMG3Ech16o7qPvCS5meIISB/hA6L/5n2R6UulJT5xVTqeg/TsijPN3MWxMepiQ1jTghZgQGCGfQEnKc7YJvpLy3c7gxWG3Mygvz/JwB9F3I+co+l7q5h0hUXZEMN/P3O7e8C+Rq/uAP3jv/gaRCF6L9fex4LqwC1eJhPP1AeFEYK2oSuCaCFpgFzJyFpgF2UcpzzVgWFkf+3u9i9Onzk1IV3kji4krEcdxlB6F9SQXnzCX5J9YeuLpSaQnmZ5UetL+KScVp4VQpHx2z0N2KwgjJMtZ8tgmnh8KGt5sTq30yc8TIQcEAf9a2ZAkBA8SBU2HltXg+PkIHGQCxcr0Be5gl2TTrvrm6NBn5C8FiU6E/4NIYBBYX9TI16Y7+sI7dBP94liAC/9Hpzc0N0sZrnArcJB9rQsJB437kXDchaRlfgOYYaM0+KVNFlYxAYsQvU7geXAlYxMLN3YSZoWu6GZjo3+ZD57za0XrfnMK/3ySBMwft77dIV93zgUWrXvOaV0RNxwB5MvOOcuCdJad/P/SWW64yHLGRZZ3ushyzkWW7+ciyzkXWf4/4yJj0y837WSn7xbGFg4LFk85SGNDTI2fyngZTpfh4a/+kxk//bRadb+vPoYvaIBlQBCrD79/G7+V8eH3Fbf+JzBaH37/9u0bgIQcSz7ZzE72c/hDMUdSc6TyP2k5zhXlXK2IuUr6n4wY58piqtXEVGv8Ty7bpoYrCEO5VWp+vtX4WaBsHh/nrYTws0UgrRSRxBrXyNf1C27KPRAohGUCDVgf/mXhXx7+DfRlOvwbsODhPQ/L8DCOh3E8EIi7gH1YV4T3MsCT4Xcb1omEtTYncLdyAZ4L41yA58J6Lh5IZMC0kbQTFrea9pQ2xVzcdSQuj4PjxljcEYtbYnFP4HeEh3Q2cbqI04UbT3yz3Q774RS+rTWelRg5deUmh7sqVrjgB5DHuZqSkLTbeHLxRPrqZGSxvxFOiSNcuyEYSmfzHh626Q9jZJOVHHeoAmAd/jUBITPdelp0d9m9DPvfio3L2Y2nqRUipFKYx8qv9vkCf45rXM6R+jCyaWTjxE2RZRJbSZ4B2O/z5Tmbl+H6aEd+LriuPEdGMUxkCBtQtBMpGRm/WL5Qu44icNIUlGYI/1cBvAqb1OH/OvzfxAOKaIaDshX6NelrjcFG1UcfzlTUi+M6PHx/LBgCvH+CK8c1ixXwj2xkx2MySbFqqgzK04mrhD9TtCstoBr5ZyUDeBXIoMO/ZgojLPoM39XffKrwE6RFzkwizh0KZMBhISgzauGkT12L2s/PpQbgnBI/KLmN805DKVTkEfUin3W8lpxNqo5kcmRLgOJyp592xWok7lEf13qbFattfiulmjT3tZpnUXksJXuhQE1PoV2hG8XZ5SdxKT0USr3ZHPzLcNo8ljxoHTUxeg99tgD+AZ1cwkQmYXKZhH0qEJCUe5c4QZU6TrKa1DmFPw2fjxWPKsrYEiuEr3Jn7DUuEI98nmkn7kJ09GTFhoT7UKvx5NCFecmRS3yY/LMpQyaXJJog3jJsn44PhRBQXBEwDvACtBg/BC0YkA04VqRpSiJlbgGr7QDfNr1UH1MdMR2FyCPXUL+fyq2JG1Y12qd4DLURnzoiLXO0DV8oLrmd1FQVC5GsUuMWWYI45hKXinSQJSTQyTXkNvvW8jiZjOui/58USIoHVLHmvrSFlDKMOy3s0HZTbYSU8WIjw344X3abEjLF6kmUSuGqlpqqC0av2MKlljyWx61TXVPEmnGpQ+VLm0xhNdYohXgSrsaNR1CBxTgrQZ52z8OlpKWkRKtk78ka4S8jZQsVKrehcXNB+7I5PJZHAO06C7yZ7e4EjF2QTt21hf1QzobWGWp6fmL+k/BZ1Jod+uhLJ5menmFY5/hQ2joyqeSieu3jNvp43H1iqaQ6chr5D//mzqfIz6ZS24Q3mit1XLE8rhknoL3C06ddSUAyQZVHsGFe4Ylq8sAKI14uMOFXnfNrI9JguliEtmaZRg6C1zx2/+3tXImRB29yyDDvOk2aQOmAOoDIFKIg5OF82RxKF7Qn7WrMY9lqhfiHBPKsXbZ9PysJQfg3JseiEovJM1M6FLUPJcP/VXRWwr8mBhqE1RpD3KQuk5g0DnoeTNr7ZbMrMwnkAeShYJhY6noo9lC2T03mlpbKUXLnUr6iWuJ0LLMqmnau7WTmvsKczGK/QVtFQHU+mGdBYprTFK1Gxo3Cc0mia3t8Luy7oANtQu/7ZU5D5UtySuVRErNQUl4vCR7R6wm/R55vmXKI4paT512hMvG0x/RScipL3xsebInM+VITrvQubDlvyhMPm8umNPLkfnJxeRiG54IKtE8yd/APw+fNdV+qWkXJ7RKGfBg+10YQvlJEuKwx7giEl32+0PNweKjOmpH8nWuyh91LSVEqfQFd0/msOiuXnaQMSkOT53g9VQl/RurOPG0ybLZfSv4hT7Lprgz74amikiG9jox5h8N283yexJDQF7Ig2Bn+81oFOpw85HzatdLSZGYpZTViUjhmJTIZGF6GUxl8U3YuRY0x2J6LHodf/d8pRWTP8EeRMtJmrrRHsQUornMZToeSTNyQxZCcTp93p3NxpBQn5cFWmFqa/kyPj+F90GpyuoGwRuk3KZIlZKlRb7pBRdYvWdcifZ8dxDRwcxn145qTHEUzVqisVh2F1jm1aM3qRAkrN5KAixqJZEqmiTFW7fDn//7lcnk+f/j+++Gw/rr7Zfc8POw26+Pp8Xv43/dZKPtxShKSn+4Fcxi+Xo6HP3Fz/rjffP14/Pzx6v/kx2b/8fG0edldJp49XAEgBE5X0NtpnuwvGv0eadXmx20Zg+usYMJM48Drg62r47eSpVFUqqTpsozY5xP+jZKMUIsSnmUuJCvBN8sVucNSlbUDFulPXmX6i6yD8huEqJyoWIGo2wQSrrHcz2tceZLFVIJPyY+MZ0tT2mfFNtK9fhwKnUlbMlsebmpJ6KNe6iM9+yzAfRwuU0ZUeTaMSkOnjVI55Mfh8rT59QJ/j3Uf/h5rnm/KcyL9lNvTGucvx6+X8Pd78zpaHvb3VLonzL+mP9CZY5CLW08VImEF/0em8ygw09mOPLndy1DwKemDJk3eR35KoVqfiuuZOcw0V+Ww9KTrUXfI2Hq50unIjdJUg4VlwvTrrvQwKRZVhYvtJ5feKSfbPAqvdve5DIrJmDwFxUkGptFxkgrZPoQAMvyd95INKPew5djFFT6iC/bxabh8OVZcRYWnLjv7KgtCOYdEwrqulVSVwklgGy1DjCplvq829WJ02ScFNOkPGe3LtLuprAbHPW83lfBKOqAsJjZThmTlXuZTd1Br2P3X1EEwZAG4OKfna8ktnPJqyjptnH4eTpdSNsiMYyEbmGes/Ck6VoxH04qj4U8kPk5Tn5b0j6rwpmxXrMOdotJadryM4PEvNJahHLmXXKXtDi/HX0qlTZbtF1Xfyiq+JT0OkR9lIyO0RCMRimiC0fN+81sVnsOXJjKjRpnmXWmMNclZC7pBdpeqkDRXHExThn2hwxlZBcr7+36p8kOK5IVG5emX3WEAVbAthepGKTMzVb9cL5eqyZVS2K1G3fBXGTPY2VEliYhsIadHlwY1+KKaFgA+fXooEWakCnoXDzmHOwnq4M8PjFF7Y3uC1WtUeQqW1SgDZjSv+BXoshF82HxMhFGCUq1S5nmYIPPJ+VYmvi+jOyuTMphY0WaebL8r3T+yravleu2Pj5UwGFKe8rN52vxSqmRB+7WinFa1QpHiw/Nphyorx+kCZG4CnjbnAlxmPlcNjzaKUqN0/7S5VOlMRRf/Wsf0tPl193R9KtUkmeOozj4sMZT9G2T6V+dzahfTkZcgyI7hlmX2C9/KvVB+riWrnvxeEKfr4XH408D/ZPs/OYEKOgAsOc1S+7bmXpDn4akMdxx1kO7u7bzgXz//mPld372EP4z+0b8ruZCs4PNMHT8da9Wn5tNrWStpne+Yrlu6RWT3dU6K6/6yey77ejWpQTKH5zBsh/N5U2bHOV0cHBNJLF/ka6lLblQEU1I3/FtXBmNb+b0Vwihn9cWSacUwdSwmY1/6p4WQymKnl+NhV/Xf92Q1QedTf61CF7I/q/ILRnuVN/YdjiXNydPO9fehavjhdMNKOe30VNkLMqHrinlVezBFqNw4Ha5PnyqfQFLAUhdu00Qcrk/DabetCyukncl5+vjpP4Ztgf1Mt3uAHfm27rON51kVMW/1006vN0xjvNmiwbFM6SzKatzRS1uXSKrSSJ2kTmSpb4tUmfObCeMquV0r1JikTWHh2I2c6vdpC0kVldr4xk2wpBqSYKb+4hQ0ZBxdWgpNKteltaUb/do3a05Jn1DFp4h2eTmDkT5p0sjxCO5pnMk9sqoNi3TIUjduU+6Pp4dagVDuUR5UHC9fqmlkJnC8ntWyh8+ba5VZY0VivtVJ2ufz99VVELK9Kd6sijeq4k0q25er1RkNRievipnHS8UCpJPeur37fDzvJhcjs1aJRjkucx2fT8N5OL1UVQKyjJmf5PNpeNkdr6W/SiYoxaRK1ujmKRF7aXTz5JUPZsp50yD4+XR8Hk6XqmmbTmdGYcnROL7sHqorWeRVrkpn32rGqvr7ydRbMk2tbNppqCop5L2DyD1KlrMvu6fhZXe+Qs64FumsICxnWiC1mluyvmCeX2ptXCSK/QqmwHN7PD1MWnooQdGNq+ppCWKvWYEyCtiUoxqLVLvLUhERfGuZz8NpqJLdlPr8Q8vSJ2jrOtWkyNJVihKu04DKo2oJ4+TdDpYDDVOrtMoNuVx69SrKXaDUtPg9qXk37qgXnPOf192pVAIziZQcy7jA+XnYTu9i85k7Qi2bexrOVXsgnfgqEt/j9KfKZsrcZjZaqOKPYYHL9VSFZWRxYva+cr5eZXzoPHw+8wi2YSZJmt0SioFPg4XLVSopIMtFNucNSOSU0yjz0sqt43RM/8g6Z2zz+5YNK24zl+5cd7iQhbOc/OftZl/dKaGm5QHneTuUAS7LvO2VCuduKL1xHkqYhgyq8wOfZq/I2LhRwobZsYzdaiSEPz4w9kU0xMCJfLFD6Xkycgt5yH2ukmA9mX5Ljv2sG3+e71IpbhlRnR5nukulKMdR5vA816WSd173VDPZudGlwrPrJYEarZlfjtd91dpMZQ+o7NaNbzTA3so90ZXs8qzG+WX9nrxvnjUk5Hy7e4K+sTJ5mvvAqX1LTuOdtMSkrdjm/VuxUFZ3TFA3Xmcr56JabT52WlJpn9rqSdxQ6LSw3Va7HdfFZckbFKvDOTqlIKbw60a/DLAMllmFf3XYj4mZqFbXEvH5oPSxj/iRj+j81bfJ3/h5oEXV/xSuTz8QMrnHP/O9oKr/sErzjPRd1xE8J5O9pd7c1R8P4TNtuy037HzYPJ+/HKsmFzpzmbPHVNdRKqWkfZh+2ZS9NSxvvb0lbLHdpsHydaRdNCm2buVGhox5R6rcXucVqXv1je9PJbd/+iGqySc4GsmEJYlEXpD2Mvy3MiAhs9F518D5UvZ2OLKTUbRpVSf2bpVaWjJTbOT4XLJIZk1vKYx4dbkMyBdO8uB/O1+G0rla2G8dd9UoZPtFyy+qkA2Xmaxfqoo/Y5SnNhemXL6UX2Ah2+gmbdvFTapGFj3F6JPseV6wvHwpa46LyBnYf0mNgfqWXZSgqlufrDnUqfSqxLi4u//O5vbYIjL5Ala8IBfVYmTfeFEutpZEdRnzBcSXsepayKQEQBnXqvf0Vcb1VrPvjQbWdMRT7Trzdb9UuJna75kP/830yCYn+y4tnco9LYfg8qX+ThHZMkFYlrjOaRjW/1GuRRZ8W9/ChKRnYQjIr6YQBqBM0M58ks3WFM71/6WoWVMWbL7Nuq2Lp1XXW91383dUM9G69dWjaSg8cumMczmt3CZ+S9zVZCoIiEvfknTvml1PrYiazHNUwp1W8FmpsliXBW7l0dQeVszyznlt1JwSgUk0k+cMBf3NGVbp7SR/eW61hFJKn8hzEPUHvIgWhck3CatjDZm+qt5FCWpFrmVku1YpVvpmyPSCUxb7V8nxnmxRytlu8iUEMiRKlz1ldhrlhRhOt1fnQFvZH1dcu29UjiYXOQijnzTEzQsdE3v4ShOXLNtddmyx+SppVgYcXNCB6ETLpU/l5hwe151+NoabIvlB3RqLC1QfDyG/3lEkDMolpjqQqTwUCXTR8d+YOKaSldfnklb0zfyco58fNpdS3OkP4GRhTN1cQN/iz7M/13MFisZxVRraqfM2cuSE7WQJsuqnIOsn9XflquikFOqKBciusntjniKyuZ6rLBvZk1qnKaMOlpWnEX2nVAGOHkd0xm+lNxGvl6H+WhF5zaMRUsU1fANssUr+ldqpUrQFiRJy5Xq+n7YqYPBcsiKJK5Wt8rWmPbmk6mljsyu/k0J/VjrnqpfdeWKiTG7lJVUxj/X2aaWPNFJ/dFyY+jLuuktYOSaVAab6MCgzXocMZeNDSibj2l+H3eOXS30hmEw/9vXMqjM9q/m5RtKo9U3Zr1+Guv2Lk+1fLfdo9qbr1y+78rYD2Ty/6OLc111pAuhvhdh8UlWHI9shgvqK+4gIhH/v/Y4T1TJ081421Vb09Xj6pfRNSAd0eSPit2/wxzKed8/DHr7p9+Gnn799+z9vpXH0bOYAAA=="; \ No newline at end of file diff --git a/docs/assets/style.css b/docs/api/assets/style.css similarity index 100% rename from docs/assets/style.css rename to docs/api/assets/style.css diff --git a/docs/classes/BodyCenterTransformation.html b/docs/api/classes/BodyCenterTransformation.html similarity index 98% rename from docs/classes/BodyCenterTransformation.html rename to docs/api/classes/BodyCenterTransformation.html index 25ba4ce..4de5ad9 100644 --- a/docs/classes/BodyCenterTransformation.html +++ b/docs/api/classes/BodyCenterTransformation.html @@ -1,7 +1,7 @@ BodyCenterTransformation | nbody

Class BodyCenterTransformation

Frame of reference transformation to the center of the first body in the system.

-

Implements

Constructors

Implements

Constructors

Methods

Constructors

Methods

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/CelestialBody.html b/docs/api/classes/CelestialBody.html similarity index 97% rename from docs/classes/CelestialBody.html rename to docs/api/classes/CelestialBody.html index f9178a5..53d96dc 100644 --- a/docs/classes/CelestialBody.html +++ b/docs/api/classes/CelestialBody.html @@ -1,5 +1,5 @@ CelestialBody | nbody

Class CelestialBody

Represents a celestial body with all of its kinematic properties.

-

Constructors

Constructors

Properties

acceleration label mass @@ -12,14 +12,14 @@
  • position: Vector3

    position of the body.

  • velocity: Vector3

    velocity of the body.

  • acceleration: Vector3

    acceleration of the body.

    -
  • Returns CelestialBody

    Properties

    acceleration: Vector3

    Acceleration vector of the body.

    -
    label: string

    Label of the body.

    -
    mass: number

    Mean mass of the body.

    -
    position: Vector3

    Position vector of the body.

    -
    velocity: Vector3

    Velocity vector of the body.

    -

    Methods

    • Deep copy the current CelestialBody with the updated kinematic properties.

      +

    Returns CelestialBody

    Properties

    acceleration: Vector3

    Acceleration vector of the body.

    +
    label: string

    Label of the body.

    +
    mass: number

    Mean mass of the body.

    +
    position: Vector3

    Position vector of the body.

    +
    velocity: Vector3

    Velocity vector of the body.

    +

    Methods

    • Deep copy the current CelestialBody with the updated kinematic properties.

      Parameters

      • Optional position: Vector3

        new position.

      • Optional velocity: Vector3

        new velocity.

      • Optional acceleration: Vector3

        new acceleration.

      Returns CelestialBody

      a new CelestialBody instance with the updated properties.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/CentripetalForce.html b/docs/api/classes/CentripetalForce.html similarity index 98% rename from docs/classes/CentripetalForce.html rename to docs/api/classes/CentripetalForce.html index 9b348a4..ed3b0e9 100644 --- a/docs/classes/CentripetalForce.html +++ b/docs/api/classes/CentripetalForce.html @@ -1,11 +1,11 @@ CentripetalForce | nbody

    Class CentripetalForce

    Represents a Centripetal force object. To be used to calculate the force required to keep the bodies in circular motion around a given center.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    center: Vector3

    Center of force.

    -

    Methods

    • Calculate the force required to keep the bodies in circular motion around the center. arr[i] represents the centripetal force required for the ith body.

      +

    Returns CentripetalForce

    Properties

    center: Vector3

    Center of force.

    +

    Methods

    • Calculate the force required to keep the bodies in circular motion around the center. arr[i] represents the centripetal force required for the ith body.

      Parameters

      Returns Vector3[]

      forces.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/CoMTransformation.html b/docs/api/classes/CoMTransformation.html similarity index 98% rename from docs/classes/CoMTransformation.html rename to docs/api/classes/CoMTransformation.html index ecdeec4..e26c520 100644 --- a/docs/classes/CoMTransformation.html +++ b/docs/api/classes/CoMTransformation.html @@ -1,7 +1,7 @@ CoMTransformation | nbody

    Class CoMTransformation

    Frame of reference transformation to the center of mass of the system.

    -

    Implements

    Constructors

    Implements

    Constructors

    Methods

    Constructors

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/CombinedForce.html b/docs/api/classes/CombinedForce.html similarity index 98% rename from docs/classes/CombinedForce.html rename to docs/api/classes/CombinedForce.html index 19f1167..e554df8 100644 --- a/docs/classes/CombinedForce.html +++ b/docs/api/classes/CombinedForce.html @@ -1,10 +1,10 @@ CombinedForce | nbody

    Class CombinedForce

    Represents a combined force object. To be used to additively combine multiple forces acting on a system of bodies.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    forces: Force[]

    Methods

    • Get the combined forces acting on the bodies. arr[i] represents the combined force acting on the ith body as a result of all force systems.

      +

    Returns CombinedForce

    Properties

    forces: Force[]

    Methods

    • Get the combined forces acting on the bodies. arr[i] represents the combined force acting on the ith body as a result of all force systems.

      Parameters

      Returns Vector3[]

      element-wise combined forces.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/ExplicitEulerSim.html b/docs/api/classes/ExplicitEulerSim.html similarity index 98% rename from docs/classes/ExplicitEulerSim.html rename to docs/api/classes/ExplicitEulerSim.html index 5dd09fb..6f82eb6 100644 --- a/docs/classes/ExplicitEulerSim.html +++ b/docs/api/classes/ExplicitEulerSim.html @@ -1,12 +1,12 @@ ExplicitEulerSim | nbody

    Class ExplicitEulerSim

    Represents a simulation function object that uses the Euler integration method to simulate motions of bodies.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    force: Force

    Force object to calculate forces on bodies in the Universe.

    -

    Methods

    • Simulate a step in the Universe by using the current state and a time step, using the Euler integration method.

      +

    Returns ExplicitEulerSim

    Properties

    force: Force

    Force object to calculate forces on bodies in the Universe.

    +

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/Gravity.html b/docs/api/classes/Gravity.html similarity index 98% rename from docs/classes/Gravity.html rename to docs/api/classes/Gravity.html index 928c57e..7690a53 100644 --- a/docs/classes/Gravity.html +++ b/docs/api/classes/Gravity.html @@ -1,13 +1,13 @@ Gravity | nbody

    Class Gravity

    Represents a Newtonian Gravitational force object.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    G

    Methods

    Constructors

    • Create a new Gravity with the provided gravitational constant.

      Parameters

      • G: number = 6.674e-11

        gravitational constant.

        -

      Returns Gravity

    Properties

    G: number

    Gravitational constant.

    +

    Returns Gravity

    Properties

    G: number

    Gravitational constant.

    Default Value

    6.674e-11
     
    -

    Methods

    • Calculate and return the forces acting on the bodies. arr[i] represents the force acting on the ith body as a result of all other bodies.

      +

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/LambdaForce.html b/docs/api/classes/LambdaForce.html similarity index 98% rename from docs/classes/LambdaForce.html rename to docs/api/classes/LambdaForce.html index a039183..9af3673 100644 --- a/docs/classes/LambdaForce.html +++ b/docs/api/classes/LambdaForce.html @@ -1,5 +1,5 @@ LambdaForce | nbody

    Class LambdaForce

    Function object that uses the user-defined lambda function to calculate the forces acting on the bodies.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    • Create a new LambdaForce with the provided lambda function.

      @@ -9,8 +9,8 @@
    • Length of the returned array should be equal to the length of the input array of CelestialBodies.

    Parameters

    Returns LambdaForce

    Properties

    fn: ((bodies) => Vector3[])

    Lambda function to calculate forces, provided by the user.

    -

    Type declaration

    Methods

    Returns LambdaForce

    Properties

    fn: ((bodies) => Vector3[])

    Lambda function to calculate forces, provided by the user.

    +

    Type declaration

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/LambdaSim.html b/docs/api/classes/LambdaSim.html similarity index 98% rename from docs/classes/LambdaSim.html rename to docs/api/classes/LambdaSim.html index 98ff811..13e714e 100644 --- a/docs/classes/LambdaSim.html +++ b/docs/api/classes/LambdaSim.html @@ -1,5 +1,5 @@ LambdaSim | nbody

    Class LambdaSim

    Function object that uses the user-defined lambda function to simulate the Universe.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    • Create a new LambdaSim with the provided lambda function.

      @@ -8,9 +8,9 @@
    • The lambda function should call or calculate the forces action on the bodies by itself.

    Parameters

    • fn: ((deltaT, currState, prevState) => State)

      lambda function.

      -
        • (deltaT, currState, prevState): State
        • Parameters

          Returns State

    Returns LambdaSim

    Properties

    fn: ((deltaT, currState, prevState) => State)

    Type declaration

      • (deltaT, currState, prevState): State
      • Parameters

        Returns State

    Methods

    • Simulate the Universe using the lambda function.

      +
        • (deltaT, currState, prevState): State
        • Parameters

          Returns State

    Returns LambdaSim

    Properties

    fn: ((deltaT, currState, prevState) => State)

    Type declaration

      • (deltaT, currState, prevState): State
      • Parameters

        Returns State

    Methods

    • Simulate the Universe using the lambda function.

      Parameters

      • deltaT: number

        time step.

      • currState: State

        current state of the Universe.

      • prevState: State

        previous state of the Universe.

      Returns State

      the next state of the Universe.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/LambdaTransformation.html b/docs/api/classes/LambdaTransformation.html similarity index 98% rename from docs/classes/LambdaTransformation.html rename to docs/api/classes/LambdaTransformation.html index cbbfac5..78eaae0 100644 --- a/docs/classes/LambdaTransformation.html +++ b/docs/api/classes/LambdaTransformation.html @@ -1,5 +1,5 @@ LambdaTransformation | nbody

    Class LambdaTransformation

    A Frame of Reference transformation that uses the user-defined lambda function.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    • Create a new LambdaTransformer with the provided lambda function.

      @@ -9,8 +9,8 @@
    • Transformed state should contain the same number of bodies as the input state, and the order should be preserved.

    Parameters

    • fn: ((state, deltaT) => State)

      lambda function.

      -

    Returns LambdaTransformation

    Properties

    fn: ((state, deltaT) => State)

    Type declaration

    Methods

    • Transform the state's frame of reference using the lambda function.

      +

    Returns LambdaTransformation

    Properties

    fn: ((state, deltaT) => State)

    Type declaration

    Methods

    • Transform the state's frame of reference using the lambda function.

      Parameters

      • state: State

        state to transform.

      • deltaT: number

        time step taken to get to this state. Only applicable for time-dependent transformations.

      Returns State

      transformed state.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/RealTimeVisualizer.html b/docs/api/classes/RealTimeVisualizer.html similarity index 66% rename from docs/classes/RealTimeVisualizer.html rename to docs/api/classes/RealTimeVisualizer.html index f2d749c..1ab304a 100644 --- a/docs/classes/RealTimeVisualizer.html +++ b/docs/api/classes/RealTimeVisualizer.html @@ -1,6 +1,7 @@ RealTimeVisualizer | nbody

    Class RealTimeVisualizer

    2D real-time visualizer using Plotly.

    -

    Implements

    • Visualizer

    Constructors

    Properties

    Implements

    • Visualizer

    Constructors

    Properties

    Methods

    addControls @@ -8,11 +9,11 @@ stop

    Constructors

    Properties

    divId: string = ''
    simulation: Simulation
    universeTrails: PlotlyUniverseTrail[] = []

    Methods

    • Adds default controls using lil-gui to the visualization.

      +

    Returns RealTimeVisualizer

    Properties

    animationId: null | number = null
    divId: string = ''
    simulation: Simulation
    universeTrails: PlotlyUniverseTrail[] = []

    Methods

    • Adds default controls using lil-gui to the visualization.

      Parameters

      • parentElement: HTMLElement

        parent element to place the controller div in.

        -

      Returns void

    • Simulate and play the visualization.

      +

    Returns void

    • Simulate and play the visualization.

      Parameters

      • divId: string

        div id to render the visualization in.

      • width: number

        width of the visualization.

      • height: number

        height of the visualization.

        -

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Returns void

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/RealTimeVisualizer3D.html b/docs/api/classes/RealTimeVisualizer3D.html similarity index 63% rename from docs/classes/RealTimeVisualizer3D.html rename to docs/api/classes/RealTimeVisualizer3D.html index ad82f40..a02bc6c 100644 --- a/docs/classes/RealTimeVisualizer3D.html +++ b/docs/api/classes/RealTimeVisualizer3D.html @@ -1,6 +1,8 @@ RealTimeVisualizer3D | nbody

    Class RealTimeVisualizer3D

    3D real-time visualizer using Three.js.

    -

    Implements

    • Visualizer

    Constructors

    Properties

    Implements

    • Visualizer

    Constructors

    Properties

    Methods

    addControls @@ -8,11 +10,11 @@ stop

    Constructors

    Properties

    scene?: Scene
    simulation: Simulation
    universeTrails: ThreeUniverseTrail[] = []

    Methods

    • Adds default controls to the visualization.

      +

    Returns RealTimeVisualizer3D

    Properties

    animationId: null | number = null
    renderer: null | WebGLRenderer = null
    scene?: Scene
    simulation: Simulation
    universeTrails: ThreeUniverseTrail[] = []

    Methods

    • Adds default controls to the visualization.

      Parameters

      • parentElement: HTMLElement

        parent element to place the controller div in.

        -

      Returns void

    • Simulate and play the visualization

      +

    Returns void

    • Simulate and play the visualization

      Parameters

      • divId: string

        div id to render the visualization in

      • width: number

        width of the visualization.

      • height: number

        height of the visualization.

        -

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Returns void

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/RecordingVisualizer.html b/docs/api/classes/RecordingVisualizer.html similarity index 67% rename from docs/classes/RecordingVisualizer.html rename to docs/api/classes/RecordingVisualizer.html index 3f2cef6..1708d3d 100644 --- a/docs/classes/RecordingVisualizer.html +++ b/docs/api/classes/RecordingVisualizer.html @@ -1,6 +1,7 @@ RecordingVisualizer | nbody

    Class RecordingVisualizer

    2D recording visualizer using Plotly.

    -

    Implements

    • Visualizer

    Constructors

    Properties

    Implements

    • Visualizer

    Constructors

    Properties

    Methods

    addControls @@ -8,12 +9,12 @@ stop

    Constructors

    Properties

    divId: string = ''
    simulation: Simulation
    universeTrails: PlotlyUniverseTrail[] = []

    Methods

    • Adds default controls using lil-gui to the visualization.

      +

    Returns RecordingVisualizer

    Properties

    animationId: null | number = null
    divId: string = ''
    simulation: Simulation
    universeTrails: PlotlyUniverseTrail[] = []

    Methods

    • Adds default controls using lil-gui to the visualization.

      Parameters

      • parentElement: HTMLElement

        parent element to place the controller div in.

        -

      Returns void

    • Simulate and play the visualization.

      +

    Returns void

    • Simulate and play the visualization.

      Parameters

      • divId: string

        div id to render the visualization in.

      • width: number

        width of the visualization.

      • height: number

        height of the visualization.

      • recordFor: number

        number of seconds to record for..

        -

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Returns void

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/RecordingVisualizer3D.html b/docs/api/classes/RecordingVisualizer3D.html similarity index 66% rename from docs/classes/RecordingVisualizer3D.html rename to docs/api/classes/RecordingVisualizer3D.html index 7e456ad..dacce09 100644 --- a/docs/classes/RecordingVisualizer3D.html +++ b/docs/api/classes/RecordingVisualizer3D.html @@ -1,6 +1,7 @@ RecordingVisualizer3D | nbody

    Class RecordingVisualizer3D

    3D recording visualizer using Three.js.

    -

    Implements

    • Visualizer

    Constructors

    Properties

    Implements

    • Visualizer

    Constructors

    Properties

    Methods

    addControls @@ -8,12 +9,12 @@ stop

    Constructors

    Properties

    scene?: Scene
    simulation: Simulation
    universeTrails: ThreeUniverseTrail[] = []

    Methods

    • Adds default controls to the visualization.

      +

    Returns RecordingVisualizer3D

    Properties

    animationId: null | number = null
    scene?: Scene
    simulation: Simulation
    universeTrails: ThreeUniverseTrail[] = []

    Methods

    • Adds default controls to the visualization.

      Parameters

      • parentElement: HTMLElement

        parent element to place the controller div in.

        -

      Returns void

    • Simulate and play the visualization

      +

    Returns void

    • Simulate and play the visualization

      Parameters

      • divId: string

        div id to render the visualization in.

      • width: number

        width of the visualization.

      • height: number

        height of the visualization.

      • recordFor: number

        number of seconds to record for.

        -

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Returns void

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/RotateTransformation.html b/docs/api/classes/RotateTransformation.html similarity index 97% rename from docs/classes/RotateTransformation.html rename to docs/api/classes/RotateTransformation.html index 44a2d1b..15930b1 100644 --- a/docs/classes/RotateTransformation.html +++ b/docs/api/classes/RotateTransformation.html @@ -1,12 +1,12 @@ RotateTransformation | nbody

    Class RotateTransformation

    Frame of reference transformation around an axis by an angle. Makes sense to this transformation only during initialization of the universe and not at every time step.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    angle: number
    axis: Vector3

    Methods

    • Transform the frame of reference around an axis by an angle.

      +

    Returns RotateTransformation

    Properties

    angle: number
    axis: Vector3

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/RungeKutta4Sim.html b/docs/api/classes/RungeKutta4Sim.html similarity index 97% rename from docs/classes/RungeKutta4Sim.html rename to docs/api/classes/RungeKutta4Sim.html index baff168..5bd41fb 100644 --- a/docs/classes/RungeKutta4Sim.html +++ b/docs/api/classes/RungeKutta4Sim.html @@ -1,15 +1,15 @@ RungeKutta4Sim | nbody

    Class RungeKutta4Sim

    Represents a simulation function object that uses the Runge-Kutta 4 integration method to simulate the motion of bodies.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    force: Force

    Force object to calculate forces on bodies in the Universe.

    -
    weights: number[]

    Weights for weighted average.

    -

    Methods

    • Simulate a step in the Universe by using the current state and a time step, using the Runge-Kutta 4 integration method.

      +

    Returns RungeKutta4Sim

    Properties

    force: Force

    Force object to calculate forces on bodies in the Universe.

    +
    weights: number[]

    Weights for weighted average.

    +

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/SemiImplicitEulerSim.html b/docs/api/classes/SemiImplicitEulerSim.html similarity index 98% rename from docs/classes/SemiImplicitEulerSim.html rename to docs/api/classes/SemiImplicitEulerSim.html index 98284a4..6486eaa 100644 --- a/docs/classes/SemiImplicitEulerSim.html +++ b/docs/api/classes/SemiImplicitEulerSim.html @@ -1,12 +1,12 @@ SemiImplicitEulerSim | nbody

    Class SemiImplicitEulerSim

    Represents a simulation function object that uses the Semi-Implicit Euler integration method to simulate the motion of bodies.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    force: Force

    Force object to calculate forces on bodies in the Universe.

    -

    Methods

    • Simulate a step in the Universe by using the current state and a time step, using the Semi-Implicit Euler integration method.

      +

    Returns SemiImplicitEulerSim

    Properties

    force: Force

    Force object to calculate forces on bodies in the Universe.

    +

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/Simulation.html b/docs/api/classes/Simulation.html similarity index 97% rename from docs/classes/Simulation.html rename to docs/api/classes/Simulation.html index b817a07..c7608d0 100644 --- a/docs/classes/Simulation.html +++ b/docs/api/classes/Simulation.html @@ -1,5 +1,5 @@ Simulation | nbody

    Class Simulation

    A Simulation object that contains Universes and a Visualizer.

    -

    Constructors

    Constructors

    Methods

    Constructors

    • Create a new Simulation object with the provided Universes and visualization config.

      Parameters

      • universes: Universe | Universe[]

        array of Universes.

        -
      • __namedParameters: {
            controller?: ControllerType;
            looped?: boolean;
            maxFrameRate?: number;
            maxTrailLength?: number;
            record?: boolean;
            showDebugInfo?: boolean;
            showTrails?: boolean;
            visType?: VisType;
        }
        • Optional controller?: ControllerType
        • Optional looped?: boolean
        • Optional maxFrameRate?: number
        • Optional maxTrailLength?: number
        • Optional record?: boolean
        • Optional showDebugInfo?: boolean
        • Optional showTrails?: boolean
        • Optional visType?: VisType

      Returns Simulation

    Methods

    • Get the maximum trail length used in the visualization.

      +
    • __namedParameters: {
          controller?: ControllerType;
          looped?: boolean;
          maxFrameRate?: number;
          maxTrailLength?: number;
          record?: boolean;
          showDebugInfo?: boolean;
          showTrails?: boolean;
          visType?: VisType;
      }
      • Optional controller?: ControllerType
      • Optional looped?: boolean
      • Optional maxFrameRate?: number
      • Optional maxTrailLength?: number
      • Optional record?: boolean
      • Optional showDebugInfo?: boolean
      • Optional showTrails?: boolean
      • Optional visType?: VisType

    Returns Simulation

    Methods

    • Get the maximum trail length used in the visualization.

      Returns number

      maximum trail length.

      -
    • Get whether trails are shown in the visualization.

      +
    • Get whether trails are shown in the visualization.

      Returns boolean

      true if trails are shown.

      -
    • True if the universe with the given label is shown.

      +
    • True if the universe with the given label is shown.

      Parameters

      • label: string

        universe label.

      Returns boolean

      whether the universe is shown.

      -
    • Get the speed of the simulation.

      Returns number

      speed of the simulation as a scale of normal time.

      -
    • Get whether the simulation is playing.

      Returns boolean

      true if the simulation is playing.

      -
    • Pause the simulation. Only works if the controller is 'code'.

      -

      Returns void

    • Resume the simulation. Only works if the controller is 'code'.

      -

      Returns void

    • Set the maximum trail length used in the visualization. Changes only apply on the next Simulation.play() call.

      +
    • Pause the simulation. Only works if the controller is 'code'.

      +

      Returns void

    • Resume the simulation. Only works if the controller is 'code'.

      +

      Returns void

    • Set the maximum trail length used in the visualization. Changes only apply on the next Simulation.play() call.

      Parameters

      • maxTrailLength: number

        maximum trail length.

        -

      Returns void

    • Set whether to show trails in the visualization. Only works if the controller is 'code'.

      +

    Returns void

    • Set whether to show trails in the visualization. Only works if the controller is 'code'.

      Parameters

      • showTrails: boolean

        true to show trails.

        -

      Returns void

    • Set whether to show the universe with the given label. Only works if the controller is 'code'.

      +

    Returns void

    • Set whether to show the universe with the given label. Only works if the controller is 'code'.

      Parameters

      • label: string

        universe label.

      • show: boolean

        true to show the universe.

        -

      Returns void

    • Set the speed of the simulation. Only works if the controller is 'code'.

      +

    Returns void

    • Set the speed of the simulation. Only works if the controller is 'code'.

      Parameters

      • speed: number

        speed of the simulation as a scale of normal time.

        -

      Returns void

    • Insert the simulation visualization in the div with the given id.

      +

    Returns void

    • Insert the simulation visualization in the div with the given id.

      Parameters

      • divId: string

        div id.

      • width: number
      • height: number
      • speed: number = 1

        initial time scale.

      • paused: boolean = false

        whether to start the simulation paused.

      • recordFor: number = 0

        number of seconds to record for, only used if in record mode.

        -

      Returns void

    Generated using TypeDoc

    \ No newline at end of file +

    Returns void

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/State.html b/docs/api/classes/State.html similarity index 97% rename from docs/classes/State.html rename to docs/api/classes/State.html index 9d082a7..959d744 100644 --- a/docs/classes/State.html +++ b/docs/api/classes/State.html @@ -1,10 +1,10 @@ State | nbody

    Class State

    Represents a Universe's state snapshot.

    -

    Constructors

    Constructors

    Properties

    Methods

    Constructors

    Properties

    bodies: CelestialBody[]

    Array of celestial bodies that make up this state of the Universe.

    -

    Methods

    • Deep copy this state

      +

    Returns State

    Properties

    bodies: CelestialBody[]

    Array of celestial bodies that make up this state of the Universe.

    +

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/Universe.html b/docs/api/classes/Universe.html similarity index 96% rename from docs/classes/Universe.html rename to docs/api/classes/Universe.html index 2a15817..2165480 100644 --- a/docs/classes/Universe.html +++ b/docs/api/classes/Universe.html @@ -1,5 +1,5 @@ Universe | nbody

    Class Universe

    A Universe object that contains previous and current state of the universe, a simulation function, frame of reference transformations and other necessary data.

    -

    Constructors

    Constructors

    Properties

    color currState label @@ -9,10 +9,10 @@

    Methods

    Constructors

    Properties

    color: string | string[]

    Color of the bodies in the Universe. A single color applied to all bodies or an array of colors applied to each body respectively. Incase of array, length should match the number of bodies in the state.

    -
    currState: State
    label: string

    Label of the Universe.

    -
    prevState: State

    Simulation function used to simulate the Universe.

    -
    transformations: Transformation[]

    Array of transformations to be applied to the Universe's state after simulation and before visualization.

    -

    Methods

    • Deep copy the current Universe.

      +

    Returns Universe

    Properties

    color: string | string[]

    Color of the bodies in the Universe. A single color applied to all bodies or an array of colors applied to each body respectively. Incase of array, length should match the number of bodies in the state.

    +
    currState: State
    label: string

    Label of the Universe.

    +
    prevState: State

    Simulation function used to simulate the Universe.

    +
    transformations: Transformation[]

    Array of transformations to be applied to the Universe's state after simulation and before visualization.

    +

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/Vector3.html b/docs/api/classes/Vector3.html similarity index 100% rename from docs/classes/Vector3.html rename to docs/api/classes/Vector3.html diff --git a/docs/classes/VelocityVerletSim.html b/docs/api/classes/VelocityVerletSim.html similarity index 98% rename from docs/classes/VelocityVerletSim.html rename to docs/api/classes/VelocityVerletSim.html index d2c2dd4..eaed144 100644 --- a/docs/classes/VelocityVerletSim.html +++ b/docs/api/classes/VelocityVerletSim.html @@ -1,12 +1,12 @@ VelocityVerletSim | nbody

    Class VelocityVerletSim

    Represents a simulation function object that uses the Velocity Verlet integration method to simulate the motion of bodies.

    -

    Implements

    Constructors

    Implements

    Constructors

    Properties

    Methods

    Constructors

    Properties

    forceCalculator: Force

    Force object to calculate forces on bodies in the Universe.

    -

    Methods

    • Simulate a step in the Universe by using the previous and/or current state and a time step, using the Velocity Verlet integration method.

      +

    Returns VelocityVerletSim

    Properties

    forceCalculator: Force

    Force object to calculate forces on bodies in the Universe.

    +

    Methods

    • Simulate a step in the Universe by using the previous and/or current state and a time step, using the Velocity Verlet integration method.

      Parameters

      • deltaT: number

        time step.

      • currState: State

        current state.

      Returns State

      new state after the simulation step.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/hierarchy.html b/docs/api/hierarchy.html similarity index 100% rename from docs/hierarchy.html rename to docs/api/hierarchy.html diff --git a/docs/api/index.html b/docs/api/index.html new file mode 100644 index 0000000..84d9413 --- /dev/null +++ b/docs/api/index.html @@ -0,0 +1,9 @@ +nbody

    nbody

    nbody

    N-body simulations as a Source Academy module.

    +

    Installation

    The package is published and available on the npm registry as nbody.

    +
    npm install nbody three @types/three plotly.js-dist @types/plotly.js
    +
    +

    or

    +
    yarn add nbody three @types/three plotly.js-dist @types/plotly.js
    +
    +

    Usage

    Full API Documentation available here.

    +

    For developers

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/Force.html b/docs/api/interfaces/Force.html similarity index 98% rename from docs/interfaces/Force.html rename to docs/api/interfaces/Force.html index c97de59..3a73c81 100644 --- a/docs/interfaces/Force.html +++ b/docs/api/interfaces/Force.html @@ -1,3 +1,3 @@ Force | nbody

    Interface Force

    Represents a force object used to calculate forces acting on the bodies in the Universe.

    -
    interface Force {
        getForces(bodies): Vector3[];
    }

    Implemented by

    Methods

    Methods

    Generated using TypeDoc

    \ No newline at end of file +
    interface Force {
        getForces(bodies): Vector3[];
    }

    Implemented by

    Methods

    Methods

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/SimulateFunction.html b/docs/api/interfaces/SimulateFunction.html similarity index 98% rename from docs/interfaces/SimulateFunction.html rename to docs/api/interfaces/SimulateFunction.html index e893ad9..b6c3eb1 100644 --- a/docs/interfaces/SimulateFunction.html +++ b/docs/api/interfaces/SimulateFunction.html @@ -1,8 +1,8 @@ SimulateFunction | nbody

    Interface SimulateFunction

    Represents a function object used for simulating the Universe. Should encapsulate the numerical integration method and other necessary simulation logic. Can use an external force calculation function object - see Force.

    -
    interface SimulateFunction {
        simulate(deltaT, currState, prevState): State;
    }

    Implemented by

    Methods

    interface SimulateFunction {
        simulate(deltaT, currState, prevState): State;
    }

    Implemented by

    Methods

    Methods

    • Simulate a step in the Universe by using the previous and/or current state and a time step.

      Parameters

      • deltaT: number

        time step.

      • currState: State

        current state of the Universe.

      • prevState: State

        previous state of the Universe.

      Returns State

      the next state of the Universe.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/Transformation.html b/docs/api/interfaces/Transformation.html similarity index 98% rename from docs/interfaces/Transformation.html rename to docs/api/interfaces/Transformation.html index 0c9f075..7188acb 100644 --- a/docs/interfaces/Transformation.html +++ b/docs/api/interfaces/Transformation.html @@ -1,7 +1,7 @@ Transformation | nbody

    Interface Transformation

    Represents a Frame of Reference transformation.

    -
    interface Transformation {
        transform(state, deltaT): State;
    }

    Implemented by

    Methods

    interface Transformation {
        transform(state, deltaT): State;
    }

    Implemented by

    Methods

    Methods

    • Transform the state to a new frame of reference.

      Parameters

      • state: State

        state to transform.

      • deltaT: number

        time step taken to get to this state. Only applicable for time-dependent transformations.

      Returns State

      transformed state.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules.html b/docs/api/modules.html similarity index 100% rename from docs/modules.html rename to docs/api/modules.html diff --git a/docs/types/ControllerType.html b/docs/api/types/ControllerType.html similarity index 98% rename from docs/types/ControllerType.html rename to docs/api/types/ControllerType.html index bb7861a..cade469 100644 --- a/docs/types/ControllerType.html +++ b/docs/api/types/ControllerType.html @@ -4,4 +4,4 @@
  • 'code' for manual control via code.
  • 'none' for no control.
  • -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/types/UniverseConfig.html b/docs/api/types/UniverseConfig.html similarity index 99% rename from docs/types/UniverseConfig.html rename to docs/api/types/UniverseConfig.html index 5bd3fec..aadcccd 100644 --- a/docs/types/UniverseConfig.html +++ b/docs/api/types/UniverseConfig.html @@ -5,4 +5,4 @@
  • prevState: State

    Previous state of the Universe.

  • simFunc: SimulateFunction

    Simulation function used to simulate the Universe.

  • transformations: Transformation[]

    Array of transformations to be applied to the Universe's state after simulation and before visualization.

    -
  • Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/types/VisType.html b/docs/api/types/VisType.html similarity index 98% rename from docs/types/VisType.html rename to docs/api/types/VisType.html index aa8e69b..fa55c58 100644 --- a/docs/types/VisType.html +++ b/docs/api/types/VisType.html @@ -1,2 +1,2 @@ VisType | nbody

    Type alias VisType

    VisType: "2D" | "3D"

    Visualization type.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/assets/CelestialBody-CpuBovvJ.js b/docs/assets/CelestialBody-CpuBovvJ.js new file mode 100644 index 0000000..3d48f91 --- /dev/null +++ b/docs/assets/CelestialBody-CpuBovvJ.js @@ -0,0 +1,9 @@ +import{j as e}from"./jsx-runtime-DRTy3Uxn.js";import{useMDXComponents as r}from"./index-z5U8iC57.js";import{M as s}from"./index-Bd-WH8Nz.js";import"./index-BBkUAzwr.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";function o(n){const t={code:"code",pre:"pre",...r(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Usage/CelestialBody"}),` +`,e.jsx(t.pre,{children:e.jsx(t.code,{className:"language-ts",children:` const a = new CelestialBody(\r + "a",\r + 1,\r + new Vector3(-0.97000436, 0.24308753, 0),\r + new Vector3(0.466203685, 0.43236573, 0),\r + new Vector3(0, 0, 0)\r + ); +`})})]})}function j(n={}){const{wrapper:t}={...r(),...n.components};return t?e.jsx(t,{...n,children:e.jsx(o,{...n})}):o(n)}export{j as default}; diff --git a/docs/assets/Color-RQJUDNI5-D9WPpOf3.js b/docs/assets/Color-RQJUDNI5-D9WPpOf3.js new file mode 100644 index 0000000..c1aaa31 --- /dev/null +++ b/docs/assets/Color-RQJUDNI5-D9WPpOf3.js @@ -0,0 +1 @@ +import{n as M,e as ue,T as Me,F as Ce,f as $e,g as Ne}from"./index-Bd-WH8Nz.js";import{R as h,r as b,g as fe}from"./index-BBkUAzwr.js";import{_ as Oe,i as J,a as Ie}from"./index-DrlA5mbP.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-PqR-_bA4.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{onClick:k}):null)},un=tn;export{tn as ColorControl,un as default}; diff --git a/docs/assets/DocsRenderer-K4EAMTCU-BA-vEMEx.js b/docs/assets/DocsRenderer-K4EAMTCU-BA-vEMEx.js new file mode 100644 index 0000000..3f94880 --- /dev/null +++ b/docs/assets/DocsRenderer-K4EAMTCU-BA-vEMEx.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./index-z5U8iC57.js","./index-BBkUAzwr.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as p}from"./iframe-CQxbU3Lp.js";import{R as e,r as c}from"./index-BBkUAzwr.js";import{r as l,u}from"./react-18-B-OKcmzb.js";import{C as h,A as E,H as d,D as x}from"./index-Bd-WH8Nz.js";import"../sb-preview/runtime.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";var _={code:h,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:e.createElement(e.Fragment,null,r)}},A=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,a)=>{p(()=>import("./index-z5U8iC57.js"),__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:i})=>l(e.createElement(D,{showException:a,key:Math.random()},e.createElement(i,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{u(t)}}};export{A as DocsRenderer,_ as defaultComponents}; diff --git a/docs/assets/Install-DJ5cHZNu.js b/docs/assets/Install-DJ5cHZNu.js new file mode 100644 index 0000000..b8261d3 --- /dev/null +++ b/docs/assets/Install-DJ5cHZNu.js @@ -0,0 +1,11 @@ +import{j as e}from"./jsx-runtime-DRTy3Uxn.js";import{useMDXComponents as s}from"./index-z5U8iC57.js";import{M as l}from"./index-Bd-WH8Nz.js";import"./index-BBkUAzwr.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";function o(t){const n={a:"a",code:"code",h1:"h1",p:"p",pre:"pre",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(l,{title:"Getting Started/Installation"}),` +`,e.jsx(n.h1,{id:"installation-guide",children:"Installation guide"}),` +`,e.jsxs(n.p,{children:["nbody is available on the npm registry as ",e.jsx(n.a,{href:"https://www.npmjs.com/package/nbody",rel:"nofollow",children:"nbody"}),". Simply follow the following install commands based on your package manager. Since nbody relies on ",e.jsx(n.a,{href:"https://threejs.org/",rel:"nofollow",children:"three"})," and ",e.jsx(n.a,{href:"https://plotly.com/javascript/",rel:"nofollow",children:"Plotly.js"})," for visualization of the simulations, they have to be installed alongside nbody."]}),` +`,e.jsx(n.p,{children:"If you are using Typescript, you may also have to install type definitions as well."}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-bash",children:`npm install nbody three plotly.js-dist\r +npm install --save-dev @types/three @types/plotly.js +`})}),` +`,e.jsx(n.p,{children:"or"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-bash",children:`yarn add nbody three plotly.js-dist\r +yarn add -D @types/three @types/plotly.js +`})})]})}function j(t={}){const{wrapper:n}={...s(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(o,{...t})}):o(t)}export{j as default}; diff --git a/docs/assets/Integration-D7JphiXd.js b/docs/assets/Integration-D7JphiXd.js new file mode 100644 index 0000000..09245a9 --- /dev/null +++ b/docs/assets/Integration-D7JphiXd.js @@ -0,0 +1,113 @@ +import{j as n}from"./jsx-runtime-DRTy3Uxn.js";import{useMDXComponents as i}from"./index-z5U8iC57.js";import{M as o}from"./index-Bd-WH8Nz.js";import"./index-BBkUAzwr.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";function t(e){const r={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...i(),...e.components};return n.jsxs(n.Fragment,{children:[n.jsx(o,{title:"Getting Started/Integration"}),` +`,n.jsx(r.h1,{id:"integration",children:"Integration"}),` +`,n.jsxs(r.p,{children:["Once installed into your ",n.jsx(r.code,{children:"node_modules"}),", you can use ",n.jsx(r.strong,{children:"nbody"})," in your choice of your frontend framework just like you would any other client side library."]}),` +`,n.jsx(r.h2,{id:"table-of-contents",children:"Table of Contents"}),` +`,n.jsxs(r.ul,{children:[` +`,n.jsx(r.li,{children:n.jsx(r.a,{href:"#compatible-frameworks",children:"Compatible Frameworks"})}),` +`,n.jsx(r.li,{children:n.jsx(r.a,{href:"#react",children:"React"})}),` +`,n.jsx(r.li,{children:n.jsx(r.a,{href:"#typescript",children:"Typescript"})}),` +`]}),` +`,n.jsx(r.h2,{id:"compatible-frameworks",children:"Compatible Frameworks"}),` +`,n.jsxs(r.p,{children:["Following combinations of Frontend frameworks + build tools + dev tools have been tested to be compatible with nbody. Consider raising a ",n.jsx(r.a,{href:"https://github.com/source-academy/nbody/issues",rel:"nofollow",children:"request"})," if any frameworks are missing. Additionally do consider contributing to the project directly."]}),` +`,n.jsxs(r.ul,{children:[` +`,n.jsx(r.li,{children:"React + Vite"}),` +`,n.jsx(r.li,{children:"React + Vite + TS"}),` +`,n.jsx(r.li,{children:"React + Webpack"}),` +`,n.jsx(r.li,{children:"React + Webpack + TS"}),` +`]}),` +`,n.jsx(r.h2,{id:"react",children:"React"}),` +`,n.jsx(r.pre,{children:n.jsx(r.code,{className:"language-javascript",children:`import {\r + CelestialBody, Gravity, VelocityVerletSim, State, Universe, Simulation, RungeKutta4Sim, ExplicitEulerSim, SemiImplicitEulerSim, CoMTransformation, Vector3\r +} from "nbody";\r +\r +function run(divId, width, height) {\r + let g = 1;\r +\r + let force = new Gravity(g);\r + let sim = new VelocityVerletSim(force);\r +\r + let a = new CelestialBody(\r + "a",\r + 1,\r + new Vector3(-0.97000436, 0.24308753, 0),\r + new Vector3(0.466203685, 0.43236573, 0),\r + new Vector3(0, 0, 0)\r + );\r +\r + let b = new CelestialBody(\r + "b",\r + 1,\r + new Vector3(0.97000436, -0.24308753, 0),\r + new Vector3(0.466203685, 0.43236573, 0),\r + new Vector3(0, 0, 0)\r + );\r +\r + let c = new CelestialBody(\r + "c",\r + 1,\r + new Vector3(0, 0, 0),\r + new Vector3(-2 * 0.466203685, -2 * 0.43236573, 0),\r + new Vector3(0, 0, 0)\r + );\r +\r + let state = new State([a, b, c]);\r +\r + let universe = new Universe({\r + label: "1",\r + currState: state.clone(),\r + color: "rgba(112, 185, 177, 1)",\r + simFunc: sim,\r + });\r +\r + let simulation = new Simulation(universe, {\r + visType: "3D",\r + showTrails: true,\r + controller: "ui",\r + });\r +\r + simulation.start(divId, 800, 800, width, height);\r +}\r +\r +function App() {\r + return (\r + run("demo-canvas", 800, 800)}\r + >\r + );\r +}\r +\r +export default App; +`})}),` +`,n.jsx(r.h2,{id:"typescript",children:"Typescript"}),` +`,n.jsx(r.pre,{children:n.jsx(r.code,{className:"language-typescript",children:`class TranslateZTransformation implements Transformation {\r + transform(state: State, deltaT: number): State {\r + const newState = state.clone();\r + newState.bodies.forEach((body) => {\r + body.position.z += 1;\r + });\r + return newState;\r + }\r +}\r +\r +function run(divId: string) {\r + ...\r +\r + let universe: Universe = new Universe({\r + label: "Translated Universe",\r + currState: new State([a, b, c]),\r + color: "rgba(254, 209, 106, 1)",\r + simFunc: new VelocityVerletSim(new Gravity(1)),\r + transformations: [new TranslateZTransformation()]\r + }\r + );\r +\r + ...\r +} +`})})]})}function w(e={}){const{wrapper:r}={...i(),...e.components};return r?n.jsx(r,{...e,children:n.jsx(t,{...e})}):t(e)}export{w as default}; diff --git a/docs/assets/Nbody-Dnjz406z.js b/docs/assets/Nbody-Dnjz406z.js new file mode 100644 index 0000000..ed807ce --- /dev/null +++ b/docs/assets/Nbody-Dnjz406z.js @@ -0,0 +1,18 @@ +import{j as e}from"./jsx-runtime-DRTy3Uxn.js";import{useMDXComponents as r}from"./index-z5U8iC57.js";import{M as t}from"./index-Bd-WH8Nz.js";import"./index-BBkUAzwr.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";function o(i){const n={a:"a",em:"em",h1:"h1",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(t,{title:"Getting started/nbody"}),` +`,e.jsx(n.p,{children:e.jsx(n.a,{href:"https://source-academy.github.io/nbody/api",rel:"nofollow",children:"API"})}),` +`,e.jsx(n.h1,{id:"nbody",children:"nbody"}),` +`,e.jsx(n.p,{children:"A JS/TS library to configure, simulate and visualize nbody simulations in the browser."}),` +`,e.jsx(n.h1,{id:"background",children:"Background"}),` +`,e.jsxs(n.p,{children:["The ",e.jsx(n.a,{href:"https://en.wikipedia.org/wiki/N-body_problem",rel:"nofollow",children:e.jsx(n.strong,{children:"n-body problem"})}),", a cornerstone of celestial mechanics, involves predicting the motions of multiple objects interacting ",e.jsx(n.strong,{children:"gravitationally"}),". While solvable analytically for ",e.jsx(n.a,{href:"https://en.wikipedia.org/wiki/Two-body_problem",rel:"nofollow",children:"two-bodies"}),", we rely on computer simulations using numerical integration methods for three or more."]}),` +`,e.jsxs(n.p,{children:["This project aims to bridge the ",e.jsx(n.em,{children:"space"})," between accuracy, accessibility, performance and education. With this JS/TS library, you can"]}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Effortlessly configure"})," your system of bodies."]}),` +`,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Simulate with flexibility"})," utilizing various accurate and/or performant numerical integration methods or even write you own."]}),` +`,e.jsxs(n.li,{children:[e.jsx(n.strong,{children:"Visually explore"})," and immerse yourself with customizable 2D and 3D visualizations and intuitive UI controls"]}),` +`]}),` +`,e.jsx(n.h1,{id:"development",children:"Development"}),` +`,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"nbody"})," is maintained by the open-source ",e.jsx(n.a,{href:"https://github.com/source-academy/",rel:"nofollow",children:"Source Academy"})," development community based in National University of Singapore. Anyone from anywhere is free to contribute to the project and the community."]}),` +`,e.jsx(n.h1,{id:"contributors",children:"Contributors"}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:[e.jsx(n.a,{href:"https://yeluriketan.vercel.app/",rel:"nofollow",children:"Yeluri Ketan"})," - Creator and Maintainer"]}),` +`]})]})}function x(i={}){const{wrapper:n}={...r(),...i.components};return n?e.jsx(n,{...i,children:e.jsx(o,{...i})}):o(i)}export{x as default}; diff --git a/docs/assets/Simulation-CVPFUacl.js b/docs/assets/Simulation-CVPFUacl.js new file mode 100644 index 0000000..b6ba5cf --- /dev/null +++ b/docs/assets/Simulation-CVPFUacl.js @@ -0,0 +1,8 @@ +import{j as t}from"./jsx-runtime-DRTy3Uxn.js";import{useMDXComponents as i}from"./index-z5U8iC57.js";import{M as r,d as e}from"./index-Bd-WH8Nz.js";import{S as a,T as m,a as c}from"./Simulation.stories-D61pU9aF.js";import"./index-BBkUAzwr.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";function s(o){const n={h1:"h1",h2:"h2",p:"p",...i(),...o.components};return t.jsxs(t.Fragment,{children:[t.jsx(r,{of:a}),` +`,t.jsx(n.h1,{id:"button",children:"Button"}),` +`,t.jsx(n.p,{children:"Button is a clickable interactive element that triggers a response."}),` +`,t.jsx(n.p,{children:"You can place text and icons inside of a button."}),` +`,t.jsx(n.p,{children:"Buttons are often used for form submissions and to toggle elements into view."}),` +`,t.jsx(n.h2,{id:"usage",children:"Usage"}),` +`,t.jsx(e,{of:m}),` +`,t.jsx(e,{of:c})]})}function D(o={}){const{wrapper:n}={...i(),...o.components};return n?t.jsx(n,{...o,children:t.jsx(s,{...o})}):s(o)}export{D as default}; diff --git a/docs/assets/Simulation.stories-D61pU9aF.js b/docs/assets/Simulation.stories-D61pU9aF.js new file mode 100644 index 0000000..1eb31c0 --- /dev/null +++ b/docs/assets/Simulation.stories-D61pU9aF.js @@ -0,0 +1,7719 @@ +import{j as O3}from"./jsx-runtime-DRTy3Uxn.js";import{g as N3}from"./index-BBkUAzwr.js";class Xv{constructor(F,q,le,De,Ze){this.label=F,this.mass=q,this.position=le,this.velocity=De,this.acceleration=Ze}clone(F,q,le){return new Xv(this.label,this.mass,F===void 0?this.position.clone():F,q===void 0?this.velocity.clone():q,le===void 0?this.acceleration.clone():le)}}/** + * @license + * Copyright 2010-2023 Three.js Authors + * SPDX-License-Identifier: MIT + */const Y0="163",Dh={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Ih={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},B3=0,sm=1,U3=2,Ky=1,H3=2,gf=3,gc=0,Vs=1,mf=2,hc=0,nv=1,lm=2,um=3,fm=4,V3=5,qc=100,G3=101,W3=102,Y3=103,X3=104,Z3=200,j3=201,K3=202,J3=203,F0=204,z0=205,Q3=206,$3=207,q3=208,ew=209,tw=210,rw=211,nw=212,iw=213,aw=214,ow=0,sw=1,lw=2,sp=3,uw=4,fw=5,cw=6,hw=7,Jy=0,vw=1,dw=2,vc=0,pw=1,gw=2,mw=3,yw=4,xw=5,bw=6,ww=7,Qy=300,sv=301,lv=302,k0=303,O0=304,pp=306,N0=1e3,th=1001,B0=1002,Dl=1003,Tw=1004,Pd=1005,fu=1006,qp=1007,rh=1008,dc=1009,Aw=1010,Mw=1011,$y=1012,qy=1013,uv=1014,cc=1015,lp=1016,e1=1017,t1=1018,$v=1020,Sw=35902,Ew=1021,_w=1022,zu=1023,Cw=1024,Lw=1025,iv=1026,Kv=1027,Pw=1028,r1=1029,Rw=1030,n1=1031,i1=1033,e0=33776,t0=33777,r0=33778,n0=33779,cm=35840,hm=35841,vm=35842,dm=35843,a1=36196,pm=37492,gm=37496,mm=37808,ym=37809,xm=37810,bm=37811,wm=37812,Tm=37813,Am=37814,Mm=37815,Sm=37816,Em=37817,_m=37818,Cm=37819,Lm=37820,Pm=37821,i0=36492,Rm=36494,Dm=36495,Dw=36283,Im=36284,Fm=36285,zm=36286,Iw=3200,Fw=3201,zw=0,kw=1,fc="",Iu="srgb",yc="srgb-linear",X0="display-p3",gp="display-p3-linear",up="linear",Ya="srgb",fp="rec709",cp="p3",Fh=7680,km=519,Ow=512,Nw=513,Bw=514,o1=515,Uw=516,Hw=517,Vw=518,Gw=519,U0=35044,Om="300 es",yf=2e3,hp=2001;class ih{addEventListener(F,q){this._listeners===void 0&&(this._listeners={});const le=this._listeners;le[F]===void 0&&(le[F]=[]),le[F].indexOf(q)===-1&&le[F].push(q)}hasEventListener(F,q){if(this._listeners===void 0)return!1;const le=this._listeners;return le[F]!==void 0&&le[F].indexOf(q)!==-1}removeEventListener(F,q){if(this._listeners===void 0)return;const De=this._listeners[F];if(De!==void 0){const Ze=De.indexOf(q);Ze!==-1&&De.splice(Ze,1)}}dispatchEvent(F){if(this._listeners===void 0)return;const le=this._listeners[F.type];if(le!==void 0){F.target=this;const De=le.slice(0);for(let Ze=0,G=De.length;Ze>8&255]+fs[_e>>16&255]+fs[_e>>24&255]+"-"+fs[F&255]+fs[F>>8&255]+"-"+fs[F>>16&15|64]+fs[F>>24&255]+"-"+fs[q&63|128]+fs[q>>8&255]+"-"+fs[q>>16&255]+fs[q>>24&255]+fs[le&255]+fs[le>>8&255]+fs[le>>16&255]+fs[le>>24&255]).toLowerCase()}function hs(_e,F,q){return Math.max(F,Math.min(q,_e))}function Z0(_e,F){return(_e%F+F)%F}function Ww(_e,F,q,le,De){return le+(_e-F)*(De-le)/(q-F)}function Yw(_e,F,q){return _e!==F?(q-_e)/(F-_e):0}function jv(_e,F,q){return(1-q)*_e+q*F}function Xw(_e,F,q,le){return jv(_e,F,1-Math.exp(-q*le))}function Zw(_e,F=1){return F-Math.abs(Z0(_e,F*2)-F)}function jw(_e,F,q){return _e<=F?0:_e>=q?1:(_e=(_e-F)/(q-F),_e*_e*(3-2*_e))}function Kw(_e,F,q){return _e<=F?0:_e>=q?1:(_e=(_e-F)/(q-F),_e*_e*_e*(_e*(_e*6-15)+10))}function Jw(_e,F){return _e+Math.floor(Math.random()*(F-_e+1))}function Qw(_e,F){return _e+Math.random()*(F-_e)}function $w(_e){return _e*(.5-Math.random())}function qw(_e){_e!==void 0&&(Nm=_e);let F=Nm+=1831565813;return F=Math.imul(F^F>>>15,F|1),F^=F+Math.imul(F^F>>>7,F|61),((F^F>>>14)>>>0)/4294967296}function e2(_e){return _e*Zv}function t2(_e){return _e*Jv}function r2(_e){return(_e&_e-1)===0&&_e!==0}function n2(_e){return Math.pow(2,Math.ceil(Math.log(_e)/Math.LN2))}function i2(_e){return Math.pow(2,Math.floor(Math.log(_e)/Math.LN2))}function a2(_e,F,q,le,De){const Ze=Math.cos,G=Math.sin,U=Ze(q/2),e=G(q/2),g=Ze((F+le)/2),C=G((F+le)/2),i=Ze((F-le)/2),S=G((F-le)/2),x=Ze((le-F)/2),v=G((le-F)/2);switch(De){case"XYX":_e.set(U*C,e*i,e*S,U*g);break;case"YZY":_e.set(e*S,U*C,e*i,U*g);break;case"ZXZ":_e.set(e*i,e*S,U*C,U*g);break;case"XZX":_e.set(U*C,e*v,e*x,U*g);break;case"YXY":_e.set(e*x,U*C,e*v,U*g);break;case"ZYZ":_e.set(e*v,e*x,U*C,U*g);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+De)}}function cu(_e,F){switch(F.constructor){case Float32Array:return _e;case Uint32Array:return _e/4294967295;case Uint16Array:return _e/65535;case Uint8Array:return _e/255;case Int32Array:return Math.max(_e/2147483647,-1);case Int16Array:return Math.max(_e/32767,-1);case Int8Array:return Math.max(_e/127,-1);default:throw new Error("Invalid component type.")}}function Pa(_e,F){switch(F.constructor){case Float32Array:return _e;case Uint32Array:return Math.round(_e*4294967295);case Uint16Array:return Math.round(_e*65535);case Uint8Array:return Math.round(_e*255);case Int32Array:return Math.round(_e*2147483647);case Int16Array:return Math.round(_e*32767);case Int8Array:return Math.round(_e*127);default:throw new Error("Invalid component type.")}}const o2={DEG2RAD:Zv,RAD2DEG:Jv,generateUUID:xf,clamp:hs,euclideanModulo:Z0,mapLinear:Ww,inverseLerp:Yw,lerp:jv,damp:Xw,pingpong:Zw,smoothstep:jw,smootherstep:Kw,randInt:Jw,randFloat:Qw,randFloatSpread:$w,seededRandom:qw,degToRad:e2,radToDeg:t2,isPowerOfTwo:r2,ceilPowerOfTwo:n2,floorPowerOfTwo:i2,setQuaternionFromProperEuler:a2,normalize:Pa,denormalize:cu};class Wi{constructor(F=0,q=0){Wi.prototype.isVector2=!0,this.x=F,this.y=q}get width(){return this.x}set width(F){this.x=F}get height(){return this.y}set height(F){this.y=F}set(F,q){return this.x=F,this.y=q,this}setScalar(F){return this.x=F,this.y=F,this}setX(F){return this.x=F,this}setY(F){return this.y=F,this}setComponent(F,q){switch(F){case 0:this.x=q;break;case 1:this.y=q;break;default:throw new Error("index is out of range: "+F)}return this}getComponent(F){switch(F){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+F)}}clone(){return new this.constructor(this.x,this.y)}copy(F){return this.x=F.x,this.y=F.y,this}add(F){return this.x+=F.x,this.y+=F.y,this}addScalar(F){return this.x+=F,this.y+=F,this}addVectors(F,q){return this.x=F.x+q.x,this.y=F.y+q.y,this}addScaledVector(F,q){return this.x+=F.x*q,this.y+=F.y*q,this}sub(F){return this.x-=F.x,this.y-=F.y,this}subScalar(F){return this.x-=F,this.y-=F,this}subVectors(F,q){return this.x=F.x-q.x,this.y=F.y-q.y,this}multiply(F){return this.x*=F.x,this.y*=F.y,this}multiplyScalar(F){return this.x*=F,this.y*=F,this}divide(F){return this.x/=F.x,this.y/=F.y,this}divideScalar(F){return this.multiplyScalar(1/F)}applyMatrix3(F){const q=this.x,le=this.y,De=F.elements;return this.x=De[0]*q+De[3]*le+De[6],this.y=De[1]*q+De[4]*le+De[7],this}min(F){return this.x=Math.min(this.x,F.x),this.y=Math.min(this.y,F.y),this}max(F){return this.x=Math.max(this.x,F.x),this.y=Math.max(this.y,F.y),this}clamp(F,q){return this.x=Math.max(F.x,Math.min(q.x,this.x)),this.y=Math.max(F.y,Math.min(q.y,this.y)),this}clampScalar(F,q){return this.x=Math.max(F,Math.min(q,this.x)),this.y=Math.max(F,Math.min(q,this.y)),this}clampLength(F,q){const le=this.length();return this.divideScalar(le||1).multiplyScalar(Math.max(F,Math.min(q,le)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(F){return this.x*F.x+this.y*F.y}cross(F){return this.x*F.y-this.y*F.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(F){const q=Math.sqrt(this.lengthSq()*F.lengthSq());if(q===0)return Math.PI/2;const le=this.dot(F)/q;return Math.acos(hs(le,-1,1))}distanceTo(F){return Math.sqrt(this.distanceToSquared(F))}distanceToSquared(F){const q=this.x-F.x,le=this.y-F.y;return q*q+le*le}manhattanDistanceTo(F){return Math.abs(this.x-F.x)+Math.abs(this.y-F.y)}setLength(F){return this.normalize().multiplyScalar(F)}lerp(F,q){return this.x+=(F.x-this.x)*q,this.y+=(F.y-this.y)*q,this}lerpVectors(F,q,le){return this.x=F.x+(q.x-F.x)*le,this.y=F.y+(q.y-F.y)*le,this}equals(F){return F.x===this.x&&F.y===this.y}fromArray(F,q=0){return this.x=F[q],this.y=F[q+1],this}toArray(F=[],q=0){return F[q]=this.x,F[q+1]=this.y,F}fromBufferAttribute(F,q){return this.x=F.getX(q),this.y=F.getY(q),this}rotateAround(F,q){const le=Math.cos(q),De=Math.sin(q),Ze=this.x-F.x,G=this.y-F.y;return this.x=Ze*le-G*De+F.x,this.y=Ze*De+G*le+F.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class fa{constructor(F,q,le,De,Ze,G,U,e,g){fa.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],F!==void 0&&this.set(F,q,le,De,Ze,G,U,e,g)}set(F,q,le,De,Ze,G,U,e,g){const C=this.elements;return C[0]=F,C[1]=De,C[2]=U,C[3]=q,C[4]=Ze,C[5]=e,C[6]=le,C[7]=G,C[8]=g,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(F){const q=this.elements,le=F.elements;return q[0]=le[0],q[1]=le[1],q[2]=le[2],q[3]=le[3],q[4]=le[4],q[5]=le[5],q[6]=le[6],q[7]=le[7],q[8]=le[8],this}extractBasis(F,q,le){return F.setFromMatrix3Column(this,0),q.setFromMatrix3Column(this,1),le.setFromMatrix3Column(this,2),this}setFromMatrix4(F){const q=F.elements;return this.set(q[0],q[4],q[8],q[1],q[5],q[9],q[2],q[6],q[10]),this}multiply(F){return this.multiplyMatrices(this,F)}premultiply(F){return this.multiplyMatrices(F,this)}multiplyMatrices(F,q){const le=F.elements,De=q.elements,Ze=this.elements,G=le[0],U=le[3],e=le[6],g=le[1],C=le[4],i=le[7],S=le[2],x=le[5],v=le[8],p=De[0],r=De[3],t=De[6],a=De[1],n=De[4],f=De[7],c=De[2],l=De[5],m=De[8];return Ze[0]=G*p+U*a+e*c,Ze[3]=G*r+U*n+e*l,Ze[6]=G*t+U*f+e*m,Ze[1]=g*p+C*a+i*c,Ze[4]=g*r+C*n+i*l,Ze[7]=g*t+C*f+i*m,Ze[2]=S*p+x*a+v*c,Ze[5]=S*r+x*n+v*l,Ze[8]=S*t+x*f+v*m,this}multiplyScalar(F){const q=this.elements;return q[0]*=F,q[3]*=F,q[6]*=F,q[1]*=F,q[4]*=F,q[7]*=F,q[2]*=F,q[5]*=F,q[8]*=F,this}determinant(){const F=this.elements,q=F[0],le=F[1],De=F[2],Ze=F[3],G=F[4],U=F[5],e=F[6],g=F[7],C=F[8];return q*G*C-q*U*g-le*Ze*C+le*U*e+De*Ze*g-De*G*e}invert(){const F=this.elements,q=F[0],le=F[1],De=F[2],Ze=F[3],G=F[4],U=F[5],e=F[6],g=F[7],C=F[8],i=C*G-U*g,S=U*e-C*Ze,x=g*Ze-G*e,v=q*i+le*S+De*x;if(v===0)return this.set(0,0,0,0,0,0,0,0,0);const p=1/v;return F[0]=i*p,F[1]=(De*g-C*le)*p,F[2]=(U*le-De*G)*p,F[3]=S*p,F[4]=(C*q-De*e)*p,F[5]=(De*Ze-U*q)*p,F[6]=x*p,F[7]=(le*e-g*q)*p,F[8]=(G*q-le*Ze)*p,this}transpose(){let F;const q=this.elements;return F=q[1],q[1]=q[3],q[3]=F,F=q[2],q[2]=q[6],q[6]=F,F=q[5],q[5]=q[7],q[7]=F,this}getNormalMatrix(F){return this.setFromMatrix4(F).invert().transpose()}transposeIntoArray(F){const q=this.elements;return F[0]=q[0],F[1]=q[3],F[2]=q[6],F[3]=q[1],F[4]=q[4],F[5]=q[7],F[6]=q[2],F[7]=q[5],F[8]=q[8],this}setUvTransform(F,q,le,De,Ze,G,U){const e=Math.cos(Ze),g=Math.sin(Ze);return this.set(le*e,le*g,-le*(e*G+g*U)+G+F,-De*g,De*e,-De*(-g*G+e*U)+U+q,0,0,1),this}scale(F,q){return this.premultiply(a0.makeScale(F,q)),this}rotate(F){return this.premultiply(a0.makeRotation(-F)),this}translate(F,q){return this.premultiply(a0.makeTranslation(F,q)),this}makeTranslation(F,q){return F.isVector2?this.set(1,0,F.x,0,1,F.y,0,0,1):this.set(1,0,F,0,1,q,0,0,1),this}makeRotation(F){const q=Math.cos(F),le=Math.sin(F);return this.set(q,-le,0,le,q,0,0,0,1),this}makeScale(F,q){return this.set(F,0,0,0,q,0,0,0,1),this}equals(F){const q=this.elements,le=F.elements;for(let De=0;De<9;De++)if(q[De]!==le[De])return!1;return!0}fromArray(F,q=0){for(let le=0;le<9;le++)this.elements[le]=F[le+q];return this}toArray(F=[],q=0){const le=this.elements;return F[q]=le[0],F[q+1]=le[1],F[q+2]=le[2],F[q+3]=le[3],F[q+4]=le[4],F[q+5]=le[5],F[q+6]=le[6],F[q+7]=le[7],F[q+8]=le[8],F}clone(){return new this.constructor().fromArray(this.elements)}}const a0=new fa;function s1(_e){for(let F=_e.length-1;F>=0;--F)if(_e[F]>=65535)return!0;return!1}function vp(_e){return document.createElementNS("http://www.w3.org/1999/xhtml",_e)}function s2(){const _e=vp("canvas");return _e.style.display="block",_e}const Bm={};function l1(_e){_e in Bm||(Bm[_e]=!0,console.warn(_e))}const Um=new fa().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Hm=new fa().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Rd={[yc]:{transfer:up,primaries:fp,toReference:_e=>_e,fromReference:_e=>_e},[Iu]:{transfer:Ya,primaries:fp,toReference:_e=>_e.convertSRGBToLinear(),fromReference:_e=>_e.convertLinearToSRGB()},[gp]:{transfer:up,primaries:cp,toReference:_e=>_e.applyMatrix3(Hm),fromReference:_e=>_e.applyMatrix3(Um)},[X0]:{transfer:Ya,primaries:cp,toReference:_e=>_e.convertSRGBToLinear().applyMatrix3(Hm),fromReference:_e=>_e.applyMatrix3(Um).convertLinearToSRGB()}},l2=new Set([yc,gp]),Fa={enabled:!0,_workingColorSpace:yc,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(_e){if(!l2.has(_e))throw new Error(`Unsupported working color space, "${_e}".`);this._workingColorSpace=_e},convert:function(_e,F,q){if(this.enabled===!1||F===q||!F||!q)return _e;const le=Rd[F].toReference,De=Rd[q].fromReference;return De(le(_e))},fromWorkingColorSpace:function(_e,F){return this.convert(_e,this._workingColorSpace,F)},toWorkingColorSpace:function(_e,F){return this.convert(_e,F,this._workingColorSpace)},getPrimaries:function(_e){return Rd[_e].primaries},getTransfer:function(_e){return _e===fc?up:Rd[_e].transfer}};function av(_e){return _e<.04045?_e*.0773993808:Math.pow(_e*.9478672986+.0521327014,2.4)}function o0(_e){return _e<.0031308?_e*12.92:1.055*Math.pow(_e,.41666)-.055}let zh;class u2{static getDataURL(F){if(/^data:/i.test(F.src)||typeof HTMLCanvasElement>"u")return F.src;let q;if(F instanceof HTMLCanvasElement)q=F;else{zh===void 0&&(zh=vp("canvas")),zh.width=F.width,zh.height=F.height;const le=zh.getContext("2d");F instanceof ImageData?le.putImageData(F,0,0):le.drawImage(F,0,0,F.width,F.height),q=zh}return q.width>2048||q.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",F),q.toDataURL("image/jpeg",.6)):q.toDataURL("image/png")}static sRGBToLinear(F){if(typeof HTMLImageElement<"u"&&F instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&F instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&F instanceof ImageBitmap){const q=vp("canvas");q.width=F.width,q.height=F.height;const le=q.getContext("2d");le.drawImage(F,0,0,F.width,F.height);const De=le.getImageData(0,0,F.width,F.height),Ze=De.data;for(let G=0;G0&&(le.userData=this.userData),q||(F.textures[this.uuid]=le),le}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(F){if(this.mapping!==Qy)return F;if(F.applyMatrix3(this.matrix),F.x<0||F.x>1)switch(this.wrapS){case N0:F.x=F.x-Math.floor(F.x);break;case th:F.x=F.x<0?0:1;break;case B0:Math.abs(Math.floor(F.x)%2)===1?F.x=Math.ceil(F.x)-F.x:F.x=F.x-Math.floor(F.x);break}if(F.y<0||F.y>1)switch(this.wrapT){case N0:F.y=F.y-Math.floor(F.y);break;case th:F.y=F.y<0?0:1;break;case B0:Math.abs(Math.floor(F.y)%2)===1?F.y=Math.ceil(F.y)-F.y:F.y=F.y-Math.floor(F.y);break}return this.flipY&&(F.y=1-F.y),F}set needsUpdate(F){F===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(F){F===!0&&this.pmremVersion++}}Es.DEFAULT_IMAGE=null;Es.DEFAULT_MAPPING=Qy;Es.DEFAULT_ANISOTROPY=1;class No{constructor(F=0,q=0,le=0,De=1){No.prototype.isVector4=!0,this.x=F,this.y=q,this.z=le,this.w=De}get width(){return this.z}set width(F){this.z=F}get height(){return this.w}set height(F){this.w=F}set(F,q,le,De){return this.x=F,this.y=q,this.z=le,this.w=De,this}setScalar(F){return this.x=F,this.y=F,this.z=F,this.w=F,this}setX(F){return this.x=F,this}setY(F){return this.y=F,this}setZ(F){return this.z=F,this}setW(F){return this.w=F,this}setComponent(F,q){switch(F){case 0:this.x=q;break;case 1:this.y=q;break;case 2:this.z=q;break;case 3:this.w=q;break;default:throw new Error("index is out of range: "+F)}return this}getComponent(F){switch(F){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+F)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(F){return this.x=F.x,this.y=F.y,this.z=F.z,this.w=F.w!==void 0?F.w:1,this}add(F){return this.x+=F.x,this.y+=F.y,this.z+=F.z,this.w+=F.w,this}addScalar(F){return this.x+=F,this.y+=F,this.z+=F,this.w+=F,this}addVectors(F,q){return this.x=F.x+q.x,this.y=F.y+q.y,this.z=F.z+q.z,this.w=F.w+q.w,this}addScaledVector(F,q){return this.x+=F.x*q,this.y+=F.y*q,this.z+=F.z*q,this.w+=F.w*q,this}sub(F){return this.x-=F.x,this.y-=F.y,this.z-=F.z,this.w-=F.w,this}subScalar(F){return this.x-=F,this.y-=F,this.z-=F,this.w-=F,this}subVectors(F,q){return this.x=F.x-q.x,this.y=F.y-q.y,this.z=F.z-q.z,this.w=F.w-q.w,this}multiply(F){return this.x*=F.x,this.y*=F.y,this.z*=F.z,this.w*=F.w,this}multiplyScalar(F){return this.x*=F,this.y*=F,this.z*=F,this.w*=F,this}applyMatrix4(F){const q=this.x,le=this.y,De=this.z,Ze=this.w,G=F.elements;return this.x=G[0]*q+G[4]*le+G[8]*De+G[12]*Ze,this.y=G[1]*q+G[5]*le+G[9]*De+G[13]*Ze,this.z=G[2]*q+G[6]*le+G[10]*De+G[14]*Ze,this.w=G[3]*q+G[7]*le+G[11]*De+G[15]*Ze,this}divideScalar(F){return this.multiplyScalar(1/F)}setAxisAngleFromQuaternion(F){this.w=2*Math.acos(F.w);const q=Math.sqrt(1-F.w*F.w);return q<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=F.x/q,this.y=F.y/q,this.z=F.z/q),this}setAxisAngleFromRotationMatrix(F){let q,le,De,Ze;const e=F.elements,g=e[0],C=e[4],i=e[8],S=e[1],x=e[5],v=e[9],p=e[2],r=e[6],t=e[10];if(Math.abs(C-S)<.01&&Math.abs(i-p)<.01&&Math.abs(v-r)<.01){if(Math.abs(C+S)<.1&&Math.abs(i+p)<.1&&Math.abs(v+r)<.1&&Math.abs(g+x+t-3)<.1)return this.set(1,0,0,0),this;q=Math.PI;const n=(g+1)/2,f=(x+1)/2,c=(t+1)/2,l=(C+S)/4,m=(i+p)/4,h=(v+r)/4;return n>f&&n>c?n<.01?(le=0,De=.707106781,Ze=.707106781):(le=Math.sqrt(n),De=l/le,Ze=m/le):f>c?f<.01?(le=.707106781,De=0,Ze=.707106781):(De=Math.sqrt(f),le=l/De,Ze=h/De):c<.01?(le=.707106781,De=.707106781,Ze=0):(Ze=Math.sqrt(c),le=m/Ze,De=h/Ze),this.set(le,De,Ze,q),this}let a=Math.sqrt((r-v)*(r-v)+(i-p)*(i-p)+(S-C)*(S-C));return Math.abs(a)<.001&&(a=1),this.x=(r-v)/a,this.y=(i-p)/a,this.z=(S-C)/a,this.w=Math.acos((g+x+t-1)/2),this}min(F){return this.x=Math.min(this.x,F.x),this.y=Math.min(this.y,F.y),this.z=Math.min(this.z,F.z),this.w=Math.min(this.w,F.w),this}max(F){return this.x=Math.max(this.x,F.x),this.y=Math.max(this.y,F.y),this.z=Math.max(this.z,F.z),this.w=Math.max(this.w,F.w),this}clamp(F,q){return this.x=Math.max(F.x,Math.min(q.x,this.x)),this.y=Math.max(F.y,Math.min(q.y,this.y)),this.z=Math.max(F.z,Math.min(q.z,this.z)),this.w=Math.max(F.w,Math.min(q.w,this.w)),this}clampScalar(F,q){return this.x=Math.max(F,Math.min(q,this.x)),this.y=Math.max(F,Math.min(q,this.y)),this.z=Math.max(F,Math.min(q,this.z)),this.w=Math.max(F,Math.min(q,this.w)),this}clampLength(F,q){const le=this.length();return this.divideScalar(le||1).multiplyScalar(Math.max(F,Math.min(q,le)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(F){return this.x*F.x+this.y*F.y+this.z*F.z+this.w*F.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(F){return this.normalize().multiplyScalar(F)}lerp(F,q){return this.x+=(F.x-this.x)*q,this.y+=(F.y-this.y)*q,this.z+=(F.z-this.z)*q,this.w+=(F.w-this.w)*q,this}lerpVectors(F,q,le){return this.x=F.x+(q.x-F.x)*le,this.y=F.y+(q.y-F.y)*le,this.z=F.z+(q.z-F.z)*le,this.w=F.w+(q.w-F.w)*le,this}equals(F){return F.x===this.x&&F.y===this.y&&F.z===this.z&&F.w===this.w}fromArray(F,q=0){return this.x=F[q],this.y=F[q+1],this.z=F[q+2],this.w=F[q+3],this}toArray(F=[],q=0){return F[q]=this.x,F[q+1]=this.y,F[q+2]=this.z,F[q+3]=this.w,F}fromBufferAttribute(F,q){return this.x=F.getX(q),this.y=F.getY(q),this.z=F.getZ(q),this.w=F.getW(q),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class h2 extends ih{constructor(F=1,q=1,le={}){super(),this.isRenderTarget=!0,this.width=F,this.height=q,this.depth=1,this.scissor=new No(0,0,F,q),this.scissorTest=!1,this.viewport=new No(0,0,F,q);const De={width:F,height:q,depth:1};le=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:fu,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0,count:1},le);const Ze=new Es(De,le.mapping,le.wrapS,le.wrapT,le.magFilter,le.minFilter,le.format,le.type,le.anisotropy,le.colorSpace);Ze.flipY=!1,Ze.generateMipmaps=le.generateMipmaps,Ze.internalFormat=le.internalFormat,this.textures=[];const G=le.count;for(let U=0;U=0?1:-1,n=1-t*t;if(n>Number.EPSILON){const c=Math.sqrt(n),l=Math.atan2(c,t*a);r=Math.sin(r*l)/c,U=Math.sin(U*l)/c}const f=U*a;if(e=e*r+S*f,g=g*r+x*f,C=C*r+v*f,i=i*r+p*f,r===1-U){const c=1/Math.sqrt(e*e+g*g+C*C+i*i);e*=c,g*=c,C*=c,i*=c}}F[q]=e,F[q+1]=g,F[q+2]=C,F[q+3]=i}static multiplyQuaternionsFlat(F,q,le,De,Ze,G){const U=le[De],e=le[De+1],g=le[De+2],C=le[De+3],i=Ze[G],S=Ze[G+1],x=Ze[G+2],v=Ze[G+3];return F[q]=U*v+C*i+e*x-g*S,F[q+1]=e*v+C*S+g*i-U*x,F[q+2]=g*v+C*x+U*S-e*i,F[q+3]=C*v-U*i-e*S-g*x,F}get x(){return this._x}set x(F){this._x=F,this._onChangeCallback()}get y(){return this._y}set y(F){this._y=F,this._onChangeCallback()}get z(){return this._z}set z(F){this._z=F,this._onChangeCallback()}get w(){return this._w}set w(F){this._w=F,this._onChangeCallback()}set(F,q,le,De){return this._x=F,this._y=q,this._z=le,this._w=De,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(F){return this._x=F.x,this._y=F.y,this._z=F.z,this._w=F.w,this._onChangeCallback(),this}setFromEuler(F,q=!0){const le=F._x,De=F._y,Ze=F._z,G=F._order,U=Math.cos,e=Math.sin,g=U(le/2),C=U(De/2),i=U(Ze/2),S=e(le/2),x=e(De/2),v=e(Ze/2);switch(G){case"XYZ":this._x=S*C*i+g*x*v,this._y=g*x*i-S*C*v,this._z=g*C*v+S*x*i,this._w=g*C*i-S*x*v;break;case"YXZ":this._x=S*C*i+g*x*v,this._y=g*x*i-S*C*v,this._z=g*C*v-S*x*i,this._w=g*C*i+S*x*v;break;case"ZXY":this._x=S*C*i-g*x*v,this._y=g*x*i+S*C*v,this._z=g*C*v+S*x*i,this._w=g*C*i-S*x*v;break;case"ZYX":this._x=S*C*i-g*x*v,this._y=g*x*i+S*C*v,this._z=g*C*v-S*x*i,this._w=g*C*i+S*x*v;break;case"YZX":this._x=S*C*i+g*x*v,this._y=g*x*i+S*C*v,this._z=g*C*v-S*x*i,this._w=g*C*i-S*x*v;break;case"XZY":this._x=S*C*i-g*x*v,this._y=g*x*i-S*C*v,this._z=g*C*v+S*x*i,this._w=g*C*i+S*x*v;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+G)}return q===!0&&this._onChangeCallback(),this}setFromAxisAngle(F,q){const le=q/2,De=Math.sin(le);return this._x=F.x*De,this._y=F.y*De,this._z=F.z*De,this._w=Math.cos(le),this._onChangeCallback(),this}setFromRotationMatrix(F){const q=F.elements,le=q[0],De=q[4],Ze=q[8],G=q[1],U=q[5],e=q[9],g=q[2],C=q[6],i=q[10],S=le+U+i;if(S>0){const x=.5/Math.sqrt(S+1);this._w=.25/x,this._x=(C-e)*x,this._y=(Ze-g)*x,this._z=(G-De)*x}else if(le>U&&le>i){const x=2*Math.sqrt(1+le-U-i);this._w=(C-e)/x,this._x=.25*x,this._y=(De+G)/x,this._z=(Ze+g)/x}else if(U>i){const x=2*Math.sqrt(1+U-le-i);this._w=(Ze-g)/x,this._x=(De+G)/x,this._y=.25*x,this._z=(e+C)/x}else{const x=2*Math.sqrt(1+i-le-U);this._w=(G-De)/x,this._x=(Ze+g)/x,this._y=(e+C)/x,this._z=.25*x}return this._onChangeCallback(),this}setFromUnitVectors(F,q){let le=F.dot(q)+1;return leMath.abs(F.z)?(this._x=-F.y,this._y=F.x,this._z=0,this._w=le):(this._x=0,this._y=-F.z,this._z=F.y,this._w=le)):(this._x=F.y*q.z-F.z*q.y,this._y=F.z*q.x-F.x*q.z,this._z=F.x*q.y-F.y*q.x,this._w=le),this.normalize()}angleTo(F){return 2*Math.acos(Math.abs(hs(this.dot(F),-1,1)))}rotateTowards(F,q){const le=this.angleTo(F);if(le===0)return this;const De=Math.min(1,q/le);return this.slerp(F,De),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(F){return this._x*F._x+this._y*F._y+this._z*F._z+this._w*F._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let F=this.length();return F===0?(this._x=0,this._y=0,this._z=0,this._w=1):(F=1/F,this._x=this._x*F,this._y=this._y*F,this._z=this._z*F,this._w=this._w*F),this._onChangeCallback(),this}multiply(F){return this.multiplyQuaternions(this,F)}premultiply(F){return this.multiplyQuaternions(F,this)}multiplyQuaternions(F,q){const le=F._x,De=F._y,Ze=F._z,G=F._w,U=q._x,e=q._y,g=q._z,C=q._w;return this._x=le*C+G*U+De*g-Ze*e,this._y=De*C+G*e+Ze*U-le*g,this._z=Ze*C+G*g+le*e-De*U,this._w=G*C-le*U-De*e-Ze*g,this._onChangeCallback(),this}slerp(F,q){if(q===0)return this;if(q===1)return this.copy(F);const le=this._x,De=this._y,Ze=this._z,G=this._w;let U=G*F._w+le*F._x+De*F._y+Ze*F._z;if(U<0?(this._w=-F._w,this._x=-F._x,this._y=-F._y,this._z=-F._z,U=-U):this.copy(F),U>=1)return this._w=G,this._x=le,this._y=De,this._z=Ze,this;const e=1-U*U;if(e<=Number.EPSILON){const x=1-q;return this._w=x*G+q*this._w,this._x=x*le+q*this._x,this._y=x*De+q*this._y,this._z=x*Ze+q*this._z,this.normalize(),this}const g=Math.sqrt(e),C=Math.atan2(g,U),i=Math.sin((1-q)*C)/g,S=Math.sin(q*C)/g;return this._w=G*i+this._w*S,this._x=le*i+this._x*S,this._y=De*i+this._y*S,this._z=Ze*i+this._z*S,this._onChangeCallback(),this}slerpQuaternions(F,q,le){return this.copy(F).slerp(q,le)}random(){const F=2*Math.PI*Math.random(),q=2*Math.PI*Math.random(),le=Math.random(),De=Math.sqrt(1-le),Ze=Math.sqrt(le);return this.set(De*Math.sin(F),De*Math.cos(F),Ze*Math.sin(q),Ze*Math.cos(q))}equals(F){return F._x===this._x&&F._y===this._y&&F._z===this._z&&F._w===this._w}fromArray(F,q=0){return this._x=F[q],this._y=F[q+1],this._z=F[q+2],this._w=F[q+3],this._onChangeCallback(),this}toArray(F=[],q=0){return F[q]=this._x,F[q+1]=this._y,F[q+2]=this._z,F[q+3]=this._w,F}fromBufferAttribute(F,q){return this._x=F.getX(q),this._y=F.getY(q),this._z=F.getZ(q),this._w=F.getW(q),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(F){return this._onChangeCallback=F,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class bn{constructor(F=0,q=0,le=0){bn.prototype.isVector3=!0,this.x=F,this.y=q,this.z=le}set(F,q,le){return le===void 0&&(le=this.z),this.x=F,this.y=q,this.z=le,this}setScalar(F){return this.x=F,this.y=F,this.z=F,this}setX(F){return this.x=F,this}setY(F){return this.y=F,this}setZ(F){return this.z=F,this}setComponent(F,q){switch(F){case 0:this.x=q;break;case 1:this.y=q;break;case 2:this.z=q;break;default:throw new Error("index is out of range: "+F)}return this}getComponent(F){switch(F){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+F)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(F){return this.x=F.x,this.y=F.y,this.z=F.z,this}add(F){return this.x+=F.x,this.y+=F.y,this.z+=F.z,this}addScalar(F){return this.x+=F,this.y+=F,this.z+=F,this}addVectors(F,q){return this.x=F.x+q.x,this.y=F.y+q.y,this.z=F.z+q.z,this}addScaledVector(F,q){return this.x+=F.x*q,this.y+=F.y*q,this.z+=F.z*q,this}sub(F){return this.x-=F.x,this.y-=F.y,this.z-=F.z,this}subScalar(F){return this.x-=F,this.y-=F,this.z-=F,this}subVectors(F,q){return this.x=F.x-q.x,this.y=F.y-q.y,this.z=F.z-q.z,this}multiply(F){return this.x*=F.x,this.y*=F.y,this.z*=F.z,this}multiplyScalar(F){return this.x*=F,this.y*=F,this.z*=F,this}multiplyVectors(F,q){return this.x=F.x*q.x,this.y=F.y*q.y,this.z=F.z*q.z,this}applyEuler(F){return this.applyQuaternion(Vm.setFromEuler(F))}applyAxisAngle(F,q){return this.applyQuaternion(Vm.setFromAxisAngle(F,q))}applyMatrix3(F){const q=this.x,le=this.y,De=this.z,Ze=F.elements;return this.x=Ze[0]*q+Ze[3]*le+Ze[6]*De,this.y=Ze[1]*q+Ze[4]*le+Ze[7]*De,this.z=Ze[2]*q+Ze[5]*le+Ze[8]*De,this}applyNormalMatrix(F){return this.applyMatrix3(F).normalize()}applyMatrix4(F){const q=this.x,le=this.y,De=this.z,Ze=F.elements,G=1/(Ze[3]*q+Ze[7]*le+Ze[11]*De+Ze[15]);return this.x=(Ze[0]*q+Ze[4]*le+Ze[8]*De+Ze[12])*G,this.y=(Ze[1]*q+Ze[5]*le+Ze[9]*De+Ze[13])*G,this.z=(Ze[2]*q+Ze[6]*le+Ze[10]*De+Ze[14])*G,this}applyQuaternion(F){const q=this.x,le=this.y,De=this.z,Ze=F.x,G=F.y,U=F.z,e=F.w,g=2*(G*De-U*le),C=2*(U*q-Ze*De),i=2*(Ze*le-G*q);return this.x=q+e*g+G*i-U*C,this.y=le+e*C+U*g-Ze*i,this.z=De+e*i+Ze*C-G*g,this}project(F){return this.applyMatrix4(F.matrixWorldInverse).applyMatrix4(F.projectionMatrix)}unproject(F){return this.applyMatrix4(F.projectionMatrixInverse).applyMatrix4(F.matrixWorld)}transformDirection(F){const q=this.x,le=this.y,De=this.z,Ze=F.elements;return this.x=Ze[0]*q+Ze[4]*le+Ze[8]*De,this.y=Ze[1]*q+Ze[5]*le+Ze[9]*De,this.z=Ze[2]*q+Ze[6]*le+Ze[10]*De,this.normalize()}divide(F){return this.x/=F.x,this.y/=F.y,this.z/=F.z,this}divideScalar(F){return this.multiplyScalar(1/F)}min(F){return this.x=Math.min(this.x,F.x),this.y=Math.min(this.y,F.y),this.z=Math.min(this.z,F.z),this}max(F){return this.x=Math.max(this.x,F.x),this.y=Math.max(this.y,F.y),this.z=Math.max(this.z,F.z),this}clamp(F,q){return this.x=Math.max(F.x,Math.min(q.x,this.x)),this.y=Math.max(F.y,Math.min(q.y,this.y)),this.z=Math.max(F.z,Math.min(q.z,this.z)),this}clampScalar(F,q){return this.x=Math.max(F,Math.min(q,this.x)),this.y=Math.max(F,Math.min(q,this.y)),this.z=Math.max(F,Math.min(q,this.z)),this}clampLength(F,q){const le=this.length();return this.divideScalar(le||1).multiplyScalar(Math.max(F,Math.min(q,le)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(F){return this.x*F.x+this.y*F.y+this.z*F.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(F){return this.normalize().multiplyScalar(F)}lerp(F,q){return this.x+=(F.x-this.x)*q,this.y+=(F.y-this.y)*q,this.z+=(F.z-this.z)*q,this}lerpVectors(F,q,le){return this.x=F.x+(q.x-F.x)*le,this.y=F.y+(q.y-F.y)*le,this.z=F.z+(q.z-F.z)*le,this}cross(F){return this.crossVectors(this,F)}crossVectors(F,q){const le=F.x,De=F.y,Ze=F.z,G=q.x,U=q.y,e=q.z;return this.x=De*e-Ze*U,this.y=Ze*G-le*e,this.z=le*U-De*G,this}projectOnVector(F){const q=F.lengthSq();if(q===0)return this.set(0,0,0);const le=F.dot(this)/q;return this.copy(F).multiplyScalar(le)}projectOnPlane(F){return l0.copy(this).projectOnVector(F),this.sub(l0)}reflect(F){return this.sub(l0.copy(F).multiplyScalar(2*this.dot(F)))}angleTo(F){const q=Math.sqrt(this.lengthSq()*F.lengthSq());if(q===0)return Math.PI/2;const le=this.dot(F)/q;return Math.acos(hs(le,-1,1))}distanceTo(F){return Math.sqrt(this.distanceToSquared(F))}distanceToSquared(F){const q=this.x-F.x,le=this.y-F.y,De=this.z-F.z;return q*q+le*le+De*De}manhattanDistanceTo(F){return Math.abs(this.x-F.x)+Math.abs(this.y-F.y)+Math.abs(this.z-F.z)}setFromSpherical(F){return this.setFromSphericalCoords(F.radius,F.phi,F.theta)}setFromSphericalCoords(F,q,le){const De=Math.sin(q)*F;return this.x=De*Math.sin(le),this.y=Math.cos(q)*F,this.z=De*Math.cos(le),this}setFromCylindrical(F){return this.setFromCylindricalCoords(F.radius,F.theta,F.y)}setFromCylindricalCoords(F,q,le){return this.x=F*Math.sin(q),this.y=le,this.z=F*Math.cos(q),this}setFromMatrixPosition(F){const q=F.elements;return this.x=q[12],this.y=q[13],this.z=q[14],this}setFromMatrixScale(F){const q=this.setFromMatrixColumn(F,0).length(),le=this.setFromMatrixColumn(F,1).length(),De=this.setFromMatrixColumn(F,2).length();return this.x=q,this.y=le,this.z=De,this}setFromMatrixColumn(F,q){return this.fromArray(F.elements,q*4)}setFromMatrix3Column(F,q){return this.fromArray(F.elements,q*3)}setFromEuler(F){return this.x=F._x,this.y=F._y,this.z=F._z,this}setFromColor(F){return this.x=F.r,this.y=F.g,this.z=F.b,this}equals(F){return F.x===this.x&&F.y===this.y&&F.z===this.z}fromArray(F,q=0){return this.x=F[q],this.y=F[q+1],this.z=F[q+2],this}toArray(F=[],q=0){return F[q]=this.x,F[q+1]=this.y,F[q+2]=this.z,F}fromBufferAttribute(F,q){return this.x=F.getX(q),this.y=F.getY(q),this.z=F.getZ(q),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const F=Math.random()*Math.PI*2,q=Math.random()*2-1,le=Math.sqrt(1-q*q);return this.x=le*Math.cos(F),this.y=q,this.z=le*Math.sin(F),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const l0=new bn,Vm=new ku;class qv{constructor(F=new bn(1/0,1/0,1/0),q=new bn(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=F,this.max=q}set(F,q){return this.min.copy(F),this.max.copy(q),this}setFromArray(F){this.makeEmpty();for(let q=0,le=F.length;qthis.max.x||F.ythis.max.y||F.zthis.max.z)}containsBox(F){return this.min.x<=F.min.x&&F.max.x<=this.max.x&&this.min.y<=F.min.y&&F.max.y<=this.max.y&&this.min.z<=F.min.z&&F.max.z<=this.max.z}getParameter(F,q){return q.set((F.x-this.min.x)/(this.max.x-this.min.x),(F.y-this.min.y)/(this.max.y-this.min.y),(F.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(F){return!(F.max.xthis.max.x||F.max.ythis.max.y||F.max.zthis.max.z)}intersectsSphere(F){return this.clampPoint(F.center,ou),ou.distanceToSquared(F.center)<=F.radius*F.radius}intersectsPlane(F){let q,le;return F.normal.x>0?(q=F.normal.x*this.min.x,le=F.normal.x*this.max.x):(q=F.normal.x*this.max.x,le=F.normal.x*this.min.x),F.normal.y>0?(q+=F.normal.y*this.min.y,le+=F.normal.y*this.max.y):(q+=F.normal.y*this.max.y,le+=F.normal.y*this.min.y),F.normal.z>0?(q+=F.normal.z*this.min.z,le+=F.normal.z*this.max.z):(q+=F.normal.z*this.max.z,le+=F.normal.z*this.min.z),q<=-F.constant&&le>=-F.constant}intersectsTriangle(F){if(this.isEmpty())return!1;this.getCenter(kv),Id.subVectors(this.max,kv),kh.subVectors(F.a,kv),Oh.subVectors(F.b,kv),Nh.subVectors(F.c,kv),nc.subVectors(Oh,kh),ic.subVectors(Nh,Oh),Xc.subVectors(kh,Nh);let q=[0,-nc.z,nc.y,0,-ic.z,ic.y,0,-Xc.z,Xc.y,nc.z,0,-nc.x,ic.z,0,-ic.x,Xc.z,0,-Xc.x,-nc.y,nc.x,0,-ic.y,ic.x,0,-Xc.y,Xc.x,0];return!u0(q,kh,Oh,Nh,Id)||(q=[1,0,0,0,1,0,0,0,1],!u0(q,kh,Oh,Nh,Id))?!1:(Fd.crossVectors(nc,ic),q=[Fd.x,Fd.y,Fd.z],u0(q,kh,Oh,Nh,Id))}clampPoint(F,q){return q.copy(F).clamp(this.min,this.max)}distanceToPoint(F){return this.clampPoint(F,ou).distanceTo(F)}getBoundingSphere(F){return this.isEmpty()?F.makeEmpty():(this.getCenter(F.center),F.radius=this.getSize(ou).length()*.5),F}intersect(F){return this.min.max(F.min),this.max.min(F.max),this.isEmpty()&&this.makeEmpty(),this}union(F){return this.min.min(F.min),this.max.max(F.max),this}applyMatrix4(F){return this.isEmpty()?this:(cf[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(F),cf[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(F),cf[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(F),cf[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(F),cf[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(F),cf[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(F),cf[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(F),cf[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(F),this.setFromPoints(cf),this)}translate(F){return this.min.add(F),this.max.add(F),this}equals(F){return F.min.equals(this.min)&&F.max.equals(this.max)}}const cf=[new bn,new bn,new bn,new bn,new bn,new bn,new bn,new bn],ou=new bn,Dd=new qv,kh=new bn,Oh=new bn,Nh=new bn,nc=new bn,ic=new bn,Xc=new bn,kv=new bn,Id=new bn,Fd=new bn,Zc=new bn;function u0(_e,F,q,le,De){for(let Ze=0,G=_e.length-3;Ze<=G;Ze+=3){Zc.fromArray(_e,Ze);const U=De.x*Math.abs(Zc.x)+De.y*Math.abs(Zc.y)+De.z*Math.abs(Zc.z),e=F.dot(Zc),g=q.dot(Zc),C=le.dot(Zc);if(Math.max(-Math.max(e,g,C),Math.min(e,g,C))>U)return!1}return!0}const d2=new qv,Ov=new bn,f0=new bn;class ed{constructor(F=new bn,q=-1){this.isSphere=!0,this.center=F,this.radius=q}set(F,q){return this.center.copy(F),this.radius=q,this}setFromPoints(F,q){const le=this.center;q!==void 0?le.copy(q):d2.setFromPoints(F).getCenter(le);let De=0;for(let Ze=0,G=F.length;Zethis.radius*this.radius&&(q.sub(this.center).normalize(),q.multiplyScalar(this.radius).add(this.center)),q}getBoundingBox(F){return this.isEmpty()?(F.makeEmpty(),F):(F.set(this.center,this.center),F.expandByScalar(this.radius),F)}applyMatrix4(F){return this.center.applyMatrix4(F),this.radius=this.radius*F.getMaxScaleOnAxis(),this}translate(F){return this.center.add(F),this}expandByPoint(F){if(this.isEmpty())return this.center.copy(F),this.radius=0,this;Ov.subVectors(F,this.center);const q=Ov.lengthSq();if(q>this.radius*this.radius){const le=Math.sqrt(q),De=(le-this.radius)*.5;this.center.addScaledVector(Ov,De/le),this.radius+=De}return this}union(F){return F.isEmpty()?this:this.isEmpty()?(this.copy(F),this):(this.center.equals(F.center)===!0?this.radius=Math.max(this.radius,F.radius):(f0.subVectors(F.center,this.center).setLength(F.radius),this.expandByPoint(Ov.copy(F.center).add(f0)),this.expandByPoint(Ov.copy(F.center).sub(f0))),this)}equals(F){return F.center.equals(this.center)&&F.radius===this.radius}clone(){return new this.constructor().copy(this)}}const hf=new bn,c0=new bn,zd=new bn,ac=new bn,h0=new bn,kd=new bn,v0=new bn;class td{constructor(F=new bn,q=new bn(0,0,-1)){this.origin=F,this.direction=q}set(F,q){return this.origin.copy(F),this.direction.copy(q),this}copy(F){return this.origin.copy(F.origin),this.direction.copy(F.direction),this}at(F,q){return q.copy(this.origin).addScaledVector(this.direction,F)}lookAt(F){return this.direction.copy(F).sub(this.origin).normalize(),this}recast(F){return this.origin.copy(this.at(F,hf)),this}closestPointToPoint(F,q){q.subVectors(F,this.origin);const le=q.dot(this.direction);return le<0?q.copy(this.origin):q.copy(this.origin).addScaledVector(this.direction,le)}distanceToPoint(F){return Math.sqrt(this.distanceSqToPoint(F))}distanceSqToPoint(F){const q=hf.subVectors(F,this.origin).dot(this.direction);return q<0?this.origin.distanceToSquared(F):(hf.copy(this.origin).addScaledVector(this.direction,q),hf.distanceToSquared(F))}distanceSqToSegment(F,q,le,De){c0.copy(F).add(q).multiplyScalar(.5),zd.copy(q).sub(F).normalize(),ac.copy(this.origin).sub(c0);const Ze=F.distanceTo(q)*.5,G=-this.direction.dot(zd),U=ac.dot(this.direction),e=-ac.dot(zd),g=ac.lengthSq(),C=Math.abs(1-G*G);let i,S,x,v;if(C>0)if(i=G*e-U,S=G*U-e,v=Ze*C,i>=0)if(S>=-v)if(S<=v){const p=1/C;i*=p,S*=p,x=i*(i+G*S+2*U)+S*(G*i+S+2*e)+g}else S=Ze,i=Math.max(0,-(G*S+U)),x=-i*i+S*(S+2*e)+g;else S=-Ze,i=Math.max(0,-(G*S+U)),x=-i*i+S*(S+2*e)+g;else S<=-v?(i=Math.max(0,-(-G*Ze+U)),S=i>0?-Ze:Math.min(Math.max(-Ze,-e),Ze),x=-i*i+S*(S+2*e)+g):S<=v?(i=0,S=Math.min(Math.max(-Ze,-e),Ze),x=S*(S+2*e)+g):(i=Math.max(0,-(G*Ze+U)),S=i>0?Ze:Math.min(Math.max(-Ze,-e),Ze),x=-i*i+S*(S+2*e)+g);else S=G>0?-Ze:Ze,i=Math.max(0,-(G*S+U)),x=-i*i+S*(S+2*e)+g;return le&&le.copy(this.origin).addScaledVector(this.direction,i),De&&De.copy(c0).addScaledVector(zd,S),x}intersectSphere(F,q){hf.subVectors(F.center,this.origin);const le=hf.dot(this.direction),De=hf.dot(hf)-le*le,Ze=F.radius*F.radius;if(De>Ze)return null;const G=Math.sqrt(Ze-De),U=le-G,e=le+G;return e<0?null:U<0?this.at(e,q):this.at(U,q)}intersectsSphere(F){return this.distanceSqToPoint(F.center)<=F.radius*F.radius}distanceToPlane(F){const q=F.normal.dot(this.direction);if(q===0)return F.distanceToPoint(this.origin)===0?0:null;const le=-(this.origin.dot(F.normal)+F.constant)/q;return le>=0?le:null}intersectPlane(F,q){const le=this.distanceToPlane(F);return le===null?null:this.at(le,q)}intersectsPlane(F){const q=F.distanceToPoint(this.origin);return q===0||F.normal.dot(this.direction)*q<0}intersectBox(F,q){let le,De,Ze,G,U,e;const g=1/this.direction.x,C=1/this.direction.y,i=1/this.direction.z,S=this.origin;return g>=0?(le=(F.min.x-S.x)*g,De=(F.max.x-S.x)*g):(le=(F.max.x-S.x)*g,De=(F.min.x-S.x)*g),C>=0?(Ze=(F.min.y-S.y)*C,G=(F.max.y-S.y)*C):(Ze=(F.max.y-S.y)*C,G=(F.min.y-S.y)*C),le>G||Ze>De||((Ze>le||isNaN(le))&&(le=Ze),(G=0?(U=(F.min.z-S.z)*i,e=(F.max.z-S.z)*i):(U=(F.max.z-S.z)*i,e=(F.min.z-S.z)*i),le>e||U>De)||((U>le||le!==le)&&(le=U),(e=0?le:De,q)}intersectsBox(F){return this.intersectBox(F,hf)!==null}intersectTriangle(F,q,le,De,Ze){h0.subVectors(q,F),kd.subVectors(le,F),v0.crossVectors(h0,kd);let G=this.direction.dot(v0),U;if(G>0){if(De)return null;U=1}else if(G<0)U=-1,G=-G;else return null;ac.subVectors(this.origin,F);const e=U*this.direction.dot(kd.crossVectors(ac,kd));if(e<0)return null;const g=U*this.direction.dot(h0.cross(ac));if(g<0||e+g>G)return null;const C=-U*ac.dot(v0);return C<0?null:this.at(C/G,Ze)}applyMatrix4(F){return this.origin.applyMatrix4(F),this.direction.transformDirection(F),this}equals(F){return F.origin.equals(this.origin)&&F.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class so{constructor(F,q,le,De,Ze,G,U,e,g,C,i,S,x,v,p,r){so.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],F!==void 0&&this.set(F,q,le,De,Ze,G,U,e,g,C,i,S,x,v,p,r)}set(F,q,le,De,Ze,G,U,e,g,C,i,S,x,v,p,r){const t=this.elements;return t[0]=F,t[4]=q,t[8]=le,t[12]=De,t[1]=Ze,t[5]=G,t[9]=U,t[13]=e,t[2]=g,t[6]=C,t[10]=i,t[14]=S,t[3]=x,t[7]=v,t[11]=p,t[15]=r,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new so().fromArray(this.elements)}copy(F){const q=this.elements,le=F.elements;return q[0]=le[0],q[1]=le[1],q[2]=le[2],q[3]=le[3],q[4]=le[4],q[5]=le[5],q[6]=le[6],q[7]=le[7],q[8]=le[8],q[9]=le[9],q[10]=le[10],q[11]=le[11],q[12]=le[12],q[13]=le[13],q[14]=le[14],q[15]=le[15],this}copyPosition(F){const q=this.elements,le=F.elements;return q[12]=le[12],q[13]=le[13],q[14]=le[14],this}setFromMatrix3(F){const q=F.elements;return this.set(q[0],q[3],q[6],0,q[1],q[4],q[7],0,q[2],q[5],q[8],0,0,0,0,1),this}extractBasis(F,q,le){return F.setFromMatrixColumn(this,0),q.setFromMatrixColumn(this,1),le.setFromMatrixColumn(this,2),this}makeBasis(F,q,le){return this.set(F.x,q.x,le.x,0,F.y,q.y,le.y,0,F.z,q.z,le.z,0,0,0,0,1),this}extractRotation(F){const q=this.elements,le=F.elements,De=1/Bh.setFromMatrixColumn(F,0).length(),Ze=1/Bh.setFromMatrixColumn(F,1).length(),G=1/Bh.setFromMatrixColumn(F,2).length();return q[0]=le[0]*De,q[1]=le[1]*De,q[2]=le[2]*De,q[3]=0,q[4]=le[4]*Ze,q[5]=le[5]*Ze,q[6]=le[6]*Ze,q[7]=0,q[8]=le[8]*G,q[9]=le[9]*G,q[10]=le[10]*G,q[11]=0,q[12]=0,q[13]=0,q[14]=0,q[15]=1,this}makeRotationFromEuler(F){const q=this.elements,le=F.x,De=F.y,Ze=F.z,G=Math.cos(le),U=Math.sin(le),e=Math.cos(De),g=Math.sin(De),C=Math.cos(Ze),i=Math.sin(Ze);if(F.order==="XYZ"){const S=G*C,x=G*i,v=U*C,p=U*i;q[0]=e*C,q[4]=-e*i,q[8]=g,q[1]=x+v*g,q[5]=S-p*g,q[9]=-U*e,q[2]=p-S*g,q[6]=v+x*g,q[10]=G*e}else if(F.order==="YXZ"){const S=e*C,x=e*i,v=g*C,p=g*i;q[0]=S+p*U,q[4]=v*U-x,q[8]=G*g,q[1]=G*i,q[5]=G*C,q[9]=-U,q[2]=x*U-v,q[6]=p+S*U,q[10]=G*e}else if(F.order==="ZXY"){const S=e*C,x=e*i,v=g*C,p=g*i;q[0]=S-p*U,q[4]=-G*i,q[8]=v+x*U,q[1]=x+v*U,q[5]=G*C,q[9]=p-S*U,q[2]=-G*g,q[6]=U,q[10]=G*e}else if(F.order==="ZYX"){const S=G*C,x=G*i,v=U*C,p=U*i;q[0]=e*C,q[4]=v*g-x,q[8]=S*g+p,q[1]=e*i,q[5]=p*g+S,q[9]=x*g-v,q[2]=-g,q[6]=U*e,q[10]=G*e}else if(F.order==="YZX"){const S=G*e,x=G*g,v=U*e,p=U*g;q[0]=e*C,q[4]=p-S*i,q[8]=v*i+x,q[1]=i,q[5]=G*C,q[9]=-U*C,q[2]=-g*C,q[6]=x*i+v,q[10]=S-p*i}else if(F.order==="XZY"){const S=G*e,x=G*g,v=U*e,p=U*g;q[0]=e*C,q[4]=-i,q[8]=g*C,q[1]=S*i+p,q[5]=G*C,q[9]=x*i-v,q[2]=v*i-x,q[6]=U*C,q[10]=p*i+S}return q[3]=0,q[7]=0,q[11]=0,q[12]=0,q[13]=0,q[14]=0,q[15]=1,this}makeRotationFromQuaternion(F){return this.compose(p2,F,g2)}lookAt(F,q,le){const De=this.elements;return il.subVectors(F,q),il.lengthSq()===0&&(il.z=1),il.normalize(),oc.crossVectors(le,il),oc.lengthSq()===0&&(Math.abs(le.z)===1?il.x+=1e-4:il.z+=1e-4,il.normalize(),oc.crossVectors(le,il)),oc.normalize(),Od.crossVectors(il,oc),De[0]=oc.x,De[4]=Od.x,De[8]=il.x,De[1]=oc.y,De[5]=Od.y,De[9]=il.y,De[2]=oc.z,De[6]=Od.z,De[10]=il.z,this}multiply(F){return this.multiplyMatrices(this,F)}premultiply(F){return this.multiplyMatrices(F,this)}multiplyMatrices(F,q){const le=F.elements,De=q.elements,Ze=this.elements,G=le[0],U=le[4],e=le[8],g=le[12],C=le[1],i=le[5],S=le[9],x=le[13],v=le[2],p=le[6],r=le[10],t=le[14],a=le[3],n=le[7],f=le[11],c=le[15],l=De[0],m=De[4],h=De[8],b=De[12],u=De[1],o=De[5],d=De[9],w=De[13],A=De[2],_=De[6],y=De[10],E=De[14],T=De[3],s=De[7],L=De[11],M=De[15];return Ze[0]=G*l+U*u+e*A+g*T,Ze[4]=G*m+U*o+e*_+g*s,Ze[8]=G*h+U*d+e*y+g*L,Ze[12]=G*b+U*w+e*E+g*M,Ze[1]=C*l+i*u+S*A+x*T,Ze[5]=C*m+i*o+S*_+x*s,Ze[9]=C*h+i*d+S*y+x*L,Ze[13]=C*b+i*w+S*E+x*M,Ze[2]=v*l+p*u+r*A+t*T,Ze[6]=v*m+p*o+r*_+t*s,Ze[10]=v*h+p*d+r*y+t*L,Ze[14]=v*b+p*w+r*E+t*M,Ze[3]=a*l+n*u+f*A+c*T,Ze[7]=a*m+n*o+f*_+c*s,Ze[11]=a*h+n*d+f*y+c*L,Ze[15]=a*b+n*w+f*E+c*M,this}multiplyScalar(F){const q=this.elements;return q[0]*=F,q[4]*=F,q[8]*=F,q[12]*=F,q[1]*=F,q[5]*=F,q[9]*=F,q[13]*=F,q[2]*=F,q[6]*=F,q[10]*=F,q[14]*=F,q[3]*=F,q[7]*=F,q[11]*=F,q[15]*=F,this}determinant(){const F=this.elements,q=F[0],le=F[4],De=F[8],Ze=F[12],G=F[1],U=F[5],e=F[9],g=F[13],C=F[2],i=F[6],S=F[10],x=F[14],v=F[3],p=F[7],r=F[11],t=F[15];return v*(+Ze*e*i-De*g*i-Ze*U*S+le*g*S+De*U*x-le*e*x)+p*(+q*e*x-q*g*S+Ze*G*S-De*G*x+De*g*C-Ze*e*C)+r*(+q*g*i-q*U*x-Ze*G*i+le*G*x+Ze*U*C-le*g*C)+t*(-De*U*C-q*e*i+q*U*S+De*G*i-le*G*S+le*e*C)}transpose(){const F=this.elements;let q;return q=F[1],F[1]=F[4],F[4]=q,q=F[2],F[2]=F[8],F[8]=q,q=F[6],F[6]=F[9],F[9]=q,q=F[3],F[3]=F[12],F[12]=q,q=F[7],F[7]=F[13],F[13]=q,q=F[11],F[11]=F[14],F[14]=q,this}setPosition(F,q,le){const De=this.elements;return F.isVector3?(De[12]=F.x,De[13]=F.y,De[14]=F.z):(De[12]=F,De[13]=q,De[14]=le),this}invert(){const F=this.elements,q=F[0],le=F[1],De=F[2],Ze=F[3],G=F[4],U=F[5],e=F[6],g=F[7],C=F[8],i=F[9],S=F[10],x=F[11],v=F[12],p=F[13],r=F[14],t=F[15],a=i*r*g-p*S*g+p*e*x-U*r*x-i*e*t+U*S*t,n=v*S*g-C*r*g-v*e*x+G*r*x+C*e*t-G*S*t,f=C*p*g-v*i*g+v*U*x-G*p*x-C*U*t+G*i*t,c=v*i*e-C*p*e-v*U*S+G*p*S+C*U*r-G*i*r,l=q*a+le*n+De*f+Ze*c;if(l===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const m=1/l;return F[0]=a*m,F[1]=(p*S*Ze-i*r*Ze-p*De*x+le*r*x+i*De*t-le*S*t)*m,F[2]=(U*r*Ze-p*e*Ze+p*De*g-le*r*g-U*De*t+le*e*t)*m,F[3]=(i*e*Ze-U*S*Ze-i*De*g+le*S*g+U*De*x-le*e*x)*m,F[4]=n*m,F[5]=(C*r*Ze-v*S*Ze+v*De*x-q*r*x-C*De*t+q*S*t)*m,F[6]=(v*e*Ze-G*r*Ze-v*De*g+q*r*g+G*De*t-q*e*t)*m,F[7]=(G*S*Ze-C*e*Ze+C*De*g-q*S*g-G*De*x+q*e*x)*m,F[8]=f*m,F[9]=(v*i*Ze-C*p*Ze-v*le*x+q*p*x+C*le*t-q*i*t)*m,F[10]=(G*p*Ze-v*U*Ze+v*le*g-q*p*g-G*le*t+q*U*t)*m,F[11]=(C*U*Ze-G*i*Ze-C*le*g+q*i*g+G*le*x-q*U*x)*m,F[12]=c*m,F[13]=(C*p*De-v*i*De+v*le*S-q*p*S-C*le*r+q*i*r)*m,F[14]=(v*U*De-G*p*De-v*le*e+q*p*e+G*le*r-q*U*r)*m,F[15]=(G*i*De-C*U*De+C*le*e-q*i*e-G*le*S+q*U*S)*m,this}scale(F){const q=this.elements,le=F.x,De=F.y,Ze=F.z;return q[0]*=le,q[4]*=De,q[8]*=Ze,q[1]*=le,q[5]*=De,q[9]*=Ze,q[2]*=le,q[6]*=De,q[10]*=Ze,q[3]*=le,q[7]*=De,q[11]*=Ze,this}getMaxScaleOnAxis(){const F=this.elements,q=F[0]*F[0]+F[1]*F[1]+F[2]*F[2],le=F[4]*F[4]+F[5]*F[5]+F[6]*F[6],De=F[8]*F[8]+F[9]*F[9]+F[10]*F[10];return Math.sqrt(Math.max(q,le,De))}makeTranslation(F,q,le){return F.isVector3?this.set(1,0,0,F.x,0,1,0,F.y,0,0,1,F.z,0,0,0,1):this.set(1,0,0,F,0,1,0,q,0,0,1,le,0,0,0,1),this}makeRotationX(F){const q=Math.cos(F),le=Math.sin(F);return this.set(1,0,0,0,0,q,-le,0,0,le,q,0,0,0,0,1),this}makeRotationY(F){const q=Math.cos(F),le=Math.sin(F);return this.set(q,0,le,0,0,1,0,0,-le,0,q,0,0,0,0,1),this}makeRotationZ(F){const q=Math.cos(F),le=Math.sin(F);return this.set(q,-le,0,0,le,q,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(F,q){const le=Math.cos(q),De=Math.sin(q),Ze=1-le,G=F.x,U=F.y,e=F.z,g=Ze*G,C=Ze*U;return this.set(g*G+le,g*U-De*e,g*e+De*U,0,g*U+De*e,C*U+le,C*e-De*G,0,g*e-De*U,C*e+De*G,Ze*e*e+le,0,0,0,0,1),this}makeScale(F,q,le){return this.set(F,0,0,0,0,q,0,0,0,0,le,0,0,0,0,1),this}makeShear(F,q,le,De,Ze,G){return this.set(1,le,Ze,0,F,1,G,0,q,De,1,0,0,0,0,1),this}compose(F,q,le){const De=this.elements,Ze=q._x,G=q._y,U=q._z,e=q._w,g=Ze+Ze,C=G+G,i=U+U,S=Ze*g,x=Ze*C,v=Ze*i,p=G*C,r=G*i,t=U*i,a=e*g,n=e*C,f=e*i,c=le.x,l=le.y,m=le.z;return De[0]=(1-(p+t))*c,De[1]=(x+f)*c,De[2]=(v-n)*c,De[3]=0,De[4]=(x-f)*l,De[5]=(1-(S+t))*l,De[6]=(r+a)*l,De[7]=0,De[8]=(v+n)*m,De[9]=(r-a)*m,De[10]=(1-(S+p))*m,De[11]=0,De[12]=F.x,De[13]=F.y,De[14]=F.z,De[15]=1,this}decompose(F,q,le){const De=this.elements;let Ze=Bh.set(De[0],De[1],De[2]).length();const G=Bh.set(De[4],De[5],De[6]).length(),U=Bh.set(De[8],De[9],De[10]).length();this.determinant()<0&&(Ze=-Ze),F.x=De[12],F.y=De[13],F.z=De[14],su.copy(this);const g=1/Ze,C=1/G,i=1/U;return su.elements[0]*=g,su.elements[1]*=g,su.elements[2]*=g,su.elements[4]*=C,su.elements[5]*=C,su.elements[6]*=C,su.elements[8]*=i,su.elements[9]*=i,su.elements[10]*=i,q.setFromRotationMatrix(su),le.x=Ze,le.y=G,le.z=U,this}makePerspective(F,q,le,De,Ze,G,U=yf){const e=this.elements,g=2*Ze/(q-F),C=2*Ze/(le-De),i=(q+F)/(q-F),S=(le+De)/(le-De);let x,v;if(U===yf)x=-(G+Ze)/(G-Ze),v=-2*G*Ze/(G-Ze);else if(U===hp)x=-G/(G-Ze),v=-G*Ze/(G-Ze);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+U);return e[0]=g,e[4]=0,e[8]=i,e[12]=0,e[1]=0,e[5]=C,e[9]=S,e[13]=0,e[2]=0,e[6]=0,e[10]=x,e[14]=v,e[3]=0,e[7]=0,e[11]=-1,e[15]=0,this}makeOrthographic(F,q,le,De,Ze,G,U=yf){const e=this.elements,g=1/(q-F),C=1/(le-De),i=1/(G-Ze),S=(q+F)*g,x=(le+De)*C;let v,p;if(U===yf)v=(G+Ze)*i,p=-2*i;else if(U===hp)v=Ze*i,p=-1*i;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+U);return e[0]=2*g,e[4]=0,e[8]=0,e[12]=-S,e[1]=0,e[5]=2*C,e[9]=0,e[13]=-x,e[2]=0,e[6]=0,e[10]=p,e[14]=-v,e[3]=0,e[7]=0,e[11]=0,e[15]=1,this}equals(F){const q=this.elements,le=F.elements;for(let De=0;De<16;De++)if(q[De]!==le[De])return!1;return!0}fromArray(F,q=0){for(let le=0;le<16;le++)this.elements[le]=F[le+q];return this}toArray(F=[],q=0){const le=this.elements;return F[q]=le[0],F[q+1]=le[1],F[q+2]=le[2],F[q+3]=le[3],F[q+4]=le[4],F[q+5]=le[5],F[q+6]=le[6],F[q+7]=le[7],F[q+8]=le[8],F[q+9]=le[9],F[q+10]=le[10],F[q+11]=le[11],F[q+12]=le[12],F[q+13]=le[13],F[q+14]=le[14],F[q+15]=le[15],F}}const Bh=new bn,su=new so,p2=new bn(0,0,0),g2=new bn(1,1,1),oc=new bn,Od=new bn,il=new bn,Gm=new so,Wm=new ku;class Ss{constructor(F=0,q=0,le=0,De=Ss.DEFAULT_ORDER){this.isEuler=!0,this._x=F,this._y=q,this._z=le,this._order=De}get x(){return this._x}set x(F){this._x=F,this._onChangeCallback()}get y(){return this._y}set y(F){this._y=F,this._onChangeCallback()}get z(){return this._z}set z(F){this._z=F,this._onChangeCallback()}get order(){return this._order}set order(F){this._order=F,this._onChangeCallback()}set(F,q,le,De=this._order){return this._x=F,this._y=q,this._z=le,this._order=De,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(F){return this._x=F._x,this._y=F._y,this._z=F._z,this._order=F._order,this._onChangeCallback(),this}setFromRotationMatrix(F,q=this._order,le=!0){const De=F.elements,Ze=De[0],G=De[4],U=De[8],e=De[1],g=De[5],C=De[9],i=De[2],S=De[6],x=De[10];switch(q){case"XYZ":this._y=Math.asin(hs(U,-1,1)),Math.abs(U)<.9999999?(this._x=Math.atan2(-C,x),this._z=Math.atan2(-G,Ze)):(this._x=Math.atan2(S,g),this._z=0);break;case"YXZ":this._x=Math.asin(-hs(C,-1,1)),Math.abs(C)<.9999999?(this._y=Math.atan2(U,x),this._z=Math.atan2(e,g)):(this._y=Math.atan2(-i,Ze),this._z=0);break;case"ZXY":this._x=Math.asin(hs(S,-1,1)),Math.abs(S)<.9999999?(this._y=Math.atan2(-i,x),this._z=Math.atan2(-G,g)):(this._y=0,this._z=Math.atan2(e,Ze));break;case"ZYX":this._y=Math.asin(-hs(i,-1,1)),Math.abs(i)<.9999999?(this._x=Math.atan2(S,x),this._z=Math.atan2(e,Ze)):(this._x=0,this._z=Math.atan2(-G,g));break;case"YZX":this._z=Math.asin(hs(e,-1,1)),Math.abs(e)<.9999999?(this._x=Math.atan2(-C,g),this._y=Math.atan2(-i,Ze)):(this._x=0,this._y=Math.atan2(U,x));break;case"XZY":this._z=Math.asin(-hs(G,-1,1)),Math.abs(G)<.9999999?(this._x=Math.atan2(S,g),this._y=Math.atan2(U,Ze)):(this._x=Math.atan2(-C,x),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+q)}return this._order=q,le===!0&&this._onChangeCallback(),this}setFromQuaternion(F,q,le){return Gm.makeRotationFromQuaternion(F),this.setFromRotationMatrix(Gm,q,le)}setFromVector3(F,q=this._order){return this.set(F.x,F.y,F.z,q)}reorder(F){return Wm.setFromEuler(this),this.setFromQuaternion(Wm,F)}equals(F){return F._x===this._x&&F._y===this._y&&F._z===this._z&&F._order===this._order}fromArray(F){return this._x=F[0],this._y=F[1],this._z=F[2],F[3]!==void 0&&(this._order=F[3]),this._onChangeCallback(),this}toArray(F=[],q=0){return F[q]=this._x,F[q+1]=this._y,F[q+2]=this._z,F[q+3]=this._order,F}_onChange(F){return this._onChangeCallback=F,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Ss.DEFAULT_ORDER="XYZ";class j0{constructor(){this.mask=1}set(F){this.mask=(1<>>0}enable(F){this.mask|=1<1){for(let q=0;q1){for(let le=0;le0&&(De.userData=this.userData),De.layers=this.layers.mask,De.matrix=this.matrix.toArray(),De.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(De.matrixAutoUpdate=!1),this.isInstancedMesh&&(De.type="InstancedMesh",De.count=this.count,De.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(De.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(De.type="BatchedMesh",De.perObjectFrustumCulled=this.perObjectFrustumCulled,De.sortObjects=this.sortObjects,De.drawRanges=this._drawRanges,De.reservedRanges=this._reservedRanges,De.visibility=this._visibility,De.active=this._active,De.bounds=this._bounds.map(U=>({boxInitialized:U.boxInitialized,boxMin:U.box.min.toArray(),boxMax:U.box.max.toArray(),sphereInitialized:U.sphereInitialized,sphereRadius:U.sphere.radius,sphereCenter:U.sphere.center.toArray()})),De.maxGeometryCount=this._maxGeometryCount,De.maxVertexCount=this._maxVertexCount,De.maxIndexCount=this._maxIndexCount,De.geometryInitialized=this._geometryInitialized,De.geometryCount=this._geometryCount,De.matricesTexture=this._matricesTexture.toJSON(F),this.boundingSphere!==null&&(De.boundingSphere={center:De.boundingSphere.center.toArray(),radius:De.boundingSphere.radius}),this.boundingBox!==null&&(De.boundingBox={min:De.boundingBox.min.toArray(),max:De.boundingBox.max.toArray()}));function Ze(U,e){return U[e.uuid]===void 0&&(U[e.uuid]=e.toJSON(F)),e.uuid}if(this.isScene)this.background&&(this.background.isColor?De.background=this.background.toJSON():this.background.isTexture&&(De.background=this.background.toJSON(F).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(De.environment=this.environment.toJSON(F).uuid);else if(this.isMesh||this.isLine||this.isPoints){De.geometry=Ze(F.geometries,this.geometry);const U=this.geometry.parameters;if(U!==void 0&&U.shapes!==void 0){const e=U.shapes;if(Array.isArray(e))for(let g=0,C=e.length;g0){De.children=[];for(let U=0;U0){De.animations=[];for(let U=0;U0&&(le.geometries=U),e.length>0&&(le.materials=e),g.length>0&&(le.textures=g),C.length>0&&(le.images=C),i.length>0&&(le.shapes=i),S.length>0&&(le.skeletons=S),x.length>0&&(le.animations=x),v.length>0&&(le.nodes=v)}return le.object=De,le;function G(U){const e=[];for(const g in U){const C=U[g];delete C.metadata,e.push(C)}return e}}clone(F){return new this.constructor().copy(this,F)}copy(F,q=!0){if(this.name=F.name,this.up.copy(F.up),this.position.copy(F.position),this.rotation.order=F.rotation.order,this.quaternion.copy(F.quaternion),this.scale.copy(F.scale),this.matrix.copy(F.matrix),this.matrixWorld.copy(F.matrixWorld),this.matrixAutoUpdate=F.matrixAutoUpdate,this.matrixWorldAutoUpdate=F.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=F.matrixWorldNeedsUpdate,this.layers.mask=F.layers.mask,this.visible=F.visible,this.castShadow=F.castShadow,this.receiveShadow=F.receiveShadow,this.frustumCulled=F.frustumCulled,this.renderOrder=F.renderOrder,this.animations=F.animations.slice(),this.userData=JSON.parse(JSON.stringify(F.userData)),q===!0)for(let le=0;le0?De.multiplyScalar(1/Math.sqrt(Ze)):De.set(0,0,0)}static getBarycoord(F,q,le,De,Ze){lu.subVectors(De,q),df.subVectors(le,q),p0.subVectors(F,q);const G=lu.dot(lu),U=lu.dot(df),e=lu.dot(p0),g=df.dot(df),C=df.dot(p0),i=G*g-U*U;if(i===0)return Ze.set(0,0,0),null;const S=1/i,x=(g*e-U*C)*S,v=(G*C-U*e)*S;return Ze.set(1-x-v,v,x)}static containsPoint(F,q,le,De){return this.getBarycoord(F,q,le,De,pf)===null?!1:pf.x>=0&&pf.y>=0&&pf.x+pf.y<=1}static getInterpolation(F,q,le,De,Ze,G,U,e){return this.getBarycoord(F,q,le,De,pf)===null?(e.x=0,e.y=0,"z"in e&&(e.z=0),"w"in e&&(e.w=0),null):(e.setScalar(0),e.addScaledVector(Ze,pf.x),e.addScaledVector(G,pf.y),e.addScaledVector(U,pf.z),e)}static isFrontFacing(F,q,le,De){return lu.subVectors(le,q),df.subVectors(F,q),lu.cross(df).dot(De)<0}set(F,q,le){return this.a.copy(F),this.b.copy(q),this.c.copy(le),this}setFromPointsAndIndices(F,q,le,De){return this.a.copy(F[q]),this.b.copy(F[le]),this.c.copy(F[De]),this}setFromAttributeAndIndices(F,q,le,De){return this.a.fromBufferAttribute(F,q),this.b.fromBufferAttribute(F,le),this.c.fromBufferAttribute(F,De),this}clone(){return new this.constructor().copy(this)}copy(F){return this.a.copy(F.a),this.b.copy(F.b),this.c.copy(F.c),this}getArea(){return lu.subVectors(this.c,this.b),df.subVectors(this.a,this.b),lu.cross(df).length()*.5}getMidpoint(F){return F.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(F){return hu.getNormal(this.a,this.b,this.c,F)}getPlane(F){return F.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(F,q){return hu.getBarycoord(F,this.a,this.b,this.c,q)}getInterpolation(F,q,le,De,Ze){return hu.getInterpolation(F,this.a,this.b,this.c,q,le,De,Ze)}containsPoint(F){return hu.containsPoint(F,this.a,this.b,this.c)}isFrontFacing(F){return hu.isFrontFacing(this.a,this.b,this.c,F)}intersectsBox(F){return F.intersectsTriangle(this)}closestPointToPoint(F,q){const le=this.a,De=this.b,Ze=this.c;let G,U;Vh.subVectors(De,le),Gh.subVectors(Ze,le),g0.subVectors(F,le);const e=Vh.dot(g0),g=Gh.dot(g0);if(e<=0&&g<=0)return q.copy(le);m0.subVectors(F,De);const C=Vh.dot(m0),i=Gh.dot(m0);if(C>=0&&i<=C)return q.copy(De);const S=e*i-C*g;if(S<=0&&e>=0&&C<=0)return G=e/(e-C),q.copy(le).addScaledVector(Vh,G);y0.subVectors(F,Ze);const x=Vh.dot(y0),v=Gh.dot(y0);if(v>=0&&x<=v)return q.copy(Ze);const p=x*g-e*v;if(p<=0&&g>=0&&v<=0)return U=g/(g-v),q.copy(le).addScaledVector(Gh,U);const r=C*v-x*i;if(r<=0&&i-C>=0&&x-v>=0)return Jm.subVectors(Ze,De),U=(i-C)/(i-C+(x-v)),q.copy(De).addScaledVector(Jm,U);const t=1/(r+p+S);return G=p*t,U=S*t,q.copy(le).addScaledVector(Vh,G).addScaledVector(Gh,U)}equals(F){return F.a.equals(this.a)&&F.b.equals(this.b)&&F.c.equals(this.c)}}const c1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},sc={h:0,s:0,l:0},Bd={h:0,s:0,l:0};function x0(_e,F,q){return q<0&&(q+=1),q>1&&(q-=1),q<1/6?_e+(F-_e)*6*q:q<1/2?F:q<2/3?_e+(F-_e)*6*(2/3-q):_e}class da{constructor(F,q,le){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(F,q,le)}set(F,q,le){if(q===void 0&&le===void 0){const De=F;De&&De.isColor?this.copy(De):typeof De=="number"?this.setHex(De):typeof De=="string"&&this.setStyle(De)}else this.setRGB(F,q,le);return this}setScalar(F){return this.r=F,this.g=F,this.b=F,this}setHex(F,q=Iu){return F=Math.floor(F),this.r=(F>>16&255)/255,this.g=(F>>8&255)/255,this.b=(F&255)/255,Fa.toWorkingColorSpace(this,q),this}setRGB(F,q,le,De=Fa.workingColorSpace){return this.r=F,this.g=q,this.b=le,Fa.toWorkingColorSpace(this,De),this}setHSL(F,q,le,De=Fa.workingColorSpace){if(F=Z0(F,1),q=hs(q,0,1),le=hs(le,0,1),q===0)this.r=this.g=this.b=le;else{const Ze=le<=.5?le*(1+q):le+q-le*q,G=2*le-Ze;this.r=x0(G,Ze,F+1/3),this.g=x0(G,Ze,F),this.b=x0(G,Ze,F-1/3)}return Fa.toWorkingColorSpace(this,De),this}setStyle(F,q=Iu){function le(Ze){Ze!==void 0&&parseFloat(Ze)<1&&console.warn("THREE.Color: Alpha component of "+F+" will be ignored.")}let De;if(De=/^(\w+)\(([^\)]*)\)/.exec(F)){let Ze;const G=De[1],U=De[2];switch(G){case"rgb":case"rgba":if(Ze=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(U))return le(Ze[4]),this.setRGB(Math.min(255,parseInt(Ze[1],10))/255,Math.min(255,parseInt(Ze[2],10))/255,Math.min(255,parseInt(Ze[3],10))/255,q);if(Ze=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(U))return le(Ze[4]),this.setRGB(Math.min(100,parseInt(Ze[1],10))/100,Math.min(100,parseInt(Ze[2],10))/100,Math.min(100,parseInt(Ze[3],10))/100,q);break;case"hsl":case"hsla":if(Ze=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(U))return le(Ze[4]),this.setHSL(parseFloat(Ze[1])/360,parseFloat(Ze[2])/100,parseFloat(Ze[3])/100,q);break;default:console.warn("THREE.Color: Unknown color model "+F)}}else if(De=/^\#([A-Fa-f\d]+)$/.exec(F)){const Ze=De[1],G=Ze.length;if(G===3)return this.setRGB(parseInt(Ze.charAt(0),16)/15,parseInt(Ze.charAt(1),16)/15,parseInt(Ze.charAt(2),16)/15,q);if(G===6)return this.setHex(parseInt(Ze,16),q);console.warn("THREE.Color: Invalid hex color "+F)}else if(F&&F.length>0)return this.setColorName(F,q);return this}setColorName(F,q=Iu){const le=c1[F.toLowerCase()];return le!==void 0?this.setHex(le,q):console.warn("THREE.Color: Unknown color "+F),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(F){return this.r=F.r,this.g=F.g,this.b=F.b,this}copySRGBToLinear(F){return this.r=av(F.r),this.g=av(F.g),this.b=av(F.b),this}copyLinearToSRGB(F){return this.r=o0(F.r),this.g=o0(F.g),this.b=o0(F.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(F=Iu){return Fa.fromWorkingColorSpace(cs.copy(this),F),Math.round(hs(cs.r*255,0,255))*65536+Math.round(hs(cs.g*255,0,255))*256+Math.round(hs(cs.b*255,0,255))}getHexString(F=Iu){return("000000"+this.getHex(F).toString(16)).slice(-6)}getHSL(F,q=Fa.workingColorSpace){Fa.fromWorkingColorSpace(cs.copy(this),q);const le=cs.r,De=cs.g,Ze=cs.b,G=Math.max(le,De,Ze),U=Math.min(le,De,Ze);let e,g;const C=(U+G)/2;if(U===G)e=0,g=0;else{const i=G-U;switch(g=C<=.5?i/(G+U):i/(2-G-U),G){case le:e=(De-Ze)/i+(De0!=F>0&&this.version++,this._alphaTest=F}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(F){if(F!==void 0)for(const q in F){const le=F[q];if(le===void 0){console.warn(`THREE.Material: parameter '${q}' has value of undefined.`);continue}const De=this[q];if(De===void 0){console.warn(`THREE.Material: '${q}' is not a property of THREE.${this.type}.`);continue}De&&De.isColor?De.set(le):De&&De.isVector3&&le&&le.isVector3?De.copy(le):this[q]=le}}toJSON(F){const q=F===void 0||typeof F=="string";q&&(F={textures:{},images:{}});const le={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};le.uuid=this.uuid,le.type=this.type,this.name!==""&&(le.name=this.name),this.color&&this.color.isColor&&(le.color=this.color.getHex()),this.roughness!==void 0&&(le.roughness=this.roughness),this.metalness!==void 0&&(le.metalness=this.metalness),this.sheen!==void 0&&(le.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(le.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(le.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(le.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(le.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(le.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(le.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(le.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(le.shininess=this.shininess),this.clearcoat!==void 0&&(le.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(le.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(le.clearcoatMap=this.clearcoatMap.toJSON(F).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(le.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(F).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(le.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(F).uuid,le.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(le.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(le.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(le.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(le.iridescenceMap=this.iridescenceMap.toJSON(F).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(le.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(F).uuid),this.anisotropy!==void 0&&(le.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(le.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(le.anisotropyMap=this.anisotropyMap.toJSON(F).uuid),this.map&&this.map.isTexture&&(le.map=this.map.toJSON(F).uuid),this.matcap&&this.matcap.isTexture&&(le.matcap=this.matcap.toJSON(F).uuid),this.alphaMap&&this.alphaMap.isTexture&&(le.alphaMap=this.alphaMap.toJSON(F).uuid),this.lightMap&&this.lightMap.isTexture&&(le.lightMap=this.lightMap.toJSON(F).uuid,le.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(le.aoMap=this.aoMap.toJSON(F).uuid,le.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(le.bumpMap=this.bumpMap.toJSON(F).uuid,le.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(le.normalMap=this.normalMap.toJSON(F).uuid,le.normalMapType=this.normalMapType,le.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(le.displacementMap=this.displacementMap.toJSON(F).uuid,le.displacementScale=this.displacementScale,le.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(le.roughnessMap=this.roughnessMap.toJSON(F).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(le.metalnessMap=this.metalnessMap.toJSON(F).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(le.emissiveMap=this.emissiveMap.toJSON(F).uuid),this.specularMap&&this.specularMap.isTexture&&(le.specularMap=this.specularMap.toJSON(F).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(le.specularIntensityMap=this.specularIntensityMap.toJSON(F).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(le.specularColorMap=this.specularColorMap.toJSON(F).uuid),this.envMap&&this.envMap.isTexture&&(le.envMap=this.envMap.toJSON(F).uuid,this.combine!==void 0&&(le.combine=this.combine)),this.envMapRotation!==void 0&&(le.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(le.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(le.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(le.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(le.gradientMap=this.gradientMap.toJSON(F).uuid),this.transmission!==void 0&&(le.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(le.transmissionMap=this.transmissionMap.toJSON(F).uuid),this.thickness!==void 0&&(le.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(le.thicknessMap=this.thicknessMap.toJSON(F).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(le.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(le.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(le.size=this.size),this.shadowSide!==null&&(le.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(le.sizeAttenuation=this.sizeAttenuation),this.blending!==nv&&(le.blending=this.blending),this.side!==gc&&(le.side=this.side),this.vertexColors===!0&&(le.vertexColors=!0),this.opacity<1&&(le.opacity=this.opacity),this.transparent===!0&&(le.transparent=!0),this.blendSrc!==F0&&(le.blendSrc=this.blendSrc),this.blendDst!==z0&&(le.blendDst=this.blendDst),this.blendEquation!==qc&&(le.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(le.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(le.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(le.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(le.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(le.blendAlpha=this.blendAlpha),this.depthFunc!==sp&&(le.depthFunc=this.depthFunc),this.depthTest===!1&&(le.depthTest=this.depthTest),this.depthWrite===!1&&(le.depthWrite=this.depthWrite),this.colorWrite===!1&&(le.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(le.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==km&&(le.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(le.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(le.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Fh&&(le.stencilFail=this.stencilFail),this.stencilZFail!==Fh&&(le.stencilZFail=this.stencilZFail),this.stencilZPass!==Fh&&(le.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(le.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(le.rotation=this.rotation),this.polygonOffset===!0&&(le.polygonOffset=!0),this.polygonOffsetFactor!==0&&(le.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(le.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(le.linewidth=this.linewidth),this.dashSize!==void 0&&(le.dashSize=this.dashSize),this.gapSize!==void 0&&(le.gapSize=this.gapSize),this.scale!==void 0&&(le.scale=this.scale),this.dithering===!0&&(le.dithering=!0),this.alphaTest>0&&(le.alphaTest=this.alphaTest),this.alphaHash===!0&&(le.alphaHash=!0),this.alphaToCoverage===!0&&(le.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(le.premultipliedAlpha=!0),this.forceSinglePass===!0&&(le.forceSinglePass=!0),this.wireframe===!0&&(le.wireframe=!0),this.wireframeLinewidth>1&&(le.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(le.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(le.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(le.flatShading=!0),this.visible===!1&&(le.visible=!1),this.toneMapped===!1&&(le.toneMapped=!1),this.fog===!1&&(le.fog=!1),Object.keys(this.userData).length>0&&(le.userData=this.userData);function De(Ze){const G=[];for(const U in Ze){const e=Ze[U];delete e.metadata,G.push(e)}return G}if(q){const Ze=De(F.textures),G=De(F.images);Ze.length>0&&(le.textures=Ze),G.length>0&&(le.images=G)}return le}clone(){return new this.constructor().copy(this)}copy(F){this.name=F.name,this.blending=F.blending,this.side=F.side,this.vertexColors=F.vertexColors,this.opacity=F.opacity,this.transparent=F.transparent,this.blendSrc=F.blendSrc,this.blendDst=F.blendDst,this.blendEquation=F.blendEquation,this.blendSrcAlpha=F.blendSrcAlpha,this.blendDstAlpha=F.blendDstAlpha,this.blendEquationAlpha=F.blendEquationAlpha,this.blendColor.copy(F.blendColor),this.blendAlpha=F.blendAlpha,this.depthFunc=F.depthFunc,this.depthTest=F.depthTest,this.depthWrite=F.depthWrite,this.stencilWriteMask=F.stencilWriteMask,this.stencilFunc=F.stencilFunc,this.stencilRef=F.stencilRef,this.stencilFuncMask=F.stencilFuncMask,this.stencilFail=F.stencilFail,this.stencilZFail=F.stencilZFail,this.stencilZPass=F.stencilZPass,this.stencilWrite=F.stencilWrite;const q=F.clippingPlanes;let le=null;if(q!==null){const De=q.length;le=new Array(De);for(let Ze=0;Ze!==De;++Ze)le[Ze]=q[Ze].clone()}return this.clippingPlanes=le,this.clipIntersection=F.clipIntersection,this.clipShadows=F.clipShadows,this.shadowSide=F.shadowSide,this.colorWrite=F.colorWrite,this.precision=F.precision,this.polygonOffset=F.polygonOffset,this.polygonOffsetFactor=F.polygonOffsetFactor,this.polygonOffsetUnits=F.polygonOffsetUnits,this.dithering=F.dithering,this.alphaTest=F.alphaTest,this.alphaHash=F.alphaHash,this.alphaToCoverage=F.alphaToCoverage,this.premultipliedAlpha=F.premultipliedAlpha,this.forceSinglePass=F.forceSinglePass,this.visible=F.visible,this.toneMapped=F.toneMapped,this.userData=JSON.parse(JSON.stringify(F.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(F){F===!0&&this.version++}}class K0 extends ah{constructor(F){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new da(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ss,this.combine=Jy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(F)}copy(F){return super.copy(F),this.color.copy(F.color),this.map=F.map,this.lightMap=F.lightMap,this.lightMapIntensity=F.lightMapIntensity,this.aoMap=F.aoMap,this.aoMapIntensity=F.aoMapIntensity,this.specularMap=F.specularMap,this.alphaMap=F.alphaMap,this.envMap=F.envMap,this.envMapRotation.copy(F.envMapRotation),this.combine=F.combine,this.reflectivity=F.reflectivity,this.refractionRatio=F.refractionRatio,this.wireframe=F.wireframe,this.wireframeLinewidth=F.wireframeLinewidth,this.wireframeLinecap=F.wireframeLinecap,this.wireframeLinejoin=F.wireframeLinejoin,this.fog=F.fog,this}}const So=new bn,Ud=new Wi;class Gs{constructor(F,q,le=!1){if(Array.isArray(F))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=F,this.itemSize=q,this.count=F!==void 0?F.length/q:0,this.normalized=le,this.usage=U0,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=cc,this.version=0}onUploadCallback(){}set needsUpdate(F){F===!0&&this.version++}get updateRange(){return l1("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(F){return this.usage=F,this}addUpdateRange(F,q){this.updateRanges.push({start:F,count:q})}clearUpdateRanges(){this.updateRanges.length=0}copy(F){return this.name=F.name,this.array=new F.array.constructor(F.array),this.itemSize=F.itemSize,this.count=F.count,this.normalized=F.normalized,this.usage=F.usage,this.gpuType=F.gpuType,this}copyAt(F,q,le){F*=this.itemSize,le*=q.itemSize;for(let De=0,Ze=this.itemSize;De0&&(F.userData=this.userData),this.parameters!==void 0){const e=this.parameters;for(const g in e)e[g]!==void 0&&(F[g]=e[g]);return F}F.data={attributes:{}};const q=this.index;q!==null&&(F.data.index={type:q.array.constructor.name,array:Array.prototype.slice.call(q.array)});const le=this.attributes;for(const e in le){const g=le[e];F.data.attributes[e]=g.toJSON(F.data)}const De={};let Ze=!1;for(const e in this.morphAttributes){const g=this.morphAttributes[e],C=[];for(let i=0,S=g.length;i0&&(De[e]=C,Ze=!0)}Ze&&(F.data.morphAttributes=De,F.data.morphTargetsRelative=this.morphTargetsRelative);const G=this.groups;G.length>0&&(F.data.groups=JSON.parse(JSON.stringify(G)));const U=this.boundingSphere;return U!==null&&(F.data.boundingSphere={center:U.center.toArray(),radius:U.radius}),F}clone(){return new this.constructor().copy(this)}copy(F){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const q={};this.name=F.name;const le=F.index;le!==null&&this.setIndex(le.clone(q));const De=F.attributes;for(const g in De){const C=De[g];this.setAttribute(g,C.clone(q))}const Ze=F.morphAttributes;for(const g in Ze){const C=[],i=Ze[g];for(let S=0,x=i.length;S0){const De=q[le[0]];if(De!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let Ze=0,G=De.length;Ze(F.far-F.near)**2))&&(Qm.copy(Ze).invert(),jc.copy(F.ray).applyMatrix4(Qm),!(le.boundingBox!==null&&jc.intersectsBox(le.boundingBox)===!1)&&this._computeIntersections(F,q,jc)))}_computeIntersections(F,q,le){let De;const Ze=this.geometry,G=this.material,U=Ze.index,e=Ze.attributes.position,g=Ze.attributes.uv,C=Ze.attributes.uv1,i=Ze.attributes.normal,S=Ze.groups,x=Ze.drawRange;if(U!==null)if(Array.isArray(G))for(let v=0,p=S.length;vq.far?null:{distance:g,point:Zd.clone(),object:_e}}function jd(_e,F,q,le,De,Ze,G,U,e,g){_e.getVertexPosition(U,Yh),_e.getVertexPosition(e,Xh),_e.getVertexPosition(g,Zh);const C=A2(_e,F,q,le,Yh,Xh,Zh,Xd);if(C){De&&(Gd.fromBufferAttribute(De,U),Wd.fromBufferAttribute(De,e),Yd.fromBufferAttribute(De,g),C.uv=hu.getInterpolation(Xd,Yh,Xh,Zh,Gd,Wd,Yd,new Wi)),Ze&&(Gd.fromBufferAttribute(Ze,U),Wd.fromBufferAttribute(Ze,e),Yd.fromBufferAttribute(Ze,g),C.uv1=hu.getInterpolation(Xd,Yh,Xh,Zh,Gd,Wd,Yd,new Wi)),G&&(qm.fromBufferAttribute(G,U),ey.fromBufferAttribute(G,e),ty.fromBufferAttribute(G,g),C.normal=hu.getInterpolation(Xd,Yh,Xh,Zh,qm,ey,ty,new bn),C.normal.dot(le.direction)>0&&C.normal.multiplyScalar(-1));const i={a:U,b:e,c:g,normal:new bn,materialIndex:0};hu.getNormal(Yh,Xh,Zh,i.normal),C.face=i}return C}class cv extends Ws{constructor(F=1,q=1,le=1,De=1,Ze=1,G=1){super(),this.type="BoxGeometry",this.parameters={width:F,height:q,depth:le,widthSegments:De,heightSegments:Ze,depthSegments:G};const U=this;De=Math.floor(De),Ze=Math.floor(Ze),G=Math.floor(G);const e=[],g=[],C=[],i=[];let S=0,x=0;v("z","y","x",-1,-1,le,q,F,G,Ze,0),v("z","y","x",1,-1,le,q,-F,G,Ze,1),v("x","z","y",1,1,F,le,q,De,G,2),v("x","z","y",1,-1,F,le,-q,De,G,3),v("x","y","z",1,-1,F,q,le,De,Ze,4),v("x","y","z",-1,-1,F,q,-le,De,Ze,5),this.setIndex(e),this.setAttribute("position",new _s(g,3)),this.setAttribute("normal",new _s(C,3)),this.setAttribute("uv",new _s(i,2));function v(p,r,t,a,n,f,c,l,m,h,b){const u=f/m,o=c/h,d=f/2,w=c/2,A=l/2,_=m+1,y=h+1;let E=0,T=0;const s=new bn;for(let L=0;L0?1:-1,C.push(s.x,s.y,s.z),i.push(z/m),i.push(1-L/h),E+=1}}for(let L=0;L0&&(q.defines=this.defines),q.vertexShader=this.vertexShader,q.fragmentShader=this.fragmentShader,q.lights=this.lights,q.clipping=this.clipping;const le={};for(const De in this.extensions)this.extensions[De]===!0&&(le[De]=!0);return Object.keys(le).length>0&&(q.extensions=le),q}}class p1 extends Bo{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new so,this.projectionMatrix=new so,this.projectionMatrixInverse=new so,this.coordinateSystem=yf}copy(F,q){return super.copy(F,q),this.matrixWorldInverse.copy(F.matrixWorldInverse),this.projectionMatrix.copy(F.projectionMatrix),this.projectionMatrixInverse.copy(F.projectionMatrixInverse),this.coordinateSystem=F.coordinateSystem,this}getWorldDirection(F){return super.getWorldDirection(F).negate()}updateMatrixWorld(F){super.updateMatrixWorld(F),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(F,q){super.updateWorldMatrix(F,q),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const lc=new bn,ry=new Wi,ny=new Wi;class uu extends p1{constructor(F=50,q=1,le=.1,De=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=F,this.zoom=1,this.near=le,this.far=De,this.focus=10,this.aspect=q,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(F,q){return super.copy(F,q),this.fov=F.fov,this.zoom=F.zoom,this.near=F.near,this.far=F.far,this.focus=F.focus,this.aspect=F.aspect,this.view=F.view===null?null:Object.assign({},F.view),this.filmGauge=F.filmGauge,this.filmOffset=F.filmOffset,this}setFocalLength(F){const q=.5*this.getFilmHeight()/F;this.fov=Jv*2*Math.atan(q),this.updateProjectionMatrix()}getFocalLength(){const F=Math.tan(Zv*.5*this.fov);return .5*this.getFilmHeight()/F}getEffectiveFOV(){return Jv*2*Math.atan(Math.tan(Zv*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(F,q,le){lc.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),q.set(lc.x,lc.y).multiplyScalar(-F/lc.z),lc.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),le.set(lc.x,lc.y).multiplyScalar(-F/lc.z)}getViewSize(F,q){return this.getViewBounds(F,ry,ny),q.subVectors(ny,ry)}setViewOffset(F,q,le,De,Ze,G){this.aspect=F/q,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=F,this.view.fullHeight=q,this.view.offsetX=le,this.view.offsetY=De,this.view.width=Ze,this.view.height=G,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const F=this.near;let q=F*Math.tan(Zv*.5*this.fov)/this.zoom,le=2*q,De=this.aspect*le,Ze=-.5*De;const G=this.view;if(this.view!==null&&this.view.enabled){const e=G.fullWidth,g=G.fullHeight;Ze+=G.offsetX*De/e,q-=G.offsetY*le/g,De*=G.width/e,le*=G.height/g}const U=this.filmOffset;U!==0&&(Ze+=F*U/this.getFilmWidth()),this.projectionMatrix.makePerspective(Ze,Ze+De,q,q-le,F,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(F){const q=super.toJSON(F);return q.object.fov=this.fov,q.object.zoom=this.zoom,q.object.near=this.near,q.object.far=this.far,q.object.focus=this.focus,q.object.aspect=this.aspect,this.view!==null&&(q.object.view=Object.assign({},this.view)),q.object.filmGauge=this.filmGauge,q.object.filmOffset=this.filmOffset,q}}const jh=-90,Kh=1;class C2 extends Bo{constructor(F,q,le){super(),this.type="CubeCamera",this.renderTarget=le,this.coordinateSystem=null,this.activeMipmapLevel=0;const De=new uu(jh,Kh,F,q);De.layers=this.layers,this.add(De);const Ze=new uu(jh,Kh,F,q);Ze.layers=this.layers,this.add(Ze);const G=new uu(jh,Kh,F,q);G.layers=this.layers,this.add(G);const U=new uu(jh,Kh,F,q);U.layers=this.layers,this.add(U);const e=new uu(jh,Kh,F,q);e.layers=this.layers,this.add(e);const g=new uu(jh,Kh,F,q);g.layers=this.layers,this.add(g)}updateCoordinateSystem(){const F=this.coordinateSystem,q=this.children.concat(),[le,De,Ze,G,U,e]=q;for(const g of q)this.remove(g);if(F===yf)le.up.set(0,1,0),le.lookAt(1,0,0),De.up.set(0,1,0),De.lookAt(-1,0,0),Ze.up.set(0,0,-1),Ze.lookAt(0,1,0),G.up.set(0,0,1),G.lookAt(0,-1,0),U.up.set(0,1,0),U.lookAt(0,0,1),e.up.set(0,1,0),e.lookAt(0,0,-1);else if(F===hp)le.up.set(0,-1,0),le.lookAt(-1,0,0),De.up.set(0,-1,0),De.lookAt(1,0,0),Ze.up.set(0,0,1),Ze.lookAt(0,1,0),G.up.set(0,0,-1),G.lookAt(0,-1,0),U.up.set(0,-1,0),U.lookAt(0,0,1),e.up.set(0,-1,0),e.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+F);for(const g of q)this.add(g),g.updateMatrixWorld()}update(F,q){this.parent===null&&this.updateMatrixWorld();const{renderTarget:le,activeMipmapLevel:De}=this;this.coordinateSystem!==F.coordinateSystem&&(this.coordinateSystem=F.coordinateSystem,this.updateCoordinateSystem());const[Ze,G,U,e,g,C]=this.children,i=F.getRenderTarget(),S=F.getActiveCubeFace(),x=F.getActiveMipmapLevel(),v=F.xr.enabled;F.xr.enabled=!1;const p=le.texture.generateMipmaps;le.texture.generateMipmaps=!1,F.setRenderTarget(le,0,De),F.render(q,Ze),F.setRenderTarget(le,1,De),F.render(q,G),F.setRenderTarget(le,2,De),F.render(q,U),F.setRenderTarget(le,3,De),F.render(q,e),F.setRenderTarget(le,4,De),F.render(q,g),le.texture.generateMipmaps=p,F.setRenderTarget(le,5,De),F.render(q,C),F.setRenderTarget(i,S,x),F.xr.enabled=v,le.texture.needsPMREMUpdate=!0}}class g1 extends Es{constructor(F,q,le,De,Ze,G,U,e,g,C){F=F!==void 0?F:[],q=q!==void 0?q:sv,super(F,q,le,De,Ze,G,U,e,g,C),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(F){this.image=F}}class L2 extends nh{constructor(F=1,q={}){super(F,F,q),this.isWebGLCubeRenderTarget=!0;const le={width:F,height:F,depth:1},De=[le,le,le,le,le,le];this.texture=new g1(De,q.mapping,q.wrapS,q.wrapT,q.magFilter,q.minFilter,q.format,q.type,q.anisotropy,q.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=q.generateMipmaps!==void 0?q.generateMipmaps:!1,this.texture.minFilter=q.minFilter!==void 0?q.minFilter:fu}fromEquirectangularTexture(F,q){this.texture.type=q.type,this.texture.colorSpace=q.colorSpace,this.texture.generateMipmaps=q.generateMipmaps,this.texture.minFilter=q.minFilter,this.texture.magFilter=q.magFilter;const le={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},De=new cv(5,5,5),Ze=new mc({name:"CubemapFromEquirect",uniforms:fv(le.uniforms),vertexShader:le.vertexShader,fragmentShader:le.fragmentShader,side:Vs,blending:hc});Ze.uniforms.tEquirect.value=q;const G=new Il(De,Ze),U=q.minFilter;return q.minFilter===rh&&(q.minFilter=fu),new C2(1,10,this).update(F,G),q.minFilter=U,G.geometry.dispose(),G.material.dispose(),this}clear(F,q,le,De){const Ze=F.getRenderTarget();for(let G=0;G<6;G++)F.setRenderTarget(this,G),F.clear(q,le,De);F.setRenderTarget(Ze)}}const T0=new bn,P2=new bn,R2=new fa;class uc{constructor(F=new bn(1,0,0),q=0){this.isPlane=!0,this.normal=F,this.constant=q}set(F,q){return this.normal.copy(F),this.constant=q,this}setComponents(F,q,le,De){return this.normal.set(F,q,le),this.constant=De,this}setFromNormalAndCoplanarPoint(F,q){return this.normal.copy(F),this.constant=-q.dot(this.normal),this}setFromCoplanarPoints(F,q,le){const De=T0.subVectors(le,q).cross(P2.subVectors(F,q)).normalize();return this.setFromNormalAndCoplanarPoint(De,F),this}copy(F){return this.normal.copy(F.normal),this.constant=F.constant,this}normalize(){const F=1/this.normal.length();return this.normal.multiplyScalar(F),this.constant*=F,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(F){return this.normal.dot(F)+this.constant}distanceToSphere(F){return this.distanceToPoint(F.center)-F.radius}projectPoint(F,q){return q.copy(F).addScaledVector(this.normal,-this.distanceToPoint(F))}intersectLine(F,q){const le=F.delta(T0),De=this.normal.dot(le);if(De===0)return this.distanceToPoint(F.start)===0?q.copy(F.start):null;const Ze=-(F.start.dot(this.normal)+this.constant)/De;return Ze<0||Ze>1?null:q.copy(F.start).addScaledVector(le,Ze)}intersectsLine(F){const q=this.distanceToPoint(F.start),le=this.distanceToPoint(F.end);return q<0&&le>0||le<0&&q>0}intersectsBox(F){return F.intersectsPlane(this)}intersectsSphere(F){return F.intersectsPlane(this)}coplanarPoint(F){return F.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(F,q){const le=q||R2.getNormalMatrix(F),De=this.coplanarPoint(T0).applyMatrix4(F),Ze=this.normal.applyMatrix3(le).normalize();return this.constant=-De.dot(Ze),this}translate(F){return this.constant-=F.dot(this.normal),this}equals(F){return F.normal.equals(this.normal)&&F.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Kc=new ed,Kd=new bn;class m1{constructor(F=new uc,q=new uc,le=new uc,De=new uc,Ze=new uc,G=new uc){this.planes=[F,q,le,De,Ze,G]}set(F,q,le,De,Ze,G){const U=this.planes;return U[0].copy(F),U[1].copy(q),U[2].copy(le),U[3].copy(De),U[4].copy(Ze),U[5].copy(G),this}copy(F){const q=this.planes;for(let le=0;le<6;le++)q[le].copy(F.planes[le]);return this}setFromProjectionMatrix(F,q=yf){const le=this.planes,De=F.elements,Ze=De[0],G=De[1],U=De[2],e=De[3],g=De[4],C=De[5],i=De[6],S=De[7],x=De[8],v=De[9],p=De[10],r=De[11],t=De[12],a=De[13],n=De[14],f=De[15];if(le[0].setComponents(e-Ze,S-g,r-x,f-t).normalize(),le[1].setComponents(e+Ze,S+g,r+x,f+t).normalize(),le[2].setComponents(e+G,S+C,r+v,f+a).normalize(),le[3].setComponents(e-G,S-C,r-v,f-a).normalize(),le[4].setComponents(e-U,S-i,r-p,f-n).normalize(),q===yf)le[5].setComponents(e+U,S+i,r+p,f+n).normalize();else if(q===hp)le[5].setComponents(U,i,p,n).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+q);return this}intersectsObject(F){if(F.boundingSphere!==void 0)F.boundingSphere===null&&F.computeBoundingSphere(),Kc.copy(F.boundingSphere).applyMatrix4(F.matrixWorld);else{const q=F.geometry;q.boundingSphere===null&&q.computeBoundingSphere(),Kc.copy(q.boundingSphere).applyMatrix4(F.matrixWorld)}return this.intersectsSphere(Kc)}intersectsSprite(F){return Kc.center.set(0,0,0),Kc.radius=.7071067811865476,Kc.applyMatrix4(F.matrixWorld),this.intersectsSphere(Kc)}intersectsSphere(F){const q=this.planes,le=F.center,De=-F.radius;for(let Ze=0;Ze<6;Ze++)if(q[Ze].distanceToPoint(le)0?F.max.x:F.min.x,Kd.y=De.normal.y>0?F.max.y:F.min.y,Kd.z=De.normal.z>0?F.max.z:F.min.z,De.distanceToPoint(Kd)<0)return!1}return!0}containsPoint(F){const q=this.planes;for(let le=0;le<6;le++)if(q[le].distanceToPoint(F)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function y1(){let _e=null,F=!1,q=null,le=null;function De(Ze,G){q(Ze,G),le=_e.requestAnimationFrame(De)}return{start:function(){F!==!0&&q!==null&&(le=_e.requestAnimationFrame(De),F=!0)},stop:function(){_e.cancelAnimationFrame(le),F=!1},setAnimationLoop:function(Ze){q=Ze},setContext:function(Ze){_e=Ze}}}function D2(_e){const F=new WeakMap;function q(U,e){const g=U.array,C=U.usage,i=g.byteLength,S=_e.createBuffer();_e.bindBuffer(e,S),_e.bufferData(e,g,C),U.onUploadCallback();let x;if(g instanceof Float32Array)x=_e.FLOAT;else if(g instanceof Uint16Array)U.isFloat16BufferAttribute?x=_e.HALF_FLOAT:x=_e.UNSIGNED_SHORT;else if(g instanceof Int16Array)x=_e.SHORT;else if(g instanceof Uint32Array)x=_e.UNSIGNED_INT;else if(g instanceof Int32Array)x=_e.INT;else if(g instanceof Int8Array)x=_e.BYTE;else if(g instanceof Uint8Array)x=_e.UNSIGNED_BYTE;else if(g instanceof Uint8ClampedArray)x=_e.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+g);return{buffer:S,type:x,bytesPerElement:g.BYTES_PER_ELEMENT,version:U.version,size:i}}function le(U,e,g){const C=e.array,i=e._updateRange,S=e.updateRanges;if(_e.bindBuffer(g,U),i.count===-1&&S.length===0&&_e.bufferSubData(g,0,C),S.length!==0){for(let x=0,v=S.length;x 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,K2=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,J2=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,Q2=`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,$2=`#if defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#elif defined( USE_COLOR ) + diffuseColor.rgb *= vColor; +#endif`,q2=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) + varying vec3 vColor; +#endif`,eT=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + varying vec3 vColor; +#endif`,tT=`#if defined( USE_COLOR_ALPHA ) + vColor = vec4( 1.0 ); +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + vColor = vec3( 1.0 ); +#endif +#ifdef USE_COLOR + vColor *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.xyz *= instanceColor.xyz; +#endif`,rT=`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +mat3 transposeMat3( const in mat3 m ) { + mat3 tmp; + tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); + tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); + tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); + return tmp; +} +float luminance( const in vec3 rgb ) { + const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 ); + return dot( weights, rgb ); +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,nT=`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,iT=`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,aT=`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,oT=`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,sT=`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,lT=`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,uT="gl_FragColor = linearToOutputTexel( gl_FragColor );",fT=` +const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( + vec3( 0.8224621, 0.177538, 0.0 ), + vec3( 0.0331941, 0.9668058, 0.0 ), + vec3( 0.0170827, 0.0723974, 0.9105199 ) +); +const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3( + vec3( 1.2249401, - 0.2249404, 0.0 ), + vec3( - 0.0420569, 1.0420571, 0.0 ), + vec3( - 0.0196376, - 0.0786361, 1.0982735 ) +); +vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) { + return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a ); +} +vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) { + return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a ); +} +vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +} +vec4 LinearToLinear( in vec4 value ) { + return value; +} +vec4 LinearTosRGB( in vec4 value ) { + return sRGBTransferOETF( value ); +}`,cT=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); + #else + vec4 envColor = vec4( 0.0 ); + #endif + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif +#endif`,hT=`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform float flipEnvMap; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif + +#endif`,vT=`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,dT=`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,pT=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,gT=`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,mT=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,yT=`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,xT=`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,bT=`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,wT=`#ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + reflectedLight.indirectDiffuse += lightMapIrradiance; +#endif`,TT=`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,AT=`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,MT=`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,ST=`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + #if defined ( LEGACY_LIGHTS ) + if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { + return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); + } + return 1.0; + #else + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; + #endif +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif`,ET=`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,_T=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,CT=`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,LT=`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,PT=`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,RT=`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,DT=`struct PhysicalMaterial { + vec3 diffuseColor; + float roughness; + vec3 specularColor; + float specularF90; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + float v = 0.5 / ( gv + gl ); + return saturate(v); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColor; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; + float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; + float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); + return saturate( DG * RECIPROCAL_PI ); +} +vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); + const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); + vec4 r = roughness * c0 + c1; + float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; + vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; + return fab; +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + vec2 fab = DFGApprox( normal, viewDir, roughness ); + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + vec2 fab = DFGApprox( normal, viewDir, roughness ); + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + #endif + vec3 singleScattering = vec3( 0.0 ); + vec3 multiScattering = vec3( 0.0 ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); + #endif + vec3 totalScattering = singleScattering + multiScattering; + vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); + reflectedLight.indirectSpecular += radiance * singleScattering; + reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; + reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,IT=` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,FT=`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,zT=`#if defined( RE_IndirectDiffuse ) + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,kT=`#if defined( USE_LOGDEPTHBUF ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,OT=`#if defined( USE_LOGDEPTHBUF ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,NT=`#ifdef USE_LOGDEPTHBUF + varying float vFragDepth; + varying float vIsPerspective; +#endif`,BT=`#ifdef USE_LOGDEPTHBUF + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,UT=`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); + + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,HT=`#ifdef USE_MAP + uniform sampler2D map; +#endif`,VT=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,GT=`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,WT=`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,YT=`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,XT=`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[MORPHTARGETS_COUNT]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,ZT=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,jT=`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } + #else + objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; + objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; + objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; + objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; + #endif +#endif`,KT=`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + #endif + #ifdef MORPHTARGETS_TEXTURE + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } + #else + #ifndef USE_MORPHNORMALS + uniform float morphTargetInfluences[ 8 ]; + #else + uniform float morphTargetInfluences[ 4 ]; + #endif + #endif +#endif`,JT=`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } + #else + transformed += morphTarget0 * morphTargetInfluences[ 0 ]; + transformed += morphTarget1 * morphTargetInfluences[ 1 ]; + transformed += morphTarget2 * morphTargetInfluences[ 2 ]; + transformed += morphTarget3 * morphTargetInfluences[ 3 ]; + #ifndef USE_MORPHNORMALS + transformed += morphTarget4 * morphTargetInfluences[ 4 ]; + transformed += morphTarget5 * morphTargetInfluences[ 5 ]; + transformed += morphTarget6 * morphTargetInfluences[ 6 ]; + transformed += morphTarget7 * morphTargetInfluences[ 7 ]; + #endif + #endif +#endif`,QT=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,$T=`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,qT=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,eA=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,tA=`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,rA=`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,nA=`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,iA=`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,aA=`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,oA=`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,sA=`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,lA=`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; +const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); +const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); +const float ShiftRight8 = 1. / 256.; +vec4 packDepthToRGBA( const in float v ) { + vec4 r = vec4( fract( v * PackFactors ), v ); + r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors ); +} +vec2 packDepthToRG( in highp float v ) { + return packDepthToRGBA( v ).yx; +} +float unpackRGToDepth( const in highp vec2 v ) { + return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) ); +} +vec4 pack2HalfToRGBA( vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + return depth * ( near - far ) - near; +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + return ( near * far ) / ( ( far - near ) * depth - far ); +}`,uA=`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,fA=`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,cA=`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,hA=`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,vA=`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,dA=`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,pA=`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { + return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); + } + vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { + return unpackRGBATo2Half( texture2D( shadow, uv ) ); + } + float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ + float occlusion = 1.0; + vec2 distribution = texture2DDistribution( shadow, uv ); + float hard_shadow = step( compare , distribution.x ); + if (hard_shadow != 1.0 ) { + float distance = compare - distribution.x ; + float variance = max( 0.00000, distribution.y * distribution.y ); + float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); + } + return occlusion; + } + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + #if defined( SHADOWMAP_TYPE_PCF ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx0 = - texelSize.x * shadowRadius; + float dy0 = - texelSize.y * shadowRadius; + float dx1 = + texelSize.x * shadowRadius; + float dy1 = + texelSize.y * shadowRadius; + float dx2 = dx0 / 2.0; + float dy2 = dy0 / 2.0; + float dx3 = dx1 / 2.0; + float dy3 = dy1 / 2.0; + shadow = ( + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) + ) * ( 1.0 / 17.0 ); + #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx = texelSize.x; + float dy = texelSize.y; + vec2 uv = shadowCoord.xy; + vec2 f = fract( uv * shadowMapSize + 0.5 ); + uv -= f * texelSize; + shadow = ( + texture2DCompare( shadowMap, uv, shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), + f.x ), + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), + f.x ), + f.y ) + ) * ( 1.0 / 9.0 ); + #elif defined( SHADOWMAP_TYPE_VSM ) + shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); + #else + shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); + #endif + } + return shadow; + } + vec2 cubeToUV( vec3 v, float texelSizeY ) { + vec3 absV = abs( v ); + float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); + absV *= scaleToCube; + v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); + vec2 planar = v.xy; + float almostATexel = 1.5 * texelSizeY; + float almostOne = 1.0 - almostATexel; + if ( absV.z >= almostOne ) { + if ( v.z > 0.0 ) + planar.x = 4.0 - v.x; + } else if ( absV.x >= almostOne ) { + float signX = sign( v.x ); + planar.x = v.z * signX + 2.0 * signX; + } else if ( absV.y >= almostOne ) { + float signY = sign( v.y ); + planar.x = v.x + 2.0 * signY + 2.0; + planar.y = v.z * signY - 2.0; + } + return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); + } + float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + + float lightToPositionLength = length( lightToPosition ); + if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { + float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); + #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) + vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; + shadow = ( + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) + ) * ( 1.0 / 9.0 ); + #else + shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); + #endif + } + return shadow; + } +#endif`,gA=`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,mA=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,yA=`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,xA=`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,bA=`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,wA=`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,TA=`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,AA=`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,MA=`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,SA=`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,EA=`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 OptimizedCineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + float startCompression = 0.8 - 0.04; + float desaturation = 0.15; + color *= toneMappingExposure; + float x = min(color.r, min(color.g, color.b)); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max(color.r, max(color.g, color.b)); + if (peak < startCompression) return color; + float d = 1. - startCompression; + float newPeak = 1. - d * d / (peak + d - startCompression); + color *= newPeak / peak; + float g = 1. - 1. / (desaturation * (peak - newPeak) + 1.); + return mix(color, newPeak * vec3(1, 1, 1), g); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,_A=`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,CA=`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + vec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,LA=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,PA=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,RA=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,DA=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`;const IA=`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,FA=`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,zA=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,kA=`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float flipEnvMap; +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,OA=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,NA=`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,BA=`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,UA=`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #endif +}`,HA=`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,VA=`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = packDepthToRGBA( dist ); +}`,GA=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,WA=`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,YA=`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,XA=`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,ZA=`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,jA=`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,KA=`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,JA=`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,QA=`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,$A=`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,qA=`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,eM=`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,tM=`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,rM=`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,nM=`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,iM=`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); + outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,aM=`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,oM=`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,sM=`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,lM=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,uM=`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,fM=`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include +}`,cM=`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); + vec2 scale; + scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); + scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,hM=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`,ua={alphahash_fragment:I2,alphahash_pars_fragment:F2,alphamap_fragment:z2,alphamap_pars_fragment:k2,alphatest_fragment:O2,alphatest_pars_fragment:N2,aomap_fragment:B2,aomap_pars_fragment:U2,batching_pars_vertex:H2,batching_vertex:V2,begin_vertex:G2,beginnormal_vertex:W2,bsdfs:Y2,iridescence_fragment:X2,bumpmap_pars_fragment:Z2,clipping_planes_fragment:j2,clipping_planes_pars_fragment:K2,clipping_planes_pars_vertex:J2,clipping_planes_vertex:Q2,color_fragment:$2,color_pars_fragment:q2,color_pars_vertex:eT,color_vertex:tT,common:rT,cube_uv_reflection_fragment:nT,defaultnormal_vertex:iT,displacementmap_pars_vertex:aT,displacementmap_vertex:oT,emissivemap_fragment:sT,emissivemap_pars_fragment:lT,colorspace_fragment:uT,colorspace_pars_fragment:fT,envmap_fragment:cT,envmap_common_pars_fragment:hT,envmap_pars_fragment:vT,envmap_pars_vertex:dT,envmap_physical_pars_fragment:ET,envmap_vertex:pT,fog_vertex:gT,fog_pars_vertex:mT,fog_fragment:yT,fog_pars_fragment:xT,gradientmap_pars_fragment:bT,lightmap_fragment:wT,lightmap_pars_fragment:TT,lights_lambert_fragment:AT,lights_lambert_pars_fragment:MT,lights_pars_begin:ST,lights_toon_fragment:_T,lights_toon_pars_fragment:CT,lights_phong_fragment:LT,lights_phong_pars_fragment:PT,lights_physical_fragment:RT,lights_physical_pars_fragment:DT,lights_fragment_begin:IT,lights_fragment_maps:FT,lights_fragment_end:zT,logdepthbuf_fragment:kT,logdepthbuf_pars_fragment:OT,logdepthbuf_pars_vertex:NT,logdepthbuf_vertex:BT,map_fragment:UT,map_pars_fragment:HT,map_particle_fragment:VT,map_particle_pars_fragment:GT,metalnessmap_fragment:WT,metalnessmap_pars_fragment:YT,morphinstance_vertex:XT,morphcolor_vertex:ZT,morphnormal_vertex:jT,morphtarget_pars_vertex:KT,morphtarget_vertex:JT,normal_fragment_begin:QT,normal_fragment_maps:$T,normal_pars_fragment:qT,normal_pars_vertex:eA,normal_vertex:tA,normalmap_pars_fragment:rA,clearcoat_normal_fragment_begin:nA,clearcoat_normal_fragment_maps:iA,clearcoat_pars_fragment:aA,iridescence_pars_fragment:oA,opaque_fragment:sA,packing:lA,premultiplied_alpha_fragment:uA,project_vertex:fA,dithering_fragment:cA,dithering_pars_fragment:hA,roughnessmap_fragment:vA,roughnessmap_pars_fragment:dA,shadowmap_pars_fragment:pA,shadowmap_pars_vertex:gA,shadowmap_vertex:mA,shadowmask_pars_fragment:yA,skinbase_vertex:xA,skinning_pars_vertex:bA,skinning_vertex:wA,skinnormal_vertex:TA,specularmap_fragment:AA,specularmap_pars_fragment:MA,tonemapping_fragment:SA,tonemapping_pars_fragment:EA,transmission_fragment:_A,transmission_pars_fragment:CA,uv_pars_fragment:LA,uv_pars_vertex:PA,uv_vertex:RA,worldpos_vertex:DA,background_vert:IA,background_frag:FA,backgroundCube_vert:zA,backgroundCube_frag:kA,cube_vert:OA,cube_frag:NA,depth_vert:BA,depth_frag:UA,distanceRGBA_vert:HA,distanceRGBA_frag:VA,equirect_vert:GA,equirect_frag:WA,linedashed_vert:YA,linedashed_frag:XA,meshbasic_vert:ZA,meshbasic_frag:jA,meshlambert_vert:KA,meshlambert_frag:JA,meshmatcap_vert:QA,meshmatcap_frag:$A,meshnormal_vert:qA,meshnormal_frag:eM,meshphong_vert:tM,meshphong_frag:rM,meshphysical_vert:nM,meshphysical_frag:iM,meshtoon_vert:aM,meshtoon_frag:oM,points_vert:sM,points_frag:lM,shadow_vert:uM,shadow_frag:fM,sprite_vert:cM,sprite_frag:hM},_i={common:{diffuse:{value:new da(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new fa},alphaMap:{value:null},alphaMapTransform:{value:new fa},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new fa}},envmap:{envMap:{value:null},envMapRotation:{value:new fa},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new fa}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new fa}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new fa},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new fa},normalScale:{value:new Wi(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new fa},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new fa}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new fa}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new fa}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new da(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new da(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new fa},alphaTest:{value:0},uvTransform:{value:new fa}},sprite:{diffuse:{value:new da(16777215)},opacity:{value:1},center:{value:new Wi(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new fa},alphaMap:{value:null},alphaMapTransform:{value:new fa},alphaTest:{value:0}}},Fu={basic:{uniforms:Ms([_i.common,_i.specularmap,_i.envmap,_i.aomap,_i.lightmap,_i.fog]),vertexShader:ua.meshbasic_vert,fragmentShader:ua.meshbasic_frag},lambert:{uniforms:Ms([_i.common,_i.specularmap,_i.envmap,_i.aomap,_i.lightmap,_i.emissivemap,_i.bumpmap,_i.normalmap,_i.displacementmap,_i.fog,_i.lights,{emissive:{value:new da(0)}}]),vertexShader:ua.meshlambert_vert,fragmentShader:ua.meshlambert_frag},phong:{uniforms:Ms([_i.common,_i.specularmap,_i.envmap,_i.aomap,_i.lightmap,_i.emissivemap,_i.bumpmap,_i.normalmap,_i.displacementmap,_i.fog,_i.lights,{emissive:{value:new da(0)},specular:{value:new da(1118481)},shininess:{value:30}}]),vertexShader:ua.meshphong_vert,fragmentShader:ua.meshphong_frag},standard:{uniforms:Ms([_i.common,_i.envmap,_i.aomap,_i.lightmap,_i.emissivemap,_i.bumpmap,_i.normalmap,_i.displacementmap,_i.roughnessmap,_i.metalnessmap,_i.fog,_i.lights,{emissive:{value:new da(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ua.meshphysical_vert,fragmentShader:ua.meshphysical_frag},toon:{uniforms:Ms([_i.common,_i.aomap,_i.lightmap,_i.emissivemap,_i.bumpmap,_i.normalmap,_i.displacementmap,_i.gradientmap,_i.fog,_i.lights,{emissive:{value:new da(0)}}]),vertexShader:ua.meshtoon_vert,fragmentShader:ua.meshtoon_frag},matcap:{uniforms:Ms([_i.common,_i.bumpmap,_i.normalmap,_i.displacementmap,_i.fog,{matcap:{value:null}}]),vertexShader:ua.meshmatcap_vert,fragmentShader:ua.meshmatcap_frag},points:{uniforms:Ms([_i.points,_i.fog]),vertexShader:ua.points_vert,fragmentShader:ua.points_frag},dashed:{uniforms:Ms([_i.common,_i.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ua.linedashed_vert,fragmentShader:ua.linedashed_frag},depth:{uniforms:Ms([_i.common,_i.displacementmap]),vertexShader:ua.depth_vert,fragmentShader:ua.depth_frag},normal:{uniforms:Ms([_i.common,_i.bumpmap,_i.normalmap,_i.displacementmap,{opacity:{value:1}}]),vertexShader:ua.meshnormal_vert,fragmentShader:ua.meshnormal_frag},sprite:{uniforms:Ms([_i.sprite,_i.fog]),vertexShader:ua.sprite_vert,fragmentShader:ua.sprite_frag},background:{uniforms:{uvTransform:{value:new fa},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ua.background_vert,fragmentShader:ua.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new fa}},vertexShader:ua.backgroundCube_vert,fragmentShader:ua.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ua.cube_vert,fragmentShader:ua.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ua.equirect_vert,fragmentShader:ua.equirect_frag},distanceRGBA:{uniforms:Ms([_i.common,_i.displacementmap,{referencePosition:{value:new bn},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ua.distanceRGBA_vert,fragmentShader:ua.distanceRGBA_frag},shadow:{uniforms:Ms([_i.lights,_i.fog,{color:{value:new da(0)},opacity:{value:1}}]),vertexShader:ua.shadow_vert,fragmentShader:ua.shadow_frag}};Fu.physical={uniforms:Ms([Fu.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new fa},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new fa},clearcoatNormalScale:{value:new Wi(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new fa},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new fa},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new fa},sheen:{value:0},sheenColor:{value:new da(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new fa},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new fa},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new fa},transmissionSamplerSize:{value:new Wi},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new fa},attenuationDistance:{value:0},attenuationColor:{value:new da(0)},specularColor:{value:new da(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new fa},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new fa},anisotropyVector:{value:new Wi},anisotropyMap:{value:null},anisotropyMapTransform:{value:new fa}}]),vertexShader:ua.meshphysical_vert,fragmentShader:ua.meshphysical_frag};const Jd={r:0,b:0,g:0},Jc=new Ss,vM=new so;function dM(_e,F,q,le,De,Ze,G){const U=new da(0);let e=Ze===!0?0:1,g,C,i=null,S=0,x=null;function v(r,t){let a=!1,n=t.isScene===!0?t.background:null;n&&n.isTexture&&(n=(t.backgroundBlurriness>0?q:F).get(n)),n===null?p(U,e):n&&n.isColor&&(p(n,1),a=!0);const f=_e.xr.getEnvironmentBlendMode();f==="additive"?le.buffers.color.setClear(0,0,0,1,G):f==="alpha-blend"&&le.buffers.color.setClear(0,0,0,0,G),(_e.autoClear||a)&&_e.clear(_e.autoClearColor,_e.autoClearDepth,_e.autoClearStencil),n&&(n.isCubeTexture||n.mapping===pp)?(C===void 0&&(C=new Il(new cv(1,1,1),new mc({name:"BackgroundCubeMaterial",uniforms:fv(Fu.backgroundCube.uniforms),vertexShader:Fu.backgroundCube.vertexShader,fragmentShader:Fu.backgroundCube.fragmentShader,side:Vs,depthTest:!1,depthWrite:!1,fog:!1})),C.geometry.deleteAttribute("normal"),C.geometry.deleteAttribute("uv"),C.onBeforeRender=function(c,l,m){this.matrixWorld.copyPosition(m.matrixWorld)},Object.defineProperty(C.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),De.update(C)),Jc.copy(t.backgroundRotation),Jc.x*=-1,Jc.y*=-1,Jc.z*=-1,n.isCubeTexture&&n.isRenderTargetTexture===!1&&(Jc.y*=-1,Jc.z*=-1),C.material.uniforms.envMap.value=n,C.material.uniforms.flipEnvMap.value=n.isCubeTexture&&n.isRenderTargetTexture===!1?-1:1,C.material.uniforms.backgroundBlurriness.value=t.backgroundBlurriness,C.material.uniforms.backgroundIntensity.value=t.backgroundIntensity,C.material.uniforms.backgroundRotation.value.setFromMatrix4(vM.makeRotationFromEuler(Jc)),C.material.toneMapped=Fa.getTransfer(n.colorSpace)!==Ya,(i!==n||S!==n.version||x!==_e.toneMapping)&&(C.material.needsUpdate=!0,i=n,S=n.version,x=_e.toneMapping),C.layers.enableAll(),r.unshift(C,C.geometry,C.material,0,0,null)):n&&n.isTexture&&(g===void 0&&(g=new Il(new mp(2,2),new mc({name:"BackgroundMaterial",uniforms:fv(Fu.background.uniforms),vertexShader:Fu.background.vertexShader,fragmentShader:Fu.background.fragmentShader,side:gc,depthTest:!1,depthWrite:!1,fog:!1})),g.geometry.deleteAttribute("normal"),Object.defineProperty(g.material,"map",{get:function(){return this.uniforms.t2D.value}}),De.update(g)),g.material.uniforms.t2D.value=n,g.material.uniforms.backgroundIntensity.value=t.backgroundIntensity,g.material.toneMapped=Fa.getTransfer(n.colorSpace)!==Ya,n.matrixAutoUpdate===!0&&n.updateMatrix(),g.material.uniforms.uvTransform.value.copy(n.matrix),(i!==n||S!==n.version||x!==_e.toneMapping)&&(g.material.needsUpdate=!0,i=n,S=n.version,x=_e.toneMapping),g.layers.enableAll(),r.unshift(g,g.geometry,g.material,0,0,null))}function p(r,t){r.getRGB(Jd,d1(_e)),le.buffers.color.setClear(Jd.r,Jd.g,Jd.b,t,G)}return{getClearColor:function(){return U},setClearColor:function(r,t=1){U.set(r),e=t,p(U,e)},getClearAlpha:function(){return e},setClearAlpha:function(r){e=r,p(U,e)},render:v}}function pM(_e,F){const q=_e.getParameter(_e.MAX_VERTEX_ATTRIBS),le={},De=S(null);let Ze=De,G=!1;function U(u,o,d,w,A){let _=!1;const y=i(w,d,o);Ze!==y&&(Ze=y,g(Ze.object)),_=x(u,w,d,A),_&&v(u,w,d,A),A!==null&&F.update(A,_e.ELEMENT_ARRAY_BUFFER),(_||G)&&(G=!1,f(u,o,d,w),A!==null&&_e.bindBuffer(_e.ELEMENT_ARRAY_BUFFER,F.get(A).buffer))}function e(){return _e.createVertexArray()}function g(u){return _e.bindVertexArray(u)}function C(u){return _e.deleteVertexArray(u)}function i(u,o,d){const w=d.wireframe===!0;let A=le[u.id];A===void 0&&(A={},le[u.id]=A);let _=A[o.id];_===void 0&&(_={},A[o.id]=_);let y=_[w];return y===void 0&&(y=S(e()),_[w]=y),y}function S(u){const o=[],d=[],w=[];for(let A=0;A=0){const L=A[T];let M=_[T];if(M===void 0&&(T==="instanceMatrix"&&u.instanceMatrix&&(M=u.instanceMatrix),T==="instanceColor"&&u.instanceColor&&(M=u.instanceColor)),L===void 0||L.attribute!==M||M&&L.data!==M.data)return!0;y++}return Ze.attributesNum!==y||Ze.index!==w}function v(u,o,d,w){const A={},_=o.attributes;let y=0;const E=d.getAttributes();for(const T in E)if(E[T].location>=0){let L=_[T];L===void 0&&(T==="instanceMatrix"&&u.instanceMatrix&&(L=u.instanceMatrix),T==="instanceColor"&&u.instanceColor&&(L=u.instanceColor));const M={};M.attribute=L,L&&L.data&&(M.data=L.data),A[T]=M,y++}Ze.attributes=A,Ze.attributesNum=y,Ze.index=w}function p(){const u=Ze.newAttributes;for(let o=0,d=u.length;o=0){let s=A[E];if(s===void 0&&(E==="instanceMatrix"&&u.instanceMatrix&&(s=u.instanceMatrix),E==="instanceColor"&&u.instanceColor&&(s=u.instanceColor)),s!==void 0){const L=s.normalized,M=s.itemSize,z=F.get(s);if(z===void 0)continue;const D=z.buffer,N=z.type,I=z.bytesPerElement,k=N===_e.INT||N===_e.UNSIGNED_INT||s.gpuType===qy;if(s.isInterleavedBufferAttribute){const B=s.data,O=B.stride,H=s.offset;if(B.isInstancedInterleavedBuffer){for(let Y=0;Y0&&_e.getShaderPrecisionFormat(_e.FRAGMENT_SHADER,_e.HIGH_FLOAT).precision>0)return"highp";n="mediump"}return n==="mediump"&&_e.getShaderPrecisionFormat(_e.VERTEX_SHADER,_e.MEDIUM_FLOAT).precision>0&&_e.getShaderPrecisionFormat(_e.FRAGMENT_SHADER,_e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let G=q.precision!==void 0?q.precision:"highp";const U=Ze(G);U!==G&&(console.warn("THREE.WebGLRenderer:",G,"not supported, using",U,"instead."),G=U);const e=q.logarithmicDepthBuffer===!0,g=_e.getParameter(_e.MAX_TEXTURE_IMAGE_UNITS),C=_e.getParameter(_e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),i=_e.getParameter(_e.MAX_TEXTURE_SIZE),S=_e.getParameter(_e.MAX_CUBE_MAP_TEXTURE_SIZE),x=_e.getParameter(_e.MAX_VERTEX_ATTRIBS),v=_e.getParameter(_e.MAX_VERTEX_UNIFORM_VECTORS),p=_e.getParameter(_e.MAX_VARYING_VECTORS),r=_e.getParameter(_e.MAX_FRAGMENT_UNIFORM_VECTORS),t=C>0,a=_e.getParameter(_e.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:De,getMaxPrecision:Ze,precision:G,logarithmicDepthBuffer:e,maxTextures:g,maxVertexTextures:C,maxTextureSize:i,maxCubemapSize:S,maxAttributes:x,maxVertexUniforms:v,maxVaryings:p,maxFragmentUniforms:r,vertexTextures:t,maxSamples:a}}function yM(_e){const F=this;let q=null,le=0,De=!1,Ze=!1;const G=new uc,U=new fa,e={value:null,needsUpdate:!1};this.uniform=e,this.numPlanes=0,this.numIntersection=0,this.init=function(i,S){const x=i.length!==0||S||le!==0||De;return De=S,le=i.length,x},this.beginShadows=function(){Ze=!0,C(null)},this.endShadows=function(){Ze=!1},this.setGlobalState=function(i,S){q=C(i,S,0)},this.setState=function(i,S,x){const v=i.clippingPlanes,p=i.clipIntersection,r=i.clipShadows,t=_e.get(i);if(!De||v===null||v.length===0||Ze&&!r)Ze?C(null):g();else{const a=Ze?0:le,n=a*4;let f=t.clippingState||null;e.value=f,f=C(v,S,n,x);for(let c=0;c!==n;++c)f[c]=q[c];t.clippingState=f,this.numIntersection=p?this.numPlanes:0,this.numPlanes+=a}};function g(){e.value!==q&&(e.value=q,e.needsUpdate=le>0),F.numPlanes=le,F.numIntersection=0}function C(i,S,x,v){const p=i!==null?i.length:0;let r=null;if(p!==0){if(r=e.value,v!==!0||r===null){const t=x+p*4,a=S.matrixWorldInverse;U.getNormalMatrix(a),(r===null||r.length0){const g=new L2(e.height);return g.fromEquirectangularTexture(_e,G),F.set(G,g),G.addEventListener("dispose",De),q(g.texture,G.mapping)}else return null}}return G}function De(G){const U=G.target;U.removeEventListener("dispose",De);const e=F.get(U);e!==void 0&&(F.delete(U),e.dispose())}function Ze(){F=new WeakMap}return{get:le,dispose:Ze}}class yp extends p1{constructor(F=-1,q=1,le=1,De=-1,Ze=.1,G=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=F,this.right=q,this.top=le,this.bottom=De,this.near=Ze,this.far=G,this.updateProjectionMatrix()}copy(F,q){return super.copy(F,q),this.left=F.left,this.right=F.right,this.top=F.top,this.bottom=F.bottom,this.near=F.near,this.far=F.far,this.zoom=F.zoom,this.view=F.view===null?null:Object.assign({},F.view),this}setViewOffset(F,q,le,De,Ze,G){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=F,this.view.fullHeight=q,this.view.offsetX=le,this.view.offsetY=De,this.view.width=Ze,this.view.height=G,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const F=(this.right-this.left)/(2*this.zoom),q=(this.top-this.bottom)/(2*this.zoom),le=(this.right+this.left)/2,De=(this.top+this.bottom)/2;let Ze=le-F,G=le+F,U=De+q,e=De-q;if(this.view!==null&&this.view.enabled){const g=(this.right-this.left)/this.view.fullWidth/this.zoom,C=(this.top-this.bottom)/this.view.fullHeight/this.zoom;Ze+=g*this.view.offsetX,G=Ze+g*this.view.width,U-=C*this.view.offsetY,e=U-C*this.view.height}this.projectionMatrix.makeOrthographic(Ze,G,U,e,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(F){const q=super.toJSON(F);return q.object.zoom=this.zoom,q.object.left=this.left,q.object.right=this.right,q.object.top=this.top,q.object.bottom=this.bottom,q.object.near=this.near,q.object.far=this.far,this.view!==null&&(q.object.view=Object.assign({},this.view)),q}}const rv=4,iy=[.125,.215,.35,.446,.526,.582],eh=20,A0=new yp,ay=new da;let M0=null,S0=0,E0=0,_0=!1;const $c=(1+Math.sqrt(5))/2,Jh=1/$c,oy=[new bn(1,1,1),new bn(-1,1,1),new bn(1,1,-1),new bn(-1,1,-1),new bn(0,$c,Jh),new bn(0,$c,-Jh),new bn(Jh,0,$c),new bn(-Jh,0,$c),new bn($c,Jh,0),new bn(-$c,Jh,0)];class sy{constructor(F){this._renderer=F,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(F,q=0,le=.1,De=100){M0=this._renderer.getRenderTarget(),S0=this._renderer.getActiveCubeFace(),E0=this._renderer.getActiveMipmapLevel(),_0=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const Ze=this._allocateTargets();return Ze.depthBuffer=!0,this._sceneToCubeUV(F,le,De,Ze),q>0&&this._blur(Ze,0,0,q),this._applyPMREM(Ze),this._cleanup(Ze),Ze}fromEquirectangular(F,q=null){return this._fromTexture(F,q)}fromCubemap(F,q=null){return this._fromTexture(F,q)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=fy(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=uy(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(F){this._lodMax=Math.floor(Math.log2(F)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let F=0;F2?n:0,n,n),C.setRenderTarget(De),p&&C.render(v,U),C.render(F,U)}v.geometry.dispose(),v.material.dispose(),C.toneMapping=S,C.autoClear=i,F.background=r}_textureToCubeUV(F,q){const le=this._renderer,De=F.mapping===sv||F.mapping===lv;De?(this._cubemapMaterial===null&&(this._cubemapMaterial=fy()),this._cubemapMaterial.uniforms.flipEnvMap.value=F.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=uy());const Ze=De?this._cubemapMaterial:this._equirectMaterial,G=new Il(this._lodPlanes[0],Ze),U=Ze.uniforms;U.envMap.value=F;const e=this._cubeSize;Qd(q,0,0,3*e,2*e),le.setRenderTarget(q),le.render(G,A0)}_applyPMREM(F){const q=this._renderer,le=q.autoClear;q.autoClear=!1;for(let De=1;Deeh&&console.warn(`sigmaRadians, ${Ze}, is too large and will clip, as it requested ${r} samples when the maximum is set to ${eh}`);const t=[];let a=0;for(let m=0;mn-rv?De-n+rv:0),l=4*(this._cubeSize-f);Qd(q,c,l,3*f,2*f),e.setRenderTarget(q),e.render(i,A0)}}function bM(_e){const F=[],q=[],le=[];let De=_e;const Ze=_e-rv+1+iy.length;for(let G=0;G_e-rv?e=iy[G-_e+rv-1]:G===0&&(e=0),le.push(e);const g=1/(U-2),C=-g,i=1+g,S=[C,C,i,C,i,i,C,C,i,i,C,i],x=6,v=6,p=3,r=2,t=1,a=new Float32Array(p*v*x),n=new Float32Array(r*v*x),f=new Float32Array(t*v*x);for(let l=0;l2?0:-1,b=[m,h,0,m+2/3,h,0,m+2/3,h+1,0,m,h,0,m+2/3,h+1,0,m,h+1,0];a.set(b,p*v*l),n.set(S,r*v*l);const u=[l,l,l,l,l,l];f.set(u,t*v*l)}const c=new Ws;c.setAttribute("position",new Gs(a,p)),c.setAttribute("uv",new Gs(n,r)),c.setAttribute("faceIndex",new Gs(f,t)),F.push(c),De>rv&&De--}return{lodPlanes:F,sizeLods:q,sigmas:le}}function ly(_e,F,q){const le=new nh(_e,F,q);return le.texture.mapping=pp,le.texture.name="PMREM.cubeUv",le.scissorTest=!0,le}function Qd(_e,F,q,le,De){_e.viewport.set(F,q,le,De),_e.scissor.set(F,q,le,De)}function wM(_e,F,q){const le=new Float32Array(eh),De=new bn(0,1,0);return new mc({name:"SphericalGaussianBlur",defines:{n:eh,CUBEUV_TEXEL_WIDTH:1/F,CUBEUV_TEXEL_HEIGHT:1/q,CUBEUV_MAX_MIP:`${_e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:le},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:De}},vertexShader:J0(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:hc,depthTest:!1,depthWrite:!1})}function uy(){return new mc({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:J0(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:hc,depthTest:!1,depthWrite:!1})}function fy(){return new mc({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:J0(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:hc,depthTest:!1,depthWrite:!1})}function J0(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}function TM(_e){let F=new WeakMap,q=null;function le(U){if(U&&U.isTexture){const e=U.mapping,g=e===k0||e===O0,C=e===sv||e===lv;if(g||C){let i=F.get(U);const S=i!==void 0?i.texture.pmremVersion:0;if(U.isRenderTargetTexture&&U.pmremVersion!==S)return q===null&&(q=new sy(_e)),i=g?q.fromEquirectangular(U,i):q.fromCubemap(U,i),i.texture.pmremVersion=U.pmremVersion,F.set(U,i),i.texture;if(i!==void 0)return i.texture;{const x=U.image;return g&&x&&x.height>0||C&&x&&De(x)?(q===null&&(q=new sy(_e)),i=g?q.fromEquirectangular(U):q.fromCubemap(U),i.texture.pmremVersion=U.pmremVersion,F.set(U,i),U.addEventListener("dispose",Ze),i.texture):null}}}return U}function De(U){let e=0;const g=6;for(let C=0;CF.maxTextureSize&&(c=Math.ceil(f/F.maxTextureSize),f=F.maxTextureSize);const l=new Float32Array(f*c*4*i),m=new f1(l,f,c,i);m.type=cc,m.needsUpdate=!0;const h=n*4;for(let u=0;u0)return _e;const De=F*q;let Ze=cy[De];if(Ze===void 0&&(Ze=new Float32Array(De),cy[De]=Ze),F!==0){le.toArray(Ze,0);for(let G=1,U=0;G!==F;++G)U+=q,_e[G].toArray(Ze,U)}return Ze}function Po(_e,F){if(_e.length!==F.length)return!1;for(let q=0,le=_e.length;q":" "} ${U}: ${q[G]}`)}return le.join(` +`)}function T4(_e){const F=Fa.getPrimaries(Fa.workingColorSpace),q=Fa.getPrimaries(_e);let le;switch(F===q?le="":F===cp&&q===fp?le="LinearDisplayP3ToLinearSRGB":F===fp&&q===cp&&(le="LinearSRGBToLinearDisplayP3"),_e){case yc:case gp:return[le,"LinearTransferOETF"];case Iu:case X0:return[le,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",_e),[le,"LinearTransferOETF"]}}function yy(_e,F,q){const le=_e.getShaderParameter(F,_e.COMPILE_STATUS),De=_e.getShaderInfoLog(F).trim();if(le&&De==="")return"";const Ze=/ERROR: 0:(\d+)/.exec(De);if(Ze){const G=parseInt(Ze[1]);return q.toUpperCase()+` + +`+De+` + +`+w4(_e.getShaderSource(F),G)}else return De}function A4(_e,F){const q=T4(F);return`vec4 ${_e}( vec4 value ) { return ${q[0]}( ${q[1]}( value ) ); }`}function M4(_e,F){let q;switch(F){case pw:q="Linear";break;case gw:q="Reinhard";break;case mw:q="OptimizedCineon";break;case yw:q="ACESFilmic";break;case bw:q="AgX";break;case ww:q="Neutral";break;case xw:q="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",F),q="Linear"}return"vec3 "+_e+"( vec3 color ) { return "+q+"ToneMapping( color ); }"}function S4(_e){return[_e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",_e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Gv).join(` +`)}function E4(_e){const F=[];for(const q in _e){const le=_e[q];le!==!1&&F.push("#define "+q+" "+le)}return F.join(` +`)}function _4(_e,F){const q={},le=_e.getProgramParameter(F,_e.ACTIVE_ATTRIBUTES);for(let De=0;De/gm;function H0(_e){return _e.replace(C4,P4)}const L4=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function P4(_e,F){let q=ua[F];if(q===void 0){const le=L4.get(F);if(le!==void 0)q=ua[le],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',F,le);else throw new Error("Can not resolve #include <"+F+">")}return H0(q)}const R4=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function wy(_e){return _e.replace(R4,D4)}function D4(_e,F,q,le){let De="";for(let Ze=parseInt(F);Ze0&&(r+=` +`),t=["#define SHADER_TYPE "+q.shaderType,"#define SHADER_NAME "+q.shaderName,v].filter(Gv).join(` +`),t.length>0&&(t+=` +`)):(r=[Ty(q),"#define SHADER_TYPE "+q.shaderType,"#define SHADER_NAME "+q.shaderName,v,q.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",q.batching?"#define USE_BATCHING":"",q.instancing?"#define USE_INSTANCING":"",q.instancingColor?"#define USE_INSTANCING_COLOR":"",q.instancingMorph?"#define USE_INSTANCING_MORPH":"",q.useFog&&q.fog?"#define USE_FOG":"",q.useFog&&q.fogExp2?"#define FOG_EXP2":"",q.map?"#define USE_MAP":"",q.envMap?"#define USE_ENVMAP":"",q.envMap?"#define "+C:"",q.lightMap?"#define USE_LIGHTMAP":"",q.aoMap?"#define USE_AOMAP":"",q.bumpMap?"#define USE_BUMPMAP":"",q.normalMap?"#define USE_NORMALMAP":"",q.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",q.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",q.displacementMap?"#define USE_DISPLACEMENTMAP":"",q.emissiveMap?"#define USE_EMISSIVEMAP":"",q.anisotropy?"#define USE_ANISOTROPY":"",q.anisotropyMap?"#define USE_ANISOTROPYMAP":"",q.clearcoatMap?"#define USE_CLEARCOATMAP":"",q.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",q.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",q.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",q.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",q.specularMap?"#define USE_SPECULARMAP":"",q.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",q.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",q.roughnessMap?"#define USE_ROUGHNESSMAP":"",q.metalnessMap?"#define USE_METALNESSMAP":"",q.alphaMap?"#define USE_ALPHAMAP":"",q.alphaHash?"#define USE_ALPHAHASH":"",q.transmission?"#define USE_TRANSMISSION":"",q.transmissionMap?"#define USE_TRANSMISSIONMAP":"",q.thicknessMap?"#define USE_THICKNESSMAP":"",q.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",q.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",q.mapUv?"#define MAP_UV "+q.mapUv:"",q.alphaMapUv?"#define ALPHAMAP_UV "+q.alphaMapUv:"",q.lightMapUv?"#define LIGHTMAP_UV "+q.lightMapUv:"",q.aoMapUv?"#define AOMAP_UV "+q.aoMapUv:"",q.emissiveMapUv?"#define EMISSIVEMAP_UV "+q.emissiveMapUv:"",q.bumpMapUv?"#define BUMPMAP_UV "+q.bumpMapUv:"",q.normalMapUv?"#define NORMALMAP_UV "+q.normalMapUv:"",q.displacementMapUv?"#define DISPLACEMENTMAP_UV "+q.displacementMapUv:"",q.metalnessMapUv?"#define METALNESSMAP_UV "+q.metalnessMapUv:"",q.roughnessMapUv?"#define ROUGHNESSMAP_UV "+q.roughnessMapUv:"",q.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+q.anisotropyMapUv:"",q.clearcoatMapUv?"#define CLEARCOATMAP_UV "+q.clearcoatMapUv:"",q.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+q.clearcoatNormalMapUv:"",q.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+q.clearcoatRoughnessMapUv:"",q.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+q.iridescenceMapUv:"",q.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+q.iridescenceThicknessMapUv:"",q.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+q.sheenColorMapUv:"",q.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+q.sheenRoughnessMapUv:"",q.specularMapUv?"#define SPECULARMAP_UV "+q.specularMapUv:"",q.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+q.specularColorMapUv:"",q.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+q.specularIntensityMapUv:"",q.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+q.transmissionMapUv:"",q.thicknessMapUv?"#define THICKNESSMAP_UV "+q.thicknessMapUv:"",q.vertexTangents&&q.flatShading===!1?"#define USE_TANGENT":"",q.vertexColors?"#define USE_COLOR":"",q.vertexAlphas?"#define USE_COLOR_ALPHA":"",q.vertexUv1s?"#define USE_UV1":"",q.vertexUv2s?"#define USE_UV2":"",q.vertexUv3s?"#define USE_UV3":"",q.pointsUvs?"#define USE_POINTS_UV":"",q.flatShading?"#define FLAT_SHADED":"",q.skinning?"#define USE_SKINNING":"",q.morphTargets?"#define USE_MORPHTARGETS":"",q.morphNormals&&q.flatShading===!1?"#define USE_MORPHNORMALS":"",q.morphColors?"#define USE_MORPHCOLORS":"",q.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE":"",q.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+q.morphTextureStride:"",q.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+q.morphTargetsCount:"",q.doubleSided?"#define DOUBLE_SIDED":"",q.flipSided?"#define FLIP_SIDED":"",q.shadowMapEnabled?"#define USE_SHADOWMAP":"",q.shadowMapEnabled?"#define "+e:"",q.sizeAttenuation?"#define USE_SIZEATTENUATION":"",q.numLightProbes>0?"#define USE_LIGHT_PROBES":"",q.useLegacyLights?"#define LEGACY_LIGHTS":"",q.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(Gv).join(` +`),t=[Ty(q),"#define SHADER_TYPE "+q.shaderType,"#define SHADER_NAME "+q.shaderName,v,q.useFog&&q.fog?"#define USE_FOG":"",q.useFog&&q.fogExp2?"#define FOG_EXP2":"",q.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",q.map?"#define USE_MAP":"",q.matcap?"#define USE_MATCAP":"",q.envMap?"#define USE_ENVMAP":"",q.envMap?"#define "+g:"",q.envMap?"#define "+C:"",q.envMap?"#define "+i:"",S?"#define CUBEUV_TEXEL_WIDTH "+S.texelWidth:"",S?"#define CUBEUV_TEXEL_HEIGHT "+S.texelHeight:"",S?"#define CUBEUV_MAX_MIP "+S.maxMip+".0":"",q.lightMap?"#define USE_LIGHTMAP":"",q.aoMap?"#define USE_AOMAP":"",q.bumpMap?"#define USE_BUMPMAP":"",q.normalMap?"#define USE_NORMALMAP":"",q.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",q.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",q.emissiveMap?"#define USE_EMISSIVEMAP":"",q.anisotropy?"#define USE_ANISOTROPY":"",q.anisotropyMap?"#define USE_ANISOTROPYMAP":"",q.clearcoat?"#define USE_CLEARCOAT":"",q.clearcoatMap?"#define USE_CLEARCOATMAP":"",q.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",q.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",q.iridescence?"#define USE_IRIDESCENCE":"",q.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",q.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",q.specularMap?"#define USE_SPECULARMAP":"",q.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",q.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",q.roughnessMap?"#define USE_ROUGHNESSMAP":"",q.metalnessMap?"#define USE_METALNESSMAP":"",q.alphaMap?"#define USE_ALPHAMAP":"",q.alphaTest?"#define USE_ALPHATEST":"",q.alphaHash?"#define USE_ALPHAHASH":"",q.sheen?"#define USE_SHEEN":"",q.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",q.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",q.transmission?"#define USE_TRANSMISSION":"",q.transmissionMap?"#define USE_TRANSMISSIONMAP":"",q.thicknessMap?"#define USE_THICKNESSMAP":"",q.vertexTangents&&q.flatShading===!1?"#define USE_TANGENT":"",q.vertexColors||q.instancingColor?"#define USE_COLOR":"",q.vertexAlphas?"#define USE_COLOR_ALPHA":"",q.vertexUv1s?"#define USE_UV1":"",q.vertexUv2s?"#define USE_UV2":"",q.vertexUv3s?"#define USE_UV3":"",q.pointsUvs?"#define USE_POINTS_UV":"",q.gradientMap?"#define USE_GRADIENTMAP":"",q.flatShading?"#define FLAT_SHADED":"",q.doubleSided?"#define DOUBLE_SIDED":"",q.flipSided?"#define FLIP_SIDED":"",q.shadowMapEnabled?"#define USE_SHADOWMAP":"",q.shadowMapEnabled?"#define "+e:"",q.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",q.numLightProbes>0?"#define USE_LIGHT_PROBES":"",q.useLegacyLights?"#define LEGACY_LIGHTS":"",q.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",q.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",q.toneMapping!==vc?"#define TONE_MAPPING":"",q.toneMapping!==vc?ua.tonemapping_pars_fragment:"",q.toneMapping!==vc?M4("toneMapping",q.toneMapping):"",q.dithering?"#define DITHERING":"",q.opaque?"#define OPAQUE":"",ua.colorspace_pars_fragment,A4("linearToOutputTexel",q.outputColorSpace),q.useDepthPacking?"#define DEPTH_PACKING "+q.depthPacking:"",` +`].filter(Gv).join(` +`)),G=H0(G),G=xy(G,q),G=by(G,q),U=H0(U),U=xy(U,q),U=by(U,q),G=wy(G),U=wy(U),q.isRawShaderMaterial!==!0&&(a=`#version 300 es +`,r=[x,"#define attribute in","#define varying out","#define texture2D texture"].join(` +`)+` +`+r,t=["#define varying in",q.glslVersion===Om?"":"layout(location = 0) out highp vec4 pc_fragColor;",q.glslVersion===Om?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`)+` +`+t);const n=a+r+G,f=a+t+U,c=my(De,De.VERTEX_SHADER,n),l=my(De,De.FRAGMENT_SHADER,f);De.attachShader(p,c),De.attachShader(p,l),q.index0AttributeName!==void 0?De.bindAttribLocation(p,0,q.index0AttributeName):q.morphTargets===!0&&De.bindAttribLocation(p,0,"position"),De.linkProgram(p);function m(o){if(_e.debug.checkShaderErrors){const d=De.getProgramInfoLog(p).trim(),w=De.getShaderInfoLog(c).trim(),A=De.getShaderInfoLog(l).trim();let _=!0,y=!0;if(De.getProgramParameter(p,De.LINK_STATUS)===!1)if(_=!1,typeof _e.debug.onShaderError=="function")_e.debug.onShaderError(De,p,c,l);else{const E=yy(De,c,"vertex"),T=yy(De,l,"fragment");console.error("THREE.WebGLProgram: Shader Error "+De.getError()+" - VALIDATE_STATUS "+De.getProgramParameter(p,De.VALIDATE_STATUS)+` + +Material Name: `+o.name+` +Material Type: `+o.type+` + +Program Info Log: `+d+` +`+E+` +`+T)}else d!==""?console.warn("THREE.WebGLProgram: Program Info Log:",d):(w===""||A==="")&&(y=!1);y&&(o.diagnostics={runnable:_,programLog:d,vertexShader:{log:w,prefix:r},fragmentShader:{log:A,prefix:t}})}De.deleteShader(c),De.deleteShader(l),h=new op(De,p),b=_4(De,p)}let h;this.getUniforms=function(){return h===void 0&&m(this),h};let b;this.getAttributes=function(){return b===void 0&&m(this),b};let u=q.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return u===!1&&(u=De.getProgramParameter(p,x4)),u},this.destroy=function(){le.releaseStatesOfProgram(this),De.deleteProgram(p),this.program=void 0},this.type=q.shaderType,this.name=q.shaderName,this.id=b4++,this.cacheKey=F,this.usedTimes=1,this.program=p,this.vertexShader=c,this.fragmentShader=l,this}let B4=0;class U4{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(F){const q=F.vertexShader,le=F.fragmentShader,De=this._getShaderStage(q),Ze=this._getShaderStage(le),G=this._getShaderCacheForMaterial(F);return G.has(De)===!1&&(G.add(De),De.usedTimes++),G.has(Ze)===!1&&(G.add(Ze),Ze.usedTimes++),this}remove(F){const q=this.materialCache.get(F);for(const le of q)le.usedTimes--,le.usedTimes===0&&this.shaderCache.delete(le.code);return this.materialCache.delete(F),this}getVertexShaderID(F){return this._getShaderStage(F.vertexShader).id}getFragmentShaderID(F){return this._getShaderStage(F.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(F){const q=this.materialCache;let le=q.get(F);return le===void 0&&(le=new Set,q.set(F,le)),le}_getShaderStage(F){const q=this.shaderCache;let le=q.get(F);return le===void 0&&(le=new H4(F),q.set(F,le)),le}}class H4{constructor(F){this.id=B4++,this.code=F,this.usedTimes=0}}function V4(_e,F,q,le,De,Ze,G){const U=new j0,e=new U4,g=new Set,C=[],i=De.logarithmicDepthBuffer,S=De.vertexTextures;let x=De.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function p(b){return g.add(b),b===0?"uv":`uv${b}`}function r(b,u,o,d,w){const A=d.fog,_=w.geometry,y=b.isMeshStandardMaterial?d.environment:null,E=(b.isMeshStandardMaterial?q:F).get(b.envMap||y),T=E&&E.mapping===pp?E.image.height:null,s=v[b.type];b.precision!==null&&(x=De.getMaxPrecision(b.precision),x!==b.precision&&console.warn("THREE.WebGLProgram.getParameters:",b.precision,"not supported, using",x,"instead."));const L=_.morphAttributes.position||_.morphAttributes.normal||_.morphAttributes.color,M=L!==void 0?L.length:0;let z=0;_.morphAttributes.position!==void 0&&(z=1),_.morphAttributes.normal!==void 0&&(z=2),_.morphAttributes.color!==void 0&&(z=3);let D,N,I,k;if(s){const St=Fu[s];D=St.vertexShader,N=St.fragmentShader}else D=b.vertexShader,N=b.fragmentShader,e.update(b),I=e.getVertexShaderID(b),k=e.getFragmentShaderID(b);const B=_e.getRenderTarget(),O=w.isInstancedMesh===!0,H=w.isBatchedMesh===!0,Y=!!b.map,j=!!b.matcap,te=!!E,ie=!!b.aoMap,ue=!!b.lightMap,J=!!b.bumpMap,X=!!b.normalMap,ee=!!b.displacementMap,V=!!b.emissiveMap,Q=!!b.metalnessMap,oe=!!b.roughnessMap,$=b.anisotropy>0,Z=b.clearcoat>0,se=b.iridescence>0,ne=b.sheen>0,ce=b.transmission>0,ge=$&&!!b.anisotropyMap,Te=Z&&!!b.clearcoatMap,we=Z&&!!b.clearcoatNormalMap,Re=Z&&!!b.clearcoatRoughnessMap,be=se&&!!b.iridescenceMap,Ae=se&&!!b.iridescenceThicknessMap,me=ne&&!!b.sheenColorMap,Le=ne&&!!b.sheenRoughnessMap,He=!!b.specularMap,Ue=!!b.specularColorMap,ke=!!b.specularIntensityMap,Ve=ce&&!!b.transmissionMap,Ie=ce&&!!b.thicknessMap,rt=!!b.gradientMap,Ke=!!b.alphaMap,$e=b.alphaTest>0,lt=!!b.alphaHash,ht=!!b.extensions;let dt=vc;b.toneMapped&&(B===null||B.isXRRenderTarget===!0)&&(dt=_e.toneMapping);const xt={shaderID:s,shaderType:b.type,shaderName:b.name,vertexShader:D,fragmentShader:N,defines:b.defines,customVertexShaderID:I,customFragmentShaderID:k,isRawShaderMaterial:b.isRawShaderMaterial===!0,glslVersion:b.glslVersion,precision:x,batching:H,instancing:O,instancingColor:O&&w.instanceColor!==null,instancingMorph:O&&w.morphTexture!==null,supportsVertexTextures:S,outputColorSpace:B===null?_e.outputColorSpace:B.isXRRenderTarget===!0?B.texture.colorSpace:yc,alphaToCoverage:!!b.alphaToCoverage,map:Y,matcap:j,envMap:te,envMapMode:te&&E.mapping,envMapCubeUVHeight:T,aoMap:ie,lightMap:ue,bumpMap:J,normalMap:X,displacementMap:S&&ee,emissiveMap:V,normalMapObjectSpace:X&&b.normalMapType===kw,normalMapTangentSpace:X&&b.normalMapType===zw,metalnessMap:Q,roughnessMap:oe,anisotropy:$,anisotropyMap:ge,clearcoat:Z,clearcoatMap:Te,clearcoatNormalMap:we,clearcoatRoughnessMap:Re,iridescence:se,iridescenceMap:be,iridescenceThicknessMap:Ae,sheen:ne,sheenColorMap:me,sheenRoughnessMap:Le,specularMap:He,specularColorMap:Ue,specularIntensityMap:ke,transmission:ce,transmissionMap:Ve,thicknessMap:Ie,gradientMap:rt,opaque:b.transparent===!1&&b.blending===nv&&b.alphaToCoverage===!1,alphaMap:Ke,alphaTest:$e,alphaHash:lt,combine:b.combine,mapUv:Y&&p(b.map.channel),aoMapUv:ie&&p(b.aoMap.channel),lightMapUv:ue&&p(b.lightMap.channel),bumpMapUv:J&&p(b.bumpMap.channel),normalMapUv:X&&p(b.normalMap.channel),displacementMapUv:ee&&p(b.displacementMap.channel),emissiveMapUv:V&&p(b.emissiveMap.channel),metalnessMapUv:Q&&p(b.metalnessMap.channel),roughnessMapUv:oe&&p(b.roughnessMap.channel),anisotropyMapUv:ge&&p(b.anisotropyMap.channel),clearcoatMapUv:Te&&p(b.clearcoatMap.channel),clearcoatNormalMapUv:we&&p(b.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Re&&p(b.clearcoatRoughnessMap.channel),iridescenceMapUv:be&&p(b.iridescenceMap.channel),iridescenceThicknessMapUv:Ae&&p(b.iridescenceThicknessMap.channel),sheenColorMapUv:me&&p(b.sheenColorMap.channel),sheenRoughnessMapUv:Le&&p(b.sheenRoughnessMap.channel),specularMapUv:He&&p(b.specularMap.channel),specularColorMapUv:Ue&&p(b.specularColorMap.channel),specularIntensityMapUv:ke&&p(b.specularIntensityMap.channel),transmissionMapUv:Ve&&p(b.transmissionMap.channel),thicknessMapUv:Ie&&p(b.thicknessMap.channel),alphaMapUv:Ke&&p(b.alphaMap.channel),vertexTangents:!!_.attributes.tangent&&(X||$),vertexColors:b.vertexColors,vertexAlphas:b.vertexColors===!0&&!!_.attributes.color&&_.attributes.color.itemSize===4,pointsUvs:w.isPoints===!0&&!!_.attributes.uv&&(Y||Ke),fog:!!A,useFog:b.fog===!0,fogExp2:!!A&&A.isFogExp2,flatShading:b.flatShading===!0,sizeAttenuation:b.sizeAttenuation===!0,logarithmicDepthBuffer:i,skinning:w.isSkinnedMesh===!0,morphTargets:_.morphAttributes.position!==void 0,morphNormals:_.morphAttributes.normal!==void 0,morphColors:_.morphAttributes.color!==void 0,morphTargetsCount:M,morphTextureStride:z,numDirLights:u.directional.length,numPointLights:u.point.length,numSpotLights:u.spot.length,numSpotLightMaps:u.spotLightMap.length,numRectAreaLights:u.rectArea.length,numHemiLights:u.hemi.length,numDirLightShadows:u.directionalShadowMap.length,numPointLightShadows:u.pointShadowMap.length,numSpotLightShadows:u.spotShadowMap.length,numSpotLightShadowsWithMaps:u.numSpotLightShadowsWithMaps,numLightProbes:u.numLightProbes,numClippingPlanes:G.numPlanes,numClipIntersection:G.numIntersection,dithering:b.dithering,shadowMapEnabled:_e.shadowMap.enabled&&o.length>0,shadowMapType:_e.shadowMap.type,toneMapping:dt,useLegacyLights:_e._useLegacyLights,decodeVideoTexture:Y&&b.map.isVideoTexture===!0&&Fa.getTransfer(b.map.colorSpace)===Ya,premultipliedAlpha:b.premultipliedAlpha,doubleSided:b.side===mf,flipSided:b.side===Vs,useDepthPacking:b.depthPacking>=0,depthPacking:b.depthPacking||0,index0AttributeName:b.index0AttributeName,extensionClipCullDistance:ht&&b.extensions.clipCullDistance===!0&&le.has("WEBGL_clip_cull_distance"),extensionMultiDraw:ht&&b.extensions.multiDraw===!0&&le.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:le.has("KHR_parallel_shader_compile"),customProgramCacheKey:b.customProgramCacheKey()};return xt.vertexUv1s=g.has(1),xt.vertexUv2s=g.has(2),xt.vertexUv3s=g.has(3),g.clear(),xt}function t(b){const u=[];if(b.shaderID?u.push(b.shaderID):(u.push(b.customVertexShaderID),u.push(b.customFragmentShaderID)),b.defines!==void 0)for(const o in b.defines)u.push(o),u.push(b.defines[o]);return b.isRawShaderMaterial===!1&&(a(u,b),n(u,b),u.push(_e.outputColorSpace)),u.push(b.customProgramCacheKey),u.join()}function a(b,u){b.push(u.precision),b.push(u.outputColorSpace),b.push(u.envMapMode),b.push(u.envMapCubeUVHeight),b.push(u.mapUv),b.push(u.alphaMapUv),b.push(u.lightMapUv),b.push(u.aoMapUv),b.push(u.bumpMapUv),b.push(u.normalMapUv),b.push(u.displacementMapUv),b.push(u.emissiveMapUv),b.push(u.metalnessMapUv),b.push(u.roughnessMapUv),b.push(u.anisotropyMapUv),b.push(u.clearcoatMapUv),b.push(u.clearcoatNormalMapUv),b.push(u.clearcoatRoughnessMapUv),b.push(u.iridescenceMapUv),b.push(u.iridescenceThicknessMapUv),b.push(u.sheenColorMapUv),b.push(u.sheenRoughnessMapUv),b.push(u.specularMapUv),b.push(u.specularColorMapUv),b.push(u.specularIntensityMapUv),b.push(u.transmissionMapUv),b.push(u.thicknessMapUv),b.push(u.combine),b.push(u.fogExp2),b.push(u.sizeAttenuation),b.push(u.morphTargetsCount),b.push(u.morphAttributeCount),b.push(u.numDirLights),b.push(u.numPointLights),b.push(u.numSpotLights),b.push(u.numSpotLightMaps),b.push(u.numHemiLights),b.push(u.numRectAreaLights),b.push(u.numDirLightShadows),b.push(u.numPointLightShadows),b.push(u.numSpotLightShadows),b.push(u.numSpotLightShadowsWithMaps),b.push(u.numLightProbes),b.push(u.shadowMapType),b.push(u.toneMapping),b.push(u.numClippingPlanes),b.push(u.numClipIntersection),b.push(u.depthPacking)}function n(b,u){U.disableAll(),u.supportsVertexTextures&&U.enable(0),u.instancing&&U.enable(1),u.instancingColor&&U.enable(2),u.instancingMorph&&U.enable(3),u.matcap&&U.enable(4),u.envMap&&U.enable(5),u.normalMapObjectSpace&&U.enable(6),u.normalMapTangentSpace&&U.enable(7),u.clearcoat&&U.enable(8),u.iridescence&&U.enable(9),u.alphaTest&&U.enable(10),u.vertexColors&&U.enable(11),u.vertexAlphas&&U.enable(12),u.vertexUv1s&&U.enable(13),u.vertexUv2s&&U.enable(14),u.vertexUv3s&&U.enable(15),u.vertexTangents&&U.enable(16),u.anisotropy&&U.enable(17),u.alphaHash&&U.enable(18),u.batching&&U.enable(19),b.push(U.mask),U.disableAll(),u.fog&&U.enable(0),u.useFog&&U.enable(1),u.flatShading&&U.enable(2),u.logarithmicDepthBuffer&&U.enable(3),u.skinning&&U.enable(4),u.morphTargets&&U.enable(5),u.morphNormals&&U.enable(6),u.morphColors&&U.enable(7),u.premultipliedAlpha&&U.enable(8),u.shadowMapEnabled&&U.enable(9),u.useLegacyLights&&U.enable(10),u.doubleSided&&U.enable(11),u.flipSided&&U.enable(12),u.useDepthPacking&&U.enable(13),u.dithering&&U.enable(14),u.transmission&&U.enable(15),u.sheen&&U.enable(16),u.opaque&&U.enable(17),u.pointsUvs&&U.enable(18),u.decodeVideoTexture&&U.enable(19),u.alphaToCoverage&&U.enable(20),b.push(U.mask)}function f(b){const u=v[b.type];let o;if(u){const d=Fu[u];o=S2.clone(d.uniforms)}else o=b.uniforms;return o}function c(b,u){let o;for(let d=0,w=C.length;d0?le.push(t):x.transparent===!0?De.push(t):q.push(t)}function e(i,S,x,v,p,r){const t=G(i,S,x,v,p,r);x.transmission>0?le.unshift(t):x.transparent===!0?De.unshift(t):q.unshift(t)}function g(i,S){q.length>1&&q.sort(i||W4),le.length>1&&le.sort(S||Ay),De.length>1&&De.sort(S||Ay)}function C(){for(let i=F,S=_e.length;i=Ze.length?(G=new My,Ze.push(G)):G=Ze[De],G}function q(){_e=new WeakMap}return{get:F,dispose:q}}function X4(){const _e={};return{get:function(F){if(_e[F.id]!==void 0)return _e[F.id];let q;switch(F.type){case"DirectionalLight":q={direction:new bn,color:new da};break;case"SpotLight":q={position:new bn,direction:new bn,color:new da,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":q={position:new bn,color:new da,distance:0,decay:0};break;case"HemisphereLight":q={direction:new bn,skyColor:new da,groundColor:new da};break;case"RectAreaLight":q={color:new da,position:new bn,halfWidth:new bn,halfHeight:new bn};break}return _e[F.id]=q,q}}}function Z4(){const _e={};return{get:function(F){if(_e[F.id]!==void 0)return _e[F.id];let q;switch(F.type){case"DirectionalLight":q={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Wi};break;case"SpotLight":q={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Wi};break;case"PointLight":q={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Wi,shadowCameraNear:1,shadowCameraFar:1e3};break}return _e[F.id]=q,q}}}let j4=0;function K4(_e,F){return(F.castShadow?2:0)-(_e.castShadow?2:0)+(F.map?1:0)-(_e.map?1:0)}function J4(_e){const F=new X4,q=Z4(),le={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let g=0;g<9;g++)le.probe.push(new bn);const De=new bn,Ze=new so,G=new so;function U(g,C){let i=0,S=0,x=0;for(let o=0;o<9;o++)le.probe[o].set(0,0,0);let v=0,p=0,r=0,t=0,a=0,n=0,f=0,c=0,l=0,m=0,h=0;g.sort(K4);const b=C===!0?Math.PI:1;for(let o=0,d=g.length;o0&&(_e.has("OES_texture_float_linear")===!0?(le.rectAreaLTC1=_i.LTC_FLOAT_1,le.rectAreaLTC2=_i.LTC_FLOAT_2):(le.rectAreaLTC1=_i.LTC_HALF_1,le.rectAreaLTC2=_i.LTC_HALF_2)),le.ambient[0]=i,le.ambient[1]=S,le.ambient[2]=x;const u=le.hash;(u.directionalLength!==v||u.pointLength!==p||u.spotLength!==r||u.rectAreaLength!==t||u.hemiLength!==a||u.numDirectionalShadows!==n||u.numPointShadows!==f||u.numSpotShadows!==c||u.numSpotMaps!==l||u.numLightProbes!==h)&&(le.directional.length=v,le.spot.length=r,le.rectArea.length=t,le.point.length=p,le.hemi.length=a,le.directionalShadow.length=n,le.directionalShadowMap.length=n,le.pointShadow.length=f,le.pointShadowMap.length=f,le.spotShadow.length=c,le.spotShadowMap.length=c,le.directionalShadowMatrix.length=n,le.pointShadowMatrix.length=f,le.spotLightMatrix.length=c+l-m,le.spotLightMap.length=l,le.numSpotLightShadowsWithMaps=m,le.numLightProbes=h,u.directionalLength=v,u.pointLength=p,u.spotLength=r,u.rectAreaLength=t,u.hemiLength=a,u.numDirectionalShadows=n,u.numPointShadows=f,u.numSpotShadows=c,u.numSpotMaps=l,u.numLightProbes=h,le.version=j4++)}function e(g,C){let i=0,S=0,x=0,v=0,p=0;const r=C.matrixWorldInverse;for(let t=0,a=g.length;t=G.length?(U=new Sy(_e),G.push(U)):U=G[Ze],U}function le(){F=new WeakMap}return{get:q,dispose:le}}class $4 extends ah{constructor(F){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Iw,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(F)}copy(F){return super.copy(F),this.depthPacking=F.depthPacking,this.map=F.map,this.alphaMap=F.alphaMap,this.displacementMap=F.displacementMap,this.displacementScale=F.displacementScale,this.displacementBias=F.displacementBias,this.wireframe=F.wireframe,this.wireframeLinewidth=F.wireframeLinewidth,this}}class q4 extends ah{constructor(F){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(F)}copy(F){return super.copy(F),this.map=F.map,this.alphaMap=F.alphaMap,this.displacementMap=F.displacementMap,this.displacementScale=F.displacementScale,this.displacementBias=F.displacementBias,this}}const eS=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,tS=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +#include +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( squared_mean - mean * mean ); + gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); +}`;function rS(_e,F,q){let le=new m1;const De=new Wi,Ze=new Wi,G=new No,U=new $4({depthPacking:Fw}),e=new q4,g={},C=q.maxTextureSize,i={[gc]:Vs,[Vs]:gc,[mf]:mf},S=new mc({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Wi},radius:{value:4}},vertexShader:eS,fragmentShader:tS}),x=S.clone();x.defines.HORIZONTAL_PASS=1;const v=new Ws;v.setAttribute("position",new Gs(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const p=new Il(v,S),r=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Ky;let t=this.type;this.render=function(l,m,h){if(r.enabled===!1||r.autoUpdate===!1&&r.needsUpdate===!1||l.length===0)return;const b=_e.getRenderTarget(),u=_e.getActiveCubeFace(),o=_e.getActiveMipmapLevel(),d=_e.state;d.setBlending(hc),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);const w=t!==gf&&this.type===gf,A=t===gf&&this.type!==gf;for(let _=0,y=l.length;_C||De.y>C)&&(De.x>C&&(Ze.x=Math.floor(C/s.x),De.x=Ze.x*s.x,T.mapSize.x=Ze.x),De.y>C&&(Ze.y=Math.floor(C/s.y),De.y=Ze.y*s.y,T.mapSize.y=Ze.y)),T.map===null||w===!0||A===!0){const M=this.type!==gf?{minFilter:Dl,magFilter:Dl}:{};T.map!==null&&T.map.dispose(),T.map=new nh(De.x,De.y,M),T.map.texture.name=E.name+".shadowMap",T.camera.updateProjectionMatrix()}_e.setRenderTarget(T.map),_e.clear();const L=T.getViewportCount();for(let M=0;M0||m.map&&m.alphaTest>0){const d=u.uuid,w=m.uuid;let A=g[d];A===void 0&&(A={},g[d]=A);let _=A[w];_===void 0&&(_=u.clone(),A[w]=_,m.addEventListener("dispose",c)),u=_}if(u.visible=m.visible,u.wireframe=m.wireframe,b===gf?u.side=m.shadowSide!==null?m.shadowSide:m.side:u.side=m.shadowSide!==null?m.shadowSide:i[m.side],u.alphaMap=m.alphaMap,u.alphaTest=m.alphaTest,u.map=m.map,u.clipShadows=m.clipShadows,u.clippingPlanes=m.clippingPlanes,u.clipIntersection=m.clipIntersection,u.displacementMap=m.displacementMap,u.displacementScale=m.displacementScale,u.displacementBias=m.displacementBias,u.wireframeLinewidth=m.wireframeLinewidth,u.linewidth=m.linewidth,h.isPointLight===!0&&u.isMeshDistanceMaterial===!0){const d=_e.properties.get(u);d.light=h}return u}function f(l,m,h,b,u){if(l.visible===!1)return;if(l.layers.test(m.layers)&&(l.isMesh||l.isLine||l.isPoints)&&(l.castShadow||l.receiveShadow&&u===gf)&&(!l.frustumCulled||le.intersectsObject(l))){l.modelViewMatrix.multiplyMatrices(h.matrixWorldInverse,l.matrixWorld);const w=F.update(l),A=l.material;if(Array.isArray(A)){const _=w.groups;for(let y=0,E=_.length;y=1):E.indexOf("OpenGL ES")!==-1&&(y=parseFloat(/^OpenGL ES (\d)/.exec(E)[1]),_=y>=2);let T=null,s={};const L=_e.getParameter(_e.SCISSOR_BOX),M=_e.getParameter(_e.VIEWPORT),z=new No().fromArray(L),D=new No().fromArray(M);function N(Ie,rt,Ke,$e){const lt=new Uint8Array(4),ht=_e.createTexture();_e.bindTexture(Ie,ht),_e.texParameteri(Ie,_e.TEXTURE_MIN_FILTER,_e.NEAREST),_e.texParameteri(Ie,_e.TEXTURE_MAG_FILTER,_e.NEAREST);for(let dt=0;dt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),g=new Wi,C=new WeakMap;let i;const S=new WeakMap;let x=!1;try{x=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function v(ee,V){return x?new OffscreenCanvas(ee,V):vp("canvas")}function p(ee,V,Q){let oe=1;const $=X(ee);if(($.width>Q||$.height>Q)&&(oe=Q/Math.max($.width,$.height)),oe<1)if(typeof HTMLImageElement<"u"&&ee instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&ee instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&ee instanceof ImageBitmap||typeof VideoFrame<"u"&&ee instanceof VideoFrame){const Z=Math.floor(oe*$.width),se=Math.floor(oe*$.height);i===void 0&&(i=v(Z,se));const ne=V?v(Z,se):i;return ne.width=Z,ne.height=se,ne.getContext("2d").drawImage(ee,0,0,Z,se),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+$.width+"x"+$.height+") to ("+Z+"x"+se+")."),ne}else return"data"in ee&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+$.width+"x"+$.height+")."),ee;return ee}function r(ee){return ee.generateMipmaps&&ee.minFilter!==Dl&&ee.minFilter!==fu}function t(ee){_e.generateMipmap(ee)}function a(ee,V,Q,oe,$=!1){if(ee!==null){if(_e[ee]!==void 0)return _e[ee];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+ee+"'")}let Z=V;if(V===_e.RED&&(Q===_e.FLOAT&&(Z=_e.R32F),Q===_e.HALF_FLOAT&&(Z=_e.R16F),Q===_e.UNSIGNED_BYTE&&(Z=_e.R8)),V===_e.RED_INTEGER&&(Q===_e.UNSIGNED_BYTE&&(Z=_e.R8UI),Q===_e.UNSIGNED_SHORT&&(Z=_e.R16UI),Q===_e.UNSIGNED_INT&&(Z=_e.R32UI),Q===_e.BYTE&&(Z=_e.R8I),Q===_e.SHORT&&(Z=_e.R16I),Q===_e.INT&&(Z=_e.R32I)),V===_e.RG&&(Q===_e.FLOAT&&(Z=_e.RG32F),Q===_e.HALF_FLOAT&&(Z=_e.RG16F),Q===_e.UNSIGNED_BYTE&&(Z=_e.RG8)),V===_e.RG_INTEGER&&(Q===_e.UNSIGNED_BYTE&&(Z=_e.RG8UI),Q===_e.UNSIGNED_SHORT&&(Z=_e.RG16UI),Q===_e.UNSIGNED_INT&&(Z=_e.RG32UI),Q===_e.BYTE&&(Z=_e.RG8I),Q===_e.SHORT&&(Z=_e.RG16I),Q===_e.INT&&(Z=_e.RG32I)),V===_e.RGB&&Q===_e.UNSIGNED_INT_5_9_9_9_REV&&(Z=_e.RGB9_E5),V===_e.RGBA){const se=$?up:Fa.getTransfer(oe);Q===_e.FLOAT&&(Z=_e.RGBA32F),Q===_e.HALF_FLOAT&&(Z=_e.RGBA16F),Q===_e.UNSIGNED_BYTE&&(Z=se===Ya?_e.SRGB8_ALPHA8:_e.RGBA8),Q===_e.UNSIGNED_SHORT_4_4_4_4&&(Z=_e.RGBA4),Q===_e.UNSIGNED_SHORT_5_5_5_1&&(Z=_e.RGB5_A1)}return(Z===_e.R16F||Z===_e.R32F||Z===_e.RG16F||Z===_e.RG32F||Z===_e.RGBA16F||Z===_e.RGBA32F)&&F.get("EXT_color_buffer_float"),Z}function n(ee,V){return r(ee)===!0||ee.isFramebufferTexture&&ee.minFilter!==Dl&&ee.minFilter!==fu?Math.log2(Math.max(V.width,V.height))+1:ee.mipmaps!==void 0&&ee.mipmaps.length>0?ee.mipmaps.length:ee.isCompressedTexture&&Array.isArray(ee.image)?V.mipmaps.length:1}function f(ee){const V=ee.target;V.removeEventListener("dispose",f),l(V),V.isVideoTexture&&C.delete(V)}function c(ee){const V=ee.target;V.removeEventListener("dispose",c),h(V)}function l(ee){const V=le.get(ee);if(V.__webglInit===void 0)return;const Q=ee.source,oe=S.get(Q);if(oe){const $=oe[V.__cacheKey];$.usedTimes--,$.usedTimes===0&&m(ee),Object.keys(oe).length===0&&S.delete(Q)}le.remove(ee)}function m(ee){const V=le.get(ee);_e.deleteTexture(V.__webglTexture);const Q=ee.source,oe=S.get(Q);delete oe[V.__cacheKey],G.memory.textures--}function h(ee){const V=le.get(ee);if(ee.depthTexture&&ee.depthTexture.dispose(),ee.isWebGLCubeRenderTarget)for(let oe=0;oe<6;oe++){if(Array.isArray(V.__webglFramebuffer[oe]))for(let $=0;$=De.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+ee+" texture units while this GPU supports only "+De.maxTextures),b+=1,ee}function d(ee){const V=[];return V.push(ee.wrapS),V.push(ee.wrapT),V.push(ee.wrapR||0),V.push(ee.magFilter),V.push(ee.minFilter),V.push(ee.anisotropy),V.push(ee.internalFormat),V.push(ee.format),V.push(ee.type),V.push(ee.generateMipmaps),V.push(ee.premultiplyAlpha),V.push(ee.flipY),V.push(ee.unpackAlignment),V.push(ee.colorSpace),V.join()}function w(ee,V){const Q=le.get(ee);if(ee.isVideoTexture&&ue(ee),ee.isRenderTargetTexture===!1&&ee.version>0&&Q.__version!==ee.version){const oe=ee.image;if(oe===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(oe.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{z(Q,ee,V);return}}q.bindTexture(_e.TEXTURE_2D,Q.__webglTexture,_e.TEXTURE0+V)}function A(ee,V){const Q=le.get(ee);if(ee.version>0&&Q.__version!==ee.version){z(Q,ee,V);return}q.bindTexture(_e.TEXTURE_2D_ARRAY,Q.__webglTexture,_e.TEXTURE0+V)}function _(ee,V){const Q=le.get(ee);if(ee.version>0&&Q.__version!==ee.version){z(Q,ee,V);return}q.bindTexture(_e.TEXTURE_3D,Q.__webglTexture,_e.TEXTURE0+V)}function y(ee,V){const Q=le.get(ee);if(ee.version>0&&Q.__version!==ee.version){D(Q,ee,V);return}q.bindTexture(_e.TEXTURE_CUBE_MAP,Q.__webglTexture,_e.TEXTURE0+V)}const E={[N0]:_e.REPEAT,[th]:_e.CLAMP_TO_EDGE,[B0]:_e.MIRRORED_REPEAT},T={[Dl]:_e.NEAREST,[Tw]:_e.NEAREST_MIPMAP_NEAREST,[Pd]:_e.NEAREST_MIPMAP_LINEAR,[fu]:_e.LINEAR,[qp]:_e.LINEAR_MIPMAP_NEAREST,[rh]:_e.LINEAR_MIPMAP_LINEAR},s={[Ow]:_e.NEVER,[Gw]:_e.ALWAYS,[Nw]:_e.LESS,[o1]:_e.LEQUAL,[Bw]:_e.EQUAL,[Vw]:_e.GEQUAL,[Uw]:_e.GREATER,[Hw]:_e.NOTEQUAL};function L(ee,V){if(V.type===cc&&F.has("OES_texture_float_linear")===!1&&(V.magFilter===fu||V.magFilter===qp||V.magFilter===Pd||V.magFilter===rh||V.minFilter===fu||V.minFilter===qp||V.minFilter===Pd||V.minFilter===rh)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),_e.texParameteri(ee,_e.TEXTURE_WRAP_S,E[V.wrapS]),_e.texParameteri(ee,_e.TEXTURE_WRAP_T,E[V.wrapT]),(ee===_e.TEXTURE_3D||ee===_e.TEXTURE_2D_ARRAY)&&_e.texParameteri(ee,_e.TEXTURE_WRAP_R,E[V.wrapR]),_e.texParameteri(ee,_e.TEXTURE_MAG_FILTER,T[V.magFilter]),_e.texParameteri(ee,_e.TEXTURE_MIN_FILTER,T[V.minFilter]),V.compareFunction&&(_e.texParameteri(ee,_e.TEXTURE_COMPARE_MODE,_e.COMPARE_REF_TO_TEXTURE),_e.texParameteri(ee,_e.TEXTURE_COMPARE_FUNC,s[V.compareFunction])),F.has("EXT_texture_filter_anisotropic")===!0){if(V.magFilter===Dl||V.minFilter!==Pd&&V.minFilter!==rh||V.type===cc&&F.has("OES_texture_float_linear")===!1)return;if(V.anisotropy>1||le.get(V).__currentAnisotropy){const Q=F.get("EXT_texture_filter_anisotropic");_e.texParameterf(ee,Q.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(V.anisotropy,De.getMaxAnisotropy())),le.get(V).__currentAnisotropy=V.anisotropy}}}function M(ee,V){let Q=!1;ee.__webglInit===void 0&&(ee.__webglInit=!0,V.addEventListener("dispose",f));const oe=V.source;let $=S.get(oe);$===void 0&&($={},S.set(oe,$));const Z=d(V);if(Z!==ee.__cacheKey){$[Z]===void 0&&($[Z]={texture:_e.createTexture(),usedTimes:0},G.memory.textures++,Q=!0),$[Z].usedTimes++;const se=$[ee.__cacheKey];se!==void 0&&($[ee.__cacheKey].usedTimes--,se.usedTimes===0&&m(V)),ee.__cacheKey=Z,ee.__webglTexture=$[Z].texture}return Q}function z(ee,V,Q){let oe=_e.TEXTURE_2D;(V.isDataArrayTexture||V.isCompressedArrayTexture)&&(oe=_e.TEXTURE_2D_ARRAY),V.isData3DTexture&&(oe=_e.TEXTURE_3D);const $=M(ee,V),Z=V.source;q.bindTexture(oe,ee.__webglTexture,_e.TEXTURE0+Q);const se=le.get(Z);if(Z.version!==se.__version||$===!0){q.activeTexture(_e.TEXTURE0+Q);const ne=Fa.getPrimaries(Fa.workingColorSpace),ce=V.colorSpace===fc?null:Fa.getPrimaries(V.colorSpace),ge=V.colorSpace===fc||ne===ce?_e.NONE:_e.BROWSER_DEFAULT_WEBGL;_e.pixelStorei(_e.UNPACK_FLIP_Y_WEBGL,V.flipY),_e.pixelStorei(_e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,V.premultiplyAlpha),_e.pixelStorei(_e.UNPACK_ALIGNMENT,V.unpackAlignment),_e.pixelStorei(_e.UNPACK_COLORSPACE_CONVERSION_WEBGL,ge);let Te=p(V.image,!1,De.maxTextureSize);Te=J(V,Te);const we=Ze.convert(V.format,V.colorSpace),Re=Ze.convert(V.type);let be=a(V.internalFormat,we,Re,V.colorSpace,V.isVideoTexture);L(oe,V);let Ae;const me=V.mipmaps,Le=V.isVideoTexture!==!0&&be!==a1,He=se.__version===void 0||$===!0,Ue=Z.dataReady,ke=n(V,Te);if(V.isDepthTexture)be=_e.DEPTH_COMPONENT16,V.type===cc?be=_e.DEPTH_COMPONENT32F:V.type===uv?be=_e.DEPTH_COMPONENT24:V.type===$v&&(be=_e.DEPTH24_STENCIL8),He&&(Le?q.texStorage2D(_e.TEXTURE_2D,1,be,Te.width,Te.height):q.texImage2D(_e.TEXTURE_2D,0,be,Te.width,Te.height,0,we,Re,null));else if(V.isDataTexture)if(me.length>0){Le&&He&&q.texStorage2D(_e.TEXTURE_2D,ke,be,me[0].width,me[0].height);for(let Ve=0,Ie=me.length;Ve>=1,Ie>>=1}}else if(me.length>0){if(Le&&He){const Ve=X(me[0]);q.texStorage2D(_e.TEXTURE_2D,ke,be,Ve.width,Ve.height)}for(let Ve=0,Ie=me.length;Ve0&&ke++;const Ie=X(we[0]);q.texStorage2D(_e.TEXTURE_CUBE_MAP,ke,me,Ie.width,Ie.height)}for(let Ie=0;Ie<6;Ie++)if(Te){Le?Ue&&q.texSubImage2D(_e.TEXTURE_CUBE_MAP_POSITIVE_X+Ie,0,0,0,we[Ie].width,we[Ie].height,be,Ae,we[Ie].data):q.texImage2D(_e.TEXTURE_CUBE_MAP_POSITIVE_X+Ie,0,me,we[Ie].width,we[Ie].height,0,be,Ae,we[Ie].data);for(let rt=0;rt>Z),we=Math.max(1,V.height>>Z);$===_e.TEXTURE_3D||$===_e.TEXTURE_2D_ARRAY?q.texImage3D($,Z,ce,Te,we,V.depth,0,se,ne,null):q.texImage2D($,Z,ce,Te,we,0,se,ne,null)}q.bindFramebuffer(_e.FRAMEBUFFER,ee),ie(V)?U.framebufferTexture2DMultisampleEXT(_e.FRAMEBUFFER,oe,$,le.get(Q).__webglTexture,0,te(V)):($===_e.TEXTURE_2D||$>=_e.TEXTURE_CUBE_MAP_POSITIVE_X&&$<=_e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&_e.framebufferTexture2D(_e.FRAMEBUFFER,oe,$,le.get(Q).__webglTexture,Z),q.bindFramebuffer(_e.FRAMEBUFFER,null)}function I(ee,V,Q){if(_e.bindRenderbuffer(_e.RENDERBUFFER,ee),V.depthBuffer&&!V.stencilBuffer){let oe=_e.DEPTH_COMPONENT24;if(Q||ie(V)){const $=V.depthTexture;$&&$.isDepthTexture&&($.type===cc?oe=_e.DEPTH_COMPONENT32F:$.type===uv&&(oe=_e.DEPTH_COMPONENT24));const Z=te(V);ie(V)?U.renderbufferStorageMultisampleEXT(_e.RENDERBUFFER,Z,oe,V.width,V.height):_e.renderbufferStorageMultisample(_e.RENDERBUFFER,Z,oe,V.width,V.height)}else _e.renderbufferStorage(_e.RENDERBUFFER,oe,V.width,V.height);_e.framebufferRenderbuffer(_e.FRAMEBUFFER,_e.DEPTH_ATTACHMENT,_e.RENDERBUFFER,ee)}else if(V.depthBuffer&&V.stencilBuffer){const oe=te(V);Q&&ie(V)===!1?_e.renderbufferStorageMultisample(_e.RENDERBUFFER,oe,_e.DEPTH24_STENCIL8,V.width,V.height):ie(V)?U.renderbufferStorageMultisampleEXT(_e.RENDERBUFFER,oe,_e.DEPTH24_STENCIL8,V.width,V.height):_e.renderbufferStorage(_e.RENDERBUFFER,_e.DEPTH_STENCIL,V.width,V.height),_e.framebufferRenderbuffer(_e.FRAMEBUFFER,_e.DEPTH_STENCIL_ATTACHMENT,_e.RENDERBUFFER,ee)}else{const oe=V.textures;for(let $=0;$1;if(se||(oe.__webglTexture===void 0&&(oe.__webglTexture=_e.createTexture()),oe.__version=V.version,G.memory.textures++),Z){Q.__webglFramebuffer=[];for(let ne=0;ne<6;ne++)if(V.mipmaps&&V.mipmaps.length>0){Q.__webglFramebuffer[ne]=[];for(let ce=0;ce0){Q.__webglFramebuffer=[];for(let ne=0;ne0&&ie(ee)===!1){Q.__webglMultisampledFramebuffer=_e.createFramebuffer(),Q.__webglColorRenderbuffer=[],q.bindFramebuffer(_e.FRAMEBUFFER,Q.__webglMultisampledFramebuffer);for(let ne=0;ne<$.length;ne++){const ce=$[ne];Q.__webglColorRenderbuffer[ne]=_e.createRenderbuffer(),_e.bindRenderbuffer(_e.RENDERBUFFER,Q.__webglColorRenderbuffer[ne]);const ge=Ze.convert(ce.format,ce.colorSpace),Te=Ze.convert(ce.type),we=a(ce.internalFormat,ge,Te,ce.colorSpace,ee.isXRRenderTarget===!0),Re=te(ee);_e.renderbufferStorageMultisample(_e.RENDERBUFFER,Re,we,ee.width,ee.height),_e.framebufferRenderbuffer(_e.FRAMEBUFFER,_e.COLOR_ATTACHMENT0+ne,_e.RENDERBUFFER,Q.__webglColorRenderbuffer[ne])}_e.bindRenderbuffer(_e.RENDERBUFFER,null),ee.depthBuffer&&(Q.__webglDepthRenderbuffer=_e.createRenderbuffer(),I(Q.__webglDepthRenderbuffer,ee,!0)),q.bindFramebuffer(_e.FRAMEBUFFER,null)}}if(Z){q.bindTexture(_e.TEXTURE_CUBE_MAP,oe.__webglTexture),L(_e.TEXTURE_CUBE_MAP,V);for(let ne=0;ne<6;ne++)if(V.mipmaps&&V.mipmaps.length>0)for(let ce=0;ce0)for(let ce=0;ce0&&ie(ee)===!1){const V=ee.textures,Q=ee.width,oe=ee.height;let $=_e.COLOR_BUFFER_BIT;const Z=[],se=ee.stencilBuffer?_e.DEPTH_STENCIL_ATTACHMENT:_e.DEPTH_ATTACHMENT,ne=le.get(ee),ce=V.length>1;if(ce)for(let ge=0;ge0&&F.has("WEBGL_multisampled_render_to_texture")===!0&&V.__useRenderToTexture!==!1}function ue(ee){const V=G.render.frame;C.get(ee)!==V&&(C.set(ee,V),ee.update())}function J(ee,V){const Q=ee.colorSpace,oe=ee.format,$=ee.type;return ee.isCompressedTexture===!0||ee.isVideoTexture===!0||Q!==yc&&Q!==fc&&(Fa.getTransfer(Q)===Ya?(oe!==zu||$!==dc)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Q)),V}function X(ee){return typeof HTMLImageElement<"u"&&ee instanceof HTMLImageElement?(g.width=ee.naturalWidth||ee.width,g.height=ee.naturalHeight||ee.height):typeof VideoFrame<"u"&&ee instanceof VideoFrame?(g.width=ee.displayWidth,g.height=ee.displayHeight):(g.width=ee.width,g.height=ee.height),g}this.allocateTextureUnit=o,this.resetTextureUnits=u,this.setTexture2D=w,this.setTexture2DArray=A,this.setTexture3D=_,this.setTextureCube=y,this.rebindTextures=O,this.setupRenderTarget=H,this.updateRenderTargetMipmap=Y,this.updateMultisampleRenderTarget=j,this.setupDepthRenderbuffer=B,this.setupFrameBufferTexture=N,this.useMultisampledRTT=ie}function aS(_e,F){function q(le,De=fc){let Ze;const G=Fa.getTransfer(De);if(le===dc)return _e.UNSIGNED_BYTE;if(le===e1)return _e.UNSIGNED_SHORT_4_4_4_4;if(le===t1)return _e.UNSIGNED_SHORT_5_5_5_1;if(le===Sw)return _e.UNSIGNED_INT_5_9_9_9_REV;if(le===Aw)return _e.BYTE;if(le===Mw)return _e.SHORT;if(le===$y)return _e.UNSIGNED_SHORT;if(le===qy)return _e.INT;if(le===uv)return _e.UNSIGNED_INT;if(le===cc)return _e.FLOAT;if(le===lp)return _e.HALF_FLOAT;if(le===Ew)return _e.ALPHA;if(le===_w)return _e.RGB;if(le===zu)return _e.RGBA;if(le===Cw)return _e.LUMINANCE;if(le===Lw)return _e.LUMINANCE_ALPHA;if(le===iv)return _e.DEPTH_COMPONENT;if(le===Kv)return _e.DEPTH_STENCIL;if(le===Pw)return _e.RED;if(le===r1)return _e.RED_INTEGER;if(le===Rw)return _e.RG;if(le===n1)return _e.RG_INTEGER;if(le===i1)return _e.RGBA_INTEGER;if(le===e0||le===t0||le===r0||le===n0)if(G===Ya)if(Ze=F.get("WEBGL_compressed_texture_s3tc_srgb"),Ze!==null){if(le===e0)return Ze.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(le===t0)return Ze.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(le===r0)return Ze.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(le===n0)return Ze.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(Ze=F.get("WEBGL_compressed_texture_s3tc"),Ze!==null){if(le===e0)return Ze.COMPRESSED_RGB_S3TC_DXT1_EXT;if(le===t0)return Ze.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(le===r0)return Ze.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(le===n0)return Ze.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(le===cm||le===hm||le===vm||le===dm)if(Ze=F.get("WEBGL_compressed_texture_pvrtc"),Ze!==null){if(le===cm)return Ze.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(le===hm)return Ze.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(le===vm)return Ze.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(le===dm)return Ze.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(le===a1)return Ze=F.get("WEBGL_compressed_texture_etc1"),Ze!==null?Ze.COMPRESSED_RGB_ETC1_WEBGL:null;if(le===pm||le===gm)if(Ze=F.get("WEBGL_compressed_texture_etc"),Ze!==null){if(le===pm)return G===Ya?Ze.COMPRESSED_SRGB8_ETC2:Ze.COMPRESSED_RGB8_ETC2;if(le===gm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:Ze.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(le===mm||le===ym||le===xm||le===bm||le===wm||le===Tm||le===Am||le===Mm||le===Sm||le===Em||le===_m||le===Cm||le===Lm||le===Pm)if(Ze=F.get("WEBGL_compressed_texture_astc"),Ze!==null){if(le===mm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:Ze.COMPRESSED_RGBA_ASTC_4x4_KHR;if(le===ym)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:Ze.COMPRESSED_RGBA_ASTC_5x4_KHR;if(le===xm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:Ze.COMPRESSED_RGBA_ASTC_5x5_KHR;if(le===bm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:Ze.COMPRESSED_RGBA_ASTC_6x5_KHR;if(le===wm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:Ze.COMPRESSED_RGBA_ASTC_6x6_KHR;if(le===Tm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:Ze.COMPRESSED_RGBA_ASTC_8x5_KHR;if(le===Am)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:Ze.COMPRESSED_RGBA_ASTC_8x6_KHR;if(le===Mm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:Ze.COMPRESSED_RGBA_ASTC_8x8_KHR;if(le===Sm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:Ze.COMPRESSED_RGBA_ASTC_10x5_KHR;if(le===Em)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:Ze.COMPRESSED_RGBA_ASTC_10x6_KHR;if(le===_m)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:Ze.COMPRESSED_RGBA_ASTC_10x8_KHR;if(le===Cm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:Ze.COMPRESSED_RGBA_ASTC_10x10_KHR;if(le===Lm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:Ze.COMPRESSED_RGBA_ASTC_12x10_KHR;if(le===Pm)return G===Ya?Ze.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:Ze.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(le===i0||le===Rm||le===Dm)if(Ze=F.get("EXT_texture_compression_bptc"),Ze!==null){if(le===i0)return G===Ya?Ze.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:Ze.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(le===Rm)return Ze.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(le===Dm)return Ze.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(le===Dw||le===Im||le===Fm||le===zm)if(Ze=F.get("EXT_texture_compression_rgtc"),Ze!==null){if(le===i0)return Ze.COMPRESSED_RED_RGTC1_EXT;if(le===Im)return Ze.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(le===Fm)return Ze.COMPRESSED_RED_GREEN_RGTC2_EXT;if(le===zm)return Ze.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return le===$v?_e.UNSIGNED_INT_24_8:_e[le]!==void 0?_e[le]:null}return{convert:q}}class oS extends uu{constructor(F=[]){super(),this.isArrayCamera=!0,this.cameras=F}}class $d extends Bo{constructor(){super(),this.isGroup=!0,this.type="Group"}}const sS={type:"move"};class L0{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new $d,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new $d,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new bn,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new bn),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new $d,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new bn,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new bn),this._grip}dispatchEvent(F){return this._targetRay!==null&&this._targetRay.dispatchEvent(F),this._grip!==null&&this._grip.dispatchEvent(F),this._hand!==null&&this._hand.dispatchEvent(F),this}connect(F){if(F&&F.hand){const q=this._hand;if(q)for(const le of F.hand.values())this._getHandJoint(q,le)}return this.dispatchEvent({type:"connected",data:F}),this}disconnect(F){return this.dispatchEvent({type:"disconnected",data:F}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(F,q,le){let De=null,Ze=null,G=null;const U=this._targetRay,e=this._grip,g=this._hand;if(F&&q.session.visibilityState!=="visible-blurred"){if(g&&F.hand){G=!0;for(const p of F.hand.values()){const r=q.getJointPose(p,le),t=this._getHandJoint(g,p);r!==null&&(t.matrix.fromArray(r.transform.matrix),t.matrix.decompose(t.position,t.rotation,t.scale),t.matrixWorldNeedsUpdate=!0,t.jointRadius=r.radius),t.visible=r!==null}const C=g.joints["index-finger-tip"],i=g.joints["thumb-tip"],S=C.position.distanceTo(i.position),x=.02,v=.005;g.inputState.pinching&&S>x+v?(g.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:F.handedness,target:this})):!g.inputState.pinching&&S<=x-v&&(g.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:F.handedness,target:this}))}else e!==null&&F.gripSpace&&(Ze=q.getPose(F.gripSpace,le),Ze!==null&&(e.matrix.fromArray(Ze.transform.matrix),e.matrix.decompose(e.position,e.rotation,e.scale),e.matrixWorldNeedsUpdate=!0,Ze.linearVelocity?(e.hasLinearVelocity=!0,e.linearVelocity.copy(Ze.linearVelocity)):e.hasLinearVelocity=!1,Ze.angularVelocity?(e.hasAngularVelocity=!0,e.angularVelocity.copy(Ze.angularVelocity)):e.hasAngularVelocity=!1));U!==null&&(De=q.getPose(F.targetRaySpace,le),De===null&&Ze!==null&&(De=Ze),De!==null&&(U.matrix.fromArray(De.transform.matrix),U.matrix.decompose(U.position,U.rotation,U.scale),U.matrixWorldNeedsUpdate=!0,De.linearVelocity?(U.hasLinearVelocity=!0,U.linearVelocity.copy(De.linearVelocity)):U.hasLinearVelocity=!1,De.angularVelocity?(U.hasAngularVelocity=!0,U.angularVelocity.copy(De.angularVelocity)):U.hasAngularVelocity=!1,this.dispatchEvent(sS)))}return U!==null&&(U.visible=De!==null),e!==null&&(e.visible=Ze!==null),g!==null&&(g.visible=G!==null),this}_getHandJoint(F,q){if(F.joints[q.jointName]===void 0){const le=new $d;le.matrixAutoUpdate=!1,le.visible=!1,F.joints[q.jointName]=le,F.add(le)}return F.joints[q.jointName]}}const lS=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,uS=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`;class fS{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(F,q,le){if(this.texture===null){const De=new Es,Ze=F.properties.get(De);Ze.__webglTexture=q.texture,(q.depthNear!=le.depthNear||q.depthFar!=le.depthFar)&&(this.depthNear=q.depthNear,this.depthFar=q.depthFar),this.texture=De}}render(F,q){if(this.texture!==null){if(this.mesh===null){const le=q.cameras[0].viewport,De=new mc({vertexShader:lS,fragmentShader:uS,uniforms:{depthColor:{value:this.texture},depthWidth:{value:le.z},depthHeight:{value:le.w}}});this.mesh=new Il(new mp(20,20),De)}F.render(this.mesh,q)}}reset(){this.texture=null,this.mesh=null}}class cS extends ih{constructor(F,q){super();const le=this;let De=null,Ze=1,G=null,U="local-floor",e=1,g=null,C=null,i=null,S=null,x=null,v=null;const p=new fS,r=q.getContextAttributes();let t=null,a=null;const n=[],f=[],c=new Wi;let l=null;const m=new uu;m.layers.enable(1),m.viewport=new No;const h=new uu;h.layers.enable(2),h.viewport=new No;const b=[m,h],u=new oS;u.layers.enable(1),u.layers.enable(2);let o=null,d=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(N){let I=n[N];return I===void 0&&(I=new L0,n[N]=I),I.getTargetRaySpace()},this.getControllerGrip=function(N){let I=n[N];return I===void 0&&(I=new L0,n[N]=I),I.getGripSpace()},this.getHand=function(N){let I=n[N];return I===void 0&&(I=new L0,n[N]=I),I.getHandSpace()};function w(N){const I=f.indexOf(N.inputSource);if(I===-1)return;const k=n[I];k!==void 0&&(k.update(N.inputSource,N.frame,g||G),k.dispatchEvent({type:N.type,data:N.inputSource}))}function A(){De.removeEventListener("select",w),De.removeEventListener("selectstart",w),De.removeEventListener("selectend",w),De.removeEventListener("squeeze",w),De.removeEventListener("squeezestart",w),De.removeEventListener("squeezeend",w),De.removeEventListener("end",A),De.removeEventListener("inputsourceschange",_);for(let N=0;N=0&&(f[B]=null,n[B].disconnect(k))}for(let I=0;I=f.length){f.push(k),B=H;break}else if(f[H]===null){f[H]=k,B=H;break}if(B===-1)break}const O=n[B];O&&O.connect(k)}}const y=new bn,E=new bn;function T(N,I,k){y.setFromMatrixPosition(I.matrixWorld),E.setFromMatrixPosition(k.matrixWorld);const B=y.distanceTo(E),O=I.projectionMatrix.elements,H=k.projectionMatrix.elements,Y=O[14]/(O[10]-1),j=O[14]/(O[10]+1),te=(O[9]+1)/O[5],ie=(O[9]-1)/O[5],ue=(O[8]-1)/O[0],J=(H[8]+1)/H[0],X=Y*ue,ee=Y*J,V=B/(-ue+J),Q=V*-ue;I.matrixWorld.decompose(N.position,N.quaternion,N.scale),N.translateX(Q),N.translateZ(V),N.matrixWorld.compose(N.position,N.quaternion,N.scale),N.matrixWorldInverse.copy(N.matrixWorld).invert();const oe=Y+V,$=j+V,Z=X-Q,se=ee+(B-Q),ne=te*j/$*oe,ce=ie*j/$*oe;N.projectionMatrix.makePerspective(Z,se,ne,ce,oe,$),N.projectionMatrixInverse.copy(N.projectionMatrix).invert()}function s(N,I){I===null?N.matrixWorld.copy(N.matrix):N.matrixWorld.multiplyMatrices(I.matrixWorld,N.matrix),N.matrixWorldInverse.copy(N.matrixWorld).invert()}this.updateCamera=function(N){if(De===null)return;p.texture!==null&&(N.near=p.depthNear,N.far=p.depthFar),u.near=h.near=m.near=N.near,u.far=h.far=m.far=N.far,(o!==u.near||d!==u.far)&&(De.updateRenderState({depthNear:u.near,depthFar:u.far}),o=u.near,d=u.far,m.near=o,m.far=d,h.near=o,h.far=d,m.updateProjectionMatrix(),h.updateProjectionMatrix(),N.updateProjectionMatrix());const I=N.parent,k=u.cameras;s(u,I);for(let B=0;B0&&(r.alphaTest.value=t.alphaTest);const a=F.get(t),n=a.envMap,f=a.envMapRotation;if(n&&(r.envMap.value=n,Qc.copy(f),Qc.x*=-1,Qc.y*=-1,Qc.z*=-1,n.isCubeTexture&&n.isRenderTargetTexture===!1&&(Qc.y*=-1,Qc.z*=-1),r.envMapRotation.value.setFromMatrix4(hS.makeRotationFromEuler(Qc)),r.flipEnvMap.value=n.isCubeTexture&&n.isRenderTargetTexture===!1?-1:1,r.reflectivity.value=t.reflectivity,r.ior.value=t.ior,r.refractionRatio.value=t.refractionRatio),t.lightMap){r.lightMap.value=t.lightMap;const c=_e._useLegacyLights===!0?Math.PI:1;r.lightMapIntensity.value=t.lightMapIntensity*c,q(t.lightMap,r.lightMapTransform)}t.aoMap&&(r.aoMap.value=t.aoMap,r.aoMapIntensity.value=t.aoMapIntensity,q(t.aoMap,r.aoMapTransform))}function G(r,t){r.diffuse.value.copy(t.color),r.opacity.value=t.opacity,t.map&&(r.map.value=t.map,q(t.map,r.mapTransform))}function U(r,t){r.dashSize.value=t.dashSize,r.totalSize.value=t.dashSize+t.gapSize,r.scale.value=t.scale}function e(r,t,a,n){r.diffuse.value.copy(t.color),r.opacity.value=t.opacity,r.size.value=t.size*a,r.scale.value=n*.5,t.map&&(r.map.value=t.map,q(t.map,r.uvTransform)),t.alphaMap&&(r.alphaMap.value=t.alphaMap,q(t.alphaMap,r.alphaMapTransform)),t.alphaTest>0&&(r.alphaTest.value=t.alphaTest)}function g(r,t){r.diffuse.value.copy(t.color),r.opacity.value=t.opacity,r.rotation.value=t.rotation,t.map&&(r.map.value=t.map,q(t.map,r.mapTransform)),t.alphaMap&&(r.alphaMap.value=t.alphaMap,q(t.alphaMap,r.alphaMapTransform)),t.alphaTest>0&&(r.alphaTest.value=t.alphaTest)}function C(r,t){r.specular.value.copy(t.specular),r.shininess.value=Math.max(t.shininess,1e-4)}function i(r,t){t.gradientMap&&(r.gradientMap.value=t.gradientMap)}function S(r,t){r.metalness.value=t.metalness,t.metalnessMap&&(r.metalnessMap.value=t.metalnessMap,q(t.metalnessMap,r.metalnessMapTransform)),r.roughness.value=t.roughness,t.roughnessMap&&(r.roughnessMap.value=t.roughnessMap,q(t.roughnessMap,r.roughnessMapTransform)),t.envMap&&(r.envMapIntensity.value=t.envMapIntensity)}function x(r,t,a){r.ior.value=t.ior,t.sheen>0&&(r.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),r.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(r.sheenColorMap.value=t.sheenColorMap,q(t.sheenColorMap,r.sheenColorMapTransform)),t.sheenRoughnessMap&&(r.sheenRoughnessMap.value=t.sheenRoughnessMap,q(t.sheenRoughnessMap,r.sheenRoughnessMapTransform))),t.clearcoat>0&&(r.clearcoat.value=t.clearcoat,r.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(r.clearcoatMap.value=t.clearcoatMap,q(t.clearcoatMap,r.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,q(t.clearcoatRoughnessMap,r.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(r.clearcoatNormalMap.value=t.clearcoatNormalMap,q(t.clearcoatNormalMap,r.clearcoatNormalMapTransform),r.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===Vs&&r.clearcoatNormalScale.value.negate())),t.iridescence>0&&(r.iridescence.value=t.iridescence,r.iridescenceIOR.value=t.iridescenceIOR,r.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],r.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(r.iridescenceMap.value=t.iridescenceMap,q(t.iridescenceMap,r.iridescenceMapTransform)),t.iridescenceThicknessMap&&(r.iridescenceThicknessMap.value=t.iridescenceThicknessMap,q(t.iridescenceThicknessMap,r.iridescenceThicknessMapTransform))),t.transmission>0&&(r.transmission.value=t.transmission,r.transmissionSamplerMap.value=a.texture,r.transmissionSamplerSize.value.set(a.width,a.height),t.transmissionMap&&(r.transmissionMap.value=t.transmissionMap,q(t.transmissionMap,r.transmissionMapTransform)),r.thickness.value=t.thickness,t.thicknessMap&&(r.thicknessMap.value=t.thicknessMap,q(t.thicknessMap,r.thicknessMapTransform)),r.attenuationDistance.value=t.attenuationDistance,r.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(r.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(r.anisotropyMap.value=t.anisotropyMap,q(t.anisotropyMap,r.anisotropyMapTransform))),r.specularIntensity.value=t.specularIntensity,r.specularColor.value.copy(t.specularColor),t.specularColorMap&&(r.specularColorMap.value=t.specularColorMap,q(t.specularColorMap,r.specularColorMapTransform)),t.specularIntensityMap&&(r.specularIntensityMap.value=t.specularIntensityMap,q(t.specularIntensityMap,r.specularIntensityMapTransform))}function v(r,t){t.matcap&&(r.matcap.value=t.matcap)}function p(r,t){const a=F.get(t).light;r.referencePosition.value.setFromMatrixPosition(a.matrixWorld),r.nearDistance.value=a.shadow.camera.near,r.farDistance.value=a.shadow.camera.far}return{refreshFogUniforms:le,refreshMaterialUniforms:De}}function dS(_e,F,q,le){let De={},Ze={},G=[];const U=_e.getParameter(_e.MAX_UNIFORM_BUFFER_BINDINGS);function e(a,n){const f=n.program;le.uniformBlockBinding(a,f)}function g(a,n){let f=De[a.id];f===void 0&&(v(a),f=C(a),De[a.id]=f,a.addEventListener("dispose",r));const c=n.program;le.updateUBOMapping(a,c);const l=F.render.frame;Ze[a.id]!==l&&(S(a),Ze[a.id]=l)}function C(a){const n=i();a.__bindingPointIndex=n;const f=_e.createBuffer(),c=a.__size,l=a.usage;return _e.bindBuffer(_e.UNIFORM_BUFFER,f),_e.bufferData(_e.UNIFORM_BUFFER,c,l),_e.bindBuffer(_e.UNIFORM_BUFFER,null),_e.bindBufferBase(_e.UNIFORM_BUFFER,n,f),f}function i(){for(let a=0;a0&&(f+=c-l),a.__size=f,a.__cache={},this}function p(a){const n={boundary:0,storage:0};return typeof a=="number"||typeof a=="boolean"?(n.boundary=4,n.storage=4):a.isVector2?(n.boundary=8,n.storage=8):a.isVector3||a.isColor?(n.boundary=16,n.storage=12):a.isVector4?(n.boundary=16,n.storage=16):a.isMatrix3?(n.boundary=48,n.storage=48):a.isMatrix4?(n.boundary=64,n.storage=64):a.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",a),n}function r(a){const n=a.target;n.removeEventListener("dispose",r);const f=G.indexOf(n.__bindingPointIndex);G.splice(f,1),_e.deleteBuffer(De[n.id]),delete De[n.id],delete Ze[n.id]}function t(){for(const a in De)_e.deleteBuffer(De[a]);G=[],De={},Ze={}}return{bind:e,update:g,dispose:t}}class S1{constructor(F={}){const{canvas:q=s2(),context:le=null,depth:De=!0,stencil:Ze=!1,alpha:G=!1,antialias:U=!1,premultipliedAlpha:e=!0,preserveDrawingBuffer:g=!1,powerPreference:C="default",failIfMajorPerformanceCaveat:i=!1}=F;this.isWebGLRenderer=!0;let S;if(le!==null){if(typeof WebGLRenderingContext<"u"&&le instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");S=le.getContextAttributes().alpha}else S=G;const x=new Uint32Array(4),v=new Int32Array(4);let p=null,r=null;const t=[],a=[];this.domElement=q,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Iu,this._useLegacyLights=!1,this.toneMapping=vc,this.toneMappingExposure=1;const n=this;let f=!1,c=0,l=0,m=null,h=-1,b=null;const u=new No,o=new No;let d=null;const w=new da(0);let A=0,_=q.width,y=q.height,E=1,T=null,s=null;const L=new No(0,0,_,y),M=new No(0,0,_,y);let z=!1;const D=new m1;let N=!1,I=!1;const k=new so,B=new Wi,O=new bn,H={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Y(){return m===null?E:1}let j=le;function te(vt,Lt){const ct=q.getContext(vt,Lt);return ct!==null?ct:null}try{const vt={alpha:!0,depth:De,stencil:Ze,antialias:U,premultipliedAlpha:e,preserveDrawingBuffer:g,powerPreference:C,failIfMajorPerformanceCaveat:i};if("setAttribute"in q&&q.setAttribute("data-engine",`three.js r${Y0}`),q.addEventListener("webglcontextlost",rt,!1),q.addEventListener("webglcontextrestored",Ke,!1),q.addEventListener("webglcontextcreationerror",$e,!1),j===null){const Lt="webgl2";if(j=te(Lt,vt),j===null)throw te(Lt)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(vt){throw console.error("THREE.WebGLRenderer: "+vt.message),vt}let ie,ue,J,X,ee,V,Q,oe,$,Z,se,ne,ce,ge,Te,we,Re,be,Ae,me,Le,He,Ue,ke;function Ve(){ie=new AM(j),ie.init(),ue=new mM(j,ie,F),He=new aS(j,ie),J=new nS(j),X=new EM(j),ee=new G4,V=new iS(j,ie,J,ee,ue,He,X),Q=new xM(n),oe=new TM(n),$=new D2(j),Ue=new pM(j,$),Z=new MM(j,$,X,Ue),se=new CM(j,Z,$,X),Ae=new _M(j,ue,V),we=new yM(ee),ne=new V4(n,Q,oe,ie,ue,Ue,we),ce=new vS(n,ee),ge=new Y4,Te=new Q4(ie),be=new dM(n,Q,oe,J,se,S,e),Re=new rS(n,se,ue),ke=new dS(j,X,ue,J),me=new gM(j,ie,X),Le=new SM(j,ie,X),X.programs=ne.programs,n.capabilities=ue,n.extensions=ie,n.properties=ee,n.renderLists=ge,n.shadowMap=Re,n.state=J,n.info=X}Ve();const Ie=new cS(n,j);this.xr=Ie,this.getContext=function(){return j},this.getContextAttributes=function(){return j.getContextAttributes()},this.forceContextLoss=function(){const vt=ie.get("WEBGL_lose_context");vt&&vt.loseContext()},this.forceContextRestore=function(){const vt=ie.get("WEBGL_lose_context");vt&&vt.restoreContext()},this.getPixelRatio=function(){return E},this.setPixelRatio=function(vt){vt!==void 0&&(E=vt,this.setSize(_,y,!1))},this.getSize=function(vt){return vt.set(_,y)},this.setSize=function(vt,Lt,ct=!0){if(Ie.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}_=vt,y=Lt,q.width=Math.floor(vt*E),q.height=Math.floor(Lt*E),ct===!0&&(q.style.width=vt+"px",q.style.height=Lt+"px"),this.setViewport(0,0,vt,Lt)},this.getDrawingBufferSize=function(vt){return vt.set(_*E,y*E).floor()},this.setDrawingBufferSize=function(vt,Lt,ct){_=vt,y=Lt,E=ct,q.width=Math.floor(vt*ct),q.height=Math.floor(Lt*ct),this.setViewport(0,0,vt,Lt)},this.getCurrentViewport=function(vt){return vt.copy(u)},this.getViewport=function(vt){return vt.copy(L)},this.setViewport=function(vt,Lt,ct,Tt){vt.isVector4?L.set(vt.x,vt.y,vt.z,vt.w):L.set(vt,Lt,ct,Tt),J.viewport(u.copy(L).multiplyScalar(E).round())},this.getScissor=function(vt){return vt.copy(M)},this.setScissor=function(vt,Lt,ct,Tt){vt.isVector4?M.set(vt.x,vt.y,vt.z,vt.w):M.set(vt,Lt,ct,Tt),J.scissor(o.copy(M).multiplyScalar(E).round())},this.getScissorTest=function(){return z},this.setScissorTest=function(vt){J.setScissorTest(z=vt)},this.setOpaqueSort=function(vt){T=vt},this.setTransparentSort=function(vt){s=vt},this.getClearColor=function(vt){return vt.copy(be.getClearColor())},this.setClearColor=function(){be.setClearColor.apply(be,arguments)},this.getClearAlpha=function(){return be.getClearAlpha()},this.setClearAlpha=function(){be.setClearAlpha.apply(be,arguments)},this.clear=function(vt=!0,Lt=!0,ct=!0){let Tt=0;if(vt){let Bt=!1;if(m!==null){const ir=m.texture.format;Bt=ir===i1||ir===n1||ir===r1}if(Bt){const ir=m.texture.type,pt=ir===dc||ir===uv||ir===$y||ir===$v||ir===e1||ir===t1,Xt=be.getClearColor(),Kt=be.getClearAlpha(),or=Xt.r,$t=Xt.g,gt=Xt.b;pt?(x[0]=or,x[1]=$t,x[2]=gt,x[3]=Kt,j.clearBufferuiv(j.COLOR,0,x)):(v[0]=or,v[1]=$t,v[2]=gt,v[3]=Kt,j.clearBufferiv(j.COLOR,0,v))}else Tt|=j.COLOR_BUFFER_BIT}Lt&&(Tt|=j.DEPTH_BUFFER_BIT),ct&&(Tt|=j.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),j.clear(Tt)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){q.removeEventListener("webglcontextlost",rt,!1),q.removeEventListener("webglcontextrestored",Ke,!1),q.removeEventListener("webglcontextcreationerror",$e,!1),ge.dispose(),Te.dispose(),ee.dispose(),Q.dispose(),oe.dispose(),se.dispose(),Ue.dispose(),ke.dispose(),ne.dispose(),Ie.dispose(),Ie.removeEventListener("sessionstart",ze),Ie.removeEventListener("sessionend",Xe),Je.stop()};function rt(vt){vt.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),f=!0}function Ke(){console.log("THREE.WebGLRenderer: Context Restored."),f=!1;const vt=X.autoReset,Lt=Re.enabled,ct=Re.autoUpdate,Tt=Re.needsUpdate,Bt=Re.type;Ve(),X.autoReset=vt,Re.enabled=Lt,Re.autoUpdate=ct,Re.needsUpdate=Tt,Re.type=Bt}function $e(vt){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",vt.statusMessage)}function lt(vt){const Lt=vt.target;Lt.removeEventListener("dispose",lt),ht(Lt)}function ht(vt){dt(vt),ee.remove(vt)}function dt(vt){const Lt=ee.get(vt).programs;Lt!==void 0&&(Lt.forEach(function(ct){ne.releaseProgram(ct)}),vt.isShaderMaterial&&ne.releaseShaderCache(vt))}this.renderBufferDirect=function(vt,Lt,ct,Tt,Bt,ir){Lt===null&&(Lt=H);const pt=Bt.isMesh&&Bt.matrixWorld.determinant()<0,Xt=it(vt,Lt,ct,Tt,Bt);J.setMaterial(Tt,pt);let Kt=ct.index,or=1;if(Tt.wireframe===!0){if(Kt=Z.getWireframeAttribute(ct),Kt===void 0)return;or=2}const $t=ct.drawRange,gt=ct.attributes.position;let st=$t.start*or,At=($t.start+$t.count)*or;ir!==null&&(st=Math.max(st,ir.start*or),At=Math.min(At,(ir.start+ir.count)*or)),Kt!==null?(st=Math.max(st,0),At=Math.min(At,Kt.count)):gt!=null&&(st=Math.max(st,0),At=Math.min(At,gt.count));const Ct=At-st;if(Ct<0||Ct===1/0)return;Ue.setup(Bt,Tt,Xt,ct,Kt);let It,Pt=me;if(Kt!==null&&(It=$.get(Kt),Pt=Le,Pt.setIndex(It)),Bt.isMesh)Tt.wireframe===!0?(J.setLineWidth(Tt.wireframeLinewidth*Y()),Pt.setMode(j.LINES)):Pt.setMode(j.TRIANGLES);else if(Bt.isLine){let kt=Tt.linewidth;kt===void 0&&(kt=1),J.setLineWidth(kt*Y()),Bt.isLineSegments?Pt.setMode(j.LINES):Bt.isLineLoop?Pt.setMode(j.LINE_LOOP):Pt.setMode(j.LINE_STRIP)}else Bt.isPoints?Pt.setMode(j.POINTS):Bt.isSprite&&Pt.setMode(j.TRIANGLES);if(Bt.isBatchedMesh)Pt.renderMultiDraw(Bt._multiDrawStarts,Bt._multiDrawCounts,Bt._multiDrawCount);else if(Bt.isInstancedMesh)Pt.renderInstances(st,Ct,Bt.count);else if(ct.isInstancedBufferGeometry){const kt=ct._maxInstanceCount!==void 0?ct._maxInstanceCount:1/0,Vt=Math.min(ct.instanceCount,kt);Pt.renderInstances(st,Ct,Vt)}else Pt.render(st,Ct)};function xt(vt,Lt,ct){vt.transparent===!0&&vt.side===mf&&vt.forceSinglePass===!1?(vt.side=Vs,vt.needsUpdate=!0,Me(vt,Lt,ct),vt.side=gc,vt.needsUpdate=!0,Me(vt,Lt,ct),vt.side=mf):Me(vt,Lt,ct)}this.compile=function(vt,Lt,ct=null){ct===null&&(ct=vt),r=Te.get(ct),r.init(),a.push(r),ct.traverseVisible(function(Bt){Bt.isLight&&Bt.layers.test(Lt.layers)&&(r.pushLight(Bt),Bt.castShadow&&r.pushShadow(Bt))}),vt!==ct&&vt.traverseVisible(function(Bt){Bt.isLight&&Bt.layers.test(Lt.layers)&&(r.pushLight(Bt),Bt.castShadow&&r.pushShadow(Bt))}),r.setupLights(n._useLegacyLights);const Tt=new Set;return vt.traverse(function(Bt){const ir=Bt.material;if(ir)if(Array.isArray(ir))for(let pt=0;pt{function ir(){if(Tt.forEach(function(pt){ee.get(pt).currentProgram.isReady()&&Tt.delete(pt)}),Tt.size===0){Bt(vt);return}setTimeout(ir,10)}ie.get("KHR_parallel_shader_compile")!==null?ir():setTimeout(ir,10)})};let St=null;function nt(vt){St&&St(vt)}function ze(){Je.stop()}function Xe(){Je.start()}const Je=new y1;Je.setAnimationLoop(nt),typeof self<"u"&&Je.setContext(self),this.setAnimationLoop=function(vt){St=vt,Ie.setAnimationLoop(vt),vt===null?Je.stop():Je.start()},Ie.addEventListener("sessionstart",ze),Ie.addEventListener("sessionend",Xe),this.render=function(vt,Lt){if(Lt!==void 0&&Lt.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(f===!0)return;vt.matrixWorldAutoUpdate===!0&&vt.updateMatrixWorld(),Lt.parent===null&&Lt.matrixWorldAutoUpdate===!0&&Lt.updateMatrixWorld(),Ie.enabled===!0&&Ie.isPresenting===!0&&(Ie.cameraAutoUpdate===!0&&Ie.updateCamera(Lt),Lt=Ie.getCamera()),vt.isScene===!0&&vt.onBeforeRender(n,vt,Lt,m),r=Te.get(vt,a.length),r.init(),a.push(r),k.multiplyMatrices(Lt.projectionMatrix,Lt.matrixWorldInverse),D.setFromProjectionMatrix(k),I=this.localClippingEnabled,N=we.init(this.clippingPlanes,I),p=ge.get(vt,t.length),p.init(),t.push(p),We(vt,Lt,0,n.sortObjects),p.finish(),n.sortObjects===!0&&p.sort(T,s),this.info.render.frame++,N===!0&&we.beginShadows();const ct=r.state.shadowsArray;if(Re.render(ct,vt,Lt),N===!0&&we.endShadows(),this.info.autoReset===!0&&this.info.reset(),(Ie.enabled===!1||Ie.isPresenting===!1||Ie.hasDepthSensing()===!1)&&be.render(p,vt),r.setupLights(n._useLegacyLights),Lt.isArrayCamera){const Tt=Lt.cameras;for(let Bt=0,ir=Tt.length;Bt0?r=a[a.length-1]:r=null,t.pop(),t.length>0?p=t[t.length-1]:p=null};function We(vt,Lt,ct,Tt){if(vt.visible===!1)return;if(vt.layers.test(Lt.layers)){if(vt.isGroup)ct=vt.renderOrder;else if(vt.isLOD)vt.autoUpdate===!0&&vt.update(Lt);else if(vt.isLight)r.pushLight(vt),vt.castShadow&&r.pushShadow(vt);else if(vt.isSprite){if(!vt.frustumCulled||D.intersectsSprite(vt)){Tt&&O.setFromMatrixPosition(vt.matrixWorld).applyMatrix4(k);const pt=se.update(vt),Xt=vt.material;Xt.visible&&p.push(vt,pt,Xt,ct,O.z,null)}}else if((vt.isMesh||vt.isLine||vt.isPoints)&&(!vt.frustumCulled||D.intersectsObject(vt))){const pt=se.update(vt),Xt=vt.material;if(Tt&&(vt.boundingSphere!==void 0?(vt.boundingSphere===null&&vt.computeBoundingSphere(),O.copy(vt.boundingSphere.center)):(pt.boundingSphere===null&&pt.computeBoundingSphere(),O.copy(pt.boundingSphere.center)),O.applyMatrix4(vt.matrixWorld).applyMatrix4(k)),Array.isArray(Xt)){const Kt=pt.groups;for(let or=0,$t=Kt.length;or<$t;or++){const gt=Kt[or],st=Xt[gt.materialIndex];st&&st.visible&&p.push(vt,pt,st,ct,O.z,gt)}}else Xt.visible&&p.push(vt,pt,Xt,ct,O.z,null)}}const ir=vt.children;for(let pt=0,Xt=ir.length;pt0&&xe(Bt,ir,Lt,ct),Tt&&J.viewport(u.copy(Tt)),Bt.length>0&&ye(Bt,Lt,ct),ir.length>0&&ye(ir,Lt,ct),pt.length>0&&ye(pt,Lt,ct),J.buffers.depth.setTest(!0),J.buffers.depth.setMask(!0),J.buffers.color.setMask(!0),J.setPolygonOffset(!1)}function xe(vt,Lt,ct,Tt){if((ct.isScene===!0?ct.overrideMaterial:null)!==null)return;if(r.state.transmissionRenderTarget===null){r.state.transmissionRenderTarget=new nh(1,1,{generateMipmaps:!0,type:ie.has("EXT_color_buffer_half_float")||ie.has("EXT_color_buffer_float")?lp:dc,minFilter:rh,samples:4,stencilBuffer:Ze});const or=ee.get(r.state.transmissionRenderTarget);or.__isTransmissionRenderTarget=!0}const ir=r.state.transmissionRenderTarget;n.getDrawingBufferSize(B),ir.setSize(B.x,B.y);const pt=n.getRenderTarget();n.setRenderTarget(ir),n.getClearColor(w),A=n.getClearAlpha(),A<1&&n.setClearColor(16777215,.5),n.clear();const Xt=n.toneMapping;n.toneMapping=vc,ye(vt,ct,Tt),V.updateMultisampleRenderTarget(ir),V.updateRenderTargetMipmap(ir);let Kt=!1;for(let or=0,$t=Lt.length;or<$t;or++){const gt=Lt[or],st=gt.object,At=gt.geometry,Ct=gt.material,It=gt.group;if(Ct.side===mf&&st.layers.test(Tt.layers)){const Pt=Ct.side;Ct.side=Vs,Ct.needsUpdate=!0,Ee(st,ct,Tt,At,Ct,It),Ct.side=Pt,Ct.needsUpdate=!0,Kt=!0}}Kt===!0&&(V.updateMultisampleRenderTarget(ir),V.updateRenderTargetMipmap(ir)),n.setRenderTarget(pt),n.setClearColor(w,A),n.toneMapping=Xt}function ye(vt,Lt,ct){const Tt=Lt.isScene===!0?Lt.overrideMaterial:null;for(let Bt=0,ir=vt.length;Bt0),gt=!!ct.morphAttributes.position,st=!!ct.morphAttributes.normal,At=!!ct.morphAttributes.color;let Ct=vc;Tt.toneMapped&&(m===null||m.isXRRenderTarget===!0)&&(Ct=n.toneMapping);const It=ct.morphAttributes.position||ct.morphAttributes.normal||ct.morphAttributes.color,Pt=It!==void 0?It.length:0,kt=ee.get(Tt),Vt=r.state.lights;if(N===!0&&(I===!0||vt!==b)){const Qt=vt===b&&Tt.id===h;we.setState(Tt,vt,Qt)}let Jt=!1;Tt.version===kt.__version?(kt.needsLights&&kt.lightsStateVersion!==Vt.state.version||kt.outputColorSpace!==Xt||Bt.isBatchedMesh&&kt.batching===!1||!Bt.isBatchedMesh&&kt.batching===!0||Bt.isInstancedMesh&&kt.instancing===!1||!Bt.isInstancedMesh&&kt.instancing===!0||Bt.isSkinnedMesh&&kt.skinning===!1||!Bt.isSkinnedMesh&&kt.skinning===!0||Bt.isInstancedMesh&&kt.instancingColor===!0&&Bt.instanceColor===null||Bt.isInstancedMesh&&kt.instancingColor===!1&&Bt.instanceColor!==null||Bt.isInstancedMesh&&kt.instancingMorph===!0&&Bt.morphTexture===null||Bt.isInstancedMesh&&kt.instancingMorph===!1&&Bt.morphTexture!==null||kt.envMap!==Kt||Tt.fog===!0&&kt.fog!==ir||kt.numClippingPlanes!==void 0&&(kt.numClippingPlanes!==we.numPlanes||kt.numIntersection!==we.numIntersection)||kt.vertexAlphas!==or||kt.vertexTangents!==$t||kt.morphTargets!==gt||kt.morphNormals!==st||kt.morphColors!==At||kt.toneMapping!==Ct||kt.morphTargetsCount!==Pt)&&(Jt=!0):(Jt=!0,kt.__version=Tt.version);let ur=kt.currentProgram;Jt===!0&&(ur=Me(Tt,Lt,Bt));let hr=!1,vr=!1,Ye=!1;const Ge=ur.getUniforms(),Nt=kt.uniforms;if(J.useProgram(ur.program)&&(hr=!0,vr=!0,Ye=!0),Tt.id!==h&&(h=Tt.id,vr=!0),hr||b!==vt){Ge.setValue(j,"projectionMatrix",vt.projectionMatrix),Ge.setValue(j,"viewMatrix",vt.matrixWorldInverse);const Qt=Ge.map.cameraPosition;Qt!==void 0&&Qt.setValue(j,O.setFromMatrixPosition(vt.matrixWorld)),ue.logarithmicDepthBuffer&&Ge.setValue(j,"logDepthBufFC",2/(Math.log(vt.far+1)/Math.LN2)),(Tt.isMeshPhongMaterial||Tt.isMeshToonMaterial||Tt.isMeshLambertMaterial||Tt.isMeshBasicMaterial||Tt.isMeshStandardMaterial||Tt.isShaderMaterial)&&Ge.setValue(j,"isOrthographic",vt.isOrthographicCamera===!0),b!==vt&&(b=vt,vr=!0,Ye=!0)}if(Bt.isSkinnedMesh){Ge.setOptional(j,Bt,"bindMatrix"),Ge.setOptional(j,Bt,"bindMatrixInverse");const Qt=Bt.skeleton;Qt&&(Qt.boneTexture===null&&Qt.computeBoneTexture(),Ge.setValue(j,"boneTexture",Qt.boneTexture,V))}Bt.isBatchedMesh&&(Ge.setOptional(j,Bt,"batchingTexture"),Ge.setValue(j,"batchingTexture",Bt._matricesTexture,V));const Ot=ct.morphAttributes;if((Ot.position!==void 0||Ot.normal!==void 0||Ot.color!==void 0)&&Ae.update(Bt,ct,ur),(vr||kt.receiveShadow!==Bt.receiveShadow)&&(kt.receiveShadow=Bt.receiveShadow,Ge.setValue(j,"receiveShadow",Bt.receiveShadow)),Tt.isMeshGouraudMaterial&&Tt.envMap!==null&&(Nt.envMap.value=Kt,Nt.flipEnvMap.value=Kt.isCubeTexture&&Kt.isRenderTargetTexture===!1?-1:1),Tt.isMeshStandardMaterial&&Tt.envMap===null&&Lt.environment!==null&&(Nt.envMapIntensity.value=Lt.environmentIntensity),vr&&(Ge.setValue(j,"toneMappingExposure",n.toneMappingExposure),kt.needsLights&&mt(Nt,Ye),ir&&Tt.fog===!0&&ce.refreshFogUniforms(Nt,ir),ce.refreshMaterialUniforms(Nt,Tt,E,y,r.state.transmissionRenderTarget),op.upload(j,Ne(kt),Nt,V)),Tt.isShaderMaterial&&Tt.uniformsNeedUpdate===!0&&(op.upload(j,Ne(kt),Nt,V),Tt.uniformsNeedUpdate=!1),Tt.isSpriteMaterial&&Ge.setValue(j,"center",Bt.center),Ge.setValue(j,"modelViewMatrix",Bt.modelViewMatrix),Ge.setValue(j,"normalMatrix",Bt.normalMatrix),Ge.setValue(j,"modelMatrix",Bt.matrixWorld),Tt.isShaderMaterial||Tt.isRawShaderMaterial){const Qt=Tt.uniformsGroups;for(let tr=0,fr=Qt.length;tr0&&V.useMultisampledRTT(vt)===!1?Bt=ee.get(vt).__webglMultisampledFramebuffer:Array.isArray($t)?Bt=$t[ct]:Bt=$t,u.copy(vt.viewport),o.copy(vt.scissor),d=vt.scissorTest}else u.copy(L).multiplyScalar(E).floor(),o.copy(M).multiplyScalar(E).floor(),d=z;if(J.bindFramebuffer(j.FRAMEBUFFER,Bt)&&Tt&&J.drawBuffers(vt,Bt),J.viewport(u),J.scissor(o),J.setScissorTest(d),ir){const Kt=ee.get(vt.texture);j.framebufferTexture2D(j.FRAMEBUFFER,j.COLOR_ATTACHMENT0,j.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Kt.__webglTexture,ct)}else if(pt){const Kt=ee.get(vt.texture),or=Lt||0;j.framebufferTextureLayer(j.FRAMEBUFFER,j.COLOR_ATTACHMENT0,Kt.__webglTexture,ct||0,or)}h=-1},this.readRenderTargetPixels=function(vt,Lt,ct,Tt,Bt,ir,pt){if(!(vt&&vt.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Xt=ee.get(vt).__webglFramebuffer;if(vt.isWebGLCubeRenderTarget&&pt!==void 0&&(Xt=Xt[pt]),Xt){J.bindFramebuffer(j.FRAMEBUFFER,Xt);try{const Kt=vt.texture,or=Kt.format,$t=Kt.type;if(or!==zu&&He.convert(or)!==j.getParameter(j.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const gt=$t===lp&&(ie.has("EXT_color_buffer_half_float")||ie.has("EXT_color_buffer_float"));if($t!==dc&&He.convert($t)!==j.getParameter(j.IMPLEMENTATION_COLOR_READ_TYPE)&&$t!==cc&&!gt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Lt>=0&&Lt<=vt.width-Tt&&ct>=0&&ct<=vt.height-Bt&&j.readPixels(Lt,ct,Tt,Bt,He.convert(or),He.convert($t),ir)}finally{const Kt=m!==null?ee.get(m).__webglFramebuffer:null;J.bindFramebuffer(j.FRAMEBUFFER,Kt)}}},this.copyFramebufferToTexture=function(vt,Lt,ct=0){const Tt=Math.pow(2,-ct),Bt=Math.floor(Lt.image.width*Tt),ir=Math.floor(Lt.image.height*Tt);V.setTexture2D(Lt,0),j.copyTexSubImage2D(j.TEXTURE_2D,ct,0,0,vt.x,vt.y,Bt,ir),J.unbindTexture()},this.copyTextureToTexture=function(vt,Lt,ct,Tt=0){const Bt=Lt.image.width,ir=Lt.image.height,pt=He.convert(ct.format),Xt=He.convert(ct.type);V.setTexture2D(ct,0),j.pixelStorei(j.UNPACK_FLIP_Y_WEBGL,ct.flipY),j.pixelStorei(j.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ct.premultiplyAlpha),j.pixelStorei(j.UNPACK_ALIGNMENT,ct.unpackAlignment),Lt.isDataTexture?j.texSubImage2D(j.TEXTURE_2D,Tt,vt.x,vt.y,Bt,ir,pt,Xt,Lt.image.data):Lt.isCompressedTexture?j.compressedTexSubImage2D(j.TEXTURE_2D,Tt,vt.x,vt.y,Lt.mipmaps[0].width,Lt.mipmaps[0].height,pt,Lt.mipmaps[0].data):j.texSubImage2D(j.TEXTURE_2D,Tt,vt.x,vt.y,pt,Xt,Lt.image),Tt===0&&ct.generateMipmaps&&j.generateMipmap(j.TEXTURE_2D),J.unbindTexture()},this.copyTextureToTexture3D=function(vt,Lt,ct,Tt,Bt=0){const ir=Math.round(vt.max.x-vt.min.x),pt=Math.round(vt.max.y-vt.min.y),Xt=vt.max.z-vt.min.z+1,Kt=He.convert(Tt.format),or=He.convert(Tt.type);let $t;if(Tt.isData3DTexture)V.setTexture3D(Tt,0),$t=j.TEXTURE_3D;else if(Tt.isDataArrayTexture||Tt.isCompressedArrayTexture)V.setTexture2DArray(Tt,0),$t=j.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}j.pixelStorei(j.UNPACK_FLIP_Y_WEBGL,Tt.flipY),j.pixelStorei(j.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Tt.premultiplyAlpha),j.pixelStorei(j.UNPACK_ALIGNMENT,Tt.unpackAlignment);const gt=j.getParameter(j.UNPACK_ROW_LENGTH),st=j.getParameter(j.UNPACK_IMAGE_HEIGHT),At=j.getParameter(j.UNPACK_SKIP_PIXELS),Ct=j.getParameter(j.UNPACK_SKIP_ROWS),It=j.getParameter(j.UNPACK_SKIP_IMAGES),Pt=ct.isCompressedTexture?ct.mipmaps[Bt]:ct.image;j.pixelStorei(j.UNPACK_ROW_LENGTH,Pt.width),j.pixelStorei(j.UNPACK_IMAGE_HEIGHT,Pt.height),j.pixelStorei(j.UNPACK_SKIP_PIXELS,vt.min.x),j.pixelStorei(j.UNPACK_SKIP_ROWS,vt.min.y),j.pixelStorei(j.UNPACK_SKIP_IMAGES,vt.min.z),ct.isDataTexture||ct.isData3DTexture?j.texSubImage3D($t,Bt,Lt.x,Lt.y,Lt.z,ir,pt,Xt,Kt,or,Pt.data):Tt.isCompressedArrayTexture?j.compressedTexSubImage3D($t,Bt,Lt.x,Lt.y,Lt.z,ir,pt,Xt,Kt,Pt.data):j.texSubImage3D($t,Bt,Lt.x,Lt.y,Lt.z,ir,pt,Xt,Kt,or,Pt),j.pixelStorei(j.UNPACK_ROW_LENGTH,gt),j.pixelStorei(j.UNPACK_IMAGE_HEIGHT,st),j.pixelStorei(j.UNPACK_SKIP_PIXELS,At),j.pixelStorei(j.UNPACK_SKIP_ROWS,Ct),j.pixelStorei(j.UNPACK_SKIP_IMAGES,It),Bt===0&&Tt.generateMipmaps&&j.generateMipmap($t),J.unbindTexture()},this.initTexture=function(vt){vt.isCubeTexture?V.setTextureCube(vt,0):vt.isData3DTexture?V.setTexture3D(vt,0):vt.isDataArrayTexture||vt.isCompressedArrayTexture?V.setTexture2DArray(vt,0):V.setTexture2D(vt,0),J.unbindTexture()},this.resetState=function(){c=0,l=0,m=null,J.reset(),Ue.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return yf}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(F){this._outputColorSpace=F;const q=this.getContext();q.drawingBufferColorSpace=F===X0?"display-p3":"srgb",q.unpackColorSpace=Fa.workingColorSpace===gp?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(F){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=F}}class E1 extends Bo{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Ss,this.environmentIntensity=1,this.environmentRotation=new Ss,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(F,q){return super.copy(F,q),F.background!==null&&(this.background=F.background.clone()),F.environment!==null&&(this.environment=F.environment.clone()),F.fog!==null&&(this.fog=F.fog.clone()),this.backgroundBlurriness=F.backgroundBlurriness,this.backgroundIntensity=F.backgroundIntensity,this.backgroundRotation.copy(F.backgroundRotation),this.environmentIntensity=F.environmentIntensity,this.environmentRotation.copy(F.environmentRotation),F.overrideMaterial!==null&&(this.overrideMaterial=F.overrideMaterial.clone()),this.matrixAutoUpdate=F.matrixAutoUpdate,this}toJSON(F){const q=super.toJSON(F);return this.fog!==null&&(q.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(q.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(q.object.backgroundIntensity=this.backgroundIntensity),q.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(q.object.environmentIntensity=this.environmentIntensity),q.object.environmentRotation=this.environmentRotation.toArray(),q}}class pS{constructor(F,q){this.isInterleavedBuffer=!0,this.array=F,this.stride=q,this.count=F!==void 0?F.length/q:0,this.usage=U0,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=xf()}onUploadCallback(){}set needsUpdate(F){F===!0&&this.version++}get updateRange(){return l1("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(F){return this.usage=F,this}addUpdateRange(F,q){this.updateRanges.push({start:F,count:q})}clearUpdateRanges(){this.updateRanges.length=0}copy(F){return this.array=new F.array.constructor(F.array),this.count=F.count,this.stride=F.stride,this.usage=F.usage,this}copyAt(F,q,le){F*=this.stride,le*=q.stride;for(let De=0,Ze=this.stride;DeF.far||q.push({distance:e,point:Uv.clone(),uv:hu.getInterpolation(Uv,qd,Vv,ep,Ey,P0,_y,new Wi),face:null,object:this})}copy(F,q){return super.copy(F,q),F.center!==void 0&&this.center.copy(F.center),this.material=F.material,this}}function tp(_e,F,q,le,De,Ze){ev.subVectors(_e,q).addScalar(.5).multiply(le),De!==void 0?(Hv.x=Ze*ev.x-De*ev.y,Hv.y=De*ev.x+Ze*ev.y):Hv.copy(ev),_e.copy(F),_e.x+=Hv.x,_e.y+=Hv.y,_e.applyMatrix4(C1)}class bp extends ah{constructor(F){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new da(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(F)}copy(F){return super.copy(F),this.color.copy(F.color),this.map=F.map,this.linewidth=F.linewidth,this.linecap=F.linecap,this.linejoin=F.linejoin,this.fog=F.fog,this}}const Cy=new bn,Ly=new bn,Py=new so,R0=new td,rp=new ed;class gS extends Bo{constructor(F=new Ws,q=new bp){super(),this.isLine=!0,this.type="Line",this.geometry=F,this.material=q,this.updateMorphTargets()}copy(F,q){return super.copy(F,q),this.material=Array.isArray(F.material)?F.material.slice():F.material,this.geometry=F.geometry,this}computeLineDistances(){const F=this.geometry;if(F.index===null){const q=F.attributes.position,le=[0];for(let De=1,Ze=q.count;Dee)continue;S.applyMatrix4(this.matrixWorld);const h=F.ray.origin.distanceTo(S);hF.far||q.push({distance:h,point:i.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{const t=Math.max(0,G.start),a=Math.min(r.count,G.start+G.count);for(let n=t,f=a-1;ne)continue;S.applyMatrix4(this.matrixWorld);const l=F.ray.origin.distanceTo(S);lF.far||q.push({distance:l,point:i.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const q=this.geometry.morphAttributes,le=Object.keys(q);if(le.length>0){const De=q[le[0]];if(De!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let Ze=0,G=De.length;Ze0){const De=q[le[0]];if(De!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let Ze=0,G=De.length;ZeDe.far)return;Ze.push({distance:g,distanceToRay:Math.sqrt(U),point:e,index:F,face:null,object:G})}}class yS extends Es{constructor(F,q,le,De,Ze,G,U,e,g){super(F,q,le,De,Ze,G,U,e,g),this.isCanvasTexture=!0,this.needsUpdate=!0}}class wp extends Ws{constructor(F=1,q=32,le=16,De=0,Ze=Math.PI*2,G=0,U=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:F,widthSegments:q,heightSegments:le,phiStart:De,phiLength:Ze,thetaStart:G,thetaLength:U},q=Math.max(3,Math.floor(q)),le=Math.max(2,Math.floor(le));const e=Math.min(G+U,Math.PI);let g=0;const C=[],i=new bn,S=new bn,x=[],v=[],p=[],r=[];for(let t=0;t<=le;t++){const a=[],n=t/le;let f=0;t===0&&G===0?f=.5/q:t===le&&e===Math.PI&&(f=-.5/q);for(let c=0;c<=q;c++){const l=c/q;i.x=-F*Math.cos(De+l*Ze)*Math.sin(G+n*U),i.y=F*Math.cos(G+n*U),i.z=F*Math.sin(De+l*Ze)*Math.sin(G+n*U),v.push(i.x,i.y,i.z),S.copy(i).normalize(),p.push(S.x,S.y,S.z),r.push(l+f,1-n),a.push(g++)}C.push(a)}for(let t=0;t0)&&x.push(n,f,l),(t!==le-1||eF.clone()))}}class wS{constructor(F,q){if(this.force=F,q.length!==4)throw new Error("Weights for RK4 must be of length 4");this.weights=q}simulate(F,q){let le=q.bodies.map(S=>({kv:[S.acceleration.clone()],kx:[S.velocity.clone()]}));const De=this.getInterKV(q.bodies,le,0,F/2),Ze=this.getInterKX(q.bodies,le,0,F/2);le.forEach((S,x)=>{S.kv.push(De[x]),S.kx.push(Ze[x])});const G=this.getInterKV(q.bodies,le,1,F/2),U=this.getInterKX(q.bodies,le,1,F/2);le.forEach((S,x)=>{S.kv.push(G[x]),S.kx.push(U[x])});const e=this.getInterKV(q.bodies,le,2,F),g=this.getInterKX(q.bodies,le,2,F);le.forEach((S,x)=>{S.kv.push(e[x]),S.kx.push(g[x])});const C=q.bodies.map((S,x)=>{const v=new bn,p=new bn;return le[x].kx.forEach((r,t)=>{v.add(r.multiplyScalar(this.weights[t]))}),le[x].kv.forEach((r,t)=>{p.add(r.multiplyScalar(this.weights[t]))}),S.clone(v.multiplyScalar(F/6).add(S.position),p.multiplyScalar(F/6).add(S.velocity))}),i=this.force.getForces(C);return C.forEach((S,x)=>{S.acceleration=i[x].divideScalar(S.mass)}),new Tp(C)}getInterKV(F,q,le,De){let Ze=F.map((G,U)=>{let e=G.clone();return e.position.add(q[U].kx[le].clone().multiplyScalar(De)),e});return this.force.getForces(Ze).map((G,U)=>G.divideScalar(F[U].mass))}getInterKX(F,q,le,De){return F.map((Ze,G)=>Ze.velocity.clone().add(q[G].kv[le].clone().multiplyScalar(De)))}}/** + * lil-gui + * https://lil-gui.georgealways.com + * @version 0.19.2 + * @author George Michael Brower + * @license MIT + */class Ou{constructor(F,q,le,De,Ze="div"){this.parent=F,this.object=q,this.property=le,this._disabled=!1,this._hidden=!1,this.initialValue=this.getValue(),this.domElement=document.createElement(Ze),this.domElement.classList.add("controller"),this.domElement.classList.add(De),this.$name=document.createElement("div"),this.$name.classList.add("name"),Ou.nextNameID=Ou.nextNameID||0,this.$name.id=`lil-gui-name-${++Ou.nextNameID}`,this.$widget=document.createElement("div"),this.$widget.classList.add("widget"),this.$disable=this.$widget,this.domElement.appendChild(this.$name),this.domElement.appendChild(this.$widget),this.domElement.addEventListener("keydown",G=>G.stopPropagation()),this.domElement.addEventListener("keyup",G=>G.stopPropagation()),this.parent.children.push(this),this.parent.controllers.push(this),this.parent.$children.appendChild(this.domElement),this._listenCallback=this._listenCallback.bind(this),this.name(le)}name(F){return this._name=F,this.$name.textContent=F,this}onChange(F){return this._onChange=F,this}_callOnChange(){this.parent._callOnChange(this),this._onChange!==void 0&&this._onChange.call(this,this.getValue()),this._changed=!0}onFinishChange(F){return this._onFinishChange=F,this}_callOnFinishChange(){this._changed&&(this.parent._callOnFinishChange(this),this._onFinishChange!==void 0&&this._onFinishChange.call(this,this.getValue())),this._changed=!1}reset(){return this.setValue(this.initialValue),this._callOnFinishChange(),this}enable(F=!0){return this.disable(!F)}disable(F=!0){return F===this._disabled?this:(this._disabled=F,this.domElement.classList.toggle("disabled",F),this.$disable.toggleAttribute("disabled",F),this)}show(F=!0){return this._hidden=!F,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}options(F){const q=this.parent.add(this.object,this.property,F);return q.name(this._name),this.destroy(),q}min(F){return this}max(F){return this}step(F){return this}decimals(F){return this}listen(F=!0){return this._listening=F,this._listenCallbackID!==void 0&&(cancelAnimationFrame(this._listenCallbackID),this._listenCallbackID=void 0),this._listening&&this._listenCallback(),this}_listenCallback(){this._listenCallbackID=requestAnimationFrame(this._listenCallback);const F=this.save();F!==this._listenPrevValue&&this.updateDisplay(),this._listenPrevValue=F}getValue(){return this.object[this.property]}setValue(F){return this.getValue()!==F&&(this.object[this.property]=F,this._callOnChange(),this.updateDisplay()),this}updateDisplay(){return this}load(F){return this.setValue(F),this._callOnFinishChange(),this}save(){return this.getValue()}destroy(){this.listen(!1),this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.controllers.splice(this.parent.controllers.indexOf(this),1),this.parent.$children.removeChild(this.domElement)}}class TS extends Ou{constructor(F,q,le){super(F,q,le,"boolean","label"),this.$input=document.createElement("input"),this.$input.setAttribute("type","checkbox"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$input.addEventListener("change",()=>{this.setValue(this.$input.checked),this._callOnFinishChange()}),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.checked=this.getValue(),this}}function W0(_e){let F,q;return(F=_e.match(/(#|0x)?([a-f0-9]{6})/i))?q=F[2]:(F=_e.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?q=parseInt(F[1]).toString(16).padStart(2,0)+parseInt(F[2]).toString(16).padStart(2,0)+parseInt(F[3]).toString(16).padStart(2,0):(F=_e.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(q=F[1]+F[1]+F[2]+F[2]+F[3]+F[3]),q?"#"+q:!1}const AS={isPrimitive:!0,match:_e=>typeof _e=="string",fromHexString:W0,toHexString:W0},Qv={isPrimitive:!0,match:_e=>typeof _e=="number",fromHexString:_e=>parseInt(_e.substring(1),16),toHexString:_e=>"#"+_e.toString(16).padStart(6,0)},MS={isPrimitive:!1,match:_e=>Array.isArray(_e),fromHexString(_e,F,q=1){const le=Qv.fromHexString(_e);F[0]=(le>>16&255)/255*q,F[1]=(le>>8&255)/255*q,F[2]=(le&255)/255*q},toHexString([_e,F,q],le=1){le=255/le;const De=_e*le<<16^F*le<<8^q*le<<0;return Qv.toHexString(De)}},SS={isPrimitive:!1,match:_e=>Object(_e)===_e,fromHexString(_e,F,q=1){const le=Qv.fromHexString(_e);F.r=(le>>16&255)/255*q,F.g=(le>>8&255)/255*q,F.b=(le&255)/255*q},toHexString({r:_e,g:F,b:q},le=1){le=255/le;const De=_e*le<<16^F*le<<8^q*le<<0;return Qv.toHexString(De)}},ES=[AS,Qv,MS,SS];function _S(_e){return ES.find(F=>F.match(_e))}class CS extends Ou{constructor(F,q,le,De){super(F,q,le,"color"),this.$input=document.createElement("input"),this.$input.setAttribute("type","color"),this.$input.setAttribute("tabindex",-1),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$text=document.createElement("input"),this.$text.setAttribute("type","text"),this.$text.setAttribute("spellcheck","false"),this.$text.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$display.appendChild(this.$input),this.$widget.appendChild(this.$display),this.$widget.appendChild(this.$text),this._format=_S(this.initialValue),this._rgbScale=De,this._initialValueHexString=this.save(),this._textFocused=!1,this.$input.addEventListener("input",()=>{this._setValueFromHexString(this.$input.value)}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$text.addEventListener("input",()=>{const Ze=W0(this.$text.value);Ze&&this._setValueFromHexString(Ze)}),this.$text.addEventListener("focus",()=>{this._textFocused=!0,this.$text.select()}),this.$text.addEventListener("blur",()=>{this._textFocused=!1,this.updateDisplay(),this._callOnFinishChange()}),this.$disable=this.$text,this.updateDisplay()}reset(){return this._setValueFromHexString(this._initialValueHexString),this}_setValueFromHexString(F){if(this._format.isPrimitive){const q=this._format.fromHexString(F);this.setValue(q)}else this._format.fromHexString(F,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}save(){return this._format.toHexString(this.getValue(),this._rgbScale)}load(F){return this._setValueFromHexString(F),this._callOnFinishChange(),this}updateDisplay(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}}class D0 extends Ou{constructor(F,q,le){super(F,q,le,"function"),this.$button=document.createElement("button"),this.$button.appendChild(this.$name),this.$widget.appendChild(this.$button),this.$button.addEventListener("click",De=>{De.preventDefault(),this.getValue().call(this.object),this._callOnChange()}),this.$button.addEventListener("touchstart",()=>{},{passive:!0}),this.$disable=this.$button}}class LS extends Ou{constructor(F,q,le,De,Ze,G){super(F,q,le,"number"),this._initInput(),this.min(De),this.max(Ze);const U=G!==void 0;this.step(U?G:this._getImplicitStep(),U),this.updateDisplay()}decimals(F){return this._decimals=F,this.updateDisplay(),this}min(F){return this._min=F,this._onUpdateMinMax(),this}max(F){return this._max=F,this._onUpdateMinMax(),this}step(F,q=!0){return this._step=F,this._stepExplicit=q,this}updateDisplay(){const F=this.getValue();if(this._hasSlider){let q=(F-this._min)/(this._max-this._min);q=Math.max(0,Math.min(q,1)),this.$fill.style.width=q*100+"%"}return this._inputFocused||(this.$input.value=this._decimals===void 0?F:F.toFixed(this._decimals)),this}_initInput(){this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),window.matchMedia("(pointer: coarse)").matches&&(this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any")),this.$widget.appendChild(this.$input),this.$disable=this.$input;const q=()=>{let a=parseFloat(this.$input.value);isNaN(a)||(this._stepExplicit&&(a=this._snap(a)),this.setValue(this._clamp(a)))},le=a=>{const n=parseFloat(this.$input.value);isNaN(n)||(this._snapClampSetValue(n+a),this.$input.value=this.getValue())},De=a=>{a.key==="Enter"&&this.$input.blur(),a.code==="ArrowUp"&&(a.preventDefault(),le(this._step*this._arrowKeyMultiplier(a))),a.code==="ArrowDown"&&(a.preventDefault(),le(this._step*this._arrowKeyMultiplier(a)*-1))},Ze=a=>{this._inputFocused&&(a.preventDefault(),le(this._step*this._normalizeMouseWheel(a)))};let G=!1,U,e,g,C,i;const S=5,x=a=>{U=a.clientX,e=g=a.clientY,G=!0,C=this.getValue(),i=0,window.addEventListener("mousemove",v),window.addEventListener("mouseup",p)},v=a=>{if(G){const n=a.clientX-U,f=a.clientY-e;Math.abs(f)>S?(a.preventDefault(),this.$input.blur(),G=!1,this._setDraggingStyle(!0,"vertical")):Math.abs(n)>S&&p()}if(!G){const n=a.clientY-g;i-=n*this._step*this._arrowKeyMultiplier(a),C+i>this._max?i=this._max-C:C+i{this._setDraggingStyle(!1,"vertical"),this._callOnFinishChange(),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",p)},r=()=>{this._inputFocused=!0},t=()=>{this._inputFocused=!1,this.updateDisplay(),this._callOnFinishChange()};this.$input.addEventListener("input",q),this.$input.addEventListener("keydown",De),this.$input.addEventListener("wheel",Ze,{passive:!1}),this.$input.addEventListener("mousedown",x),this.$input.addEventListener("focus",r),this.$input.addEventListener("blur",t)}_initSlider(){this._hasSlider=!0,this.$slider=document.createElement("div"),this.$slider.classList.add("slider"),this.$fill=document.createElement("div"),this.$fill.classList.add("fill"),this.$slider.appendChild(this.$fill),this.$widget.insertBefore(this.$slider,this.$input),this.domElement.classList.add("hasSlider");const F=(t,a,n,f,c)=>(t-a)/(n-a)*(c-f)+f,q=t=>{const a=this.$slider.getBoundingClientRect();let n=F(t,a.left,a.right,this._min,this._max);this._snapClampSetValue(n)},le=t=>{this._setDraggingStyle(!0),q(t.clientX),window.addEventListener("mousemove",De),window.addEventListener("mouseup",Ze)},De=t=>{q(t.clientX)},Ze=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("mousemove",De),window.removeEventListener("mouseup",Ze)};let G=!1,U,e;const g=t=>{t.preventDefault(),this._setDraggingStyle(!0),q(t.touches[0].clientX),G=!1},C=t=>{t.touches.length>1||(this._hasScrollBar?(U=t.touches[0].clientX,e=t.touches[0].clientY,G=!0):g(t),window.addEventListener("touchmove",i,{passive:!1}),window.addEventListener("touchend",S))},i=t=>{if(G){const a=t.touches[0].clientX-U,n=t.touches[0].clientY-e;Math.abs(a)>Math.abs(n)?g(t):(window.removeEventListener("touchmove",i),window.removeEventListener("touchend",S))}else t.preventDefault(),q(t.touches[0].clientX)},S=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("touchmove",i),window.removeEventListener("touchend",S)},x=this._callOnFinishChange.bind(this),v=400;let p;const r=t=>{if(Math.abs(t.deltaX)this._max&&(F=this._max),F}_snapClampSetValue(F){this.setValue(this._clamp(this._snap(F)))}get _hasScrollBar(){const F=this.parent.root.$children;return F.scrollHeight>F.clientHeight}get _hasMin(){return this._min!==void 0}get _hasMax(){return this._max!==void 0}}class PS extends Ou{constructor(F,q,le,De){super(F,q,le,"option"),this.$select=document.createElement("select"),this.$select.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$select.addEventListener("change",()=>{this.setValue(this._values[this.$select.selectedIndex]),this._callOnFinishChange()}),this.$select.addEventListener("focus",()=>{this.$display.classList.add("focus")}),this.$select.addEventListener("blur",()=>{this.$display.classList.remove("focus")}),this.$widget.appendChild(this.$select),this.$widget.appendChild(this.$display),this.$disable=this.$select,this.options(De)}options(F){return this._values=Array.isArray(F)?F:Object.values(F),this._names=Array.isArray(F)?F:Object.keys(F),this.$select.replaceChildren(),this._names.forEach(q=>{const le=document.createElement("option");le.textContent=q,this.$select.appendChild(le)}),this.updateDisplay(),this}updateDisplay(){const F=this.getValue(),q=this._values.indexOf(F);return this.$select.selectedIndex=q,this.$display.textContent=q===-1?F:this._names[q],this}}class RS extends Ou{constructor(F,q,le){super(F,q,le,"string"),this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("spellcheck","false"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$input.addEventListener("input",()=>{this.setValue(this.$input.value)}),this.$input.addEventListener("keydown",De=>{De.code==="Enter"&&this.$input.blur()}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$widget.appendChild(this.$input),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.value=this.getValue(),this}}const DS=`.lil-gui { + font-family: var(--font-family); + font-size: var(--font-size); + line-height: 1; + font-weight: normal; + font-style: normal; + text-align: left; + color: var(--text-color); + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + --background-color: #1f1f1f; + --text-color: #ebebeb; + --title-background-color: #111111; + --title-text-color: #ebebeb; + --widget-color: #424242; + --hover-color: #4f4f4f; + --focus-color: #595959; + --number-color: #2cc9ff; + --string-color: #a2db3c; + --font-size: 11px; + --input-font-size: 11px; + --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; + --font-family-mono: Menlo, Monaco, Consolas, "Droid Sans Mono", monospace; + --padding: 4px; + --spacing: 4px; + --widget-height: 20px; + --title-height: calc(var(--widget-height) + var(--spacing) * 1.25); + --name-width: 45%; + --slider-knob-width: 2px; + --slider-input-width: 27%; + --color-input-width: 27%; + --slider-input-min-width: 45px; + --color-input-min-width: 45px; + --folder-indent: 7px; + --widget-padding: 0 0 0 3px; + --widget-border-radius: 2px; + --checkbox-size: calc(0.75 * var(--widget-height)); + --scrollbar-width: 5px; +} +.lil-gui, .lil-gui * { + box-sizing: border-box; + margin: 0; + padding: 0; +} +.lil-gui.root { + width: var(--width, 245px); + display: flex; + flex-direction: column; + background: var(--background-color); +} +.lil-gui.root > .title { + background: var(--title-background-color); + color: var(--title-text-color); +} +.lil-gui.root > .children { + overflow-x: hidden; + overflow-y: auto; +} +.lil-gui.root > .children::-webkit-scrollbar { + width: var(--scrollbar-width); + height: var(--scrollbar-width); + background: var(--background-color); +} +.lil-gui.root > .children::-webkit-scrollbar-thumb { + border-radius: var(--scrollbar-width); + background: var(--focus-color); +} +@media (pointer: coarse) { + .lil-gui.allow-touch-styles, .lil-gui.allow-touch-styles .lil-gui { + --widget-height: 28px; + --padding: 6px; + --spacing: 6px; + --font-size: 13px; + --input-font-size: 16px; + --folder-indent: 10px; + --scrollbar-width: 7px; + --slider-input-min-width: 50px; + --color-input-min-width: 65px; + } +} +.lil-gui.force-touch-styles, .lil-gui.force-touch-styles .lil-gui { + --widget-height: 28px; + --padding: 6px; + --spacing: 6px; + --font-size: 13px; + --input-font-size: 16px; + --folder-indent: 10px; + --scrollbar-width: 7px; + --slider-input-min-width: 50px; + --color-input-min-width: 65px; +} +.lil-gui.autoPlace { + max-height: 100%; + position: fixed; + top: 0; + right: 15px; + z-index: 1001; +} + +.lil-gui .controller { + display: flex; + align-items: center; + padding: 0 var(--padding); + margin: var(--spacing) 0; +} +.lil-gui .controller.disabled { + opacity: 0.5; +} +.lil-gui .controller.disabled, .lil-gui .controller.disabled * { + pointer-events: none !important; +} +.lil-gui .controller > .name { + min-width: var(--name-width); + flex-shrink: 0; + white-space: pre; + padding-right: var(--spacing); + line-height: var(--widget-height); +} +.lil-gui .controller .widget { + position: relative; + display: flex; + align-items: center; + width: 100%; + min-height: var(--widget-height); +} +.lil-gui .controller.string input { + color: var(--string-color); +} +.lil-gui .controller.boolean { + cursor: pointer; +} +.lil-gui .controller.color .display { + width: 100%; + height: var(--widget-height); + border-radius: var(--widget-border-radius); + position: relative; +} +@media (hover: hover) { + .lil-gui .controller.color .display:hover:before { + content: " "; + display: block; + position: absolute; + border-radius: var(--widget-border-radius); + border: 1px solid #fff9; + top: 0; + right: 0; + bottom: 0; + left: 0; + } +} +.lil-gui .controller.color input[type=color] { + opacity: 0; + width: 100%; + height: 100%; + cursor: pointer; +} +.lil-gui .controller.color input[type=text] { + margin-left: var(--spacing); + font-family: var(--font-family-mono); + min-width: var(--color-input-min-width); + width: var(--color-input-width); + flex-shrink: 0; +} +.lil-gui .controller.option select { + opacity: 0; + position: absolute; + width: 100%; + max-width: 100%; +} +.lil-gui .controller.option .display { + position: relative; + pointer-events: none; + border-radius: var(--widget-border-radius); + height: var(--widget-height); + line-height: var(--widget-height); + max-width: 100%; + overflow: hidden; + word-break: break-all; + padding-left: 0.55em; + padding-right: 1.75em; + background: var(--widget-color); +} +@media (hover: hover) { + .lil-gui .controller.option .display.focus { + background: var(--focus-color); + } +} +.lil-gui .controller.option .display.active { + background: var(--focus-color); +} +.lil-gui .controller.option .display:after { + font-family: "lil-gui"; + content: "↕"; + position: absolute; + top: 0; + right: 0; + bottom: 0; + padding-right: 0.375em; +} +.lil-gui .controller.option .widget, +.lil-gui .controller.option select { + cursor: pointer; +} +@media (hover: hover) { + .lil-gui .controller.option .widget:hover .display { + background: var(--hover-color); + } +} +.lil-gui .controller.number input { + color: var(--number-color); +} +.lil-gui .controller.number.hasSlider input { + margin-left: var(--spacing); + width: var(--slider-input-width); + min-width: var(--slider-input-min-width); + flex-shrink: 0; +} +.lil-gui .controller.number .slider { + width: 100%; + height: var(--widget-height); + background: var(--widget-color); + border-radius: var(--widget-border-radius); + padding-right: var(--slider-knob-width); + overflow: hidden; + cursor: ew-resize; + touch-action: pan-y; +} +@media (hover: hover) { + .lil-gui .controller.number .slider:hover { + background: var(--hover-color); + } +} +.lil-gui .controller.number .slider.active { + background: var(--focus-color); +} +.lil-gui .controller.number .slider.active .fill { + opacity: 0.95; +} +.lil-gui .controller.number .fill { + height: 100%; + border-right: var(--slider-knob-width) solid var(--number-color); + box-sizing: content-box; +} + +.lil-gui-dragging .lil-gui { + --hover-color: var(--widget-color); +} +.lil-gui-dragging * { + cursor: ew-resize !important; +} + +.lil-gui-dragging.lil-gui-vertical * { + cursor: ns-resize !important; +} + +.lil-gui .title { + height: var(--title-height); + line-height: calc(var(--title-height) - 4px); + font-weight: 600; + padding: 0 var(--padding); + -webkit-tap-highlight-color: transparent; + cursor: pointer; + outline: none; + text-decoration-skip: objects; +} +.lil-gui .title:before { + font-family: "lil-gui"; + content: "▾"; + padding-right: 2px; + display: inline-block; +} +.lil-gui .title:active { + background: var(--title-background-color); + opacity: 0.75; +} +@media (hover: hover) { + body:not(.lil-gui-dragging) .lil-gui .title:hover { + background: var(--title-background-color); + opacity: 0.85; + } + .lil-gui .title:focus { + text-decoration: underline var(--focus-color); + } +} +.lil-gui.root > .title:focus { + text-decoration: none !important; +} +.lil-gui.closed > .title:before { + content: "▸"; +} +.lil-gui.closed > .children { + transform: translateY(-7px); + opacity: 0; +} +.lil-gui.closed:not(.transition) > .children { + display: none; +} +.lil-gui.transition > .children { + transition-duration: 300ms; + transition-property: height, opacity, transform; + transition-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1); + overflow: hidden; + pointer-events: none; +} +.lil-gui .children:empty:before { + content: "Empty"; + padding: 0 var(--padding); + margin: var(--spacing) 0; + display: block; + height: var(--widget-height); + font-style: italic; + line-height: var(--widget-height); + opacity: 0.5; +} +.lil-gui.root > .children > .lil-gui > .title { + border: 0 solid var(--widget-color); + border-width: 1px 0; + transition: border-color 300ms; +} +.lil-gui.root > .children > .lil-gui.closed > .title { + border-bottom-color: transparent; +} +.lil-gui + .controller { + border-top: 1px solid var(--widget-color); + margin-top: 0; + padding-top: var(--spacing); +} +.lil-gui .lil-gui .lil-gui > .title { + border: none; +} +.lil-gui .lil-gui .lil-gui > .children { + border: none; + margin-left: var(--folder-indent); + border-left: 2px solid var(--widget-color); +} +.lil-gui .lil-gui .controller { + border: none; +} + +.lil-gui label, .lil-gui input, .lil-gui button { + -webkit-tap-highlight-color: transparent; +} +.lil-gui input { + border: 0; + outline: none; + font-family: var(--font-family); + font-size: var(--input-font-size); + border-radius: var(--widget-border-radius); + height: var(--widget-height); + background: var(--widget-color); + color: var(--text-color); + width: 100%; +} +@media (hover: hover) { + .lil-gui input:hover { + background: var(--hover-color); + } + .lil-gui input:active { + background: var(--focus-color); + } +} +.lil-gui input:disabled { + opacity: 1; +} +.lil-gui input[type=text], +.lil-gui input[type=number] { + padding: var(--widget-padding); + -moz-appearance: textfield; +} +.lil-gui input[type=text]:focus, +.lil-gui input[type=number]:focus { + background: var(--focus-color); +} +.lil-gui input[type=checkbox] { + appearance: none; + width: var(--checkbox-size); + height: var(--checkbox-size); + border-radius: var(--widget-border-radius); + text-align: center; + cursor: pointer; +} +.lil-gui input[type=checkbox]:checked:before { + font-family: "lil-gui"; + content: "✓"; + font-size: var(--checkbox-size); + line-height: var(--checkbox-size); +} +@media (hover: hover) { + .lil-gui input[type=checkbox]:focus { + box-shadow: inset 0 0 0 1px var(--focus-color); + } +} +.lil-gui button { + outline: none; + cursor: pointer; + font-family: var(--font-family); + font-size: var(--font-size); + color: var(--text-color); + width: 100%; + height: var(--widget-height); + text-transform: none; + background: var(--widget-color); + border-radius: var(--widget-border-radius); + border: none; +} +@media (hover: hover) { + .lil-gui button:hover { + background: var(--hover-color); + } + .lil-gui button:focus { + box-shadow: inset 0 0 0 1px var(--focus-color); + } +} +.lil-gui button:active { + background: var(--focus-color); +} + +@font-face { + font-family: "lil-gui"; + src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff"); +}`;function IS(_e){const F=document.createElement("style");F.innerHTML=_e;const q=document.querySelector("head link[rel=stylesheet], head style");q?document.head.insertBefore(F,q):document.head.appendChild(F)}let By=!1;class vv{constructor({parent:F,autoPlace:q=F===void 0,container:le,width:De,title:Ze="Controls",closeFolders:G=!1,injectStyles:U=!0,touchStyles:e=!0}={}){if(this.parent=F,this.root=F?F.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",()=>this.openAnimated(this._closed)),this.$title.addEventListener("keydown",g=>{(g.code==="Enter"||g.code==="Space")&&(g.preventDefault(),this.$title.click())}),this.$title.addEventListener("touchstart",()=>{},{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(Ze),this.parent){this.parent.children.push(this),this.parent.folders.push(this),this.parent.$children.appendChild(this.domElement);return}this.domElement.classList.add("root"),e&&this.domElement.classList.add("allow-touch-styles"),!By&&U&&(IS(DS),By=!0),le?le.appendChild(this.domElement):q&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),De&&this.domElement.style.setProperty("--width",De+"px"),this._closeFolders=G}add(F,q,le,De,Ze){if(Object(le)===le)return new PS(this,F,q,le);const G=F[q];switch(typeof G){case"number":return new LS(this,F,q,le,De,Ze);case"boolean":return new TS(this,F,q);case"string":return new RS(this,F,q);case"function":return new D0(this,F,q)}console.error(`gui.add failed + property:`,q,` + object:`,F,` + value:`,G)}addColor(F,q,le=1){return new CS(this,F,q,le)}addFolder(F){const q=new vv({parent:this,title:F});return this.root._closeFolders&&q.close(),q}load(F,q=!0){return F.controllers&&this.controllers.forEach(le=>{le instanceof D0||le._name in F.controllers&&le.load(F.controllers[le._name])}),q&&F.folders&&this.folders.forEach(le=>{le._title in F.folders&&le.load(F.folders[le._title])}),this}save(F=!0){const q={controllers:{},folders:{}};return this.controllers.forEach(le=>{if(!(le instanceof D0)){if(le._name in q.controllers)throw new Error(`Cannot save GUI with duplicate property "${le._name}"`);q.controllers[le._name]=le.save()}}),F&&this.folders.forEach(le=>{if(le._title in q.folders)throw new Error(`Cannot save GUI with duplicate folder "${le._title}"`);q.folders[le._title]=le.save()}),q}open(F=!0){return this._setClosed(!F),this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}close(){return this.open(!1)}_setClosed(F){this._closed!==F&&(this._closed=F,this._callOnOpenClose(this))}show(F=!0){return this._hidden=!F,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}openAnimated(F=!0){return this._setClosed(!F),this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame(()=>{const q=this.$children.clientHeight;this.$children.style.height=q+"px",this.domElement.classList.add("transition");const le=Ze=>{Ze.target===this.$children&&(this.$children.style.height="",this.domElement.classList.remove("transition"),this.$children.removeEventListener("transitionend",le))};this.$children.addEventListener("transitionend",le);const De=F?this.$children.scrollHeight:0;this.domElement.classList.toggle("closed",!F),requestAnimationFrame(()=>{this.$children.style.height=De+"px"})}),this}title(F){return this._title=F,this.$title.textContent=F,this}reset(F=!0){return(F?this.controllersRecursive():this.controllers).forEach(le=>le.reset()),this}onChange(F){return this._onChange=F,this}_callOnChange(F){this.parent&&this.parent._callOnChange(F),this._onChange!==void 0&&this._onChange.call(this,{object:F.object,property:F.property,value:F.getValue(),controller:F})}onFinishChange(F){return this._onFinishChange=F,this}_callOnFinishChange(F){this.parent&&this.parent._callOnFinishChange(F),this._onFinishChange!==void 0&&this._onFinishChange.call(this,{object:F.object,property:F.property,value:F.getValue(),controller:F})}onOpenClose(F){return this._onOpenClose=F,this}_callOnOpenClose(F){this.parent&&this.parent._callOnOpenClose(F),this._onOpenClose!==void 0&&this._onOpenClose.call(this,F)}destroy(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach(F=>F.destroy())}controllersRecursive(){let F=Array.from(this.controllers);return this.folders.forEach(q=>{F=F.concat(q.controllersRecursive())}),F}foldersRecursive(){let F=Array.from(this.folders);return this.folders.forEach(q=>{F=F.concat(q.foldersRecursive())}),F}}var D1={exports:{}};(function(_e,F){(function(le,De){_e.exports=De()})(self,function(){return function(){var q={79288:function(G,U,e){var g=e(3400),C={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in C){var S=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");g.addStyleRule(S,C[i])}},86712:function(G,U,e){G.exports=e(84224)},37240:function(G,U,e){G.exports=e(51132)},29744:function(G,U,e){G.exports=e(94456)},29352:function(G,U,e){G.exports=e(67244)},96144:function(G,U,e){G.exports=e(97776)},53219:function(G,U,e){G.exports=e(61712)},4624:function(G,U,e){G.exports=e(95856)},54543:function(G,U,e){G.exports=e(54272)},45e3:function(G,U,e){G.exports=e(85404)},62300:function(G,U,e){G.exports=e(26048)},6920:function(G,U,e){G.exports=e(66240)},10264:function(G,U,e){G.exports=e(40448)},32016:function(G,U,e){G.exports=e(64884)},27528:function(G,U,e){G.exports=e(15088)},75556:function(G,U,e){G.exports=e(76744)},39204:function(G,U,e){G.exports=e(94704)},73996:function(G,U,e){G.exports=e(62396)},16489:function(G,U,e){G.exports=e(32028)},5e3:function(G,U,e){G.exports=e(81932)},77280:function(G,U,e){G.exports=e(45536)},33992:function(G,U,e){G.exports=e(42600)},17600:function(G,U,e){G.exports=e(21536)},49116:function(G,U,e){G.exports=e(65664)},46808:function(G,U,e){G.exports=e(29044)},36168:function(G,U,e){G.exports=e(48928)},13792:function(G,U,e){var g=e(32016);g.register([e(37240),e(29352),e(5e3),e(33992),e(17600),e(49116),e(6920),e(67484),e(79440),e(39204),e(83096),e(36168),e(20260),e(63560),e(65832),e(46808),e(73996),e(48824),e(89904),e(25120),e(13752),e(4340),e(62300),e(29800),e(8363),e(54543),e(86636),e(42192),e(32140),e(77280),e(89296),e(56816),e(70192),e(45e3),e(27528),e(84764),e(3920),e(50248),e(4624),e(69967),e(10264),e(86152),e(53219),e(81604),e(63796),e(29744),e(89336),e(86712),e(75556),e(16489),e(97312),e(96144)]),G.exports=g},3920:function(G,U,e){G.exports=e(43480)},25120:function(G,U,e){G.exports=e(6296)},4340:function(G,U,e){G.exports=e(7404)},86152:function(G,U,e){G.exports=e(65456)},56816:function(G,U,e){G.exports=e(22020)},89296:function(G,U,e){G.exports=e(29928)},20260:function(G,U,e){G.exports=e(75792)},32140:function(G,U,e){G.exports=e(156)},84764:function(G,U,e){G.exports=e(45499)},48824:function(G,U,e){G.exports=e(3296)},69967:function(G,U,e){G.exports=e(4184)},8363:function(G,U,e){G.exports=e(36952)},86636:function(G,U,e){G.exports=e(38983)},70192:function(G,U,e){G.exports=e(11572)},81604:function(G,U,e){G.exports=e(76924)},63796:function(G,U,e){G.exports=e(62944)},89336:function(G,U,e){G.exports=e(95443)},67484:function(G,U,e){G.exports=e(34864)},97312:function(G,U,e){G.exports=e(76272)},42192:function(G,U,e){G.exports=e(97924)},29800:function(G,U,e){G.exports=e(15436)},63560:function(G,U,e){G.exports=e(5621)},89904:function(G,U,e){G.exports=e(91304)},50248:function(G,U,e){G.exports=e(41724)},65832:function(G,U,e){G.exports=e(31991)},79440:function(G,U,e){G.exports=e(22869)},13752:function(G,U,e){G.exports=e(67776)},83096:function(G,U,e){G.exports=e(95952)},72196:function(G){G.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(G,U,e){var g=e(72196),C=e(25376),i=e(33816),S=e(31780).templatedArray;e(36208),G.exports=S("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:C({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:g.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:g.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:C({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(G,U,e){var g=e(3400),C=e(54460),i=e(23816).draw;G.exports=function(p){var r=p._fullLayout,t=g.filterVisible(r.annotations);if(t.length&&p._fullData.length)return g.syncOrAsync([i,S],p)};function S(v){var p=v._fullLayout;g.filterVisible(p.annotations).forEach(function(r){var t=C.getFromId(v,r.xref),a=C.getFromId(v,r.yref),n=C.getRefType(r.xref),f=C.getRefType(r.yref);r._extremes={},n==="range"&&x(r,t),f==="range"&&x(r,a)})}function x(v,p){var r=p._id,t=r.charAt(0),a=v[t],n=v["a"+t],f=v[t+"ref"],c=v["a"+t+"ref"],l=v["_"+t+"padplus"],m=v["_"+t+"padminus"],h={x:1,y:-1}[t]*v[t+"shift"],b=3*v.arrowsize*v.arrowwidth||0,u=b+h,o=b-h,d=3*v.startarrowsize*v.arrowwidth||0,w=d+h,A=d-h,_;if(c===f){var y=C.findExtremes(p,[p.r2c(a)],{ppadplus:u,ppadminus:o}),E=C.findExtremes(p,[p.r2c(n)],{ppadplus:Math.max(l,w),ppadminus:Math.max(m,A)});_={min:[y.min[0],E.min[0]],max:[y.max[0],E.max[0]]}}else w=n?w+n:w,A=n?A-n:A,_=C.findExtremes(p,[p.r2c(a)],{ppadplus:Math.max(l,u,w),ppadminus:Math.max(m,o,A)});v._extremes[r]=_}},42300:function(G,U,e){var g=e(3400),C=e(24040),i=e(31780).arrayEditor;G.exports={hasClickToShow:S,onClick:x};function S(r,t){var a=v(r,t);return a.on.length>0||a.explicitOff.length>0}function x(r,t){var a=v(r,t),n=a.on,f=a.off.concat(a.explicitOff),c={},l=r._fullLayout.annotations,m,h;if(n.length||f.length){for(m=0;m.6666666666666666?$t="right":$t="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[$t]}for(var Ie=!1,rt=["x","y"],Ke=0;Ke1)&&(ht===lt?(je=dt.r2fraction(d["a"+$e]),(je<0||je>1)&&(Ie=!0)):Ie=!0),Fe=dt._offset+dt.r2p(d[$e]),Ee=.5}else{var it=Ne==="domain";$e==="x"?(ye=d[$e],Fe=it?dt._offset+dt._length*ye:Fe=T.l+T.w*ye):(ye=1-d[$e],Fe=it?dt._offset+dt._length*ye:Fe=T.t+T.h*ye),Ee=d.showarrow?.5:ye}if(d.showarrow){We.head=Fe;var mt=d["a"+$e];if(Me=St*Ve(.5,d.xanchor)-nt*Ve(.5,d.yanchor),ht===lt){var bt=v.getRefType(ht);bt==="domain"?($e==="y"&&(mt=1-mt),We.tail=dt._offset+dt._length*mt):bt==="paper"?$e==="y"?(mt=1-mt,We.tail=T.t+T.h*mt):We.tail=T.l+T.w*mt:We.tail=dt._offset+dt.r2p(mt),xe=Me}else We.tail=Fe+mt,xe=Me+mt;We.text=We.tail+Me;var vt=E[$e==="x"?"width":"height"];if(lt==="paper"&&(We.head=S.constrain(We.head,1,vt-1)),ht==="pixel"){var Lt=-Math.max(We.tail-3,We.text),ct=Math.min(We.tail+3,We.text)-vt;Lt>0?(We.tail+=Lt,We.text+=Lt):ct>0&&(We.tail-=ct,We.text-=ct)}We.tail+=Je,We.head+=Je}else Me=ze*Ve(Ee,Xe),xe=Me,We.text=Fe+Me;We.text+=Je,Me+=Je,xe+=Je,d["_"+$e+"padplus"]=ze/2+xe,d["_"+$e+"padminus"]=ze/2-xe,d["_"+$e+"size"]=ze,d["_"+$e+"shift"]=Me}if(Ie){ue.remove();return}var Tt=0,Bt=0;if(d.align!=="left"&&(Tt=(Le-Ae)*(d.align==="center"?.5:1)),d.valign!=="top"&&(Bt=(He-me)*(d.valign==="middle"?.5:1)),Re)we.select("svg").attr({x:ee+Tt-1,y:ee+Bt}).call(r.setClipUrl,Q?k:null,o);else{var ir=ee+Bt-be.top,pt=ee+Tt-be.left;se.call(a.positionText,pt,ir).call(r.setClipUrl,Q?k:null,o)}oe.select("rect").call(r.setRect,ee,ee,Le,He),V.call(r.setRect,J/2,J/2,Ue-J,ke-J),ue.call(r.setTranslate,Math.round(B.x.text-Ue/2),Math.round(B.y.text-ke/2)),Y.attr({transform:"rotate("+O+","+B.x.text+","+B.y.text+")"});var Xt=function(or,$t){H.selectAll(".annotation-arrow-g").remove();var gt=B.x.head,st=B.y.head,At=B.x.tail+or,Ct=B.y.tail+$t,It=B.x.text+or,Pt=B.y.text+$t,kt=S.rotationXYMatrix(O,It,Pt),Vt=S.apply2DTransform(kt),Jt=S.apply2DTransform2(kt),ur=+V.attr("width"),hr=+V.attr("height"),vr=It-.5*ur,Ye=vr+ur,Ge=Pt-.5*hr,Nt=Ge+hr,Ot=[[vr,Ge,vr,Nt],[vr,Nt,Ye,Nt],[Ye,Nt,Ye,Ge],[Ye,Ge,vr,Ge]].map(Jt);if(!Ot.reduce(function(Dr,cn){return Dr^!!S.segmentsIntersect(gt,st,gt+1e6,st+1e6,cn[0],cn[1],cn[2],cn[3])},!1)){Ot.forEach(function(Dr){var cn=S.segmentsIntersect(At,Ct,gt,st,Dr[0],Dr[1],Dr[2],Dr[3]);cn&&(At=cn.x,Ct=cn.y)});var Qt=d.arrowwidth,tr=d.arrowcolor,fr=d.arrowside,rr=H.append("g").style({opacity:p.opacity(tr)}).classed("annotation-arrow-g",!0),Ht=rr.append("path").attr("d","M"+At+","+Ct+"L"+gt+","+st).style("stroke-width",Qt+"px").call(p.stroke,p.rgb(tr));if(l(Ht,fr,d),s.annotationPosition&&Ht.node().parentNode&&!A){var dr=gt,mr=st;if(d.standoff){var xr=Math.sqrt(Math.pow(gt-At,2)+Math.pow(st-Ct,2));dr+=d.standoff*(At-gt)/xr,mr+=d.standoff*(Ct-st)/xr}var pr=rr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(At-dr)+","+(Ct-mr),transform:x(dr,mr)}).style("stroke-width",Qt+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)"),Gr,Pr;f.init({element:pr.node(),gd:o,prepFn:function(){var Dr=r.getTranslate(ue);Gr=Dr.x,Pr=Dr.y,_&&_.autorange&&D(_._name+".autorange",!0),y&&y.autorange&&D(y._name+".autorange",!0)},moveFn:function(Dr,cn){var rn=Vt(Gr,Pr),Cn=rn[0]+Dr,En=rn[1]+cn;ue.call(r.setTranslate,Cn,En),N("x",b(_,Dr,"x",T,d)),N("y",b(y,cn,"y",T,d)),d.axref===d.xref&&N("ax",b(_,Dr,"ax",T,d)),d.ayref===d.yref&&N("ay",b(y,cn,"ay",T,d)),rr.attr("transform",x(Dr,cn)),Y.attr({transform:"rotate("+O+","+Cn+","+En+")"})},doneFn:function(){C.call("_guiRelayout",o,I());var Dr=document.querySelector(".js-notes-box-panel");Dr&&Dr.redraw(Dr.selectedObj)}})}}};if(d.showarrow&&Xt(0,0),j){var Kt;f.init({element:ue.node(),gd:o,prepFn:function(){Kt=Y.attr("transform")},moveFn:function(or,$t){var gt="pointer";if(d.showarrow)d.axref===d.xref?N("ax",b(_,or,"ax",T,d)):N("ax",d.ax+or),d.ayref===d.yref?N("ay",b(y,$t,"ay",T.w,d)):N("ay",d.ay+$t),Xt(or,$t);else{if(A)return;var st,At;if(_)st=b(_,or,"x",T,d);else{var Ct=d._xsize/T.w,It=d.x+(d._xshift-d.xshift)/T.w-Ct/2;st=f.align(It+or/T.w,Ct,0,1,d.xanchor)}if(y)At=b(y,$t,"y",T,d);else{var Pt=d._ysize/T.h,kt=d.y-(d._yshift+d.yshift)/T.h-Pt/2;At=f.align(kt-$t/T.h,Pt,0,1,d.yanchor)}N("x",st),N("y",At),(!_||!y)&&(gt=f.getCursor(_?.5:st,y?.5:At,d.xanchor,d.yanchor))}Y.attr({transform:x(or,$t)+Kt}),n(ue,gt)},clickFn:function(or,$t){d.captureevents&&o.emit("plotly_clickannotation",ie($t))},doneFn:function(){n(ue),C.call("_guiRelayout",o,I());var or=document.querySelector(".js-notes-box-panel");or&&or.redraw(or.selectedObj)}})}}s.annotationText?se.call(a.makeEditable,{delegate:ue,gd:o}).call(ne).on("edit",function(ge){d.text=ge,this.call(ne),N("text",ge),_&&_.autorange&&D(_._name+".autorange",!0),y&&y.autorange&&D(y._name+".autorange",!0),C.call("_guiRelayout",o,I())}):se.call(ne)}},33652:function(G,U,e){var g=e(33428),C=e(76308),i=e(72196),S=e(3400),x=S.strScale,v=S.strRotate,p=S.strTranslate;G.exports=function(t,a,n){var f=t.node(),c=i[n.arrowhead||0],l=i[n.startarrowhead||0],m=(n.arrowwidth||1)*(n.arrowsize||1),h=(n.arrowwidth||1)*(n.startarrowsize||1),b=a.indexOf("start")>=0,u=a.indexOf("end")>=0,o=c.backoff*m+n.standoff,d=l.backoff*h+n.startstandoff,w,A,_,y;if(f.nodeName==="line"){w={x:+t.attr("x1"),y:+t.attr("y1")},A={x:+t.attr("x2"),y:+t.attr("y2")};var E=w.x-A.x,T=w.y-A.y;if(_=Math.atan2(T,E),y=_+Math.PI,o&&d&&o+d>Math.sqrt(E*E+T*T)){Y();return}if(o){if(o*o>E*E+T*T){Y();return}var s=o*Math.cos(_),L=o*Math.sin(_);A.x+=s,A.y+=L,t.attr({x2:A.x,y2:A.y})}if(d){if(d*d>E*E+T*T){Y();return}var M=d*Math.cos(_),z=d*Math.sin(_);w.x-=M,w.y-=z,t.attr({x1:w.x,y1:w.y})}}else if(f.nodeName==="path"){var D=f.getTotalLength(),N="";if(D1){n=!0;break}}n?x.fullLayout._infolayer.select(".annotation-"+x.id+'[data-index="'+t+'"]').remove():(a._pdata=C(x.glplot.cameraParams,[v.xaxis.r2l(a.x)*p[0],v.yaxis.r2l(a.y)*p[1],v.zaxis.r2l(a.z)*p[2]]),g(x.graphDiv,a,t,x.id,a._xa,a._ya))}}},56864:function(G,U,e){var g=e(24040),C=e(3400);G.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(45899)}}},layoutAttributes:e(45899),handleDefaults:e(52808),includeBasePlot:i,convert:e(42456),draw:e(71836)};function i(S,x){var v=g.subplotsRegistry.gl3d;if(v)for(var p=v.attrRegex,r=Object.keys(S),t=0;t=0)))return t;if(l===3)f[l]>1&&(f[l]=1);else if(f[l]>=1)return t}var m=Math.round(f[0]*255)+", "+Math.round(f[1]*255)+", "+Math.round(f[2]*255);return c?"rgba("+m+", "+f[3]+")":"rgb("+m+")"}},42996:function(G,U,e){var g=e(94724),C=e(25376),i=e(92880).extendFlat,S=e(67824).overrideAll;G.exports=S({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:g.linecolor,outlinewidth:g.linewidth,bordercolor:g.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:g.minor.tickmode,nticks:g.nticks,tick0:g.tick0,dtick:g.dtick,tickvals:g.tickvals,ticktext:g.ticktext,ticks:i({},g.ticks,{dflt:""}),ticklabeloverflow:i({},g.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:g.ticklen,tickwidth:g.tickwidth,tickcolor:g.tickcolor,ticklabelstep:g.ticklabelstep,showticklabels:g.showticklabels,labelalias:g.labelalias,tickfont:C({}),tickangle:g.tickangle,tickformat:g.tickformat,tickformatstops:g.tickformatstops,tickprefix:g.tickprefix,showtickprefix:g.showtickprefix,ticksuffix:g.ticksuffix,showticksuffix:g.showticksuffix,separatethousands:g.separatethousands,exponentformat:g.exponentformat,minexponent:g.minexponent,showexponent:g.showexponent,title:{text:{valType:"string"},font:C({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:C({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(G){G.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(G,U,e){var g=e(3400),C=e(31780),i=e(26332),S=e(25404),x=e(95936),v=e(42568),p=e(42996);G.exports=function(t,a,n){var f=C.newContainer(a,"colorbar"),c=t.colorbar||{};function l(B,O){return g.coerce(c,f,p,B,O)}var m=n.margin||{t:0,b:0,l:0,r:0},h=n.width-m.l-m.r,b=n.height-m.t-m.b,u=l("orientation"),o=u==="v",d=l("thicknessmode");l("thickness",d==="fraction"?30/(o?h:b):30);var w=l("lenmode");l("len",w==="fraction"?1:o?b:h);var A=l("yref"),_=l("xref"),y=A==="paper",E=_==="paper",T,s,L,M="left";o?(L="middle",M=E?"left":"right",T=E?1.02:1,s=.5):(L=y?"bottom":"top",M="center",T=.5,s=y?1.02:1),g.coerce(c,f,{x:{valType:"number",min:E?-2:0,max:E?3:1,dflt:T}},"x"),g.coerce(c,f,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:s}},"y"),l("xanchor",M),l("xpad"),l("yanchor",L),l("ypad"),g.noneOrAll(c,f,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var z=g.coerce(c,f,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:o?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",z.indexOf("inside")!==-1?"hide past domain":"hide past div"),i(c,f,l,"linear");var D=n.font,N={noAutotickangles:!0,outerTicks:!1,font:D};z.indexOf("inside")!==-1&&(N.bgColor="black"),v(c,f,l,"linear",N),x(c,f,l,"linear",N),S(c,f,l,"linear",N),l("title.text",n._dfltTitle.colorbar);var I=f.showticklabels?f.tickfont:D,k=g.extendFlat({},I,{color:D.color,size:g.bigFont(I.size)});g.coerceFont(l,"title.font",k),l("title.side",o?"top":"right")}},37848:function(G,U,e){var g=e(33428),C=e(49760),i=e(7316),S=e(24040),x=e(54460),v=e(86476),p=e(3400),r=p.strTranslate,t=e(92880).extendFlat,a=e(93972),n=e(43616),f=e(76308),c=e(81668),l=e(72736),m=e(94288).flipScale,h=e(28336),b=e(37668),u=e(94724),o=e(84284),d=o.LINE_SPACING,w=o.FROM_TL,A=o.FROM_BR,_=e(63964).cn;function y(z){var D=z._fullLayout,N=D._infolayer.selectAll("g."+_.colorbar).data(E(z),function(I){return I._id});N.enter().append("g").attr("class",function(I){return I._id}).classed(_.colorbar,!0),N.each(function(I){var k=g.select(this);p.ensureSingle(k,"rect",_.cbbg),p.ensureSingle(k,"g",_.cbfills),p.ensureSingle(k,"g",_.cblines),p.ensureSingle(k,"g",_.cbaxis,function(O){O.classed(_.crisp,!0)}),p.ensureSingle(k,"g",_.cbtitleunshift,function(O){O.append("g").classed(_.cbtitle,!0)}),p.ensureSingle(k,"rect",_.cboutline);var B=T(k,I,z);B&&B.then&&(z._promises||[]).push(B),z._context.edits.colorbarPosition&&s(k,I,z)}),N.exit().each(function(I){i.autoMargin(z,I._id)}).remove(),N.order()}function E(z){var D=z._fullLayout,N=z.calcdata,I=[],k,B,O,H;function Y($){return t($,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function j(){typeof H.calc=="function"?H.calc(z,O,k):(k._fillgradient=B.reversescale?m(B.colorscale):B.colorscale,k._zrange=[B[H.min],B[H.max]])}for(var te=0;te1){var We=Math.pow(10,Math.floor(Math.log(Je)/Math.LN10));ze*=We*p.roundUp(Je/We,[2,5,10]),(Math.abs(be.start)/be.size+1e-6)%1<2e-6&&(St.tick0=0)}St.dtick=ze}St.domain=I?[dt+X/Z.h,dt+Ve-X/Z.h]:[dt+J/Z.w,dt+Ve-J/Z.w],St.setScale(),z.attr("transform",r(Math.round(Z.l),Math.round(Z.t)));var Fe=z.select("."+_.cbtitleunshift).attr("transform",r(-Math.round(Z.l),-Math.round(Z.t))),xe=St.ticklabelposition,ye=St.title.font.size,Ee=z.select("."+_.cbaxis),Me,Ne=0,je=0;function it(ct,Tt){var Bt={propContainer:St,propName:D._propPrefix+"title",traceIndex:D._traceIndex,_meta:D._meta,placeholder:$._dfltTitle.colorbar,containerGroup:z.select("."+_.cbtitle)},ir=ct.charAt(0)==="h"?ct.substr(1):"h"+ct;z.selectAll("."+ir+",."+ir+"-math-group").remove(),c.draw(N,ct,t(Bt,Tt||{}))}function mt(){if(I&&nt||!I&&!nt){var ct,Tt;ge==="top"&&(ct=J+Z.l+Ie*ee,Tt=X+Z.t+rt*(1-dt-Ve)+3+ye*.75),ge==="bottom"&&(ct=J+Z.l+Ie*ee,Tt=X+Z.t+rt*(1-dt)-3-ye*.25),ge==="right"&&(Tt=X+Z.t+rt*V+3+ye*.75,ct=J+Z.l+Ie*dt),it(St._id+"title",{attributes:{x:ct,y:Tt,"text-anchor":I?"start":"middle"}})}}function bt(){if(I&&!nt||!I&&nt){var ct=St.position||0,Tt=St._offset+St._length/2,Bt,ir;if(ge==="right")ir=Tt,Bt=Z.l+Ie*ct+10+ye*(St.showticklabels?1:.5);else if(Bt=Tt,ge==="bottom"&&(ir=Z.t+rt*ct+10+(xe.indexOf("inside")===-1?St.tickfont.size:0)+(St.ticks!=="intside"&&D.ticklen||0)),ge==="top"){var pt=ce.text.split("
    ").length;ir=Z.t+rt*ct+10-He-d*ye*pt}it((I?"h":"v")+St._id+"title",{avoid:{selection:g.select(N).selectAll("g."+St._id+"tick"),side:ge,offsetTop:I?0:Z.t,offsetLeft:I?Z.l:0,maxShift:I?$.width:$.height},attributes:{x:Bt,y:ir,"text-anchor":"middle"},transform:{rotate:I?-90:0,offset:0}})}}function vt(){if(!I&&!nt||I&&nt){var ct=z.select("."+_.cbtitle),Tt=ct.select("text"),Bt=[-Y/2,Y/2],ir=ct.select(".h"+St._id+"title-math-group").node(),pt=15.6;Tt.node()&&(pt=parseInt(Tt.node().style.fontSize,10)*d);var Xt;if(ir?(Xt=n.bBox(ir),je=Xt.width,Ne=Xt.height,Ne>pt&&(Bt[1]-=(Ne-pt)/2)):Tt.node()&&!Tt.classed(_.jsPlaceholder)&&(Xt=n.bBox(Tt.node()),je=Xt.width,Ne=Xt.height),I){if(Ne){if(Ne+=5,ge==="top")St.domain[1]-=Ne/Z.h,Bt[1]*=-1;else{St.domain[0]+=Ne/Z.h;var Kt=l.lineCount(Tt);Bt[1]+=(1-Kt)*pt}ct.attr("transform",r(Bt[0],Bt[1])),St.setScale()}}else je&&(ge==="right"&&(St.domain[0]+=(je+ye/2)/Z.w),ct.attr("transform",r(Bt[0],Bt[1])),St.setScale())}z.selectAll("."+_.cbfills+",."+_.cblines).attr("transform",I?r(0,Math.round(Z.h*(1-St.domain[1]))):r(Math.round(Z.w*St.domain[0]),0)),Ee.attr("transform",I?r(0,Math.round(-Z.t)):r(Math.round(-Z.l),0));var or=z.select("."+_.cbfills).selectAll("rect."+_.cbfill).attr("style","").data(me);or.enter().append("rect").classed(_.cbfill,!0).attr("style",""),or.exit().remove();var $t=Te.map(St.c2p).map(Math.round).sort(function(It,Pt){return It-Pt});or.each(function(It,Pt){var kt=[Pt===0?Te[0]:(me[Pt]+me[Pt-1])/2,Pt===me.length-1?Te[1]:(me[Pt]+me[Pt+1])/2].map(St.c2p).map(Math.round);I&&(kt[1]=p.constrain(kt[1]+(kt[1]>kt[0])?1:-1,$t[0],$t[1]));var Vt=g.select(this).attr(I?"x":"y",Ke).attr(I?"y":"x",g.min(kt)).attr(I?"width":"height",Math.max(He,2)).attr(I?"height":"width",Math.max(g.max(kt)-g.min(kt),2));if(D._fillgradient)n.gradient(Vt,N,D._id,I?"vertical":"horizontalreversed",D._fillgradient,"fill");else{var Jt=Re(It).replace("e-","");Vt.attr("fill",C(Jt).toHexString())}});var gt=z.select("."+_.cblines).selectAll("path."+_.cbline).data(ne.color&&ne.width?Le:[]);gt.enter().append("path").classed(_.cbline,!0),gt.exit().remove(),gt.each(function(It){var Pt=Ke,kt=Math.round(St.c2p(It))+ne.width/2%1;g.select(this).attr("d","M"+(I?Pt+","+kt:kt+","+Pt)+(I?"h":"v")+He).call(n.lineGroupStyle,ne.width,we(It),ne.dash)}),Ee.selectAll("g."+St._id+"tick,path").remove();var st=Ke+He+(Y||0)/2-(D.ticks==="outside"?1:0),At=x.calcTicks(St),Ct=x.getTickSigns(St)[2];return x.drawTicks(N,St,{vals:St.ticks==="inside"?x.clipEnds(St,At):At,layer:Ee,path:x.makeTickPath(St,st,Ct),transFn:x.makeTransTickFn(St)}),x.drawLabels(N,St,{vals:At,layer:Ee,transFn:x.makeTransTickLabelFn(St),labelFns:x.makeLabelFns(St,st)})}function Lt(){var ct,Tt=He+Y/2;xe.indexOf("inside")===-1&&(ct=n.bBox(Ee.node()),Tt+=I?ct.width:ct.height),Me=Fe.select("text");var Bt=0,ir=I&&ge==="top",pt=!I&&ge==="right",Xt=0;if(Me.node()&&!Me.classed(_.jsPlaceholder)){var Kt,or=Fe.select(".h"+St._id+"title-math-group").node();or&&(I&&nt||!I&&!nt)?(ct=n.bBox(or),Bt=ct.width,Kt=ct.height):(ct=n.bBox(Fe.node()),Bt=ct.right-Z.l-(I?Ke:xt),Kt=ct.bottom-Z.t-(I?xt:Ke),!I&&ge==="top"&&(Tt+=ct.height,Xt=ct.height)),pt&&(Me.attr("transform",r(Bt/2+ye/2,0)),Bt*=2),Tt=Math.max(Tt,I?Bt:Kt)}var $t=(I?J:X)*2+Tt+j+Y/2,gt=0;!I&&ce.text&&ue==="bottom"&&V<=0&&(gt=$t/2,$t+=gt,Xt+=gt),$._hColorbarMoveTitle=gt,$._hColorbarMoveCBTitle=Xt;var st=j+Y,At=(I?Ke:xt)-st/2-(I?J:0),Ct=(I?xt:Ke)-(I?ke:X+Xt-gt);z.select("."+_.cbbg).attr("x",At).attr("y",Ct).attr(I?"width":"height",Math.max($t-gt,2)).attr(I?"height":"width",Math.max(ke+st,2)).call(f.fill,te).call(f.stroke,D.bordercolor).style("stroke-width",j);var It=pt?Math.max(Bt-10,0):0;z.selectAll("."+_.cboutline).attr("x",(I?Ke:xt+J)+It).attr("y",(I?xt+X-ke:Ke)+(ir?Ne:0)).attr(I?"width":"height",Math.max(He,2)).attr(I?"height":"width",Math.max(ke-(I?2*X+Ne:2*J+It),2)).call(f.stroke,D.outlinecolor).style({fill:"none","stroke-width":Y});var Pt=I?$e*$t:0,kt=I?0:(1-lt)*$t-Xt;if(Pt=oe?Z.l-Pt:-Pt,kt=Q?Z.t-kt:-kt,z.attr("transform",r(Pt,kt)),!I&&(j||C(te).getAlpha()&&!C.equals($.paper_bgcolor,te))){var Vt=Ee.selectAll("text"),Jt=Vt[0].length,ur=z.select("."+_.cbbg).node(),hr=n.bBox(ur),vr=n.getTranslate(z),Ye=2;Vt.each(function(mr,xr){var pr=0,Gr=Jt-1;if(xr===pr||xr===Gr){var Pr=n.bBox(this),Dr=n.getTranslate(this),cn;if(xr===Gr){var rn=Pr.right+Dr.x,Cn=hr.right+vr.x+xt-j-Ye+ee;cn=Cn-rn,cn>0&&(cn=0)}else if(xr===pr){var En=Pr.left+Dr.x,Tr=hr.left+vr.x+xt+j+Ye;cn=Tr-En,cn<0&&(cn=0)}cn&&(Jt<3?this.setAttribute("transform","translate("+cn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ge={},Nt=w[ie],Ot=A[ie],Qt=w[ue],tr=A[ue],fr=$t-He;I?(B==="pixels"?(Ge.y=V,Ge.t=ke*Qt,Ge.b=ke*tr):(Ge.t=Ge.b=0,Ge.yt=V+k*Qt,Ge.yb=V-k*tr),H==="pixels"?(Ge.x=ee,Ge.l=$t*Nt,Ge.r=$t*Ot):(Ge.l=fr*Nt,Ge.r=fr*Ot,Ge.xl=ee-O*Nt,Ge.xr=ee+O*Ot)):(B==="pixels"?(Ge.x=ee,Ge.l=ke*Nt,Ge.r=ke*Ot):(Ge.l=Ge.r=0,Ge.xl=ee+k*Nt,Ge.xr=ee-k*Ot),H==="pixels"?(Ge.y=1-V,Ge.t=$t*Qt,Ge.b=$t*tr):(Ge.t=fr*Qt,Ge.b=fr*tr,Ge.yt=V-O*Qt,Ge.yb=V+O*tr));var rr=D.y<.5?"b":"t",Ht=D.x<.5?"l":"r";N._fullLayout._reservedMargin[D._id]={};var dr={r:$.width-At-Pt,l:At+Ge.r,b:$.height-Ct-kt,t:Ct+Ge.b};oe&&Q?i.autoMargin(N,D._id,Ge):oe?N._fullLayout._reservedMargin[D._id][rr]=dr[rr]:Q||I?N._fullLayout._reservedMargin[D._id][Ht]=dr[Ht]:N._fullLayout._reservedMargin[D._id][rr]=dr[rr]}return p.syncOrAsync([i.previousPromises,mt,vt,bt,i.previousPromises,Lt],N)}function s(z,D,N){var I=D.orientation==="v",k=N._fullLayout,B=k._size,O,H,Y;v.init({element:z.node(),gd:N,prepFn:function(){O=z.attr("transform"),a(z)},moveFn:function(j,te){z.attr("transform",O+r(j,te)),H=v.align((I?D._uFrac:D._vFrac)+j/B.w,I?D._thickFrac:D._lenFrac,0,1,D.xanchor),Y=v.align((I?D._vFrac:1-D._uFrac)-te/B.h,I?D._lenFrac:D._thickFrac,0,1,D.yanchor);var ie=v.getCursor(H,Y,D.xanchor,D.yanchor);a(z,ie)},doneFn:function(){if(a(z),H!==void 0&&Y!==void 0){var j={};j[D._propPrefix+"x"]=H,j[D._propPrefix+"y"]=Y,D._traceIndex!==void 0?S.call("_guiRestyle",N,j,D._traceIndex):S.call("_guiRelayout",N,j)}}})}function L(z,D,N){var I=D._levels,k=[],B=[],O,H,Y=I.end+I.size/100,j=I.size,te=1.001*N[0]-.001*N[1],ie=1.001*N[1]-.001*N[0];for(H=0;H<1e5&&(O=I.start+H*j,!(j>0?O>=Y:O<=Y));H++)O>te&&O0?O>=Y:O<=Y));H++)O>N[0]&&Oh-l?l=h-(m-h):m-h=0?o=r.colorscale.sequential:o=r.colorscale.sequentialminus,f._sync("colorscale",o)}}},95504:function(G,U,e){var g=e(3400),C=e(94288).hasColorscale,i=e(94288).extractOpts;G.exports=function(x,v){function p(l,m){var h=l["_"+m];h!==void 0&&(l[m]=h)}function r(l,m){var h=m.container?g.nestedProperty(l,m.container).get():l;if(h)if(h.coloraxis)h._colorAx=v[h.coloraxis];else{var b=i(h),u=b.auto;(u||b.min===void 0)&&p(h,m.min),(u||b.max===void 0)&&p(h,m.max),b.autocolorscale&&p(h,"colorscale")}}for(var t=0;t=0;o--,d++){var w=h[o];u[d]=[1-w[0],w[1]]}return u}function c(h,b){b=b||{};for(var u=h.domain,o=h.range,d=o.length,w=new Array(d),A=0;A1.3333333333333333-p?v:p}},67416:function(G,U,e){var g=e(3400),C=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];G.exports=function(S,x,v,p){return v==="left"?S=0:v==="center"?S=1:v==="right"?S=2:S=g.constrain(Math.floor(S*3),0,2),p==="bottom"?x=0:p==="middle"?x=1:p==="top"?x=2:x=g.constrain(Math.floor(x*3),0,2),C[x][S]}},72760:function(G,U){U.selectMode=function(e){return e==="lasso"||e==="select"},U.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},U.openMode=function(e){return e==="drawline"||e==="drawopenpath"},U.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},U.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},U.selectingOrDrawing=function(e){return U.freeMode(e)||U.rectMode(e)}},86476:function(G,U,e){var g=e(29128),C=e(52264),i=e(89184),S=e(3400).removeElement,x=e(33816),v=G.exports={};v.align=e(78316),v.getCursor=e(67416);var p=e(2616);v.unhover=p.wrapped,v.unhoverRaw=p.raw,v.init=function(n){var f=n.gd,c=1,l=f._context.doubleClickDelay,m=n.element,h,b,u,o,d,w,A,_;f._mouseDownTime||(f._mouseDownTime=0),m.style.pointerEvents="all",m.onmousedown=T,i?(m._ontouchstart&&m.removeEventListener("touchstart",m._ontouchstart),m._ontouchstart=T,m.addEventListener("touchstart",T,{passive:!1})):m.ontouchstart=T;function y(M,z,D){return Math.abs(M)"u"&&typeof M.clientY>"u"&&(M.clientX=h,M.clientY=b),u=new Date().getTime(),u-f._mouseDownTimel&&(c=Math.max(c-1,1)),f._dragged)n.doneFn&&n.doneFn();else if(n.clickFn&&n.clickFn(c,w),!_){var z;try{z=new MouseEvent("click",M)}catch{var D=t(M);z=document.createEvent("MouseEvents"),z.initMouseEvent("click",M.bubbles,M.cancelable,M.view,M.detail,M.screenX,M.screenY,D[0],D[1],M.ctrlKey,M.altKey,M.shiftKey,M.metaKey,M.button,M.relatedTarget)}A.dispatchEvent(z)}f._dragging=!1,f._dragged=!1}};function r(){var a=document.createElement("div");a.className="dragcover";var n=a.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(a),a}v.coverSlip=r;function t(a){return g(a.changedTouches?a.changedTouches[0]:a,document.body)}},2616:function(G,U,e){var g=e(95924),C=e(91200),i=e(52200).getGraphDiv,S=e(92456),x=G.exports={};x.wrapped=function(v,p,r){v=i(v),v._fullLayout&&C.clear(v._fullLayout._uid+S.HOVERID),x.raw(v,p,r)},x.raw=function(p,r){var t=p._fullLayout,a=p._hoverdata;r||(r={}),!(r.target&&!p._dragged&&g.triggerHandler(p,"plotly_beforehover",r)===!1)&&(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,r.target&&a&&p.emit("plotly_unhover",{event:r,points:a}))}},98192:function(G,U){U.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},U.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(G,U,e){var g=e(33428),C=e(3400),i=C.numberFormat,S=e(38248),x=e(49760),v=e(24040),p=e(76308),r=e(8932),t=C.strTranslate,a=e(72736),n=e(9616),f=e(84284),c=f.LINE_SPACING,l=e(13448).DESELECTDIM,m=e(43028),h=e(7152),b=e(10624).appendArrayPointValue,u=G.exports={};u.font=function(be,Ae,me,Le){C.isPlainObject(Ae)&&(Le=Ae.color,me=Ae.size,Ae=Ae.family),Ae&&be.style("font-family",Ae),me+1&&be.style("font-size",me+"px"),Le&&be.call(p.fill,Le)},u.setPosition=function(be,Ae,me){be.attr("x",Ae).attr("y",me)},u.setSize=function(be,Ae,me){be.attr("width",Ae).attr("height",me)},u.setRect=function(be,Ae,me,Le,He){be.call(u.setPosition,Ae,me).call(u.setSize,Le,He)},u.translatePoint=function(be,Ae,me,Le){var He=me.c2p(be.x),Ue=Le.c2p(be.y);if(S(He)&&S(Ue)&&Ae.node())Ae.node().nodeName==="text"?Ae.attr("x",He).attr("y",Ue):Ae.attr("transform",t(He,Ue));else return!1;return!0},u.translatePoints=function(be,Ae,me){be.each(function(Le){var He=g.select(this);u.translatePoint(Le,He,Ae,me)})},u.hideOutsideRangePoint=function(be,Ae,me,Le,He,Ue){Ae.attr("display",me.isPtWithinRange(be,He)&&Le.isPtWithinRange(be,Ue)?null:"none")},u.hideOutsideRangePoints=function(be,Ae){if(Ae._hasClipOnAxisFalse){var me=Ae.xaxis,Le=Ae.yaxis;be.each(function(He){var Ue=He[0].trace,ke=Ue.xcalendar,Ve=Ue.ycalendar,Ie=v.traceIs(Ue,"bar-like")?".bartext":".point,.textpoint";be.selectAll(Ie).each(function(rt){u.hideOutsideRangePoint(rt,g.select(this),me,Le,ke,Ve)})})}},u.crispRound=function(be,Ae,me){return!Ae||!S(Ae)?me||0:be._context.staticPlot?Ae:Ae<1?1:Math.round(Ae)},u.singleLineStyle=function(be,Ae,me,Le,He){Ae.style("fill","none");var Ue=(((be||[])[0]||{}).trace||{}).line||{},ke=me||Ue.width||0,Ve=He||Ue.dash||"";p.stroke(Ae,Le||Ue.color),u.dashLine(Ae,Ve,ke)},u.lineGroupStyle=function(be,Ae,me,Le){be.style("fill","none").each(function(He){var Ue=(((He||[])[0]||{}).trace||{}).line||{},ke=Ae||Ue.width||0,Ve=Le||Ue.dash||"";g.select(this).call(p.stroke,me||Ue.color).call(u.dashLine,Ve,ke)})},u.dashLine=function(be,Ae,me){me=+me||0,Ae=u.dashStyle(Ae,me),be.style({"stroke-dasharray":Ae,"stroke-width":me+"px"})},u.dashStyle=function(be,Ae){Ae=+Ae||1;var me=Math.max(Ae,3);return be==="solid"?be="":be==="dot"?be=me+"px,"+me+"px":be==="dash"?be=3*me+"px,"+3*me+"px":be==="longdash"?be=5*me+"px,"+5*me+"px":be==="dashdot"?be=3*me+"px,"+me+"px,"+me+"px,"+me+"px":be==="longdashdot"&&(be=5*me+"px,"+2*me+"px,"+me+"px,"+2*me+"px"),be};function o(be,Ae,me,Le){var He=Ae.fillpattern,Ue=Ae.fillgradient,ke=He&&u.getPatternAttr(He.shape,0,"");if(ke){var Ve=u.getPatternAttr(He.bgcolor,0,null),Ie=u.getPatternAttr(He.fgcolor,0,null),rt=He.fgopacity,Ke=u.getPatternAttr(He.size,0,8),$e=u.getPatternAttr(He.solidity,0,.3),lt=Ae.uid;u.pattern(be,"point",me,lt,ke,Ke,$e,void 0,He.fillmode,Ve,Ie,rt)}else if(Ue&&Ue.type!=="none"){var ht=Ue.type,dt="scatterfill-"+Ae.uid;if(Le&&(dt="legendfill-"+Ae.uid),!Le&&(Ue.start!==void 0||Ue.stop!==void 0)){var xt,St;ht==="horizontal"?(xt={x:Ue.start,y:0},St={x:Ue.stop,y:0}):ht==="vertical"&&(xt={x:0,y:Ue.start},St={x:0,y:Ue.stop}),xt.x=Ae._xA.c2p(xt.x===void 0?Ae._extremes.x.min[0].val:xt.x,!0),xt.y=Ae._yA.c2p(xt.y===void 0?Ae._extremes.y.min[0].val:xt.y,!0),St.x=Ae._xA.c2p(St.x===void 0?Ae._extremes.x.max[0].val:St.x,!0),St.y=Ae._yA.c2p(St.y===void 0?Ae._extremes.y.max[0].val:St.y,!0),be.call(T,me,dt,"linear",Ue.colorscale,"fill",xt,St,!0,!1)}else ht==="horizontal"&&(ht=ht+"reversed"),be.call(u.gradient,me,dt,ht,Ue.colorscale,"fill")}else Ae.fillcolor&&be.call(p.fill,Ae.fillcolor)}u.singleFillStyle=function(be,Ae){var me=g.select(be.node()),Le=me.data(),He=((Le[0]||[])[0]||{}).trace||{};o(be,He,Ae,!1)},u.fillGroupStyle=function(be,Ae,me){be.style("stroke-width",0).each(function(Le){var He=g.select(this);Le[0].trace&&o(He,Le[0].trace,Ae,me)})};var d=e(71984);u.symbolNames=[],u.symbolFuncs=[],u.symbolBackOffs=[],u.symbolNeedLines={},u.symbolNoDot={},u.symbolNoFill={},u.symbolList=[],Object.keys(d).forEach(function(be){var Ae=d[be],me=Ae.n;u.symbolList.push(me,String(me),be,me+100,String(me+100),be+"-open"),u.symbolNames[me]=be,u.symbolFuncs[me]=Ae.f,u.symbolBackOffs[me]=Ae.backoff||0,Ae.needLine&&(u.symbolNeedLines[me]=!0),Ae.noDot?u.symbolNoDot[me]=!0:u.symbolList.push(me+200,String(me+200),be+"-dot",me+300,String(me+300),be+"-open-dot"),Ae.noFill&&(u.symbolNoFill[me]=!0)});var w=u.symbolNames.length,A="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";u.symbolNumber=function(be){if(S(be))be=+be;else if(typeof be=="string"){var Ae=0;be.indexOf("-open")>0&&(Ae=100,be=be.replace("-open","")),be.indexOf("-dot")>0&&(Ae+=200,be=be.replace("-dot","")),be=u.symbolNames.indexOf(be),be>=0&&(be+=Ae)}return be%100>=w||be>=400?0:Math.floor(Math.max(be,0))};function _(be,Ae,me,Le){var He=be%100;return u.symbolFuncs[He](Ae,me,Le)+(be>=200?A:"")}var y=i("~f"),E={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};u.gradient=function(be,Ae,me,Le,He,Ue){var ke=E[Le];return T(be,Ae,me,ke.type,He,Ue,ke.start,ke.stop,!1,ke.reversed)};function T(be,Ae,me,Le,He,Ue,ke,Ve,Ie,rt){var Ke=He.length,$e;Le==="linear"?$e={node:"linearGradient",attrs:{x1:ke.x,y1:ke.y,x2:Ve.x,y2:Ve.y,gradientUnits:Ie?"userSpaceOnUse":"objectBoundingBox"},reversed:rt}:Le==="radial"&&($e={node:"radialGradient",reversed:rt});for(var lt=new Array(Ke),ht=0;ht=0&&be.i===void 0&&(be.i=Ue.i),Ae.style("opacity",Le.selectedOpacityFn?Le.selectedOpacityFn(be):be.mo===void 0?ke.opacity:be.mo),Le.ms2mrc){var Ie;be.ms==="various"||ke.size==="various"?Ie=3:Ie=Le.ms2mrc(be.ms),be.mrc=Ie,Le.selectedSizeFn&&(Ie=be.mrc=Le.selectedSizeFn(be));var rt=u.symbolNumber(be.mx||ke.symbol)||0;be.om=rt%200>=100;var Ke=Re(be,me),$e=V(be,me);Ae.attr("d",_(rt,Ie,Ke,$e))}var lt=!1,ht,dt,xt;if(be.so)xt=Ve.outlierwidth,dt=Ve.outliercolor,ht=ke.outliercolor;else{var St=(Ve||{}).width;xt=(be.mlw+1||St+1||(be.trace?(be.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in be?dt=be.mlcc=Le.lineScale(be.mlc):C.isArrayOrTypedArray(Ve.color)?dt=p.defaultLine:dt=Ve.color,C.isArrayOrTypedArray(ke.color)&&(ht=p.defaultLine,lt=!0),"mc"in be?ht=be.mcc=Le.markerScale(be.mc):ht=ke.color||ke.colors||"rgba(0,0,0,0)",Le.selectedColorFn&&(ht=Le.selectedColorFn(be))}if(be.om)Ae.call(p.stroke,ht).style({"stroke-width":(xt||1)+"px",fill:"none"});else{Ae.style("stroke-width",(be.isBlank?0:xt)+"px");var nt=ke.gradient,ze=be.mgt;ze?lt=!0:ze=nt&&nt.type,C.isArrayOrTypedArray(ze)&&(ze=ze[0],E[ze]||(ze=0));var Xe=ke.pattern,Je=Xe&&u.getPatternAttr(Xe.shape,be.i,"");if(ze&&ze!=="none"){var We=be.mgc;We?lt=!0:We=nt.color;var Fe=me.uid;lt&&(Fe+="-"+be.i),u.gradient(Ae,He,Fe,ze,[[0,We],[1,ht]],"fill")}else if(Je){var xe=!1,ye=Xe.fgcolor;!ye&&Ue&&Ue.color&&(ye=Ue.color,xe=!0);var Ee=u.getPatternAttr(ye,be.i,Ue&&Ue.color||null),Me=u.getPatternAttr(Xe.bgcolor,be.i,null),Ne=Xe.fgopacity,je=u.getPatternAttr(Xe.size,be.i,8),it=u.getPatternAttr(Xe.solidity,be.i,.3);xe=xe||be.mcc||C.isArrayOrTypedArray(Xe.shape)||C.isArrayOrTypedArray(Xe.bgcolor)||C.isArrayOrTypedArray(Xe.fgcolor)||C.isArrayOrTypedArray(Xe.size)||C.isArrayOrTypedArray(Xe.solidity);var mt=me.uid;xe&&(mt+="-"+be.i),u.pattern(Ae,"point",He,mt,Je,je,it,be.mcc,Xe.fillmode,Me,Ee,Ne)}else C.isArrayOrTypedArray(ht)?p.fill(Ae,ht[be.i]):p.fill(Ae,ht);xt&&p.stroke(Ae,dt)}},u.makePointStyleFns=function(be){var Ae={},me=be.marker;return Ae.markerScale=u.tryColorscale(me,""),Ae.lineScale=u.tryColorscale(me,"line"),v.traceIs(be,"symbols")&&(Ae.ms2mrc=m.isBubble(be)?h(be):function(){return(me.size||6)/2}),be.selectedpoints&&C.extendFlat(Ae,u.makeSelectedPointStyleFns(be)),Ae},u.makeSelectedPointStyleFns=function(be){var Ae={},me=be.selected||{},Le=be.unselected||{},He=be.marker||{},Ue=me.marker||{},ke=Le.marker||{},Ve=He.opacity,Ie=Ue.opacity,rt=ke.opacity,Ke=Ie!==void 0,$e=rt!==void 0;(C.isArrayOrTypedArray(Ve)||Ke||$e)&&(Ae.selectedOpacityFn=function(Je){var We=Je.mo===void 0?He.opacity:Je.mo;return Je.selected?Ke?Ie:We:$e?rt:l*We});var lt=He.color,ht=Ue.color,dt=ke.color;(ht||dt)&&(Ae.selectedColorFn=function(Je){var We=Je.mcc||lt;return Je.selected?ht||We:dt||We});var xt=He.size,St=Ue.size,nt=ke.size,ze=St!==void 0,Xe=nt!==void 0;return v.traceIs(be,"symbols")&&(ze||Xe)&&(Ae.selectedSizeFn=function(Je){var We=Je.mrc||xt/2;return Je.selected?ze?St/2:We:Xe?nt/2:We}),Ae},u.makeSelectedTextStyleFns=function(be){var Ae={},me=be.selected||{},Le=be.unselected||{},He=be.textfont||{},Ue=me.textfont||{},ke=Le.textfont||{},Ve=He.color,Ie=Ue.color,rt=ke.color;return Ae.selectedTextColorFn=function(Ke){var $e=Ke.tc||Ve;return Ke.selected?Ie||$e:rt||(Ie?$e:p.addOpacity($e,l))},Ae},u.selectedPointStyle=function(be,Ae){if(!(!be.size()||!Ae.selectedpoints)){var me=u.makeSelectedPointStyleFns(Ae),Le=Ae.marker||{},He=[];me.selectedOpacityFn&&He.push(function(Ue,ke){Ue.style("opacity",me.selectedOpacityFn(ke))}),me.selectedColorFn&&He.push(function(Ue,ke){p.fill(Ue,me.selectedColorFn(ke))}),me.selectedSizeFn&&He.push(function(Ue,ke){var Ve=ke.mx||Le.symbol||0,Ie=me.selectedSizeFn(ke);Ue.attr("d",_(u.symbolNumber(Ve),Ie,Re(ke,Ae),V(ke,Ae))),ke.mrc2=Ie}),He.length&&be.each(function(Ue){for(var ke=g.select(this),Ve=0;Ve0?me:0}u.textPointStyle=function(be,Ae,me){if(be.size()){var Le;if(Ae.selectedpoints){var He=u.makeSelectedTextStyleFns(Ae);Le=He.selectedTextColorFn}var Ue=Ae.texttemplate,ke=me._fullLayout;be.each(function(Ve){var Ie=g.select(this),rt=Ue?C.extractOption(Ve,Ae,"txt","texttemplate"):C.extractOption(Ve,Ae,"tx","text");if(!rt&&rt!==0){Ie.remove();return}if(Ue){var Ke=Ae._module.formatLabels,$e=Ke?Ke(Ve,Ae,ke):{},lt={};b(lt,Ae,Ve.i);var ht=Ae._meta||{};rt=C.texttemplateString(rt,$e,ke._d3locale,lt,Ve,ht)}var dt=Ve.tp||Ae.textposition,xt=M(Ve,Ae),St=Le?Le(Ve):Ve.tc||Ae.textfont.color;Ie.call(u.font,Ve.tf||Ae.textfont.family,xt,St).text(rt).call(a.convertToTspans,me).call(L,dt,xt,Ve.mrc)})}},u.selectedTextStyle=function(be,Ae){if(!(!be.size()||!Ae.selectedpoints)){var me=u.makeSelectedTextStyleFns(Ae);be.each(function(Le){var He=g.select(this),Ue=me.selectedTextColorFn(Le),ke=Le.tp||Ae.textposition,Ve=M(Le,Ae);p.fill(He,Ue);var Ie=v.traceIs(Ae,"bar-like");L(He,ke,Ve,Le.mrc2||Le.mrc,Ie)})}};var z=.5;u.smoothopen=function(be,Ae){if(be.length<3)return"M"+be.join("L");var me="M"+be[0],Le=[],He;for(He=1;He=Ie||Je>=Ke&&Je<=Ie)&&(We<=$e&&We>=rt||We>=$e&&We<=rt)&&(be=[Je,We])}return be}u.applyBackoff=j,u.makeTester=function(){var be=C.ensureSingleById(g.select("body"),"svg","js-plotly-tester",function(me){me.attr(n.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Ae=C.ensureSingle(be,"path","js-reference-point",function(me){me.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});u.tester=be,u.testref=Ae},u.savedBBoxes={};var te=0,ie=1e4;u.bBox=function(be,Ae,me){me||(me=ue(be));var Le;if(me){if(Le=u.savedBBoxes[me],Le)return C.extendFlat({},Le)}else if(be.childNodes.length===1){var He=be.childNodes[0];if(me=ue(He),me){var Ue=+He.getAttribute("x")||0,ke=+He.getAttribute("y")||0,Ve=He.getAttribute("transform");if(!Ve){var Ie=u.bBox(He,!1,me);return Ue&&(Ie.left+=Ue,Ie.right+=Ue),ke&&(Ie.top+=ke,Ie.bottom+=ke),Ie}if(me+="~"+Ue+"~"+ke+"~"+Ve,Le=u.savedBBoxes[me],Le)return C.extendFlat({},Le)}}var rt,Ke;Ae?rt=be:(Ke=u.tester.node(),rt=be.cloneNode(!0),Ke.appendChild(rt)),g.select(rt).attr("transform",null).call(a.positionText,0,0);var $e=rt.getBoundingClientRect(),lt=u.testref.node().getBoundingClientRect();Ae||Ke.removeChild(rt);var ht={height:$e.height,width:$e.width,left:$e.left-lt.left,top:$e.top-lt.top,right:$e.right-lt.left,bottom:$e.bottom-lt.top};return te>=ie&&(u.savedBBoxes={},te=0),me&&(u.savedBBoxes[me]=ht),te++,C.extendFlat({},ht)};function ue(be){var Ae=be.getAttribute("data-unformatted");if(Ae!==null)return Ae+be.getAttribute("data-math")+be.getAttribute("text-anchor")+be.getAttribute("style")}u.setClipUrl=function(be,Ae,me){be.attr("clip-path",J(Ae,me))};function J(be,Ae){if(!be)return null;var me=Ae._context,Le=me._exportedPlot?"":me._baseUrl||"";return Le?"url('"+Le+"#"+be+"')":"url(#"+be+")"}u.getTranslate=function(be){var Ae=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,me=be.attr?"attr":"getAttribute",Le=be[me]("transform")||"",He=Le.replace(Ae,function(Ue,ke,Ve){return[ke,Ve].join(" ")}).split(" ");return{x:+He[0]||0,y:+He[1]||0}},u.setTranslate=function(be,Ae,me){var Le=/(\btranslate\(.*?\);?)/,He=be.attr?"attr":"getAttribute",Ue=be.attr?"attr":"setAttribute",ke=be[He]("transform")||"";return Ae=Ae||0,me=me||0,ke=ke.replace(Le,"").trim(),ke+=t(Ae,me),ke=ke.trim(),be[Ue]("transform",ke),ke},u.getScale=function(be){var Ae=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,me=be.attr?"attr":"getAttribute",Le=be[me]("transform")||"",He=Le.replace(Ae,function(Ue,ke,Ve){return[ke,Ve].join(" ")}).split(" ");return{x:+He[0]||1,y:+He[1]||1}},u.setScale=function(be,Ae,me){var Le=/(\bscale\(.*?\);?)/,He=be.attr?"attr":"getAttribute",Ue=be.attr?"attr":"setAttribute",ke=be[He]("transform")||"";return Ae=Ae||1,me=me||1,ke=ke.replace(Le,"").trim(),ke+="scale("+Ae+","+me+")",ke=ke.trim(),be[Ue]("transform",ke),ke};var X=/\s*sc.*/;u.setPointGroupScale=function(be,Ae,me){if(Ae=Ae||1,me=me||1,!!be){var Le=Ae===1&&me===1?"":"scale("+Ae+","+me+")";be.each(function(){var He=(this.getAttribute("transform")||"").replace(X,"");He+=Le,He=He.trim(),this.setAttribute("transform",He)})}};var ee=/translate\([^)]*\)\s*$/;u.setTextPointsScale=function(be,Ae,me){be&&be.each(function(){var Le,He=g.select(this),Ue=He.select("text");if(Ue.node()){var ke=parseFloat(Ue.attr("x")||0),Ve=parseFloat(Ue.attr("y")||0),Ie=(He.attr("transform")||"").match(ee);Ae===1&&me===1?Le=[]:Le=[t(ke,Ve),"scale("+Ae+","+me+")",t(-ke,-Ve)],Ie&&Le.push(Ie),He.attr("transform",Le.join(""))}})};function V(be,Ae){var me;return be&&(me=be.mf),me===void 0&&(me=Ae.marker&&Ae.marker.standoff||0),!Ae._geo&&!Ae._xA?-me:me}u.getMarkerStandoff=V;var Q=Math.atan2,oe=Math.cos,$=Math.sin;function Z(be,Ae){var me=Ae[0],Le=Ae[1];return[me*oe(be)-Le*$(be),me*$(be)+Le*oe(be)]}var se,ne,ce,ge,Te,we;function Re(be,Ae){var me=be.ma;me===void 0&&(me=Ae.marker.angle,(!me||C.isArrayOrTypedArray(me))&&(me=0));var Le,He,Ue=Ae.marker.angleref;if(Ue==="previous"||Ue==="north"){if(Ae._geo){var ke=Ae._geo.project(be.lonlat);Le=ke[0],He=ke[1]}else{var Ve=Ae._xA,Ie=Ae._yA;if(Ve&&Ie)Le=Ve.c2p(be.x),He=Ie.c2p(be.y);else return 90}if(Ae._geo){var rt=be.lonlat[0],Ke=be.lonlat[1],$e=Ae._geo.project([rt,Ke+1e-5]),lt=Ae._geo.project([rt+1e-5,Ke]),ht=Q(lt[1]-He,lt[0]-Le),dt=Q($e[1]-He,$e[0]-Le),xt;if(Ue==="north")xt=me/180*Math.PI;else if(Ue==="previous"){var St=rt/180*Math.PI,nt=Ke/180*Math.PI,ze=se/180*Math.PI,Xe=ne/180*Math.PI,Je=ze-St,We=oe(Xe)*$(Je),Fe=$(Xe)*oe(nt)-oe(Xe)*$(nt)*oe(Je);xt=-Q(We,Fe)-Math.PI,se=rt,ne=Ke}var xe=Z(ht,[oe(xt),0]),ye=Z(dt,[$(xt),0]);me=Q(xe[1]+ye[1],xe[0]+ye[0])/Math.PI*180,Ue==="previous"&&!(we===Ae.uid&&be.i===Te+1)&&(me=null)}if(Ue==="previous"&&!Ae._geo)if(we===Ae.uid&&be.i===Te+1&&S(Le)&&S(He)){var Ee=Le-ce,Me=He-ge,Ne=Ae.line&&Ae.line.shape||"",je=Ne.slice(Ne.length-1);je==="h"&&(Me=0),je==="v"&&(Ee=0),me+=Q(Me,Ee)/Math.PI*180+90}else me=null}return ce=Le,ge=He,Te=be.i,we=Ae.uid,me}u.getMarkerAngle=Re},71984:function(G,U,e){var g=e(21984),C=e(33428).round,i="M0,0Z",S=Math.sqrt(2),x=Math.sqrt(3),v=Math.PI,p=Math.cos,r=Math.sin;G.exports={circle:{n:0,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o="M"+u+",0A"+u+","+u+" 0 1,1 0,-"+u+"A"+u+","+u+" 0 0,1 "+u+",0Z";return b?l(h,b,o):o}},square:{n:1,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M"+u+","+u+"H-"+u+"V-"+u+"H"+u+"Z")}},diamond:{n:2,f:function(m,h,b){if(t(h))return i;var u=C(m*1.3,2);return l(h,b,"M"+u+",0L0,"+u+"L-"+u+",0L0,-"+u+"Z")}},cross:{n:3,f:function(m,h,b){if(t(h))return i;var u=C(m*.4,2),o=C(m*1.2,2);return l(h,b,"M"+o+","+u+"H"+u+"V"+o+"H-"+u+"V"+u+"H-"+o+"V-"+u+"H-"+u+"V-"+o+"H"+u+"V-"+u+"H"+o+"Z")}},x:{n:4,f:function(m,h,b){if(t(h))return i;var u=C(m*.8/S,2),o="l"+u+","+u,d="l"+u+",-"+u,w="l-"+u+",-"+u,A="l-"+u+","+u;return l(h,b,"M0,"+u+o+d+w+d+w+A+w+A+o+A+o+"Z")}},"triangle-up":{n:5,f:function(m,h,b){if(t(h))return i;var u=C(m*2/x,2),o=C(m/2,2),d=C(m,2);return l(h,b,"M-"+u+","+o+"H"+u+"L0,-"+d+"Z")}},"triangle-down":{n:6,f:function(m,h,b){if(t(h))return i;var u=C(m*2/x,2),o=C(m/2,2),d=C(m,2);return l(h,b,"M-"+u+",-"+o+"H"+u+"L0,"+d+"Z")}},"triangle-left":{n:7,f:function(m,h,b){if(t(h))return i;var u=C(m*2/x,2),o=C(m/2,2),d=C(m,2);return l(h,b,"M"+o+",-"+u+"V"+u+"L-"+d+",0Z")}},"triangle-right":{n:8,f:function(m,h,b){if(t(h))return i;var u=C(m*2/x,2),o=C(m/2,2),d=C(m,2);return l(h,b,"M-"+o+",-"+u+"V"+u+"L"+d+",0Z")}},"triangle-ne":{n:9,f:function(m,h,b){if(t(h))return i;var u=C(m*.6,2),o=C(m*1.2,2);return l(h,b,"M-"+o+",-"+u+"H"+u+"V"+o+"Z")}},"triangle-se":{n:10,f:function(m,h,b){if(t(h))return i;var u=C(m*.6,2),o=C(m*1.2,2);return l(h,b,"M"+u+",-"+o+"V"+u+"H-"+o+"Z")}},"triangle-sw":{n:11,f:function(m,h,b){if(t(h))return i;var u=C(m*.6,2),o=C(m*1.2,2);return l(h,b,"M"+o+","+u+"H-"+u+"V-"+o+"Z")}},"triangle-nw":{n:12,f:function(m,h,b){if(t(h))return i;var u=C(m*.6,2),o=C(m*1.2,2);return l(h,b,"M-"+u+","+o+"V-"+u+"H"+o+"Z")}},pentagon:{n:13,f:function(m,h,b){if(t(h))return i;var u=C(m*.951,2),o=C(m*.588,2),d=C(-m,2),w=C(m*-.309,2),A=C(m*.809,2);return l(h,b,"M"+u+","+w+"L"+o+","+A+"H-"+o+"L-"+u+","+w+"L0,"+d+"Z")}},hexagon:{n:14,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o=C(m/2,2),d=C(m*x/2,2);return l(h,b,"M"+d+",-"+o+"V"+o+"L0,"+u+"L-"+d+","+o+"V-"+o+"L0,-"+u+"Z")}},hexagon2:{n:15,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o=C(m/2,2),d=C(m*x/2,2);return l(h,b,"M-"+o+","+d+"H"+o+"L"+u+",0L"+o+",-"+d+"H-"+o+"L-"+u+",0Z")}},octagon:{n:16,f:function(m,h,b){if(t(h))return i;var u=C(m*.924,2),o=C(m*.383,2);return l(h,b,"M-"+o+",-"+u+"H"+o+"L"+u+",-"+o+"V"+o+"L"+o+","+u+"H-"+o+"L-"+u+","+o+"V-"+o+"Z")}},star:{n:17,f:function(m,h,b){if(t(h))return i;var u=m*1.4,o=C(u*.225,2),d=C(u*.951,2),w=C(u*.363,2),A=C(u*.588,2),_=C(-u,2),y=C(u*-.309,2),E=C(u*.118,2),T=C(u*.809,2),s=C(u*.382,2);return l(h,b,"M"+o+","+y+"H"+d+"L"+w+","+E+"L"+A+","+T+"L0,"+s+"L-"+A+","+T+"L-"+w+","+E+"L-"+d+","+y+"H-"+o+"L0,"+_+"Z")}},hexagram:{n:18,f:function(m,h,b){if(t(h))return i;var u=C(m*.66,2),o=C(m*.38,2),d=C(m*.76,2);return l(h,b,"M-"+d+",0l-"+o+",-"+u+"h"+d+"l"+o+",-"+u+"l"+o+","+u+"h"+d+"l-"+o+","+u+"l"+o+","+u+"h-"+d+"l-"+o+","+u+"l-"+o+",-"+u+"h-"+d+"Z")}},"star-triangle-up":{n:19,f:function(m,h,b){if(t(h))return i;var u=C(m*x*.8,2),o=C(m*.8,2),d=C(m*1.6,2),w=C(m*4,2),A="A "+w+","+w+" 0 0 1 ";return l(h,b,"M-"+u+","+o+A+u+","+o+A+"0,-"+d+A+"-"+u+","+o+"Z")}},"star-triangle-down":{n:20,f:function(m,h,b){if(t(h))return i;var u=C(m*x*.8,2),o=C(m*.8,2),d=C(m*1.6,2),w=C(m*4,2),A="A "+w+","+w+" 0 0 1 ";return l(h,b,"M"+u+",-"+o+A+"-"+u+",-"+o+A+"0,"+d+A+u+",-"+o+"Z")}},"star-square":{n:21,f:function(m,h,b){if(t(h))return i;var u=C(m*1.1,2),o=C(m*2,2),d="A "+o+","+o+" 0 0 1 ";return l(h,b,"M-"+u+",-"+u+d+"-"+u+","+u+d+u+","+u+d+u+",-"+u+d+"-"+u+",-"+u+"Z")}},"star-diamond":{n:22,f:function(m,h,b){if(t(h))return i;var u=C(m*1.4,2),o=C(m*1.9,2),d="A "+o+","+o+" 0 0 1 ";return l(h,b,"M-"+u+",0"+d+"0,"+u+d+u+",0"+d+"0,-"+u+d+"-"+u+",0Z")}},"diamond-tall":{n:23,f:function(m,h,b){if(t(h))return i;var u=C(m*.7,2),o=C(m*1.4,2);return l(h,b,"M0,"+o+"L"+u+",0L0,-"+o+"L-"+u+",0Z")}},"diamond-wide":{n:24,f:function(m,h,b){if(t(h))return i;var u=C(m*1.4,2),o=C(m*.7,2);return l(h,b,"M0,"+o+"L"+u+",0L0,-"+o+"L-"+u+",0Z")}},hourglass:{n:25,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M"+u+","+u+"H-"+u+"L"+u+",-"+u+"H-"+u+"Z")},noDot:!0},bowtie:{n:26,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M"+u+","+u+"V-"+u+"L-"+u+","+u+"V-"+u+"Z")},noDot:!0},"circle-cross":{n:27,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M0,"+u+"V-"+u+"M"+u+",0H-"+u+"M"+u+",0A"+u+","+u+" 0 1,1 0,-"+u+"A"+u+","+u+" 0 0,1 "+u+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o=C(m/S,2);return l(h,b,"M"+o+","+o+"L-"+o+",-"+o+"M"+o+",-"+o+"L-"+o+","+o+"M"+u+",0A"+u+","+u+" 0 1,1 0,-"+u+"A"+u+","+u+" 0 0,1 "+u+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M0,"+u+"V-"+u+"M"+u+",0H-"+u+"M"+u+","+u+"H-"+u+"V-"+u+"H"+u+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M"+u+","+u+"L-"+u+",-"+u+"M"+u+",-"+u+"L-"+u+","+u+"M"+u+","+u+"H-"+u+"V-"+u+"H"+u+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(m,h,b){if(t(h))return i;var u=C(m*1.3,2);return l(h,b,"M"+u+",0L0,"+u+"L-"+u+",0L0,-"+u+"ZM0,-"+u+"V"+u+"M-"+u+",0H"+u)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(m,h,b){if(t(h))return i;var u=C(m*1.3,2),o=C(m*.65,2);return l(h,b,"M"+u+",0L0,"+u+"L-"+u+",0L0,-"+u+"ZM-"+o+",-"+o+"L"+o+","+o+"M-"+o+","+o+"L"+o+",-"+o)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(m,h,b){if(t(h))return i;var u=C(m*1.4,2);return l(h,b,"M0,"+u+"V-"+u+"M"+u+",0H-"+u)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M"+u+","+u+"L-"+u+",-"+u+"M"+u+",-"+u+"L-"+u+","+u)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(m,h,b){if(t(h))return i;var u=C(m*1.2,2),o=C(m*.85,2);return l(h,b,"M0,"+u+"V-"+u+"M"+u+",0H-"+u+"M"+o+","+o+"L-"+o+",-"+o+"M"+o+",-"+o+"L-"+o+","+o)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(m,h,b){if(t(h))return i;var u=C(m/2,2),o=C(m,2);return l(h,b,"M"+u+","+o+"V-"+o+"M"+(u-o)+",-"+o+"V"+o+"M"+o+","+u+"H-"+o+"M-"+o+","+(u-o)+"H"+o)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(m,h,b){if(t(h))return i;var u=C(m*1.2,2),o=C(m*1.6,2),d=C(m*.8,2);return l(h,b,"M-"+u+","+d+"L0,0M"+u+","+d+"L0,0M0,-"+o+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(m,h,b){if(t(h))return i;var u=C(m*1.2,2),o=C(m*1.6,2),d=C(m*.8,2);return l(h,b,"M-"+u+",-"+d+"L0,0M"+u+",-"+d+"L0,0M0,"+o+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(m,h,b){if(t(h))return i;var u=C(m*1.2,2),o=C(m*1.6,2),d=C(m*.8,2);return l(h,b,"M"+d+","+u+"L0,0M"+d+",-"+u+"L0,0M-"+o+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(m,h,b){if(t(h))return i;var u=C(m*1.2,2),o=C(m*1.6,2),d=C(m*.8,2);return l(h,b,"M-"+d+","+u+"L0,0M-"+d+",-"+u+"L0,0M"+o+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(m,h,b){if(t(h))return i;var u=C(m*1.4,2);return l(h,b,"M"+u+",0H-"+u)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(m,h,b){if(t(h))return i;var u=C(m*1.4,2);return l(h,b,"M0,"+u+"V-"+u)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M"+u+",-"+u+"L-"+u+","+u)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(m,h,b){if(t(h))return i;var u=C(m,2);return l(h,b,"M"+u+","+u+"L-"+u+",-"+u)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o=C(m*2,2);return l(h,b,"M0,0L-"+u+","+o+"H"+u+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o=C(m*2,2);return l(h,b,"M0,0L-"+u+",-"+o+"H"+u+"Z")},noDot:!0},"arrow-left":{n:47,f:function(m,h,b){if(t(h))return i;var u=C(m*2,2),o=C(m,2);return l(h,b,"M0,0L"+u+",-"+o+"V"+o+"Z")},noDot:!0},"arrow-right":{n:48,f:function(m,h,b){if(t(h))return i;var u=C(m*2,2),o=C(m,2);return l(h,b,"M0,0L-"+u+",-"+o+"V"+o+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o=C(m*2,2);return l(h,b,"M-"+u+",0H"+u+"M0,0L-"+u+","+o+"H"+u+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(m,h,b){if(t(h))return i;var u=C(m,2),o=C(m*2,2);return l(h,b,"M-"+u+",0H"+u+"M0,0L-"+u+",-"+o+"H"+u+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(m,h,b){if(t(h))return i;var u=C(m*2,2),o=C(m,2);return l(h,b,"M0,-"+o+"V"+o+"M0,0L"+u+",-"+o+"V"+o+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(m,h,b){if(t(h))return i;var u=C(m*2,2),o=C(m,2);return l(h,b,"M0,-"+o+"V"+o+"M0,0L-"+u+",-"+o+"V"+o+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(m,h,b){if(t(h))return i;var u=v/2.5,o=2*m*p(u),d=2*m*r(u);return l(h,b,"M0,0L"+-o+","+d+"L"+o+","+d+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(m,h,b){if(t(h))return i;var u=v/4,o=2*m*p(u),d=2*m*r(u);return l(h,b,"M0,0L"+-o+","+d+"A "+2*m+","+2*m+" 0 0 1 "+o+","+d+"Z")},backoff:.4,noDot:!0}};function t(m){return m===null}var a,n,f,c;function l(m,h,b){if((!m||m%360===0)&&!h)return b;if(f===m&&c===h&&a===b)return n;f=m,c=h,a=b;function u(D,N){var I=p(D),k=r(D),B=N[0],O=N[1]+(h||0);return[B*I-O*k,B*k+O*I]}for(var o=m/180*v,d=0,w=0,A=g(b),_="",y=0;y0,m=p._context.staticPlot;r.each(function(h){var b=h[0].trace,u=b.error_x||{},o=b.error_y||{},d;b.ids&&(d=function(y){return y.id});var w=S.hasMarkers(b)&&b.marker.maxdisplayed>0;!o.visible&&!u.visible&&(h=[]);var A=g.select(this).selectAll("g.errorbar").data(h,d);if(A.exit().remove(),!!h.length){u.visible||A.selectAll("path.xerror").remove(),o.visible||A.selectAll("path.yerror").remove(),A.style("opacity",1);var _=A.enter().append("g").classed("errorbar",!0);l&&_.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(A,t.layerClipId,p),A.each(function(y){var E=g.select(this),T=x(y,f,c);if(!(w&&!y.vis)){var s,L=E.select("path.yerror");if(o.visible&&C(T.x)&&C(T.yh)&&C(T.ys)){var M=o.width;s="M"+(T.x-M)+","+T.yh+"h"+2*M+"m-"+M+",0V"+T.ys,T.noYS||(s+="m-"+M+",0h"+2*M),n=!L.size(),n?L=E.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("yerror",!0):l&&(L=L.transition().duration(a.duration).ease(a.easing)),L.attr("d",s)}else L.remove();var z=E.select("path.xerror");if(u.visible&&C(T.y)&&C(T.xh)&&C(T.xs)){var D=(u.copy_ystyle?o:u).width;s="M"+T.xh+","+(T.y-D)+"v"+2*D+"m0,-"+D+"H"+T.xs,T.noXS||(s+="m0,-"+D+"v"+2*D),n=!z.size(),n?z=E.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("xerror",!0):l&&(z=z.transition().duration(a.duration).ease(a.easing)),z.attr("d",s)}else z.remove()}})}})};function x(v,p,r){var t={x:p.c2p(v.x),y:r.c2p(v.y)};return v.yh!==void 0&&(t.yh=r.c2p(v.yh),t.ys=r.c2p(v.ys),C(t.ys)||(t.noYS=!0,t.ys=r.c2p(v.ys,!0))),v.xh!==void 0&&(t.xh=p.c2p(v.xh),t.xs=p.c2p(v.xs),C(t.xs)||(t.noXS=!0,t.xs=p.c2p(v.xs,!0))),t}},92036:function(G,U,e){var g=e(33428),C=e(76308);G.exports=function(S){S.each(function(x){var v=x[0].trace,p=v.error_y||{},r=v.error_x||{},t=g.select(this);t.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(C.stroke,p.color),r.copy_ystyle&&(r=p),t.selectAll("path.xerror").style("stroke-width",r.thickness+"px").call(C.stroke,r.color)})}},55756:function(G,U,e){var g=e(25376),C=e(65460).hoverlabel,i=e(92880).extendFlat;G.exports={hoverlabel:{bgcolor:i({},C.bgcolor,{arrayOk:!0}),bordercolor:i({},C.bordercolor,{arrayOk:!0}),font:g({arrayOk:!0,editType:"none"}),align:i({},C.align,{arrayOk:!0}),namelength:i({},C.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(G,U,e){var g=e(3400),C=e(24040);G.exports=function(x){var v=x.calcdata,p=x._fullLayout;function r(c){return function(l){return g.coerceHoverinfo({hoverinfo:l},{_module:c._module},p)}}for(var t=0;t=0&&t.indexAe[0]._length||it<0||it>me[0]._length)return f.unhoverRaw(Q,oe)}if(oe.pointerX=je+Ae[0]._offset,oe.pointerY=it+me[0]._offset,"xval"in oe?lt=m.flat(ne,oe.xval):lt=m.p2c(Ae,je),"yval"in oe?ht=m.flat(ne,oe.yval):ht=m.p2c(me,it),!C(lt[0])||!C(ht[0]))return S.warn("Fx.hover failed",oe,Q),f.unhoverRaw(Q,oe)}var vt=1/0;function Lt(Cr,Wr){for(xt=0;xt<$e.length;xt++)if(St=$e[xt],!(!St||!St[0]||!St[0].trace)&&(nt=St[0].trace,!(nt.visible!==!0||nt._length===0)&&["carpet","contourcarpet"].indexOf(nt._module.name)===-1)){if(nt.type==="splom"?(Xe=0,ze=ne[Xe]):(ze=m.getSubplot(nt),Xe=ne.indexOf(ze)),Je=Ve,m.isUnifiedHover(Je)&&(Je=Je.charAt(0)),xe={cd:St,trace:nt,xa:Ae[Xe],ya:me[Xe],maxHoverDistance:Ie,maxSpikeDistance:rt,index:!1,distance:Math.min(vt,Ie),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:n.defaultLine,name:nt.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},ce[ze]&&(xe.subplot=ce[ze]._subplot),ce._splomScenes&&ce._splomScenes[nt.uid]&&(xe.scene=ce._splomScenes[nt.uid]),ye=Ke.length,Je==="array"){var Ur=oe[xt];"pointNumber"in Ur?(xe.index=Ur.pointNumber,Je="closest"):(Je="","xval"in Ur&&(We=Ur.xval,Je="x"),"yval"in Ur&&(Fe=Ur.yval,Je=Je?"closest":"y"))}else Cr!==void 0&&Wr!==void 0?(We=Cr,Fe=Wr):(We=lt[Xe],Fe=ht[Xe]);if(Ie!==0)if(nt._module&&nt._module.hoverPoints){var an=nt._module.hoverPoints(xe,We,Fe,Je,{finiteRange:!0,hoverLayer:ce._hoverlayer});if(an)for(var pn,gn=0;gnye&&(Ke.splice(0,ye),vt=Ke[0].distance),we&&rt!==0&&Ke.length===0){xe.distance=rt,xe.index=!1;var _n=nt._module.hoverPoints(xe,We,Fe,"closest",{hoverLayer:ce._hoverlayer});if(_n&&(_n=_n.filter(function(ri){return ri.spikeDistance<=rt})),_n&&_n.length){var kn,ni=_n.filter(function(ri){return ri.xa.showspikes&&ri.xa.spikesnap!=="hovered data"});if(ni.length){var ci=ni[0];C(ci.x0)&&C(ci.y0)&&(kn=Tt(ci),(!Ee.vLinePoint||Ee.vLinePoint.spikeDistance>kn.spikeDistance)&&(Ee.vLinePoint=kn))}var di=_n.filter(function(ri){return ri.ya.showspikes&&ri.ya.spikesnap!=="hovered data"});if(di.length){var li=di[0];C(li.x0)&&C(li.y0)&&(kn=Tt(li),(!Ee.hLinePoint||Ee.hLinePoint.spikeDistance>kn.spikeDistance)&&(Ee.hLinePoint=kn))}}}}}Lt();function ct(Cr,Wr,Ur){for(var an=null,pn=1/0,gn,_n=0;_n0&&Math.abs(Cr.distance)Pt-1;Ye--)vr(Ke[Ye]);Ke=Jt,Xt()}var Ge=Q._hoverdata,Nt=[],Ot=X(Q),Qt=ee(Q);for(dt=0;dt1||Ke.length>1)||Ve==="closest"&&Me&&Ke.length>1,rn=n.combine(ce.plot_bgcolor||n.background,ce.paper_bgcolor),Cn=D(Ke,{gd:Q,hovermode:Ve,rotateLabels:cn,bgColor:rn,container:ce._hoverlayer,outerContainer:ce._paper.node(),commonLabelOpts:ce.hoverlabel,hoverdistance:ce.hoverdistance}),En=Cn.hoverLabels;if(m.isUnifiedHover(Ve)||(I(En,cn,ce,Cn.commonLabelBoundingBox),O(En,cn,ce._invScaleX,ce._invScaleY)),se&&se.tagName){var Tr=l.getComponentMethod("annotations","hasClickToShow")(Q,Nt);t(g.select(se),Tr?"pointer":"")}!se||Z||!j(Q,oe,Ge)||(Ge&&Q.emit("plotly_unhover",{event:oe,points:Ge}),Q.emit("plotly_hover",{event:oe,points:Q._hoverdata,xaxes:Ae,yaxes:me,xvals:lt,yvals:ht}))}function M(Q){return[Q.trace.index,Q.index,Q.x0,Q.y0,Q.name,Q.attr,Q.xa?Q.xa._id:"",Q.ya?Q.ya._id:""].join(",")}var z=/([\s\S]*)<\/extra>/;function D(Q,oe){var $=oe.gd,Z=$._fullLayout,se=oe.hovermode,ne=oe.rotateLabels,ce=oe.bgColor,ge=oe.container,Te=oe.outerContainer,we=oe.commonLabelOpts||{};if(Q.length===0)return[[]];var Re=oe.fontFamily||h.HOVERFONT,be=oe.fontSize||h.HOVERFONTSIZE,Ae=Q[0],me=Ae.xa,Le=Ae.ya,He=se.charAt(0),Ue=He+"Label",ke=Ae[Ue];if(ke===void 0&&me.type==="multicategory")for(var Ve=0;VeZ.width-Qt&&(tr=Z.width-Qt),kt.attr("d","M"+(Ge-tr)+",0L"+(Ge-tr+y)+","+Ot+y+"H"+Qt+"v"+Ot+(E*2+Ye.height)+"H"+-Qt+"V"+Ot+y+"H"+(Ge-tr-y)+"Z"),Ge=tr,ze.minX=Ge-Qt,ze.maxX=Ge+Qt,me.side==="top"?(ze.minY=Nt-(E*2+Ye.height),ze.maxY=Nt-E):(ze.minY=Nt+E,ze.maxY=Nt+(E*2+Ye.height))}else{var fr,rr,Ht;Le.side==="right"?(fr="start",rr=1,Ht="",Ge=me._offset+me._length):(fr="end",rr=-1,Ht="-",Ge=me._offset),Nt=Le._offset+(Ae.y0+Ae.y1)/2,Vt.attr("text-anchor",fr),kt.attr("d","M0,0L"+Ht+y+","+y+"V"+(E+Ye.height/2)+"h"+Ht+(E*2+Ye.width)+"V-"+(E+Ye.height/2)+"H"+Ht+y+"V-"+y+"Z"),ze.minY=Nt-(E+Ye.height/2),ze.maxY=Nt+(E+Ye.height/2),Le.side==="right"?(ze.minX=Ge+y,ze.maxX=Ge+y+(E*2+Ye.width)):(ze.minX=Ge-y-(E*2+Ye.width),ze.maxX=Ge-y);var dr=Ye.height/2,mr=rt-Ye.top-dr,xr="clip"+Z._uid+"commonlabel"+Le._id,pr;if(Ge=0?At=or:$t+Lt=0?At=$t:gt+Lt=0?Ct=Xt:Kt+ct<$e&&Kt>=0?Ct=Kt:st+ct<$e?Ct=st:Xt-ir=0,(Pt.idealAlign==="top"||!cn)&&rn?(dr-=xr/2,Pt.anchor="end"):cn?(dr+=xr/2,Pt.anchor="start"):Pt.anchor="middle",Pt.crossPos=dr;else{if(Pt.pos=dr,cn=Ht+mr/2+Dr<=Ke,rn=Ht-mr/2-Dr>=0,(Pt.idealAlign==="left"||!cn)&&rn)Ht-=mr/2,Pt.anchor="end";else if(cn)Ht+=mr/2,Pt.anchor="start";else{Pt.anchor="middle";var Cn=Dr/2,En=Ht+Cn-Ke,Tr=Ht-Cn;En>0&&(Ht-=En),Tr<0&&(Ht+=-Tr)}Pt.crossPos=Ht}Ot.attr("text-anchor",Pt.anchor),tr&&Qt.attr("text-anchor",Pt.anchor),kt.attr("transform",x(Ht,dr)+(ne?v(o):""))}),{hoverLabels:It,commonLabelBoundingBox:ze}}function N(Q,oe,$,Z,se,ne){var ce="",ge="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=S.templateString(Q.name,Q.trace._meta)),ce=ie(Q.name,Q.nameLength));var Te=$.charAt(0),we=Te==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(ge+="x: "+Q.xLabel+"
    "),Q.yLabel!==void 0&&(ge+="y: "+Q.yLabel+"
    "),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(ge+=(ge?"z: ":"")+Q.zLabel)):oe&&Q[Te+"Label"]===se?ge=Q[we+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(ge=Q.yLabel):Q.yLabel===void 0?ge=Q.xLabel:ge="("+Q.xLabel+", "+Q.yLabel+")",(Q.text||Q.text===0)&&!Array.isArray(Q.text)&&(ge+=(ge?"
    ":"")+Q.text),Q.extraText!==void 0&&(ge+=(ge?"
    ":"")+Q.extraText),ne&&ge===""&&!Q.hovertemplate&&(ce===""&&ne.remove(),ge=ce);var Re=Q.hovertemplate||!1;if(Re){var be=Q.hovertemplateLabels||Q;Q[Te+"Label"]!==se&&(be[Te+"other"]=be[Te+"Val"],be[Te+"otherLabel"]=be[Te+"Label"]),ge=S.hovertemplateString(Re,be,Z._d3locale,Q.eventData[0]||{},Q.trace._meta),ge=ge.replace(z,function(Ae,me){return ce=ie(me,Q.nameLength),""})}return[ge,ce]}function I(Q,oe,$,Z){var se=oe?"xa":"ya",ne=oe?"ya":"xa",ce=0,ge=1,Te=Q.size(),we=new Array(Te),Re=0,be=Z.minX,Ae=Z.maxX,me=Z.minY,Le=Z.maxY,He=function(We){return We*$._invScaleX},Ue=function(We){return We*$._invScaleY};Q.each(function(We){var Fe=We[se],xe=We[ne],ye=Fe._id.charAt(0)==="x",Ee=Fe.range;Re===0&&Ee&&Ee[0]>Ee[1]!==ye&&(ge=-1);var Me=0,Ne=ye?$.width:$.height;if($.hovermode==="x"||$.hovermode==="y"){var je=k(We,oe),it=We.anchor,mt=it==="end"?-1:1,bt,vt;if(it==="middle")bt=We.crossPos+(ye?Ue(je.y-We.by/2):He(We.bx/2+We.tx2width/2)),vt=bt+(ye?Ue(We.by):He(We.bx));else if(ye)bt=We.crossPos+Ue(y+je.y)-Ue(We.by/2-y),vt=bt+Ue(We.by);else{var Lt=He(mt*y+je.x),ct=Lt+He(mt*We.bx);bt=We.crossPos+Math.min(Lt,ct),vt=We.crossPos+Math.max(Lt,ct)}ye?me!==void 0&&Le!==void 0&&Math.min(vt,Le)-Math.max(bt,me)>1&&(xe.side==="left"?(Me=xe._mainLinePosition,Ne=$.width):Ne=xe._mainLinePosition):be!==void 0&&Ae!==void 0&&Math.min(vt,Ae)-Math.max(bt,be)>1&&(xe.side==="top"?(Me=xe._mainLinePosition,Ne=$.height):Ne=xe._mainLinePosition)}we[Re++]=[{datum:We,traceIndex:We.trace.index,dp:0,pos:We.pos,posref:We.posref,size:We.by*(ye?w:1)/2,pmin:Me,pmax:Ne}]}),we.sort(function(We,Fe){return We[0].posref-Fe[0].posref||ge*(Fe[0].traceIndex-We[0].traceIndex)});var ke,Ve,Ie,rt,Ke,$e,lt;function ht(We){var Fe=We[0],xe=We[We.length-1];if(Ve=Fe.pmin-Fe.pos-Fe.dp+Fe.size,Ie=xe.pos+xe.dp+xe.size-Fe.pmax,Ve>.01){for(Ke=We.length-1;Ke>=0;Ke--)We[Ke].dp+=Ve;ke=!1}if(!(Ie<.01)){if(Ve<-.01){for(Ke=We.length-1;Ke>=0;Ke--)We[Ke].dp-=Ie;ke=!1}if(ke){var ye=0;for(rt=0;rtFe.pmax&&ye++;for(rt=We.length-1;rt>=0&&!(ye<=0);rt--)$e=We[rt],$e.pos>Fe.pmax-1&&($e.del=!0,ye--);for(rt=0;rt=0;Ke--)We[Ke].dp-=Ie;for(rt=We.length-1;rt>=0&&!(ye<=0);rt--)$e=We[rt],$e.pos+$e.dp+$e.size>Fe.pmax&&($e.del=!0,ye--)}}}for(;!ke&&ce<=Te;){for(ce++,ke=!0,rt=0;rt.01&&St.pmin===nt.pmin&&St.pmax===nt.pmax){for(Ke=xt.length-1;Ke>=0;Ke--)xt[Ke].dp+=Ve;for(dt.push.apply(dt,xt),we.splice(rt+1,1),lt=0,Ke=dt.length-1;Ke>=0;Ke--)lt+=dt[Ke].dp;for(Ie=lt/dt.length,Ke=dt.length-1;Ke>=0;Ke--)dt[Ke].dp-=Ie;ke=!1}else rt++}we.forEach(ht)}for(rt=we.length-1;rt>=0;rt--){var ze=we[rt];for(Ke=ze.length-1;Ke>=0;Ke--){var Xe=ze[Ke],Je=Xe.datum;Je.offset=Xe.dp,Je.del=Xe.del}}}function k(Q,oe){var $=0,Z=Q.offset;return oe&&(Z*=-_,$=Q.offset*A),{x:$,y:Z}}function B(Q){var oe={start:1,end:-1,middle:0}[Q.anchor],$=oe*(y+E),Z=$+oe*(Q.txwidth+E),se=Q.anchor==="middle";return se&&($-=Q.tx2width/2,Z+=Q.txwidth/2+E),{alignShift:oe,textShiftX:$,text2ShiftX:Z}}function O(Q,oe,$,Z){var se=function(ce){return ce*$},ne=function(ce){return ce*Z};Q.each(function(ce){var ge=g.select(this);if(ce.del)return ge.remove();var Te=ge.select("text.nums"),we=ce.anchor,Re=we==="end"?-1:1,be=B(ce),Ae=k(ce,oe),me=Ae.x,Le=Ae.y,He=we==="middle";ge.select("path").attr("d",He?"M-"+se(ce.bx/2+ce.tx2width/2)+","+ne(Le-ce.by/2)+"h"+se(ce.bx)+"v"+ne(ce.by)+"h-"+se(ce.bx)+"Z":"M0,0L"+se(Re*y+me)+","+ne(y+Le)+"v"+ne(ce.by/2-y)+"h"+se(Re*ce.bx)+"v-"+ne(ce.by)+"H"+se(Re*y+me)+"V"+ne(Le-y)+"Z");var Ue=me+be.textShiftX,ke=Le+ce.ty0-ce.by/2+E,Ve=ce.textAlign||"auto";Ve!=="auto"&&(Ve==="left"&&we!=="start"?(Te.attr("text-anchor","start"),Ue=He?-ce.bx/2-ce.tx2width/2+E:-ce.bx-E):Ve==="right"&&we!=="end"&&(Te.attr("text-anchor","end"),Ue=He?ce.bx/2-ce.tx2width/2-E:ce.bx+E)),Te.call(r.positionText,se(Ue),ne(ke)),ce.tx2width&&(ge.select("text.name").call(r.positionText,se(be.text2ShiftX+be.alignShift*E+me),ne(Le+ce.ty0-ce.by/2+E)),ge.select("rect").call(a.setRect,se(be.text2ShiftX+(be.alignShift-1)*ce.tx2width/2+me),ne(Le-ce.by/2-1),se(ce.tx2width),ne(ce.by+2)))})}function H(Q,oe){var $=Q.index,Z=Q.trace||{},se=Q.cd[0],ne=Q.cd[$]||{};function ce(Ae){return Ae||C(Ae)&&Ae===0}var ge=Array.isArray($)?function(Ae,me){var Le=S.castOption(se,$,Ae);return ce(Le)?Le:S.extractOption({},Z,"",me)}:function(Ae,me){return S.extractOption(ne,Z,Ae,me)};function Te(Ae,me,Le){var He=ge(me,Le);ce(He)&&(Q[Ae]=He)}if(Te("hoverinfo","hi","hoverinfo"),Te("bgcolor","hbg","hoverlabel.bgcolor"),Te("borderColor","hbc","hoverlabel.bordercolor"),Te("fontFamily","htf","hoverlabel.font.family"),Te("fontSize","hts","hoverlabel.font.size"),Te("fontColor","htc","hoverlabel.font.color"),Te("nameLength","hnl","hoverlabel.namelength"),Te("textAlign","hta","hoverlabel.align"),Q.posref=oe==="y"||oe==="closest"&&Z.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=S.constrain(Q.x0,0,Q.xa._length),Q.x1=S.constrain(Q.x1,0,Q.xa._length),Q.y0=S.constrain(Q.y0,0,Q.ya._length),Q.y1=S.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:c.hoverLabelText(Q.xa,Q.xLabelVal,Z.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:c.hoverLabelText(Q.ya,Q.yLabelVal,Z.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!isNaN(Q.xerr)&&!(Q.xa.type==="log"&&Q.xerr<=0)){var we=c.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+we+" / -"+c.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+we,oe==="x"&&(Q.distance+=1)}if(!isNaN(Q.yerr)&&!(Q.ya.type==="log"&&Q.yerr<=0)){var Re=c.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Re+" / -"+c.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Re,oe==="y"&&(Q.distance+=1)}var be=Q.hoverinfo||Q.trace.hoverinfo;return be&&be!=="all"&&(be=Array.isArray(be)?be:be.split("+"),be.indexOf("x")===-1&&(Q.xLabel=void 0),be.indexOf("y")===-1&&(Q.yLabel=void 0),be.indexOf("z")===-1&&(Q.zLabel=void 0),be.indexOf("text")===-1&&(Q.text=void 0),be.indexOf("name")===-1&&(Q.name=void 0)),Q}function Y(Q,oe,$){var Z=$.container,se=$.fullLayout,ne=se._size,ce=$.event,ge=!!oe.hLinePoint,Te=!!oe.vLinePoint,we,Re;if(Z.selectAll(".spikeline").remove(),!!(Te||ge)){var be=n.combine(se.plot_bgcolor,se.paper_bgcolor);if(ge){var Ae=oe.hLinePoint,me,Le;we=Ae&&Ae.xa,Re=Ae&&Ae.ya;var He=Re.spikesnap;He==="cursor"?(me=ce.pointerX,Le=ce.pointerY):(me=we._offset+Ae.x,Le=Re._offset+Ae.y);var Ue=i.readability(Ae.color,be)<1.5?n.contrast(be):Ae.color,ke=Re.spikemode,Ve=Re.spikethickness,Ie=Re.spikecolor||Ue,rt=c.getPxPosition(Q,Re),Ke,$e;if(ke.indexOf("toaxis")!==-1||ke.indexOf("across")!==-1){if(ke.indexOf("toaxis")!==-1&&(Ke=rt,$e=me),ke.indexOf("across")!==-1){var lt=Re._counterDomainMin,ht=Re._counterDomainMax;Re.anchor==="free"&&(lt=Math.min(lt,Re.position),ht=Math.max(ht,Re.position)),Ke=ne.l+lt*ne.w,$e=ne.l+ht*ne.w}Z.insert("line",":first-child").attr({x1:Ke,x2:$e,y1:Le,y2:Le,"stroke-width":Ve,stroke:Ie,"stroke-dasharray":a.dashStyle(Re.spikedash,Ve)}).classed("spikeline",!0).classed("crisp",!0),Z.insert("line",":first-child").attr({x1:Ke,x2:$e,y1:Le,y2:Le,"stroke-width":Ve+2,stroke:be}).classed("spikeline",!0).classed("crisp",!0)}ke.indexOf("marker")!==-1&&Z.insert("circle",":first-child").attr({cx:rt+(Re.side!=="right"?Ve:-Ve),cy:Le,r:Ve,fill:Ie}).classed("spikeline",!0)}if(Te){var dt=oe.vLinePoint,xt,St;we=dt&&dt.xa,Re=dt&&dt.ya;var nt=we.spikesnap;nt==="cursor"?(xt=ce.pointerX,St=ce.pointerY):(xt=we._offset+dt.x,St=Re._offset+dt.y);var ze=i.readability(dt.color,be)<1.5?n.contrast(be):dt.color,Xe=we.spikemode,Je=we.spikethickness,We=we.spikecolor||ze,Fe=c.getPxPosition(Q,we),xe,ye;if(Xe.indexOf("toaxis")!==-1||Xe.indexOf("across")!==-1){if(Xe.indexOf("toaxis")!==-1&&(xe=Fe,ye=St),Xe.indexOf("across")!==-1){var Ee=we._counterDomainMin,Me=we._counterDomainMax;we.anchor==="free"&&(Ee=Math.min(Ee,we.position),Me=Math.max(Me,we.position)),xe=ne.t+(1-Me)*ne.h,ye=ne.t+(1-Ee)*ne.h}Z.insert("line",":first-child").attr({x1:xt,x2:xt,y1:xe,y2:ye,"stroke-width":Je,stroke:We,"stroke-dasharray":a.dashStyle(we.spikedash,Je)}).classed("spikeline",!0).classed("crisp",!0),Z.insert("line",":first-child").attr({x1:xt,x2:xt,y1:xe,y2:ye,"stroke-width":Je+2,stroke:be}).classed("spikeline",!0).classed("crisp",!0)}Xe.indexOf("marker")!==-1&&Z.insert("circle",":first-child").attr({cx:xt,cy:Fe-(we.side!=="top"?Je:-Je),r:Je,fill:We}).classed("spikeline",!0)}}}function j(Q,oe,$){if(!$||$.length!==Q._hoverdata.length)return!0;for(var Z=$.length-1;Z>=0;Z--){var se=$[Z],ne=Q._hoverdata[Z];if(se.curveNumber!==ne.curveNumber||String(se.pointNumber)!==String(ne.pointNumber)||String(se.pointNumbers)!==String(ne.pointNumbers))return!0}return!1}function te(Q,oe){return!oe||oe.vLinePoint!==Q._spikepoints.vLinePoint||oe.hLinePoint!==Q._spikepoints.hLinePoint}function ie(Q,oe){return r.plainText(Q||"",{len:oe,allowedTags:["br","sub","sup","b","i","em"]})}function ue(Q,oe){for(var $=oe.charAt(0),Z=[],se=[],ne=[],ce=0;ce1)){delete c.grid;return}if(!b&&!u&&!o){var s=y("pattern")==="independent";s&&(b=!0)}_._hasSubplotGrid=b;var L=y("roworder"),M=L==="top to bottom",z=b?.2:.1,D=b?.3:.1,N,I;d&&c._splomGridDflt&&(N=c._splomGridDflt.xside,I=c._splomGridDflt.yside),_._domains={x:t("x",y,z,N,T),y:t("y",y,D,I,E,M)}}function t(f,c,l,m,h,b){var u=c(f+"gap",l),o=c("domain."+f);c(f+"side",m);for(var d=new Array(h),w=o[0],A=(o[1]-w)/(h-u),_=A*(1-u),y=0;y(t==="legend"?1:0));if(M===!1&&(n[t]=void 0),!(M===!1&&!c.uirevision)&&(m("uirevision",n.uirevision),M!==!1)){m("borderwidth");var z=m("orientation"),D=m("yref"),N=m("xref"),I=z==="h",k=D==="paper",B=N==="paper",O,H,Y,j="left";I?(O=0,g.getComponentMethod("rangeslider","isVisible")(a.xaxis)?k?(H=1.1,Y="bottom"):(H=1,Y="top"):k?(H=-.1,Y="top"):(H=0,Y="bottom")):(H=1,Y="auto",B?O=1.02:(O=1,j="right")),C.coerce(c,l,{x:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:O}},"x"),C.coerce(c,l,{y:{valType:"number",editType:"legend",min:k?-2:0,max:k?3:1,dflt:H}},"y"),m("traceorder",y),p.isGrouped(n[t])&&m("tracegroupgap"),m("entrywidth"),m("entrywidthmode"),m("indentation"),m("itemsizing"),m("itemwidth"),m("itemclick"),m("itemdoubleclick"),m("groupclick"),m("xanchor",j),m("yanchor",Y),m("valign"),C.noneOrAll(c,l,["x","y"]);var te=m("title.text");if(te){m("title.side",I?"left":"top");var ie=C.extendFlat({},h,{size:C.bigFont(h.size)});C.coerceFont(m,"title.font",ie)}}}}G.exports=function(a,n,f){var c,l=f.slice(),m=n.shapes;if(m)for(c=0;c1)}var Z=j.hiddenlabels||[];if(!J&&(!j.showlegend||!X.length))return ue.selectAll("."+te).remove(),j._topdefs.select("#"+ie).remove(),i.autoMargin(O,te);var se=C.ensureSingle(ue,"g",te,function(me){J||me.attr("pointer-events","all")}),ne=C.ensureSingleById(j._topdefs,"clipPath",ie,function(me){me.append("rect")}),ce=C.ensureSingle(se,"rect","bg",function(me){me.attr("shape-rendering","crispEdges")});ce.call(r.stroke,Y.bordercolor).call(r.fill,Y.bgcolor).style("stroke-width",Y.borderwidth+"px");var ge=C.ensureSingle(se,"g","scrollbox"),Te=Y.title;Y._titleWidth=0,Y._titleHeight=0;var we;Te.text?(we=C.ensureSingle(ge,"text",te+"titletext"),we.attr("text-anchor","start").call(p.font,Te.font).text(Te.text),L(we,ge,O,Y,o)):ge.selectAll("."+te+"titletext").remove();var Re=C.ensureSingle(se,"rect","scrollbar",function(me){me.attr(n.scrollBarEnterAttrs).call(r.fill,n.scrollBarColor)}),be=ge.selectAll("g.groups").data(X);be.enter().append("g").attr("class","groups"),be.exit().remove();var Ae=be.selectAll("g.traces").data(C.identity);Ae.enter().append("g").attr("class","traces"),Ae.exit().remove(),Ae.style("opacity",function(me){var Le=me[0].trace;return S.traceIs(Le,"pie-like")?Z.indexOf(me[0].label)!==-1?.5:1:Le.visible==="legendonly"?.5:1}).each(function(){g.select(this).call(E,O,Y)}).call(b,O,Y).each(function(){J||g.select(this).call(s,O,te)}),C.syncOrAsync([i.previousPromises,function(){return D(O,be,Ae,Y)},function(){var me=j._size,Le=Y.borderwidth,He=Y.xref==="paper",Ue=Y.yref==="paper";if(Te.text&&w(we,Y,Le),!J){var ke,Ve;He?ke=me.l+me.w*Y.x-l[I(Y)]*Y._width:ke=j.width*Y.x-l[I(Y)]*Y._width,Ue?Ve=me.t+me.h*(1-Y.y)-l[k(Y)]*Y._effHeight:Ve=j.height*(1-Y.y)-l[k(Y)]*Y._effHeight;var Ie=N(O,te,ke,Ve);if(Ie)return;if(j.margin.autoexpand){var rt=ke,Ke=Ve;ke=He?C.constrain(ke,0,j.width-Y._width):rt,Ve=Ue?C.constrain(Ve,0,j.height-Y._effHeight):Ke,ke!==rt&&C.log("Constrain "+te+".x to make legend fit inside graph"),Ve!==Ke&&C.log("Constrain "+te+".y to make legend fit inside graph")}p.setTranslate(se,ke,Ve)}if(Re.on(".drag",null),se.on("wheel",null),J||Y._height<=Y._maxHeight||O._context.staticPlot){var $e=Y._effHeight;J&&($e=Y._height),ce.attr({width:Y._width-Le,height:$e-Le,x:Le/2,y:Le/2}),p.setTranslate(ge,0,0),ne.select("rect").attr({width:Y._width-2*Le,height:$e-2*Le,x:Le,y:Le}),p.setClipUrl(ge,ie,O),p.setRect(Re,0,0,0,0),delete Y._scrollY}else{var lt=Math.max(n.scrollBarMinHeight,Y._effHeight*Y._effHeight/Y._height),ht=Y._effHeight-lt-2*n.scrollBarMargin,dt=Y._height-Y._effHeight,xt=ht/dt,St=Math.min(Y._scrollY||0,dt);ce.attr({width:Y._width-2*Le+n.scrollBarWidth+n.scrollBarMargin,height:Y._effHeight-Le,x:Le/2,y:Le/2}),ne.select("rect").attr({width:Y._width-2*Le+n.scrollBarWidth+n.scrollBarMargin,height:Y._effHeight-2*Le,x:Le,y:Le+St}),p.setClipUrl(ge,ie,O),ye(St,lt,xt),se.on("wheel",function(){St=C.constrain(Y._scrollY+g.event.deltaY/ht*dt,0,dt),ye(St,lt,xt),St!==0&&St!==dt&&g.event.preventDefault()});var nt,ze,Xe,Je=function(it,mt,bt){var vt=(bt-mt)/xt+it;return C.constrain(vt,0,dt)},We=function(it,mt,bt){var vt=(mt-bt)/xt+it;return C.constrain(vt,0,dt)},Fe=g.behavior.drag().on("dragstart",function(){var it=g.event.sourceEvent;it.type==="touchstart"?nt=it.changedTouches[0].clientY:nt=it.clientY,Xe=St}).on("drag",function(){var it=g.event.sourceEvent;it.buttons===2||it.ctrlKey||(it.type==="touchmove"?ze=it.changedTouches[0].clientY:ze=it.clientY,St=Je(Xe,nt,ze),ye(St,lt,xt))});Re.call(Fe);var xe=g.behavior.drag().on("dragstart",function(){var it=g.event.sourceEvent;it.type==="touchstart"&&(nt=it.changedTouches[0].clientY,Xe=St)}).on("drag",function(){var it=g.event.sourceEvent;it.type==="touchmove"&&(ze=it.changedTouches[0].clientY,St=We(Xe,nt,ze),ye(St,lt,xt))});ge.call(xe)}function ye(it,mt,bt){Y._scrollY=O._fullLayout[te]._scrollY=it,p.setTranslate(ge,0,-it),p.setRect(Re,Y._width,n.scrollBarMargin+it*bt,n.scrollBarWidth,mt),ne.select("rect").attr("y",Le+it)}if(O._context.edits.legendPosition){var Ee,Me,Ne,je;se.classed("cursor-move",!0),v.init({element:se.node(),gd:O,prepFn:function(){var it=p.getTranslate(se);Ne=it.x,je=it.y},moveFn:function(it,mt){var bt=Ne+it,vt=je+mt;p.setTranslate(se,bt,vt),Ee=v.align(bt,Y._width,me.l,me.l+me.w,Y.xanchor),Me=v.align(vt+Y._height,-Y._height,me.t+me.h,me.t,Y.yanchor)},doneFn:function(){if(Ee!==void 0&&Me!==void 0){var it={};it[te+".x"]=Ee,it[te+".y"]=Me,S.call("_guiRelayout",O,it)}},clickFn:function(it,mt){var bt=ue.selectAll("g.traces").filter(function(){var vt=this.getBoundingClientRect();return mt.clientX>=vt.left&&mt.clientX<=vt.right&&mt.clientY>=vt.top&&mt.clientY<=vt.bottom});bt.size()>0&&y(O,se,bt,it,mt)}})}}],O)}}function _(O,H,Y){var j=O[0],te=j.width,ie=H.entrywidthmode,ue=j.trace.legendwidth||H.entrywidth;return ie==="fraction"?H._maxWidth*ue:Y+(ue||te)}function y(O,H,Y,j,te){var ie=Y.data()[0][0].trace,ue={event:te,node:Y.node(),curveNumber:ie.index,expandedIndex:ie._expandedIndex,data:O.data,layout:O.layout,frames:O._transitionData._frames,config:O._context,fullData:O._fullData,fullLayout:O._fullLayout};ie._group&&(ue.group=ie._group),S.traceIs(ie,"pie-like")&&(ue.label=Y.datum()[0].label);var J=x.triggerHandler(O,"plotly_legendclick",ue);if(j===1){if(J===!1)return;H._clickTimeout=setTimeout(function(){O._fullLayout&&a(Y,O,j)},O._context.doubleClickDelay)}else if(j===2){H._clickTimeout&&clearTimeout(H._clickTimeout),O._legendMouseDownTime=0;var X=x.triggerHandler(O,"plotly_legenddoubleclick",ue);X!==!1&&J!==!1&&a(Y,O,j)}}function E(O,H,Y){var j=B(Y),te=O.data()[0][0],ie=te.trace,ue=S.traceIs(ie,"pie-like"),J=!Y._inHover&&H._context.edits.legendText&&!ue,X=Y._maxNameLength,ee,V;te.groupTitle?(ee=te.groupTitle.text,V=te.groupTitle.font):(V=Y.font,Y.entries?ee=te.text:(ee=ue?te.label:ie.name,ie._meta&&(ee=C.templateString(ee,ie._meta))));var Q=C.ensureSingle(O,"text",j+"text");Q.attr("text-anchor","start").call(p.font,V).text(J?T(ee,X):ee);var oe=Y.indentation+Y.itemwidth+n.itemGap*2;t.positionText(Q,oe,0),J?Q.call(t.makeEditable,{gd:H,text:ee}).call(L,O,H,Y).on("edit",function($){this.text(T($,X)).call(L,O,H,Y);var Z=te.trace._fullInput||{},se={};if(S.hasTransform(Z,"groupby")){var ne=S.getTransformIndices(Z,"groupby"),ce=ne[ne.length-1],ge=C.keyedContainer(Z,"transforms["+ce+"].styles","target","value.name");ge.set(te.trace._group,$),se=ge.constructUpdate()}else se.name=$;return Z._isShape?S.call("_guiRelayout",H,"shapes["+ie.index+"].name",se.name):S.call("_guiRestyle",H,se,ie.index)}):L(Q,O,H,Y)}function T(O,H){var Y=Math.max(4,H);if(O&&O.trim().length>=Y/2)return O;O=O||"";for(var j=Y-O.length;j>0;j--)O+=" ";return O}function s(O,H,Y){var j=H._context.doubleClickDelay,te,ie=1,ue=C.ensureSingle(O,"rect",Y+"toggle",function(J){H._context.staticPlot||J.style("cursor","pointer").attr("pointer-events","all"),J.call(r.fill,"rgba(0,0,0,0)")});H._context.staticPlot||(ue.on("mousedown",function(){te=new Date().getTime(),te-H._legendMouseDownTimej&&(ie=Math.max(ie-1,1)),y(H,J,O,ie,g.event)}}))}function L(O,H,Y,j,te){j._inHover&&O.attr("data-notex",!0),t.convertToTspans(O,Y,function(){M(H,Y,j,te)})}function M(O,H,Y,j){var te=O.data()[0][0];if(!Y._inHover&&te&&!te.trace.showlegend){O.remove();return}var ie=O.select("g[class*=math-group]"),ue=ie.node(),J=B(Y);Y||(Y=H._fullLayout[J]);var X=Y.borderwidth,ee;j===o?ee=Y.title.font:te.groupTitle?ee=te.groupTitle.font:ee=Y.font;var V=ee.size*c,Q,oe;if(ue){var $=p.bBox(ue);Q=$.height,oe=$.width,j===o?p.setTranslate(ie,X,X+Q*.75):p.setTranslate(ie,0,Q*.25)}else{var Z="."+J+(j===o?"title":"")+"text",se=O.select(Z),ne=t.lineCount(se),ce=se.node();if(Q=V*ne,oe=ce?p.bBox(ce).width:0,j===o)Y.title.side==="left"&&(oe+=n.itemGap*2),t.positionText(se,X+n.titlePad,X+V);else{var ge=n.itemGap*2+Y.indentation+Y.itemwidth;te.groupTitle&&(ge=n.itemGap,oe-=Y.indentation+Y.itemwidth),t.positionText(se,ge,-V*((ne-1)/2-.3))}}j===o?(Y._titleWidth=oe,Y._titleHeight=Q):(te.lineHeight=V,te.height=Math.max(Q,16)+3,te.width=oe)}function z(O){var H=0,Y=0,j=O.title.side;return j&&(j.indexOf("left")!==-1&&(H=O._titleWidth),j.indexOf("top")!==-1&&(Y=O._titleHeight)),[H,Y]}function D(O,H,Y,j){var te=O._fullLayout,ie=B(j);j||(j=te[ie]);var ue=te._size,J=u.isVertical(j),X=u.isGrouped(j),ee=j.entrywidthmode==="fraction",V=j.borderwidth,Q=2*V,oe=n.itemGap,$=j.indentation+j.itemwidth+oe*2,Z=2*(V+oe),se=k(j),ne=j.y<0||j.y===0&&se==="top",ce=j.y>1||j.y===1&&se==="bottom",ge=j.tracegroupgap,Te={};j._maxHeight=Math.max(ne||ce?te.height/2:ue.h,30);var we=0;j._width=0,j._height=0;var Re=z(j);if(J)Y.each(function(Xe){var Je=Xe[0].height;p.setTranslate(this,V+Re[0],V+Re[1]+j._height+Je/2+oe),j._height+=Je,j._width=Math.max(j._width,Xe[0].width)}),we=$+j._width,j._width+=oe+$+Q,j._height+=Z,X&&(H.each(function(Xe,Je){p.setTranslate(this,0,Je*j.tracegroupgap)}),j._height+=(j._lgroupsLength-1)*j.tracegroupgap);else{var be=I(j),Ae=j.x<0||j.x===0&&be==="right",me=j.x>1||j.x===1&&be==="left",Le=ce||ne,He=te.width/2;j._maxWidth=Math.max(Ae?Le&&be==="left"?ue.l+ue.w:He:me?Le&&be==="right"?ue.r+ue.w:He:ue.w,2*$);var Ue=0,ke=0;Y.each(function(Xe){var Je=_(Xe,j,$);Ue=Math.max(Ue,Je),ke+=Je}),we=null;var Ve=0;if(X){var Ie=0,rt=0,Ke=0;H.each(function(){var Xe=0,Je=0;g.select(this).selectAll("g.traces").each(function(Fe){var xe=_(Fe,j,$),ye=Fe[0].height;p.setTranslate(this,Re[0],Re[1]+V+oe+ye/2+Je),Je+=ye,Xe=Math.max(Xe,xe),Te[Fe[0].trace.legendgroup]=Xe});var We=Xe+oe;rt>0&&We+V+rt>j._maxWidth?(Ve=Math.max(Ve,rt),rt=0,Ke+=Ie+ge,Ie=Je):Ie=Math.max(Ie,Je),p.setTranslate(this,rt,Ke),rt+=We}),j._width=Math.max(Ve,rt)+V,j._height=Ke+Ie+Z}else{var $e=Y.size(),lt=ke+Q+($e-1)*oe=j._maxWidth&&(Ve=Math.max(Ve,St),dt=0,xt+=ht,j._height+=ht,ht=0),p.setTranslate(this,Re[0]+V+dt,Re[1]+V+xt+Je/2+oe),St=dt+We+oe,dt+=Fe,ht=Math.max(ht,Je)}),lt?(j._width=dt+Q,j._height=ht+Z):(j._width=Math.max(Ve,St)+Q,j._height+=ht+Z)}}j._width=Math.ceil(Math.max(j._width+Re[0],j._titleWidth+2*(V+n.titlePad))),j._height=Math.ceil(Math.max(j._height+Re[1],j._titleHeight+2*(V+n.itemGap))),j._effHeight=Math.min(j._height,j._maxHeight);var nt=O._context.edits,ze=nt.legendText||nt.legendPosition;Y.each(function(Xe){var Je=g.select(this).select("."+ie+"toggle"),We=Xe[0].height,Fe=Xe[0].trace.legendgroup,xe=_(Xe,j,$);X&&Fe!==""&&(xe=Te[Fe]);var ye=ze?$:we||xe;!J&&!ee&&(ye+=oe/2),p.setRect(Je,0,-We/2,ye,We)})}function N(O,H,Y,j){var te=O._fullLayout,ie=te[H],ue=I(ie),J=k(ie),X=ie.xref==="paper",ee=ie.yref==="paper";O._fullLayout._reservedMargin[H]={};var V=ie.y<.5?"b":"t",Q=ie.x<.5?"l":"r",oe={r:te.width-Y,l:Y+ie._width,b:te.height-j,t:j+ie._effHeight};if(X&&ee)return i.autoMargin(O,H,{x:ie.x,y:ie.y,l:ie._width*l[ue],r:ie._width*m[ue],b:ie._effHeight*m[J],t:ie._effHeight*l[J]});X?O._fullLayout._reservedMargin[H][V]=oe[V]:ee||ie.orientation==="v"?O._fullLayout._reservedMargin[H][Q]=oe[Q]:O._fullLayout._reservedMargin[H][V]=oe[V]}function I(O){return C.isRightAnchor(O)?"right":C.isCenterAnchor(O)?"center":"left"}function k(O){return C.isBottomAnchor(O)?"bottom":C.isMiddleAnchor(O)?"middle":"top"}function B(O){return O._id||"legend"}},35456:function(G,U,e){var g=e(24040),C=e(42451);G.exports=function(S,x,v){var p=x._inHover,r=C.isGrouped(x),t=C.isReversed(x),a={},n=[],f=!1,c={},l=0,m=0,h,b;function u(O,H,Y){if(x.visible!==!1&&!(v&&O!==x._id))if(H===""||!C.isGrouped(x)){var j="~~i"+l;n.push(j),a[j]=[Y],l++}else n.indexOf(H)===-1?(n.push(H),f=!0,a[H]=[Y]):a[H].push(Y)}for(h=0;hM&&(L=M)}T[h][0]._groupMinRank=L,T[h][0]._preGroupSort=h}var z=function(O,H){return O[0]._groupMinRank-H[0]._groupMinRank||O[0]._preGroupSort-H[0]._preGroupSort},D=function(O,H){return O.trace.legendrank-H.trace.legendrank||O._preSort-H._preSort};for(T.forEach(function(O,H){O[0]._preGroupSort=H}),T.sort(z),h=0;h0)Q=X.width;else return 0;return E?V:Math.min(Q,ee)};w.each(function(J){var X=g.select(this),ee=i.ensureSingle(X,"g","layers");ee.style("opacity",J[0].trace.opacity);var V=_.indentation,Q=_.valign,oe=J[0].lineHeight,$=J[0].height;if(Q==="middle"&&V===0||!oe||!$)ee.attr("transform",null);else{var Z={top:1,bottom:-1}[Q],se=Z*(.5*(oe-$+3))||0,ne=_.indentation;ee.attr("transform",S(ne,se))}var ce=ee.selectAll("g.legendfill").data([J]);ce.enter().append("g").classed("legendfill",!0);var ge=ee.selectAll("g.legendlines").data([J]);ge.enter().append("g").classed("legendlines",!0);var Te=ee.selectAll("g.legendsymbols").data([J]);Te.enter().append("g").classed("legendsymbols",!0),Te.selectAll("g.legendpoints").data([J]).enter().append("g").classed("legendpoints",!0)}).each(ue).each(N).each(k).each(I).each(O).each(te).each(j).each(z).each(D).each(H).each(Y);function z(J){var X=u(J),ee=X.showFill,V=X.showLine,Q=X.showGradientLine,oe=X.showGradientFill,$=X.anyFill,Z=X.anyLine,se=J[0],ne=se.trace,ce,ge,Te=p(ne),we=Te.colorscale,Re=Te.reversescale,be=function(Ve){if(Ve.size())if(ee)x.fillGroupStyle(Ve,A,!0);else{var Ie="legendfill-"+ne.uid;x.gradient(Ve,A,Ie,b(Re),we,"fill")}},Ae=function(Ve){if(Ve.size()){var Ie="legendline-"+ne.uid;x.lineGroupStyle(Ve),x.gradient(Ve,A,Ie,b(Re),we,"stroke")}},me=r.hasMarkers(ne)||!$?"M5,0":Z?"M5,-2":"M5,-3",Le=g.select(this),He=Le.select(".legendfill").selectAll("path").data(ee||oe?[J]:[]);if(He.enter().append("path").classed("js-fill",!0),He.exit().remove(),He.attr("d",me+"h"+T+"v6h-"+T+"z").call(be),V||Q){var Ue=M(void 0,ne.line,m,c);ge=i.minExtend(ne,{line:{width:Ue}}),ce=[i.minExtend(se,{trace:ge})]}var ke=Le.select(".legendlines").selectAll("path").data(V||Q?[ce]:[]);ke.enter().append("path").classed("js-line",!0),ke.exit().remove(),ke.attr("d",me+(Q?"l"+T+",0.0001":"h"+T)).call(V?x.lineGroupStyle:Ae)}function D(J){var X=u(J),ee=X.anyFill,V=X.anyLine,Q=X.showLine,oe=X.showMarker,$=J[0],Z=$.trace,se=!oe&&!V&&!ee&&r.hasText(Z),ne,ce;function ge(He,Ue,ke,Ve){var Ie=i.nestedProperty(Z,He).get(),rt=i.isArrayOrTypedArray(Ie)&&Ue?Ue(Ie):Ie;if(E&&rt&&Ve!==void 0&&(rt=Ve),ke){if(rtke[1])return ke[1]}return rt}function Te(He){return $._distinct&&$.index&&He[$.index]?He[$.index]:He[0]}if(oe||se||Q){var we={},Re={};if(oe){we.mc=ge("marker.color",Te),we.mx=ge("marker.symbol",Te),we.mo=ge("marker.opacity",i.mean,[.2,1]),we.mlc=ge("marker.line.color",Te),we.mlw=ge("marker.line.width",i.mean,[0,5],l),Re.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var be=ge("marker.size",i.mean,[2,16],f);we.ms=be,Re.marker.size=be}Q&&(Re.line={width:ge("line.width",Te,[0,10],c)}),se&&(we.tx="Aa",we.tp=ge("textposition",Te),we.ts=10,we.tc=ge("textfont.color",Te),we.tf=ge("textfont.family",Te)),ne=[i.minExtend($,we)],ce=i.minExtend(Z,Re),ce.selectedpoints=null,ce.texttemplate=null}var Ae=g.select(this).select("g.legendpoints"),me=Ae.selectAll("path.scatterpts").data(oe?ne:[]);me.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),me.exit().remove(),me.call(x.pointStyle,ce,A),oe&&(ne[0].mrc=3);var Le=Ae.selectAll("g.pointtext").data(se?ne:[]);Le.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),Le.exit().remove(),Le.selectAll("text").call(x.textPointStyle,ce,A)}function N(J){var X=J[0].trace,ee=X.type==="waterfall";if(J[0]._distinct&&ee){var V=J[0].trace[J[0].dir].marker;return J[0].mc=V.color,J[0].mlw=V.line.width,J[0].mlc=V.line.color,B(J,this,"waterfall")}var Q=[];X.visible&&ee&&(Q=J[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=g.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(Q);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function($){var Z=g.select(this),se=X[$[0]].marker,ne=M(void 0,se.line,h,l);Z.attr("d",$[1]).style("stroke-width",ne+"px").call(v.fill,se.color),ne&&Z.call(v.stroke,se.line.color)})}function I(J){B(J,this)}function k(J){B(J,this,"funnel")}function B(J,X,ee){var V=J[0].trace,Q=V.marker||{},oe=Q.line||{},$=Q.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Z=ee?V.visible&&V.type===ee:C.traceIs(V,"bar"),se=g.select(X).select("g.legendpoints").selectAll("path.legend"+ee).data(Z?[J]:[]);se.enter().append("path").classed("legend"+ee,!0).attr("d",$).attr("transform",L),se.exit().remove(),se.each(function(ne){var ce=g.select(this),ge=ne[0],Te=M(ge.mlw,Q.line,h,l);ce.style("stroke-width",Te+"px");var we=ge.mcc;if(!_._inHover&&"mc"in ge){var Re=p(Q),be=Re.mid;be===void 0&&(be=(Re.max+Re.min)/2),we=x.tryColorscale(Q,"")(be)}var Ae=we||ge.mc||Q.color,me=Q.pattern,Le=me&&x.getPatternAttr(me.shape,0,"");if(Le){var He=x.getPatternAttr(me.bgcolor,0,null),Ue=x.getPatternAttr(me.fgcolor,0,null),ke=me.fgopacity,Ve=o(me.size,8,10),Ie=o(me.solidity,.5,1),rt="legend-"+V.uid;ce.call(x.pattern,"legend",A,rt,Le,Ve,Ie,we,me.fillmode,He,Ue,ke)}else ce.call(v.fill,Ae);Te&&v.stroke(ce,ge.mlc||oe.color)})}function O(J){var X=J[0].trace,ee=g.select(this).select("g.legendpoints").selectAll("path.legendbox").data(X.visible&&C.traceIs(X,"box-violin")?[J]:[]);ee.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),ee.exit().remove(),ee.each(function(){var V=g.select(this);if((X.boxpoints==="all"||X.points==="all")&&v.opacity(X.fillcolor)===0&&v.opacity((X.line||{}).color)===0){var Q=i.minExtend(X,{marker:{size:E?f:i.constrain(X.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ee.call(x.pointStyle,Q,A)}else{var oe=M(void 0,X.line,h,l);V.style("stroke-width",oe+"px").call(v.fill,X.fillcolor),oe&&v.stroke(V,X.line.color)}})}function H(J){var X=J[0].trace,ee=g.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(X.visible&&X.type==="candlestick"?[J,J]:[]);ee.enter().append("path").classed("legendcandle",!0).attr("d",function(V,Q){return Q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(V,Q){var oe=g.select(this),$=X[Q?"increasing":"decreasing"],Z=M(void 0,$.line,h,l);oe.style("stroke-width",Z+"px").call(v.fill,$.fillcolor),Z&&v.stroke(oe,$.line.color)})}function Y(J){var X=J[0].trace,ee=g.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(X.visible&&X.type==="ohlc"?[J,J]:[]);ee.enter().append("path").classed("legendohlc",!0).attr("d",function(V,Q){return Q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(V,Q){var oe=g.select(this),$=X[Q?"increasing":"decreasing"],Z=M(void 0,$.line,h,l);oe.style("fill","none").call(x.dashLine,$.line.dash,Z),Z&&v.stroke(oe,$.line.color)})}function j(J){ie(J,this,"pie")}function te(J){ie(J,this,"funnelarea")}function ie(J,X,ee){var V=J[0],Q=V.trace,oe=ee?Q.visible&&Q.type===ee:C.traceIs(Q,ee),$=g.select(X).select("g.legendpoints").selectAll("path.legend"+ee).data(oe?[J]:[]);if($.enter().append("path").classed("legend"+ee,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),$.exit().remove(),$.size()){var Z=Q.marker||{},se=M(a(Z.line.width,V.pts),Z.line,h,l),ne="pieLike",ce=i.minExtend(Q,{marker:{line:{width:se}}},ne),ge=i.minExtend(V,{trace:ce},ne);t($,ge,ce,A)}}function ue(J){var X=J[0].trace,ee,V=[];if(X.visible)switch(X.type){case"histogram2d":case"heatmap":V=[["M-15,-2V4H15V-2Z"]],ee=!0;break;case"choropleth":case"choroplethmapbox":V=[["M-6,-6V6H6V-6Z"]],ee=!0;break;case"densitymapbox":V=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ee="radial";break;case"cone":V=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ee=!1;break;case"streamtube":V=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ee=!1;break;case"surface":V=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ee=!0;break;case"mesh3d":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!1;break;case"volume":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!0;break;case"isosurface":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ee=!1;break}var Q=g.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(V);Q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(oe,$){var Z=g.select(this),se=p(X),ne=se.colorscale,ce=se.reversescale,ge=function(be){if(be.size()){var Ae="legendfill-"+X.uid;x.gradient(be,A,Ae,b(ce,ee==="radial"),ne,"fill")}},Te;if(ne){if(!ee){var Re=ne.length;Te=$===0?ne[ce?Re-1:0][1]:$===1?ne[ce?0:Re-1][1]:ne[Math.floor((Re-1)/2)][1]}}else{var we=X.vertexcolor||X.facecolor||X.color;Te=i.isArrayOrTypedArray(we)?we[$]||we[0]:we}Z.attr("d",oe[0]),Te?Z.call(v.fill,Te):Z.call(ge)})}};function b(d,w){var A=w?"radial":"horizontal";return A+(d?"":"reversed")}function u(d){var w=d[0].trace,A=w.contours,_=r.hasLines(w),y=r.hasMarkers(w),E=w.visible&&w.fill&&w.fill!=="none",T=!1,s=!1;if(A){var L=A.coloring;L==="lines"?T=!0:_=L==="none"||L==="heatmap"||A.showlines,A.type==="constraint"?E=A._operation!=="=":(L==="fill"||L==="heatmap")&&(s=!0)}return{showMarker:y,showLine:_,showFill:E,showGradientLine:T,showGradientFill:s,anyLine:_||T,anyFill:E||s}}function o(d,w,A){return d&&i.isArrayOrTypedArray(d)?w:d>A?A:d}},66540:function(G,U,e){e(76052),G.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(G,U,e){var g=e(24040),C=e(7316),i=e(79811),S=e(9224),x=e(4016).eraseActiveShape,v=e(3400),p=v._,r=G.exports={};r.toImage={name:"toImage",title:function(d){var w=d._context.toImageButtonOptions||{},A=w.format||"png";return A==="png"?p(d,"Download plot as a png"):p(d,"Download plot")},icon:S.camera,click:function(d){var w=d._context.toImageButtonOptions,A={format:w.format||"png"};v.notifier(p(d,"Taking snapshot - this may take a few seconds"),"long"),A.format!=="svg"&&v.isIE()&&(v.notifier(p(d,"IE only supports svg. Changing format to svg."),"long"),A.format="svg"),["filename","width","height","scale"].forEach(function(_){_ in w&&(A[_]=w[_])}),g.call("downloadImage",d,A).then(function(_){v.notifier(p(d,"Snapshot succeeded")+" - "+_,"long")}).catch(function(){v.notifier(p(d,"Sorry, there was a problem downloading your snapshot!"),"long")})}},r.sendDataToCloud={name:"sendDataToCloud",title:function(d){return p(d,"Edit in Chart Studio")},icon:S.disk,click:function(d){C.sendDataToCloud(d)}},r.editInChartStudio={name:"editInChartStudio",title:function(d){return p(d,"Edit in Chart Studio")},icon:S.pencil,click:function(d){C.sendDataToCloud(d)}},r.zoom2d={name:"zoom2d",_cat:"zoom",title:function(d){return p(d,"Zoom")},attr:"dragmode",val:"zoom",icon:S.zoombox,click:t},r.pan2d={name:"pan2d",_cat:"pan",title:function(d){return p(d,"Pan")},attr:"dragmode",val:"pan",icon:S.pan,click:t},r.select2d={name:"select2d",_cat:"select",title:function(d){return p(d,"Box Select")},attr:"dragmode",val:"select",icon:S.selectbox,click:t},r.lasso2d={name:"lasso2d",_cat:"lasso",title:function(d){return p(d,"Lasso Select")},attr:"dragmode",val:"lasso",icon:S.lasso,click:t},r.drawclosedpath={name:"drawclosedpath",title:function(d){return p(d,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:S.drawclosedpath,click:t},r.drawopenpath={name:"drawopenpath",title:function(d){return p(d,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:S.drawopenpath,click:t},r.drawline={name:"drawline",title:function(d){return p(d,"Draw line")},attr:"dragmode",val:"drawline",icon:S.drawline,click:t},r.drawrect={name:"drawrect",title:function(d){return p(d,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:S.drawrect,click:t},r.drawcircle={name:"drawcircle",title:function(d){return p(d,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:S.drawcircle,click:t},r.eraseshape={name:"eraseshape",title:function(d){return p(d,"Erase active shape")},icon:S.eraseshape,click:x},r.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(d){return p(d,"Zoom in")},attr:"zoom",val:"in",icon:S.zoom_plus,click:t},r.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(d){return p(d,"Zoom out")},attr:"zoom",val:"out",icon:S.zoom_minus,click:t},r.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(d){return p(d,"Autoscale")},attr:"zoom",val:"auto",icon:S.autoscale,click:t},r.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(d){return p(d,"Reset axes")},attr:"zoom",val:"reset",icon:S.home,click:t},r.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(d){return p(d,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:S.tooltip_basic,gravity:"ne",click:t},r.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(d){return p(d,"Compare data on hover")},attr:"hovermode",val:function(d){return d._fullLayout._isHoriz?"y":"x"},icon:S.tooltip_compare,gravity:"ne",click:t};function t(d,w){var A=w.currentTarget,_=A.getAttribute("data-attr"),y=A.getAttribute("data-val")||!0,E=d._fullLayout,T={},s=i.list(d,null,!0),L=E._cartesianSpikesEnabled,M,z;if(_==="zoom"){var D=y==="in"?.5:2,N=(1+D)/2,I=(1-D)/2,k;for(z=0;z1?(ie=["toggleHover"],ue=["resetViews"]):T?(te=["zoomInGeo","zoomOutGeo"],ie=["hoverClosestGeo"],ue=["resetGeo"]):E?(ie=["hoverClosest3d"],ue=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(te=["zoomInMapbox","zoomOutMapbox"],ie=["toggleHover"],ue=["resetViewMapbox"]):M?ie=["hoverClosestGl2d"]:s?ie=["hoverClosestPie"]:k?(ie=["hoverClosestCartesian","hoverCompareCartesian"],ue=["resetViewSankey"]):ie=["toggleHover"],y&&(ie=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(f(b)||O)&&(ie=[]),(y||M)&&!B&&(te=["zoomIn2d","zoomOut2d","autoScale2d"],ue[0]!=="resetViews"&&(ue=["resetScale2d"])),E?J=["zoom3d","pan3d","orbitRotation","tableRotation"]:(y||M)&&!B||z?J=["zoom2d","pan2d"]:D||T?J=["pan2d"]:N&&(J=["zoom2d"]),n(b)&&J.push("select2d","lasso2d");var X=[],ee=function($){X.indexOf($)===-1&&ie.indexOf($)!==-1&&X.push($)};if(Array.isArray(A)){for(var V=[],Q=0;Q0);if(o){var d=r(n,f,c);b("x",d[0]),b("y",d[1]),g.noneOrAll(a,n,["x","y"]),b("xanchor"),b("yanchor"),g.coerceFont(b,"font",f.font);var w=b("bgcolor");b("activecolor",C.contrast(w,v.lightAmount,v.darkAmount)),b("bordercolor"),b("borderwidth")}};function p(t,a,n,f){var c=f.calendar;function l(b,u){return g.coerce(t,a,x.buttons,b,u)}var m=l("visible");if(m){var h=l("step");h!=="all"&&(c&&c!=="gregorian"&&(h==="month"||h==="year")?a.stepmode="backward":l("stepmode"),l("count")),l("label")}}function r(t,a,n){for(var f=n.filter(function(h){return a[h].anchor===t._id}),c=0,l=0;l=Ae.max)Re=ne[be+1];else if(we=Ae.pmax)Re=ne[be+1];else if(we0?E.touches[0].clientX:0}function m(E,T,s,L){if(T._context.staticPlot)return;var M=E.select("rect."+c.slideBoxClassName).node(),z=E.select("rect."+c.grabAreaMinClassName).node(),D=E.select("rect."+c.grabAreaMaxClassName).node();function N(){var I=g.event,k=I.target,B=l(I),O=B-E.node().getBoundingClientRect().left,H=L.d2p(s._rl[0]),Y=L.d2p(s._rl[1]),j=n.coverSlip();this.addEventListener("touchmove",te),this.addEventListener("touchend",ie),j.addEventListener("mousemove",te),j.addEventListener("mouseup",ie);function te(ue){var J=l(ue),X=+J-B,ee,V,Q;switch(k){case M:if(Q="ew-resize",H+X>s._length||Y+X<0)return;ee=H+X,V=Y+X;break;case z:if(Q="col-resize",H+X>s._length)return;ee=H+X,V=Y;break;case D:if(Q="col-resize",Y+X<0)return;ee=H,V=Y+X;break;default:Q="ew-resize",ee=O,V=O+X;break}if(V=0;N--){var I=A.append("path").attr(y).style("opacity",N?.1:E).call(S.stroke,s).call(S.fill,T).call(x.dashLine,N?"solid":M,N?4+L:L);if(f(I,h,o),z){var k=v(h.layout,"selections",o);I.style({cursor:"move"});var B={element:I.node(),plotinfo:d,gd:h,editHelpers:k,isActiveSelection:!0},O=g(_,h);C(O,I,B)}else I.style("pointer-events",N?"all":"none");D[N]=I}var H=D[0],Y=D[1];Y.node().addEventListener("click",function(){return c(h,H)})}}function f(h,b,u){var o=u.xref+u.yref;x.setClipUrl(h,"clip"+b._fullLayout._uid+o,b)}function c(h,b){if(a(h)){var u=b.node(),o=+u.getAttribute("data-index");if(o>=0){if(o===h._fullLayout._activeSelectionIndex){m(h);return}h._fullLayout._activeSelectionIndex=o,h._fullLayout._deactivateSelection=m,t(h)}}}function l(h){if(a(h)){var b=h._fullLayout.selections.length-1;h._fullLayout._activeSelectionIndex=b,h._fullLayout._deactivateSelection=m,t(h)}}function m(h){if(a(h)){var b=h._fullLayout._activeSelectionIndex;b>=0&&(i(h),delete h._fullLayout._activeSelectionIndex,t(h))}}},34200:function(G,U,e){var g=e(98192).u,C=e(92880).extendFlat;G.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:C({},g,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(G){G.exports=function(e,g,C){C("newselection.mode");var i=C("newselection.line.width");i&&(C("newselection.line.color"),C("newselection.line.dash")),C("activeselection.fillcolor"),C("activeselection.opacity")}},5968:function(G,U,e){var g=e(72760),C=g.selectMode,i=e(1936),S=i.clearOutline,x=e(9856),v=x.readPaths,p=x.writePaths,r=x.fixDatesForPaths;G.exports=function(a,n){if(a.length){var f=a[0][0];if(f){var c=f.getAttribute("d"),l=n.gd,m=l._fullLayout.newselection,h=n.plotinfo,b=h.xaxis,u=h.yaxis,o=n.isActiveSelection,d=n.dragmode,w=(l.layout||{}).selections||[];if(!C(d)&&o!==void 0){var A=l._fullLayout._activeSelectionIndex;if(A=0){Tt._fullLayout._deactivateShape(Tt);return}if(!mt){var En=Bt.clickmode;s.done(Gr).then(function(){if(s.clear(Gr),rn===2){for(rr.remove(),Qt=0;Qt-1&&ie(Cn,Tt,ye.xaxes,ye.yaxes,ye.subplot,ye,rr),En==="event"&&Xe(Tt,void 0);v.click(Tt,Cn,Kt.id)}).catch(y.error)}},ye.doneFn=function(){xr.remove(),s.done(Gr).then(function(){s.clear(Gr),!ir&&Ot&&ye.selectionDefs&&(Ot.subtract=vr,ye.selectionDefs.push(Ot),ye.mergedPolygons.length=0,[].push.apply(ye.mergedPolygons,Nt)),(ir||mt)&&$(ye,ir),ye.doneFnCompleted&&ye.doneFnCompleted(Pr),bt&&Xe(Tt,fr)}).catch(y.error)}}function ie(We,Fe,xe,ye,Ee,Me,Ne){var je=Fe._hoverdata,it=Fe._fullLayout,mt=it.clickmode,bt=mt.indexOf("event")>-1,vt=[],Lt,ct,Tt,Bt,ir,pt,Xt,Kt,or,$t;if(ce(je)){V(We,Fe,Me),Lt=se(Fe,xe,ye,Ee);var gt=ge(je,Lt),st=gt.pointNumbers.length>0;if(st?we(Lt,gt):Re(Lt)&&(Xt=Te(gt))){for(Ne&&Ne.remove(),$t=0;$t=0}function oe(We){return We._fullLayout._activeSelectionIndex>=0}function $(We,Fe){var xe=We.dragmode,ye=We.plotinfo,Ee=We.gd;Q(Ee)&&Ee._fullLayout._deactivateShape(Ee),oe(Ee)&&Ee._fullLayout._deactivateSelection(Ee);var Me=Ee._fullLayout,Ne=Me._zoomlayer,je=n(xe),it=c(xe);if(je||it){var mt=Ne.selectAll(".select-outline-"+ye.id);if(mt&&Ee._fullLayout._outlining){var bt;je&&(bt=w(mt,We)),bt&&i.call("_guiRelayout",Ee,{shapes:bt});var vt;it&&!j(We)&&(vt=A(mt,We)),vt&&(Ee._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",Ee,{selections:vt}).then(function(){Fe&&_(Ee)})),Ee._fullLayout._outlining=!1}}ye.selection={},ye.selection.selectionDefs=We.selectionDefs=[],ye.selection.mergedPolygons=We.mergedPolygons=[]}function Z(We){return We._id}function se(We,Fe,xe,ye){if(!We.calcdata)return[];var Ee=[],Me=Fe.map(Z),Ne=xe.map(Z),je,it,mt;for(mt=0;mt0,Me=Ee?ye[0]:xe;return Fe.selectedpoints?Fe.selectedpoints.indexOf(Me)>-1:!1}function we(We,Fe){var xe=[],ye,Ee,Me,Ne;for(Ne=0;Ne0&&xe.push(ye);if(xe.length===1&&(Me=xe[0]===Fe.searchInfo,Me&&(Ee=Fe.searchInfo.cd[0].trace,Ee.selectedpoints.length===Fe.pointNumbers.length))){for(Ne=0;Ne1||(Fe+=ye.selectedpoints.length,Fe>1)))return!1;return Fe===1}function be(We,Fe,xe){var ye;for(ye=0;ye-1&&Fe;if(!Ne&&Fe){var rn=$e(We,!0);if(rn.length){var Cn=rn[0].xref,En=rn[0].yref;if(Cn&&En){var Tr=dt(rn),Cr=St([L(We,Cn,"x"),L(We,En,"y")]);Cr(Pr,Tr)}}We._fullLayout._noEmitSelectedAtStart?We._fullLayout._noEmitSelectedAtStart=!1:cn&&Xe(We,Pr),Lt._reselect=!1}if(!Ne&&Lt._deselect){var Wr=Lt._deselect;je=Wr.xref,it=Wr.yref,Ie(je,it,bt)||rt(We,je,it,ye),cn&&(Pr.points.length?Xe(We,Pr):Je(We)),Lt._deselect=!1}return{eventData:Pr,selectionTesters:xe}}function Ve(We){var Fe=We.calcdata;if(Fe)for(var xe=0;xe0?u+m:m;return{ppad:m,ppadplus:h?d:w,ppadminus:h?w:d}}else return{ppad:m}}function r(t,a,n,f,c){var l=t.type==="category"||t.type==="multicategory"?t.r2c:t.d2c;if(a!==void 0)return[l(a),l(n)];if(f){var m=1/0,h=-1/0,b=f.match(i.segmentRE),u,o,d,w,A;for(t.type==="date"&&(l=S.decodeDate(l)),u=0;uh&&(h=A)));if(h>=m)return[m,h]}}},85448:function(G){G.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(G,U,e){var g=e(3400),C=e(54460),i=e(51272),S=e(46056),x=e(65152);G.exports=function(t,a){i(t,a,{name:"shapes",handleItemDefaults:p})};function v(r,t){return r?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function p(r,t,a){function n(J,X){return g.coerce(r,t,S,J,X)}t._isShape=!0;var f=n("visible");if(f){var c=n("showlegend");c&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),g.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var l=n("path"),m=l?"path":"rect",h=n("type",m),b=h!=="path";b&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var u=n("line.width");u&&(n("line.color"),n("line.dash"));for(var o=n("xsizemode"),d=n("ysizemode"),w=["x","y"],A=0;A<2;A++){var _=w[A],y=_+"anchor",E=_==="x"?o:d,T={_fullLayout:a},s,L,M,z=C.coerceRef(r,t,T,_,void 0,"paper"),D=C.getRefType(z);if(D==="range"?(s=C.getFromId(T,z),s._shapeIndices.push(t._index),M=x.rangeToShapePosition(s),L=x.shapePositionToRange(s)):L=M=g.identity,b){var N=.25,I=.75,k=_+"0",B=_+"1",O=r[k],H=r[B];r[k]=L(r[k],!0),r[B]=L(r[B],!0),E==="pixel"?(n(k,0),n(B,10)):(C.coercePosition(t,T,n,z,k,N),C.coercePosition(t,T,n,z,B,I)),t[k]=M(t[k]),t[B]=M(t[B]),r[k]=O,r[B]=H}if(E==="pixel"){var Y=r[y];r[y]=L(r[y],!0),C.coercePosition(t,T,n,z,y,.25),t[y]=M(t[y]),r[y]=Y}}b&&g.noneOrAll(r,t,["x0","x1","y0","y1"]);var j=h==="line",te,ie;if(b&&(te=n("label.texttemplate")),te||(ie=n("label.text")),ie||te){n("label.textangle");var ue=n("label.textposition",j?"middle":"middle center");n("label.xanchor"),n("label.yanchor",v(j,ue)),n("label.padding"),g.coerceFont(n,"label.font",a.font)}}}},60728:function(G,U,e){var g=e(3400),C=e(54460),i=e(72736),S=e(43616),x=e(9856).readPaths,v=e(65152),p=v.getPathString,r=e(97728),t=e(84284).FROM_TL;G.exports=function(c,l,m,h){if(h.selectAll(".shape-label").remove(),!!(m.label.text||m.label.texttemplate)){var b;if(m.label.texttemplate){var u={};if(m.type!=="path"){var o=C.getFromId(c,m.xref),d=C.getFromId(c,m.yref);for(var w in r){var A=r[w](m,o,d);A!==void 0&&(u[w]=A)}}b=g.texttemplateStringForShapes(m.label.texttemplate,{},c._fullLayout._d3locale,u)}else b=m.label.text;var _={"data-index":l},y=m.label.font,E={"data-notex":1},T=h.append("g").attr(_).classed("shape-label",!0),s=T.append("text").attr(E).classed("shape-label-text",!0).text(b),L,M,z,D;if(m.path){var N=p(c,m),I=x(N,c);L=1/0,z=1/0,M=-1/0,D=-1/0;for(var k=0;k=f?h=c-m:h=m-c,-180/Math.PI*Math.atan2(h,b)}function n(f,c,l,m,h,b,u){var o=h.label.textposition,d=h.label.textangle,w=h.label.padding,A=h.type,_=Math.PI/180*b,y=Math.sin(_),E=Math.cos(_),T=h.label.xanchor,s=h.label.yanchor,L,M,z,D;if(A==="line"){o==="start"?(L=f,M=c):o==="end"?(L=l,M=m):(L=(f+l)/2,M=(c+m)/2),T==="auto"&&(o==="start"?d==="auto"?l>f?T="left":lf?T="right":lf?T="right":lf?T="left":l1&&!(me.length===2&&me[1][0]==="Z")&&(J===0&&(me[0][0]="M"),L[ue]=me,I(),k())}}function ne(me,Le){if(me===2){ue=+Le.srcElement.getAttribute("data-i"),J=+Le.srcElement.getAttribute("data-j");var He=L[ue];!b(He)&&!u(He)&&se()}}function ce(me){te=[];for(var Le=0;LeI&&xe>k&&!Je.shiftKey?f.getCursor(ye/Fe,1-Ee/xe):"move";c(L,Me),Ie=Me.split("-")[0]}}function lt(Je){u(s)||(B&&(X=me(M.xanchor)),O&&(ee=Le(M.yanchor)),M.type==="path"?ge=M.path:(te=B?M.x0:me(M.x0),ie=O?M.y0:Le(M.y0),ue=B?M.x1:me(M.x1),J=O?M.y1:Le(M.y1)),teJ?(V=ie,Z="y0",Q=J,se="y1"):(V=J,Z="y1",Q=ie,se="y0"),$e(Je),nt(D,M),Xe(L,M,s),Ve.moveFn=Ie==="move"?xt:St,Ve.altKey=Je.altKey)}function ht(){u(s)||(c(L),ze(D),w(L,s,M),C.call("_guiRelayout",s,N.getUpdateObj()))}function dt(){u(s)||ze(D)}function xt(Je,We){if(M.type==="path"){var Fe=function(Ee){return Ee},xe=Fe,ye=Fe;B?j("xanchor",M.xanchor=He(X+Je)):(xe=function(Me){return He(me(Me)+Je)},we&&we.type==="date"&&(xe=m.encodeDate(xe))),O?j("yanchor",M.yanchor=Ue(ee+We)):(ye=function(Me){return Ue(Le(Me)+We)},be&&be.type==="date"&&(ye=m.encodeDate(ye))),j("path",M.path=_(ge,xe,ye))}else B?j("xanchor",M.xanchor=He(X+Je)):(j("x0",M.x0=He(te+Je)),j("x1",M.x1=He(ue+Je))),O?j("yanchor",M.yanchor=Ue(ee+We)):(j("y0",M.y0=Ue(ie+We)),j("y1",M.y1=Ue(J+We)));L.attr("d",h(s,M)),nt(D,M),p(s,z,M,Te)}function St(Je,We){if(Y){var Fe=function(pt){return pt},xe=Fe,ye=Fe;B?j("xanchor",M.xanchor=He(X+Je)):(xe=function(Xt){return He(me(Xt)+Je)},we&&we.type==="date"&&(xe=m.encodeDate(xe))),O?j("yanchor",M.yanchor=Ue(ee+We)):(ye=function(Xt){return Ue(Le(Xt)+We)},be&&be.type==="date"&&(ye=m.encodeDate(ye))),j("path",M.path=_(ge,xe,ye))}else if(H){if(Ie==="resize-over-start-point"){var Ee=te+Je,Me=O?ie-We:ie+We;j("x0",M.x0=B?Ee:He(Ee)),j("y0",M.y0=O?Me:Ue(Me))}else if(Ie==="resize-over-end-point"){var Ne=ue+Je,je=O?J-We:J+We;j("x1",M.x1=B?Ne:He(Ne)),j("y1",M.y1=O?je:Ue(je))}}else{var it=function(pt){return Ie.indexOf(pt)!==-1},mt=it("n"),bt=it("s"),vt=it("w"),Lt=it("e"),ct=mt?V+We:V,Tt=bt?Q+We:Q,Bt=vt?oe+Je:oe,ir=Lt?$+Je:$;O&&(mt&&(ct=V-We),bt&&(Tt=Q-We)),(!O&&Tt-ct>k||O&&ct-Tt>k)&&(j(Z,M[Z]=O?ct:Ue(ct)),j(se,M[se]=O?Tt:Ue(Tt))),ir-Bt>I&&(j(ne,M[ne]=B?Bt:He(Bt)),j(ce,M[ce]=B?ir:He(ir)))}L.attr("d",h(s,M)),nt(D,M),p(s,z,M,Te)}function nt(Je,We){(B||O)&&Fe();function Fe(){var xe=We.type!=="path",ye=Je.selectAll(".visual-cue").data([0]),Ee=1;ye.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ee}).classed("visual-cue",!0);var Me=me(B?We.xanchor:i.midRange(xe?[We.x0,We.x1]:m.extractPathCoords(We.path,l.paramIsX))),Ne=Le(O?We.yanchor:i.midRange(xe?[We.y0,We.y1]:m.extractPathCoords(We.path,l.paramIsY)));if(Me=m.roundPositionForSharpStrokeRendering(Me,Ee),Ne=m.roundPositionForSharpStrokeRendering(Ne,Ee),B&&O){var je="M"+(Me-1-Ee)+","+(Ne-1-Ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";ye.attr("d",je)}else if(B){var it="M"+(Me-1-Ee)+","+(Ne-9-Ee)+"v18 h2 v-18 Z";ye.attr("d",it)}else{var mt="M"+(Me-9-Ee)+","+(Ne-1-Ee)+"h18 v2 h-18 Z";ye.attr("d",mt)}}}function ze(Je){Je.selectAll(".visual-cue").remove()}function Xe(Je,We,Fe){var xe=We.xref,ye=We.yref,Ee=S.getFromId(Fe,xe),Me=S.getFromId(Fe,ye),Ne="";xe!=="paper"&&!Ee.autorange&&(Ne+=xe),ye!=="paper"&&!Me.autorange&&(Ne+=ye),a.setClipUrl(Je,Ne?"clip"+Fe._fullLayout._uid+Ne:null,Fe)}}function _(s,L,M){return s.replace(l.segmentRE,function(z){var D=0,N=z.charAt(0),I=l.paramIsX[N],k=l.paramIsY[N],B=l.numParams[N],O=z.substr(1).replace(l.paramRE,function(H){return D>=B||(I[D]?H=L(H):k[D]&&(H=M(H)),D++),H});return N+O})}function y(s,L){if(o(s)){var M=L.node(),z=+M.getAttribute("data-index");if(z>=0){if(z===s._fullLayout._activeShapeIndex){E(s);return}s._fullLayout._activeShapeIndex=z,s._fullLayout._deactivateShape=E,b(s)}}}function E(s){if(o(s)){var L=s._fullLayout._activeShapeIndex;L>=0&&(r(s),delete s._fullLayout._activeShapeIndex,b(s))}}function T(s){if(o(s)){r(s);var L=s._fullLayout._activeShapeIndex,M=(s.layout||{}).shapes||[];if(L0&&du&&(d="X"),d});return l>u&&(o=o.replace(/[\s,]*X.*/,""),C.log("Ignoring extra params in segment "+c)),m+o})}},41592:function(G,U,e){var g=e(4016);G.exports={moduleType:"component",name:"shapes",layoutAttributes:e(46056),supplyLayoutDefaults:e(43712),supplyDrawNewShapeDefaults:e(65144),includeBasePlot:e(36632)("shapes"),calcAutorange:e(96084),draw:g.draw,drawOne:g.drawOne}},97728:function(G){function U(c,l){return l?l.d2l(c):c}function e(c,l){return l?l.l2d(c):c}function g(c){return c.x0}function C(c){return c.x1}function i(c){return c.y0}function S(c){return c.y1}function x(c,l){return U(c.x1,l)-U(c.x0,l)}function v(c,l,m){return U(c.y1,m)-U(c.y0,m)}function p(c,l){return Math.abs(x(c,l))}function r(c,l,m){return Math.abs(v(c,l,m))}function t(c,l,m){return c.type!=="line"?void 0:Math.sqrt(Math.pow(x(c,l),2)+Math.pow(v(c,l,m),2))}function a(c,l){return e((U(c.x1,l)+U(c.x0,l))/2,l)}function n(c,l,m){return e((U(c.y1,m)+U(c.y0,m))/2,m)}function f(c,l,m){return c.type!=="line"?void 0:v(c,l,m)/x(c,l)}G.exports={x0:g,x1:C,y0:i,y1:S,slope:f,dx:x,dy:v,width:p,height:r,length:t,xcenter:a,ycenter:n}},89861:function(G,U,e){var g=e(25376),C=e(66741),i=e(92880).extendDeepAll,S=e(67824).overrideAll,x=e(85656),v=e(31780).templatedArray,p=e(60876),r=v("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});G.exports=S(v("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:r,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(C({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:x.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:g({})},font:g({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},60876:function(G){G.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(G,U,e){var g=e(3400),C=e(51272),i=e(89861),S=e(60876),x=S.name,v=i.steps;G.exports=function(a,n){C(a,n,{name:x,handleItemDefaults:p})};function p(t,a,n){function f(d,w){return g.coerce(t,a,i,d,w)}for(var c=C(t,a,{name:"steps",handleItemDefaults:r}),l=0,m=0;m0?[0]:[]);Y.enter().append("g").classed(t.containerClassName,!0).style("cursor",B?null:"ew-resize");function j(J){J._commandObserver&&(J._commandObserver.remove(),delete J._commandObserver),C.autoMargin(k,l(J))}if(Y.exit().each(function(){g.select(this).selectAll("g."+t.groupClassName).each(j)}).remove(),H.length!==0){var te=Y.selectAll("g."+t.groupClassName).data(H,h);te.enter().append("g").classed(t.groupClassName,!0),te.exit().each(j).remove();for(var ie=0;ie0&&(te=te.transition().duration(k.transition.duration).ease(k.transition.easing)),te.attr("transform",v(j-t.gripWidth*.5,k._dims.currentValueTotalHeight))}}function M(I,k){var B=I._dims;return B.inputAreaStart+t.stepInset+(B.inputAreaLength-2*t.stepInset)*Math.min(1,Math.max(0,k))}function z(I,k){var B=I._dims;return Math.min(1,Math.max(0,(k-t.stepInset-B.inputAreaStart)/(B.inputAreaLength-2*t.stepInset-2*B.inputAreaStart)))}function D(I,k,B){var O=B._dims,H=x.ensureSingle(I,"rect",t.railTouchRectClass,function(Y){Y.call(E,k,I,B).style("pointer-events","all")});H.attr({width:O.inputAreaLength,height:Math.max(O.inputAreaWidth,t.tickOffset+B.ticklen+O.labelHeight)}).call(i.fill,B.bgcolor).attr("opacity",0),S.setTranslate(H,0,O.currentValueTotalHeight)}function N(I,k){var B=k._dims,O=B.inputAreaLength-t.railInset*2,H=x.ensureSingle(I,"rect",t.railRectClass);H.attr({width:O,height:t.railWidth,rx:t.railRadius,ry:t.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,k.bordercolor).call(i.fill,k.bgcolor).style("stroke-width",k.borderwidth+"px"),S.setTranslate(H,t.railInset,(B.inputAreaWidth-t.railWidth)*.5+B.currentValueTotalHeight)}},97544:function(G,U,e){var g=e(60876);G.exports={moduleType:"component",name:g.name,layoutAttributes:e(89861),supplyLayoutDefaults:e(8132),draw:e(79664)}},81668:function(G,U,e){var g=e(33428),C=e(38248),i=e(7316),S=e(24040),x=e(3400),v=x.strTranslate,p=e(43616),r=e(76308),t=e(72736),a=e(13448),n=e(84284).OPPOSITE_SIDE,f=/ [XY][0-9]* /;function c(l,m,h){var b=h.propContainer,u=h.propName,o=h.placeholder,d=h.traceIndex,w=h.avoid||{},A=h.attributes,_=h.transform,y=h.containerGroup,E=l._fullLayout,T=1,s=!1,L=b.title,M=(L&&L.text?L.text:"").trim(),z=L&&L.font?L.font:{},D=z.family,N=z.size,I=z.color,k;u==="title.text"?k="titleText":u.indexOf("axis")!==-1?k="axisTitleText":u.indexOf("colorbar"!==-1)&&(k="colorbarTitleText");var B=l._context.edits[k];M===""?T=0:M.replace(f," % ")===o.replace(f," % ")&&(T=.2,s=!0,B||(M="")),h._meta?M=x.templateString(M,h._meta):E._meta&&(M=x.templateString(M,E._meta));var O=M||B,H;y||(y=x.ensureSingle(E._infolayer,"g","g-"+m),H=E._hColorbarMoveTitle);var Y=y.selectAll("text").data(O?[0]:[]);if(Y.enter().append("text"),Y.text(M).attr("class",m),Y.exit().remove(),!O)return y;function j(J){x.syncOrAsync([te,ie],J)}function te(J){var X;return!_&&H&&(_={}),_?(X="",_.rotate&&(X+="rotate("+[_.rotate,A.x,A.y]+")"),(_.offset||H)&&(X+=v(0,(_.offset||0)-(H||0)))):X=null,J.attr("transform",X),J.style({"font-family":D,"font-size":g.round(N,2)+"px",fill:r.rgb(I),opacity:T*r.opacity(I),"font-weight":i.fontWeight}).attr(A).call(t.convertToTspans,l),i.previousPromises(l)}function ie(J){var X=g.select(J.node().parentNode);if(w&&w.selection&&w.side&&M){X.attr("transform",null);var ee=n[w.side],V=w.side==="left"||w.side==="top"?-1:1,Q=C(w.pad)?w.pad:2,oe=p.bBox(X.node()),$={t:0,b:0,l:0,r:0},Z=l._fullLayout._reservedMargin;for(var se in Z)for(var ne in Z[se]){var ce=Z[se][ne];$[ne]=Math.max($[ne],ce)}var ge={left:$.l,top:$.t,right:E.width-$.r,bottom:E.height-$.b},Te=w.maxShift||V*(ge[w.side]-oe[w.side]),we=0;if(Te<0)we=Te;else{var Re=w.offsetLeft||0,be=w.offsetTop||0;oe.left-=Re,oe.right-=Re,oe.top-=be,oe.bottom-=be,w.selection.each(function(){var me=p.bBox(this);x.bBoxIntersect(oe,me,Q)&&(we=Math.max(we,V*(me[w.side]-oe[ee])+Q))}),we=Math.min(Te,we),b._titleScoot=Math.abs(we)}if(we>0||Te<0){var Ae={left:[-we,0],right:[we,0],top:[0,-we],bottom:[0,we]}[w.side];X.attr("transform",v(Ae[0],Ae[1]))}}}Y.call(j);function ue(){T=0,s=!0,Y.text(o).on("mouseover.opacity",function(){g.select(this).transition().duration(a.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){g.select(this).transition().duration(a.HIDE_PLACEHOLDER).style("opacity",0)})}return B&&(M?Y.on(".opacity",null):ue(),Y.call(t.makeEditable,{gd:l}).on("edit",function(J){d!==void 0?S.call("_guiRestyle",l,u,J,d):S.call("_guiRelayout",l,u,J)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(j)}).on("input",function(J){this.text(J||" ").call(t.positionText,A.x,A.y)})),Y.classed("js-placeholder",s),y}G.exports={draw:c}},88444:function(G,U,e){var g=e(25376),C=e(22548),i=e(92880).extendFlat,S=e(67824).overrideAll,x=e(66741),v=e(31780).templatedArray,p=v("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});G.exports=S(v("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(x({editType:"arraydraw"}),{}),font:g({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:C.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(G){G.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(G,U,e){var g=e(3400),C=e(51272),i=e(88444),S=e(73712),x=S.name,v=i.buttons;G.exports=function(a,n){var f={name:x,handleItemDefaults:p};C(a,n,f)};function p(t,a,n){function f(m,h){return g.coerce(t,a,i,m,h)}var c=C(t,a,{name:"buttons",handleItemDefaults:r}),l=f("visible",c.length>0);l&&(f("active"),f("direction"),f("type"),f("showactive"),f("x"),f("y"),g.noneOrAll(t,a,["x","y"]),f("xanchor"),f("yanchor"),f("pad.t"),f("pad.r"),f("pad.b"),f("pad.l"),g.coerceFont(f,"font",n.font),f("bgcolor",n.paper_bgcolor),f("bordercolor"),f("borderwidth"))}function r(t,a){function n(c,l){return g.coerce(t,a,v,c,l)}var f=n("visible",t.method==="skip"||Array.isArray(t.args));f&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}},14420:function(G,U,e){var g=e(33428),C=e(7316),i=e(76308),S=e(43616),x=e(3400),v=e(72736),p=e(31780).arrayEditor,r=e(84284).LINE_SPACING,t=e(73712),a=e(37400);G.exports=function(z){var D=z._fullLayout,N=x.filterVisible(D[t.name]);function I(ie){C.autoMargin(z,T(ie))}var k=D._menulayer.selectAll("g."+t.containerClassName).data(N.length>0?[0]:[]);if(k.enter().append("g").classed(t.containerClassName,!0).style("cursor","pointer"),k.exit().each(function(){g.select(this).selectAll("g."+t.headerGroupClassName).each(I)}).remove(),N.length!==0){var B=k.selectAll("g."+t.headerGroupClassName).data(N,n);B.enter().append("g").classed(t.headerGroupClassName,!0);for(var O=x.ensureSingle(k,"g",t.dropdownButtonGroupClassName,function(ie){ie.style("pointer-events","all")}),H=0;HA,z=x.barLength+2*x.barPad,D=x.barWidth+2*x.barPad,N=c,I=m+h;I+D>f&&(I=f-D);var k=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);k.exit().on(".drag",null).remove(),k.enter().append("rect").classed("scrollbar-horizontal",!0).call(C.fill,x.barColor),M?(this.hbar=k.attr({rx:x.barRadius,ry:x.barRadius,x:N,y:I,width:z,height:D}),this._hbarXMin=N+z/2,this._hbarTranslateMax=A-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=h>_,O=x.barWidth+2*x.barPad,H=x.barLength+2*x.barPad,Y=c+l,j=m;Y+O>n&&(Y=n-O);var te=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);te.exit().on(".drag",null).remove(),te.enter().append("rect").classed("scrollbar-vertical",!0).call(C.fill,x.barColor),B?(this.vbar=te.attr({rx:x.barRadius,ry:x.barRadius,x:Y,y:j,width:O,height:H}),this._vbarYMin=j+H/2,this._vbarTranslateMax=_-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ie=this.id,ue=y-.5,J=B?E+O+.5:E+.5,X=T-.5,ee=M?s+D+.5:s+.5,V=a._topdefs.selectAll("#"+ie).data(M||B?[0]:[]);if(V.exit().remove(),V.enter().append("clipPath").attr("id",ie).append("rect"),M||B?(this._clipRect=V.select("rect").attr({x:Math.floor(ue),y:Math.floor(X),width:Math.ceil(J)-Math.floor(ue),height:Math.ceil(ee)-Math.floor(X)}),this.container.call(i.setClipUrl,ie,this.gd),this.bg.attr({x:c,y:m,width:l,height:h})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),M||B){var Q=g.behavior.drag().on("dragstart",function(){g.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var oe=g.behavior.drag().on("dragstart",function(){g.event.sourceEvent.preventDefault(),g.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(oe),B&&this.vbar.on(".drag",null).call(oe)}this.setTranslate(r,t)},x.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},x.prototype._onBoxDrag=function(){var p=this.translateX,r=this.translateY;this.hbar&&(p-=g.event.dx),this.vbar&&(r-=g.event.dy),this.setTranslate(p,r)},x.prototype._onBoxWheel=function(){var p=this.translateX,r=this.translateY;this.hbar&&(p+=g.event.deltaY),this.vbar&&(r+=g.event.deltaY),this.setTranslate(p,r)},x.prototype._onBarDrag=function(){var p=this.translateX,r=this.translateY;if(this.hbar){var t=p+this._hbarXMin,a=t+this._hbarTranslateMax,n=S.constrain(g.event.x,t,a),f=(n-t)/(a-t),c=this.position.w-this._box.w;p=f*c}if(this.vbar){var l=r+this._vbarYMin,m=l+this._vbarTranslateMax,h=S.constrain(g.event.y,l,m),b=(h-l)/(m-l),u=this.position.h-this._box.h;r=b*u}this.setTranslate(p,r)},x.prototype.setTranslate=function(p,r){var t=this.position.w-this._box.w,a=this.position.h-this._box.h;if(p=S.constrain(p||0,0,t),r=S.constrain(r||0,0,a),this.translateX=p,this.translateY=r,this.container.call(i.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var n=p/t;this.hbar.call(i.setTranslate,p+n*this._hbarTranslateMax,r)}if(this.vbar){var f=r/a;this.vbar.call(i.setTranslate,p,r+f*this._vbarTranslateMax)}}},84284:function(G){G.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(G){G.exports={axisRefDescription:function(U,e,g){return["If set to a",U,"axis id (e.g. *"+U+"* or","*"+U+"2*), the `"+U+"` position refers to a",U,"coordinate. If set to *paper*, the `"+U+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+g+"). If set to a",U,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+U+"2 domain* refers to the domain of the second",U," axis and a",U,"position of 0.5 refers to the","point between the",e,"and the",g,"of the domain of the","second",U,"axis."].join(" ")}}},48164:function(G){G.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(G){G.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(G){G.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(G){G.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(G){G.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(G){G.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(G){G.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(G,U){U.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],U.STYLE=U.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},9616:function(G,U){U.xmlns="http://www.w3.org/2000/xmlns/",U.svg="http://www.w3.org/2000/svg",U.xlink="http://www.w3.org/1999/xlink",U.svgAttrs={xmlns:U.svg,"xmlns:xlink":U.xlink}},64884:function(G,U,e){U.version=e(25788).version,e(88324),e(79288);for(var g=e(24040),C=U.register=g.register,i=e(22448),S=Object.keys(i),x=0;x",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(G,U){U.isLeftAnchor=function(g){return g.xanchor==="left"||g.xanchor==="auto"&&g.x<=.3333333333333333},U.isCenterAnchor=function(g){return g.xanchor==="center"||g.xanchor==="auto"&&g.x>.3333333333333333&&g.x<.6666666666666666},U.isRightAnchor=function(g){return g.xanchor==="right"||g.xanchor==="auto"&&g.x>=.6666666666666666},U.isTopAnchor=function(g){return g.yanchor==="top"||g.yanchor==="auto"&&g.y>=.6666666666666666},U.isMiddleAnchor=function(g){return g.yanchor==="middle"||g.yanchor==="auto"&&g.y>.3333333333333333&&g.y<.6666666666666666},U.isBottomAnchor=function(g){return g.yanchor==="bottom"||g.yanchor==="auto"&&g.y<=.3333333333333333}},11864:function(G,U,e){var g=e(20435),C=g.mod,i=g.modHalf,S=Math.PI,x=2*S;function v(b){return b/180*S}function p(b){return b/S*180}function r(b){return Math.abs(b[1]-b[0])>x-1e-14}function t(b,u){return i(u-b,x)}function a(b,u){return Math.abs(t(b,u))}function n(b,u){if(r(u))return!0;var o,d;u[0]d&&(d+=x);var w=C(b,x),A=w+x;return w>=o&&w<=d||A>=o&&A<=d}function f(b,u,o,d){if(!n(u,d))return!1;var w,A;return o[0]=w&&b<=A}function c(b,u,o,d,w,A,_){w=w||0,A=A||0;var y=r([o,d]),E,T,s,L,M;y?(E=0,T=S,s=x):o"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};t.uint8c=t.u1c,t.uint8=t.u1,t.int8=t.i1,t.uint16=t.u2,t.int16=t.i2,t.uint32=t.u4,t.int32=t.i4,t.float32=t.f4,t.float64=t.f8;function a(c){return c.constructor===ArrayBuffer}U.isArrayBuffer=a,U.decodeTypedArraySpec=function(c){var l=[],m=n(c),h=m.dtype,b=t[h];if(!b)throw new Error('Error in dtype: "'+h+'"');var u=b.BYTES_PER_ELEMENT,o=m.bdata;a(o)||(o=g(o));var d=m.shape===void 0?[o.byteLength/u]:(""+m.shape).split(",");d.reverse();var w=d.length,A,_,y=+d[0],E=u*y,T=0;if(w===1)l=new b(o);else if(w===2)for(A=+d[1],_=0;_b.max?m.set(h):m.set(+l)}},integer:{coerceFunction:function(l,m,h,b){l%1||!g(l)||b.min!==void 0&&lb.max?m.set(h):m.set(+l)}},string:{coerceFunction:function(l,m,h,b){if(typeof l!="string"){var u=typeof l=="number";b.strict===!0||!u?m.set(h):m.set(String(l))}else b.noBlank&&!l?m.set(h):m.set(l)}},color:{coerceFunction:function(l,m,h){C(l).isValid()?m.set(l):m.set(h)}},colorlist:{coerceFunction:function(l,m,h){function b(u){return C(u).isValid()}!Array.isArray(l)||!l.length?m.set(h):l.every(b)?m.set(l):m.set(h)}},colorscale:{coerceFunction:function(l,m,h){m.set(S.get(l,h))}},angle:{coerceFunction:function(l,m,h){l==="auto"?m.set("auto"):g(l)?m.set(t(+l,360)):m.set(h)}},subplotid:{coerceFunction:function(l,m,h,b){var u=b.regex||r(h);if(typeof l=="string"&&u.test(l)){m.set(l);return}m.set(h)},validateFunction:function(l,m){var h=m.dflt;return l===h?!0:typeof l!="string"?!1:!!r(h).test(l)}},flaglist:{coerceFunction:function(l,m,h,b){if((b.extras||[]).indexOf(l)!==-1){m.set(l);return}if(typeof l!="string"){m.set(h);return}for(var u=l.split("+"),o=0;o=o&&I<=d?I:v}if(typeof I!="string"&&typeof I!="number")return v;I=String(I);var Y=b(k),j=I.charAt(0);Y&&(j==="G"||j==="g")&&(I=I.substr(1),k="");var te=Y&&k.substr(0,7)==="chinese",ie=I.match(te?m:l);if(!ie)return v;var ue=ie[1],J=ie[3]||"1",X=Number(ie[5]||1),ee=Number(ie[7]||0),V=Number(ie[9]||0),Q=Number(ie[11]||0);if(Y){if(ue.length===2)return v;ue=Number(ue);var oe;try{var $=f.getComponentMethod("calendars","getCal")(k);if(te){var Z=J.charAt(J.length-1)==="i";J=parseInt(J,10),oe=$.newDate(ue,$.toMonthIndex(ue,J,Z),X)}else oe=$.newDate(ue,Number(J),X)}catch{return v}return oe?(oe.toJD()-n)*p+ee*r+V*t+Q*a:v}ue.length===2?ue=(Number(ue)+2e3-h)%100+h:ue=Number(ue),J-=1;var se=new Date(Date.UTC(2e3,J,X,ee,V));return se.setUTCFullYear(ue),se.getUTCMonth()!==J||se.getUTCDate()!==X?v:se.getTime()+Q*a},o=U.MIN_MS=U.dateTime2ms("-9999"),d=U.MAX_MS=U.dateTime2ms("9999-12-31 23:59:59.9999"),U.isDateTime=function(I,k){return U.dateTime2ms(I,k)!==v};function w(I,k){return String(I+Math.pow(10,k)).substr(1)}var A=90*p,_=3*r,y=5*t;U.ms2DateTime=function(I,k,B){if(typeof I!="number"||!(I>=o&&I<=d))return v;k||(k=0);var O=Math.floor(S(I+.05,1)*10),H=Math.round(I-O/10),Y,j,te,ie,ue,J;if(b(B)){var X=Math.floor(H/p)+n,ee=Math.floor(S(I,p));try{Y=f.getComponentMethod("calendars","getCal")(B).fromJD(X).formatDate("yyyy-mm-dd")}catch{Y=c("G%Y-%m-%d")(new Date(H))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;j=k=o+p&&I<=d-p))return v;var k=Math.floor(S(I+.05,1)*10),B=new Date(Math.round(I-k/10)),O=g("%Y-%m-%d")(B),H=B.getHours(),Y=B.getMinutes(),j=B.getSeconds(),te=B.getUTCMilliseconds()*10+k;return E(O,H,Y,j,te)};function E(I,k,B,O,H){if((k||B||O||H)&&(I+=" "+w(k,2)+":"+w(B,2),(O||H)&&(I+=":"+w(O,2),H))){for(var Y=4;H%10===0;)Y-=1,H/=10;I+="."+w(H,Y)}return I}U.cleanDate=function(I,k,B){if(I===v)return k;if(U.isJSDate(I)||typeof I=="number"&&isFinite(I)){if(b(B))return i.error("JS Dates and milliseconds are incompatible with world calendars",I),k;if(I=U.ms2DateTimeLocal(+I),!I&&k!==void 0)return k}else if(!U.isDateTime(I,B))return i.error("unrecognized date",I),k;return I};var T=/%\d?f/g,s=/%h/g,L={1:"1",2:"1",3:"2",4:"2"};function M(I,k,B,O){I=I.replace(T,function(Y){var j=Math.min(+Y.charAt(1)||6,6),te=(k/1e3%1+2).toFixed(j).substr(2).replace(/0+$/,"")||"0";return te});var H=new Date(Math.floor(k+.05));if(I=I.replace(s,function(){return L[B("%q")(H)]}),b(O))try{I=f.getComponentMethod("calendars","worldCalFmt")(I,k,O)}catch{return"Invalid"}return B(I)(H)}var z=[59,59.9,59.99,59.999,59.9999];function D(I,k){var B=S(I+.05,p),O=w(Math.floor(B/r),2)+":"+w(S(Math.floor(B/t),60),2);if(k!=="M"){C(k)||(k=0);var H=Math.min(S(I/a,60),z[k]),Y=(100+H).toFixed(k).substr(1);k>0&&(Y=Y.replace(/0+$/,"").replace(/[\.]$/,"")),O+=":"+Y}return O}U.formatDate=function(I,k,B,O,H,Y){if(H=b(H)&&H,!k)if(B==="y")k=Y.year;else if(B==="m")k=Y.month;else if(B==="d")k=Y.dayMonth+` +`+Y.year;else return D(I,B)+` +`+M(Y.dayMonthYear,I,O,H);return M(k,I,O,H)};var N=3*p;U.incrementMonth=function(I,k,B){B=b(B)&&B;var O=S(I,p);if(I=Math.round(I-O),B)try{var H=Math.round(I/p)+n,Y=f.getComponentMethod("calendars","getCal")(B),j=Y.fromJD(H);return k%12?Y.add(j,k,"m"):Y.add(j,k/12,"y"),(j.toJD()-n)*p+O}catch{i.error("invalid ms "+I+" in calendar "+B)}var te=new Date(I+N);return te.setUTCMonth(te.getUTCMonth()+k)+O-N},U.findExactDates=function(I,k){for(var B=0,O=0,H=0,Y=0,j,te,ie=b(k)&&f.getComponentMethod("calendars","getCal")(k),ue=0;ue0&&D[N+1][0]<0)return N;return null}switch(y==="RUS"||y==="FJI"?T=function(D){var N;if(z(D)===null)N=D;else for(N=new Array(D.length),M=0;MN?I[k++]=[D[M][0]+360,D[M][1]]:M===N?(I[k++]=D[M],I[k++]=[D[M][0],-90]):I[k++]=D[M];var B=a.tester(I);B.pts.pop(),E.push(B)}:T=function(D){E.push(a.tester(D))},A.type){case"MultiPolygon":for(s=0;s<_.length;s++)for(L=0;L<_[s].length;L++)T(_[s][L]);break;case"Polygon":for(s=0;s<_.length;s++)T(_[s]);break}return E}function h(w){var A=w.geojson,_=window.PlotlyGeoAssets||{},y=typeof A=="string"?_[A]:A;return r(y)?y:(p.error("Oops ... something went wrong when fetching "+A),!1)}function b(w){var A=w[0].trace,_=h(A);if(!_)return!1;var y={},E=[],T;for(T=0;TE&&(E=L,_=s)}else _=A;return S.default(_).geometry.coordinates}function o(w){var A=window.PlotlyGeoAssets||{},_=[];function y(M){return new Promise(function(z,D){g.json(M,function(N,I){if(N){delete A[M];var k=N.status===404?'GeoJSON at URL "'+M+'" does not exist.':"Unexpected error while fetching from "+M;return D(new Error(k))}return A[M]=I,z(I)})})}function E(M){return new Promise(function(z,D){var N=0,I=setInterval(function(){if(A[M]&&A[M]!=="pending")return clearInterval(I),z(A[M]);if(N>100)return clearInterval(I),D("Unexpected error while fetching from "+M);N++},50)})}for(var T=0;T0&&(x.push(v),v=[])}return v.length>0&&x.push(v),x},U.makeLine=function(C){return C.length===1?{type:"LineString",coordinates:C[0]}:{type:"MultiLineString",coordinates:C}},U.makePolygon=function(C){if(C.length===1)return{type:"Polygon",coordinates:C};for(var i=new Array(C.length),S=0;S1||A<0||A>1?null:{x:p+m*A,y:r+u*A}}U.segmentDistance=function(r,t,a,n,f,c,l,m){if(C(r,t,a,n,f,c,l,m))return 0;var h=a-r,b=n-t,u=l-f,o=m-c,d=h*h+b*b,w=u*u+o*o,A=Math.min(i(h,b,d,f-r,c-t),i(h,b,d,l-r,m-t),i(u,o,w,r-f,t-c),i(u,o,w,a-f,n-c));return Math.sqrt(A)};function i(p,r,t,a,n){var f=a*p+n*r;if(f<0)return a*a+n*n;if(f>t){var c=a-p,l=n-r;return c*c+l*l}else{var m=a*r-n*p;return m*m/t}}var S,x,v;U.getTextLocation=function(r,t,a,n){if((r!==x||n!==v)&&(S={},x=r,v=n),S[a])return S[a];var f=r.getPointAtLength(g(a-n/2,t)),c=r.getPointAtLength(g(a+n/2,t)),l=Math.atan((c.y-f.y)/(c.x-f.x)),m=r.getPointAtLength(g(a,t)),h=(m.x*4+f.x+c.x)/6,b=(m.y*4+f.y+c.y)/6,u={x:h,y:b,theta:l};return S[a]=u,u},U.clearLocationCache=function(){x=null},U.getVisibleSegment=function(r,t,a){var n=t.left,f=t.right,c=t.top,l=t.bottom,m=0,h=r.getTotalLength(),b=h,u,o;function d(A){var _=r.getPointAtLength(A);A===0?u=_:A===h&&(o=_);var y=_.xf?_.x-f:0,E=_.yl?_.y-l:0;return Math.sqrt(y*y+E*E)}for(var w=d(m);w;){if(m+=w+a,m>b)return;w=d(m)}for(w=d(b);w;){if(b-=w+a,m>b)return;w=d(b)}return{min:m,max:b,len:b-m,total:h,isClosed:m===0&&b===h&&Math.abs(u.x-o.x)<.1&&Math.abs(u.y-o.y)<.1}},U.findPointOnPath=function(r,t,a,n){n=n||{};for(var f=n.pathLength||r.getTotalLength(),c=n.tolerance||.001,l=n.iterationLimit||30,m=r.getPointAtLength(0)[a]>r.getPointAtLength(f)[a]?-1:1,h=0,b=0,u=f,o,d,w;h0?u=o:b=o,h++}return d}},33040:function(G,U,e){var g=e(38248),C=e(49760),i=e(72160),S=e(8932),x=e(22548).defaultLine,v=e(38116).isArrayOrTypedArray,p=i(x),r=1;function t(l,m){var h=l;return h[3]*=m,h}function a(l){if(g(l))return p;var m=i(l);return m.length?m:p}function n(l){return g(l)?l:r}function f(l,m,h){var b=l.color;b&&b._inputArray&&(b=b._inputArray);var u=v(b),o=v(m),d=S.extractOpts(l),w=[],A,_,y,E,T;if(d.colorscale!==void 0?A=S.makeColorScaleFuncFromTrace(l):A=a,u?_=function(L,M){return L[M]===void 0?p:i(A(L[M]))}:_=a,o?y=function(L,M){return L[M]===void 0?r:n(L[M])}:y=n,u||o)for(var s=0;s1?(C*e+C*g)/C:e+g,S=String(i).length;if(S>16){var x=String(g).length,v=String(e).length;if(S>=v+x){var p=parseFloat(i).toPrecision(12);p.indexOf("e+")===-1&&(i=+p)}}return i}},3400:function(G,U,e){var g=e(33428),C=e(94336).E9,i=e(57624).E9,S=e(38248),x=e(39032),v=x.FP_SAFE,p=-v,r=x.BADNUM,t=G.exports={};t.adjustFormat=function(oe){return!oe||/^\d[.]\df/.test(oe)||/[.]\d%/.test(oe)?oe:oe==="0.f"?"~f":/^\d%/.test(oe)?"~%":/^\ds/.test(oe)?"~s":!/^[~,.0$]/.test(oe)&&/[&fps]/.test(oe)?"~"+oe:oe};var a={};t.warnBadFormat=function(Q){var oe=String(Q);a[oe]||(a[oe]=1,t.warn('encountered bad format: "'+oe+'"'))},t.noFormat=function(Q){return String(Q)},t.numberFormat=function(Q){var oe;try{oe=i(t.adjustFormat(Q))}catch{return t.warnBadFormat(Q),t.noFormat}return oe},t.nestedProperty=e(22296),t.keyedContainer=e(37804),t.relativeAttr=e(23193),t.isPlainObject=e(63620),t.toLogRange=e(36896),t.relinkPrivateKeys=e(51528);var n=e(38116);t.isArrayBuffer=n.isArrayBuffer,t.isTypedArray=n.isTypedArray,t.isArrayOrTypedArray=n.isArrayOrTypedArray,t.isArray1D=n.isArray1D,t.ensureArray=n.ensureArray,t.concat=n.concat,t.maxRowLength=n.maxRowLength,t.minRowLength=n.minRowLength;var f=e(20435);t.mod=f.mod,t.modHalf=f.modHalf;var c=e(63064);t.valObjectMeta=c.valObjectMeta,t.coerce=c.coerce,t.coerce2=c.coerce2,t.coerceFont=c.coerceFont,t.coercePattern=c.coercePattern,t.coerceHoverinfo=c.coerceHoverinfo,t.coerceSelectionMarkerOpacity=c.coerceSelectionMarkerOpacity,t.validate=c.validate;var l=e(67555);t.dateTime2ms=l.dateTime2ms,t.isDateTime=l.isDateTime,t.ms2DateTime=l.ms2DateTime,t.ms2DateTimeLocal=l.ms2DateTimeLocal,t.cleanDate=l.cleanDate,t.isJSDate=l.isJSDate,t.formatDate=l.formatDate,t.incrementMonth=l.incrementMonth,t.dateTick0=l.dateTick0,t.dfltRange=l.dfltRange,t.findExactDates=l.findExactDates,t.MIN_MS=l.MIN_MS,t.MAX_MS=l.MAX_MS;var m=e(14952);t.findBin=m.findBin,t.sorterAsc=m.sorterAsc,t.sorterDes=m.sorterDes,t.distinctVals=m.distinctVals,t.roundUp=m.roundUp,t.sort=m.sort,t.findIndexOfMin=m.findIndexOfMin,t.sortObjectKeys=e(95376);var h=e(63084);t.aggNums=h.aggNums,t.len=h.len,t.mean=h.mean,t.median=h.median,t.midRange=h.midRange,t.variance=h.variance,t.stdev=h.stdev,t.interp=h.interp;var b=e(52248);t.init2dArray=b.init2dArray,t.transposeRagged=b.transposeRagged,t.dot=b.dot,t.translationMatrix=b.translationMatrix,t.rotationMatrix=b.rotationMatrix,t.rotationXYMatrix=b.rotationXYMatrix,t.apply3DTransform=b.apply3DTransform,t.apply2DTransform=b.apply2DTransform,t.apply2DTransform2=b.apply2DTransform2,t.convertCssMatrix=b.convertCssMatrix,t.inverseTransformMatrix=b.inverseTransformMatrix;var u=e(11864);t.deg2rad=u.deg2rad,t.rad2deg=u.rad2deg,t.angleDelta=u.angleDelta,t.angleDist=u.angleDist,t.isFullCircle=u.isFullCircle,t.isAngleInsideSector=u.isAngleInsideSector,t.isPtInsideSector=u.isPtInsideSector,t.pathArc=u.pathArc,t.pathSector=u.pathSector,t.pathAnnulus=u.pathAnnulus;var o=e(98308);t.isLeftAnchor=o.isLeftAnchor,t.isCenterAnchor=o.isCenterAnchor,t.isRightAnchor=o.isRightAnchor,t.isTopAnchor=o.isTopAnchor,t.isMiddleAnchor=o.isMiddleAnchor,t.isBottomAnchor=o.isBottomAnchor;var d=e(92348);t.segmentsIntersect=d.segmentsIntersect,t.segmentDistance=d.segmentDistance,t.getTextLocation=d.getTextLocation,t.clearLocationCache=d.clearLocationCache,t.getVisibleSegment=d.getVisibleSegment,t.findPointOnPath=d.findPointOnPath;var w=e(92880);t.extendFlat=w.extendFlat,t.extendDeep=w.extendDeep,t.extendDeepAll=w.extendDeepAll,t.extendDeepNoArrays=w.extendDeepNoArrays;var A=e(24248);t.log=A.log,t.warn=A.warn,t.error=A.error;var _=e(53756);t.counterRegex=_.counter;var y=e(91200);t.throttle=y.throttle,t.throttleDone=y.done,t.clearThrottle=y.clear;var E=e(52200);t.getGraphDiv=E.getGraphDiv,t.isPlotDiv=E.isPlotDiv,t.removeElement=E.removeElement,t.addStyleRule=E.addStyleRule,t.addRelatedStyleRule=E.addRelatedStyleRule,t.deleteRelatedStyleRule=E.deleteRelatedStyleRule,t.getFullTransformMatrix=E.getFullTransformMatrix,t.getElementTransformMatrix=E.getElementTransformMatrix,t.getElementAndAncestors=E.getElementAndAncestors,t.equalDomRects=E.equalDomRects,t.clearResponsive=e(75352),t.preserveDrawingBuffer=e(34296),t.makeTraceGroups=e(30988),t._=e(98356),t.notifier=e(41792),t.filterUnique=e(68944),t.filterVisible=e(43880),t.pushUnique=e(52416),t.increment=e(1396),t.cleanNumber=e(54037),t.ensureNumber=function(oe){return S(oe)?(oe=Number(oe),oe>v||oe=oe?!1:S(Q)&&Q>=0&&Q%1===0},t.noop=e(16628),t.identity=e(35536),t.repeat=function(Q,oe){for(var $=new Array(oe),Z=0;Z$?Math.max($,Math.min(oe,Q)):Math.max(oe,Math.min($,Q))},t.bBoxIntersect=function(Q,oe,$){return $=$||0,Q.left<=oe.right+$&&oe.left<=Q.right+$&&Q.top<=oe.bottom+$&&oe.top<=Q.bottom+$},t.simpleMap=function(Q,oe,$,Z,se){for(var ne=Q.length,ce=new Array(ne),ge=0;ge=Math.pow(2,$)?se>10?(t.warn("randstr failed uniqueness"),ce):Q(oe,$,Z,(se||0)+1):ce},t.OptionControl=function(Q,oe){Q||(Q={}),oe||(oe="opt");var $={};return $.optionList=[],$._newoption=function(Z){Z[oe]=Q,$[Z.name]=Z,$.optionList.push(Z)},$["_"+oe]=Q,$},t.smooth=function(Q,oe){if(oe=Math.round(oe)||0,oe<2)return Q;var $=Q.length,Z=2*$,se=2*oe-1,ne=new Array(se),ce=new Array($),ge,Te,we,Re;for(ge=0;ge=Z&&(we-=Z*Math.floor(we/Z)),we<0?we=-1-we:we>=$&&(we=Z-1-we),Re+=Q[we]*ne[Te];ce[ge]=Re}return ce},t.syncOrAsync=function(Q,oe,$){var Z,se;function ne(){return t.syncOrAsync(Q,oe,$)}for(;Q.length;)if(se=Q.splice(0,1)[0],Z=se(oe),Z&&Z.then)return Z.then(ne);return $&&$(oe)},t.stripTrailingSlash=function(Q){return Q.substr(-1)==="/"?Q.substr(0,Q.length-1):Q},t.noneOrAll=function(Q,oe,$){if(Q){var Z=!1,se=!0,ne,ce;for(ne=0;ne<$.length;ne++)ce=Q[$[ne]],ce!=null?Z=!0:se=!1;if(Z&&!se)for(ne=0;ne<$.length;ne++)Q[$[ne]]=oe[$[ne]]}},t.mergeArray=function(Q,oe,$,Z){var se=typeof Z=="function";if(t.isArrayOrTypedArray(Q))for(var ne=Math.min(Q.length,oe.length),ce=0;ce0?se:0})},t.fillArray=function(Q,oe,$,Z){if(Z=Z||t.identity,t.isArrayOrTypedArray(Q))for(var se=0;se1?se+ce[1]:"";if(ne&&(ce.length>1||ge.length>4||$))for(;Z.test(ge);)ge=ge.replace(Z,"$1"+ne+"$2");return ge+Te},t.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var k=/^\w*$/;t.templateString=function(Q,oe){var $={};return Q.replace(t.TEMPLATE_STRING_REGEX,function(Z,se){var ne;return k.test(se)?ne=oe[se]:($[se]=$[se]||t.nestedProperty(oe,se).get,ne=$[se]()),t.isValidTextValue(ne)?ne:""})};var B={max:10,count:0,name:"hovertemplate"};t.hovertemplateString=function(){return ie.apply(B,arguments)};var O={max:10,count:0,name:"texttemplate"};t.texttemplateString=function(){return ie.apply(O,arguments)};var H=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Y(Q){var oe=Q.match(H);return oe?{key:oe[1],op:oe[2],number:Number(oe[3])}:{key:Q,op:null,number:null}}var j={max:10,count:0,name:"texttemplate",parseMultDiv:!0};t.texttemplateStringForShapes=function(){return ie.apply(j,arguments)};var te=/^[:|\|]/;function ie(Q,oe,$){var Z=this,se=arguments;oe||(oe={});var ne={};return Q.replace(t.TEMPLATE_STRING_REGEX,function(ce,ge,Te){var we=ge==="xother"||ge==="yother",Re=ge==="_xother"||ge==="_yother",be=ge==="_xother_"||ge==="_yother_",Ae=ge==="xother_"||ge==="yother_",me=we||Re||Ae||be,Le=ge;(Re||be)&&(Le=Le.substring(1)),(Ae||be)&&(Le=Le.substring(0,Le.length-1));var He=null,Ue=null;if(Z.parseMultDiv){var ke=Y(Le);Le=ke.key,He=ke.op,Ue=ke.number}var Ve;if(me){if(Ve=oe[Le],Ve===void 0)return""}else{var Ie,rt;for(rt=3;rt=ue&&ce<=J,we=ge>=ue&&ge<=J;if(Te&&(Z=10*Z+ce-ue),we&&(se=10*se+ge-ue),!Te||!we){if(Z!==se)return Z-se;if(ce!==ge)return ce-ge}}return se-Z};var X=2e9;t.seedPseudoRandom=function(){X=2e9},t.pseudoRandom=function(){var Q=X;return X=(69069*X+1)%4294967296,Math.abs(X-Q)<429496729?t.pseudoRandom():X/4294967296},t.fillText=function(Q,oe,$){var Z=Array.isArray($)?function(ce){$.push(ce)}:function(ce){$.text=ce},se=t.extractOption(Q,oe,"htx","hovertext");if(t.isValidTextValue(se))return Z(se);var ne=t.extractOption(Q,oe,"tx","text");if(t.isValidTextValue(ne))return Z(ne)},t.isValidTextValue=function(Q){return Q||Q===0},t.formatPercent=function(Q,oe){oe=oe||0;for(var $=(Math.round(100*Q*Math.pow(10,oe))*Math.pow(.1,oe)).toFixed(oe)+"%",Z=0;Z1&&(we=1):we=0,t.strTranslate(se-we*($+ce),ne-we*(Z+ge))+t.strScale(we)+(Te?"rotate("+Te+(oe?"":" "+$+" "+Z)+")":"")},t.setTransormAndDisplay=function(Q,oe){Q.attr("transform",t.getTextTransform(oe)),Q.style("display",oe.scale?null:"none")},t.ensureUniformFontSize=function(Q,oe){var $=t.extendFlat({},oe);return $.size=Math.max(oe.size,Q._fullLayout.uniformtext.minsize||0),$},t.join2=function(Q,oe,$){var Z=Q.length;return Z>1?Q.slice(0,-1).join(oe)+$+Q[Z-1]:Q.join(oe)},t.bigFont=function(Q){return Math.round(1.2*Q)};var ee=t.getFirefoxVersion(),V=ee!==null&&ee<86;t.getPositionFromD3Event=function(){return V?[g.event.layerX,g.event.layerY]:[g.event.offsetX,g.event.offsetY]}},63620:function(G){G.exports=function(e){return window&&window.process&&window.process.versions?Object.prototype.toString.call(e)==="[object Object]":Object.prototype.toString.call(e)==="[object Object]"&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},37804:function(G,U,e){var g=e(22296),C=/^\w*$/,i=0,S=1,x=2,v=3,p=4;G.exports=function(t,a,n,f){n=n||"name",f=f||"value";var c,l,m,h={};a&&a.length?(m=g(t,a),l=m.get()):l=t,a=a||"";var b={};if(l)for(c=0;c2)return h[w]=h[w]|x,o.set(d,null);if(u){for(c=w;c1){var x=["LOG:"];for(S=0;S1){var v=[];for(S=0;S"),"long")}},i.warn=function(){var S;if(g.logging>0){var x=["WARN:"];for(S=0;S0){var v=[];for(S=0;S"),"stick")}},i.error=function(){var S;if(g.logging>0){var x=["ERROR:"];for(S=0;S0){var v=[];for(S=0;S"),"stick")}}},30988:function(G,U,e){var g=e(33428);G.exports=function(i,S,x){var v=i.selectAll("g."+x.replace(/\s/g,".")).data(S,function(r){return r[0].trace.uid});v.exit().remove(),v.enter().append("g").attr("class",x),v.order();var p=i.classed("rangeplot")?"nodeRangePlot3":"node3";return v.each(function(r){r[0][p]=g.select(this)}),v}},52248:function(G,U,e){var g=e(36524);U.init2dArray=function(C,i){for(var S=new Array(C),x=0;xC/2?g-Math.round(g/C)*C:g}G.exports={mod:U,modHalf:e}},22296:function(G,U,e){var g=e(38248),C=e(38116).isArrayOrTypedArray;G.exports=function(f,c){if(g(c))c=String(c);else if(typeof c!="string"||c.substr(c.length-4)==="[-1]")throw"bad property string";var l=c.split("."),m,h,b,u;for(u=0;u/g),l=0;lr||w===C||wa||o&&c(u))}function m(u,o){var d=u[0],w=u[1];if(d===C||dr||w===C||wa)return!1;var A=v.length,_=v[0][0],y=v[0][1],E=0,T,s,L,M,z;for(T=1;TMath.max(s,_)||w>Math.max(L,y)))if(wn||Math.abs(g(m,c))>r)return!0;return!1},i.filter=function(x,v){var p=[x[0]],r=0,t=0;function a(f){x.push(f);var c=p.length,l=r;p.splice(t+1);for(var m=l+1;m1){var n=x.pop();a(n)}return{addPt:a,raw:x,filtered:p}}},5048:function(G,U,e){var g=e(16576),C=e(28624);G.exports=function(S,x,v){var p=S._fullLayout,r=!0;return p._glcanvas.each(function(t){if(t.regl){t.regl.preloadCachedCode(v);return}if(!(t.pick&&!p._has("parcoords"))){try{t.regl=C({canvas:this,attributes:{antialias:!t.pick,preserveDrawingBuffer:!0},pixelRatio:S._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:x||[],cachedCode:v||{}})}catch{r=!1}t.regl||(r=!1),r&&this.addEventListener("webglcontextlost",function(a){S&&S.emit&&S.emit("plotly_webglcontextlost",{event:a,layer:t.key})},!1)}}),r||g({container:p._glcontainer.node()}),r}},34296:function(G,U,e){var g=e(38248),C=e(25928);G.exports=function(x){var v;if(x&&x.hasOwnProperty("userAgent")?v=x.userAgent:v=i(),typeof v!="string")return!0;var p=C({ua:{headers:{"user-agent":v}},tablet:!0,featureDetect:!1});if(!p)for(var r=v.split(" "),t=1;t-1;n--){var f=r[n];if(f.substr(0,8)==="Version/"){var c=f.substr(8).split(".")[0];if(g(c)&&(c=+c),c>=13)return!0}}}return p};function i(){var S;return typeof navigator<"u"&&(S=navigator.userAgent),S&&S.headers&&typeof S.headers["user-agent"]=="string"&&(S=S.headers["user-agent"]),S}},52416:function(G){G.exports=function(e,g){if(g instanceof RegExp){for(var C=g.toString(),i=0;iC.queueLength&&(x.undoQueue.queue.shift(),x.undoQueue.index--)},S.startSequence=function(x){x.undoQueue=x.undoQueue||{index:0,queue:[],sequence:!1},x.undoQueue.sequence=!0,x.undoQueue.beginSequence=!0},S.stopSequence=function(x){x.undoQueue=x.undoQueue||{index:0,queue:[],sequence:!1},x.undoQueue.sequence=!1,x.undoQueue.beginSequence=!1},S.undo=function(v){var p,r;if(!(v.undoQueue===void 0||isNaN(v.undoQueue.index)||v.undoQueue.index<=0)){for(v.undoQueue.index--,p=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,r=0;r=v.undoQueue.queue.length)){for(p=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,r=0;r1?(n[l-1]-n[0])/(l-1):1,b,u;for(h>=0?u=f?v:p:u=f?t:r,a+=h*x*(f?-1:1)*(h>=0?1:-1);c90&&C.log("Long binary search..."),c-1};function v(a,n){return an}function t(a,n){return a>=n}U.sorterAsc=function(a,n){return a-n},U.sorterDes=function(a,n){return n-a},U.distinctVals=function(a){var n=a.slice();n.sort(U.sorterAsc);var f;for(f=n.length-1;f>-1&&n[f]===S;f--);for(var c=n[f]-n[0]||1,l=c/(f||1)/1e4,m=[],h,b=0;b<=f;b++){var u=n[b],o=u-h;h===void 0?(m.push(u),h=u):o>l&&(c=Math.min(c,o),m.push(u),h=u)}return{vals:m,minDiff:c}},U.roundUp=function(a,n,f){for(var c=0,l=n.length-1,m,h=0,b=f?0:1,u=f?1:0,o=f?Math.ceil:Math.floor;c0&&(c=1),f&&c)return a.sort(n)}return c?a:a.reverse()},U.findIndexOfMin=function(a,n){n=n||i;for(var f=1/0,c,l=0;lx.length)&&(v=x.length),g(S)||(S=!1),C(x[0])){for(r=new Array(v),p=0;pi.length-1)return i[i.length-1];var x=S%1;return x*i[Math.ceil(S)]+(1-x)*i[Math.floor(S)]}},43080:function(G,U,e){var g=e(72160);function C(i){return i?g(i):[0,0,0,1]}G.exports=C},9188:function(G,U,e){var g=e(2264),C=e(43616),i=e(3400),S=null;function x(){if(S!==null)return S;S=!1;var v=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!v){var p=Array.from(g.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")S=p.some(function(f){return r.apply(null,f)});else{var t=C.tester.append("image").attr("style",g.STYLE),a=window.getComputedStyle(t.node()),n=a.imageRendering;S=p.some(function(f){var c=f[1];return n===c||n===c.toLowerCase()}),t.remove()}}return S}G.exports=x},72736:function(G,U,e){var g=e(33428),C=e(3400),i=C.strTranslate,S=e(9616),x=e(84284).LINE_SPACING,v=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;U.convertToTspans=function(B,O,H){var Y=B.text(),j=!B.attr("data-notex")&&O&&O._context.typesetMath&&typeof MathJax<"u"&&Y.match(v),te=g.select(B.node().parentNode);if(te.empty())return;var ie=B.attr("class")?B.attr("class").split(" ")[0]:"text";ie+="-math",te.selectAll("svg."+ie).remove(),te.selectAll("g."+ie+"-group").remove(),B.style("display",null).attr({"data-unformatted":Y,"data-math":"N"});function ue(){te.empty()||(ie=B.attr("class")+"-math",te.select("svg."+ie).remove()),B.text("").style("white-space","pre");var J=D(B.node(),Y);J&&B.style("pointer-events","all"),U.positionText(B),H&&H.call(B)}return j?(O&&O._promises||[]).push(new Promise(function(J){B.style("display","none");var X=parseInt(B.node().style.fontSize,10),ee={fontSize:X};n(j[2],ee,function(V,Q,oe){te.selectAll("svg."+ie).remove(),te.selectAll("g."+ie+"-group").remove();var $=V&&V.select("svg");if(!$||!$.node()){ue(),J();return}var Z=te.append("g").classed(ie+"-group",!0).attr({"pointer-events":"none","data-unformatted":Y,"data-math":"Y"});Z.node().appendChild($.node()),Q&&Q.node()&&$.node().insertBefore(Q.node().cloneNode(!0),$.node().firstChild);var se=oe.width,ne=oe.height;$.attr({class:ie,height:ne,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var ce=B.node().style.fill||"black",ge=$.select("g");ge.attr({fill:ce,stroke:ce});var Te=ge.node().getBoundingClientRect(),we=Te.width,Re=Te.height;(we>se||Re>ne)&&($.style("overflow","hidden"),Te=$.node().getBoundingClientRect(),we=Te.width,Re=Te.height);var be=+B.attr("x"),Ae=+B.attr("y"),me=X||B.node().getBoundingClientRect().height,Le=-me/4;if(ie[0]==="y")Z.attr({transform:"rotate("+[-90,be,Ae]+")"+i(-we/2,Le-Re/2)});else if(ie[0]==="l")Ae=Le-Re/2;else if(ie[0]==="a"&&ie.indexOf("atitle")!==0)be=0,Ae=Le;else{var He=B.attr("text-anchor");be=be-we*(He==="middle"?.5:He==="end"?1:0),Ae=Ae+Le-Re/2}$.attr({x:be,y:Ae}),H&&H.call(B,Z),J(Z)})})):ue(),B};var p=/(<|<|<)/g,r=/(>|>|>)/g;function t(B){return B.replace(p,"\\lt ").replace(r,"\\gt ")}var a=[["$","$"],["\\(","\\)"]];function n(B,O,H){var Y=parseInt((MathJax.version||"").split(".")[0]);if(Y!==2&&Y!==3){C.warn("No MathJax version:",MathJax.version);return}var j,te,ie,ue,J=function(){return te=C.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:a},displayAlign:"left"})},X=function(){te=C.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=a},ee=function(){if(j=MathJax.Hub.config.menuSettings.renderer,j!=="SVG")return MathJax.Hub.setRenderer("SVG")},V=function(){j=MathJax.config.startup.output,j!=="svg"&&(MathJax.config.startup.output="svg")},Q=function(){var ce="math-output-"+C.randstr({},64);ue=g.select("body").append("div").attr({id:ce}).style({visibility:"hidden",position:"absolute","font-size":O.fontSize+"px"}).text(t(B));var ge=ue.node();return Y===2?MathJax.Hub.Typeset(ge):MathJax.typeset([ge])},oe=function(){var ce=ue.select(Y===2?".MathJax_SVG":".MathJax"),ge=!ce.empty()&&ue.select("svg").node();if(!ge)C.log("There was an error in the tex syntax.",B),H();else{var Te=ge.getBoundingClientRect(),we;Y===2?we=g.select("body").select("#MathJax_SVG_glyphs"):we=ce.select("defs"),H(ce,we,Te)}ue.remove()},$=function(){if(j!=="SVG")return MathJax.Hub.setRenderer(j)},Z=function(){j!=="svg"&&(MathJax.config.startup.output=j)},se=function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(te)},ne=function(){MathJax.config=te};Y===2?MathJax.Hub.Queue(J,ee,Q,oe,$,se):Y===3&&(X(),V(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Q(),oe(),Z(),ne()}))}var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},c={sub:"0.3em",sup:"-0.6em"},l={sub:"-0.21em",sup:"0.42em"},m="​",h=["http:","https:","mailto:","",void 0,":"],b=U.NEWLINES=/(\r\n?|\n)/g,u=/(<[^<>]*>)/,o=/<(\/?)([^ >]*)(\s+(.*))?>/i,d=//i;U.BR_TAG_ALL=//gi;var w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,A=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,_=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,y=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function E(B,O){if(!B)return null;var H=B.match(O),Y=H&&(H[3]||H[4]);return Y&&M(Y)}var T=/(^|;)\s*color:/;U.plainText=function(B,O){O=O||{};for(var H=O.len!==void 0&&O.len!==-1?O.len:1/0,Y=O.allowedTags!==void 0?O.allowedTags:["br"],j="...",te=j.length,ie=B.split(u),ue=[],J="",X=0,ee=0;eete?ue.push(V.substr(0,Z-te)+j):ue.push(V.substr(0,Z));break}J=""}}return ue.join("")};var s={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},L=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function M(B){return B.replace(L,function(O,H){var Y;return H.charAt(0)==="#"?Y=z(H.charAt(1)==="x"?parseInt(H.substr(2),16):parseInt(H.substr(1),10)):Y=s[H],Y||O})}U.convertEntities=M;function z(B){if(!(B>1114111)){var O=String.fromCodePoint;if(O)return O(B);var H=String.fromCharCode;return B<=65535?H(B):H((B>>10)+55232,B%1024+56320)}}function D(B,O){O=O.replace(b," ");var H=!1,Y=[],j,te=-1;function ie(){te++;var Re=document.createElementNS(S.svg,"tspan");g.select(Re).attr({class:"line",dy:te*x+"em"}),B.appendChild(Re),j=Re;var be=Y;if(Y=[{node:Re}],be.length>1)for(var Ae=1;Ae.",O);return}var be=Y.pop();Re!==be.type&&C.log("Start tag <"+be.type+"> doesnt match end tag <"+Re+">. Pretending it did match.",O),j=Y[Y.length-1].node}var ee=d.test(O);ee?ie():(j=B,Y=[{node:B}]);for(var V=O.split(u),Q=0;Qv.ts+S){t();return}v.timer=setTimeout(function(){t(),v.timer=null},S)},U.done=function(C){var i=e[C];return!i||!i.timer?Promise.resolve():new Promise(function(S){var x=i.onDone;i.onDone=function(){x&&x(),S(),i.onDone=null}})},U.clear=function(C){if(C)g(e[C]),delete e[C];else for(var i in e)U.clear(i)};function g(C){C&&C.timer!==null&&(clearTimeout(C.timer),C.timer=null)}},36896:function(G,U,e){var g=e(38248);G.exports=function(i,S){if(i>0)return Math.log(i)/Math.LN10;var x=Math.log(Math.min(S[0],S[1]))/Math.LN10;return g(x)||(x=Math.log(Math.max(S[0],S[1]))/Math.LN10-6),x}},59972:function(G,U,e){var g=G.exports={},C=e(79552).locationmodeToLayer,i=e(55712).NO;g.getTopojsonName=function(S){return[S.scope.replace(/ /g,"-"),"_",S.resolution.toString(),"m"].join("")},g.getTopojsonPath=function(S,x){return S+x+".json"},g.getTopojsonFeatures=function(S,x){var v=C[S.locationmode],p=x.objects[v];return i(x,p).features}},11680:function(G){G.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(G){G.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(G,U,e){var g=e(24040);G.exports=function(i){for(var S=g.layoutArrayContainers,x=g.layoutArrayRegexes,v=i.split("[")[0],p,r,t=0;t0&&S.log("Clearing previous rejected promises from queue."),d._promises=[]},U.cleanLayout=function(d){var w,A;d||(d={}),d.xaxis1&&(d.xaxis||(d.xaxis=d.xaxis1),delete d.xaxis1),d.yaxis1&&(d.yaxis||(d.yaxis=d.yaxis1),delete d.yaxis1),d.scene1&&(d.scene||(d.scene=d.scene1),delete d.scene1);var _=(x.subplotsRegistry.cartesian||{}).attrRegex,y=(x.subplotsRegistry.polar||{}).attrRegex,E=(x.subplotsRegistry.ternary||{}).attrRegex,T=(x.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(d);for(w=0;w3?(ee.x=1.02,ee.xanchor="left"):ee.x<-2&&(ee.x=-.02,ee.xanchor="right"),ee.y>3?(ee.y=1.02,ee.yanchor="bottom"):ee.y<-2&&(ee.y=-.02,ee.yanchor="top")),f(d),d.dragmode==="rotate"&&(d.dragmode="orbit"),p.clean(d),d.template&&d.template.layout&&U.cleanLayout(d.template.layout),d};function n(d,w){var A=d[w],_=w.charAt(0);A&&A!=="paper"&&(d[w]=r(A,_,!0))}function f(d){d&&((typeof d.title=="string"||typeof d.title=="number")&&(d.title={text:d.title}),w("titlefont","font"),w("titleposition","position"),w("titleside","side"),w("titleoffset","offset"));function w(A,_){var y=d[A],E=d.title&&d.title[_];y&&!E&&(d.title||(d.title={}),d.title[_]=d[A],delete d[A])}}U.cleanData=function(d){for(var w=0;w0)return d.substr(0,w)}U.hasParent=function(d,w){for(var A=u(w);A;){if(A in d)return!0;A=u(A)}return!1};var o=["x","y","z"];U.clearAxisTypes=function(d,w,A){for(var _=0;_1&&i.warn("Full array edits are incompatible with other edits",l);var w=n[""][""];if(p(w))a.set(null);else if(Array.isArray(w))a.set(w);else return i.warn("Unrecognized full array edit value",l,w),!0;return u?!1:(m(o,d),h(t),!0)}var A=Object.keys(n).map(Number).sort(S),_=a.get(),y=_||[],E=c(d,l).get(),T=[],s=-1,L=y.length,M,z,D,N,I,k,B,O;for(M=0;My.length-(B?0:1)){i.warn("index out of range",l,D);continue}if(k!==void 0)I.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",l,D),p(k)?T.push(D):B?(k==="add"&&(k={}),y.splice(D,0,k),E&&E.splice(D,0,{})):i.warn("Unrecognized full object edit value",l,D,k),s===-1&&(s=D);else for(z=0;z=0;M--)y.splice(T[M],1),E&&E.splice(T[M],1);if(y.length?_||a.set(y):a.set(null),u)return!1;if(m(o,d),b!==C){var H;if(s===-1)H=A;else{for(L=Math.max(y.length,L),H=[],M=0;M=s));M++)H.push(D);for(M=s;M=Me.data.length||mt<-Me.data.length)throw new Error(je+" must be valid indices for gd.data.");if(Ne.indexOf(mt,it+1)>-1||mt>=0&&Ne.indexOf(-Me.data.length+mt)>-1||mt<0&&Ne.indexOf(Me.data.length+mt)>-1)throw new Error("each index in "+je+" must be unique.")}}function H(Me,Ne,je){if(!Array.isArray(Me.data))throw new Error("gd.data must be an array.");if(typeof Ne>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(Ne)||(Ne=[Ne]),O(Me,Ne,"currentIndices"),typeof je<"u"&&!Array.isArray(je)&&(je=[je]),typeof je<"u"&&O(Me,je,"newIndices"),typeof je<"u"&&Ne.length!==je.length)throw new Error("current and new indices must be of equal length.")}function Y(Me,Ne,je){var it,mt;if(!Array.isArray(Me.data))throw new Error("gd.data must be an array.");if(typeof Ne>"u")throw new Error("traces must be defined.");for(Array.isArray(Ne)||(Ne=[Ne]),it=0;it"u")throw new Error("indices must be an integer or array of integers");O(Me,je,"indices");for(var bt in Ne){if(!Array.isArray(Ne[bt])||Ne[bt].length!==je.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(mt&&(!(bt in it)||!Array.isArray(it[bt])||it[bt].length!==Ne[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function te(Me,Ne,je,it){var mt=S.isPlainObject(it),bt=[],vt,Lt,ct,Tt,Bt;Array.isArray(je)||(je=[je]),je=B(je,Me.data.length-1);for(var ir in Ne)for(var pt=0;pt=0&&Bt=0&&Bt"u")return Tt=U.redraw(Me),p.add(Me,mt,vt,bt,Lt),Tt;Array.isArray(je)||(je=[je]);try{H(Me,it,je)}catch(Bt){throw Me.data.splice(Me.data.length-Ne.length,Ne.length),Bt}return p.startSequence(Me),p.add(Me,mt,vt,bt,Lt),Tt=U.moveTraces(Me,it,je),p.stopSequence(Me),Tt}function V(Me,Ne){Me=S.getGraphDiv(Me);var je=[],it=U.addTraces,mt=V,bt=[Me,je,Ne],vt=[Me,Ne],Lt,ct;if(typeof Ne>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Ne)||(Ne=[Ne]),O(Me,Ne,"indices"),Ne=B(Ne,Me.data.length-1),Ne.sort(S.sorterDes),Lt=0;Lt"u")for(je=[],Tt=0;Tt-1&&bt.indexOf("grouptitlefont")===-1?Lt(bt,bt.replace("titlefont","title.font")):bt.indexOf("titleposition")>-1?Lt(bt,bt.replace("titleposition","title.position")):bt.indexOf("titleside")>-1?Lt(bt,bt.replace("titleside","title.side")):bt.indexOf("titleoffset")>-1&&Lt(bt,bt.replace("titleoffset","title.offset"));function Lt(ct,Tt){Me[Tt]=Me[ct],delete Me[ct]}}function Te(Me,Ne,je){Me=S.getGraphDiv(Me),w.clearPromiseQueue(Me);var it={};if(typeof Ne=="string")it[Ne]=je;else if(S.isPlainObject(Ne))it=S.extendFlat({},Ne);else return S.warn("Relayout fail.",Ne,je),Promise.reject();Object.keys(it).length&&(Me.changed=!0);var mt=Le(Me,it),bt=mt.flags;bt.calc&&(Me.calcdata=void 0);var vt=[a.previousPromises];bt.layoutReplot?vt.push(A.layoutReplot):Object.keys(it).length&&(we(Me,bt,mt)||a.supplyDefaults(Me),bt.legend&&vt.push(A.doLegend),bt.layoutstyle&&vt.push(A.layoutStyles),bt.axrange&&Re(vt,mt.rangesAltered),bt.ticks&&vt.push(A.doTicksRelayout),bt.modebar&&vt.push(A.doModeBar),bt.camera&&vt.push(A.doCamera),bt.colorbars&&vt.push(A.doColorBars),vt.push(L)),vt.push(a.rehover,a.redrag,a.reselect),p.add(Me,Te,[Me,mt.undoit],Te,[Me,mt.redoit]);var Lt=S.syncOrAsync(vt,Me);return(!Lt||!Lt.then)&&(Lt=Promise.resolve(Me)),Lt.then(function(){return Me.emit("plotly_relayout",mt.eventData),Me})}function we(Me,Ne,je){var it=Me._fullLayout;if(!Ne.axrange)return!1;for(var mt in Ne)if(mt!=="axrange"&&Ne[mt])return!1;var bt,vt,Lt=function(Xt,Kt){return S.coerce(bt,vt,c,Xt,Kt)},ct={};for(var Tt in je.rangesAltered){var Bt=n.id2name(Tt);if(bt=Me.layout[Bt],vt=it[Bt],f(bt,vt,Lt,ct),vt._matchGroup){for(var ir in vt._matchGroup)if(ir!==Tt){var pt=it[n.id2name(ir)];pt.autorange=vt.autorange,pt.range=vt.range.slice(),pt._input.range=vt.range.slice()}}}return!0}function Re(Me,Ne){var je=Ne?function(it){var mt=[],bt=!0;for(var vt in Ne){var Lt=n.getFromId(it,vt);if(mt.push(vt),(Lt.ticklabelposition||"").indexOf("inside")!==-1&&Lt._anchorAxis&&mt.push(Lt._anchorAxis._id),Lt._matchGroup)for(var ct in Lt._matchGroup)Ne[ct]||mt.push(ct)}return n.draw(it,mt,{skipTitle:bt})}:function(it){return n.draw(it,"redraw")};Me.push(u,A.doAutoRangeAndConstraints,je,A.drawData,A.finalDraw)}var be=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ae=/^[xyz]axis[0-9]*\.autorange$/,me=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Le(Me,Ne){var je=Me.layout,it=Me._fullLayout,mt=it._guiEditing,bt=Z(it._preGUI,mt),vt=Object.keys(Ne),Lt=n.list(Me),ct=S.extendDeepAll({},Ne),Tt={},Bt,ir,pt;for(ge(Ne),vt=Object.keys(Ne),ir=0;ir0&&typeof Vt.parts[hr]!="string";)hr--;var vr=Vt.parts[hr],Ye=Vt.parts[hr-1]+"."+vr,Ge=Vt.parts.slice(0,hr).join("."),Nt=x(Me.layout,Ge).get(),Ot=x(it,Ge).get(),Qt=Vt.get();if(Jt!==void 0){gt[kt]=Jt,st[kt]=vr==="reverse"?Jt:$(Qt);var tr=t.getLayoutValObject(it,Vt.parts);if(tr&&tr.impliedEdits&&Jt!==null)for(var fr in tr.impliedEdits)At(S.relativeAttr(kt,fr),tr.impliedEdits[fr]);if(["width","height"].indexOf(kt)!==-1)if(Jt){At("autosize",null);var rr=kt==="height"?"width":"height";At(rr,it[rr])}else it[kt]=Me._initialAutoSize[kt];else if(kt==="autosize")At("width",Jt?null:it.width),At("height",Jt?null:it.height);else if(Ye.match(be))Pt(Ye),x(it,Ge+"._inputRange").set(null);else if(Ye.match(Ae)){Pt(Ye),x(it,Ge+"._inputRange").set(null);var Ht=x(it,Ge).get();Ht._inputDomain&&(Ht._input.domain=Ht._inputDomain.slice())}else Ye.match(me)&&x(it,Ge+"._inputDomain").set(null);if(vr==="type"){It=Nt;var dr=Ot.type==="linear"&&Jt==="log",mr=Ot.type==="log"&&Jt==="linear";if(dr||mr){if(!It||!It.range)At(Ge+".autorange",!0);else if(Ot.autorange)dr&&(It.range=It.range[1]>It.range[0]?[1,2]:[2,1]);else{var xr=It.range[0],pr=It.range[1];dr?(xr<=0&&pr<=0&&At(Ge+".autorange",!0),xr<=0?xr=pr/1e6:pr<=0&&(pr=xr/1e6),At(Ge+".range[0]",Math.log(xr)/Math.LN10),At(Ge+".range[1]",Math.log(pr)/Math.LN10)):(At(Ge+".range[0]",Math.pow(10,xr)),At(Ge+".range[1]",Math.pow(10,pr)))}Array.isArray(it._subplots.polar)&&it._subplots.polar.length&&it[Vt.parts[0]]&&Vt.parts[1]==="radialaxis"&&delete it[Vt.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(Me,Ot,Jt,At),r.getComponentMethod("images","convertCoords")(Me,Ot,Jt,At)}else At(Ge+".autorange",!0),At(Ge+".range",null);x(it,Ge+"._inputRange").set(null)}else if(vr.match(y)){var Gr=x(it,kt).get(),Pr=(Jt||{}).type;(!Pr||Pr==="-")&&(Pr="linear"),r.getComponentMethod("annotations","convertCoords")(Me,Gr,Pr,At),r.getComponentMethod("images","convertCoords")(Me,Gr,Pr,At)}var Dr=d.containerArrayMatch(kt);if(Dr){Bt=Dr.array,ir=Dr.index;var cn=Dr.property,rn=tr||{editType:"calc"};ir!==""&&cn===""&&(d.isAddVal(Jt)?st[kt]=null:d.isRemoveVal(Jt)?st[kt]=(x(je,Bt).get()||[])[ir]:S.warn("unrecognized full object value",Ne)),_.update($t,rn),Tt[Bt]||(Tt[Bt]={});var Cn=Tt[Bt][ir];Cn||(Cn=Tt[Bt][ir]={}),Cn[cn]=Jt,delete Ne[kt]}else vr==="reverse"?(Nt.range?Nt.range.reverse():(At(Ge+".autorange",!0),Nt.range=[1,0]),Ot.autorange?$t.calc=!0:$t.plot=!0):(kt==="dragmode"&&(Jt===!1&&Qt!==!1||Jt!==!1&&Qt===!1)||it._has("scatter-like")&&it._has("regl")&&kt==="dragmode"&&(Jt==="lasso"||Jt==="select")&&!(Qt==="lasso"||Qt==="select")||it._has("gl2d")?$t.plot=!0:tr?_.update($t,tr):$t.calc=!0,Vt.set(Jt))}}for(Bt in Tt){var En=d.applyContainerArrayChanges(Me,bt(je,Bt),Tt[Bt],$t,bt);En||($t.plot=!0)}for(var Tr in Ct){It=n.getFromId(Me,Tr);var Cr=It&&It._constraintGroup;if(Cr){$t.calc=!0;for(var Wr in Cr)Ct[Wr]||(n.getFromId(Me,Wr)._constraintShrinkable=!0)}}(He(Me)||Ne.height||Ne.width)&&($t.plot=!0);var Ur=it.shapes;for(ir=0;ir1;)if(it.pop(),je=x(Ne,it.join(".")+".uirevision").get(),je!==void 0)return je;return Ne.uirevision}function $e(Me,Ne){for(var je=0;je=mt.length?mt[0]:mt[Tt]:mt}function Lt(Tt){return Array.isArray(bt)?Tt>=bt.length?bt[0]:bt[Tt]:bt}function ct(Tt,Bt){var ir=0;return function(){if(Tt&&++ir===Bt)return Tt()}}return new Promise(function(Tt,Bt){function ir(){if(it._frameQueue.length!==0){for(;it._frameQueue.length;){var vr=it._frameQueue.pop();vr.onInterrupt&&vr.onInterrupt()}Me.emit("plotly_animationinterrupted",[])}}function pt(vr){if(vr.length!==0){for(var Ye=0;Yeit._timeToNext&&Kt()};vr()}var $t=0;function gt(vr){return Array.isArray(mt)?$t>=mt.length?vr.transitionOpts=mt[$t]:vr.transitionOpts=mt[0]:vr.transitionOpts=mt,$t++,vr}var st,At,Ct=[],It=Ne==null,Pt=Array.isArray(Ne),kt=!It&&!Pt&&S.isPlainObject(Ne);if(kt)Ct.push({type:"object",data:gt(S.extendFlat({},Ne))});else if(It||["string","number"].indexOf(typeof Ne)!==-1)for(st=0;st0&&urur)&&hr.push(At);Ct=hr}}Ct.length>0?pt(Ct):(Me.emit("plotly_animated"),Tt())})}function We(Me,Ne,je){if(Me=S.getGraphDiv(Me),Ne==null)return Promise.resolve();if(!S.isPlotDiv(Me))throw new Error("This element is not a Plotly plot: "+Me+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var it,mt,bt,vt,Lt=Me._transitionData._frames,ct=Me._transitionData._frameHash;if(!Array.isArray(Ne))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+Ne);var Tt=Lt.length+Ne.length*2,Bt=[],ir={};for(it=Ne.length-1;it>=0;it--)if(S.isPlainObject(Ne[it])){var pt=Ne[it].name,Xt=(ct[pt]||ir[pt]||{}).name,Kt=Ne[it].name,or=ct[Xt]||ir[Xt];Xt&&Kt&&typeof Kt=="number"&&or&&EVt.index?-1:kt.index=0;it--){if(mt=Bt[it].frame,typeof mt.name=="number"&&S.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!mt.name)for(;ct[mt.name="frame "+Me._transitionData._counter++];);if(ct[mt.name]){for(bt=0;bt=0;je--)it=Ne[je],bt.push({type:"delete",index:it}),vt.unshift({type:"insert",index:it,value:mt[it]});var Lt=a.modifyFrames,ct=a.modifyFrames,Tt=[Me,vt],Bt=[Me,bt];return p&&p.add(Me,Lt,Tt,ct,Bt),a.modifyFrames(Me,bt)}function xe(Me){Me=S.getGraphDiv(Me);var Ne=Me._fullLayout||{},je=Me._fullData||[];return a.cleanPlot([],{},je,Ne),a.purge(Me),v.purge(Me),Ne._container&&Ne._container.remove(),delete Me._context,Me}function ye(Me){var Ne=Me._fullLayout,je=Me.getBoundingClientRect();if(!S.equalDomRects(je,Ne._lastBBox)){var it=Ne._invTransform=S.inverseTransformMatrix(S.getFullTransformMatrix(Me));Ne._invScaleX=Math.sqrt(it[0][0]*it[0][0]+it[0][1]*it[0][1]+it[0][2]*it[0][2]),Ne._invScaleY=Math.sqrt(it[1][0]*it[1][0]+it[1][1]*it[1][1]+it[1][2]*it[1][2]),Ne._lastBBox=je}}function Ee(Me){var Ne=g.select(Me),je=Me._fullLayout;if(je._calcInverseTransform=ye,je._calcInverseTransform(Me),je._container=Ne.selectAll(".plot-container").data([0]),je._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),je._paperdiv=je._container.selectAll(".svg-container").data([0]),je._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),je._glcontainer=je._paperdiv.selectAll(".gl-container").data([{}]),je._glcontainer.enter().append("div").classed("gl-container",!0),je._paperdiv.selectAll(".main-svg").remove(),je._paperdiv.select(".modebar-container").remove(),je._paper=je._paperdiv.insert("svg",":first-child").classed("main-svg",!0),je._toppaper=je._paperdiv.append("svg").classed("main-svg",!0),je._modebardiv=je._paperdiv.append("div"),delete je._modeBar,je._hoverpaper=je._paperdiv.append("svg").classed("main-svg",!0),!je._uid){var it={};g.selectAll("defs").each(function(){this.id&&(it[this.id.split("-")[1]]=1)}),je._uid=S.randstr(it)}je._paperdiv.selectAll(".main-svg").attr(b.svgAttrs),je._defs=je._paper.append("defs").attr("id","defs-"+je._uid),je._clips=je._defs.append("g").classed("clips",!0),je._topdefs=je._toppaper.append("defs").attr("id","topdefs-"+je._uid),je._topclips=je._topdefs.append("g").classed("clips",!0),je._bgLayer=je._paper.append("g").classed("bglayer",!0),je._draggers=je._paper.append("g").classed("draglayer",!0);var mt=je._paper.append("g").classed("layer-below",!0);je._imageLowerLayer=mt.append("g").classed("imagelayer",!0),je._shapeLowerLayer=mt.append("g").classed("shapelayer",!0),je._cartesianlayer=je._paper.append("g").classed("cartesianlayer",!0),je._polarlayer=je._paper.append("g").classed("polarlayer",!0),je._smithlayer=je._paper.append("g").classed("smithlayer",!0),je._ternarylayer=je._paper.append("g").classed("ternarylayer",!0),je._geolayer=je._paper.append("g").classed("geolayer",!0),je._funnelarealayer=je._paper.append("g").classed("funnelarealayer",!0),je._pielayer=je._paper.append("g").classed("pielayer",!0),je._iciclelayer=je._paper.append("g").classed("iciclelayer",!0),je._treemaplayer=je._paper.append("g").classed("treemaplayer",!0),je._sunburstlayer=je._paper.append("g").classed("sunburstlayer",!0),je._indicatorlayer=je._toppaper.append("g").classed("indicatorlayer",!0),je._glimages=je._paper.append("g").classed("glimages",!0);var bt=je._toppaper.append("g").classed("layer-above",!0);je._imageUpperLayer=bt.append("g").classed("imagelayer",!0),je._shapeUpperLayer=bt.append("g").classed("shapelayer",!0),je._selectionLayer=je._toppaper.append("g").classed("selectionlayer",!0),je._infolayer=je._toppaper.append("g").classed("infolayer",!0),je._menulayer=je._toppaper.append("g").classed("menulayer",!0),je._zoomlayer=je._toppaper.append("g").classed("zoomlayer",!0),je._hoverlayer=je._hoverpaper.append("g").classed("hoverlayer",!0),je._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Me.emit("plotly_framework")}U.animate=Je,U.addFrames=We,U.deleteFrames=Fe,U.addTraces=ee,U.deleteTraces=V,U.extendTraces=J,U.moveTraces=Q,U.prependTraces=X,U.newPlot=k,U._doPlot=s,U.purge=xe,U.react=xt,U.redraw=I,U.relayout=Te,U.restyle=oe,U.setPlotConfig=M,U.update=Ue,U._guiRelayout=ke(Te),U._guiRestyle=ke(oe),U._guiUpdate=ke(Ue),U._storeDirectGUIEdit=ne},20556:function(G){var U={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e={};function g(C,i){for(var S in C){var x=C[S];x.valType?i[S]=x.dflt:(i[S]||(i[S]={}),g(x,i[S]))}}g(U,e),G.exports={configAttributes:U,dfltConfig:e}},73060:function(G,U,e){var g=e(24040),C=e(3400),i=e(45464),S=e(64859),x=e(16672),v=e(85656),p=e(20556).configAttributes,r=e(67824),t=C.extendDeepAll,a=C.isPlainObject,n=C.isArrayOrTypedArray,f=C.nestedProperty,c=C.valObjectMeta,l="_isSubplotObj",m="_isLinkedToArray",h="_arrayAttrRegexps",b="_deprecated",u=[l,m,h,b];U.IS_SUBPLOT_OBJ=l,U.IS_LINKED_TO_ARRAY=m,U.DEPRECATED=b,U.UNDERSCORE_ATTRS=u,U.get=function(){var N={};g.allTypes.forEach(function(k){N[k]=A(k)});var I={};return Object.keys(g.transformsRegistry).forEach(function(k){I[k]=y(k)}),{defs:{valObjects:c,metaKeys:u.concat(["description","role","editType","impliedEdits"]),editType:{traces:r.traces,layout:r.layout},impliedEdits:{}},traces:N,layout:_(),transforms:I,frames:E(),animation:T(v),config:T(p)}},U.crawl=function(N,I,k,B){var O=k||0;B=B||"",Object.keys(N).forEach(function(H){var Y=N[H];if(u.indexOf(H)===-1){var j=(B?B+".":"")+H;I(Y,H,N,O,j),!U.isValObject(Y)&&a(Y)&&H!=="impliedEdits"&&U.crawl(Y,I,O+1,j)}})},U.isValObject=function(N){return N&&N.valType!==void 0},U.findArrayAttributes=function(N){var I=[],k=[],B=[],O,H;function Y(X,ee,V,Q){k=k.slice(0,Q).concat([ee]),B=B.slice(0,Q).concat([X&&X._isLinkedToArray]);var oe=X&&(X.valType==="data_array"||X.arrayOk===!0)&&!(k[Q-1]==="colorbar"&&(ee==="ticktext"||ee==="tickvals"));oe&&j(O,0,"")}function j(X,ee,V){var Q=X[k[ee]],oe=V+k[ee];if(ee===k.length-1)n(Q)&&I.push(H+oe);else if(B[ee]){if(Array.isArray(Q))for(var $=0;$=Y.length)return!1;O=(g.transformsRegistry[Y[j].type]||{}).attributes,H=O&&O[I[2]],B=3}else{var te=N._module;if(te||(te=(g.modules[N.type||i.type.dflt]||{})._module),!te)return!1;if(O=te.attributes,H=O&&O[k],!H){var ie=te.basePlotModule;ie&&ie.attributes&&(H=ie.attributes[k])}H||(H=i[k])}return d(H,I,B)},U.getLayoutValObject=function(N,I){var k=o(N,I[0]);return d(k,I,1)};function o(N,I){var k,B,O,H,Y=N._basePlotModules;if(Y){var j;for(k=0;k=H.length)return!1;if(N.dimensions===2){if(k++,I.length===k)return N;var Y=I[k];if(!w(Y))return!1;N=H[O][Y]}else N=H[O]}else N=H}}return N}function w(N){return N===Math.round(N)&&N>=0}function A(N){var I,k;I=g.modules[N]._module,k=I.basePlotModule;var B={};B.type=null;var O=t({},i),H=t({},I.attributes);U.crawl(H,function(te,ie,ue,J,X){f(O,X).set(void 0),te===void 0&&f(H,X).set(void 0)}),t(B,O),g.traceIs(N,"noOpacity")&&delete B.opacity,g.traceIs(N,"showLegend")||(delete B.showlegend,delete B.legendgroup),g.traceIs(N,"noHover")&&(delete B.hoverinfo,delete B.hoverlabel),I.selectPoints||delete B.selectedpoints,t(B,H),k.attributes&&t(B,k.attributes),B.type=N;var Y={meta:I.meta||{},categories:I.categories||{},animatable:!!I.animatable,type:N,attributes:T(B)};if(I.layoutAttributes){var j={};t(j,I.layoutAttributes),Y.layoutAttributes=T(j)}return I.animatable||U.crawl(Y,function(te){U.isValObject(te)&&"anim"in te&&delete te.anim}),Y}function _(){var N={},I,k;t(N,S);for(I in g.subplotsRegistry)if(k=g.subplotsRegistry[I],!!k.layoutAttributes)if(Array.isArray(k.attr))for(var B=0;B=a&&(t._input||{})._templateitemname;f&&(n=a);var c=r+"["+n+"]",l;function m(){l={},f&&(l[c]={},l[c][i]=f)}m();function h(d,w){l[d]=w}function b(d,w){f?g.nestedProperty(l[c],d).set(w):l[c+"."+d]=w}function u(){var d=l;return m(),d}function o(d,w){d&&b(d,w);var A=u();for(var _ in A)g.nestedProperty(p,_).set(A[_])}return{modifyBase:h,modifyItem:b,getUpdateObj:u,applyUpdate:o}}},39172:function(G,U,e){var g=e(33428),C=e(24040),i=e(7316),S=e(3400),x=e(72736),v=e(73696),p=e(76308),r=e(43616),t=e(81668),a=e(45460),n=e(54460),f=e(84284),c=e(71888),l=c.enforce,m=c.clean,h=e(19280).doAutoRange,b="start",u="middle",o="end";U.layoutStyles=function(k){return S.syncOrAsync([i.doAutoMargin,w],k)};function d(k,B,O){for(var H=0;H=k[1]||Y[1]<=k[0])&&j[0]B[0])return!0}return!1}function w(k){var B=k._fullLayout,O=B._size,H=O.p,Y=n.list(k,"",!0),j,te,ie,ue,J,X;if(B._paperdiv.style({width:k._context.responsive&&B.autosize&&!k._context._hasZeroWidth&&!k.layout.width?"100%":B.width+"px",height:k._context.responsive&&B.autosize&&!k._context._hasZeroHeight&&!k.layout.height?"100%":B.height+"px"}).selectAll(".main-svg").call(r.setSize,B.width,B.height),k._context.setBackground(k,B.paper_bgcolor),U.drawMainTitle(k),a.manage(k),!B._has("cartesian"))return i.previousPromises(k);function ee(xe,ye,Ee){var Me=xe._lw/2;if(xe._id.charAt(0)==="x"){if(ye){if(Ee==="top")return ye._offset-H-Me}else return O.t+O.h*(1-(xe.position||0))+Me%1;return ye._offset+ye._length+H+Me}if(ye){if(Ee==="right")return ye._offset+ye._length+H+Me}else return O.l+O.w*(xe.position||0)+Me%1;return ye._offset-H-Me}for(j=0;j0){L(k,j,J,ue),ie.attr({x:te,y:j,"text-anchor":H,dy:D(B.yanchor)}).call(x.positionText,te,j);var X=(B.text.match(x.BR_TAG_ALL)||[]).length;if(X){var ee=f.LINE_SPACING*X+f.MID_SHIFT;B.y===0&&(ee=-ee),ie.selectAll(".line").each(function(){var V=+this.getAttribute("dy").slice(0,-2)-ee+"em";this.setAttribute("dy",V)})}}}};function E(k,B,O,H,Y){var j=B.yref==="paper"?k._fullLayout._size.h:k._fullLayout.height,te=S.isTopAnchor(B)?H:H-Y,ie=O==="b"?j-te:te;return S.isTopAnchor(B)&&O==="t"||S.isBottomAnchor(B)&&O==="b"?!1:ie.5?"t":"b",te=k._fullLayout.margin[j],ie=0;return B.yref==="paper"?ie=O+B.pad.t+B.pad.b:B.yref==="container"&&(ie=T(j,H,Y,k._fullLayout.height,O)+B.pad.t+B.pad.b),ie>te?ie:0}function L(k,B,O,H){var Y="title.automargin",j=k._fullLayout.title,te=j.y>.5?"t":"b",ie={x:j.x,y:j.y,t:0,b:0},ue={};j.yref==="paper"&&E(k,j,te,B,H)?ie[te]=O:j.yref==="container"&&(ue[te]=O,k._fullLayout._reservedMargin[Y]=ue),i.allowAutoMargin(k,Y),i.autoMargin(k,Y,ie)}function M(k,B){var O=k.title,H=k._size,Y=0;switch(B===b?Y=O.pad.l:B===o&&(Y=-O.pad.r),O.xref){case"paper":return H.l+H.w*O.x+Y;case"container":default:return k.width*O.x+Y}}function z(k,B){var O=k.title,H=k._size,Y=0;if(B==="0em"||!B?Y=-O.pad.b:B===f.CAP_SHIFT+"em"&&(Y=O.pad.t),O.y==="auto")return H.t/2;switch(O.yref){case"paper":return H.t+H.h-H.h*O.y+Y;case"container":default:return k.height-k.height*O.y+Y}}function D(k){return k==="top"?f.CAP_SHIFT+.3+"em":k==="bottom"?"-0.3em":f.MID_SHIFT+"em"}function N(k){var B=k.title,O=u;return S.isRightAnchor(B)?O=o:S.isLeftAnchor(B)&&(O=b),O}function I(k){var B=k.title,O="0em";return S.isTopAnchor(B)?O=f.CAP_SHIFT+"em":S.isMiddleAnchor(B)&&(O=f.MID_SHIFT+"em"),O}U.doTraceStyle=function(k){var B=k.calcdata,O=[],H;for(H=0;HI?A.push({code:"unused",traceType:M,templateCount:N,dataCount:I}):I>N&&A.push({code:"reused",traceType:M,templateCount:N,dataCount:I})}}function k(B,O){for(var H in B)if(H.charAt(0)!=="_"){var Y=B[H],j=c(B,H,O);C(Y)?(Array.isArray(B)&&Y._template===!1&&Y.templateitemname&&A.push({code:"missing",path:j,templateitemname:Y.templateitemname}),k(Y,j)):Array.isArray(Y)&&l(Y)&&k(Y,j)}}if(k({data:y,layout:_},""),A.length)return A.map(m)};function l(h){for(var b=0;b1&&A.push(f("object","layout"))),C.supplyDefaults(_);for(var T=_._fullData,s=y.length,L=0;LM.length&&w.push(f("unused",A,s.concat(M.length)));var B=M.length,O=Array.isArray(k);O&&(B=Math.min(B,k.length));var H,Y,j,te,ie;if(z.dimensions===2)for(Y=0;YM[Y].length&&w.push(f("unused",A,s.concat(Y,M[Y].length)));var ue=M[Y].length;for(H=0;H<(O?Math.min(ue,k[Y].length):ue);H++)j=O?k[Y][H]:k,te=L[Y][H],ie=M[Y][H],g.validate(te,j)?ie!==te&&ie!==+te&&w.push(f("dynamic",A,s.concat(Y,H),te,ie)):w.push(f("value",A,s.concat(Y,H),te))}else w.push(f("array",A,s.concat(Y),L[Y]));else for(Y=0;Y0&&Math.round(m)===m)l=m;else return{vals:n}}for(var h=t.calendar,b=f==="start",u=f==="end",o=r[a+"period0"],d=i(o,h)||0,w=[],A=[],_=[],y=n.length,E=0;ET;)M=S(M,-l,h);for(;M<=T;)M=S(M,l,h);L=S(M,-l,h)}else{for(s=Math.round((T-d)/c),M=d+s*c;M>T;)M-=c;for(;M<=T;)M+=c;L=M-c}w[E]=b?L:u?M:(L+M)/2,A[E]=L,_[E]=M}return{vals:w,starts:A,ends:_}}},26720:function(G){G.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(G,U,e){var g=e(33428),C=e(38248),i=e(3400),S=e(39032).FP_SAFE,x=e(24040),v=e(43616),p=e(79811),r=p.getFromId,t=p.isLinked;G.exports={applyAutorangeOptions:s,getAutoRange:a,makePadFn:f,doAutoRange:h,findExtremes:b,concatExtremes:m};function a(L,M){var z,D,N=[],I=L._fullLayout,k=f(I,M,0),B=f(I,M,1),O=m(L,M),H=O.min,Y=O.max;if(H.length===0||Y.length===0)return i.simpleMap(M.range,M.r2l);var j=H[0].val,te=Y[0].val;for(z=1;z0&&(ge=Q-k(Z)-B(se),ge>oe?Te/ge>$&&(ne=Z,ce=se,$=Te/ge):Te/Q>$&&(ne={val:Z.val,nopad:1},ce={val:se.val,nopad:1},$=Te/Q));function we(Le,He){return Math.max(Le,B(He))}if(j===te){var Re=j-1,be=j+1;if(ee)if(j===0)N=[0,1];else{var Ae=(j>0?Y:H).reduce(we,0),me=j/(1-Math.min(.5,Ae/Q));N=j>0?[0,me]:[me,0]}else V?N=[Math.max(0,Re),Math.max(1,be)]:N=[Re,be]}else ee?(ne.val>=0&&(ne={val:0,nopad:1}),ce.val<=0&&(ce={val:0,nopad:1})):V&&(ne.val-$*k(ne)<0&&(ne={val:0,nopad:1}),ce.val<=0&&(ce={val:1,nopad:1})),$=(ce.val-ne.val-n(M,Z.val,se.val))/(Q-k(ne)-B(ce)),N=[ne.val-$*k(ne),ce.val+$*B(ce)];return N=s(N,M),M.limitRange&&M.limitRange(),ue&&N.reverse(),i.simpleMap(N,M.l2r||Number)}function n(L,M,z){var D=0;if(L.rangebreaks)for(var N=L.locateBreaks(M,z),I=0;I0?z.ppadplus:z.ppadminus)||z.ppad||0),Z=oe((L._m>0?z.ppadminus:z.ppadplus)||z.ppad||0),se=oe(z.vpadplus||z.vpad),ne=oe(z.vpadminus||z.vpad);if(!H){if(V=1/0,Q=-1/0,O)for(j=0;j0&&(V=te),te>Q&&te-S&&(V=te),te>Q&&te=Te;j--)ge(j);return{min:D,max:N,opts:z}}function u(L,M,z,D){d(L,M,z,D,A)}function o(L,M,z,D){d(L,M,z,D,_)}function d(L,M,z,D,N){for(var I=D.tozero,k=D.extrapad,B=!0,O=0;O=z&&(H.extrapad||!k)){B=!1;break}else N(M,H.val)&&H.pad<=z&&(k||!H.extrapad)&&(L.splice(O,1),O--)}if(B){var Y=I&&M===0;L.push({val:M,pad:Y?0:z,extrapad:Y?!1:k})}}function w(L){return C(L)&&Math.abs(L)=M}function y(L,M){var z=M.autorangeoptions;return z&&z.minallowed!==void 0&&T(M,z.minallowed,z.maxallowed)?z.minallowed:z&&z.clipmin!==void 0&&T(M,z.clipmin,z.clipmax)?Math.max(L,M.d2l(z.clipmin)):L}function E(L,M){var z=M.autorangeoptions;return z&&z.maxallowed!==void 0&&T(M,z.minallowed,z.maxallowed)?z.maxallowed:z&&z.clipmax!==void 0&&T(M,z.clipmin,z.clipmax)?Math.min(L,M.d2l(z.clipmax)):L}function T(L,M,z){return M!==void 0&&z!==void 0?(M=L.d2l(M),z=L.d2l(z),M=O&&(I=O,z=O),k<=O&&(k=O,D=O)}}return z=y(z,M),D=E(D,M),[z,D]}},76808:function(G){G.exports=function(e,g,C){var i,S;if(C){var x=g==="reversed"||g==="min reversed"||g==="max reversed";i=C[x?1:0],S=C[x?0:1]}var v=e("autorangeoptions.minallowed",S===null?i:void 0),p=e("autorangeoptions.maxallowed",i===null?S:void 0);v===void 0&&e("autorangeoptions.clipmin"),p===void 0&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}},54460:function(G,U,e){var g=e(33428),C=e(38248),i=e(7316),S=e(24040),x=e(3400),v=x.strTranslate,p=e(72736),r=e(81668),t=e(76308),a=e(43616),n=e(94724),f=e(98728),c=e(39032),l=c.ONEMAXYEAR,m=c.ONEAVGYEAR,h=c.ONEMINYEAR,b=c.ONEMAXQUARTER,u=c.ONEAVGQUARTER,o=c.ONEMINQUARTER,d=c.ONEMAXMONTH,w=c.ONEAVGMONTH,A=c.ONEMINMONTH,_=c.ONEWEEK,y=c.ONEDAY,E=y/2,T=c.ONEHOUR,s=c.ONEMIN,L=c.ONESEC,M=c.MINUS_SIGN,z=c.BADNUM,D={K:"zeroline"},N={K:"gridline",L:"path"},I={K:"minor-gridline",L:"path"},k={K:"tick",L:"path"},B={K:"tick",L:"text"},O={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=e(84284),Y=H.MID_SHIFT,j=H.CAP_SHIFT,te=H.LINE_SPACING,ie=H.OPPOSITE_SIDE,ue=3,J=G.exports={};J.setConvert=e(78344);var X=e(52976),ee=e(79811),V=ee.idSort,Q=ee.isLinked;J.id2name=ee.id2name,J.name2id=ee.name2id,J.cleanId=ee.cleanId,J.list=ee.list,J.listIds=ee.listIds,J.getFromId=ee.getFromId,J.getFromTrace=ee.getFromTrace;var oe=e(19280);J.getAutoRange=oe.getAutoRange,J.findExtremes=oe.findExtremes;var $=1e-4;function Z(Ye){var Ge=(Ye[1]-Ye[0])*$;return[Ye[0]-Ge,Ye[1]+Ge]}J.coerceRef=function(Ye,Ge,Nt,Ot,Qt,tr){var fr=Ot.charAt(Ot.length-1),rr=Nt._fullLayout._subplots[fr+"axis"],Ht=Ot+"ref",dr={};return Qt||(Qt=rr[0]||(typeof tr=="string"?tr:tr[0])),tr||(tr=Qt),rr=rr.concat(rr.map(function(mr){return mr+" domain"})),dr[Ht]={valType:"enumerated",values:rr.concat(tr?typeof tr=="string"?[tr]:tr:[]),dflt:Qt},x.coerce(Ye,Ge,dr,Ht)},J.getRefType=function(Ye){return Ye===void 0?Ye:Ye==="paper"?"paper":Ye==="pixel"?"pixel":/( domain)$/.test(Ye)?"domain":"range"},J.coercePosition=function(Ye,Ge,Nt,Ot,Qt,tr){var fr,rr,Ht=J.getRefType(Ot);if(Ht!=="range")fr=x.ensureNumber,rr=Nt(Qt,tr);else{var dr=J.getFromId(Ge,Ot);tr=dr.fraction2r(tr),rr=Nt(Qt,tr),fr=dr.cleanPos}Ye[Qt]=fr(rr)},J.cleanPosition=function(Ye,Ge,Nt){var Ot=Nt==="paper"||Nt==="pixel"?x.ensureNumber:J.getFromId(Ge,Nt).cleanPos;return Ot(Ye)},J.redrawComponents=function(Ye,Ge){Ge=Ge||J.listIds(Ye);var Nt=Ye._fullLayout;function Ot(Qt,tr,fr,rr){for(var Ht=S.getComponentMethod(Qt,tr),dr={},mr=0;mr2e-6||((Nt-Ye._forceTick0)/Ye._minDtick%1+1.000001)%1>2e-6)&&(Ye._minDtick=0))},J.saveRangeInitial=function(Ye,Ge){for(var Nt=J.list(Ye,"",!0),Ot=!1,Qt=0;Qtxr*.3||dr(Ot)||dr(Qt))){var pr=Nt.dtick/2;Ye+=Ye+prfr){var rr=Number(Nt.substr(1));tr.exactYears>fr&&rr%12===0?Ye=J.tickIncrement(Ye,"M6","reverse")+y*1.5:tr.exactMonths>fr?Ye=J.tickIncrement(Ye,"M1","reverse")+y*15.5:Ye-=E;var Ht=J.tickIncrement(Ye,Nt);if(Ht<=Ot)return Ht}return Ye}J.prepMinorTicks=function(Ye,Ge,Nt){if(!Ge.minor.dtick){delete Ye.dtick;var Ot=Ge.dtick&&C(Ge._tmin),Qt;if(Ot){var tr=J.tickIncrement(Ge._tmin,Ge.dtick,!0);Qt=[Ge._tmin,tr*.99+Ge._tmin*.01]}else{var fr=x.simpleMap(Ge.range,Ge.r2l);Qt=[fr[0],.8*fr[0]+.2*fr[1]]}if(Ye.range=x.simpleMap(Qt,Ge.l2r),Ye._isMinor=!0,J.prepTicks(Ye,Nt),Ot){var rr=C(Ge.dtick),Ht=C(Ye.dtick),dr=rr?Ge.dtick:+Ge.dtick.substring(1),mr=Ht?Ye.dtick:+Ye.dtick.substring(1);rr&&Ht?we(dr,mr)?dr===2*_&&mr===2*y&&(Ye.dtick=_):dr===2*_&&mr===3*y?Ye.dtick=_:dr===_&&!(Ge._input.minor||{}).nticks?Ye.dtick=y:Re(dr/mr,2.5)?Ye.dtick=dr/2:Ye.dtick=dr:String(Ge.dtick).charAt(0)==="M"?Ht?Ye.dtick="M1":we(dr,mr)?dr>=12&&mr===2&&(Ye.dtick="M3"):Ye.dtick=Ge.dtick:String(Ye.dtick).charAt(0)==="L"?String(Ge.dtick).charAt(0)==="L"?we(dr,mr)||(Ye.dtick=Re(dr/mr,2.5)?Ge.dtick/2:Ge.dtick):Ye.dtick="D1":Ye.dtick==="D2"&&+Ge.dtick>1&&(Ye.dtick=1)}Ye.range=Ge.range}Ge.minor._tick0Init===void 0&&(Ye.tick0=Ge.tick0)};function we(Ye,Ge){return Math.abs((Ye/Ge+.5)%1-.5)<.001}function Re(Ye,Ge){return Math.abs(Ye/Ge-1)<.001}J.prepTicks=function(Ye,Ge){var Nt=x.simpleMap(Ye.range,Ye.r2l,void 0,void 0,Ge);if(Ye.tickmode==="auto"||!Ye.dtick){var Ot=Ye.nticks,Qt;Ot||(Ye.type==="category"||Ye.type==="multicategory"?(Qt=Ye.tickfont?x.bigFont(Ye.tickfont.size||12):15,Ot=Ye._length/Qt):(Qt=Ye._id.charAt(0)==="y"?40:80,Ot=x.constrain(Ye._length/Qt,4,9)+1),Ye._name==="radialaxis"&&(Ot*=2)),Ye.minor&&Ye.minor.tickmode!=="array"||Ye.tickmode==="array"&&(Ot*=100),Ye._roughDTick=Math.abs(Nt[1]-Nt[0])/Ot,J.autoTicks(Ye,Ye._roughDTick),Ye._minDtick>0&&Ye.dtick0?(tr=Ot-1,fr=Ot):(tr=Ot,fr=Ot);var rr=Ye[tr].value,Ht=Ye[fr].value,dr=Math.abs(Ht-rr),mr=Nt||dr,xr=0;mr>=h?dr>=h&&dr<=l?xr=dr:xr=m:Nt===u&&mr>=o?dr>=o&&dr<=b?xr=dr:xr=u:mr>=A?dr>=A&&dr<=d?xr=dr:xr=w:Nt===_&&mr>=_?xr=_:mr>=y?xr=y:Nt===E&&mr>=E?xr=E:Nt===T&&mr>=T&&(xr=T);var pr;xr>=dr&&(xr=dr,pr=!0);var Gr=Qt+xr;if(Ge.rangebreaks&&xr>0){for(var Pr=84,Dr=0,cn=0;cn_&&(xr=dr)}(xr>0||Ot===0)&&(Ye[Ot].periodX=Qt+xr/2)}}J.calcTicks=function(Ge,Nt){for(var Ot=Ge.type,Qt=Ge.calendar,tr=Ge.ticklabelstep,fr=Ge.ticklabelmode==="period",rr=x.simpleMap(Ge.range,Ge.r2l,void 0,void 0,Nt),Ht=rr[1]=(cn?0:1);rn--){var Cn=!rn;rn?(Ge._dtickInit=Ge.dtick,Ge._tick0Init=Ge.tick0):(Ge.minor._dtickInit=Ge.minor.dtick,Ge.minor._tick0Init=Ge.minor.tick0);var En=rn?Ge:x.extendFlat({},Ge,Ge.minor);if(Cn?J.prepMinorTicks(En,Ge,Nt):J.prepTicks(En,Nt),En.tickmode==="array"){rn?(Pr=[],pr=Ue(Ge,!Cn)):(Dr=[],Gr=Ue(Ge,!Cn));continue}if(En.tickmode==="sync"){Pr=[],pr=He(Ge);continue}var Tr=Z(rr),Cr=Tr[0],Wr=Tr[1],Ur=C(En.dtick),an=Ot==="log"&&!(Ur||En.dtick.charAt(0)==="L"),pn=J.tickFirst(En,Nt);if(rn){if(Ge._tmin=pn,pn=Wr:_n<=Wr;_n=J.tickIncrement(_n,ci,Ht,Qt)){if(rn&&kn++,En.rangebreaks&&!Ht){if(_n=mr)break}if(Pr.length>xr||_n===gn)break;gn=_n;var di={value:_n};rn?(an&&_n!==(_n|0)&&(di.simpleLabel=!0),tr>1&&kn%tr&&(di.skipLabel=!0),Pr.push(di)):(di.minor=!0,Dr.push(di))}}if(cn){var li=Ge.minor.ticks==="inside"&&Ge.ticks==="outside"||Ge.minor.ticks==="outside"&&Ge.ticks==="inside";if(!li){for(var ri=Pr.map(function(hn){return hn.value}),wr=[],nn=0;nn-1;An--){if(Pr[An].drop){Pr.splice(An,1);continue}Pr[An].value=Vt(Pr[An].value,Ge);var Di=Ge.c2p(Pr[An].value);(Bn?gi>Di-Jn:gimr||Ormr&&(Ar.periodX=mr),OrQt&&prm)Ge/=m,Ot=Qt(10),Ye.dtick="M"+12*ht(Ge,Ot,ke);else if(tr>w)Ge/=w,Ye.dtick="M"+ht(Ge,1,Ve);else if(tr>y){if(Ye.dtick=ht(Ge,y,Ye._hasDayOfWeekBreaks?[1,2,7,14]:rt),!Nt){var fr=J.getTickFormat(Ye),rr=Ye.ticklabelmode==="period";rr&&(Ye._rawTick0=Ye.tick0),/%[uVW]/.test(fr)?Ye.tick0=x.dateTick0(Ye.calendar,2):Ye.tick0=x.dateTick0(Ye.calendar,1),rr&&(Ye._dowTick0=Ye.tick0)}}else tr>T?Ye.dtick=ht(Ge,T,Ve):tr>s?Ye.dtick=ht(Ge,s,Ie):tr>L?Ye.dtick=ht(Ge,L,Ie):(Ot=Qt(10),Ye.dtick=ht(Ge,Ot,ke))}else if(Ye.type==="log"){Ye.tick0=0;var Ht=x.simpleMap(Ye.range,Ye.r2l);if(Ye._isMinor&&(Ge*=1.5),Ge>.7)Ye.dtick=Math.ceil(Ge);else if(Math.abs(Ht[1]-Ht[0])<1){var dr=1.5*Math.abs((Ht[1]-Ht[0])/Ge);Ge=Math.abs(Math.pow(10,Ht[1])-Math.pow(10,Ht[0]))/dr,Ot=Qt(10),Ye.dtick="L"+ht(Ge,Ot,ke)}else Ye.dtick=Ge>.3?"D2":"D1"}else Ye.type==="category"||Ye.type==="multicategory"?(Ye.tick0=0,Ye.dtick=Math.ceil(Math.max(Ge,1))):kt(Ye)?(Ye.tick0=0,Ot=1,Ye.dtick=ht(Ge,Ot,lt)):(Ye.tick0=0,Ot=Qt(10),Ye.dtick=ht(Ge,Ot,ke));if(Ye.dtick===0&&(Ye.dtick=1),!C(Ye.dtick)&&typeof Ye.dtick!="string"){var mr=Ye.dtick;throw Ye.dtick=1,"ax.dtick error: "+String(mr)}};function dt(Ye){var Ge=Ye.dtick;if(Ye._tickexponent=0,!C(Ge)&&typeof Ge!="string"&&(Ge=1),(Ye.type==="category"||Ye.type==="multicategory")&&(Ye._tickround=null),Ye.type==="date"){var Nt=Ye.r2l(Ye.tick0),Ot=Ye.l2r(Nt).replace(/(^-|i)/g,""),Qt=Ot.length;if(String(Ge).charAt(0)==="M")Qt>10||Ot.substr(5)!=="01-01"?Ye._tickround="d":Ye._tickround=+Ge.substr(1)%12===0?"y":"m";else if(Ge>=y&&Qt<=10||Ge>=y*15)Ye._tickround="d";else if(Ge>=s&&Qt<=16||Ge>=T)Ye._tickround="M";else if(Ge>=L&&Qt<=19||Ge>=s)Ye._tickround="S";else{var tr=Ye.l2r(Nt+Ge).replace(/^-/,"").length;Ye._tickround=Math.max(Qt,tr)-20,Ye._tickround<0&&(Ye._tickround=4)}}else if(C(Ge)||Ge.charAt(0)==="L"){var fr=Ye.range.map(Ye.r2d||Number);C(Ge)||(Ge=Number(Ge.substr(1))),Ye._tickround=2-Math.floor(Math.log(Ge)/Math.LN10+.01);var rr=Math.max(Math.abs(fr[0]),Math.abs(fr[1])),Ht=Math.floor(Math.log(rr)/Math.LN10+.01),dr=Ye.minexponent===void 0?3:Ye.minexponent;Math.abs(Ht)>dr&&(ye(Ye.exponentformat)&&!Ee(Ht)?Ye._tickexponent=3*Math.round((Ht-1)/3):Ye._tickexponent=Ht)}else Ye._tickround=null}J.tickIncrement=function(Ye,Ge,Nt,Ot){var Qt=Nt?-1:1;if(C(Ge))return x.increment(Ye,Qt*Ge);var tr=Ge.charAt(0),fr=Qt*Number(Ge.substr(1));if(tr==="M")return x.incrementMonth(Ye,fr,Ot);if(tr==="L")return Math.log(Math.pow(10,Ye)+fr)/Math.LN10;if(tr==="D"){var rr=Ge==="D2"?$e:Ke,Ht=Ye+Qt*.01,dr=x.roundUp(x.mod(Ht,1),rr,Nt);return Math.floor(Ht)+Math.log(g.round(Math.pow(10,dr),1))/Math.LN10}throw"unrecognized dtick "+String(Ge)},J.tickFirst=function(Ye,Ge){var Nt=Ye.r2l||Number,Ot=x.simpleMap(Ye.range,Nt,void 0,void 0,Ge),Qt=Ot[1]=0&&rn<=Ye._length?cn:null};if(tr&&x.isArrayOrTypedArray(Ye.ticktext)){var xr=x.simpleMap(Ye.range,Ye.r2l),pr=(Math.abs(xr[1]-xr[0])-(Ye._lBreaks||0))/1e4;for(dr=0;dr"+rr;else{var dr=Jt(Ye),mr=Ye._trueSide||Ye.side;(!dr&&mr==="top"||dr&&mr==="bottom")&&(fr+="
    ")}Ge.text=fr}function nt(Ye,Ge,Nt,Ot,Qt){var tr=Ye.dtick,fr=Ge.x,rr=Ye.tickformat,Ht=typeof tr=="string"&&tr.charAt(0);if(Qt==="never"&&(Qt=""),Ot&&Ht!=="L"&&(tr="L3",Ht="L"),rr||Ht==="L")Ge.text=Me(Math.pow(10,fr),Ye,Qt,Ot);else if(C(tr)||Ht==="D"&&x.mod(fr+.01,1)<.1){var dr=Math.round(fr),mr=Math.abs(dr),xr=Ye.exponentformat;xr==="power"||ye(xr)&&Ee(dr)?(dr===0?Ge.text=1:dr===1?Ge.text="10":Ge.text="10"+(dr>1?"":M)+mr+"",Ge.fontSize*=1.25):(xr==="e"||xr==="E")&&mr>2?Ge.text="1"+xr+(dr>0?"+":M)+mr:(Ge.text=Me(Math.pow(10,fr),Ye,"","fakehover"),tr==="D1"&&Ye._id.charAt(0)==="y"&&(Ge.dy-=Ge.fontSize/6))}else if(Ht==="D")Ge.text=String(Math.round(Math.pow(10,x.mod(fr,1)))),Ge.fontSize*=.75;else throw"unrecognized dtick "+String(tr);if(Ye.dtick==="D1"){var pr=String(Ge.text).charAt(0);(pr==="0"||pr==="1")&&(Ye._id.charAt(0)==="y"?Ge.dx-=Ge.fontSize/4:(Ge.dy+=Ge.fontSize/2,Ge.dx+=(Ye.range[1]>Ye.range[0]?1:-1)*Ge.fontSize*(fr<0?.5:.25)))}}function ze(Ye,Ge){var Nt=Ye._categories[Math.round(Ge.x)];Nt===void 0&&(Nt=""),Ge.text=String(Nt)}function Xe(Ye,Ge,Nt){var Ot=Math.round(Ge.x),Qt=Ye._categories[Ot]||[],tr=Qt[1]===void 0?"":String(Qt[1]),fr=Qt[0]===void 0?"":String(Qt[0]);Nt?Ge.text=fr+" - "+tr:(Ge.text=tr,Ge.text2=fr)}function Je(Ye,Ge,Nt,Ot,Qt){Qt==="never"?Qt="":Ye.showexponent==="all"&&Math.abs(Ge.x/Ye.dtick)<1e-6&&(Qt="hide"),Ge.text=Me(Ge.x,Ye,Qt,Ot)}function We(Ye,Ge,Nt,Ot,Qt){if(Ye.thetaunit==="radians"&&!Nt){var tr=Ge.x/180;if(tr===0)Ge.text="0";else{var fr=Fe(tr);if(fr[1]>=100)Ge.text=Me(x.deg2rad(Ge.x),Ye,Qt,Ot);else{var rr=Ge.x<0;fr[1]===1?fr[0]===1?Ge.text="π":Ge.text=fr[0]+"π":Ge.text=["",fr[0],"","⁄","",fr[1],"","π"].join(""),rr&&(Ge.text=M+Ge.text)}}}else Ge.text=Me(Ge.x,Ye,Qt,Ot)}function Fe(Ye){function Ge(rr,Ht){return Math.abs(rr-Ht)<=1e-6}function Nt(rr,Ht){return Ge(Ht,0)?rr:Nt(Ht,rr%Ht)}function Ot(rr){for(var Ht=1;!Ge(Math.round(rr*Ht)/Ht,rr);)Ht*=10;return Ht}var Qt=Ot(Ye),tr=Ye*Qt,fr=Math.abs(Nt(tr,Qt));return[Math.round(tr/fr),Math.round(Qt/fr)]}var xe=["f","p","n","μ","m","","k","M","G","T"];function ye(Ye){return Ye==="SI"||Ye==="B"}function Ee(Ye){return Ye>14||Ye<-15}function Me(Ye,Ge,Nt,Ot){var Qt=Ye<0,tr=Ge._tickround,fr=Nt||Ge.exponentformat||"B",rr=Ge._tickexponent,Ht=J.getTickFormat(Ge),dr=Ge.separatethousands;if(Ot){var mr={exponentformat:fr,minexponent:Ge.minexponent,dtick:Ge.showexponent==="none"?Ge.dtick:C(Ye)&&Math.abs(Ye)||1,range:Ge.showexponent==="none"?Ge.range.map(Ge.r2d):[0,Ye||1]};dt(mr),tr=(Number(mr._tickround)||0)+4,rr=mr._tickexponent,Ge.hoverformat&&(Ht=Ge.hoverformat)}if(Ht)return Ge._numFormat(Ht)(Ye).replace(/-/g,M);var xr=Math.pow(10,-tr)/2;if(fr==="none"&&(rr=0),Ye=Math.abs(Ye),Ye"+Pr+"":fr==="B"&&rr===9?Ye+="B":ye(fr)&&(Ye+=xe[rr/3+5])}return Qt?M+Ye:Ye}J.getTickFormat=function(Ye){var Ge;function Nt(Ht){return typeof Ht!="string"?Ht:Number(Ht.replace("M",""))*w}function Ot(Ht,dr){var mr=["L","D"];if(typeof Ht==typeof dr){if(typeof Ht=="number")return Ht-dr;var xr=mr.indexOf(Ht.charAt(0)),pr=mr.indexOf(dr.charAt(0));return xr===pr?Number(Ht.replace(/(L|D)/g,""))-Number(dr.replace(/(L|D)/g,"")):xr-pr}else return typeof Ht=="number"?1:-1}function Qt(Ht,dr,mr){var xr=mr||function(Pr){return Pr},pr=dr[0],Gr=dr[1];return(!pr&&typeof pr!="number"||xr(pr)<=xr(Ht))&&(!Gr&&typeof Gr!="number"||xr(Gr)>=xr(Ht))}function tr(Ht,dr){var mr=dr[0]===null,xr=dr[1]===null,pr=Ot(Ht,dr[0])>=0,Gr=Ot(Ht,dr[1])<=0;return(mr||pr)&&(xr||Gr)}var fr,rr;if(Ye.tickformatstops&&Ye.tickformatstops.length>0)switch(Ye.type){case"date":case"linear":{for(Ge=0;Ge=0&&Qt.unshift(Qt.splice(mr,1).shift())}});var rr={false:{left:0,right:0}};return x.syncOrAsync(Qt.map(function(Ht){return function(){if(Ht){var dr=J.getFromId(Ye,Ht);Nt||(Nt={}),Nt.axShifts=rr,Nt.overlayingShiftedAx=fr;var mr=J.drawOne(Ye,dr,Nt);return dr._shiftPusher&&hr(dr,dr._fullDepth||0,rr,!0),dr._r=dr.range.slice(),dr._rl=x.simpleMap(dr._r,dr.r2l),mr}}}))},J.drawOne=function(Ye,Ge,Nt){Nt=Nt||{};var Ot=Nt.axShifts||{},Qt=Nt.overlayingShiftedAx||[],tr,fr,rr;Ge.setScale();var Ht=Ye._fullLayout,dr=Ge._id,mr=dr.charAt(0),xr=J.counterLetter(dr),pr=Ht._plots[Ge._mainSubplot];if(!pr)return;if(Ge._shiftPusher=Ge.autoshift||Qt.indexOf(Ge._id)!==-1||Qt.indexOf(Ge.overlaying)!==-1,Ge._shiftPusher&Ge.anchor==="free"){var Gr=Ge.linewidth/2||0;Ge.ticks==="inside"&&(Gr+=Ge.ticklen),hr(Ge,Gr,Ot,!0),hr(Ge,Ge.shift||0,Ot,!1)}(Nt.skipTitle!==!0||Ge._shift===void 0)&&(Ge._shift=vr(Ge,Ot));var Pr=pr[mr+"axislayer"],Dr=Ge._mainLinePosition,cn=Dr+=Ge._shift,rn=Ge._mainMirrorPosition,Cn=Ge._vals=J.calcTicks(Ge),En=[Ge.mirror,cn,rn].join("_");for(tr=0;tr0?Pn.bottom-wn:0,Ln))));var ai=0,pi=0;if(Ge._shiftPusher&&(ai=Math.max(Ln,Pn.height>0?Hr==="l"?wn-Pn.left:Pn.right-wn:0),Ge.title.text!==Ht._dfltTitle[mr]&&(pi=(Ge._titleStandoff||0)+(Ge._titleScoot||0),Hr==="l"&&(pi+=Bt(Ge))),Ge._fullDepth=Math.max(ai,pi)),Ge.automargin){Un={x:0,y:0,r:0,l:0,t:0,b:0};var Ci=[0,1],pa=typeof Ge._shift=="number"?Ge._shift:0;if(mr==="x"){if(Hr==="b"?Un[Hr]=Ge._depth:(Un[Hr]=Ge._depth=Math.max(Pn.width>0?wn-Pn.top:0,Ln),Ci.reverse()),Pn.width>0){var ta=Pn.right-(Ge._offset+Ge._length);ta>0&&(Un.xr=1,Un.r=ta);var Eo=Ge._offset-Pn.left;Eo>0&&(Un.xl=0,Un.l=Eo)}}else if(Hr==="l"?(Ge._depth=Math.max(Pn.height>0?wn-Pn.left:0,Ln),Un[Hr]=Ge._depth-pa):(Ge._depth=Math.max(Pn.height>0?Pn.right-wn:0,Ln),Un[Hr]=Ge._depth+pa,Ci.reverse()),Pn.height>0){var xo=Pn.bottom-(Ge._offset+Ge._length);xo>0&&(Un.yb=0,Un.b=xo);var Qa=Ge._offset-Pn.top;Qa>0&&(Un.yt=1,Un.t=Qa)}Un[xr]=Ge.anchor==="free"?Ge.position:Ge._anchorAxis.domain[Ci[0]],Ge.title.text!==Ht._dfltTitle[mr]&&(Un[Hr]+=Bt(Ge)+(Ge.title.standoff||0)),Ge.mirror&&Ge.anchor!=="free"&&(On={x:0,y:0,r:0,l:0,t:0,b:0},On[Qr]=Ge.linewidth,Ge.mirror&&Ge.mirror!==!0&&(On[Qr]+=Ln),Ge.mirror===!0||Ge.mirror==="ticks"?On[xr]=Ge._anchorAxis.domain[Ci[1]]:(Ge.mirror==="all"||Ge.mirror==="allticks")&&(On[xr]=[Ge._counterDomainMin,Ge._counterDomainMax][Ci[1]]))}Zr&&(mi=S.getComponentMethod("rangeslider","autoMarginOpts")(Ye,Ge)),typeof Ge.automargin=="string"&&(Ne(Un,Ge.automargin),Ne(On,Ge.automargin)),i.autoMargin(Ye,$t(Ge),Un),i.autoMargin(Ye,gt(Ge),On),i.autoMargin(Ye,st(Ge),mi)}),x.syncOrAsync(sn)}};function Ne(Ye,Ge){if(Ye){var Nt=Object.keys(O).reduce(function(Ot,Qt){return Ge.indexOf(Qt)!==-1&&O[Qt].forEach(function(tr){Ot[tr]=1}),Ot},{});Object.keys(Ye).forEach(function(Ot){Nt[Ot]||(Ot.length===1?Ye[Ot]=0:delete Ye[Ot])})}}function je(Ye,Ge){var Nt=[],Ot,Qt=function(tr,fr){var rr=tr.xbnd[fr];rr!==null&&Nt.push(x.extendFlat({},tr,{x:rr}))};if(Ge.length){for(Ot=0;Ot60?-.5*ci:Ye.side==="top"!==mr?-ci:0};else if(Ur==="y"){if(pn=!mr&&Wr==="left"||mr&&Wr==="right",Tr=pn?1:-1,mr&&(Tr*=-1),rn=pr,Cn=Gr*Tr,En=0,!mr&&Math.abs(an)===90&&(an===-90&&Wr==="left"||an===90&&Wr==="right"?En=j:En=.5),mr){var gn=C(an)?+an:0;if(gn!==0){var _n=x.deg2rad(gn);Cr=Math.abs(Math.sin(_n))*j*Tr,En=0}}cn.xFn=function(kn){return kn.dx+Ge-(rn+kn.fontSize*En)*Tr+Cr*kn.fontSize},cn.yFn=function(kn){return kn.dy+Cn+kn.fontSize*Y},cn.anchorFn=function(kn,ni){return C(ni)&&Math.abs(ni)===90?"middle":pn?"end":"start"},cn.heightFn=function(kn,ni,ci){return Ye.side==="right"&&(ni*=-1),ni<-30?-ci:ni<30?-.5*ci:0}}return cn};function ct(Ye){return[Ye.text,Ye.x,Ye.axInfo,Ye.font,Ye.fontSize,Ye.fontColor].join("_")}J.drawTicks=function(Ye,Ge,Nt){Nt=Nt||{};var Ot=Ge._id+"tick",Qt=[].concat(Ge.minor&&Ge.minor.ticks?Nt.vals.filter(function(fr){return fr.minor&&!fr.noTick}):[]).concat(Ge.ticks?Nt.vals.filter(function(fr){return!fr.minor&&!fr.noTick}):[]),tr=Nt.layer.selectAll("path."+Ot).data(Qt,ct);tr.exit().remove(),tr.enter().append("path").classed(Ot,1).classed("ticks",1).classed("crisp",Nt.crisp!==!1).each(function(fr){return t.stroke(g.select(this),fr.minor?Ge.minor.tickcolor:Ge.tickcolor)}).style("stroke-width",function(fr){return a.crispRound(Ye,fr.minor?Ge.minor.tickwidth:Ge.tickwidth,1)+"px"}).attr("d",Nt.path).style("display",null),ur(Ge,[k]),tr.attr("transform",Nt.transFn)},J.drawGrid=function(Ye,Ge,Nt){if(Nt=Nt||{},Ge.tickmode!=="sync"){var Ot=Ge._id+"grid",Qt=Ge.minor&&Ge.minor.showgrid,tr=Qt?Nt.vals.filter(function(rn){return rn.minor}):[],fr=Ge.showgrid?Nt.vals.filter(function(rn){return!rn.minor}):[],rr=Nt.counterAxis;if(rr&&J.shouldShowZeroLine(Ye,Ge,rr))for(var Ht=Ge.tickmode==="array",dr=0;dr=0;Pr--){var Dr=Pr?pr:Gr;if(Dr){var cn=Dr.selectAll("path."+Ot).data(Pr?fr:tr,ct);cn.exit().remove(),cn.enter().append("path").classed(Ot,1).classed("crisp",Nt.crisp!==!1),cn.attr("transform",Nt.transFn).attr("d",Nt.path).each(function(rn){return t.stroke(g.select(this),rn.minor?Ge.minor.gridcolor:Ge.gridcolor||"#ddd")}).style("stroke-dasharray",function(rn){return a.dashStyle(rn.minor?Ge.minor.griddash:Ge.griddash,rn.minor?Ge.minor.gridwidth:Ge.gridwidth)}).style("stroke-width",function(rn){return(rn.minor?xr:Ge._gw)+"px"}).style("display",null),typeof Nt.path=="function"&&cn.attr("d",Nt.path)}}ur(Ge,[N,I])}},J.drawZeroLine=function(Ye,Ge,Nt){Nt=Nt||Nt;var Ot=Ge._id+"zl",Qt=J.shouldShowZeroLine(Ye,Ge,Nt.counterAxis),tr=Nt.layer.selectAll("path."+Ot).data(Qt?[{x:0,id:Ge._id}]:[]);tr.exit().remove(),tr.enter().append("path").classed(Ot,1).classed("zl",1).classed("crisp",Nt.crisp!==!1).each(function(){Nt.layer.selectAll("path").sort(function(fr,rr){return V(fr.id,rr.id)})}),tr.attr("transform",Nt.transFn).attr("d",Nt.path).call(t.stroke,Ge.zerolinecolor||t.defaultLine).style("stroke-width",a.crispRound(Ye,Ge.zerolinewidth,Ge._gw||1)+"px").style("display",null),ur(Ge,[D])},J.drawLabels=function(Ye,Ge,Nt){Nt=Nt||{};var Ot=Ye._fullLayout,Qt=Ge._id,tr=Nt.cls||Qt+"tick",fr=Nt.vals.filter(function(wr){return wr.text}),rr=Nt.labelFns,Ht=Nt.secondary?0:Ge.tickangle,dr=(Ge._prevTickAngles||{})[tr],mr=Nt.layer.selectAll("g."+tr).data(Ge.showticklabels?fr:[],ct),xr=[];mr.enter().append("g").classed(tr,1).append("text").attr("text-anchor","middle").each(function(wr){var nn=g.select(this),$r=Ye._promises.length;nn.call(p.positionText,rr.xFn(wr),rr.yFn(wr)).call(a.font,wr.font,wr.fontSize,wr.fontColor).text(wr.text).call(p.convertToTspans,Ye),Ye._promises[$r]?xr.push(Ye._promises.pop().then(function(){pr(nn,Ht)})):pr(nn,Ht)}),ur(Ge,[B]),mr.exit().remove(),Nt.repositionOnUpdate&&mr.each(function(wr){g.select(this).select("text").call(p.positionText,rr.xFn(wr),rr.yFn(wr))});function pr(wr,nn){wr.each(function($r){var dn=g.select(this),Vn=dn.select(".text-math-group"),Tn=rr.anchorFn($r,nn),An=Nt.transFn.call(dn.node(),$r)+(C(nn)&&+nn!=0?" rotate("+nn+","+rr.xFn($r)+","+(rr.yFn($r)-$r.fontSize/2)+")":""),Bn=p.lineCount(dn),Jn=te*$r.fontSize,gi=rr.heightFn($r,C(nn)?+nn:0,(Bn-1)*Jn);if(gi&&(An+=v(0,gi)),Vn.empty()){var Di=dn.select("text");Di.attr({transform:An,"text-anchor":Tn}),Di.style("opacity",1),Ge._adjustTickLabelsOverflow&&Ge._adjustTickLabelsOverflow()}else{var Sr=a.bBox(Vn.node()).width,kr=Sr*{end:-.5,start:.5}[Tn];Vn.attr("transform",An+v(kr,0))}})}Ge._adjustTickLabelsOverflow=function(){var wr=Ge.ticklabeloverflow;if(!(!wr||wr==="allow")){var nn=wr.indexOf("hide")!==-1,$r=Ge._id.charAt(0)==="x",dn=0,Vn=$r?Ye._fullLayout.width:Ye._fullLayout.height;if(wr.indexOf("domain")!==-1){var Tn=x.simpleMap(Ge.range,Ge.r2l);dn=Ge.l2p(Tn[0])+Ge._offset,Vn=Ge.l2p(Tn[1])+Ge._offset}var An=Math.min(dn,Vn),Bn=Math.max(dn,Vn),Jn=Ge.side,gi=1/0,Di=-1/0;mr.each(function(Or){var xn=g.select(this),In=xn.select(".text-math-group");if(In.empty()){var hn=a.bBox(xn.node()),sn=0;$r?(hn.right>Bn||hn.leftBn||hn.top+(Ge.tickangle?0:Or.fontSize/4)Ge["_visibleLabelMin_"+Tn._id]?Or.style("display","none"):Bn.K==="tick"&&!An&&Or.style("display",null)})})})})},pr(mr,dr+1?dr:Ht);function Gr(){return xr.length&&Promise.all(xr)}var Pr=null;function Dr(){if(pr(mr,Ht),fr.length&&Ge.autotickangles&&(Ge.type!=="log"||String(Ge.dtick).charAt(0)!=="D")){Pr=Ge.autotickangles[0];var wr=0,nn=[],$r,dn=1;if(mr.each(function(Ln){wr=Math.max(wr,Ln.fontSize);var Pn=Ge.l2p(Ln.x),Un=or(this),On=a.bBox(Un.node());dn=Math.max(dn,p.lineCount(Un)),nn.push({top:0,bottom:10,height:10,left:Pn-On.width/2,right:Pn+On.width/2+2,width:On.width+2})}),(Ge.tickson==="boundaries"||Ge.showdividers)&&!Nt.secondary){var Vn=2;for(Ge.ticks&&(Vn+=Ge.tickwidth/2),$r=0;$rdi*ci&&(_n=ci,an[Ur]=pn[Ur]=kn[Ur])}var li=Math.abs(_n-gn);li-Tr>0?(li-=Tr,Tr*=1+Tr/li):Tr=0,Ge._id.charAt(0)!=="y"&&(Tr=-Tr),an[Wr]=Cn.p2r(Cn.r2p(pn[Wr])+Cr*Tr),Cn.autorange==="min"||Cn.autorange==="max reversed"?(an[0]=null,Cn._rangeInitial0=void 0,Cn._rangeInitial1=void 0):(Cn.autorange==="max"||Cn.autorange==="min reversed")&&(an[1]=null,Cn._rangeInitial0=void 0,Cn._rangeInitial1=void 0),Ot._insideTickLabelsUpdaterange[Cn._name+".range"]=an}var ri=x.syncOrAsync(cn);return ri&&ri.then&&Ye._promises.push(ri),ri};function Tt(Ye,Ge,Nt){var Ot=Ge._id+"divider",Qt=Nt.vals,tr=Nt.layer.selectAll("path."+Ot).data(Qt,ct);tr.exit().remove(),tr.enter().insert("path",":first-child").classed(Ot,1).classed("crisp",1).call(t.stroke,Ge.dividercolor).style("stroke-width",a.crispRound(Ye,Ge.dividerwidth,1)+"px"),tr.attr("transform",Nt.transFn).attr("d",Nt.path)}J.getPxPosition=function(Ye,Ge){var Nt=Ye._fullLayout._size,Ot=Ge._id.charAt(0),Qt=Ge.side,tr;if(Ge.anchor!=="free"?tr=Ge._anchorAxis:Ot==="x"?tr={_offset:Nt.t+(1-(Ge.position||0))*Nt.h,_length:0}:Ot==="y"&&(tr={_offset:Nt.l+(Ge.position||0)*Nt.w+Ge._shift,_length:0}),Qt==="top"||Qt==="left")return tr._offset;if(Qt==="bottom"||Qt==="right")return tr._offset+tr._length};function Bt(Ye){var Ge=Ye.title.font.size,Nt=(Ye.title.text.match(p.BR_TAG_ALL)||[]).length;return Ye.title.hasOwnProperty("standoff")?Nt?Ge*(j+Nt*te):Ge*j:Nt?Ge*(Nt+1)*te:Ge}function ir(Ye,Ge){var Nt=Ye._fullLayout,Ot=Ge._id,Qt=Ot.charAt(0),tr=Ge.title.font.size,fr;if(Ge.title.hasOwnProperty("standoff"))fr=Ge._depth+Ge.title.standoff+Bt(Ge);else{var rr=Jt(Ge);if(Ge.type==="multicategory")fr=Ge._depth;else{var Ht=1.5*tr;rr&&(Ht=.5*tr,Ge.ticks==="outside"&&(Ht+=Ge.ticklen)),fr=10+Ht+(Ge.linewidth?Ge.linewidth-1:0)}rr||(Qt==="x"?fr+=Ge.side==="top"?tr*(Ge.showticklabels?1:0):tr*(Ge.showticklabels?1.5:.5):fr+=Ge.side==="right"?tr*(Ge.showticklabels?1:.5):tr*(Ge.showticklabels?.5:0))}var dr=J.getPxPosition(Ye,Ge),mr,xr,pr;Qt==="x"?(xr=Ge._offset+Ge._length/2,pr=Ge.side==="top"?dr-fr:dr+fr):(pr=Ge._offset+Ge._length/2,xr=Ge.side==="right"?dr+fr:dr-fr,mr={rotate:"-90",offset:0});var Gr;if(Ge.type!=="multicategory"){var Pr=Ge._selections[Ge._id+"tick"];if(Gr={selection:Pr,side:Ge.side},Pr&&Pr.node()&&Pr.node().parentNode){var Dr=a.getTranslate(Pr.node().parentNode);Gr.offsetLeft=Dr.x,Gr.offsetTop=Dr.y}Ge.title.hasOwnProperty("standoff")&&(Gr.pad=0)}return Ge._titleStandoff=fr,r.draw(Ye,Ot+"title",{propContainer:Ge,propName:Ge._name+".title.text",placeholder:Nt._dfltTitle[Qt],avoid:Gr,transform:mr,attributes:{x:xr,y:pr,"text-anchor":"middle"}})}J.shouldShowZeroLine=function(Ye,Ge,Nt){var Ot=x.simpleMap(Ge.range,Ge.r2l);return Ot[0]*Ot[1]<=0&&Ge.zeroline&&(Ge.type==="linear"||Ge.type==="-")&&!(Ge.rangebreaks&&Ge.maskBreaks(0)===z)&&(pt(Ge,0)||!Xt(Ye,Ge,Nt,Ot)||Kt(Ye,Ge))},J.clipEnds=function(Ye,Ge){return Ge.filter(function(Nt){return pt(Ye,Nt.x)})};function pt(Ye,Ge){var Nt=Ye.l2p(Ge);return Nt>1&&Nt1)for(Qt=1;Qt=Qt.min&&Yeo*2}function n(l){return Math.max(1,(l-1)/1e3)}function f(l,m){for(var h=l.length,b=n(h),u=0,o=0,d={},w=0;wu*2}function c(l){return S(l[0])&&S(l[1])}},28336:function(G,U,e){var g=e(38248),C=e(24040),i=e(3400),S=e(31780),x=e(51272),v=e(94724),p=e(26332),r=e(25404),t=e(95936),a=e(42568),n=e(22416),f=e(42136),c=e(96312),l=e(78344),m=e(33816).WEEKDAY_PATTERN,h=e(33816).HOUR_PATTERN;G.exports=function(w,A,_,y,E){var T=y.letter,s=y.font||{},L=y.splomStash||{},M=_("visible",!y.visibleDflt),z=A._template||{},D=A.type||z.type||"-",N;if(D==="date"){var I=C.getComponentMethod("calendars","handleDefaults");I(w,A,"calendar",y.calendar),y.noTicklabelmode||(N=_("ticklabelmode"))}var k="";(!y.noTicklabelposition||D==="multicategory")&&(k=i.coerce(w,A,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:N==="period"?["outside","inside"]:T==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),y.noTicklabeloverflow||_("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":D==="category"||D==="multicategory"?"allow":"hide past div"),l(A,E),c(w,A,_,y),n(w,A,_,y),D!=="category"&&!y.noHover&&_("hoverformat");var B=_("color"),O=B!==v.color.dflt?B:s.color,H=L.label||E._dfltTitle[T];if(a(w,A,_,D,y),!M)return A;_("title.text",H),i.coerceFont(_,"title.font",{family:s.family,size:i.bigFont(s.size),color:O}),p(w,A,_,D);var Y=y.hasMinor;if(Y&&(S.newContainer(A,"minor"),p(w,A,_,D,{isMinor:!0})),t(w,A,_,D,y),r(w,A,_,y),Y){var j=y.isMinor;y.isMinor=!0,r(w,A,_,y),y.isMinor=j}f(w,A,_,{dfltColor:B,bgColor:y.bgColor,showGrid:y.showGrid,hasMinor:Y,attributes:v}),Y&&!A.minor.ticks&&!A.minor.showgrid&&delete A.minor,(A.showline||A.ticks)&&_("mirror");var te=D==="multicategory";if(!y.noTickson&&(D==="category"||te)&&(A.ticks||A.showgrid)){var ie;te&&(ie="boundaries");var ue=_("tickson",ie);ue==="boundaries"&&delete A.ticklabelposition}if(te){var J=_("showdividers");J&&(_("dividercolor"),_("dividerwidth"))}if(D==="date")if(x(w,A,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:b}),!A.rangebreaks.length)delete A.rangebreaks;else{for(var X=0;X=2){var T="",s,L;if(E.length===2){for(s=0;s<2;s++)if(L=o(E[s]),L){T=m;break}}var M=_("pattern",T);if(M===m)for(s=0;s<2;s++)L=o(E[s]),L&&(w.bounds[s]=E[s]=L-1);if(M)for(s=0;s<2;s++)switch(L=E[s],M){case m:if(!g(L)){w.enabled=!1;return}if(L=+L,L!==Math.floor(L)||L<0||L>=7){w.enabled=!1;return}w.bounds[s]=E[s]=L;break;case h:if(!g(L)){w.enabled=!1;return}if(L=+L,L<0||L>24){w.enabled=!1;return}w.bounds[s]=E[s]=L;break}if(A.autorange===!1){var z=A.range;if(z[0]z[1]){w.enabled=!1;return}}else if(E[0]>z[0]&&E[1]p?1:-1:+(S.substr(1)||1)-+(x.substr(1)||1)},U.ref2id=function(S){return/^[xyz]/.test(S)?S.split(" ")[0]:!1};function i(S,x){if(x&&x.length){for(var v=0;v0||g(r),a;t&&(a="array");var n=v("categoryorder",a),f;n==="array"&&(f=v("categoryarray")),!t&&n==="array"&&(n=x.categoryorder="trace"),n==="trace"?x._initialCategories=[]:n==="array"?x._initialCategories=f.slice():(f=C(x,p).sort(),n==="category ascending"?x._initialCategories=f:n==="category descending"&&(x._initialCategories=f.reverse()))}}},98728:function(G,U,e){var g=e(38248),C=e(3400),i=e(39032),S=i.ONEDAY,x=i.ONEWEEK;U.dtick=function(v,p){var r=p==="log",t=p==="date",a=p==="category",n=t?S:1;if(!v)return n;if(g(v))return v=Number(v),v<=0?n:a?Math.max(1,Math.round(v)):t?Math.max(.1,v):v;if(typeof v!="string"||!(t||r))return n;var f=v.charAt(0),c=v.substr(1);return c=g(c)?Number(c):0,c<=0||!(t&&f==="M"&&c===Math.round(c)||r&&f==="L"||r&&f==="D"&&(c===1||c===2))?n:v},U.tick0=function(v,p,r,t){if(p==="date")return C.cleanDate(v,C.dateTick0(r,t%x===0?1:0));if(!(t==="D1"||t==="D2"))return g(v)?Number(v):0}},33816:function(G,U,e){var g=e(53756).counter;G.exports={idRegex:{x:g("x","( domain)?"),y:g("y","( domain)?")},attrRegex:g("[xy]axis"),xAxisMatch:g("xaxis"),yAxisMatch:g("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(G,U,e){var g=e(3400),C=e(19280),i=e(79811).id2name,S=e(94724),x=e(21160),v=e(78344),p=e(39032).ALMOST_EQUAL,r=e(84284).FROM_BL;U.handleDefaults=function(h,b,u){var o=u.axIds,d=u.axHasImage,w=b._axisConstraintGroups=[],A=b._axisMatchGroups=[],_,y,E,T,s,L,M,z;for(_=0;_w?u.substr(w):o.substr(d))+A}function l(h,b){for(var u=b._size,o=u.h/u.w,d={},w=Object.keys(h),A=0;Ap*z&&!k)){for(w=0;wX&&neue&&(ue=ne);var ge=(ue-ie)/(2*J);s/=ge,ie=y.l2r(ie),ue=y.l2r(ue),y.range=y._input.range=Y=0){dr._fullLayout._deactivateShape(dr);return}var mr=dr._fullLayout.clickmode;if(X(dr),rr===2&&!He&&Ge(),Le)mr.indexOf("select")>-1&&E(Ht,dr,rt,Ke,ce.id,bt),mr.indexOf("event")>-1&&n.click(dr,Ht,ce.id);else if(rr===1&&He){var xr=be?ke:Ue,pr=be==="s"||Ae==="w"?0:1,Gr=xr._name+".range["+pr+"]",Pr=B(xr,pr),Dr="left",cn="middle";if(xr.fixedrange)return;be?(cn=be==="n"?"top":"bottom",xr.side==="right"&&(Dr="right")):Ae==="e"&&(Dr="right"),dr._context.showAxisRangeEntryBoxes&&g.select(mt).call(r.makeEditable,{gd:dr,immediate:!0,background:dr._fullLayout.paper_bgcolor,text:String(Pr),fill:xr.tickfont?xr.tickfont.color:"#444",horizontalAlign:Dr,verticalAlign:cn}).on("edit",function(rn){var Cn=xr.d2r(rn);Cn!==void 0&&v.call("_guiRelayout",dr,Gr,Cn)})}}l.init(bt);var ct,Tt,Bt,ir,pt,Xt,Kt,or,$t,gt;function st(rr,Ht,dr){var mr=mt.getBoundingClientRect();ct=Ht-mr.left,Tt=dr-mr.top,ne._fullLayout._calcInverseTransform(ne);var xr=C.apply3DTransform(ne._fullLayout._invTransform)(ct,Tt);ct=xr[0],Tt=xr[1],Bt={l:ct,r:ct,w:0,t:Tt,b:Tt,h:0},ir=ne._hmpixcount?ne._hmlumcount/ne._hmpixcount:S(ne._fullLayout.plot_bgcolor).getLuminance(),pt="M0,0H"+ht+"V"+dt+"H0V0",Xt=!1,Kt="xy",gt=!1,or=te(me,ir,$e,lt,pt),$t=ie(me,$e,lt)}function At(rr,Ht){if(ne._transitioningWithDuration)return!1;var dr=Math.max(0,Math.min(ht,Me*rr+ct)),mr=Math.max(0,Math.min(dt,Ne*Ht+Tt)),xr=Math.abs(dr-ct),pr=Math.abs(mr-Tt);Bt.l=Math.min(ct,dr),Bt.r=Math.max(ct,dr),Bt.t=Math.min(Tt,mr),Bt.b=Math.max(Tt,mr);function Gr(){Kt="",Bt.r=Bt.l,Bt.t=Bt.b,$t.attr("d","M0,0Z")}if(xt.isSubplotConstrained)xr>M||pr>M?(Kt="xy",xr/ht>pr/dt?(pr=xr*dt/ht,Tt>mr?Bt.t=Tt-pr:Bt.b=Tt+pr):(xr=pr*ht/dt,ct>dr?Bt.l=ct-xr:Bt.r=ct+xr),$t.attr("d",oe(Bt))):Gr();else if(St.isSubplotConstrained)if(xr>M||pr>M){Kt="xy";var Pr=Math.min(Bt.l/ht,(dt-Bt.b)/dt),Dr=Math.max(Bt.r/ht,(dt-Bt.t)/dt);Bt.l=Pr*ht,Bt.r=Dr*ht,Bt.b=(1-Pr)*dt,Bt.t=(1-Dr)*dt,$t.attr("d",oe(Bt))}else Gr();else!ze||pr0){var rn;if(St.isSubplotConstrained||!nt&&ze.length===1){for(rn=0;rn1&&(Gr.maxallowed!==void 0&&Je===(Gr.range[0]1&&(Pr.maxallowed!==void 0&&We===(Pr.range[0]=0?Math.min(ne,.9):1/(1/Math.max(ne,-.3)+3.222))}function j(ne,ce,ge){return ne?ne==="nsew"?ge?"":ce==="pan"?"move":"crosshair":ne.toLowerCase()+"-resize":"pointer"}function te(ne,ce,ge,Te,we){return ne.append("path").attr("class","zoombox").style({fill:ce>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(ge,Te)).attr("d",we+"Z")}function ie(ne,ce,ge){return ne.append("path").attr("class","zoombox-corners").style({fill:t.background,stroke:t.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(ce,ge)).attr("d","M0,0Z")}function ue(ne,ce,ge,Te,we,Re){ne.attr("d",Te+"M"+ge.l+","+ge.t+"v"+ge.h+"h"+ge.w+"v-"+ge.h+"h-"+ge.w+"Z"),J(ne,ce,we,Re)}function J(ne,ce,ge,Te){ge||(ne.transition().style("fill",Te>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ce.transition().style("opacity",1).duration(200))}function X(ne){g.select(ne).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ee(ne){z&&ne.data&&ne._context.showTips&&(C.notifier(C._(ne,"Double-click to zoom back out"),"long"),z=!1)}function V(ne,ce){return"M"+(ne.l-.5)+","+(ce-M-.5)+"h-3v"+(2*M+1)+"h3ZM"+(ne.r+.5)+","+(ce-M-.5)+"h3v"+(2*M+1)+"h-3Z"}function Q(ne,ce){return"M"+(ce-M-.5)+","+(ne.t-.5)+"v-3h"+(2*M+1)+"v3ZM"+(ce-M-.5)+","+(ne.b+.5)+"v3h"+(2*M+1)+"v-3Z"}function oe(ne){var ce=Math.floor(Math.min(ne.b-ne.t,ne.r-ne.l,M)/2);return"M"+(ne.l-3.5)+","+(ne.t-.5+ce)+"h3v"+-ce+"h"+ce+"v-3h-"+(ce+3)+"ZM"+(ne.r+3.5)+","+(ne.t-.5+ce)+"h-3v"+-ce+"h"+-ce+"v-3h"+(ce+3)+"ZM"+(ne.r+3.5)+","+(ne.b+.5-ce)+"h-3v"+ce+"h"+-ce+"v3h"+(ce+3)+"ZM"+(ne.l-3.5)+","+(ne.b+.5-ce)+"h3v"+ce+"h"+ce+"v3h-"+(ce+3)+"Z"}function $(ne,ce,ge,Te,we){for(var Re=!1,be={},Ae={},me,Le,He,Ue,ke=(we||{}).xaHash,Ve=(we||{}).yaHash,Ie=0;Ie_[1]-.000244140625&&(x.domain=l),C.noneOrAll(S.domain,x.domain,l),x.tickmode==="sync"&&(x.tickmode="auto")}return v("layer"),x}},42568:function(G,U,e){var g=e(85024);G.exports=function(i,S,x,v,p){p||(p={});var r=p.tickSuffixDflt,t=g(i),a=x("tickprefix");a&&x("showtickprefix",t);var n=x("ticksuffix",r);n&&x("showticksuffix",t)}},96312:function(G,U,e){var g=e(76808);G.exports=function(i,S,x,v){var p=S._template||{},r=S.type||p.type||"-";x("minallowed"),x("maxallowed");var t=x("range");if(!t){var a;!v.noInsiderange&&r!=="log"&&(a=x("insiderange"),a&&(a[0]===null||a[1]===null)&&(S.insiderange=!1,a=void 0),a&&(t=x("range",a)))}var n=S.getAutorangeDflt(t,v),f=x("autorange",n),c;t&&(t[0]===null&&t[1]===null||(t[0]===null||t[1]===null)&&(f==="reversed"||f===!0)||t[0]!==null&&(f==="min"||f==="max reversed")||t[1]!==null&&(f==="max"||f==="min reversed"))&&(t=void 0,delete S.range,S.autorange=!0,c=!0),c||(n=S.getAutorangeDflt(t,v),f=x("autorange",n)),f&&(g(x,f,t),(r==="linear"||r==="-")&&x("rangemode")),S.cleanRange()}},21160:function(G,U,e){var g=e(84284).FROM_BL;G.exports=function(i,S,x){x===void 0&&(x=g[i.constraintoward||"center"]);var v=[i.r2l(i.range[0]),i.r2l(i.range[1])],p=v[0]+(v[1]-v[0])*x;i.range=i._input.range=[i.l2r(p+(v[0]-p)*S),i.l2r(p+(v[1]-p)*S)],i.setScale()}},78344:function(G,U,e){var g=e(33428),C=e(94336).E9,i=e(3400),S=i.numberFormat,x=e(38248),v=i.cleanNumber,p=i.ms2DateTime,r=i.dateTime2ms,t=i.ensureNumber,a=i.isArrayOrTypedArray,n=e(39032),f=n.FP_SAFE,c=n.BADNUM,l=n.LOG_CLIP,m=n.ONEWEEK,h=n.ONEDAY,b=n.ONEHOUR,u=n.ONEMIN,o=n.ONESEC,d=e(79811),w=e(33816),A=w.HOUR_PATTERN,_=w.WEEKDAY_PATTERN;function y(T){return Math.pow(10,T)}function E(T){return T!=null}G.exports=function(s,L){L=L||{};var M=s._id||"x",z=M.charAt(0);function D(V,Q){if(V>0)return Math.log(V)/Math.LN10;if(V<=0&&Q&&s.range&&s.range.length===2){var oe=s.range[0],$=s.range[1];return .5*(oe+$-2*l*Math.abs(oe-$))}else return c}function N(V,Q,oe,$){if(($||{}).msUTC&&x(V))return+V;var Z=r(V,oe||s.calendar);if(Z===c)if(x(V)){V=+V;var se=Math.floor(i.mod(V+.05,1)*10),ne=Math.round(V-se/10);Z=r(new Date(ne))+se/10}else return c;return Z}function I(V,Q,oe){return p(V,Q,oe||s.calendar)}function k(V){return s._categories[Math.round(V)]}function B(V){if(E(V)){if(s._categoriesMap===void 0&&(s._categoriesMap={}),s._categoriesMap[V]!==void 0)return s._categoriesMap[V];s._categories.push(typeof V=="number"?String(V):V);var Q=s._categories.length-1;return s._categoriesMap[V]=Q,Q}return c}function O(V,Q){for(var oe=new Array(Q),$=0;$s.range[1]&&(oe=!oe);for(var $=oe?-1:1,Z=$*V,se=0,ne=0;nege)se=ne+1;else{se=Z<(ce+ge)/2?ne:ne+1;break}}var Te=s._B[se]||0;return isFinite(Te)?te(V,s._m2,Te):0},J=function(V){var Q=s._rangebreaks.length;if(!Q)return ie(V,s._m,s._b);for(var oe=0,$=0;$s._rangebreaks[$].pmax&&(oe=$+1);return ie(V,s._m2,s._B[oe])}}s.c2l=s.type==="log"?D:t,s.l2c=s.type==="log"?y:t,s.l2p=ue,s.p2l=J,s.c2p=s.type==="log"?function(V,Q){return ue(D(V,Q))}:ue,s.p2c=s.type==="log"?function(V){return y(J(V))}:J,["linear","-"].indexOf(s.type)!==-1?(s.d2r=s.r2d=s.d2c=s.r2c=s.d2l=s.r2l=v,s.c2d=s.c2r=s.l2d=s.l2r=t,s.d2p=s.r2p=function(V){return s.l2p(v(V))},s.p2d=s.p2r=J,s.cleanPos=t):s.type==="log"?(s.d2r=s.d2l=function(V,Q){return D(v(V),Q)},s.r2d=s.r2c=function(V){return y(v(V))},s.d2c=s.r2l=v,s.c2d=s.l2r=t,s.c2r=D,s.l2d=y,s.d2p=function(V,Q){return s.l2p(s.d2r(V,Q))},s.p2d=function(V){return y(J(V))},s.r2p=function(V){return s.l2p(v(V))},s.p2r=J,s.cleanPos=t):s.type==="date"?(s.d2r=s.r2d=i.identity,s.d2c=s.r2c=s.d2l=s.r2l=N,s.c2d=s.c2r=s.l2d=s.l2r=I,s.d2p=s.r2p=function(V,Q,oe){return s.l2p(N(V,0,oe))},s.p2d=s.p2r=function(V,Q,oe){return I(J(V),Q,oe)},s.cleanPos=function(V){return i.cleanDate(V,c,s.calendar)}):s.type==="category"?(s.d2c=s.d2l=B,s.r2d=s.c2d=s.l2d=k,s.d2r=s.d2l_noadd=Y,s.r2c=function(V){var Q=j(V);return Q!==void 0?Q:s.fraction2r(.5)},s.l2r=s.c2r=t,s.r2l=j,s.d2p=function(V){return s.l2p(s.r2c(V))},s.p2d=function(V){return k(J(V))},s.r2p=s.d2p,s.p2r=J,s.cleanPos=function(V){return typeof V=="string"&&V!==""?V:t(V)}):s.type==="multicategory"&&(s.r2d=s.c2d=s.l2d=k,s.d2r=s.d2l_noadd=Y,s.r2c=function(V){var Q=Y(V);return Q!==void 0?Q:s.fraction2r(.5)},s.r2c_just_indices=H,s.l2r=s.c2r=t,s.r2l=Y,s.d2p=function(V){return s.l2p(s.r2c(V))},s.p2d=function(V){return k(J(V))},s.r2p=s.d2p,s.p2r=J,s.cleanPos=function(V){return Array.isArray(V)||typeof V=="string"&&V!==""?V:t(V)},s.setupMultiCategory=function(V){var Q=s._traceIndices,oe,$,Z=s._matchGroup;if(Z&&s._categories.length===0){for(var se in Z)if(se!==M){var ne=L[d.id2name(se)];Q=Q.concat(ne._traceIndices)}}var ce=[[0,{}],[0,{}]],ge=[];for(oe=0;oene[1]&&($[se?0:1]=oe),$[0]===$[1]){var ce=s.l2r(Q),ge=s.l2r(oe);if(Q!==void 0){var Te=ce+1;oe!==void 0&&(Te=Math.min(Te,ge)),$[se?1:0]=Te}if(oe!==void 0){var we=ge+1;Q!==void 0&&(we=Math.max(we,ce)),$[se?0:1]=we}}}},s.cleanRange=function(V,Q){s._cleanRange(V,Q),s.limitRange(V)},s._cleanRange=function(V,Q){Q||(Q={}),V||(V="range");var oe=i.nestedProperty(s,V).get(),$,Z;if(s.type==="date"?Z=i.dfltRange(s.calendar):z==="y"?Z=w.DFLTRANGEY:s._name==="realaxis"?Z=[0,1]:Z=Q.dfltRange||w.DFLTRANGEX,Z=Z.slice(),(s.rangemode==="tozero"||s.rangemode==="nonnegative")&&(Z[0]=0),!oe||oe.length!==2){i.nestedProperty(s,V).set(Z);return}var se=oe[0]===null,ne=oe[1]===null;for(s.type==="date"&&!s.autorange&&(oe[0]=i.cleanDate(oe[0],c,s.calendar),oe[1]=i.cleanDate(oe[1],c,s.calendar)),$=0;$<2;$++)if(s.type==="date"){if(!i.isDateTime(oe[$],s.calendar)){s[V]=Z;break}if(s.r2l(oe[0])===s.r2l(oe[1])){var ce=i.constrain(s.r2l(oe[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);oe[0]=s.l2r(ce-1e3),oe[1]=s.l2r(ce+1e3);break}}else{if(!x(oe[$]))if(!(se||ne)&&x(oe[1-$]))oe[$]=oe[1-$]*($?10:.1);else{s[V]=Z;break}if(oe[$]<-f?oe[$]=-f:oe[$]>f&&(oe[$]=f),oe[0]===oe[1]){var ge=Math.max(1,Math.abs(oe[0]*1e-6));oe[0]-=ge,oe[1]+=ge}}},s.setScale=function(V){var Q=L._size;if(s.overlaying){var oe=d.getFromId({_fullLayout:L},s.overlaying);s.domain=oe.domain}var $=V&&s._r?"_r":"range",Z=s.calendar;s.cleanRange($);var se=s.r2l(s[$][0],Z),ne=s.r2l(s[$][1],Z),ce=z==="y";if(ce?(s._offset=Q.t+(1-s.domain[1])*Q.h,s._length=Q.h*(s.domain[1]-s.domain[0]),s._m=s._length/(se-ne),s._b=-s._m*ne):(s._offset=Q.l+s.domain[0]*Q.w,s._length=Q.w*(s.domain[1]-s.domain[0]),s._m=s._length/(ne-se),s._b=-s._m*se),s._rangebreaks=[],s._lBreaks=0,s._m2=0,s._B=[],s.rangebreaks){var ge,Te;if(s._rangebreaks=s.locateBreaks(Math.min(se,ne),Math.max(se,ne)),s._rangebreaks.length){for(ge=0;gene&&(we=!we),we&&s._rangebreaks.reverse();var Re=we?-1:1;for(s._m2=Re*s._length/(Math.abs(ne-se)-s._lBreaks),s._B.push(-s._m2*(ce?ne:se)),ge=0;geZ&&(Z+=7,se<$&&(se+=7));break;case A:ne=new Date(V);var we=ne.getUTCHours(),Re=ne.getUTCMinutes(),be=ne.getUTCSeconds(),Ae=ne.getUTCMilliseconds();se=we+(Re/60+be/3600+Ae/36e5),$>Z&&(Z+=24,se<$&&(se+=24));break;case"":se=V;break}if(se>=$&&se=$&&V=Ke.min&&(keKe.max&&(Ke.max=Ve),Ie=!1)}Ie&&ne.push({min:ke,max:Ve})}};for(oe=0;oe rect").call(S.setTranslate,0,0).call(S.setScale,1,1),A.plot.call(S.setTranslate,_._offset,y._offset).call(S.setScale,1,1);var E=A.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(S.setPointGroupScale,1,1),E.selectAll(".textpoint").call(S.setTextPointsScale,1,1),E.call(S.hideOutsideRangePoints,A)}function c(A,_){var y=A.plotinfo,E=y.xaxis,T=y.yaxis,s=E._length,L=T._length,M=!!A.xr1,z=!!A.yr1,D=[];if(M){var N=i.simpleMap(A.xr0,E.r2l),I=i.simpleMap(A.xr1,E.r2l),k=N[1]-N[0],B=I[1]-I[0];D[0]=(N[0]*(1-_)+_*I[0]-N[0])/(N[1]-N[0])*s,D[2]=s*(1-_+_*B/k),E.range[0]=E.l2r(N[0]*(1-_)+_*I[0]),E.range[1]=E.l2r(N[1]*(1-_)+_*I[1])}else D[0]=0,D[2]=s;if(z){var O=i.simpleMap(A.yr0,T.r2l),H=i.simpleMap(A.yr1,T.r2l),Y=O[1]-O[0],j=H[1]-H[0];D[1]=(O[1]*(1-_)+_*H[1]-O[1])/(O[0]-O[1])*L,D[3]=L*(1-_+_*j/Y),T.range[0]=E.l2r(O[0]*(1-_)+_*H[0]),T.range[1]=T.l2r(O[1]*(1-_)+_*H[1])}else D[1]=0,D[3]=L;x.drawOne(p,E,{skipTitle:!0}),x.drawOne(p,T,{skipTitle:!0}),x.redrawComponents(p,[E._id,T._id]);var te=M?s/D[2]:1,ie=z?L/D[3]:1,ue=M?D[0]:0,J=z?D[1]:0,X=M?D[0]/D[2]*s:0,ee=z?D[1]/D[3]*L:0,V=E._offset-X,Q=T._offset-ee;y.clipRect.call(S.setTranslate,ue,J).call(S.setScale,1/te,1/ie),y.plot.call(S.setTranslate,V,Q).call(S.setScale,te,ie),S.setPointGroupScale(y.zoomScalePts,1/te,1/ie),S.setTextPointsScale(y.zoomScaleTxt,1/te,1/ie)}var l;a&&(l=a());function m(){for(var A={},_=0;_t.duration?(m(),o=window.cancelAnimationFrame(w)):o=window.requestAnimationFrame(w)}return b=Date.now(),o=window.requestAnimationFrame(w),Promise.resolve()}},14944:function(G,U,e){var g=e(24040).traceIs,C=e(52976);G.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var f=a("type",(n.splomStash||{}).type);f==="-"&&(i(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function i(p,r){if(p.type==="-"){var t=p._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var f=S(r,t,a);if(f){if(f.type==="histogram"&&a==={v:"y",h:"x"}[f.orientation||"v"]){p.type="linear";return}var c=a+"calendar",l=f[c],m={noMultiCategory:!g(f,"cartesian")||g(f,"noMultiCategory")};if(f.type==="box"&&f._hasPreCompStats&&a==={h:"x",v:"y"}[f.orientation||"v"]&&(m.noMultiCategory=!0),m.autotypenumbers=p.autotypenumbers,v(f,a)){var h=x(f),b=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(v(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function x(p){return{v:"x",h:"y"}[p.orientation||"v"]}function v(p,r){var t=x(p),a=g(p,"box-violin"),n=g(p._fullInput||{},"candlestick");return a&&!n&&r===t&&p[t]===void 0&&p[t+"0"]===void 0}},62460:function(G,U,e){var g=e(24040),C=e(3400);U.manageCommandObserver=function(r,t,a,n){var f={},c=!0;t&&t._commandObserver&&(f=t._commandObserver),f.cache||(f.cache={}),f.lookupTable={};var l=U.hasSimpleAPICommandBindings(r,a,f.lookupTable);if(t&&t._commandObserver){if(l)return f;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,f}if(l){i(r,l,f.cache),f.check=function(){if(c){var u=i(r,l,f.cache);return u.changed&&n&&f.lookupTable[u.value]!==void 0&&(f.disable(),Promise.resolve(n({value:u.value,type:l.type,prop:l.prop,traces:l.traces,index:f.lookupTable[u.value]})).then(f.enable,f.enable)),u.changed}};for(var m=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+f;C.isPlainObject(c)?p(c,t,l,n+1):t(l,f,c)}})}},86968:function(G,U,e){var g=e(92880).extendFlat;U.u=function(C,i){C=C||{},i=i||{};var S={valType:"info_array",editType:C.editType,items:[{valType:"number",min:0,max:1,editType:C.editType},{valType:"number",min:0,max:1,editType:C.editType}],dflt:[0,1]};C.name&&C.name+"",C.trace,i.description&&""+i.description;var x={x:g({},S,{}),y:g({},S,{}),editType:C.editType};return C.noGridCell||(x.row={valType:"integer",min:0,dflt:0,editType:C.editType},x.column={valType:"integer",min:0,dflt:0,editType:C.editType}),x},U.Q=function(C,i,S,x){var v=x&&x.x||[0,1],p=x&&x.y||[0,1],r=i.grid;if(r){var t=S("domain.column");t!==void 0&&(t0&&B._module.calcGeoJSON(k,z)}if(!D){var O=this.updateProjection(M,z);if(O)return;(!this.viewInitial||this.scope!==N.scope)&&this.saveViewInitial(N)}this.scope=N.scope,this.updateBaseLayers(z,N),this.updateDims(z,N),this.updateFx(z,N),f.generalUpdatePerTraceModule(this.graphDiv,this,M,N);var H=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=H.selectAll(".point"),this.dataPoints.text=H.selectAll("text"),this.dataPaths.line=H.selectAll(".js-line");var Y=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=Y.selectAll("path"),this._render()},E.updateProjection=function(M,z){var D=this.graphDiv,N=z[this.id],I=z._size,k=N.domain,B=N.projection,O=N.lonaxis,H=N.lataxis,Y=O._ax,j=H._ax,te=this.projection=T(N),ie=[[I.l+I.w*k.x[0],I.t+I.h*(1-k.y[1])],[I.l+I.w*k.x[1],I.t+I.h*(1-k.y[0])]],ue=N.center||{},J=B.rotation||{},X=O.range||[],ee=H.range||[];if(N.fitbounds){Y._length=ie[1][0]-ie[0][0],j._length=ie[1][1]-ie[0][1],Y.range=l(D,Y),j.range=l(D,j);var V=(Y.range[0]+Y.range[1])/2,Q=(j.range[0]+j.range[1])/2;if(N._isScoped)ue={lon:V,lat:Q};else if(N._isClipped){ue={lon:V,lat:Q},J={lon:V,lat:Q,roll:J.roll};var oe=B.type,$=d.lonaxisSpan[oe]/2||180,Z=d.lataxisSpan[oe]/2||90;X=[V-$,V+$],ee=[Q-Z,Q+Z]}else ue={lon:V,lat:Q},J={lon:V,lat:J.lat,roll:J.roll}}te.center([ue.lon-J.lon,ue.lat-J.lat]).rotate([-J.lon,-J.lat,J.roll]).parallels(B.parallels);var se=L(X,ee);te.fitExtent(ie,se);var ne=this.bounds=te.getBounds(se),ce=this.fitScale=te.scale(),ge=te.translate();if(N.fitbounds){var Te=te.getBounds(L(Y.range,j.range)),we=Math.min((ne[1][0]-ne[0][0])/(Te[1][0]-Te[0][0]),(ne[1][1]-ne[0][1])/(Te[1][1]-Te[0][1]));isFinite(we)?te.scale(we*ce):p.warn("Something went wrong during"+this.id+"fitbounds computations.")}else te.scale(B.scale*ce);var Re=this.midPt=[(ne[0][0]+ne[1][0])/2,(ne[0][1]+ne[1][1])/2];if(te.translate([ge[0]+(Re[0]-ge[0]),ge[1]+(Re[1]-ge[1])]).clipExtent(ne),N._isAlbersUsa){var be=te([ue.lon,ue.lat]),Ae=te.translate();te.translate([Ae[0]-(be[0]-Ae[0]),Ae[1]-(be[1]-Ae[1])])}},E.updateBaseLayers=function(M,z){var D=this,N=D.topojson,I=D.layers,k=D.basePaths;function B(ie){return ie==="lonaxis"||ie==="lataxis"}function O(ie){return!!d.lineLayers[ie]}function H(ie){return!!d.fillLayers[ie]}var Y=this.hasChoropleth?d.layersForChoropleth:d.layers,j=Y.filter(function(ie){return O(ie)||H(ie)?z["show"+ie]:B(ie)?z[ie].showgrid:!0}),te=D.framework.selectAll(".layer").data(j,String);te.exit().each(function(ie){delete I[ie],delete k[ie],g.select(this).remove()}),te.enter().append("g").attr("class",function(ie){return"layer "+ie}).each(function(ie){var ue=I[ie]=g.select(this);ie==="bg"?D.bgRect=ue.append("rect").style("pointer-events","all"):B(ie)?k[ie]=ue.append("path").style("fill","none"):ie==="backplot"?ue.append("g").classed("choroplethlayer",!0):ie==="frontplot"?ue.append("g").classed("scatterlayer",!0):O(ie)?k[ie]=ue.append("path").style("fill","none").style("stroke-miterlimit",2):H(ie)&&(k[ie]=ue.append("path").style("stroke","none"))}),te.order(),te.each(function(ie){var ue=k[ie],J=d.layerNameToAdjective[ie];ie==="frame"?ue.datum(d.sphereSVG):O(ie)||H(ie)?ue.datum(_(N,N.objects[ie])):B(ie)&&ue.datum(s(ie,z,M)).call(t.stroke,z[ie].gridcolor).call(a.dashLine,z[ie].griddash,z[ie].gridwidth),O(ie)?ue.call(t.stroke,z[J+"color"]).call(a.dashLine,"",z[J+"width"]):H(ie)&&ue.call(t.fill,z[J+"color"])})},E.updateDims=function(M,z){var D=this.bounds,N=(z.framewidth||0)/2,I=D[0][0]-N,k=D[0][1]-N,B=D[1][0]-I+N,O=D[1][1]-k+N;a.setRect(this.clipRect,I,k,B,O),this.bgRect.call(a.setRect,I,k,B,O).call(t.fill,z.bgcolor),this.xaxis._offset=I,this.xaxis._length=B,this.yaxis._offset=k,this.yaxis._length=O},E.updateFx=function(M,z){var D=this,N=D.graphDiv,I=D.bgRect,k=M.dragmode,B=M.clickmode;if(D.isStatic)return;function O(){var te=D.viewInitial,ie={};for(var ue in te)ie[D.id+"."+ue]=te[ue];v.call("_guiRelayout",N,ie),N.emit("plotly_doubleclick",null)}function H(te){return D.projection.invert([te[0]+D.xaxis._offset,te[1]+D.yaxis._offset])}var Y=function(te,ie){if(ie.isRect){var ue=te.range={};ue[D.id]=[H([ie.xmin,ie.ymin]),H([ie.xmax,ie.ymax])]}else{var J=te.lassoPoints={};J[D.id]=ie.map(H)}},j={element:D.bgRect.node(),gd:N,plotinfo:{id:D.id,xaxis:D.xaxis,yaxis:D.yaxis,fillRangeItems:Y},xaxes:[D.xaxis],yaxes:[D.yaxis],subplot:D.id,clickFn:function(te){te===2&&b(N)}};k==="pan"?(I.node().onmousedown=null,I.call(o(D,z)),I.on("dblclick.zoom",O),N._context._scrollZoom.geo||I.on("wheel.zoom",null)):(k==="select"||k==="lasso")&&(I.on(".zoom",null),j.prepFn=function(te,ie,ue){h(te,ie,ue,j,k)},m.init(j)),I.on("mousemove",function(){var te=D.projection.invert(p.getPositionFromD3Event());if(!te)return m.unhover(N,g.event);D.xaxis.p2c=function(){return te[0]},D.yaxis.p2c=function(){return te[1]},n.hover(N,g.event,D.id)}),I.on("mouseout",function(){N._dragging||m.unhover(N,g.event)}),I.on("click",function(){k!=="select"&&k!=="lasso"&&(B.indexOf("select")>-1&&u(g.event,N,[D.xaxis],[D.yaxis],D.id,j),B.indexOf("event")>-1&&n.click(N,g.event))})},E.makeFramework=function(){var M=this,z=M.graphDiv,D=z._fullLayout,N="clip"+D._uid+M.id;M.clipDef=D._clips.append("clipPath").attr("id",N),M.clipRect=M.clipDef.append("rect"),M.framework=g.select(M.container).append("g").attr("class","geo "+M.id).call(a.setClipUrl,N,z),M.project=function(I){var k=M.projection(I);return k?[k[0]-M.xaxis._offset,k[1]-M.yaxis._offset]:[null,null]},M.xaxis={_id:"x",c2p:function(I){return M.project(I)[0]}},M.yaxis={_id:"y",c2p:function(I){return M.project(I)[1]}},M.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},c.setConvert(M.mockAxis,D)},E.saveViewInitial=function(M){var z=M.center||{},D=M.projection,N=D.rotation||{};this.viewInitial={fitbounds:M.fitbounds,"projection.scale":D.scale};var I;M._isScoped?I={"center.lon":z.lon,"center.lat":z.lat}:M._isClipped?I={"projection.rotation.lon":N.lon,"projection.rotation.lat":N.lat}:I={"center.lon":z.lon,"center.lat":z.lat,"projection.rotation.lon":N.lon},p.extendFlat(this.viewInitial,I)},E.render=function(M){this._hasMarkerAngles&&M?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},E._render=function(){var M=this.projection,z=M.getPath(),D;function N(k){var B=M(k.lonlat);return B?r(B[0],B[1]):null}function I(k){return M.isLonLatOverEdges(k.lonlat)?"none":null}for(D in this.basePaths)this.basePaths[D].attr("d",z);for(D in this.dataPaths)this.dataPaths[D].attr("d",function(k){return z(k.geojson)});for(D in this.dataPoints)this.dataPoints[D].attr("display",I).attr("transform",N)};function T(M){var z=M.projection,D=z.type,N=d.projNames[D];N="geo"+p.titleCase(N);for(var I=C[N]||x[N],k=I(),B=M._isSatellite?Math.acos(1/z.distance)*180/Math.PI:M._isClipped?d.lonaxisSpan[D]/2:null,O=["center","rotate","parallels","clipExtent"],H=function(te){return te?k:[]},Y=0;YJ}else return!1},k.getPath=function(){return i().projection(k)},k.getBounds=function(te){return k.getPath().bounds(te)},k.precision(d.precision),M._isSatellite&&k.tilt(z.tilt).distance(z.distance),B&&k.clipAngle(B-d.clipPad),k}function s(M,z,D){var N=1e-6,I=2.5,k=z[M],B=d.scopeDefaults[z.scope],O,H,Y;M==="lonaxis"?(O=B.lonaxisRange,H=B.lataxisRange,Y=function(Q,oe){return[Q,oe]}):M==="lataxis"&&(O=B.lataxisRange,H=B.lonaxisRange,Y=function(Q,oe){return[oe,Q]});var j={type:"linear",range:[O[0],O[1]-N],tick0:k.tick0,dtick:k.dtick};c.setConvert(j,D);var te=c.calcTicks(j);!z.isScoped&&M==="lonaxis"&&te.pop();for(var ie=te.length,ue=new Array(ie),J=0;J0&&I<0&&(I+=360);var O=(I-N)/4;return{type:"Polygon",coordinates:[[[N,k],[N,B],[N+O,B],[N+2*O,B],[N+3*O,B],[I,B],[I,k],[I-O,k],[I-2*O,k],[I-3*O,k],[N,k]]]}}},10816:function(G,U,e){var g=e(84888).KY,C=e(3400).counterRegex,i=e(43520),S="geo",x=C(S),v={};v[S]={valType:"subplotid",dflt:S,editType:"calc"};function p(a){for(var n=a._fullLayout,f=a.calcdata,c=n._subplots[S],l=0;l0&&H<0&&(H+=360);var Y=(O+H)/2,j;if(!u){var te=o?h.projRotate:[Y,0,0];j=a("projection.rotation.lon",te[0]),a("projection.rotation.lat",te[1]),a("projection.rotation.roll",te[2]),E=a("showcoastlines",!o&&y),E&&(a("coastlinecolor"),a("coastlinewidth")),E=a("showocean",y?void 0:!1),E&&a("oceancolor")}var ie,ue;if(u?(ie=-96.6,ue=38.7):(ie=o?Y:j,ue=(B[0]+B[1])/2),a("center.lon",ie),a("center.lat",ue),d&&(a("projection.tilt"),a("projection.distance")),w){var J=h.projParallels||[0,60];a("projection.parallels",J)}a("projection.scale"),E=a("showland",y?void 0:!1),E&&a("landcolor"),E=a("showlakes",y?void 0:!1),E&&a("lakecolor"),E=a("showrivers",y?void 0:!1),E&&(a("rivercolor"),a("riverwidth")),E=a("showcountries",o&&m!=="usa"&&y),E&&(a("countrycolor"),a("countrywidth")),(m==="usa"||m==="north america"&&l===50)&&(a("showsubunits",y),a("subunitcolor"),a("subunitwidth")),o||(E=a("showframe",y),E&&(a("framecolor"),a("framewidth"))),a("bgcolor");var X=a("fitbounds");X&&(delete t.projection.scale,o?(delete t.center.lon,delete t.center.lat):A?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}},79248:function(G,U,e){var g=e(33428),C=e(3400),i=e(24040),S=Math.PI/180,x=180/Math.PI,v={cursor:"pointer"},p={cursor:"auto"};function r(s,L){var M=s.projection,z;return L._isScoped?z=n:L._isClipped?z=c:z=f,z(s,M)}G.exports=r;function t(s,L){return g.behavior.zoom().translate(L.translate()).scale(L.scale())}function a(s,L,M){var z=s.id,D=s.graphDiv,N=D.layout,I=N[z],k=D._fullLayout,B=k[z],O={},H={};function Y(j,te){O[z+"."+j]=C.nestedProperty(I,j).get(),i.call("_storeDirectGUIEdit",N,k._preGUI,O);var ie=C.nestedProperty(B,j);ie.get()!==te&&(ie.set(te),C.nestedProperty(I,j).set(te),H[z+"."+j]=te)}M(Y),Y("projection.scale",L.scale()/s.fitScale),Y("fitbounds",!1),D.emit("plotly_relayout",H)}function n(s,L){var M=t(s,L);function z(){g.select(this).style(v)}function D(){L.scale(g.event.scale).translate(g.event.translate),s.render(!0);var k=L.invert(s.midPt);s.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":L.scale()/s.fitScale,"geo.center.lon":k[0],"geo.center.lat":k[1]})}function N(k){var B=L.invert(s.midPt);k("center.lon",B[0]),k("center.lat",B[1])}function I(){g.select(this).style(p),a(s,L,N)}return M.on("zoomstart",z).on("zoom",D).on("zoomend",I),M}function f(s,L){var M=t(s,L),z=2,D,N,I,k,B,O,H,Y,j;function te(V){return L.invert(V)}function ie(V){var Q=te(V);if(!Q)return!0;var oe=L(Q);return Math.abs(oe[0]-V[0])>z||Math.abs(oe[1]-V[1])>z}function ue(){g.select(this).style(v),D=g.mouse(this),N=L.rotate(),I=L.translate(),k=N,B=te(D)}function J(){if(O=g.mouse(this),ie(D)){M.scale(L.scale()),M.translate(L.translate());return}L.scale(g.event.scale),L.translate([I[0],g.event.translate[1]]),B?te(O)&&(Y=te(O),H=[k[0]+(Y[0]-B[0]),N[1],N[2]],L.rotate(H),k=H):(D=O,B=te(D)),j=!0,s.render(!0);var V=L.rotate(),Q=L.invert(s.midPt);s.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":L.scale()/s.fitScale,"geo.center.lon":Q[0],"geo.center.lat":Q[1],"geo.projection.rotation.lon":-V[0]})}function X(){g.select(this).style(p),j&&a(s,L,ee)}function ee(V){var Q=L.rotate(),oe=L.invert(s.midPt);V("projection.rotation.lon",-Q[0]),V("center.lon",oe[0]),V("center.lat",oe[1])}return M.on("zoomstart",ue).on("zoom",J).on("zoomend",X),M}function c(s,L){L.rotate(),L.scale();var M=t(s,L),z=T(M,"zoomstart","zoom","zoomend"),D=0,N=M.on,I;M.on("zoomstart",function(){g.select(this).style(v);var Y=g.mouse(this),j=L.rotate(),te=j,ie=L.translate(),ue=m(j);I=l(L,Y),N.call(M,"zoom",function(){var J=g.mouse(this);if(L.scale(g.event.scale),!I)Y=J,I=l(L,Y);else if(l(L,J)){L.rotate(j).translate(ie);var X=l(L,J),ee=b(I,X),V=A(h(ue,ee)),Q=u(V,I,te);(!isFinite(Q[0])||!isFinite(Q[1])||!isFinite(Q[2]))&&(Q=te),L.rotate(Q),te=Q}B(z.of(this,arguments))}),k(z.of(this,arguments))}).on("zoomend",function(){g.select(this).style(p),N.call(M,"zoom",null),O(z.of(this,arguments)),a(s,L,H)}).on("zoom.redraw",function(){s.render(!0);var Y=L.rotate();s.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":L.scale()/s.fitScale,"geo.projection.rotation.lon":-Y[0],"geo.projection.rotation.lat":-Y[1]})});function k(Y){D++||Y({type:"zoomstart"})}function B(Y){Y({type:"zoom"})}function O(Y){--D||Y({type:"zoomend"})}function H(Y){var j=L.rotate();Y("projection.rotation.lon",-j[0]),Y("projection.rotation.lat",-j[1])}return g.rebind(M,z,"on")}function l(s,L){var M=s.invert(L);return M&&isFinite(M[0])&&isFinite(M[1])&&_(M)}function m(s){var L=.5*s[0]*S,M=.5*s[1]*S,z=.5*s[2]*S,D=Math.sin(L),N=Math.cos(L),I=Math.sin(M),k=Math.cos(M),B=Math.sin(z),O=Math.cos(z);return[N*k*O+D*I*B,D*k*O-N*I*B,N*I*O+D*k*B,N*k*B-D*I*O]}function h(s,L){var M=s[0],z=s[1],D=s[2],N=s[3],I=L[0],k=L[1],B=L[2],O=L[3];return[M*I-z*k-D*B-N*O,M*k+z*I+D*O-N*B,M*B-z*O+D*I+N*k,M*O+z*B-D*k+N*I]}function b(s,L){if(!(!s||!L)){var M=E(s,L),z=Math.sqrt(y(M,M)),D=.5*Math.acos(Math.max(-1,Math.min(1,y(s,L)))),N=Math.sin(D)/z;return z&&[Math.cos(D),M[2]*N,-M[1]*N,M[0]*N]}}function u(s,L,M){var z=w(L,2,s[0]);z=w(z,1,s[1]),z=w(z,0,s[2]-M[2]);var D=L[0],N=L[1],I=L[2],k=z[0],B=z[1],O=z[2],H=Math.atan2(N,D)*x,Y=Math.sqrt(D*D+N*N),j,te;Math.abs(B)>Y?(te=(B>0?90:-90)-H,j=0):(te=Math.asin(B/Y)*x-H,j=Math.sqrt(Y*Y-B*B));var ie=180-te-2*H,ue=(Math.atan2(O,k)-Math.atan2(I,j))*x,J=(Math.atan2(O,k)-Math.atan2(I,-j))*x,X=o(M[0],M[1],te,ue),ee=o(M[0],M[1],ie,J);return X<=ee?[te,ue,M[2]]:[ie,J,M[2]]}function o(s,L,M,z){var D=d(M-s),N=d(z-L);return Math.sqrt(D*D+N*N)}function d(s){return(s%360+540)%360-180}function w(s,L,M){var z=M*S,D=s.slice(),N=L===0?1:0,I=L===2?1:2,k=Math.cos(z),B=Math.sin(z);return D[N]=s[N]*k-s[I]*B,D[I]=s[I]*k+s[N]*B,D}function A(s){return[Math.atan2(2*(s[0]*s[1]+s[2]*s[3]),1-2*(s[1]*s[1]+s[2]*s[2]))*x,Math.asin(Math.max(-1,Math.min(1,2*(s[0]*s[2]-s[3]*s[1]))))*x,Math.atan2(2*(s[0]*s[3]+s[1]*s[2]),1-2*(s[2]*s[2]+s[3]*s[3]))*x]}function _(s){var L=s[0]*S,M=s[1]*S,z=Math.cos(M);return[z*Math.cos(L),z*Math.sin(L),Math.sin(M)]}function y(s,L){for(var M=0,z=0,D=s.length;zMath.abs(E)?(n.boxEnd[1]=n.boxStart[1]+Math.abs(y)*D*(E>=0?1:-1),n.boxEnd[1]u[3]&&(n.boxEnd[1]=u[3],n.boxEnd[0]=n.boxStart[0]+(u[3]-n.boxStart[1])/Math.abs(D))):(n.boxEnd[0]=n.boxStart[0]+Math.abs(E)/D*(y>=0?1:-1),n.boxEnd[0]u[2]&&(n.boxEnd[0]=u[2],n.boxEnd[1]=n.boxStart[1]+(u[2]-n.boxStart[0])*Math.abs(D)))}else M&&(n.boxEnd[0]=n.boxStart[0]),z&&(n.boxEnd[1]=n.boxStart[1])}else n.boxEnabled?(y=n.boxStart[0]!==n.boxEnd[0],E=n.boxStart[1]!==n.boxEnd[1],y||E?(y&&(T(0,n.boxStart[0],n.boxEnd[0]),r.xaxis.autorange=!1),E&&(T(1,n.boxStart[1],n.boxEnd[1]),r.yaxis.autorange=!1),r.relayoutCallback()):r.glplot.setDirty(),n.boxEnabled=!1,n.boxInited=!1):n.boxInited&&(n.boxInited=!1);break;case"pan":n.boxEnabled=!1,n.boxInited=!1,m?(n.panning||(n.dragStart[0]=h,n.dragStart[1]=b),Math.abs(n.dragStart[0]-h)1;function m(h){if(!l){var b=g.validate(n[h],v[h]);if(b)return n[h]}}S(n,f,c,{type:r,attributes:v,handleDefaults:t,fullLayout:f,font:f.font,fullData:c,getDfltFromLayout:m,autotypenumbersDflt:f.autotypenumbers,paper_bgcolor:f.paper_bgcolor,calendar:f.calendar})};function t(a,n,f,c){for(var l=f("bgcolor"),m=C.combine(l,c.paper_bgcolor),h=["up","center","eye"],b=0;b.999)&&(A="turntable")}else A="turntable";f("dragmode",A),f("hovermode",c.getDfltFromLayout("hovermode"))}},346:function(G,U,e){var g=e(86140),C=e(86968).u,i=e(92880).extendFlat,S=e(3400).counterRegex;function x(v,p,r){return{x:{valType:"number",dflt:v,editType:"camera"},y:{valType:"number",dflt:p,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}G.exports={_arrayAttrRegexps:[S("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(x(0,0,1),{}),center:i(x(0,0,0),{}),eye:i(x(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:C({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:g,yaxis:g,zaxis:g,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(G,U,e){var g=e(43080),C=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var S=i.prototype;S.merge=function(v){for(var p=0;p<3;++p){var r=v[C[p]];if(!r.visible){this.enabled[p]=!1,this.drawSides[p]=!1;continue}this.enabled[p]=r.showspikes,this.colors[p]=g(r.spikecolor),this.drawSides[p]=r.spikesides,this.lineWidth[p]=r.spikethickness}};function x(v){var p=new i;return p.merge(v),p}G.exports=x},87152:function(G,U,e){G.exports=x;var g=e(54460),C=e(3400),i=["xaxis","yaxis","zaxis"];function S(v){for(var p=new Array(3),r=0;r<3;++r){for(var t=v[r],a=new Array(t.length),n=0;n/g," "));a[n]=m,f.tickmode=c}}p.ticks=a;for(var n=0;n<3;++n){.5*(v.glplot.bounds[0][n]+v.glplot.bounds[1][n]);for(var h=0;h<2;++h)p.bounds[h][n]=v.glplot.bounds[h][n]}v.contourLevels=S(a)}},94424:function(G){function U(g,C){var i=[0,0,0,0],S,x;for(S=0;S<4;++S)for(x=0;x<4;++x)i[x]+=g[4*S+x]*C[S];return i}function e(g,C){var i=U(g.projection,U(g.view,U(g.model,[C[0],C[1],C[2],1])));return i}G.exports=e},98432:function(G,U,e){var g=e(67792).gl_plot3d,C=g.createCamera,i=g.createScene,S=e(5408),x=e(89184),v=e(24040),p=e(3400),r=p.preserveDrawingBuffer(),t=e(54460),a=e(93024),n=e(43080),f=e(16576),c=e(94424),l=e(44728),m=e(9020),h=e(87152),b=e(19280).applyAutorangeOptions,u,o,d=!1;function w(D,N){var I=document.createElement("div"),k=D.container;this.graphDiv=D.graphDiv;var B=document.createElementNS("http://www.w3.org/2000/svg","svg");B.style.position="absolute",B.style.top=B.style.left="0px",B.style.width=B.style.height="100%",B.style["z-index"]=20,B.style["pointer-events"]="none",I.appendChild(B),this.svgContainer=B,I.id=D.id,I.style.position="absolute",I.style.top=I.style.left="0px",I.style.width=I.style.height="100%",k.appendChild(I),this.fullLayout=N,this.id=D.id||"scene",this.fullSceneLayout=N[this.id],this.plotArgs=[[],{},{}],this.axesOptions=l(N,N[this.id]),this.spikeOptions=m(N[this.id]),this.container=I,this.staticMode=!!D.staticPlot,this.pixelRatio=this.pixelRatio||D.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=v.getComponentMethod("annotations3d","convert"),this.drawAnnotations=v.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var A=w.prototype;A.prepareOptions=function(){var D=this,N={canvas:D.canvas,gl:D.gl,glOptions:{preserveDrawingBuffer:r,premultipliedAlpha:!0,antialias:!0},container:D.container,axes:D.axesOptions,spikes:D.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:D.camera,pixelRatio:D.pixelRatio};if(D.staticMode){if(!o&&(u=document.createElement("canvas"),o=S({canvas:u,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!o))throw new Error("error creating static canvas/context for image server");N.gl=o,N.canvas=u}return N};var _=!0;A.tryCreatePlot=function(){var D=this,N=D.prepareOptions(),I=!0;try{D.glplot=i(N)}catch{if(D.staticMode||!_||r)I=!1;else{p.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{r=N.glOptions.preserveDrawingBuffer=!0,D.glplot=i(N)}catch{r=N.glOptions.preserveDrawingBuffer=!1,I=!1}}}return _=!1,I},A.initializeGLCamera=function(){var D=this,N=D.fullSceneLayout.camera,I=N.projection.type==="orthographic";D.camera=C(D.container,{center:[N.center.x,N.center.y,N.center.z],eye:[N.eye.x,N.eye.y,N.eye.z],up:[N.up.x,N.up.y,N.up.z],_ortho:I,zoomMin:.01,zoomMax:100,mode:"orbit"})},A.initializeGLPlot=function(){var D=this;D.initializeGLCamera();var N=D.tryCreatePlot();if(!N)return f(D);D.traces={},D.make4thDimension();var I=D.graphDiv,k=I.layout,B=function(){var H={};return D.isCameraChanged(k)&&(H[D.id+".camera"]=D.getCamera()),D.isAspectChanged(k)&&(H[D.id+".aspectratio"]=D.glplot.getAspectratio(),k[D.id].aspectmode!=="manual"&&(D.fullSceneLayout.aspectmode=k[D.id].aspectmode=H[D.id+".aspectmode"]="manual")),H},O=function(H){if(H.fullSceneLayout.dragmode!==!1){var Y=B();H.saveLayout(k),H.graphDiv.emit("plotly_relayout",Y)}};return D.glplot.canvas&&(D.glplot.canvas.addEventListener("mouseup",function(){O(D)}),D.glplot.canvas.addEventListener("touchstart",function(){d=!0}),D.glplot.canvas.addEventListener("wheel",function(H){if(I._context._scrollZoom.gl3d){if(D.camera._ortho){var Y=H.deltaX>H.deltaY?1.1:.9090909090909091,j=D.glplot.getAspectratio();D.glplot.setAspectratio({x:Y*j.x,y:Y*j.y,z:Y*j.z})}O(D)}},x?{passive:!1}:!1),D.glplot.canvas.addEventListener("mousemove",function(){if(D.fullSceneLayout.dragmode!==!1&&D.camera.mouseListener.buttons!==0){var H=B();D.graphDiv.emit("plotly_relayouting",H)}}),D.staticMode||D.glplot.canvas.addEventListener("webglcontextlost",function(H){I&&I.emit&&I.emit("plotly_webglcontextlost",{event:H,layer:D.id})},!1)),D.glplot.oncontextloss=function(){D.recoverContext()},D.glplot.onrender=function(){D.render()},!0},A.render=function(){var D=this,N=D.graphDiv,I,k=D.svgContainer,B=D.container.getBoundingClientRect();N._fullLayout._calcInverseTransform(N);var O=N._fullLayout._invScaleX,H=N._fullLayout._invScaleY,Y=B.width*O,j=B.height*H;k.setAttributeNS(null,"viewBox","0 0 "+Y+" "+j),k.setAttributeNS(null,"width",Y),k.setAttributeNS(null,"height",j),h(D),D.glplot.axes.update(D.axesOptions);for(var te=Object.keys(D.traces),ie=null,ue=D.glplot.selection,J=0;J")):I.type==="isosurface"||I.type==="volume"?(oe.valueLabel=t.hoverLabelText(D._mockAxis,D._mockAxis.d2l(ue.traceCoordinate[3]),I.valuehoverformat),ce.push("value: "+oe.valueLabel),ue.textLabel&&ce.push(ue.textLabel),ne=ce.join("
    ")):ne=ue.textLabel;var ge={x:ue.traceCoordinate[0],y:ue.traceCoordinate[1],z:ue.traceCoordinate[2],data:V._input,fullData:V,curveNumber:V.index,pointNumber:Q};a.appendArrayPointValue(ge,V,Q),I._module.eventData&&(ge=V._module.eventData(ge,ue,V,{},Q));var Te={points:[ge]};if(D.fullSceneLayout.hovermode){var we=[];a.loneHover({trace:V,x:(.5+.5*ee[0]/ee[3])*Y,y:(.5-.5*ee[1]/ee[3])*j,xLabel:oe.xLabel,yLabel:oe.yLabel,zLabel:oe.zLabel,text:ne,name:ie.name,color:a.castHoverOption(V,Q,"bgcolor")||ie.color,borderColor:a.castHoverOption(V,Q,"bordercolor"),fontFamily:a.castHoverOption(V,Q,"font.family"),fontSize:a.castHoverOption(V,Q,"font.size"),fontColor:a.castHoverOption(V,Q,"font.color"),nameLength:a.castHoverOption(V,Q,"namelength"),textAlign:a.castHoverOption(V,Q,"align"),hovertemplate:p.castOption(V,Q,"hovertemplate"),hovertemplateLabels:p.extendFlat({},ge,oe),eventData:[ge]},{container:k,gd:N,inOut_bbox:we}),ge.bbox=we[0]}ue.distance<5&&(ue.buttons||d)?N.emit("plotly_click",Te):N.emit("plotly_hover",Te),this.oldEventData=Te}else a.loneUnhover(k),this.oldEventData&&N.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;D.drawAnnotations(D)},A.recoverContext=function(){var D=this;D.glplot.dispose();var N=function(){if(D.glplot.gl.isContextLost()){requestAnimationFrame(N);return}if(!D.initializeGLPlot()){p.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}D.plot.apply(D,D.plotArgs)};requestAnimationFrame(N)};var y=["xaxis","yaxis","zaxis"];function E(D,N,I){for(var k=D.fullSceneLayout,B=0;B<3;B++){var O=y[B],H=O.charAt(0),Y=k[O],j=N[H],te=N[H+"calendar"],ie=N["_"+H+"length"];if(!p.isArrayOrTypedArray(j))I[0][B]=Math.min(I[0][B],0),I[1][B]=Math.max(I[1][B],ie-1);else for(var ue,J=0;J<(ie||j.length);J++)if(p.isArrayOrTypedArray(j[J]))for(var X=0;XV[1][H])V[0][H]=-1,V[1][H]=1;else{var Re=V[1][H]-V[0][H];V[0][H]-=Re/32,V[1][H]+=Re/32}if(oe=[V[0][H],V[1][H]],oe=b(oe,j),V[0][H]=oe[0],V[1][H]=oe[1],j.isReversed()){var be=V[0][H];V[0][H]=V[1][H],V[1][H]=be}}else oe=j.range,V[0][H]=j.r2l(oe[0]),V[1][H]=j.r2l(oe[1]);V[0][H]===V[1][H]&&(V[0][H]-=1,V[1][H]+=1),j.range=[V[0][H],V[1][H]],j.limitRange(),k.glplot.setBounds(H,{min:j.range[0]*X[H],max:j.range[1]*X[H]})}var Ae,me=ie.aspectmode;if(me==="cube")Ae=[1,1,1];else if(me==="manual"){var Le=ie.aspectratio;Ae=[Le.x,Le.y,Le.z]}else if(me==="auto"||me==="data"){var He=[1,1,1];for(H=0;H<3;++H){j=ie[y[H]],te=j.type;var Ue=Q[te];He[H]=Math.pow(Ue.acc,1/Ue.count)/X[H]}me==="data"||Math.max.apply(null,He)/Math.min.apply(null,He)<=4?Ae=He:Ae=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ie.aspectratio.x=ue.aspectratio.x=Ae[0],ie.aspectratio.y=ue.aspectratio.y=Ae[1],ie.aspectratio.z=ue.aspectratio.z=Ae[2],k.glplot.setAspectratio(ie.aspectratio),k.viewInitial.aspectratio||(k.viewInitial.aspectratio={x:ie.aspectratio.x,y:ie.aspectratio.y,z:ie.aspectratio.z}),k.viewInitial.aspectmode||(k.viewInitial.aspectmode=ie.aspectmode);var ke=ie.domain||null,Ve=N._size||null;if(ke&&Ve){var Ie=k.container.style;Ie.position="absolute",Ie.left=Ve.l+ke.x[0]*Ve.w+"px",Ie.top=Ve.t+(1-ke.y[1])*Ve.h+"px",Ie.width=Ve.w*(ke.x[1]-ke.x[0])+"px",Ie.height=Ve.h*(ke.y[1]-ke.y[0])+"px"}k.glplot.redraw()}},A.destroy=function(){var D=this;D.glplot&&(D.camera.mouseListener.enabled=!1,D.container.removeEventListener("wheel",D.camera.wheelListener),D.camera=null,D.glplot.dispose(),D.container.parentNode.removeChild(D.container),D.glplot=null)};function s(D){return[[D.eye.x,D.eye.y,D.eye.z],[D.center.x,D.center.y,D.center.z],[D.up.x,D.up.y,D.up.z]]}function L(D){return{up:{x:D.up[0],y:D.up[1],z:D.up[2]},center:{x:D.center[0],y:D.center[1],z:D.center[2]},eye:{x:D.eye[0],y:D.eye[1],z:D.eye[2]},projection:{type:D._ortho===!0?"orthographic":"perspective"}}}A.getCamera=function(){var D=this;return D.camera.view.recalcMatrix(D.camera.view.lastT()),L(D.camera)},A.setViewport=function(D){var N=this,I=D.camera;N.camera.lookAt.apply(this,s(I)),N.glplot.setAspectratio(D.aspectratio);var k=I.projection.type==="orthographic",B=N.camera._ortho;k!==B&&(N.glplot.redraw(),N.glplot.clearRGBA(),N.glplot.dispose(),N.initializeGLPlot())},A.isCameraChanged=function(D){var N=this,I=N.getCamera(),k=p.nestedProperty(D,N.id+".camera"),B=k.get();function O(te,ie,ue,J){var X=["up","center","eye"],ee=["x","y","z"];return ie[X[ue]]&&te[X[ue]][ee[J]]===ie[X[ue]][ee[J]]}var H=!1;if(B===void 0)H=!0;else{for(var Y=0;Y<3;Y++)for(var j=0;j<3;j++)if(!O(I,B,Y,j)){H=!0;break}(!B.projection||I.projection&&I.projection.type!==B.projection.type)&&(H=!0)}return H},A.isAspectChanged=function(D){var N=this,I=N.glplot.getAspectratio(),k=p.nestedProperty(D,N.id+".aspectratio"),B=k.get();return B===void 0||B.x!==I.x||B.y!==I.y||B.z!==I.z},A.saveLayout=function(D){var N=this,I=N.fullLayout,k,B,O,H,Y,j,te=N.isCameraChanged(D),ie=N.isAspectChanged(D),ue=te||ie;if(ue){var J={};if(te&&(k=N.getCamera(),B=p.nestedProperty(D,N.id+".camera"),O=B.get(),J[N.id+".camera"]=O),ie&&(H=N.glplot.getAspectratio(),Y=p.nestedProperty(D,N.id+".aspectratio"),j=Y.get(),J[N.id+".aspectratio"]=j),v.call("_storeDirectGUIEdit",D,I._preGUI,J),te){B.set(k);var X=p.nestedProperty(I,N.id+".camera");X.set(k)}if(ie){Y.set(H);var ee=p.nestedProperty(I,N.id+".aspectratio");ee.set(H),N.glplot.redraw()}}return ue},A.updateFx=function(D,N){var I=this,k=I.camera;if(k)if(D==="orbit")k.mode="orbit",k.keyBindingMode="rotate";else if(D==="turntable"){k.up=[0,0,1],k.mode="turntable",k.keyBindingMode="rotate";var B=I.graphDiv,O=B._fullLayout,H=I.fullSceneLayout.camera,Y=H.up.x,j=H.up.y,te=H.up.z;if(te/Math.sqrt(Y*Y+j*j+te*te)<.999){var ie=I.id+".camera.up",ue={x:0,y:0,z:1},J={};J[ie]=ue;var X=B.layout;v.call("_storeDirectGUIEdit",X,O._preGUI,J),H.up=ue,p.nestedProperty(X,ie).set(ue)}}else k.keyBindingMode=D;I.fullSceneLayout.hovermode=N};function M(D,N,I){for(var k=0,B=I-1;k0)for(var Y=255/H,j=0;j<3;++j)D[O+j]=Math.min(Y*D[O+j],255)}}A.toImage=function(D){var N=this;D||(D="png"),N.staticMode&&N.container.appendChild(u),N.glplot.redraw();var I=N.glplot.gl,k=I.drawingBufferWidth,B=I.drawingBufferHeight;I.bindFramebuffer(I.FRAMEBUFFER,null);var O=new Uint8Array(k*B*4);I.readPixels(0,0,k,B,I.RGBA,I.UNSIGNED_BYTE,O),M(O,k,B),z(O,k,B);var H=document.createElement("canvas");H.width=k,H.height=B;var Y=H.getContext("2d",{willReadFrequently:!0}),j=Y.createImageData(k,B);j.data.set(O),Y.putImageData(j,0,0);var te;switch(D){case"jpeg":te=H.toDataURL("image/jpeg");break;case"webp":te=H.toDataURL("image/webp");break;default:te=H.toDataURL("image/png")}return N.staticMode&&N.container.removeChild(u),te},A.setConvert=function(){for(var D=this,N=0;N<3;N++){var I=D.fullSceneLayout[y[N]];t.setConvert(I,D.fullLayout),I.setScale=p.noop}},A.make4thDimension=function(){var D=this,N=D.graphDiv,I=N._fullLayout;D._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},t.setConvert(D._mockAxis,I)},G.exports=w},52094:function(G){G.exports=function(e,g,C,i){i=i||e.length;for(var S=new Array(i),x=0;xOpenStreetMap contributors',S=['© Carto',i].join(" "),x=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),v=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),p={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:S,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:S,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:x,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:x,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:v,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},r=g(p);G.exports={requiredVersion:C,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:p,styleValuesNonMapbox:r,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+C+"."].join(` +`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",r.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(G,U,e){var g=e(3400);G.exports=function(i,S){var x=i.split(" "),v=x[0],p=x[1],r=g.isArrayOrTypedArray(S)?g.mean(S):S,t=.5+r/100,a=1.5+r/100,n=["",""],f=[0,0];switch(v){case"top":n[0]="top",f[1]=-a;break;case"bottom":n[0]="bottom",f[1]=a;break}switch(p){case"left":n[1]="right",f[0]=-t;break;case"right":n[1]="left",f[0]=t;break}var c;return n[0]&&n[1]?c=n.join("-"):n[0]?c=n[0]:n[1]?c=n[1]:c="center",{anchor:c,offset:f}}},33688:function(G,U,e){var g=e(3480),C=e(3400),i=C.strTranslate,S=C.strScale,x=e(84888).KY,v=e(9616),p=e(33428),r=e(43616),t=e(72736),a=e(14440),n="mapbox",f=U.constants=e(47552);U.name=n,U.attr="subplot",U.idRoot=n,U.idRegex=U.attrRegex=C.counterRegex(n),U.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},U.layoutAttributes=e(5232),U.supplyLayoutDefaults=e(5976),U.plot=function(h){var b=h._fullLayout,u=h.calcdata,o=b._subplots[n];if(g.version!==f.requiredVersion)throw new Error(f.wrongVersionErrorMsg);var d=c(h,o);g.accessToken=d;for(var w=0;wN/2){var I=L.split("|").join("
    ");z.text(I).attr("data-unformatted",I).call(t.convertToTspans,m),D=r.bBox(z.node())}z.attr("transform",i(-3,-D.height+8)),M.insert("rect",".static-attribution").attr({x:-D.width-6,y:-D.height-3,width:D.width+6,height:D.height+3,fill:"rgba(255, 255, 255, 0.75)"});var k=1;D.width+6>N&&(k=N/(D.width+6));var B=[u.l+u.w*w.x[1],u.t+u.h*(1-w.y[0])];M.attr("transform",i(B[0],B[1])+S(k))}};function c(m,h){var b=m._fullLayout,u=m._context;if(u.mapboxAccessToken==="")return"";for(var o=[],d=[],w=!1,A=!1,_=0;_1&&C.warn(f.multipleTokensErrorMsg),o[0]):(d.length&&C.log(["Listed mapbox access token(s)",d.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function l(m){return typeof m=="string"&&(f.styleValuesMapbox.indexOf(m)!==-1||m.indexOf("mapbox://")===0||m.indexOf("stamen")===0)}U.updateFx=function(m){for(var h=m._fullLayout,b=h._subplots[n],u=0;u0){for(var f=0;f0}function r(a){var n={},f={};switch(a.type){case"circle":g.extendFlat(f,{"circle-radius":a.circle.radius,"circle-color":a.color,"circle-opacity":a.opacity});break;case"line":g.extendFlat(f,{"line-width":a.line.width,"line-color":a.color,"line-opacity":a.opacity,"line-dasharray":a.line.dash});break;case"fill":g.extendFlat(f,{"fill-color":a.color,"fill-outline-color":a.fill.outlinecolor,"fill-opacity":a.opacity});break;case"symbol":var c=a.symbol,l=i(c.textposition,c.iconsize);g.extendFlat(n,{"icon-image":c.icon+"-15","icon-size":c.iconsize/10,"text-field":c.text,"text-size":c.textfont.size,"text-anchor":l.anchor,"text-offset":l.offset,"symbol-placement":c.placement}),g.extendFlat(f,{"icon-color":a.color,"text-color":c.textfont.color,"text-opacity":a.opacity});break;case"raster":g.extendFlat(f,{"raster-fade-duration":0,"raster-opacity":a.opacity});break}return{layout:n,paint:f}}function t(a){var n=a.sourcetype,f=a.source,c={type:n},l;return n==="geojson"?l="data":n==="vector"?l=typeof f=="string"?"url":"tiles":n==="raster"?(l="tiles",c.tileSize=256):n==="image"&&(l="url",c.coordinates=a.coordinates),c[l]=f,a.sourceattribution&&(c.attribution=C(a.sourceattribution)),c}G.exports=function(n,f,c){var l=new x(n,f);return l.update(c),l}},5232:function(G,U,e){var g=e(3400),C=e(76308).defaultLine,i=e(86968).u,S=e(25376),x=e(52904).textposition,v=e(67824).overrideAll,p=e(31780).templatedArray,r=e(47552),t=S({});t.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var a=G.exports=v({_arrayAttrRegexps:[g.counterRegex("mapbox",".layers",!0)],domain:i({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:r.styleValuesMapbox.concat(r.styleValuesNonMapbox),dflt:r.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:p("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:C},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:C}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:t,textposition:g.extendFlat({},x,{arrayOk:!1})}})},"plot","from-root");a.uirevision={valType:"any",editType:"none"}},5976:function(G,U,e){var g=e(3400),C=e(168),i=e(51272),S=e(5232);G.exports=function(r,t,a){C(r,t,a,{type:"mapbox",attributes:S,handleDefaults:x,partition:"y",accessToken:t._mapboxAccessToken})};function x(p,r,t,a){t("accesstoken",a.accessToken),t("style"),t("center.lon"),t("center.lat"),t("zoom"),t("bearing"),t("pitch");var n=t("bounds.west"),f=t("bounds.east"),c=t("bounds.south"),l=t("bounds.north");(n===void 0||f===void 0||c===void 0||l===void 0)&&delete r.bounds,i(p,r,{name:"layers",handleItemDefaults:v}),r._input=p}function v(p,r){function t(m,h){return g.coerce(p,r,S.layers,m,h)}var a=t("visible");if(a){var n=t("sourcetype"),f=n==="raster"||n==="image";t("source"),t("sourceattribution"),n==="vector"&&t("sourcelayer"),n==="image"&&t("coordinates");var c;f&&(c="raster");var l=t("type",c);f&&l!=="raster"&&(l=r.type="raster",g.log("Source types *raster* and *image* must drawn *raster* layer type.")),t("below"),t("color"),t("opacity"),t("minzoom"),t("maxzoom"),l==="circle"&&t("circle.radius"),l==="line"&&(t("line.width"),t("line.dash")),l==="fill"&&t("fill.outlinecolor"),l==="symbol"&&(t("symbol.icon"),t("symbol.iconsize"),t("symbol.text"),g.coerceFont(t,"symbol.textfont"),t("symbol.textposition"),t("symbol.placement"))}}},14440:function(G,U,e){var g=e(3480),C=e(3400),i=e(27144),S=e(24040),x=e(54460),v=e(86476),p=e(93024),r=e(72760),t=r.drawMode,a=r.selectMode,n=e(22676).prepSelect,f=e(22676).clearOutline,c=e(22676).clearSelectionsCache,l=e(22676).selectOnClick,m=e(47552),h=e(22360);function b(_,y){this.id=y,this.gd=_;var E=_._fullLayout,T=_._context;this.container=E._glcontainer.node(),this.isStatic=T.staticPlot,this.uid=E._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(E),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var u=b.prototype;u.plot=function(_,y,E){var T=this,s=y[T.id];T.map&&s.accesstoken!==T.accessToken&&(T.map.remove(),T.map=null,T.styleObj=null,T.traceHash={},T.layerList=[]);var L;T.map?L=new Promise(function(M,z){T.updateMap(_,y,M,z)}):L=new Promise(function(M,z){T.createMap(_,y,M,z)}),E.push(L)},u.createMap=function(_,y,E,T){var s=this,L=y[s.id],M=s.styleObj=d(L.style,y);s.accessToken=L.accesstoken;var z=L.bounds,D=z?[[z.west,z.south],[z.east,z.north]]:null,N=s.map=new g.Map({container:s.div,style:M.style,center:A(L.center),zoom:L.zoom,bearing:L.bearing,pitch:L.pitch,maxBounds:D,interactive:!s.isStatic,preserveDrawingBuffer:s.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new g.AttributionControl({compact:!0}));N._canvas.style.left="0px",N._canvas.style.top="0px",s.rejectOnError(T),s.isStatic||s.initFx(_,y);var I=[];I.push(new Promise(function(k){N.once("load",k)})),I=I.concat(i.fetchTraceGeoData(_)),Promise.all(I).then(function(){s.fillBelowLookup(_,y),s.updateData(_),s.updateLayout(y),s.resolveOnRender(E)}).catch(T)},u.updateMap=function(_,y,E,T){var s=this,L=s.map,M=y[this.id];s.rejectOnError(T);var z=[],D=d(M.style,y);JSON.stringify(s.styleObj)!==JSON.stringify(D)&&(s.styleObj=D,L.setStyle(D.style),s.traceHash={},z.push(new Promise(function(N){L.once("styledata",N)}))),z=z.concat(i.fetchTraceGeoData(_)),Promise.all(z).then(function(){s.fillBelowLookup(_,y),s.updateData(_),s.updateLayout(y),s.resolveOnRender(E)}).catch(T)},u.fillBelowLookup=function(_,y){var E=y[this.id],T=E.layers,s,L,M=this.belowLookup={},z=!1;for(s=0;s<_.length;s++){var D=_[s][0].trace,N=D._module;typeof D.below=="string"?L=D.below:N.getBelow&&(L=N.getBelow(D,this)),L===""&&(z=!0),M["trace-"+D.uid]=L||""}for(s=0;s1)for(s=0;s-1&&l(D.originalEvent,T,[E.xaxis],[E.yaxis],E.id,z),N.indexOf("event")>-1&&p.click(T,D.originalEvent)}}},u.updateFx=function(_){var y=this,E=y.map,T=y.gd;if(y.isStatic)return;function s(D){var N=y.map.unproject(D);return[N.lng,N.lat]}var L=_.dragmode,M;M=function(D,N){if(N.isRect){var I=D.range={};I[y.id]=[s([N.xmin,N.ymin]),s([N.xmax,N.ymax])]}else{var k=D.lassoPoints={};k[y.id]=N.map(s)}};var z=y.dragOptions;y.dragOptions=C.extendDeep(z||{},{dragmode:_.dragmode,element:y.div,gd:T,plotinfo:{id:y.id,domain:_[y.id].domain,xaxis:y.xaxis,yaxis:y.yaxis,fillRangeItems:M},xaxes:[y.xaxis],yaxes:[y.yaxis],subplot:y.id}),E.off("click",y.onClickInPanHandler),a(L)||t(L)?(E.dragPan.disable(),E.on("zoomstart",y.clearOutline),y.dragOptions.prepFn=function(D,N,I){n(D,N,I,y.dragOptions,L)},v.init(y.dragOptions)):(E.dragPan.enable(),E.off("zoomstart",y.clearOutline),y.div.onmousedown=null,y.div.ontouchstart=null,y.div.removeEventListener("touchstart",y.div._ontouchstart),y.onClickInPanHandler=y.onClickInPanFn(y.dragOptions),E.on("click",y.onClickInPanHandler))},u.updateFramework=function(_){var y=_[this.id].domain,E=_._size,T=this.div.style;T.width=E.w*(y.x[1]-y.x[0])+"px",T.height=E.h*(y.y[1]-y.y[0])+"px",T.left=E.l+y.x[0]*E.w+"px",T.top=E.t+(1-y.y[1])*E.h+"px",this.xaxis._offset=E.l+y.x[0]*E.w,this.xaxis._length=E.w*(y.x[1]-y.x[0]),this.yaxis._offset=E.t+(1-y.y[1])*E.h,this.yaxis._length=E.h*(y.y[1]-y.y[0])},u.updateLayers=function(_){var y=_[this.id],E=y.layers,T=this.layerList,s;if(E.length!==T.length){for(s=0;s=Q.width-20?(Z["text-anchor"]="start",Z.x=5):(Z["text-anchor"]="end",Z.x=Q._paper.attr("width")-7),oe.attr(Z);var se=oe.select(".js-link-to-tool"),ne=oe.select(".js-link-spacer"),ce=oe.select(".js-sourcelinks");V._context.showSources&&V._context.showSources(V),V._context.showLink&&_(V,se),ne.text(se.text()&&ce.text()?" - ":"")}};function _(V,Q){Q.text("");var oe=Q.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(V._context.linkText+" »");if(V._context.sendData)oe.on("click",function(){d.sendDataToCloud(V)});else{var $=window.location.pathname.split("/"),Z=window.location.search;oe.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+$[2].split(".")[0]+"/"+$[1]+Z})}}d.sendDataToCloud=function(V){var Q=(window.PLOTLYENV||{}).BASE_URL||V._context.plotlyServerURL;if(Q){V.emit("plotly_beforeexport");var oe=g.select(V).append("div").attr("id","hiddenform").style("display","none"),$=oe.append("form").attr({action:Q+"/external",method:"post",target:"_blank"}),Z=$.append("input").attr({type:"text",name:"data"});return Z.node().value=d.graphJson(V,!1,"keepdata"),$.node().submit(),oe.remove(),V.emit("plotly_afterexport"),!1}};var y=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],E=["year","month","dayMonth","dayMonthYear"];d.supplyDefaults=function(V,Q){var oe=Q&&Q.skipUpdateCalc,$=V._fullLayout||{};if($._skipDefaults){delete $._skipDefaults;return}var Z=V._fullLayout={},se=V.layout||{},ne=V._fullData||[],ce=V._fullData=[],ge=V.data||[],Te=V.calcdata||[],we=V._context||{},Re;V._transitionData||d.createTransitionData(V),Z._dfltTitle={plot:o(V,"Click to enter Plot title"),x:o(V,"Click to enter X axis title"),y:o(V,"Click to enter Y axis title"),colorbar:o(V,"Click to enter Colorscale title"),annotation:o(V,"new text")},Z._traceWord=o(V,"trace");var be=L(V,y);if(Z._mapboxAccessToken=we.mapboxAccessToken,$._initialAutoSizeIsDone){var Ae=$.width,me=$.height;d.supplyLayoutGlobalDefaults(se,Z,be),se.width||(Z.width=Ae),se.height||(Z.height=me),d.sanitizeMargins(Z)}else{d.supplyLayoutGlobalDefaults(se,Z,be);var Le=!se.width||!se.height,He=Z.autosize,Ue=we.autosizable,ke=Le&&(He||Ue);ke?d.plotAutoSize(V,se,Z):Le&&d.sanitizeMargins(Z),!He&&Le&&(se.width=Z.width,se.height=Z.height)}Z._d3locale=M(be,Z.separators),Z._extraFormat=L(V,E),Z._initialAutoSizeIsDone=!0,Z._dataLength=ge.length,Z._modules=[],Z._visibleModules=[],Z._basePlotModules=[];var Ve=Z._subplots=s(),Ie=Z._splomAxes={x:{},y:{}},rt=Z._splomSubplots={};Z._splomGridDflt={},Z._scatterStackOpts={},Z._firstScatter={},Z._alignmentOpts={},Z._colorAxes={},Z._requestRangeslider={},Z._traceUids=T(ne,ge),Z._globalTransforms=(V._context||{}).globalTransforms,d.supplyDataDefaults(ge,ce,se,Z);var Ke=Object.keys(Ie.x),$e=Object.keys(Ie.y);if(Ke.length>1&&$e.length>1){for(v.getComponentMethod("grid","sizeDefaults")(se,Z),Re=0;Re15&&$e.length>15&&Z.shapes.length===0&&Z.images.length===0,d.linkSubplots(ce,Z,ne,$),d.cleanPlot(ce,Z,ne,$);var St=!!($._has&&$._has("gl2d")),nt=!!(Z._has&&Z._has("gl2d")),ze=!!($._has&&$._has("cartesian")),Xe=!!(Z._has&&Z._has("cartesian")),Je=ze||St,We=Xe||nt;Je&&!We?$._bgLayer.remove():We&&!Je&&(Z._shouldCreateBgLayer=!0),$._zoomlayer&&!V._dragging&&c({_fullLayout:$}),z(ce,Z),u(Z,$),v.getComponentMethod("colorscale","crossTraceDefaults")(ce,Z),Z._preGUI||(Z._preGUI={}),Z._tracePreGUI||(Z._tracePreGUI={});var Fe=Z._tracePreGUI,xe={},ye;for(ye in Fe)xe[ye]="old";for(Re=0;Re0){var we=1-2*se;ne=Math.round(we*ne),ce=Math.round(we*ce)}}var Re=d.layoutAttributes.width.min,be=d.layoutAttributes.height.min;ne1,me=!oe.height&&Math.abs($.height-ce)>1;(me||Ae)&&(Ae&&($.width=ne),me&&($.height=ce)),Q._initialAutoSize||(Q._initialAutoSize={width:ne,height:ce}),d.sanitizeMargins($)},d.supplyLayoutModuleDefaults=function(V,Q,oe,$){var Z=v.componentsRegistry,se=Q._basePlotModules,ne,ce,ge,Te=v.subplotsRegistry.cartesian;for(ne in Z)ge=Z[ne],ge.includeBasePlot&&ge.includeBasePlot(V,Q);se.length||se.push(Te),Q._has("cartesian")&&(v.getComponentMethod("grid","contentDefaults")(V,Q),Te.finalizeSubplots(V,Q));for(var we in Q._subplots)Q._subplots[we].sort(t.subplotSort);for(ce=0;ce1&&(oe.l/=He,oe.r/=He)}if(be){var Ue=(oe.t+oe.b)/be;Ue>1&&(oe.t/=Ue,oe.b/=Ue)}var ke=oe.xl!==void 0?oe.xl:oe.x,Ve=oe.xr!==void 0?oe.xr:oe.x,Ie=oe.yt!==void 0?oe.yt:oe.y,rt=oe.yb!==void 0?oe.yb:oe.y;Ae[Q]={l:{val:ke,size:oe.l+Le},r:{val:Ve,size:oe.r+Le},b:{val:rt,size:oe.b+Le},t:{val:Ie,size:oe.t+Le}},me[Q]=1}if(!$._replotting)return d.doAutoMargin(V)}};function Y(V){if("_redrawFromAutoMarginCount"in V._fullLayout)return!1;var Q=f.list(V,"",!0);for(var oe in Q)if(Q[oe].autoshift||Q[oe].shift)return!0;return!1}d.doAutoMargin=function(V){var Q=V._fullLayout,oe=Q.width,$=Q.height;Q._size||(Q._size={}),B(Q);var Z=Q._size,se=Q.margin,ne={t:0,b:0,l:0,r:0},ce=t.extendFlat({},Z),ge=se.l,Te=se.r,we=se.t,Re=se.b,be=Q._pushmargin,Ae=Q._pushmarginIds,me=Q.minreducedwidth,Le=Q.minreducedheight;if(se.autoexpand!==!1){for(var He in be)Ae[He]||delete be[He];var Ue=V._fullLayout._reservedMargin;for(var ke in Ue)for(var Ve in Ue[ke]){var Ie=Ue[ke][Ve];ne[Ve]=Math.max(ne[Ve],Ie)}be.base={l:{val:0,size:ge},r:{val:1,size:Te},t:{val:1,size:we},b:{val:0,size:Re}};for(var rt in ne){var Ke=0;for(var $e in be)$e!=="base"&&S(be[$e][rt].size)&&(Ke=be[$e][rt].size>Ke?be[$e][rt].size:Ke);var lt=Math.max(0,se[rt]-Ke);ne[rt]=Math.max(0,ne[rt]-lt)}for(var ht in be){var dt=be[ht].l||{},xt=be[ht].b||{},St=dt.val,nt=dt.size,ze=xt.val,Xe=xt.size,Je=oe-ne.r-ne.l,We=$-ne.t-ne.b;for(var Fe in be){if(S(nt)&&be[Fe].r){var xe=be[Fe].r.val,ye=be[Fe].r.size;if(xe>St){var Ee=(nt*xe+(ye-Je)*St)/(xe-St),Me=(ye*(1-St)+(nt-Je)*(1-xe))/(xe-St);Ee+Me>ge+Te&&(ge=Ee,Te=Me)}}if(S(Xe)&&be[Fe].t){var Ne=be[Fe].t.val,je=be[Fe].t.size;if(Ne>ze){var it=(Xe*Ne+(je-We)*ze)/(Ne-ze),mt=(je*(1-ze)+(Xe-We)*(1-Ne))/(Ne-ze);it+mt>Re+we&&(Re=it,we=mt)}}}}}var bt=t.constrain(oe-se.l-se.r,O,me),vt=t.constrain($-se.t-se.b,H,Le),Lt=Math.max(0,oe-bt),ct=Math.max(0,$-vt);if(Lt){var Tt=(ge+Te)/Lt;Tt>1&&(ge/=Tt,Te/=Tt)}if(ct){var Bt=(Re+we)/ct;Bt>1&&(Re/=Bt,we/=Bt)}if(Z.l=Math.round(ge)+ne.l,Z.r=Math.round(Te)+ne.r,Z.t=Math.round(we)+ne.t,Z.b=Math.round(Re)+ne.b,Z.p=Math.round(se.pad),Z.w=Math.round(oe)-Z.l-Z.r,Z.h=Math.round($)-Z.t-Z.b,!Q._replotting&&(d.didMarginChange(ce,Z)||Y(V))){"_redrawFromAutoMarginCount"in Q?Q._redrawFromAutoMarginCount++:Q._redrawFromAutoMarginCount=1;var ir=3*(1+Object.keys(Ae).length);if(Q._redrawFromAutoMarginCount1)return!0}return!1},d.graphJson=function(V,Q,oe,$,Z,se){(Z&&Q&&!V._fullData||Z&&!Q&&!V._fullLayout)&&d.supplyDefaults(V);var ne=Z?V._fullData:V.data,ce=Z?V._fullLayout:V.layout,ge=(V._transitionData||{})._frames;function Te(be,Ae){if(typeof be=="function")return Ae?"_function_":null;if(t.isPlainObject(be)){var me={},Le;return Object.keys(be).sort().forEach(function(Ve){if(["_","["].indexOf(Ve.charAt(0))===-1){if(typeof be[Ve]=="function"){Ae&&(me[Ve]="_function");return}if(oe==="keepdata"){if(Ve.substr(Ve.length-3)==="src")return}else if(oe==="keepstream"){if(Le=be[Ve+"src"],typeof Le=="string"&&Le.indexOf(":")>0&&!t.isPlainObject(be.stream))return}else if(oe!=="keepall"&&(Le=be[Ve+"src"],typeof Le=="string"&&Le.indexOf(":")>0))return;me[Ve]=Te(be[Ve],Ae)}}),me}var He=Array.isArray(be),Ue=t.isTypedArray(be);if((He||Ue)&&be.dtype&&be.shape){var ke=be.bdata;return Te({dtype:be.dtype,shape:be.shape,bdata:t.isArrayBuffer(ke)?x.encode(ke):ke},Ae)}return He?be.map(function(Ve){return Te(Ve,Ae)}):Ue?t.simpleMap(be,t.identity):t.isJSDate(be)?t.ms2DateTimeLocal(+be):be}var we={data:(ne||[]).map(function(be){var Ae=Te(be);return Q&&delete Ae.fit,Ae})};if(!Q&&(we.layout=Te(ce),Z)){var Re=ce._size;we.layout.computed={margin:{b:Re.b,l:Re.l,r:Re.r,t:Re.t}}}return ge&&(we.frames=Te(ge)),se&&(we.config=Te(V._context,!0)),$==="object"?we:JSON.stringify(we)},d.modifyFrames=function(V,Q){var oe,$,Z,se=V._transitionData._frames,ne=V._transitionData._frameHash;for(oe=0;oe0&&(V._transitioningWithDuration=!0),V._transitionData._interruptCallbacks.push(function(){$=!0}),oe.redraw&&V._transitionData._interruptCallbacks.push(function(){return v.call("redraw",V)}),V._transitionData._interruptCallbacks.push(function(){V.emit("plotly_transitioninterrupted",[])});var be=0,Ae=0;function me(){return be++,function(){Ae++,!$&&Ae===be&&ce(Re)}}oe.runFn(me),setTimeout(me())})}function ce(Re){if(V._transitionData)return se(V._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(oe.redraw)return v.call("redraw",V)}).then(function(){V._transitioning=!1,V._transitioningWithDuration=!1,V.emit("plotly_transitioned",[])}).then(Re)}function ge(){if(V._transitionData)return V._transitioning=!1,Z(V._transitionData._interruptCallbacks)}var Te=[d.previousPromises,ge,oe.prepareFn,d.rehover,d.reselect,ne],we=t.syncOrAsync(Te,V);return(!we||!we.then)&&(we=Promise.resolve()),we.then(function(){return V})}d.doCalcdata=function(V,Q){var oe=f.list(V),$=V._fullData,Z=V._fullLayout,se,ne,ce,ge,Te=new Array($.length),we=(V.calcdata||[]).slice();for(V.calcdata=Te,Z._numBoxes=0,Z._numViolins=0,Z._violinScaleGroupStats={},V._hmpixcount=0,V._hmlumcount=0,Z._piecolormap={},Z._sunburstcolormap={},Z._treemapcolormap={},Z._iciclecolormap={},Z._funnelareacolormap={},ce=0;ce<$.length;ce++)if(Array.isArray(Q)&&Q.indexOf(ce)===-1){Te[ce]=we[ce];continue}for(ce=0;ce<$.length;ce++)se=$[ce],se._arrayAttrs=p.findArrayAttributes(se),se._extremes={};var Re=Z._subplots.polar||[];for(ce=0;ce=0;ge--)if(rt[ge].enabled){se._indexToPoints=rt[ge]._indexToPoints;break}ne&&ne.calc&&(Ie=ne.calc(V,se))}(!Array.isArray(Ie)||!Ie[0])&&(Ie=[{x:n,y:n}]),Ie[0].t||(Ie[0].t={}),Ie[0].trace=se,Te[ke]=Ie}}for(X(oe,$,Z),ce=0;ce<$.length;ce++)He(ce,!0);for(ce=0;ce<$.length;ce++)Le(ce);for(me&&X(oe,$,Z),ce=0;ce<$.length;ce++)He(ce,!0);for(ce=0;ce<$.length;ce++)He(ce,!1);ee(V);var Ue=J(oe,V);if(Ue.length){for(Z._numBoxes=0,Z._numViolins=0,ce=0;ce0?E:1/0},A=i(d,w),_=g.mod(A+1,d.length);return[d[A],d[_]]}function m(o){return Math.abs(o)>1e-10?o:0}function h(o,d,w){d=d||0,w=w||0;for(var A=o.length,_=new Array(A),y=0;ybe?(Ae=se,me=se*be,Ue=(ne-me)/V.h/2,Le=[$[0],$[1]],He=[Z[0]+Ue,Z[1]-Ue]):(Ae=ne/be,me=ne,Ue=(se-Ae)/V.w/2,Le=[$[0]+Ue,$[1]-Ue],He=[Z[0],Z[1]]),X.xLength2=Ae,X.yLength2=me,X.xDomain2=Le,X.yDomain2=He;var ke=X.xOffset2=V.l+V.w*Le[0],Ve=X.yOffset2=V.t+V.h*(1-He[1]),Ie=X.radius=Ae/Te,rt=X.innerRadius=X.getHole(J)*Ie,Ke=X.cx=ke-Ie*ge[0],$e=X.cy=Ve+Ie*ge[3],lt=X.cxx=Ke-ke,ht=X.cyy=$e-Ve,dt=Q.side,xt;dt==="counterclockwise"?(xt=dt,dt="top"):dt==="clockwise"&&(xt=dt,dt="bottom"),X.radialAxis=X.mockAxis(ue,J,Q,{_id:"x",side:dt,_trueSide:xt,domain:[rt/V.w,Ie/V.w]}),X.angularAxis=X.mockAxis(ue,J,oe,{side:"right",domain:[0,Math.PI],autorange:!1}),X.doAutoRange(ue,J),X.updateAngularAxis(ue,J),X.updateRadialAxis(ue,J),X.updateRadialAxisTitle(ue,J),X.xaxis=X.mockCartesianAxis(ue,J,{_id:"x",domain:Le}),X.yaxis=X.mockCartesianAxis(ue,J,{_id:"y",domain:He});var St=X.pathSubplot();X.clipPaths.forTraces.select("path").attr("d",St).attr("transform",v(lt,ht)),ee.frontplot.attr("transform",v(ke,Ve)).call(r.setClipUrl,X._hasClipOnAxisFalse?null:X.clipIds.forTraces,X.gd),ee.bg.attr("d",St).attr("transform",v(Ke,$e)).call(p.fill,J.bgcolor)},H.mockAxis=function(ue,J,X,ee){var V=S.extendFlat({},X,ee);return f(V,J,ue),V},H.mockCartesianAxis=function(ue,J,X){var ee=this,V=ee.isSmith,Q=X._id,oe=S.extendFlat({type:"linear"},X);n(oe,ue);var $={x:[0,2],y:[1,3]};return oe.setRange=function(){var Z=ee.sectorBBox,se=$[Q],ne=ee.radialAxis._rl,ce=(ne[1]-ne[0])/(1-ee.getHole(J));oe.range=[Z[se[0]]*ce,Z[se[1]]*ce]},oe.isPtWithinRange=Q==="x"&&!V?function(Z){return ee.isPtInside(Z)}:function(){return!0},oe.setRange(),oe.setScale(),oe},H.doAutoRange=function(ue,J){var X=this,ee=X.gd,V=X.radialAxis,Q=X.getRadial(J);c(ee,V);var oe=V.range;if(Q.range=oe.slice(),Q._input.range=oe.slice(),V._rl=[V.r2l(oe[0],null,"gregorian"),V.r2l(oe[1],null,"gregorian")],V.minallowed!==void 0){var $=V.r2l(V.minallowed);V._rl[0]>V._rl[1]?V._rl[1]=Math.max(V._rl[1],$):V._rl[0]=Math.max(V._rl[0],$)}if(V.maxallowed!==void 0){var Z=V.r2l(V.maxallowed);V._rl[0]90&&ne<=270&&(ce.tickangle=180);var we=Te?function(Ie){var rt=D(X,L([Ie.x,0]));return v(rt[0]-$,rt[1]-Z)}:function(Ie){return v(ce.l2p(Ie.x)+oe,0)},Re=Te?function(Ie){return z(X,Ie.x,-1/0,1/0)}:function(Ie){return X.pathArc(ce.r2p(Ie.x)+oe)},be=Y(se);if(X.radialTickLayout!==be&&(V["radial-axis"].selectAll(".xtick").remove(),X.radialTickLayout=be),ge){ce.setScale();var Ae=0,me=Te?(ce.tickvals||[]).filter(function(Ie){return Ie>=0}).map(function(Ie){return a.tickText(ce,Ie,!0,!1)}):a.calcTicks(ce),Le=Te?me:a.clipEnds(ce,me),He=a.getTickSigns(ce)[2];Te&&((ce.ticks==="top"&&ce.side==="bottom"||ce.ticks==="bottom"&&ce.side==="top")&&(He=-He),ce.ticks==="top"&&ce.side==="top"&&(Ae=-ce.ticklen),ce.ticks==="bottom"&&ce.side==="bottom"&&(Ae=ce.ticklen)),a.drawTicks(ee,ce,{vals:me,layer:V["radial-axis"],path:a.makeTickPath(ce,0,He),transFn:we,crisp:!1}),a.drawGrid(ee,ce,{vals:Le,layer:V["radial-grid"],path:Re,transFn:S.noop,crisp:!1}),a.drawLabels(ee,ce,{vals:me,layer:V["radial-axis"],transFn:we,labelFns:a.makeLabelFns(ce,Ae)})}var Ue=X.radialAxisAngle=X.vangles?B(te(k(se.angle),X.vangles)):se.angle,ke=v($,Z),Ve=ke+x(-Ue);ie(V["radial-axis"],ge&&(se.showticklabels||se.ticks),{transform:Ve}),ie(V["radial-grid"],ge&&se.showgrid,{transform:Te?"":ke}),ie(V["radial-line"].select("line"),ge&&se.showline,{x1:Te?-Q:oe,y1:0,x2:Q,y2:0,transform:Ve}).attr("stroke-width",se.linewidth).call(p.stroke,se.linecolor)},H.updateRadialAxisTitle=function(ue,J,X){if(!this.isSmith){var ee=this,V=ee.gd,Q=ee.radius,oe=ee.cx,$=ee.cy,Z=ee.getRadial(J),se=ee.id+"title",ne=0;if(Z.title){var ce=r.bBox(ee.layers["radial-axis"].node()).height,ge=Z.title.font.size,Te=Z.side;ne=Te==="top"?ge:Te==="counterclockwise"?-(ce+ge*.4):ce+ge*.8}var we=X!==void 0?X:ee.radialAxisAngle,Re=k(we),be=Math.cos(Re),Ae=Math.sin(Re),me=oe+Q/2*be+ne*Ae,Le=$-Q/2*Ae+ne*be;ee.layers["radial-axis-title"]=b.draw(V,se,{propContainer:Z,propName:ee.id+".radialaxis.title",placeholder:N(V,"Click to enter radial axis title"),attributes:{x:me,y:Le,"text-anchor":"middle"},transform:{rotate:-we}})}},H.updateAngularAxis=function(ue,J){var X=this,ee=X.gd,V=X.layers,Q=X.radius,oe=X.innerRadius,$=X.cx,Z=X.cy,se=X.getAngular(J),ne=X.angularAxis,ce=X.isSmith;ce||(X.fillViewInitialKey("angularaxis.rotation",se.rotation),ne.setGeometry(),ne.setScale());var ge=ce?function(rt){var Ke=D(X,L([0,rt.x]));return Math.atan2(Ke[0]-$,Ke[1]-Z)-Math.PI/2}:function(rt){return ne.t2g(rt.x)};ne.type==="linear"&&ne.thetaunit==="radians"&&(ne.tick0=B(ne.tick0),ne.dtick=B(ne.dtick));var Te=function(rt){return v($+Q*Math.cos(rt),Z-Q*Math.sin(rt))},we=ce?function(rt){var Ke=D(X,L([0,rt.x]));return v(Ke[0],Ke[1])}:function(rt){return Te(ge(rt))},Re=ce?function(rt){var Ke=D(X,L([0,rt.x])),$e=Math.atan2(Ke[0]-$,Ke[1]-Z)-Math.PI/2;return v(Ke[0],Ke[1])+x(-B($e))}:function(rt){var Ke=ge(rt);return Te(Ke)+x(-B(Ke))},be=ce?function(rt){return M(X,rt.x,0,1/0)}:function(rt){var Ke=ge(rt),$e=Math.cos(Ke),lt=Math.sin(Ke);return"M"+[$+oe*$e,Z-oe*lt]+"L"+[$+Q*$e,Z-Q*lt]},Ae=a.makeLabelFns(ne,0),me=Ae.labelStandoff,Le={};Le.xFn=function(rt){var Ke=ge(rt);return Math.cos(Ke)*me},Le.yFn=function(rt){var Ke=ge(rt),$e=Math.sin(Ke)>0?.2:1;return-Math.sin(Ke)*(me+rt.fontSize*$e)+Math.abs(Math.cos(Ke))*(rt.fontSize*y)},Le.anchorFn=function(rt){var Ke=ge(rt),$e=Math.cos(Ke);return Math.abs($e)<.1?"middle":$e>0?"start":"end"},Le.heightFn=function(rt,Ke,$e){var lt=ge(rt);return-.5*(1+Math.sin(lt))*$e};var He=Y(se);X.angularTickLayout!==He&&(V["angular-axis"].selectAll("."+ne._id+"tick").remove(),X.angularTickLayout=He);var Ue=ce?[1/0].concat(ne.tickvals||[]).map(function(rt){return a.tickText(ne,rt,!0,!1)}):a.calcTicks(ne);ce&&(Ue[0].text="∞",Ue[0].fontSize*=1.75);var ke;if(J.gridshape==="linear"?(ke=Ue.map(ge),S.angleDelta(ke[0],ke[1])<0&&(ke=ke.slice().reverse())):ke=null,X.vangles=ke,ne.type==="category"&&(Ue=Ue.filter(function(rt){return S.isAngleInsideSector(ge(rt),X.sectorInRad)})),ne.visible){var Ve=ne.ticks==="inside"?-1:1,Ie=(ne.linewidth||1)/2;a.drawTicks(ee,ne,{vals:Ue,layer:V["angular-axis"],path:"M"+Ve*Ie+",0h"+Ve*ne.ticklen,transFn:Re,crisp:!1}),a.drawGrid(ee,ne,{vals:Ue,layer:V["angular-grid"],path:be,transFn:S.noop,crisp:!1}),a.drawLabels(ee,ne,{vals:Ue,layer:V["angular-axis"],repositionOnUpdate:!0,transFn:we,labelFns:Le})}ie(V["angular-line"].select("path"),se.showline,{d:X.pathSubplot(),transform:v($,Z)}).attr("stroke-width",se.linewidth).call(p.stroke,se.linecolor)},H.updateFx=function(ue,J){if(!this.gd._context.staticPlot){var X=!this.isSmith;X&&(this.updateAngularDrag(ue),this.updateRadialDrag(ue,J,0),this.updateRadialDrag(ue,J,1)),this.updateHoverAndMainDrag(ue)}},H.updateHoverAndMainDrag=function(ue){var J=this,X=J.isSmith,ee=J.gd,V=J.layers,Q=ue._zoomlayer,oe=E.MINZOOM,$=E.OFFEDGE,Z=J.radius,se=J.innerRadius,ne=J.cx,ce=J.cy,ge=J.cxx,Te=J.cyy,we=J.sectorInRad,Re=J.vangles,be=J.radialAxis,Ae=T.clampTiny,me=T.findXYatLength,Le=T.findEnclosingVertexAngles,He=E.cornerHalfWidth,Ue=E.cornerLen/2,ke,Ve,Ie=l.makeDragger(V,"path","maindrag",ue.dragmode===!1?"none":"crosshair");g.select(Ie).attr("d",J.pathSubplot()).attr("transform",v(ne,ce)),Ie.onmousemove=function(ct){h.hover(ee,ct,J.id),ee._fullLayout._lasthover=Ie,ee._fullLayout._hoversubplot=J.id},Ie.onmouseout=function(ct){ee._dragging||m.unhover(ee,ct)};var rt={element:Ie,gd:ee,subplot:J.id,plotinfo:{id:J.id,xaxis:J.xaxis,yaxis:J.yaxis},xaxes:[J.xaxis],yaxes:[J.yaxis]},Ke,$e,lt,ht,dt,xt,St,nt,ze;function Xe(ct,Tt){return Math.sqrt(ct*ct+Tt*Tt)}function Je(ct,Tt){return Xe(ct-ge,Tt-Te)}function We(ct,Tt){return Math.atan2(Te-Tt,ct-ge)}function Fe(ct,Tt){return[ct*Math.cos(Tt),ct*Math.sin(-Tt)]}function xe(ct,Tt){if(ct===0)return J.pathSector(2*He);var Bt=Ue/ct,ir=Tt-Bt,pt=Tt+Bt,Xt=Math.max(0,Math.min(ct,Z)),Kt=Xt-He,or=Xt+He;return"M"+Fe(Kt,ir)+"A"+[Kt,Kt]+" 0,0,0 "+Fe(Kt,pt)+"L"+Fe(or,pt)+"A"+[or,or]+" 0,0,1 "+Fe(or,ir)+"Z"}function ye(ct,Tt,Bt){if(ct===0)return J.pathSector(2*He);var ir=Fe(ct,Tt),pt=Fe(ct,Bt),Xt=Ae((ir[0]+pt[0])/2),Kt=Ae((ir[1]+pt[1])/2),or,$t;if(Xt&&Kt){var gt=Kt/Xt,st=-1/gt,At=me(He,gt,Xt,Kt);or=me(Ue,st,At[0][0],At[0][1]),$t=me(Ue,st,At[1][0],At[1][1])}else{var Ct,It;Kt?(Ct=Ue,It=He):(Ct=He,It=Ue),or=[[Xt-Ct,Kt-It],[Xt+Ct,Kt-It]],$t=[[Xt-Ct,Kt+It],[Xt+Ct,Kt+It]]}return"M"+or.join("L")+"L"+$t.reverse().join("L")+"Z"}function Ee(){lt=null,ht=null,dt=J.pathSubplot(),xt=!1;var ct=ee._fullLayout[J.id];St=C(ct.bgcolor).getLuminance(),nt=l.makeZoombox(Q,St,ne,ce,dt),nt.attr("fill-rule","evenodd"),ze=l.makeCorners(Q,ne,ce),d(ee)}function Me(ct,Tt){return Tt=Math.max(Math.min(Tt,Z),se),ct<$?ct=0:Z-ct<$?ct=Z:Tt<$?Tt=0:Z-Tt<$&&(Tt=Z),Math.abs(Tt-ct)>oe?(ct-1&&ct===1&&o(Tt,ee,[J.xaxis],[J.yaxis],J.id,rt),Bt.indexOf("event")>-1&&h.click(ee,Tt,J.id)}rt.prepFn=function(ct,Tt,Bt){var ir=ee._fullLayout.dragmode,pt=Ie.getBoundingClientRect();ee._fullLayout._calcInverseTransform(ee);var Xt=ee._fullLayout._invTransform;ke=ee._fullLayout._invScaleX,Ve=ee._fullLayout._invScaleY;var Kt=S.apply3DTransform(Xt)(Tt-pt.left,Bt-pt.top);if(Ke=Kt[0],$e=Kt[1],Re){var or=T.findPolygonOffset(Z,we[0],we[1],Re);Ke+=ge+or[0],$e+=Te+or[1]}switch(ir){case"zoom":rt.clickFn=Lt,X||(Re?rt.moveFn=mt:rt.moveFn=je,rt.doneFn=bt,Ee());break;case"select":case"lasso":u(ct,Tt,Bt,rt,ir);break}},m.init(rt)},H.updateRadialDrag=function(ue,J,X){var ee=this,V=ee.gd,Q=ee.layers,oe=ee.radius,$=ee.innerRadius,Z=ee.cx,se=ee.cy,ne=ee.radialAxis,ce=E.radialDragBoxSize,ge=ce/2;if(!ne.visible)return;var Te=k(ee.radialAxisAngle),we=ne._rl,Re=we[0],be=we[1],Ae=we[X],me=.75*(we[1]-we[0])/(1-ee.getHole(J))/oe,Le,He,Ue;X?(Le=Z+(oe+ge)*Math.cos(Te),He=se-(oe+ge)*Math.sin(Te),Ue="radialdrag"):(Le=Z+($-ge)*Math.cos(Te),He=se-($-ge)*Math.sin(Te),Ue="radialdrag-inner");var ke=l.makeRectDragger(Q,Ue,"crosshair",-ge,-ge,ce,ce),Ve={element:ke,gd:V};ue.dragmode===!1&&(Ve.dragmode=!1),ie(g.select(ke),ne.visible&&$0!=(X?Ke>Re:Ke=90||V>90&&Q>=450?Te=1:$<=0&&se<=0?Te=0:Te=Math.max($,se),V<=180&&Q>=180||V>180&&Q>=540?ne=-1:oe>=0&&Z>=0?ne=0:ne=Math.min(oe,Z),V<=270&&Q>=270||V>270&&Q>=630?ce=-1:$>=0&&se>=0?ce=0:ce=Math.min($,se),Q>=360?ge=1:oe<=0&&Z<=0?ge=0:ge=Math.max(oe,Z),[ne,ce,ge,Te]}function te(ue,J){var X=function(V){return S.angleDist(ue,V)},ee=S.findIndexOfMin(J,X);return J[ee]}function ie(ue,J,X){return J?(ue.attr("display",null),ue.attr(X)):ue&&ue.attr("display","none"),ue}},57696:function(G,U,e){var g=e(3400),C=e(78344),i=g.deg2rad,S=g.rad2deg;G.exports=function(a,n,f){switch(C(a,f),a._id){case"x":case"radialaxis":x(a,n);break;case"angularaxis":r(a,n);break}};function x(t,a){var n=a._subplot;t.setGeometry=function(){var f=t._rl[0],c=t._rl[1],l=n.innerRadius,m=(n.radius-l)/(c-f),h=l/m,b=f>c?function(u){return u<=0}:function(u){return u>=0};t.c2g=function(u){var o=t.c2l(u)-f;return(b(o)?o:0)+h},t.g2c=function(u){return t.l2c(u+f-h)},t.g2p=function(u){return u*m},t.c2p=function(u){return t.g2p(t.c2g(u))}}}function v(t,a){return a==="degrees"?i(t):t}function p(t,a){return a==="degrees"?S(t):t}function r(t,a){var n=t.type;if(n==="linear"){var f=t.d2c,c=t.c2d;t.d2c=function(l,m){return v(f(l),m)},t.c2d=function(l,m){return c(p(l,m))}}t.makeCalcdata=function(l,m){var h=l[m],b=l._length,u,o,d=function(E){return t.d2c(E,l.thetaunit)};if(h)for(u=new Array(b),o=0;o0?1:0}function e(x){var v=x[0],p=x[1];if(!isFinite(v)||!isFinite(p))return[1,0];var r=(v+1)*(v+1)+p*p;return[(v*v+p*p-1)/r,2*p/r]}function g(x,v){var p=v[0],r=v[1];return[p*x.radius+x.cx,-r*x.radius+x.cy]}function C(x,v){return v*x.radius}function i(x,v,p,r){var t=g(x,e([p,v])),a=t[0],n=t[1],f=g(x,e([r,v])),c=f[0],l=f[1];if(v===0)return["M"+a+","+n,"L"+c+","+l].join(" ");var m=C(x,1/Math.abs(v));return["M"+a+","+n,"A"+m+","+m+" 0 0,"+(v<0?1:0)+" "+c+","+l].join(" ")}function S(x,v,p,r){var t=C(x,1/(v+1)),a=g(x,e([v,p])),n=a[0],f=a[1],c=g(x,e([v,r])),l=c[0],m=c[1];if(U(p)!==U(r)){var h=g(x,e([v,0])),b=h[0],u=h[1];return["M"+n+","+f,"A"+t+","+t+" 0 0,"+(00){for(var v=[],p=0;p=o&&(y.min=0,E.min=0,T.min=0,l.aaxis&&delete l.aaxis.min,l.baxis&&delete l.baxis.min,l.caxis&&delete l.caxis.min)}function c(l,m,h,b){var u=a[m._name];function o(s,L){return i.coerce(l,m,u,s,L)}o("uirevision",b.uirevision),m.type="linear";var d=o("color"),w=d!==u.color.dflt?d:h.font.color,A=m._name,_=A.charAt(0).toUpperCase(),y="Component "+_,E=o("title.text",y);m._hovertitle=E===y?E:_,i.coerceFont(o,"title.font",{family:h.font.family,size:i.bigFont(h.font.size),color:w}),o("min"),r(l,m,o,"linear"),v(l,m,o,"linear"),x(l,m,o,"linear",{noAutotickangles:!0}),p(l,m,o,{outerTicks:!0});var T=o("showticklabels");T&&(i.coerceFont(o,"tickfont",{family:h.font.family,size:h.font.size,color:w}),o("tickangle"),o("tickformat")),t(l,m,o,{dfltColor:d,bgColor:h.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:u}),o("hoverformat"),o("layer")}},24696:function(G,U,e){var g=e(33428),C=e(49760),i=e(24040),S=e(3400),x=S.strTranslate,v=S._,p=e(76308),r=e(43616),t=e(78344),a=e(92880).extendFlat,n=e(7316),f=e(54460),c=e(86476),l=e(93024),m=e(72760),h=m.freeMode,b=m.rectMode,u=e(81668),o=e(22676).prepSelect,d=e(22676).selectOnClick,w=e(22676).clearOutline,A=e(22676).clearSelectionsCache,_=e(33816);function y(B,O){this.id=B.id,this.graphDiv=B.graphDiv,this.init(O),this.makeFramework(O),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}G.exports=y;var E=y.prototype;E.init=function(B){this.container=B._ternarylayer,this.defs=B._defs,this.layoutId=B._uid,this.traceHash={},this.layers={}},E.plot=function(B,O){var H=this,Y=O[H.id],j=O._size;H._hasClipOnAxisFalse=!1;for(var te=0;teT*X?(ne=X,se=ne*T):(se=J,ne=se/T),ce=ie*se/J,ge=ue*ne/X,$=O.l+O.w*j-se/2,Z=O.t+O.h*(1-te)-ne/2,H.x0=$,H.y0=Z,H.w=se,H.h=ne,H.sum=ee,H.xaxis={type:"linear",range:[V+2*oe-ee,ee-V-2*Q],domain:[j-ce/2,j+ce/2],_id:"x"},t(H.xaxis,H.graphDiv._fullLayout),H.xaxis.setScale(),H.xaxis.isPtWithinRange=function(Ve){return Ve.a>=H.aaxis.range[0]&&Ve.a<=H.aaxis.range[1]&&Ve.b>=H.baxis.range[1]&&Ve.b<=H.baxis.range[0]&&Ve.c>=H.caxis.range[1]&&Ve.c<=H.caxis.range[0]},H.yaxis={type:"linear",range:[V,ee-Q-oe],domain:[te-ge/2,te+ge/2],_id:"y"},t(H.yaxis,H.graphDiv._fullLayout),H.yaxis.setScale(),H.yaxis.isPtWithinRange=function(){return!0};var Te=H.yaxis.domain[0],we=H.aaxis=a({},B.aaxis,{range:[V,ee-Q-oe],side:"left",tickangle:(+B.aaxis.tickangle||0)-30,domain:[Te,Te+ge*T],anchor:"free",position:0,_id:"y",_length:se});t(we,H.graphDiv._fullLayout),we.setScale();var Re=H.baxis=a({},B.baxis,{range:[ee-V-oe,Q],side:"bottom",domain:H.xaxis.domain,anchor:"free",position:0,_id:"x",_length:se});t(Re,H.graphDiv._fullLayout),Re.setScale();var be=H.caxis=a({},B.caxis,{range:[ee-V-Q,oe],side:"right",tickangle:(+B.caxis.tickangle||0)+30,domain:[Te,Te+ge*T],anchor:"free",position:0,_id:"y",_length:se});t(be,H.graphDiv._fullLayout),be.setScale();var Ae="M"+$+","+(Z+ne)+"h"+se+"l-"+se/2+",-"+ne+"Z";H.clipDef.select("path").attr("d",Ae),H.layers.plotbg.select("path").attr("d",Ae);var me="M0,"+ne+"h"+se+"l-"+se/2+",-"+ne+"Z";H.clipDefRelative.select("path").attr("d",me);var Le=x($,Z);H.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Le),H.clipDefRelative.select("path").attr("transform",null);var He=x($-Re._offset,Z+ne);H.layers.baxis.attr("transform",He),H.layers.bgrid.attr("transform",He);var Ue=x($+se/2,Z)+"rotate(30)"+x(0,-we._offset);H.layers.aaxis.attr("transform",Ue),H.layers.agrid.attr("transform",Ue);var ke=x($+se/2,Z)+"rotate(-30)"+x(0,-be._offset);H.layers.caxis.attr("transform",ke),H.layers.cgrid.attr("transform",ke),H.drawAxes(!0),H.layers.aline.select("path").attr("d",we.showline?"M"+$+","+(Z+ne)+"l"+se/2+",-"+ne:"M0,0").call(p.stroke,we.linecolor||"#000").style("stroke-width",(we.linewidth||0)+"px"),H.layers.bline.select("path").attr("d",Re.showline?"M"+$+","+(Z+ne)+"h"+se:"M0,0").call(p.stroke,Re.linecolor||"#000").style("stroke-width",(Re.linewidth||0)+"px"),H.layers.cline.select("path").attr("d",be.showline?"M"+($+se/2)+","+Z+"l"+se/2+","+ne:"M0,0").call(p.stroke,be.linecolor||"#000").style("stroke-width",(be.linewidth||0)+"px"),H.graphDiv._context.staticPlot||H.initInteractions(),r.setClipUrl(H.layers.frontplot,H._hasClipOnAxisFalse?null:H.clipId,H.graphDiv)},E.drawAxes=function(B){var O=this,H=O.graphDiv,Y=O.id.substr(7)+"title",j=O.layers,te=O.aaxis,ie=O.baxis,ue=O.caxis;if(O.drawAx(te),O.drawAx(ie),O.drawAx(ue),B){var J=Math.max(te.showticklabels?te.tickfont.size/2:0,(ue.showticklabels?ue.tickfont.size*.75:0)+(ue.ticks==="outside"?ue.ticklen*.87:0)),X=(ie.showticklabels?ie.tickfont.size:0)+(ie.ticks==="outside"?ie.ticklen:0)+3;j["a-title"]=u.draw(H,"a"+Y,{propContainer:te,propName:O.id+".aaxis.title",placeholder:v(H,"Click to enter Component A title"),attributes:{x:O.x0+O.w/2,y:O.y0-te.title.font.size/3-J,"text-anchor":"middle"}}),j["b-title"]=u.draw(H,"b"+Y,{propContainer:ie,propName:O.id+".baxis.title",placeholder:v(H,"Click to enter Component B title"),attributes:{x:O.x0-X,y:O.y0+O.h+ie.title.font.size*.83+X,"text-anchor":"middle"}}),j["c-title"]=u.draw(H,"c"+Y,{propContainer:ue,propName:O.id+".caxis.title",placeholder:v(H,"Click to enter Component C title"),attributes:{x:O.x0+O.w+X,y:O.y0+O.h+ue.title.font.size*.83+X,"text-anchor":"middle"}})}},E.drawAx=function(B){var O=this,H=O.graphDiv,Y=B._name,j=Y.charAt(0),te=B._id,ie=O.layers[Y],ue=30,J=j+"tickLayout",X=s(B);O[J]!==X&&(ie.selectAll("."+te+"tick").remove(),O[J]=X),B.setScale();var ee=f.calcTicks(B),V=f.clipEnds(B,ee),Q=f.makeTransTickFn(B),oe=f.getTickSigns(B)[2],$=S.deg2rad(ue),Z=oe*(B.linewidth||1)/2,se=oe*B.ticklen,ne=O.w,ce=O.h,ge=j==="b"?"M0,"+Z+"l"+Math.sin($)*se+","+Math.cos($)*se:"M"+Z+",0l"+Math.cos($)*se+","+-Math.sin($)*se,Te={a:"M0,0l"+ce+",-"+ne/2,b:"M0,0l-"+ne/2+",-"+ce,c:"M0,0l-"+ce+","+ne/2}[j];f.drawTicks(H,B,{vals:B.ticks==="inside"?V:ee,layer:ie,path:ge,transFn:Q,crisp:!1}),f.drawGrid(H,B,{vals:V,layer:O.layers[j+"grid"],path:Te,transFn:Q,crisp:!1}),f.drawLabels(H,B,{vals:ee,layer:ie,transFn:Q,labelFns:f.makeLabelFns(B,0,ue)})};function s(B){return B.ticks+String(B.ticklen)+String(B.showticklabels)}var L=_.MINZOOM/2+.87,M="m-0.87,.5h"+L+"v3h-"+(L+5.2)+"l"+(L/2+2.6)+",-"+(L*.87+4.5)+"l2.6,1.5l-"+L/2+","+L*.87+"Z",z="m0.87,.5h-"+L+"v3h"+(L+5.2)+"l-"+(L/2+2.6)+",-"+(L*.87+4.5)+"l-2.6,1.5l"+L/2+","+L*.87+"Z",D="m0,1l"+L/2+","+L*.87+"l2.6,-1.5l-"+(L/2+2.6)+",-"+(L*.87+4.5)+"l-"+(L/2+2.6)+","+(L*.87+4.5)+"l2.6,1.5l"+L/2+",-"+L*.87+"Z",N="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",I=!0;E.clearOutline=function(){A(this.dragOptions),w(this.dragOptions.gd)},E.initInteractions=function(){var B=this,O=B.layers.plotbg.select("path").node(),H=B.graphDiv,Y=H._fullLayout._zoomlayer,j,te;this.dragOptions={element:O,gd:H,plotinfo:{id:B.id,domain:H._fullLayout[B.id].domain,xaxis:B.xaxis,yaxis:B.yaxis},subplot:B.id,prepFn:function(He,Ue,ke){B.dragOptions.xaxes=[B.xaxis],B.dragOptions.yaxes=[B.yaxis],j=H._fullLayout._invScaleX,te=H._fullLayout._invScaleY;var Ve=B.dragOptions.dragmode=H._fullLayout.dragmode;h(Ve)?B.dragOptions.minDrag=1:B.dragOptions.minDrag=void 0,Ve==="zoom"?(B.dragOptions.moveFn=Re,B.dragOptions.clickFn=ne,B.dragOptions.doneFn=be,ce(He,Ue,ke)):Ve==="pan"?(B.dragOptions.moveFn=me,B.dragOptions.clickFn=ne,B.dragOptions.doneFn=Le,Ae(),B.clearOutline(H)):(b(Ve)||h(Ve))&&o(He,Ue,ke,B.dragOptions,Ve)}};var ie,ue,J,X,ee,V,Q,oe,$,Z;function se(He){var Ue={};return Ue[B.id+".aaxis.min"]=He.a,Ue[B.id+".baxis.min"]=He.b,Ue[B.id+".caxis.min"]=He.c,Ue}function ne(He,Ue){var ke=H._fullLayout.clickmode;k(H),He===2&&(H.emit("plotly_doubleclick",null),i.call("_guiRelayout",H,se({a:0,b:0,c:0}))),ke.indexOf("select")>-1&&He===1&&d(Ue,H,[B.xaxis],[B.yaxis],B.id,B.dragOptions),ke.indexOf("event")>-1&&l.click(H,Ue,B.id)}function ce(He,Ue,ke){var Ve=O.getBoundingClientRect();ie=Ue-Ve.left,ue=ke-Ve.top,H._fullLayout._calcInverseTransform(H);var Ie=H._fullLayout._invTransform,rt=S.apply3DTransform(Ie)(ie,ue);ie=rt[0],ue=rt[1],J={a:B.aaxis.range[0],b:B.baxis.range[1],c:B.caxis.range[1]},ee=J,X=B.aaxis.range[1]-J.a,V=C(B.graphDiv._fullLayout[B.id].bgcolor).getLuminance(),Q="M0,"+B.h+"L"+B.w/2+", 0L"+B.w+","+B.h+"Z",oe=!1,$=Y.append("path").attr("class","zoombox").attr("transform",x(B.x0,B.y0)).style({fill:V>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",Q),Z=Y.append("path").attr("class","zoombox-corners").attr("transform",x(B.x0,B.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),B.clearOutline(H)}function ge(He,Ue){return 1-Ue/B.h}function Te(He,Ue){return 1-(He+(B.h-Ue)/Math.sqrt(3))/B.w}function we(He,Ue){return(He-(B.h-Ue)/Math.sqrt(3))/B.w}function Re(He,Ue){var ke=ie+He*j,Ve=ue+Ue*te,Ie=Math.max(0,Math.min(1,ge(ie,ue),ge(ke,Ve))),rt=Math.max(0,Math.min(1,Te(ie,ue),Te(ke,Ve))),Ke=Math.max(0,Math.min(1,we(ie,ue),we(ke,Ve))),$e=(Ie/2+Ke)*B.w,lt=(1-Ie/2-rt)*B.w,ht=($e+lt)/2,dt=lt-$e,xt=(1-Ie)*B.h,St=xt-dt/T;dt<_.MINZOOM?(ee=J,$.attr("d",Q),Z.attr("d","M0,0Z")):(ee={a:J.a+Ie*X,b:J.b+rt*X,c:J.c+Ke*X},$.attr("d",Q+"M"+$e+","+xt+"H"+lt+"L"+ht+","+St+"L"+$e+","+xt+"Z"),Z.attr("d","M"+ie+","+ue+N+"M"+$e+","+xt+M+"M"+lt+","+xt+z+"M"+ht+","+St+D)),oe||($.transition().style("fill",V>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),oe=!0),H.emit("plotly_relayouting",se(ee))}function be(){k(H),ee!==J&&(i.call("_guiRelayout",H,se(ee)),I&&H.data&&H._context.showTips&&(S.notifier(v(H,"Double-click to zoom back out"),"long"),I=!1))}function Ae(){J={a:B.aaxis.range[0],b:B.baxis.range[1],c:B.caxis.range[1]},ee=J}function me(He,Ue){var ke=He/B.xaxis._m,Ve=Ue/B.yaxis._m;ee={a:J.a-Ve,b:J.b+(ke+Ve)/2,c:J.c-(ke-Ve)/2};var Ie=[ee.a,ee.b,ee.c].sort(S.sorterAsc),rt={a:Ie.indexOf(ee.a),b:Ie.indexOf(ee.b),c:Ie.indexOf(ee.c)};Ie[0]<0&&(Ie[1]+Ie[0]/2<0?(Ie[2]+=Ie[0]+Ie[1],Ie[0]=Ie[1]=0):(Ie[2]+=Ie[0]/2,Ie[1]+=Ie[0]/2,Ie[0]=0),ee={a:Ie[rt.a],b:Ie[rt.b],c:Ie[rt.c]},Ue=(J.a-ee.a)*B.yaxis._m,He=(J.c-ee.c-J.b+ee.b)*B.xaxis._m);var Ke=x(B.x0+He,B.y0+Ue);B.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ke);var $e=x(-He,-Ue);B.clipDefRelative.select("path").attr("transform",$e),B.aaxis.range=[ee.a,B.sum-ee.b-ee.c],B.baxis.range=[B.sum-ee.a-ee.c,ee.b],B.caxis.range=[B.sum-ee.a-ee.b,ee.c],B.drawAxes(!1),B._hasClipOnAxisFalse&&B.plotContainer.select(".scatterlayer").selectAll(".trace").call(r.hideOutsideRangePoints,B),H.emit("plotly_relayouting",se(ee))}function Le(){i.call("_guiRelayout",H,se(ee))}O.onmousemove=function(He){l.hover(H,He,B.id),H._fullLayout._lasthover=O,H._fullLayout._hoversubplot=B.id},O.onmouseout=function(He){H._dragging||c.unhover(H,He)},c.init(this.dragOptions)};function k(B){g.select(B).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}},24040:function(G,U,e){var g=e(24248),C=e(16628),i=e(52416),S=e(63620),x=e(52200).addStyleRule,v=e(92880),p=e(45464),r=e(64859),t=v.extendFlat,a=v.extendDeepAll;U.modules={},U.allCategories={},U.allTypes=[],U.subplotsRegistry={},U.transformsRegistry={},U.componentsRegistry={},U.layoutArrayContainers=[],U.layoutArrayRegexes=[],U.traceLayoutAttributes={},U.localeRegistry={},U.apiMethodRegistry={},U.collectableSubplotTypes=null,U.register=function(A){if(U.collectableSubplotTypes=null,A)A&&!Array.isArray(A)&&(A=[A]);else throw new Error("No argument passed to Plotly.register.");for(var _=0;_-1}G.exports=function(r,t){var a,n=r.data,f=r.layout,c=S([],n),l=S({},f,x(t.tileClass)),m=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var h=Object.keys(l);for(a=0;a")!==-1?"":f.html(l).text()});return f.remove(),c}function a(n){return n.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}G.exports=function(f,c,l){var m=f._fullLayout,h=m._paper,b=m._toppaper,u=m.width,o=m.height,d;h.insert("rect",":first-child").call(i.setRect,0,0,u,o).call(S.fill,m.paper_bgcolor);var w=m._basePlotModules||[];for(d=0;dH+B||!g(O))}for(var j=0;j=0)return m}else if(typeof m=="string"&&(m=m.trim(),m.slice(-1)==="%"&&g(m.slice(0,-1))&&(m=+m.slice(0,-1),m>=0)))return m+"%"}function l(m,h,b,u,o,d){d=d||{};var w=d.moduleHasSelected!==!1,A=d.moduleHasUnselected!==!1,_=d.moduleHasConstrain!==!1,y=d.moduleHasCliponaxis!==!1,E=d.moduleHasTextangle!==!1,T=d.moduleHasInsideanchor!==!1,s=!!d.hasPathbar,L=Array.isArray(o)||o==="auto",M=L||o==="inside",z=L||o==="outside";if(M||z){var D=a(u,"textfont",b.font),N=C.extendFlat({},D),I=m.textfont&&m.textfont.color,k=!I;if(k&&delete N.color,a(u,"insidetextfont",N),s){var B=C.extendFlat({},D);k&&delete B.color,a(u,"pathbar.textfont",B)}z&&a(u,"outsidetextfont",D),w&&u("selected.textfont.color"),A&&u("unselected.textfont.color"),_&&u("constraintext"),y&&u("cliponaxis"),E&&u("textangle"),u("texttemplate")}M&&T&&u("insidetextanchor")}G.exports={supplyDefaults:n,crossTraceDefaults:f,handleText:l,validateCornerradius:c}},52160:function(G){G.exports=function(e,g,C){return e.x="xVal"in g?g.xVal:g.x,e.y="yVal"in g?g.yVal:g.y,g.xa&&(e.xaxis=g.xa),g.ya&&(e.yaxis=g.ya),C.orientation==="h"?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},60444:function(G,U,e){var g=e(38248),C=e(49760),i=e(3400).isArrayOrTypedArray;U.coerceString=function(S,x,v){if(typeof x=="string"){if(x||!S.noBlank)return x}else if((typeof x=="number"||x===!0)&&!S.strict)return String(x);return v!==void 0?v:S.dflt},U.coerceNumber=function(S,x,v){if(g(x)){x=+x;var p=S.min,r=S.max,t=p!==void 0&&xr;if(!t)return x}return v!==void 0?v:S.dflt},U.coerceColor=function(S,x,v){return C(x).isValid()?x:v!==void 0?v:S.dflt},U.coerceEnumerated=function(S,x,v){return S.coerceNumber&&(x=+x),S.values.indexOf(x)!==-1?x:v!==void 0?v:S.dflt},U.getValue=function(S,x){var v;return i(S)?x0?ge+=Te:y<0&&(ge-=Te)}return ge}function ue(ce){var ge=y,Te=ce.b,we=ie(ce);return g.inbox(Te-ge,we-ge,w+(we-ge)/(we-Te)-1)}function J(ce){var ge=y,Te=ce.b,we=ie(ce);return g.inbox(Te-ge,we-ge,A+(we-ge)/(we-Te)-1)}var X=n[E+"a"],ee=n[T+"a"];M=Math.abs(X.r2c(X.range[1])-X.r2c(X.range[0]));function V(ce){return(s(ce)+L(ce))/2}var Q=g.getDistanceFunction(l,s,L,V);if(g.getClosest(h,Q,n),n.index!==!1&&h[n.index].p!==p){D||(O=function(ce){return Math.min(N(ce),ce.p-u.bargroupwidth/2)},H=function(ce){return Math.max(I(ce),ce.p+u.bargroupwidth/2)});var oe=n.index,$=h[oe],Z=b.base?$.b+$.s:$.s;n[T+"0"]=n[T+"1"]=ee.c2p($[T],!0),n[T+"LabelVal"]=Z;var se=u.extents[u.extents.round($.p)];n[E+"0"]=X.c2p(o?O($):se[0],!0),n[E+"1"]=X.c2p(o?H($):se[1],!0);var ne=$.orig_p!==void 0;return n[E+"LabelVal"]=ne?$.orig_p:$.p,n.labelLabel=v(X,n[E+"LabelVal"],b[E+"hoverformat"]),n.valueLabel=v(ee,n[T+"LabelVal"],b[T+"hoverformat"]),n.baseLabel=v(ee,$.b,b[T+"hoverformat"]),n.spikeDistance=(J($)+te($))/2,n[E+"Spike"]=X.c2p($.p,!0),S($,b,n),n.hovertemplate=b.hovertemplate,n}}function a(n,f){var c=f.mcc||n.marker.color,l=f.mlcc||n.marker.line.color,m=x(n,f);if(i.opacity(c))return c;if(i.opacity(l)&&m)return l}G.exports={hoverPoints:r,hoverOnBars:t,getTraceColor:a}},51132:function(G,U,e){G.exports={attributes:e(20832),layoutAttributes:e(39324),supplyDefaults:e(31508).supplyDefaults,crossTraceDefaults:e(31508).crossTraceDefaults,supplyLayoutDefaults:e(37156),calc:e(71820),crossTraceCalc:e(96376).crossTraceCalc,colorbar:e(5528),arraysToCalcdata:e(84664),plot:e(98184).plot,style:e(60100).style,styleOnSelect:e(60100).styleOnSelect,hoverPoints:e(63400).hoverPoints,eventData:e(52160),selectPoints:e(45784),moduleType:"trace",name:"bar",basePlotModule:e(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(G){G.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(G,U,e){var g=e(24040),C=e(54460),i=e(3400),S=e(39324),x=e(31508).validateCornerradius;G.exports=function(v,p,r){function t(d,w){return i.coerce(v,p,S,d,w)}for(var a=!1,n=!1,f=!1,c={},l=t("barmode"),m=0;m0)-(j<0)}function _(j,te){return j0}function s(j,te,ie,ue,J,X){var ee=te.xaxis,V=te.yaxis,Q=j._fullLayout,oe=j._context.staticPlot;J||(J={mode:Q.barmode,norm:Q.barmode,gap:Q.bargap,groupgap:Q.bargroupgap},n("bar",Q));var $=i.makeTraceGroups(ue,ie,"trace bars").each(function(Z){var se=g.select(this),ne=Z[0].trace,ce=Z[0].t,ge=ne.type==="waterfall",Te=ne.type==="funnel",we=ne.type==="histogram",Re=ne.type==="bar",be=Re||Te,Ae=0;ge&&ne.connector.visible&&ne.connector.mode==="between"&&(Ae=ne.connector.line.width/2);var me=ne.orientation==="h",Le=T(J),He=i.ensureSingle(se,"g","points"),Ue=w(ne),ke=He.selectAll("g.point").data(i.identity,Ue);ke.enter().append("g").classed("point",!0),ke.exit().remove(),ke.each(function(Ie,rt){var Ke=g.select(this),$e=y(Ie,ee,V,me),lt=$e[0][0],ht=$e[0][1],dt=$e[1][0],xt=$e[1][1],St=(me?ht-lt:xt-dt)===0;St&&be&&c.getLineWidth(ne,Ie)&&(St=!1),St||(St=!C(lt)||!C(ht)||!C(dt)||!C(xt)),Ie.isBlank=St,St&&(me?ht=lt:xt=dt),Ae&&!St&&(me?(lt-=_(lt,ht)*Ae,ht+=_(lt,ht)*Ae):(dt-=_(dt,xt)*Ae,xt+=_(dt,xt)*Ae));var nt,ze;if(ne.type==="waterfall"){if(!St){var Xe=ne[Ie.dir].marker;nt=Xe.line.width,ze=Xe.color}}else nt=c.getLineWidth(ne,Ie),ze=Ie.mc||ne.marker.color;function Je(st){var At=g.round(nt/2%1,2);return J.gap===0&&J.groupgap===0?g.round(Math.round(st)-At,2):st}function We(st,At,Ct){return Ct&&st===At?st:Math.abs(st-At)>=2?Je(st):st>At?Math.ceil(st):Math.floor(st)}var Fe=x.opacity(ze),xe=Fe<1||nt>.01?Je:We;j._context.staticPlot||(lt=xe(lt,ht,me),ht=xe(ht,lt,me),dt=xe(dt,xt,!me),xt=xe(xt,dt,!me));var ye=me?ee.c2p:V.c2p,Ee;Ie.s0>0?Ee=Ie._sMax:Ie.s0<0?Ee=Ie._sMin:Ee=Ie.s1>0?Ie._sMax:Ie._sMin;function Me(st,At){if(!st)return 0;var Ct=Math.abs(me?xt-dt:ht-lt),It=Math.abs(me?ht-lt:xt-dt),Pt=xe(Math.abs(ye(Ee,!0)-ye(0,!0))),kt=Ie.hasB?Math.min(Ct/2,It/2):Math.min(Ct/2,Pt),Vt;if(At==="%"){var Jt=Math.min(50,st);Vt=Ct*(Jt/100)}else Vt=st;return xe(Math.max(Math.min(Vt,kt),0))}var Ne=Re||we?Me(ce.cornerradiusvalue,ce.cornerradiusform):0,je,it,mt="M"+lt+","+dt+"V"+xt+"H"+ht+"V"+dt+"Z",bt=0;if(Ne&&Ie.s){var vt=A(Ie.s0)===0||A(Ie.s)===A(Ie.s0)?Ie.s1:Ie.s0;if(bt=xe(Ie.hasB?0:Math.abs(ye(Ee,!0)-ye(vt,!0))),bt0?Math.sqrt(bt*(2*Ne-bt)):0,pt=Lt>0?Math.max:Math.min;je="M"+lt+","+dt+"V"+(xt-Bt*ct)+"H"+pt(ht-(Ne-bt)*Lt,lt)+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+ht+","+(xt-Ne*ct-ir)+"V"+(dt+Ne*ct+ir)+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+pt(ht-(Ne-bt)*Lt,lt)+","+(dt+Bt*ct)+"Z"}else if(Ie.hasB)je="M"+(lt+Ne*Lt)+","+dt+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+lt+","+(dt+Ne*ct)+"V"+(xt-Ne*ct)+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+(lt+Ne*Lt)+","+xt+"H"+(ht-Ne*Lt)+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+ht+","+(xt-Ne*ct)+"V"+(dt+Ne*ct)+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+(ht-Ne*Lt)+","+dt+"Z";else{it=Math.abs(xt-dt)+bt;var Xt=it0?Math.sqrt(bt*(2*Ne-bt)):0,or=ct>0?Math.max:Math.min;je="M"+(lt+Xt*Lt)+","+dt+"V"+or(xt-(Ne-bt)*ct,dt)+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+(lt+Ne*Lt-Kt)+","+xt+"H"+(ht-Ne*Lt+Kt)+"A "+Ne+","+Ne+" 0 0 "+Tt+" "+(ht-Xt*Lt)+","+or(xt-(Ne-bt)*ct,dt)+"V"+dt+"Z"}}else je=mt}else je=mt;var $t=E(i.ensureSingle(Ke,"path"),Q,J,X);if($t.style("vector-effect",oe?"none":"non-scaling-stroke").attr("d",isNaN((ht-lt)*(xt-dt))||St&&j._context.staticPlot?"M0,0Z":je).call(v.setClipUrl,te.layerClipId,j),!Q.uniformtext.mode&&Le){var gt=v.makePointStyleFns(ne);v.singlePointStyle(Ie,$t,ne,gt,j)}L(j,te,Ke,Z,rt,lt,ht,dt,xt,Ne,bt,J,X),te.layerClipId&&v.hideOutsideRangePoint(Ie,Ke.select("text"),ee,V,ne.xcalendar,ne.ycalendar)});var Ve=ne.cliponaxis===!1;v.setClipUrl(se,Ve?null:te.layerClipId,j)});p.getComponentMethod("errorbars","plot")(j,$,te,J)}function L(j,te,ie,ue,J,X,ee,V,Q,oe,$,Z,se){var ne=te.xaxis,ce=te.yaxis,ge=j._fullLayout,Te;function we(it,mt,bt){var vt=i.ensureSingle(it,"text").text(mt).attr({class:"bartext bartext-"+Te,"text-anchor":"middle","data-notex":1}).call(v.font,bt).call(S.convertToTspans,j);return vt}var Re=ue[0].trace,be=Re.orientation==="h",Ae=B(ge,ue,J,ne,ce);Te=O(Re,J);var me=Z.mode==="stack"||Z.mode==="relative",Le=ue[J],He=!me||Le._outmost,Ue=Le.hasB,ke=oe&&oe-$>o;if(!Ae||Te==="none"||(Le.isBlank||X===ee||V===Q)&&(Te==="auto"||Te==="inside")){ie.select("text").remove();return}var Ve=ge.font,Ie=f.getBarColor(ue[J],Re),rt=f.getInsideTextFont(Re,J,Ve,Ie),Ke=f.getOutsideTextFont(Re,J,Ve),$e=Re.insidetextanchor||"end",lt=ie.datum();be?ne.type==="log"&<.s0<=0&&(ne.range[0]0&&Je>0,xe;ke?Ue?xe=M(xt-2*oe,St,Xe,Je,be)||M(xt,St-2*oe,Xe,Je,be):be?xe=M(xt-(oe-$),St,Xe,Je,be)||M(xt,St-2*(oe-$),Xe,Je,be):xe=M(xt,St-(oe-$),Xe,Je,be)||M(xt-2*(oe-$),St,Xe,Je,be):xe=M(xt,St,Xe,Je,be),Fe&&xe?Te="inside":(Te="outside",nt.remove(),nt=null)}else Te="inside";if(!nt){We=i.ensureUniformFontSize(j,Te==="outside"?Ke:rt),nt=we(ie,Ae,We);var ye=nt.attr("transform");if(nt.attr("transform",""),ze=v.bBox(nt.node()),Xe=ze.width,Je=ze.height,nt.attr("transform",ye),Xe<=0||Je<=0){nt.remove();return}}var Ee=Re.textangle,Me,Ne;Te==="outside"?(Ne=Re.constraintext==="both"||Re.constraintext==="outside",Me=k(X,ee,V,Q,ze,{isHorizontal:be,constrained:Ne,angle:Ee})):(Ne=Re.constraintext==="both"||Re.constraintext==="inside",Me=N(X,ee,V,Q,ze,{isHorizontal:be,constrained:Ne,angle:Ee,anchor:$e,hasB:Ue,r:oe,overhead:$})),Me.fontSize=We.size,a(Re.type==="histogram"?"bar":Re.type,Me,ge),Le.transform=Me;var je=E(nt,ge,Z,se);i.setTransormAndDisplay(je,Me)}function M(j,te,ie,ue,J){if(j<0||te<0)return!1;var X=ie<=j&&ue<=te,ee=ie<=te&&ue<=j,V=J?j>=ie*(te/ue):te>=ue*(j/ie);return X||ee||V}function z(j){return j==="auto"?0:j}function D(j,te){var ie=Math.PI/180*te,ue=Math.abs(Math.sin(ie)),J=Math.abs(Math.cos(ie));return{x:j.width*J+j.height*ue,y:j.width*ue+j.height*J}}function N(j,te,ie,ue,J,X){var ee=!!X.isHorizontal,V=!!X.constrained,Q=X.angle||0,oe=X.anchor,$=oe==="end",Z=oe==="start",se=X.leftToRight||0,ne=(se+1)/2,ce=1-ne,ge=X.hasB,Te=X.r,we=X.overhead,Re=J.width,be=J.height,Ae=Math.abs(te-j),me=Math.abs(ue-ie),Le=Ae>2*o&&me>2*o?o:0;Ae-=2*Le,me-=2*Le;var He=z(Q);Q==="auto"&&!(Re<=Ae&&be<=me)&&(Re>Ae||be>me)&&(!(Re>me||be>Ae)||Reo){var Ie=I(j,te,ie,ue,Ue,Te,we,ee,ge);ke=Ie.scale,Ve=Ie.pad}else ke=1,V&&(ke=Math.min(1,Ae/Ue.x,me/Ue.y)),Ve=0;var rt=J.left*ce+J.right*ne,Ke=(J.top+J.bottom)/2,$e=(j+o)*ce+(te-o)*ne,lt=(ie+ue)/2,ht=0,dt=0;if(Z||$){var xt=(ee?Ue.x:Ue.y)/2;Te&&($||ge)&&(Le+=Ve);var St=ee?_(j,te):_(ie,ue);ee?Z?($e=j+St*Le,ht=-St*xt):($e=te-St*Le,ht=St*xt):Z?(lt=ie+St*Le,dt=-St*xt):(lt=ue-St*Le,dt=St*xt)}return{textX:rt,textY:Ke,targetX:$e,targetY:lt,anchorX:ht,anchorY:dt,scale:ke,rotate:He}}function I(j,te,ie,ue,J,X,ee,V,Q){var oe=Math.max(0,Math.abs(te-j)-2*o),$=Math.max(0,Math.abs(ue-ie)-2*o),Z=X-o,se=ee?Z-Math.sqrt(Z*Z-(Z-ee)*(Z-ee)):Z,ne=Q?Z*2:V?Z-ee:2*se,ce=Q?Z*2:V?2*se:Z-ee,ge,Te,we,Re,be;return J.y/J.x>=$/(oe-ne)?Re=$/J.y:J.y/J.x<=($-ce)/oe?Re=oe/J.x:!Q&&V?(ge=J.x*J.x+J.y*J.y/4,Te=-2*J.x*(oe-Z)-J.y*($/2-Z),we=(oe-Z)*(oe-Z)+($/2-Z)*($/2-Z)-Z*Z,Re=(-Te+Math.sqrt(Te*Te-4*ge*we))/(2*ge)):Q?(ge=(J.x*J.x+J.y*J.y)/4,Te=-J.x*(oe/2-Z)-J.y*($/2-Z),we=(oe/2-Z)*(oe/2-Z)+($/2-Z)*($/2-Z)-Z*Z,Re=(-Te+Math.sqrt(Te*Te-4*ge*we))/(2*ge)):(ge=J.x*J.x/4+J.y*J.y,Te=-J.x*(oe/2-Z)-2*J.y*($-Z),we=(oe/2-Z)*(oe/2-Z)+($-Z)*($-Z)-Z*Z,Re=(-Te+Math.sqrt(Te*Te-4*ge*we))/(2*ge)),Re=Math.min(1,Re),V?be=Math.max(0,Z-Math.sqrt(Math.max(0,Z*Z-(Z-($-J.y*Re)/2)*(Z-($-J.y*Re)/2)))-ee):be=Math.max(0,Z-Math.sqrt(Math.max(0,Z*Z-(Z-(oe-J.x*Re)/2)*(Z-(oe-J.x*Re)/2)))-ee),{scale:Re,pad:be}}function k(j,te,ie,ue,J,X){var ee=!!X.isHorizontal,V=!!X.constrained,Q=X.angle||0,oe=J.width,$=J.height,Z=Math.abs(te-j),se=Math.abs(ue-ie),ne;ee?ne=se>2*o?o:0:ne=Z>2*o?o:0;var ce=1;V&&(ce=ee?Math.min(1,se/$):Math.min(1,Z/oe));var ge=z(Q),Te=D(J,ge),we=(ee?Te.x:Te.y)/2,Re=(J.left+J.right)/2,be=(J.top+J.bottom)/2,Ae=(j+te)/2,me=(ie+ue)/2,Le=0,He=0,Ue=ee?_(te,j):_(ie,ue);return ee?(Ae=te-Ue*ne,Le=Ue*we):(me=ue+Ue*ne,He=-Ue*we),{textX:Re,textY:be,targetX:Ae,targetY:me,anchorX:Le,anchorY:He,scale:ce,rotate:ge}}function B(j,te,ie,ue,J){var X=te[0].trace,ee=X.texttemplate,V;return ee?V=H(j,te,ie,ue,J):X.textinfo?V=Y(te,ie,ue,J):V=c.getValue(X.text,ie),c.coerceString(h,V)}function O(j,te){var ie=c.getValue(j.textposition,te);return c.coerceEnumerated(b,ie)}function H(j,te,ie,ue,J){var X=te[0].trace,ee=i.castOption(X,ie,"texttemplate");if(!ee)return"";var V=X.type==="histogram",Q=X.type==="waterfall",oe=X.type==="funnel",$=X.orientation==="h",Z,se,ne,ce;$?(Z="y",se=J,ne="x",ce=ue):(Z="x",se=ue,ne="y",ce=J);function ge(Le){return r(se,se.c2l(Le),!0).text}function Te(Le){return r(ce,ce.c2l(Le),!0).text}var we=te[ie],Re={};Re.label=we.p,Re.labelLabel=Re[Z+"Label"]=ge(we.p);var be=i.castOption(X,we.i,"text");(be===0||be)&&(Re.text=be),Re.value=we.s,Re.valueLabel=Re[ne+"Label"]=Te(we.s);var Ae={};u(Ae,X,we.i),(V||Ae.x===void 0)&&(Ae.x=$?Re.value:Re.label),(V||Ae.y===void 0)&&(Ae.y=$?Re.label:Re.value),(V||Ae.xLabel===void 0)&&(Ae.xLabel=$?Re.valueLabel:Re.labelLabel),(V||Ae.yLabel===void 0)&&(Ae.yLabel=$?Re.labelLabel:Re.valueLabel),Q&&(Re.delta=+we.rawS||we.s,Re.deltaLabel=Te(Re.delta),Re.final=we.v,Re.finalLabel=Te(Re.final),Re.initial=Re.final-Re.delta,Re.initialLabel=Te(Re.initial)),oe&&(Re.value=we.s,Re.valueLabel=Te(Re.value),Re.percentInitial=we.begR,Re.percentInitialLabel=i.formatPercent(we.begR),Re.percentPrevious=we.difR,Re.percentPreviousLabel=i.formatPercent(we.difR),Re.percentTotal=we.sumR,Re.percenTotalLabel=i.formatPercent(we.sumR));var me=i.castOption(X,we.i,"customdata");return me&&(Re.customdata=me),i.texttemplateString(ee,Re,j._d3locale,Ae,Re,X._meta||{})}function Y(j,te,ie,ue){var J=j[0].trace,X=J.orientation==="h",ee=J.type==="waterfall",V=J.type==="funnel";function Q(me){var Le=X?ue:ie;return r(Le,me,!0).text}function oe(me){var Le=X?ie:ue;return r(Le,+me,!0).text}var $=J.textinfo,Z=j[te],se=$.split("+"),ne=[],ce,ge=function(me){return se.indexOf(me)!==-1};if(ge("label")&&ne.push(Q(j[te].p)),ge("text")&&(ce=i.castOption(J,Z.i,"text"),(ce===0||ce)&&ne.push(ce)),ee){var Te=+Z.rawS||Z.s,we=Z.v,Re=we-Te;ge("initial")&&ne.push(oe(Re)),ge("delta")&&ne.push(oe(Te)),ge("final")&&ne.push(oe(we))}if(V){ge("value")&&ne.push(oe(Z.s));var be=0;ge("percent initial")&&be++,ge("percent previous")&&be++,ge("percent total")&&be++;var Ae=be>1;ge("percent initial")&&(ce=i.formatPercent(Z.begR),Ae&&(ce+=" of initial"),ne.push(ce)),ge("percent previous")&&(ce=i.formatPercent(Z.difR),Ae&&(ce+=" of previous"),ne.push(ce)),ge("percent total")&&(ce=i.formatPercent(Z.sumR),Ae&&(ce+=" of total"),ne.push(ce))}return ne.join("
    ")}G.exports={plot:s,toMoveInsideBar:N}},45784:function(G){G.exports=function(g,C){var i=g.cd,S=g.xaxis,x=g.yaxis,v=i[0].trace,p=v.type==="funnel",r=v.orientation==="h",t=[],a;if(C===!1)for(a=0;a1||s.bargap===0&&s.bargroupgap===0&&!L[0].trace.marker.line.width)&&g.select(this).attr("shape-rendering","crispEdges")}),E.selectAll("g.points").each(function(L){var M=g.select(this),z=L[0].trace;c(M,z,y)}),x.getComponentMethod("errorbars","style")(E)}function c(y,E,T){i.pointStyle(y.selectAll("path"),E,T),l(y,E,T)}function l(y,E,T){y.selectAll("text").each(function(s){var L=g.select(this),M=S.ensureUniformFontSize(T,u(L,s,E,T));i.font(L,M)})}function m(y,E,T){var s=E[0].trace;s.selectedpoints?h(T,s,y):(c(T,s,y),x.getComponentMethod("errorbars","style")(T))}function h(y,E,T){i.selectedPointStyle(y.selectAll("path"),E),b(y.selectAll("text"),E,T)}function b(y,E,T){y.each(function(s){var L=g.select(this),M;if(s.selected){M=S.ensureUniformFontSize(T,u(L,s,E,T));var z=E.selected.textfont&&E.selected.textfont.color;z&&(M.color=z),i.font(L,M)}else i.selectedTextStyle(L,E)})}function u(y,E,T,s){var L=s._fullLayout.font,M=T.textfont;if(y.classed("bartext-inside")){var z=_(E,T);M=d(T,E.i,L,z)}else y.classed("bartext-outside")&&(M=w(T,E.i,L));return M}function o(y,E,T){return A(r,y.textfont,E,T)}function d(y,E,T,s){var L=o(y,E,T),M=y._input.textfont===void 0||y._input.textfont.color===void 0||Array.isArray(y.textfont.color)&&y.textfont.color[E]===void 0;return M&&(L={color:C.contrast(s),family:L.family,size:L.size}),A(t,y.insidetextfont,E,L)}function w(y,E,T){var s=o(y,E,T);return A(a,y.outsidetextfont,E,s)}function A(y,E,T,s){E=E||{};var L=n.getValue(E.family,T),M=n.getValue(E.size,T),z=n.getValue(E.color,T);return{family:n.coerceString(y.family,L,s.family),size:n.coerceNumber(y.size,M,s.size),color:n.coerceColor(y.color,z,s.color)}}function _(y,E){return E.type==="waterfall"?E[y.dir].marker.color:y.mcc||y.mc||E.marker.color}G.exports={style:f,styleTextPoints:l,styleOnSelect:m,getInsideTextFont:d,getOutsideTextFont:w,getBarColor:_,resizeText:v}},55592:function(G,U,e){var g=e(76308),C=e(94288).hasColorscale,i=e(27260),S=e(3400).coercePattern;G.exports=function(v,p,r,t,a){var n=r("marker.color",t),f=C(v,"marker");f&&i(v,p,a,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",g.defaultLine),C(v,"marker.line")&&i(v,p,a,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),S(r,"marker.pattern",n,f),r("selected.marker.color"),r("unselected.marker.color")}},82744:function(G,U,e){var g=e(33428),C=e(3400);function i(p,r,t){var a=p._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var f=a.uniformtext.mode==="hide",c;switch(t){case"funnelarea":case"pie":case"sunburst":c="g.slice";break;case"treemap":case"icicle":c="g.slice, g.pathbar";break;default:c="g.points > g.point"}r.selectAll(c).each(function(l){var m=l.transform;if(m){m.scale=f&&m.hide?0:n/m.fontSize;var h=g.select(this).select("text");C.setTransormAndDisplay(h,m)}})}}function S(p,r,t){if(t.uniformtext.mode){var a=v(p),n=t.uniformtext.minsize,f=r.scale*r.fontSize;r.hide=fl.range[1]&&(w+=Math.PI);var A=function(T){return b(d,w,[T.rp0,T.rp1],[T.thetag0,T.thetag1],h)?u+Math.min(1,Math.abs(T.thetag1-T.thetag0)/o)-1+(T.rp1-d)/(T.rp1-T.rp0)-1:1/0};if(g.getClosest(n,A,r),r.index!==!1){var _=r.index,y=n[_];r.x0=r.x1=y.ct[0],r.y0=r.y1=y.ct[1];var E=C.extendFlat({},y,{r:y.s,theta:y.p});return S(y,f,r),x(E,f,c,r),r.hovertemplate=f.hovertemplate,r.color=i(f,y),r.xLabelVal=r.yLabelVal=void 0,y.s<0&&(r.idealAlign="left"),[r]}}},94456:function(G,U,e){G.exports={moduleType:"trace",name:"barpolar",basePlotModule:e(40872),categories:["polar","bar","showLegend"],attributes:e(78100),layoutAttributes:e(9320),supplyDefaults:e(70384),supplyLayoutDefaults:e(89580),calc:e(47056).calc,crossTraceCalc:e(47056).crossTraceCalc,plot:e(42040),colorbar:e(5528),formatLabels:e(22852),style:e(60100).style,styleOnSelect:e(60100).styleOnSelect,hoverPoints:e(68896),selectPoints:e(45784),meta:{}}},9320:function(G){G.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(G,U,e){var g=e(3400),C=e(9320);G.exports=function(i,S,x){var v={},p;function r(n,f){return g.coerce(i[p]||{},S[p],C,n,f)}for(var t=0;t0?(l=f,m=c):(l=c,m=f);var h=x.findEnclosingVertexAngles(l,p.vangles)[0],b=x.findEnclosingVertexAngles(m,p.vangles)[1],u=[h,(l+m)/2,b];return x.pathPolygonAnnulus(a,n,l,m,u,r,t)}:function(a,n,f,c){return i.pathAnnulus(a,n,f,c,r,t)}}},63188:function(G,U,e){var g=e(98304),C=e(52904),i=e(20832),S=e(22548),x=e(29736).axisHoverFormat,v=e(21776).Ks,p=e(92880).extendFlat,r=C.marker,t=r.line;G.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:C.xperiod,yperiod:C.yperiod,xperiod0:C.xperiod0,yperiod0:C.yperiod0,xperiodalignment:C.xperiodalignment,yperiodalignment:C.yperiodalignment,xhoverformat:x("x"),yhoverformat:x("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:p({},r.symbol,{arrayOk:!1,editType:"plot"}),opacity:p({},r.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:p({},r.angle,{arrayOk:!1,editType:"calc"}),size:p({},r.size,{arrayOk:!1,editType:"calc"}),color:p({},r.color,{arrayOk:!1,editType:"style"}),line:{color:p({},t.color,{arrayOk:!1,dflt:S.defaultLine,editType:"style"}),width:p({},t.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:g(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:C.selected.marker,editType:"style"},unselected:{marker:C.unselected.marker,editType:"style"},text:p({},C.text,{}),hovertext:p({},C.hovertext,{}),hovertemplate:v({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(G,U,e){var g=e(38248),C=e(54460),i=e(1220),S=e(3400),x=e(39032).BADNUM,v=S._;G.exports=function(w,A){var _=w._fullLayout,y=C.getFromId(w,A.xaxis||"x"),E=C.getFromId(w,A.yaxis||"y"),T=[],s=A.type==="violin"?"_numViolins":"_numBoxes",L,M,z,D,N,I,k;A.orientation==="h"?(z=y,D="x",N=E,I="y",k=!!A.yperiodalignment):(z=E,D="y",N=y,I="x",k=!!A.xperiodalignment);var B=p(A,I,N,_[s]),O=B[0],H=B[1],Y=S.distinctVals(O,N),j=Y.vals,te=Y.minDiff/2,ie,ue,J,X,ee,V,Q=(A.boxpoints||A.points)==="all"?S.identity:function(St){return St.vie.uf};if(A._hasPreCompStats){var oe=A[D],$=function(St){return z.d2c((A[St]||[])[L])},Z=1/0,se=-1/0;for(L=0;L=ie.q1&&ie.q3>=ie.med){var ce=$("lowerfence");ie.lf=ce!==x&&ce<=ie.q1?ce:m(ie,J,X);var ge=$("upperfence");ie.uf=ge!==x&&ge>=ie.q3?ge:h(ie,J,X);var Te=$("mean");ie.mean=Te!==x?Te:X?S.mean(J,X):(ie.q1+ie.q3)/2;var we=$("sd");ie.sd=Te!==x&&we>=0?we:X?S.stdev(J,X,ie.mean):ie.q3-ie.q1,ie.lo=b(ie),ie.uo=u(ie);var Re=$("notchspan");Re=Re!==x&&Re>0?Re:o(ie,X),ie.ln=ie.med-Re,ie.un=ie.med+Re;var be=ie.lf,Ae=ie.uf;A.boxpoints&&J.length&&(be=Math.min(be,J[0]),Ae=Math.max(Ae,J[X-1])),A.notched&&(be=Math.min(be,ie.ln),Ae=Math.max(Ae,ie.un)),ie.min=be,ie.max=Ae}else{S.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+ie.q1,"median = "+ie.med,"q3 = "+ie.q3].join(` +`));var me;ie.med!==x?me=ie.med:ie.q1!==x?ie.q3!==x?me=(ie.q1+ie.q3)/2:me=ie.q1:ie.q3!==x?me=ie.q3:me=0,ie.med=me,ie.q1=ie.q3=me,ie.lf=ie.uf=me,ie.mean=ie.sd=me,ie.ln=ie.un=me,ie.min=ie.max=me}Z=Math.min(Z,ie.min),se=Math.max(se,ie.max),ie.pts2=ue.filter(Q),T.push(ie)}}A._extremes[z._id]=C.findExtremes(z,[Z,se],{padded:!0})}else{var Le=z.makeCalcdata(A,D),He=r(j,te),Ue=j.length,ke=t(Ue);for(L=0;L=0&&Ve0){if(ie={},ie.pos=ie[I]=j[L],ue=ie.pts=ke[L].sort(c),J=ie[D]=ue.map(l),X=J.length,ie.min=J[0],ie.max=J[X-1],ie.mean=S.mean(J,X),ie.sd=S.stdev(J,X,ie.mean)*A.sdmultiple,ie.med=S.interp(J,.5),X%2&&($e||lt)){var ht,dt;$e?(ht=J.slice(0,X/2),dt=J.slice(X/2+1)):lt&&(ht=J.slice(0,X/2+1),dt=J.slice(X/2)),ie.q1=S.interp(ht,.5),ie.q3=S.interp(dt,.5)}else ie.q1=S.interp(J,.25),ie.q3=S.interp(J,.75);ie.lf=m(ie,J,X),ie.uf=h(ie,J,X),ie.lo=b(ie),ie.uo=u(ie);var xt=o(ie,X);ie.ln=ie.med-xt,ie.un=ie.med+xt,Ie=Math.min(Ie,ie.ln),rt=Math.max(rt,ie.un),ie.pts2=ue.filter(Q),T.push(ie)}A.notched&&S.isTypedArray(Le)&&(Le=Array.from(Le)),A._extremes[z._id]=C.findExtremes(z,A.notched?Le.concat([Ie,rt]):Le,{padded:!0})}return f(T,A),T.length>0?(T[0].t={num:_[s],dPos:te,posLetter:I,valLetter:D,labels:{med:v(w,"median:"),min:v(w,"min:"),q1:v(w,"q1:"),q3:v(w,"q3:"),max:v(w,"max:"),mean:A.boxmean==="sd"||A.sizemode==="sd"?v(w,"mean ± σ:").replace("σ",A.sdmultiple===1?"σ":A.sdmultiple+"σ"):v(w,"mean:"),lf:v(w,"lower fence:"),uf:v(w,"upper fence:")}},_[s]++,T):[{t:{empty:!0}}]};function p(d,w,A,_){var y=w in d,E=w+"0"in d,T="d"+w in d;if(y||E&&T){var s=A.makeCalcdata(d,w),L=i(d,A,w,s).vals;return[L,s]}var M;E?M=d[w+"0"]:"name"in d&&(A.type==="category"||g(d.name)&&["linear","log"].indexOf(A.type)!==-1||S.isDateTime(d.name)&&A.type==="date")?M=d.name:M=_;for(var z=A.type==="multicategory"?A.r2c_just_indices(M):A.d2c(M,0,d[w+"calendar"]),D=d._length,N=new Array(D),I=0;I1,E=1-f[p+"gap"],T=1-f[p+"groupgap"];for(m=0;m0;if(z==="positive"?(ie=D*(M?1:.5),X=J,ue=X=I):z==="negative"?(ie=X=I,ue=D*(M?1:.5),ee=J):(ie=ue=D,X=ee=J),se){var ne=s.pointpos,ce=s.jitter,ge=s.marker.size/2,Te=0;ne+ce>=0&&(Te=J*(ne+ce),Te>ie?(Z=!0,oe=ge,V=Te):Te>X&&(oe=ge,V=ie)),Te<=ie&&(V=ie);var we=0;ne-ce<=0&&(we=-J*(ne-ce),we>ue?(Z=!0,$=ge,Q=we):we>ee&&($=ge,Q=ue)),we<=ue&&(Q=ue)}else V=ie,Q=ue;var Re=new Array(b.length);for(h=0;h0?(z="v",E>0?D=Math.min(s,T):D=Math.min(T)):E>0?(z="h",D=Math.min(s)):D=0;if(!D){c.visible=!1;return}c._length=D;var O=l("orientation",z);c._hasPreCompStats?O==="v"&&E===0?(l("x0",0),l("dx",1)):O==="h"&&y===0&&(l("y0",0),l("dy",1)):O==="v"&&E===0?l("x0"):O==="h"&&y===0&&l("y0");var H=C.getComponentMethod("calendars","handleTraceDefaults");H(f,c,["x","y"],m)}function a(f,c,l,m){var h=m.prefix,b=g.coerce2(f,c,p,"marker.outliercolor"),u=l("marker.line.outliercolor"),o="outliers";c._hasPreCompStats?o="all":(b||u)&&(o="suspectedoutliers");var d=l(h+"points",o);d?(l("jitter",d==="all"?.3:0),l("pointpos",d==="all"?-1.5:0),l("marker.symbol"),l("marker.opacity"),l("marker.size"),l("marker.angle"),l("marker.color",c.line.color),l("marker.line.color"),l("marker.line.width"),d==="suspectedoutliers"&&(l("marker.line.outliercolor",c.marker.color),l("marker.line.outlierwidth")),l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size"),l("text"),l("hovertext")):delete c.marker;var w=l("hoveron");(w==="all"||w.indexOf("points")!==-1)&&l("hovertemplate"),g.coerceSelectionMarkerOpacity(c,l)}function n(f,c){var l,m;function h(o){return g.coerce(m._input,m,p,o)}for(var b=0;bA.lo&&(O.so=!0)}return y});w.enter().append("path").classed("point",!0),w.exit().remove(),w.call(i.translatePoints,l,m)}function t(a,n,f,c){var l=n.val,m=n.pos,h=!!m.rangebreaks,b=c.bPos,u=c.bPosPxOffset||0,o=f.boxmean||(f.meanline||{}).visible,d,w;Array.isArray(c.bdPos)?(d=c.bdPos[0],w=c.bdPos[1]):(d=c.bdPos,w=c.bdPos);var A=a.selectAll("path.mean").data(f.type==="box"&&f.boxmean||f.type==="violin"&&f.box.visible&&f.meanline.visible?C.identity:[]);A.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),A.exit().remove(),A.each(function(_){var y=m.c2l(_.pos+b,!0),E=m.l2p(y-d)+u,T=m.l2p(y+w)+u,s=h?(E+T)/2:m.l2p(y)+u,L=l.c2p(_.mean,!0),M=l.c2p(_.mean-_.sd,!0),z=l.c2p(_.mean+_.sd,!0);f.orientation==="h"?g.select(this).attr("d","M"+L+","+E+"V"+T+(o==="sd"?"m0,0L"+M+","+s+"L"+L+","+E+"L"+z+","+s+"Z":"")):g.select(this).attr("d","M"+E+","+L+"H"+T+(o==="sd"?"m0,0L"+s+","+M+"L"+E+","+L+"L"+s+","+z+"Z":""))})}G.exports={plot:v,plotBoxAndWhiskers:p,plotPoints:r,plotBoxMean:t}},8264:function(G){G.exports=function(e,g){var C=e.cd,i=e.xaxis,S=e.yaxis,x=[],v,p;if(g===!1)for(v=0;v=10)return null;for(var x=1/0,v=-1/0,p=i.length,r=0;r0?Math.floor:Math.ceil,k=D>0?Math.ceil:Math.floor,B=D>0?Math.min:Math.max,O=D>0?Math.max:Math.min,H=I(M+N),Y=k(z-N);f=L(M);var j=[[f]];for(v=H;v*D=0;S--)x[a-S]=e[n][S],v[a-S]=g[n][S];for(p.push({x,y:v,bicubic:r}),S=n,x=[],v=[];S>=0;S--)x[n-S]=e[S][0],v[n-S]=g[S][0];return p.push({x,y:v,bicubic:t}),p}},19216:function(G,U,e){var g=e(54460),C=e(92880).extendFlat;G.exports=function(S,x,v){var p,r,t,a,n,f,c,l,m,h,b,u,o,d,w=S["_"+x],A=S[x+"axis"],_=A._gridlines=[],y=A._minorgridlines=[],E=A._boundarylines=[],T=S["_"+v],s=S[v+"axis"];A.tickmode==="array"&&(A.tickvals=w.slice());var L=S._xctrl,M=S._yctrl,z=L[0].length,D=L.length,N=S._a.length,I=S._b.length;g.prepTicks(A),A.tickmode==="array"&&delete A.tickvals;var k=A.smoothing?3:1;function B(H){var Y,j,te,ie,ue,J,X,ee,V,Q,oe,$,Z=[],se=[],ne={};if(x==="b")for(j=S.b2j(H),te=Math.floor(Math.max(0,Math.min(I-2,j))),ie=j-te,ne.length=I,ne.crossLength=N,ne.xy=function(ce){return S.evalxy([],ce,j)},ne.dxy=function(ce,ge){return S.dxydi([],ce,te,ge,ie)},Y=0;Y0&&(V=S.dxydi([],Y-1,te,0,ie),Z.push(ue[0]+V[0]/3),se.push(ue[1]+V[1]/3),Q=S.dxydi([],Y-1,te,1,ie),Z.push(ee[0]-Q[0]/3),se.push(ee[1]-Q[1]/3)),Z.push(ee[0]),se.push(ee[1]),ue=ee;else for(Y=S.a2i(H),J=Math.floor(Math.max(0,Math.min(N-2,Y))),X=Y-J,ne.length=N,ne.crossLength=I,ne.xy=function(ce){return S.evalxy([],Y,ce)},ne.dxy=function(ce,ge){return S.dxydj([],J,ce,X,ge)},j=0;j0&&(oe=S.dxydj([],J,j-1,X,0),Z.push(ue[0]+oe[0]/3),se.push(ue[1]+oe[1]/3),$=S.dxydj([],J,j-1,X,1),Z.push(ee[0]-$[0]/3),se.push(ee[1]-$[1]/3)),Z.push(ee[0]),se.push(ee[1]),ue=ee;return ne.axisLetter=x,ne.axis=A,ne.crossAxis=s,ne.value=H,ne.constvar=v,ne.index=l,ne.x=Z,ne.y=se,ne.smoothing=s.smoothing,ne}function O(H){var Y,j,te,ie,ue,J=[],X=[],ee={};if(ee.length=w.length,ee.crossLength=T.length,x==="b")for(te=Math.max(0,Math.min(I-2,H)),ue=Math.min(1,Math.max(0,H-te)),ee.xy=function(V){return S.evalxy([],V,H)},ee.dxy=function(V,Q){return S.dxydi([],V,te,Q,ue)},Y=0;Yw.length-1)&&_.push(C(O(r),{color:A.gridcolor,width:A.gridwidth,dash:A.griddash}));for(l=f;lw.length-1)&&!(b<0||b>w.length-1))for(u=w[t],o=w[b],p=0;pw[w.length-1])&&y.push(C(B(h),{color:A.minorgridcolor,width:A.minorgridwidth,dash:A.minorgriddash})));A.startline&&E.push(C(O(0),{color:A.startlinecolor,width:A.startlinewidth})),A.endline&&E.push(C(O(w.length-1),{color:A.endlinecolor,width:A.endlinewidth}))}else{for(a=5e-15,n=[Math.floor((w[w.length-1]-A.tick0)/A.dtick*(1+a)),Math.ceil((w[0]-A.tick0)/A.dtick/(1+a))].sort(function(H,Y){return H-Y}),f=n[0],c=n[1],l=f;l<=c;l++)m=A.tick0+A.dtick*l,_.push(C(B(m),{color:A.gridcolor,width:A.gridwidth,dash:A.griddash}));for(l=f-1;lw[w.length-1])&&y.push(C(B(h),{color:A.minorgridcolor,width:A.minorgridwidth,dash:A.minorgriddash}));A.startline&&E.push(C(B(w[0]),{color:A.startlinecolor,width:A.startlinewidth})),A.endline&&E.push(C(B(w[w.length-1]),{color:A.endlinecolor,width:A.endlinewidth}))}}},14724:function(G,U,e){var g=e(54460),C=e(92880).extendFlat;G.exports=function(S,x){var v,p,r,t,a,n=x._labels=[],f=x._gridlines;for(v=0;vS.length&&(i=i.slice(0,S.length)):i=[],v=0;v90&&(c-=180,r=-r),{angle:c,flip:r,p:e.c2p(i,g,C),offsetMultplier:t}}},164:function(G,U,e){var g=e(33428),C=e(43616),i=e(87072),S=e(53416),x=e(15584),v=e(72736),p=e(3400),r=p.strRotate,t=p.strTranslate,a=e(84284);G.exports=function(o,d,w,A){var _=o._context.staticPlot,y=d.xaxis,E=d.yaxis,T=o._fullLayout,s=T._clips;p.makeTraceGroups(A,w,"trace").each(function(L){var M=g.select(this),z=L[0],D=z.trace,N=D.aaxis,I=D.baxis,k=p.ensureSingle(M,"g","minorlayer"),B=p.ensureSingle(M,"g","majorlayer"),O=p.ensureSingle(M,"g","boundarylayer"),H=p.ensureSingle(M,"g","labellayer");M.style("opacity",D.opacity),f(y,E,B,N,"a",N._gridlines,!0),f(y,E,B,I,"b",I._gridlines,!0),f(y,E,k,N,"a",N._minorgridlines,!0),f(y,E,k,I,"b",I._minorgridlines,!0),f(y,E,O,N,"a-boundary",N._boundarylines,_),f(y,E,O,I,"b-boundary",I._boundarylines,_);var Y=c(o,y,E,D,z,H,N._labels,"a-label"),j=c(o,y,E,D,z,H,I._labels,"b-label");l(o,H,D,z,y,E,Y,j),n(D,z,s,y,E)})};function n(u,o,d,w,A){var _,y,E,T,s=d.select("#"+u._clipPathId);s.size()||(s=d.append("clipPath").classed("carpetclip",!0));var L=p.ensureSingle(s,"path","carpetboundary"),M=o.clipsegments,z=[];for(T=0;T0?"start":"end","data-notex":1}).call(C.font,M.font).text(M.text).call(v.convertToTspans,u),B=C.bBox(this);k.attr("transform",t(D.p[0],D.p[1])+r(D.angle)+t(M.axis.labelpadding*I,B.height*.3)),s=Math.max(s,B.width+M.axis.labelpadding)}),T.exit().remove(),L.maxExtent=s,L}function l(u,o,d,w,A,_,y,E){var T,s,L,M,z=p.aggNums(Math.min,null,d.a),D=p.aggNums(Math.max,null,d.a),N=p.aggNums(Math.min,null,d.b),I=p.aggNums(Math.max,null,d.b);T=.5*(z+D),s=N,L=d.ab2xy(T,s,!0),M=d.dxyda_rough(T,s),y.angle===void 0&&p.extendFlat(y,x(d,A,_,L,d.dxydb_rough(T,s))),b(u,o,d,w,L,M,d.aaxis,A,_,y,"a-title"),T=z,s=.5*(N+I),L=d.ab2xy(T,s,!0),M=d.dxydb_rough(T,s),E.angle===void 0&&p.extendFlat(E,x(d,A,_,L,d.dxyda_rough(T,s))),b(u,o,d,w,L,M,d.baxis,A,_,E,"b-title")}var m=a.LINE_SPACING,h=(1-a.MID_SHIFT)/m+1;function b(u,o,d,w,A,_,y,E,T,s,L){var M=[];y.title.text&&M.push(y.title.text);var z=o.selectAll("text."+L).data(M),D=s.maxExtent;z.enter().append("text").classed(L,!0),z.each(function(){var N=x(d,E,T,A,_);["start","both"].indexOf(y.showticklabels)===-1&&(D=0);var I=y.title.font.size;D+=I+y.title.offset;var k=s.angle+(s.flip<0?180:0),B=(k-N.angle+450)%360,O=B>90&&B<270,H=g.select(this);H.text(y.title.text).call(v.convertToTspans,u),O&&(D=(-v.lineCount(H)+h)*m*I-D),H.attr("transform",t(N.p[0],N.p[1])+r(N.angle)+t(0,D)).attr("text-anchor","middle").call(C.font,y.title.font)}),z.exit().remove()}},81e3:function(G,U,e){var g=e(24588),C=e(14952).findBin,i=e(30180),S=e(29056),x=e(26435),v=e(24464);G.exports=function(r){var t=r._a,a=r._b,n=t.length,f=a.length,c=r.aaxis,l=r.baxis,m=t[0],h=t[n-1],b=a[0],u=a[f-1],o=t[t.length-1]-t[0],d=a[a.length-1]-a[0],w=o*g.RELATIVE_CULL_TOLERANCE,A=d*g.RELATIVE_CULL_TOLERANCE;m-=w,h+=w,b-=A,u+=A,r.isVisible=function(_,y){return _>m&&_b&&yh||yu},r.setScale=function(){var _=r._x,y=r._y,E=i(r._xctrl,r._yctrl,_,y,c.smoothing,l.smoothing);r._xctrl=E[0],r._yctrl=E[1],r.evalxy=S([r._xctrl,r._yctrl],n,f,c.smoothing,l.smoothing),r.dxydi=x([r._xctrl,r._yctrl],c.smoothing,l.smoothing),r.dxydj=v([r._xctrl,r._yctrl],c.smoothing,l.smoothing)},r.i2a=function(_){var y=Math.max(0,Math.floor(_[0]),n-2),E=_[0]-y;return(1-E)*t[y]+E*t[y+1]},r.j2b=function(_){var y=Math.max(0,Math.floor(_[1]),n-2),E=_[1]-y;return(1-E)*a[y]+E*a[y+1]},r.ij2ab=function(_){return[r.i2a(_[0]),r.j2b(_[1])]},r.a2i=function(_){var y=Math.max(0,Math.min(C(_,t),n-2)),E=t[y],T=t[y+1];return Math.max(0,Math.min(n-1,y+(_-E)/(T-E)))},r.b2j=function(_){var y=Math.max(0,Math.min(C(_,a),f-2)),E=a[y],T=a[y+1];return Math.max(0,Math.min(f-1,y+(_-E)/(T-E)))},r.ab2ij=function(_){return[r.a2i(_[0]),r.b2j(_[1])]},r.i2c=function(_,y){return r.evalxy([],_,y)},r.ab2xy=function(_,y,E){if(!E&&(_t[n-1]|ya[f-1]))return[!1,!1];var T=r.a2i(_),s=r.b2j(y),L=r.evalxy([],T,s);if(E){var M=0,z=0,D=[],N,I,k,B;_t[n-1]?(N=n-2,I=1,M=(_-t[n-1])/(t[n-1]-t[n-2])):(N=Math.max(0,Math.min(n-2,Math.floor(T))),I=T-N),ya[f-1]?(k=f-2,B=1,z=(y-a[f-1])/(a[f-1]-a[f-2])):(k=Math.max(0,Math.min(f-2,Math.floor(s))),B=s-k),M&&(r.dxydi(D,N,k,I,B),L[0]+=D[0]*M,L[1]+=D[1]*M),z&&(r.dxydj(D,N,k,I,B),L[0]+=D[0]*z,L[1]+=D[1]*z)}return L},r.c2p=function(_,y,E){return[y.c2p(_[0]),E.c2p(_[1])]},r.p2x=function(_,y,E){return[y.p2c(_[0]),E.p2c(_[1])]},r.dadi=function(_){var y=Math.max(0,Math.min(t.length-2,_));return t[y+1]-t[y]},r.dbdj=function(_){var y=Math.max(0,Math.min(a.length-2,_));return a[y+1]-a[y]},r.dxyda=function(_,y,E,T){var s=r.dxydi(null,_,y,E,T),L=r.dadi(_,E);return[s[0]/L,s[1]/L]},r.dxydb=function(_,y,E,T){var s=r.dxydj(null,_,y,E,T),L=r.dbdj(y,T);return[s[0]/L,s[1]/L]},r.dxyda_rough=function(_,y,E){var T=o*(E||.1),s=r.ab2xy(_+T,y,!0),L=r.ab2xy(_-T,y,!0);return[(s[0]-L[0])*.5/T,(s[1]-L[1])*.5/T]},r.dxydb_rough=function(_,y,E){var T=d*(E||.1),s=r.ab2xy(_,y+T,!0),L=r.ab2xy(_,y-T,!0);return[(s[0]-L[0])*.5/T,(s[1]-L[1])*.5/T]},r.dpdx=function(_){return _._m},r.dpdy=function(_){return _._m}}},51512:function(G,U,e){var g=e(3400);G.exports=function(i,S,x){var v,p,r,t=[],a=[],n=i[0].length,f=i.length;function c(j,te){var ie=0,ue,J=0;return j>0&&(ue=i[te][j-1])!==void 0&&(J++,ie+=ue),j0&&(ue=i[te-1][j])!==void 0&&(J++,ie+=ue),te0&&p0&&vT);return g.log("Smoother converged to",s,"after",M,"iterations"),i}},86411:function(G,U,e){var g=e(3400).isArray1D;G.exports=function(i,S,x){var v=x("x"),p=v&&v.length,r=x("y"),t=r&&r.length;if(!p&&!t)return!1;if(S._cheater=!v,(!p||g(v))&&(!t||g(r))){var a=p?v.length:1/0;t&&(a=Math.min(a,r.length)),S.a&&S.a.length&&(a=Math.min(a,S.a.length)),S.b&&S.b.length&&(a=Math.min(a,S.b.length)),S._length=a}else S._length=null;return!0}},83372:function(G,U,e){var g=e(21776).Ks,C=e(6096),i=e(49084),S=e(45464),x=e(22548).defaultLine,v=e(92880).extendFlat,p=C.marker.line;G.exports=v({locations:{valType:"data_array",editType:"calc"},locationmode:C.locationmode,z:{valType:"data_array",editType:"calc"},geojson:v({},C.geojson,{}),featureidkey:C.featureidkey,text:v({},C.text,{}),hovertext:v({},C.hovertext,{}),marker:{line:{color:v({},p.color,{dflt:x}),width:v({},p.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:C.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:C.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:v({},S.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:g(),showlegend:v({},S.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(G,U,e){var g=e(38248),C=e(39032).BADNUM,i=e(47128),S=e(20148),x=e(4500);function v(p){return p&&typeof p=="string"}G.exports=function(r,t){var a=t._length,n=new Array(a),f;t.geojson?f=function(b){return v(b)||g(b)}:f=v;for(var c=0;c")}}},54272:function(G,U,e){G.exports={attributes:e(83372),supplyDefaults:e(30972),colorbar:e(96288),calc:e(7924),calcGeoJSON:e(88364).calcGeoJSON,plot:e(88364).plot,style:e(7947).style,styleOnSelect:e(7947).styleOnSelect,hoverPoints:e(69224),eventData:e(52428),selectPoints:e(17328),moduleType:"trace",name:"choropleth",basePlotModule:e(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(G,U,e){var g=e(33428),C=e(3400),i=e(27144),S=e(59972).getTopojsonFeatures,x=e(19280).findExtremes,v=e(7947).style;function p(t,a,n){var f=a.layers.backplot.select(".choroplethlayer");C.makeTraceGroups(f,n,"trace choropleth").each(function(c){var l=g.select(this),m=l.selectAll("path.choroplethlocation").data(C.identity);m.enter().append("path").classed("choroplethlocation",!0),m.exit().remove(),v(t,c)})}function r(t,a){for(var n=t[0].trace,f=a[n.geo],c=f._subplot,l=n.locationmode,m=n._length,h=l==="geojson-id"?i.extractTraceFeature(t):S(n,c.topojson),b=[],u=[],o=0;o=0;S--){var x=i[S].id;if(typeof x=="string"&&x.indexOf("water")===0){for(var v=S+1;v=0;r--)v.removeLayer(p[r][1])},x.dispose=function(){var v=this.subplot.map;this._removeLayers(),v.removeSource(this.sourceId)},G.exports=function(p,r){var t=r[0].trace,a=new S(p,t.uid),n=a.sourceId,f=g(r),c=a.below=p.belowLookup["trace-"+t.uid];return p.map.addSource(n,{type:"geojson",data:f.geojson}),a._addLayers(f,c),r[0].trace._glTrace=a,a}},86040:function(G,U,e){var g=e(49084),C=e(29736).axisHoverFormat,i=e(21776).Ks,S=e(52948),x=e(45464),v=e(92880).extendFlat,p={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"},{keys:["norm"]}),uhoverformat:C("u",1),vhoverformat:C("v",1),whoverformat:C("w",1),xhoverformat:C("x"),yhoverformat:C("y"),zhoverformat:C("z"),showlegend:v({},x.showlegend,{dflt:!1})};v(p,g("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var r=["opacity","lightposition","lighting"];r.forEach(function(t){p[t]=S[t]}),p.hoverinfo=v({},x.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),p.transforms=void 0,G.exports=p},83344:function(G,U,e){var g=e(47128);G.exports=function(i,S){for(var x=S.u,v=S.v,p=S.w,r=Math.min(S.x.length,S.y.length,S.z.length,x.length,v.length,p.length),t=-1/0,a=1/0,n=0;nx.level||x.starts.length&&S===x.level)}break;case"constraint":if(g.prefixBoundary=!1,g.edgepaths.length)return;var v=g.x.length,p=g.y.length,r=-1/0,t=1/0;for(i=0;i":a>r&&(g.prefixBoundary=!0);break;case"<":(ar||g.starts.length&&f===t)&&(g.prefixBoundary=!0);break;case"][":n=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),nr&&(g.prefixBoundary=!0);break}break}}},55296:function(G,U,e){var g=e(8932),C=e(41076),i=e(46960);function S(x,v,p){var r=v.contours,t=v.line,a=r.size||1,n=r.coloring,f=C(v,{isColorbar:!0});if(n==="heatmap"){var c=g.extractOpts(v);p._fillgradient=c.reversescale?g.flipScale(c.colorscale):c.colorscale,p._zrange=[c.min,c.max]}else n==="fill"&&(p._fillcolor=f);p._line={color:n==="lines"?f:t.color,width:r.showlines!==!1?t.width:0,dash:t.dash},p._levels={start:r.start,end:i(r),size:a}}G.exports={min:"zmin",max:"zmax",calc:S}},93252:function(G){G.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(G,U,e){var g=e(38248),C=e(17428),i=e(76308),S=i.addOpacity,x=i.opacity,v=e(69104),p=e(3400).isArrayOrTypedArray,r=v.CONSTRAINT_REDUCTION,t=v.COMPARISON_OPS2;G.exports=function(f,c,l,m,h,b){var u=c.contours,o,d,w,A=l("contours.operation");if(u._operation=r[A],a(l,u),A==="="?o=u.showlines=!0:(o=l("contours.showlines"),w=l("fillcolor",S((f.line||{}).color||h,.5))),o){var _=w&&x(w)?S(c.fillcolor,1):h;d=l("line.color",_),l("line.width",2),l("line.dash")}l("line.smoothing"),C(l,m,d,b)};function a(n,f){var c;t.indexOf(f.operation)===-1?(n("contours.value",[0,1]),p(f.value)?f.value.length>2?f.value=f.value.slice(2):f.length===0?f.value=[0,1]:f.length<2?(c=parseFloat(f.value[0]),f.value=[c,c+1]):f.value=[parseFloat(f.value[0]),parseFloat(f.value[1])]:g(f.value)&&(c=parseFloat(f.value),f.value=[c,c+1])):(n("contours.value",0),g(f.value)||(p(f.value)?f.value=parseFloat(f.value[0]):f.value=0))}},3212:function(G,U,e){var g=e(69104),C=e(38248);G.exports={"[]":S("[]"),"][":S("]["),">":x(">"),"<":x("<"),"=":x("=")};function i(v,p){var r=Array.isArray(p),t;function a(n){return C(n)?+n:null}return g.COMPARISON_OPS2.indexOf(v)!==-1?t=a(r?p[0]:p):g.INTERVAL_OPS.indexOf(v)!==-1?t=r?[a(p[0]),a(p[1])]:[a(p),a(p)]:g.SET_OPS.indexOf(v)!==-1&&(t=r?p.map(a):[a(p)]),t}function S(v){return function(p){p=i(v,p);var r=Math.min(p[0],p[1]),t=Math.max(p[0],p[1]);return{start:r,end:t,size:t-r}}}function x(v){return function(p){return p=i(v,p),{start:p,end:1/0,size:1/0}}}},84952:function(G){G.exports=function(e,g,C,i){var S=i("contours.start"),x=i("contours.end"),v=S===!1||x===!1,p=C("contours.size"),r;v?r=g.autocontour=!0:r=C("autocontour",!1),(r||!p)&&C("ncontours")}},82172:function(G,U,e){var g=e(3400);G.exports=function(i,S){var x,v,p,r=function(n){return n.reverse()},t=function(n){return n};switch(S){case"=":case"<":return i;case">":for(i.length!==1&&g.warn("Contour data invalid for the specified inequality operation."),v=i[0],x=0;x1e3){g.warn("Too many contours, clipping at 1000",x);break}return a}},46960:function(G){G.exports=function(e){return e.end+e.size/1e6}},88748:function(G,U,e){var g=e(3400),C=e(93252);G.exports=function(t,a,n){var f,c,l,m,h;for(a=a||.01,n=n||.01,l=0;l20?(l=C.CHOOSESADDLE[l][(m[0]||m[1])<0?0:1],r.crossings[c]=C.SADDLEREMAINDER[l]):delete r.crossings[c],m=C.NEWDELTA[l],!m){g.log("Found bad marching index:",l,t,r.level);break}h.push(p(r,t,m)),t[0]+=m[0],t[1]+=m[1],c=t.join(","),i(h[h.length-1],h[h.length-2],n,f)&&h.pop();var A=m[0]&&(t[0]<0||t[0]>u-2)||m[1]&&(t[1]<0||t[1]>b-2),_=t[0]===o[0]&&t[1]===o[1]&&m[0]===d[0]&&m[1]===d[1];if(_||a&&A)break;l=r.crossings[c]}w===1e4&&g.log("Infinite loop in contour?");var y=i(h[0],h[h.length-1],n,f),E=0,T=.2*r.smoothing,s=[],L=0,M,z,D,N,I,k,B,O,H,Y,j;for(w=1;w=L;w--)if(M=s[w],M=L&&M+s[z]O&&H--,r.edgepaths[H]=j.concat(h,Y));break}J||(r.edgepaths[O]=h.concat(Y))}for(O=0;O20&&t?r===208||r===1114?n=a[0]===0?1:-1:f=a[1]===0?1:-1:C.BOTTOMSTART.indexOf(r)!==-1?f=1:C.LEFTSTART.indexOf(r)!==-1?n=1:C.TOPSTART.indexOf(r)!==-1?f=-1:n=-1,[n,f]}function p(r,t,a){var n=t[0]+Math.max(a[0],0),f=t[1]+Math.max(a[1],0),c=r.z[f][n],l=r.xaxis,m=r.yaxis;if(a[1]){var h=(r.level-c)/(r.z[f][n+1]-c),b=(h!==1?(1-h)*l.c2l(r.x[n]):0)+(h!==0?h*l.c2l(r.x[n+1]):0);return[l.c2p(l.l2c(b),!0),m.c2p(r.y[f],!0),n+h,f]}else{var u=(r.level-c)/(r.z[f+1][n]-c),o=(u!==1?(1-u)*m.c2l(r.y[f]):0)+(u!==0?u*m.c2l(r.y[f+1]):0);return[l.c2p(r.x[n],!0),m.c2p(m.l2c(o),!0),n,f+u]}}},38200:function(G,U,e){var g=e(76308),C=e(55512);G.exports=function(S,x,v,p,r){r||(r={}),r.isContour=!0;var t=C(S,x,v,p,r);return t&&t.forEach(function(a){var n=a.trace;n.contours.type==="constraint"&&(n.fillcolor&&g.opacity(n.fillcolor)?a.color=g.addOpacity(n.fillcolor,1):n.contours.showlines&&g.opacity(n.line.color)&&(a.color=g.addOpacity(n.line.color,1)))}),t}},66240:function(G,U,e){G.exports={attributes:e(67104),supplyDefaults:e(57004),calc:e(20688),plot:e(23676).plot,style:e(52440),colorbar:e(55296),hoverPoints:e(38200),moduleType:"trace",name:"contour",basePlotModule:e(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(G,U,e){var g=e(3400);G.exports=function(i,S,x,v){v||(v={});var p=i("contours.showlabels");if(p){var r=S.font;g.coerceFont(i,"contours.labelfont",{family:r.family,size:r.size,color:x}),i("contours.labelformat")}v.hasHover!==!1&&i("zhoverformat")}},41076:function(G,U,e){var g=e(33428),C=e(8932),i=e(46960);G.exports=function(x){var v=x.contours,p=v.start,r=i(v),t=v.size||1,a=Math.floor((r-p)/t)+1,n=v.coloring==="lines"?0:1,f=C.extractOpts(x);isFinite(t)||(t=1,a=1);var c=f.reversescale?C.flipScale(f.colorscale):f.colorscale,l=c.length,m=new Array(l),h=new Array(l),b,u,o=f.min,d=f.max;if(v.coloring==="heatmap"){for(u=0;u=d)&&(p<=o&&(p=o),r>=d&&(r=d),a=Math.floor((r-p)/t)+1,n=0),u=0;uo&&(m.unshift(o),h.unshift(h[0])),m[m.length-1]i?0:1)+(S[0][1]>i?0:2)+(S[1][1]>i?0:4)+(S[1][0]>i?0:8);if(x===5||x===10){var v=(S[0][0]+S[0][1]+S[1][0]+S[1][1])/4;return i>v?x===5?713:1114:x===5?104:208}return x===15?0:x}},23676:function(G,U,e){var g=e(33428),C=e(3400),i=e(43616),S=e(8932),x=e(72736),v=e(54460),p=e(78344),r=e(41420),t=e(72424),a=e(88748),n=e(61512),f=e(82172),c=e(56008),l=e(93252),m=l.LABELOPTIMIZER;U.plot=function(y,E,T,s){var L=E.xaxis,M=E.yaxis;C.makeTraceGroups(s,T,"contour").each(function(z){var D=g.select(this),N=z[0],I=N.trace,k=N.x,B=N.y,O=I.contours,H=n(O,E,N),Y=C.ensureSingle(D,"g","heatmapcoloring"),j=[];O.coloring==="heatmap"&&(j=[z]),r(y,E,j,Y),t(H),a(H);var te=L.c2p(k[0],!0),ie=L.c2p(k[k.length-1],!0),ue=M.c2p(B[0],!0),J=M.c2p(B[B.length-1],!0),X=[[te,J],[ie,J],[ie,ue],[te,ue]],ee=H;O.type==="constraint"&&(ee=f(H,O._operation)),h(D,X,O),b(D,ee,X,O),o(D,H,y,N,O),w(D,E,y,N,X)})};function h(_,y,E){var T=C.ensureSingle(_,"g","contourbg"),s=T.selectAll("path").data(E.coloring==="fill"?[0]:[]);s.enter().append("path"),s.exit().remove(),s.attr("d","M"+y.join("L")+"Z").style("stroke","none")}function b(_,y,E,T){var s=T.coloring==="fill"||T.type==="constraint"&&T._operation!=="=",L="M"+E.join("L")+"Z";s&&c(y,T);var M=C.ensureSingle(_,"g","contourfill"),z=M.selectAll("path").data(s?y:[]);z.enter().append("path"),z.exit().remove(),z.each(function(D){var N=(D.prefixBoundary?L:"")+u(D,E);N?g.select(this).attr("d",N).style("stroke","none"):g.select(this).remove()})}function u(_,y){var E="",T=0,s=_.edgepaths.map(function(te,ie){return ie}),L=!0,M,z,D,N,I,k;function B(te){return Math.abs(te[1]-y[0][1])<.01}function O(te){return Math.abs(te[1]-y[2][1])<.01}function H(te){return Math.abs(te[0]-y[0][0])<.01}function Y(te){return Math.abs(te[0]-y[2][0])<.01}for(;s.length;){for(k=i.smoothopen(_.edgepaths[T],_.smoothing),E+=L?k:k.replace(/^M/,"L"),s.splice(s.indexOf(T),1),M=_.edgepaths[T][_.edgepaths[T].length-1],N=-1,D=0;D<4;D++){if(!M){C.log("Missing end?",T,_);break}for(B(M)&&!Y(M)?z=y[1]:H(M)?z=y[0]:O(M)?z=y[3]:Y(M)&&(z=y[2]),I=0;I<_.edgepaths.length;I++){var j=_.edgepaths[I][0];Math.abs(M[0]-z[0])<.01?Math.abs(M[0]-j[0])<.01&&(j[1]-M[1])*(z[1]-j[1])>=0&&(z=j,N=I):Math.abs(M[1]-z[1])<.01?Math.abs(M[1]-j[1])<.01&&(j[0]-M[0])*(z[0]-j[0])>=0&&(z=j,N=I):C.log("endpt to newendpt is not vert. or horz.",M,z,j)}if(M=z,N>=0)break;E+="L"+z}if(N===_.edgepaths.length){C.log("unclosed perimeter path");break}T=N,L=s.indexOf(T)===-1,L&&(T=s[0],E+="Z")}for(T=0;T<_.paths.length;T++)E+=i.smoothclosed(_.paths[T],_.smoothing);return E}function o(_,y,E,T,s){var L=E._context.staticPlot,M=C.ensureSingle(_,"g","contourlines"),z=s.showlines!==!1,D=s.showlabels,N=z&&D,I=U.createLines(M,z||D,y,L),k=U.createLineClip(M,N,E,T.trace.uid),B=_.selectAll("g.contourlabels").data(D?[0]:[]);if(B.exit().remove(),B.enter().append("g").classed("contourlabels",!0),D){var O=[],H=[];C.clearLocationCache();var Y=U.labelFormatter(E,T),j=i.tester.append("text").attr("data-notex",1).call(i.font,s.labelfont),te=y[0].xaxis,ie=y[0].yaxis,ue=te._length,J=ie._length,X=te.range,ee=ie.range,V=C.aggNums(Math.min,null,T.x),Q=C.aggNums(Math.max,null,T.x),oe=C.aggNums(Math.min,null,T.y),$=C.aggNums(Math.max,null,T.y),Z=Math.max(te.c2p(V,!0),0),se=Math.min(te.c2p(Q,!0),ue),ne=Math.max(ie.c2p($,!0),0),ce=Math.min(ie.c2p(oe,!0),J),ge={};X[0]m.MAXCOST*2)break;B&&(z/=2),M=N-z/2,D=M+z*1.5}if(k<=m.MAXCOST)return I};function d(_,y,E,T){var s=y.width/2,L=y.height/2,M=_.x,z=_.y,D=_.theta,N=Math.cos(D)*s,I=Math.sin(D)*s,k=(M>T.center?T.right-M:M-T.left)/(N+Math.abs(Math.sin(D)*L)),B=(z>T.middle?T.bottom-z:z-T.top)/(Math.abs(I)+Math.cos(D)*L);if(k<1||B<1)return 1/0;var O=m.EDGECOST*(1/(k-1)+1/(B-1));O+=m.ANGLECOST*D*D;for(var H=M-N,Y=z-I,j=M+N,te=z+I,ie=0;iep.end&&(p.start=p.end=(p.start+p.end)/2),x._input.contours||(x._input.contours={}),C.extendFlat(x._input.contours,{start:p.start,end:p.end,size:p.size}),x._input.autocontour=!0}else if(p.type!=="constraint"){var n=p.start,f=p.end,c=x._input.contours;if(n>f&&(p.start=c.start=f,f=p.end=c.end=n,n=p.start),!(p.size>0)){var l;n===f?l=1:l=i(n,f,x.ncontours).dtick,c.size=p.size=l}}};function i(S,x,v){var p={type:"linear",range:[S,x]};return g.autoTicks(p,(x-S)/(v||15)),p}},52440:function(G,U,e){var g=e(33428),C=e(43616),i=e(41648),S=e(41076);G.exports=function(v){var p=g.select(v).selectAll("g.contour");p.style("opacity",function(r){return r[0].trace.opacity}),p.each(function(r){var t=g.select(this),a=r[0].trace,n=a.contours,f=a.line,c=n.size||1,l=n.start,m=n.type==="constraint",h=!m&&n.coloring==="lines",b=!m&&n.coloring==="fill",u=h||b?S(a):null;t.selectAll("g.contourlevel").each(function(w){g.select(this).selectAll("path").call(C.lineGroupStyle,f.width,h?u(w.level):f.color,f.dash)});var o=n.labelfont;if(t.selectAll("g.contourlabels text").each(function(w){C.font(g.select(this),{family:o.family,size:o.size,color:o.color||(h?u(w.level):f.color)})}),m)t.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(b){var d;t.selectAll("g.contourfill path").style("fill",function(w){return d===void 0&&(d=w.level),u(w.level+.5*c)}),d===void 0&&(d=l),t.selectAll("g.contourbg path").style("fill",u(d-.5*c))}}),i(v)}},97680:function(G,U,e){var g=e(27260),C=e(17428);G.exports=function(S,x,v,p,r){var t=v("contours.coloring"),a,n="";t==="fill"&&(a=v("contours.showlines")),a!==!1&&(t!=="lines"&&(n=v("line.color","#000")),v("line.width",.5),v("line.dash")),t!=="none"&&(S.showlegend!==!0&&(x.showlegend=!1),x._dfltShowLegend=!1,g(S,x,p,v,{prefix:"",cLetter:"z"})),v("line.smoothing"),C(v,p,n,r)}},37960:function(G,U,e){var g=e(83328),C=e(67104),i=e(49084),S=e(92880).extendFlat,x=C.contours;G.exports=S({carpet:{valType:"string",editType:"calc"},z:g.z,a:g.x,a0:g.x0,da:g.dx,b:g.y,b0:g.y0,db:g.dy,text:g.text,hovertext:g.hovertext,transpose:g.transpose,atype:g.xtype,btype:g.ytype,fillcolor:C.fillcolor,autocontour:C.autocontour,ncontours:C.ncontours,contours:{type:x.type,start:x.start,end:x.end,size:x.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:x.showlines,showlabels:x.showlabels,labelfont:x.labelfont,labelformat:x.labelformat,operation:x.operation,value:x.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:C.line.color,width:C.line.width,dash:C.line.dash,smoothing:C.line.smoothing,editType:"plot"},transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},30572:function(G,U,e){var g=e(47128),C=e(3400),i=e(2872),S=e(26136),x=e(70448),v=e(11240),p=e(35744),r=e(3252),t=e(50948),a=e(54444);G.exports=function(c,l){var m=l._carpetTrace=t(c,l);if(!(!m||!m.visible||m.visible==="legendonly")){if(!l.a||!l.b){var h=c.data[m.index],b=c.data[l.index];b.a||(b.a=h.a),b.b||(b.b=h.b),r(b,l,l._defaultColor,c._fullLayout)}var u=n(c,l);return a(l,l._z),u}};function n(f,c){var l=c._carpetTrace,m=l.aaxis,h=l.baxis,b,u,o,d,w,A,_;m._minDtick=0,h._minDtick=0,C.isArray1D(c.z)&&i(c,m,h,"a","b",["z"]),b=c._a=c._a||c.a,d=c._b=c._b||c.b,b=b?m.makeCalcdata(c,"_a"):[],d=d?h.makeCalcdata(c,"_b"):[],u=c.a0||0,o=c.da||1,w=c.b0||0,A=c.db||1,_=c._z=S(c._z||c.z,c.transpose),c._emptypoints=v(_),x(_,c._emptypoints);var y=C.maxRowLength(_),E=c.xtype==="scaled"?"":b,T=p(c,E,u,o,y,m),s=c.ytype==="scaled"?"":d,L=p(c,s,w,A,_.length,h),M={a:T,b:L,z:_};return c.contours.type==="levels"&&c.contours.coloring!=="none"&&g(f,c,{vals:_,containerStr:"",cLetter:"z"}),[M]}},3252:function(G,U,e){var g=e(3400),C=e(51264),i=e(37960),S=e(95536),x=e(84952),v=e(97680);G.exports=function(r,t,a,n){function f(h,b){return g.coerce(r,t,i,h,b)}function c(h){return g.coerce2(r,t,i,h)}if(f("carpet"),r.a&&r.b){var l=C(r,t,f,n,"a","b");if(!l){t.visible=!1;return}f("text");var m=f("contours.type")==="constraint";m?S(r,t,f,n,a,{hasHover:!1}):(x(r,t,f,c),v(r,t,f,n,{hasHover:!1}))}else t._defaultColor=a,t._length=null}},40448:function(G,U,e){G.exports={attributes:e(37960),supplyDefaults:e(3252),colorbar:e(55296),calc:e(30572),plot:e(94440),style:e(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:e(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(G,U,e){var g=e(33428),C=e(87072),i=e(53416),S=e(43616),x=e(3400),v=e(72424),p=e(88748),r=e(23676),t=e(93252),a=e(82172),n=e(61512),f=e(56008),c=e(50948),l=e(77712);G.exports=function(E,T,s,L){var M=T.xaxis,z=T.yaxis;x.makeTraceGroups(L,s,"contour").each(function(D){var N=g.select(this),I=D[0],k=I.trace,B=k._carpetTrace=c(E,k),O=E.calcdata[B.index][0];if(!B.visible||B.visible==="legendonly")return;var H=I.a,Y=I.b,j=k.contours,te=n(j,T,I),ie=j.type==="constraint",ue=j._operation,J=ie?ue==="="?"lines":"fill":j.coloring;function X(Te){var we=B.ab2xy(Te[0],Te[1],!0);return[M.c2p(we[0]),z.c2p(we[1])]}var ee=[[H[0],Y[Y.length-1]],[H[H.length-1],Y[Y.length-1]],[H[H.length-1],Y[0]],[H[0],Y[0]]];v(te);var V=(H[H.length-1]-H[0])*1e-8,Q=(Y[Y.length-1]-Y[0])*1e-8;p(te,V,Q);var oe=te;j.type==="constraint"&&(oe=a(te,ue)),m(te,X);var $,Z,se,ne,ce=[];for(ne=O.clipsegments.length-1;ne>=0;ne--)$=O.clipsegments[ne],Z=C([],$.x,M.c2p),se=C([],$.y,z.c2p),Z.reverse(),se.reverse(),ce.push(i(Z,se,$.bicubic));var ge="M"+ce.join("L")+"Z";w(N,O.clipsegments,M,z,ie,J),A(k,N,M,z,oe,ee,X,B,O,J,ge),h(N,te,E,I,j,T,B),S.setClipUrl(N,B._clipPathId,E)})};function m(y,E){var T,s,L,M,z,D,N,I,k;for(T=0;Tte&&(s.max=te),s.len=s.max-s.min}function u(y,E,T){var s=y.getPointAtLength(E),L=y.getPointAtLength(T),M=L.x-s.x,z=L.y-s.y,D=Math.sqrt(M*M+z*z);return[M/D,z/D]}function o(y){var E=Math.sqrt(y[0]*y[0]+y[1]*y[1]);return[y[0]/E,y[1]/E]}function d(y,E){var T=Math.abs(y[0]*E[0]+y[1]*E[1]),s=Math.sqrt(1-T*T);return s/T}function w(y,E,T,s,L,M){var z,D,N,I,k=x.ensureSingle(y,"g","contourbg"),B=k.selectAll("path").data(M==="fill"&&!L?[0]:[]);B.enter().append("path"),B.exit().remove();var O=[];for(I=0;I=0&&(H=Z,j=te):Math.abs(O[1]-H[1])=0&&(H=Z,j=te):x.log("endpt to newendpt is not vert. or horz.",O,H,Z)}if(j>=0)break;I+=oe(O,H),O=H}if(j===E.edgepaths.length){x.log("unclosed perimeter path");break}N=j,B=k.indexOf(N)===-1,B&&(N=k[0],I+=oe(O,H)+"Z",O=null)}for(N=0;N0?+h[l]:0),c.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:w})}}var _=S.extractOpts(t),y=_.reversescale?S.flipScale(_.colorscale):_.colorscale,E=y[0][1],T=i.opacity(E)<1?E:i.addOpacity(E,0),s=["interpolate",["linear"],["heatmap-density"],0,T];for(l=1;l=0;p--)x.removeLayer(v[p][1])},S.dispose=function(){var x=this.subplot.map;this._removeLayers(),x.removeSource(this.sourceId)},G.exports=function(v,p){var r=p[0].trace,t=new i(v,r.uid),a=t.sourceId,n=g(p),f=t.below=v.belowLookup["trace-"+r.uid];return v.map.addSource(a,{type:"geojson",data:n.geojson}),t._addLayers(n,f),t}},74248:function(G,U,e){var g=e(3400);G.exports=function(i,S){for(var x=0;x"),n.color=S(c,h),[n]}};function S(x,v){var p=x.marker,r=v.mc||p.color,t=v.mlc||p.line.color,a=v.mlw||p.line.width;if(g(r))return r;if(g(t)&&a)return t}},94704:function(G,U,e){G.exports={attributes:e(20088),layoutAttributes:e(7076),supplyDefaults:e(45432).supplyDefaults,crossTraceDefaults:e(45432).crossTraceDefaults,supplyLayoutDefaults:e(11631),calc:e(23096),crossTraceCalc:e(4804),plot:e(42200),style:e(44544).style,hoverPoints:e(31488),eventData:e(34580),selectPoints:e(45784),moduleType:"trace",name:"funnel",basePlotModule:e(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(G){G.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(G,U,e){var g=e(3400),C=e(7076);G.exports=function(i,S,x){var v=!1;function p(a,n){return g.coerce(i,S,C,a,n)}for(var r=0;r path").each(function(h){if(!h.isBlank){var b=m.marker;g.select(this).call(i.fill,h.mc||b.color).call(i.stroke,h.mlc||b.line.color).call(C.dashLine,b.line.dash,h.mlw||b.line.width).style("opacity",m.selectedpoints&&!h.selected?S:1)}}),p(l,m,t),l.selectAll(".regions").each(function(){g.select(this).selectAll("path").style("stroke-width",0).call(i.fill,m.connector.fillcolor)}),l.selectAll(".lines").each(function(){var h=m.connector.line;C.lineGroupStyle(g.select(this).selectAll("path"),h.width,h.color,h.dash)})})}G.exports={style:r}},22332:function(G,U,e){var g=e(74996),C=e(45464),i=e(86968).u,S=e(21776).Ks,x=e(21776).Gw,v=e(92880).extendFlat;G.exports={labels:g.labels,label0:g.label0,dlabel:g.dlabel,values:g.values,marker:{colors:g.marker.colors,line:{color:v({},g.marker.line.color,{dflt:null}),width:v({},g.marker.line.width,{dflt:1}),editType:"calc"},pattern:g.marker.pattern,editType:"calc"},text:g.text,hovertext:g.hovertext,scalegroup:v({},g.scalegroup,{}),textinfo:v({},g.textinfo,{flags:["label","text","value","percent"]}),texttemplate:x({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:v({},C.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:S({},{keys:["label","color","value","text","percent"]}),textposition:v({},g.textposition,{values:["inside","none"],dflt:"inside"}),textfont:g.textfont,insidetextfont:g.insidetextfont,title:{text:g.title.text,font:g.title.font,position:v({},g.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(G,U,e){var g=e(7316);U.name="funnelarea",U.plot=function(C,i,S,x){g.plotBasePlot(U.name,C,i,S,x)},U.clean=function(C,i,S,x){g.cleanBasePlot(U.name,C,i,S,x)}},54e3:function(G,U,e){var g=e(45768);function C(S,x){return g.calc(S,x)}function i(S){g.crossTraceCalc(S,{type:"funnelarea"})}G.exports={calc:C,crossTraceCalc:i}},92688:function(G,U,e){var g=e(3400),C=e(22332),i=e(86968).Q,S=e(31508).handleText,x=e(74174).handleLabelsAndValues,v=e(74174).handleMarkerDefaults;G.exports=function(r,t,a,n){function f(A,_){return g.coerce(r,t,C,A,_)}var c=f("labels"),l=f("values"),m=x(c,l),h=m.len;if(t._hasLabels=m.hasLabels,t._hasValues=m.hasValues,!t._hasLabels&&t._hasValues&&(f("label0"),f("dlabel")),!h){t.visible=!1;return}t._length=h,v(r,t,n,f),f("scalegroup");var b=f("text"),u=f("texttemplate"),o;if(u||(o=f("textinfo",Array.isArray(b)?"text+percent":"percent")),f("hovertext"),f("hovertemplate"),u||o&&o!=="none"){var d=f("textposition");S(r,t,n,f,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else o==="none"&&f("textposition","none");i(t,n,f);var w=f("title.text");w&&(f("title.position"),g.coerceFont(f,"title.font",n.font)),f("aspectratio"),f("baseratio")}},62396:function(G,U,e){G.exports={moduleType:"trace",name:"funnelarea",basePlotModule:e(91248),categories:["pie-like","funnelarea","showLegend"],attributes:e(22332),layoutAttributes:e(61280),supplyDefaults:e(92688),supplyLayoutDefaults:e(35384),calc:e(54e3).calc,crossTraceCalc:e(54e3).crossTraceCalc,plot:e(39472),style:e(62096),styleOne:e(10528),meta:{}}},61280:function(G,U,e){var g=e(85204).hiddenlabels;G.exports={hiddenlabels:g,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(G,U,e){var g=e(3400),C=e(61280);G.exports=function(S,x){function v(p,r){return g.coerce(S,x,C,p,r)}v("hiddenlabels"),v("funnelareacolorway",x.colorway),v("extendfunnelareacolors")}},39472:function(G,U,e){var g=e(33428),C=e(43616),i=e(3400),S=i.strScale,x=i.strTranslate,v=e(72736),p=e(98184),r=p.toMoveInsideBar,t=e(82744),a=t.recordMinTextSize,n=t.clearMinTextSize,f=e(69656),c=e(37820),l=c.attachFxHandlers,m=c.determineInsideTextFont,h=c.layoutAreas,b=c.prerenderTitles,u=c.positionTitleOutside,o=c.formatSliceLabel;G.exports=function(y,E){var T=y._context.staticPlot,s=y._fullLayout;n("funnelarea",s),b(E,y),h(E,s._size),i.makeTraceGroups(s._funnelarealayer,E,"trace").each(function(L){var M=g.select(this),z=L[0],D=z.trace;A(L),M.each(function(){var N=g.select(this).selectAll("g.slice").data(L);N.enter().append("g").classed("slice",!0),N.exit().remove(),N.each(function(k,B){if(k.hidden){g.select(this).selectAll("path,g").remove();return}k.pointNumber=k.i,k.curveNumber=D.index;var O=z.cx,H=z.cy,Y=g.select(this),j=Y.selectAll("path.surface").data([k]);j.enter().append("path").classed("surface",!0).style({"pointer-events":T?"none":"all"}),Y.call(l,y,L);var te="M"+(O+k.TR[0])+","+(H+k.TR[1])+d(k.TR,k.BR)+d(k.BR,k.BL)+d(k.BL,k.TL)+"Z";j.attr("d",te),o(y,k,z);var ie=f.castOption(D.textposition,k.pts),ue=Y.selectAll("g.slicetext").data(k.text&&ie!=="none"?[0]:[]);ue.enter().append("g").classed("slicetext",!0),ue.exit().remove(),ue.each(function(){var J=i.ensureSingle(g.select(this),"text","",function(se){se.attr("data-notex",1)}),X=i.ensureUniformFontSize(y,m(D,k,s.font));J.text(k.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(C.font,X).call(v.convertToTspans,y);var ee=C.bBox(J.node()),V,Q,oe,$=Math.min(k.BL[1],k.BR[1])+H,Z=Math.max(k.TL[1],k.TR[1])+H;Q=Math.max(k.TL[0],k.BL[0])+O,oe=Math.min(k.TR[0],k.BR[0])+O,V=r(Q,oe,$,Z,ee,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),V.fontSize=X.size,a(D.type,V,s),L[B].transform=V,i.setTransormAndDisplay(J,V)})});var I=g.select(this).selectAll("g.titletext").data(D.title.text?[0]:[]);I.enter().append("g").classed("titletext",!0),I.exit().remove(),I.each(function(){var k=i.ensureSingle(g.select(this),"text","",function(H){H.attr("data-notex",1)}),B=D.title.text;D._meta&&(B=i.templateString(B,D._meta)),k.text(B).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(C.font,D.title.font).call(v.convertToTspans,y);var O=u(z,s._size);k.attr("transform",x(O.x,O.y)+S(Math.min(1,O.scale))+x(O.tx,O.ty))})})})};function d(_,y){var E=y[0]-_[0],T=y[1]-_[1];return"l"+E+","+T}function w(_,y){return[.5*(_[0]+y[0]),.5*(_[1]+y[1])]}function A(_){if(!_.length)return;var y=_[0],E=y.trace,T=E.aspectratio,s=E.baseratio;s>.999&&(s=.999);var L=Math.pow(s,2),M=y.vTotal,z=M*L/(1-L),D=M,N=z/M;function I(){var ne=Math.sqrt(N);return{x:ne,y:-ne}}function k(){var ne=I();return[ne.x,ne.y]}var B,O=[];O.push(k());var H,Y;for(H=_.length-1;H>-1;H--)if(Y=_[H],!Y.hidden){var j=Y.v/D;N+=j,O.push(k())}var te=1/0,ie=-1/0;for(H=0;H-1;H--)if(Y=_[H],!Y.hidden){$+=1;var Z=O[$][0],se=O[$][1];Y.TL=[-Z,se],Y.TR=[Z,se],Y.BL=Q,Y.BR=oe,Y.pxmid=w(Y.TR,Y.BR),Q=Y.TL,oe=Y.TR}}},62096:function(G,U,e){var g=e(33428),C=e(10528),i=e(82744).resizeText;G.exports=function(x){var v=x._fullLayout._funnelarealayer.selectAll(".trace");i(x,v,"funnelarea"),v.each(function(p){var r=p[0],t=r.trace,a=g.select(this);a.style({opacity:t.opacity}),a.selectAll("path.surface").each(function(n){g.select(this).call(C,n,t,x)})})}},83328:function(G,U,e){var g=e(52904),C=e(45464),i=e(25376),S=e(29736).axisHoverFormat,x=e(21776).Ks,v=e(21776).Gw,p=e(49084),r=e(92880).extendFlat;G.exports=r({z:{valType:"data_array",editType:"calc"},x:r({},g.x,{impliedEdits:{xtype:"array"}}),x0:r({},g.x0,{impliedEdits:{xtype:"scaled"}}),dx:r({},g.dx,{impliedEdits:{xtype:"scaled"}}),y:r({},g.y,{impliedEdits:{ytype:"array"}}),y0:r({},g.y0,{impliedEdits:{ytype:"scaled"}}),dy:r({},g.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:r({},g.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:r({},g.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:r({},g.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:r({},g.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:r({},g.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:r({},g.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z",1),hovertemplate:x(),texttemplate:v({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:r({},C.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},19512:function(G,U,e){var g=e(24040),C=e(3400),i=e(54460),S=e(1220),x=e(55480),v=e(47128),p=e(2872),r=e(26136),t=e(70448),a=e(11240),n=e(35744),f=e(39032).BADNUM;G.exports=function(h,b){var u=i.getFromId(h,b.xaxis||"x"),o=i.getFromId(h,b.yaxis||"y"),d=g.traceIs(b,"contour"),w=g.traceIs(b,"histogram"),A=g.traceIs(b,"gl2d"),_=d?"best":b.zsmooth,y,E,T,s,L,M,z,D,N,I,k;if(u._minDtick=0,o._minDtick=0,w)k=x(h,b),s=k.orig_x,y=k.x,E=k.x0,T=k.dx,D=k.orig_y,L=k.y,M=k.y0,z=k.dy,N=k.z;else{var B=b.z;C.isArray1D(B)?(p(b,u,o,"x","y",["z"]),y=b._x,L=b._y,B=b._z):(s=b.x?u.makeCalcdata(b,"x"):[],D=b.y?o.makeCalcdata(b,"y"):[],y=S(b,u,"x",s).vals,L=S(b,o,"y",D).vals,b._x=y,b._y=L),E=b.x0,T=b.dx,M=b.y0,z=b.dy,N=r(B,b,u,o)}(u.rangebreaks||o.rangebreaks)&&(N=l(y,L,N),w||(y=c(y),L=c(L),b._x=y,b._y=L)),!w&&(d||b.connectgaps)&&(b._emptypoints=a(N),t(N,b._emptypoints));function O(ee){_=b._input.zsmooth=b.zsmooth=!1,C.warn('cannot use zsmooth: "fast": '+ee)}function H(ee){if(ee.length>1){var V=(ee[ee.length-1]-ee[0])/(ee.length-1),Q=Math.abs(V/100);for(I=0;IQ)return!1}return!0}b._islinear=!1,u.type==="log"||o.type==="log"?_==="fast"&&O("log axis found"):H(y)?H(L)?b._islinear=!0:_==="fast"&&O("y scale is not linear"):_==="fast"&&O("x scale is not linear");var Y=C.maxRowLength(N),j=b.xtype==="scaled"?"":y,te=n(b,j,E,T,Y,u),ie=b.ytype==="scaled"?"":L,ue=n(b,ie,M,z,N.length,o);A||(b._extremes[u._id]=i.findExtremes(u,te),b._extremes[o._id]=i.findExtremes(o,ue));var J={x:te,y:ue,z:N,text:b._text||b.text,hovertext:b._hovertext||b.hovertext};if(b.xperiodalignment&&s&&(J.orig_x=s),b.yperiodalignment&&D&&(J.orig_y=D),j&&j.length===te.length-1&&(J.xCenter=j),ie&&ie.length===ue.length-1&&(J.yCenter=ie),w&&(J.xRanges=k.xRanges,J.yRanges=k.yRanges,J.pts=k.pts),d||v(h,b,{vals:N,cLetter:"z"}),d&&b.contours&&b.contours.coloring==="heatmap"){var X={type:b.type==="contour"?"heatmap":"histogram2d",xcalendar:b.xcalendar,ycalendar:b.ycalendar};J.xfill=n(X,j,E,T,Y,u),J.yfill=n(X,ie,M,z,N.length,o)}return[J]};function c(m){for(var h=[],b=m.length,u=0;u=0;m--)l=v[m],f=l[0],c=l[1],h=((x[[f-1,c]]||t)[2]+(x[[f+1,c]]||t)[2]+(x[[f,c-1]]||t)[2]+(x[[f,c+1]]||t)[2])/20,h&&(b[l]=[f,c,h],v.splice(m,1),u=!0);if(!u)throw"findEmpties iterated with no new neighbors";for(l in b)x[l]=b[l],S.push(b[l])}return S.sort(function(o,d){return d[2]-o[2]})}},55512:function(G,U,e){var g=e(93024),C=e(3400),i=C.isArrayOrTypedArray,S=e(54460),x=e(8932).extractOpts;G.exports=function(p,r,t,a,n){n||(n={});var f=n.isContour,c=p.cd[0],l=c.trace,m=p.xa,h=p.ya,b=c.x,u=c.y,o=c.z,d=c.xCenter,w=c.yCenter,A=c.zmask,_=l.zhoverformat,y=b,E=u,T,s,L,M;if(p.index!==!1){try{L=Math.round(p.index[1]),M=Math.round(p.index[0])}catch{C.error("Error hovering on heatmap, pointNumber must be [row,col], found:",p.index);return}if(L<0||L>=o[0].length||M<0||M>o.length)return}else{if(g.inbox(r-b[0],r-b[b.length-1],0)>0||g.inbox(t-u[0],t-u[u.length-1],0)>0)return;if(f){var z;for(y=[2*b[0]-b[1]],z=1;zC;a++)t=x(p,r,S(t));return t>C&&g.log("interp2d didn't converge quickly",t),p};function x(v,p,r){var t=0,a,n,f,c,l,m,h,b,u,o,d,w,A;for(c=0;cw&&(t=Math.max(t,Math.abs(v[n][f]-d)/(A-w))))}return t}},39096:function(G,U,e){var g=e(3400);G.exports=function(i,S){i("texttemplate");var x=g.extendFlat({},S.font,{color:"auto",size:"auto"});g.coerceFont(i,"textfont",x)}},35744:function(G,U,e){var g=e(24040),C=e(3400).isArrayOrTypedArray;G.exports=function(S,x,v,p,r,t){var a=[],n=g.traceIs(S,"contour"),f=g.traceIs(S,"histogram"),c=g.traceIs(S,"gl2d"),l,m,h,b=C(x)&&x.length>1;if(b&&!f&&t.type!=="category"){var u=x.length;if(u<=r){if(n||c)a=Array.from(x).slice(0,r);else if(r===1)t.type==="log"?a=[.5*x[0],2*x[0]]:a=[x[0]-.5,x[0]+.5];else if(t.type==="log"){for(a=[Math.pow(x[0],1.5)/Math.pow(x[1],.5)],h=1;h0;)Q=s.c2p(O[se]),se--;for(Q0;)Z=L.c2p(H[se]),se--;Z<$&&(oe=$,$=Z,Z=oe,ee=!0),te&&(Y=O,j=H,O=D.xfill,H=D.yfill);var ge="default";if(ie?ge=ie==="best"?"smooth":"fast":N._islinear&&I===0&&k===0&&m()&&(ge="fast"),ge!=="fast"){var Te=ie==="best"?0:.5;V=Math.max(-Te*s._length,V),Q=Math.min((1+Te)*s._length,Q),$=Math.max(-Te*L._length,$),Z=Math.min((1+Te)*L._length,Z)}var we=Math.round(Q-V),Re=Math.round(Z-$),be=V>=s._length||Q<=0||$>=L._length||Z<=0;if(be){var Ae=z.selectAll("image").data([]);Ae.exit().remove(),o(z);return}var me,Le;ge==="fast"?(me=J,Le=ue):(me=we,Le=Re);var He=document.createElement("canvas");He.width=me,He.height=Le;var Ue=He.getContext("2d",{willReadFrequently:!0}),ke=n(N,{noNumericCheck:!0,returnArray:!0}),Ve,Ie;ge==="fast"?(Ve=X?function(an){return J-1-an}:v.identity,Ie=ee?function(an){return ue-1-an}:v.identity):(Ve=function(an){return v.constrain(Math.round(s.c2p(O[an])-V),0,we)},Ie=function(an){return v.constrain(Math.round(L.c2p(H[an])-$),0,Re)});var rt=Ie(0),Ke=[rt,rt],$e=X?0:1,lt=ee?0:1,ht=0,dt=0,xt=0,St=0,nt,ze,Xe,Je,We;function Fe(an,pn){if(an!==void 0){var gn=ke(an);return gn[0]=Math.round(gn[0]),gn[1]=Math.round(gn[1]),gn[2]=Math.round(gn[2]),ht+=pn,dt+=gn[0]*pn,xt+=gn[1]*pn,St+=gn[2]*pn,gn}return[0,0,0,0]}function xe(an,pn,gn,_n){var kn=an[gn.bin0];if(kn===void 0)return Fe(void 0,1);var ni=an[gn.bin1],ci=pn[gn.bin0],di=pn[gn.bin1],li=ni-kn||0,ri=ci-kn||0,wr;return ni===void 0?di===void 0?wr=0:ci===void 0?wr=2*(di-kn):wr=(2*di-ci-kn)*2/3:di===void 0?ci===void 0?wr=0:wr=(2*kn-ni-ci)*2/3:ci===void 0?wr=(2*di-ni-kn)*2/3:wr=di+kn-ni-ci,Fe(kn+gn.frac*li+_n.frac*(ri+gn.frac*wr))}if(ge!=="default"){var ye=0,Ee;try{Ee=new Uint8Array(me*Le*4)}catch{Ee=new Array(me*Le*4)}if(ge==="smooth"){var Me=Y||O,Ne=j||H,je=new Array(Me.length),it=new Array(Ne.length),mt=new Array(we),bt=Y?w:d,vt=j?w:d,Lt,ct,Tt;for(se=0;sevr||vr>L._length))for(ne=Vt;neGe||Ge>s._length)){var Nt=r({x:Ye,y:hr},N,_._fullLayout);Nt.x=Ye,Nt.y=hr;var Ot=D.z[se][ne];Ot===void 0?(Nt.z="",Nt.zLabel=""):(Nt.z=Ot,Nt.zLabel=x.tickText(At,Ot,"hover").text);var Qt=D.text&&D.text[se]&&D.text[se][ne];(Qt===void 0||Qt===!1)&&(Qt=""),Nt.text=Qt;var tr=v.texttemplateString(gt,Nt,_._fullLayout._d3locale,Nt,N._meta||{});if(tr){var fr=tr.split("
    "),rr=fr.length,Ht=0;for(ce=0;ce0&&(r=!0);for(var f=0;fv){var p=v-S[C];return S[C]=v,p}}else return S[C]=v,v;return 0},max:function(C,i,S,x){var v=x[i];if(g(v))if(v=Number(v),g(S[C])){if(S[C]E&&ES){var L=T===C?1:6,M=T===C?"M12":"M1";return function(z,D){var N=b.c2d(z,C,u),I=N.indexOf("-",L);I>0&&(N=N.substr(0,I));var k=b.d2c(N,0,u);if(kp?c>S?c>C*1.1?C:c>i*1.1?i:S:c>x?x:c>v?v:p:Math.pow(10,Math.floor(Math.log(c)/Math.LN10))}function n(c,l,m,h,b,u){if(h&&c>S){var o=f(l,b,u),d=f(m,b,u),w=c===C?0:1;return o[w]!==d[w]}return Math.floor(m/c)-Math.floor(l/c)>.1}function f(c,l,m){var h=l.c2d(c,C,m).split("-");return h[0]===""&&(h.unshift(),h[0]="-"+h[0]),h}},35852:function(G,U,e){var g=e(38248),C=e(3400),i=e(24040),S=e(54460),x=e(84664),v=e(16964),p=e(10648),r=e(2e3),t=e(67712);function a(m,h){var b=[],u=[],o=h.orientation==="h",d=S.getFromId(m,o?h.yaxis:h.xaxis),w=o?"y":"x",A={x:"y",y:"x"}[w],_=h[w+"calendar"],y=h.cumulative,E,T=n(m,h,d,w),s=T[0],L=T[1],M=typeof s.size=="string",z=[],D=M?z:s,N=[],I=[],k=[],B=0,O=h.histnorm,H=h.histfunc,Y=O.indexOf("density")!==-1,j,te,ie;y.enabled&&Y&&(O=O.replace(/ ?density$/,""),Y=!1);var ue=H==="max"||H==="min",J=ue?null:0,X=v.count,ee=p[O],V=!1,Q=function(Ue){return d.r2c(Ue,0,_)},oe;for(C.isArrayOrTypedArray(h[A])&&H!=="count"&&(oe=h[A],V=H==="avg",X=v[H]),E=Q(s.start),te=Q(s.end)+(E-S.tickIncrement(E,s.size,!1,_))/1e6;E=0&&ie=me;E--)if(u[E]){Le=E;break}for(E=me;E<=Le;E++)if(g(b[E])&&g(u[E])){var He={p:b[E],s:u[E],b:0};y.enabled||(He.pts=k[E],ne?He.ph0=He.ph1=k[E].length?L[k[E][0]]:b[E]:(h._computePh=!0,He.ph0=Re(z[E]),He.ph1=Re(z[E+1],!0))),Ae.push(He)}return Ae.length===1&&(Ae[0].width1=S.tickIncrement(Ae[0].p,s.size,!1,_)-Ae[0].p),x(Ae,h),C.isArrayOrTypedArray(h.selectedpoints)&&C.tagSelected(Ae,h,Te),Ae}function n(m,h,b,u,o){var d=u+"bins",w=m._fullLayout,A=h["_"+u+"bingroup"],_=w._histogramBinOpts[A],y=w.barmode==="overlay",E,T,s,L,M,z,D,N=function(we){return b.r2c(we,0,L)},I=function(we){return b.c2r(we,0,L)},k=b.type==="date"?function(we){return we||we===0?C.cleanDate(we,null,L):null}:function(we){return g(we)?Number(we):null};function B(we,Re,be){Re[we+"Found"]?(Re[we]=k(Re[we]),Re[we]===null&&(Re[we]=be[we])):(z[we]=Re[we]=be[we],C.nestedProperty(T[0],d+"."+we).set(be[we]))}if(h["_"+u+"autoBinFinished"])delete h["_"+u+"autoBinFinished"];else{T=_.traces;var O=[],H=!0,Y=!1,j=!1;for(E=0;E"u"){if(o)return[ie,M,!0];ie=f(m,h,b,u,d)}D=s.cumulative||{},D.enabled&&D.currentbin!=="include"&&(D.direction==="decreasing"?ie.start=I(S.tickIncrement(N(ie.start),ie.size,!0,L)):ie.end=I(S.tickIncrement(N(ie.end),ie.size,!1,L))),_.size=ie.size,_.sizeFound||(z.size=ie.size,C.nestedProperty(T[0],d+".size").set(ie.size)),B("start",_,ie),B("end",_,ie)}M=h["_"+u+"pos0"],delete h["_"+u+"pos0"];var J=h._input[d]||{},X=C.extendFlat({},_),ee=_.start,V=b.r2l(J.start),Q=V!==void 0;if((_.startFound||Q)&&V!==b.r2l(ee)){var oe=Q?V:C.aggNums(Math.min,null,M),$={type:b.type==="category"||b.type==="multicategory"?"linear":b.type,r2l:b.r2l,dtick:_.size,tick0:ee,calendar:L,range:[oe,S.tickIncrement(oe,_.size,!1,L)].map(b.l2r)},Z=S.tickFirst($);Z>b.r2l(oe)&&(Z=S.tickIncrement(Z,_.size,!0,L)),X.start=b.l2r(Z),Q||C.nestedProperty(h,d+".start").set(X.start)}var se=_.end,ne=b.r2l(J.end),ce=ne!==void 0;if((_.endFound||ce)&&ne!==b.r2l(se)){var ge=ce?ne:C.aggNums(Math.max,null,M);X.end=b.l2r(ge),ce||C.nestedProperty(h,d+".start").set(X.end)}var Te="autobin"+u;return h._input[Te]===!1&&(h._input[d]=C.extendFlat({},h[d]||{}),delete h._input[Te],delete h[Te]),[X,M]}function f(m,h,b,u,o){var d=m._fullLayout,w=c(m,h),A=!1,_=1/0,y=[h],E,T,s;for(E=0;E=0;u--)A(u);else if(h==="increasing"){for(u=1;u=0;u--)m[u]+=m[u+1];b==="exclude"&&(m.push(0),m.shift())}}G.exports={calc:a,calcAllAutoBins:n}},73316:function(G){G.exports={eventDataKeys:["binNumber"]}},80536:function(G,U,e){var g=e(3400),C=e(79811),i=e(24040).traceIs,S=e(20011),x=e(31508).validateCornerradius,v=g.nestedProperty,p=e(71888).getAxisGroup,r=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],t=["x","y"];G.exports=function(n,f){var c=f._histogramBinOpts={},l=[],m={},h=[],b,u,o,d,w,A,_;function y(ie,ue){return g.coerce(b._input,b,b._module.attributes,ie,ue)}function E(ie){return ie.orientation==="v"?"x":"y"}function T(ie,ue){var J=C.getFromTrace({_fullLayout:f},ie,ue);return J.type}function s(ie,ue,J){var X=ie.uid+"__"+J;ue||(ue=X);var ee=T(ie,J),V=ie[J+"calendar"]||"",Q=c[ue],oe=!0;Q&&(ee===Q.axType&&V===Q.calendar?(oe=!1,Q.traces.push(ie),Q.dirs.push(J)):(ue=X,ee!==Q.axType&&g.warn(["Attempted to group the bins of trace",ie.index,"set on a","type:"+ee,"axis","with bins on","type:"+Q.axType,"axis."].join(" ")),V!==Q.calendar&&g.warn(["Attempted to group the bins of trace",ie.index,"set with a",V,"calendar","with bins",Q.calendar?"on a "+Q.calendar+" calendar":"w/o a set calendar"].join(" ")))),oe&&(c[ue]={traces:[ie],dirs:[J],axType:ee,calendar:ie[J+"calendar"]||""}),ie["_"+J+"bingroup"]=ue}for(w=0;wN&&L.splice(N,L.length-N),D.length>N&&D.splice(N,D.length-N);var I=[],k=[],B=[],O=typeof s.size=="string",H=typeof z.size=="string",Y=[],j=[],te=O?Y:s,ie=H?j:z,ue=0,J=[],X=[],ee=c.histnorm,V=c.histfunc,Q=ee.indexOf("density")!==-1,oe=V==="max"||V==="min",$=oe?null:0,Z=i.count,se=S[ee],ne=!1,ce=[],ge=[],Te="z"in c?c.z:"marker"in c&&Array.isArray(c.marker.color)?c.marker.color:"";Te&&V!=="count"&&(ne=V==="avg",Z=i[V]);var we=s.size,Re=u(s.start),be=u(s.end)+(Re-C.tickIncrement(Re,we,!1,h))/1e6;for(A=Re;A=0&&y=0&&E-1,flipY:k.tiling.flip.indexOf("y")>-1,orientation:k.tiling.orientation,pad:{inner:k.tiling.pad},maxDepth:k._maxDepth}),j=Y.descendants(),te=1/0,ie=-1/0;j.forEach(function(V){var Q=V.depth;Q>=k._maxDepth?(V.x0=V.x1=(V.x0+V.x1)/2,V.y0=V.y1=(V.y0+V.y1)/2):(te=Math.min(te,Q),ie=Math.max(ie,Q))}),h=h.data(j,r.getPtId),k._maxVisibleLayers=isFinite(ie)?ie-te+1:0,h.enter().append("g").classed("slice",!0),T(h,n,z,[u,o],A),h.order();var ue=null;if(E&&M){var J=r.getPtId(M);h.each(function(V){ue===null&&r.getPtId(V)===J&&(ue={x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1})})}var X=function(){return ue||{x0:0,x1:u,y0:0,y1:o}},ee=h;return E&&(ee=ee.transition().each("end",function(){var V=g.select(this);r.setSliceCursor(V,c,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ee.each(function(V){V._x0=d(V.x0),V._x1=d(V.x1),V._y0=w(V.y0),V._y1=w(V.y1),V._hoverX=d(V.x1-k.tiling.pad),V._hoverY=w(H?V.y1-k.tiling.pad/2:V.y0+k.tiling.pad/2);var Q=g.select(this),oe=C.ensureSingle(Q,"path","surface",function(ne){ne.style("pointer-events",D?"none":"all")});E?oe.transition().attrTween("d",function(ne){var ce=s(ne,n,X(),[u,o],{orientation:k.tiling.orientation,flipX:k.tiling.flip.indexOf("x")>-1,flipY:k.tiling.flip.indexOf("y")>-1});return function(ge){return A(ce(ge))}}):oe.attr("d",A),Q.call(t,m,c,l,{styleOne:v,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(r.setSliceCursor,c,{isTransitioning:c._transitioning}),oe.call(v,V,k,c,{hovered:!1}),V.x0===V.x1||V.y0===V.y1?V._text="":V._text=a(V,m,k,l,N)||"";var $=C.ensureSingle(Q,"g","slicetext"),Z=C.ensureSingle($,"text","",function(ne){ne.attr("data-notex",1)}),se=C.ensureUniformFontSize(c,r.determineTextFont(k,V,N.font));Z.text(V._text||" ").classed("slicetext",!0).attr("text-anchor",O?"end":B?"start":"middle").call(i.font,se).call(S.convertToTspans,c),V.textBB=i.bBox(Z.node()),V.transform=_(V,{fontSize:se.size}),V.transform.fontSize=se.size,E?Z.transition().attrTween("transform",function(ne){var ce=L(ne,n,X(),[u,o]);return function(ge){return y(ce(ge))}}):Z.attr("transform",y(V))}),ue}},29044:function(G,U,e){G.exports={moduleType:"trace",name:"icicle",basePlotModule:e(59564),categories:[],animatable:!0,attributes:e(97376),layoutAttributes:e(90676),supplyDefaults:e(7045),supplyLayoutDefaults:e(4304),calc:e(73876).r,crossTraceCalc:e(73876).q,plot:e(38364),style:e(47192).style,colorbar:e(5528),meta:{}}},90676:function(G){G.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(G,U,e){var g=e(3400),C=e(90676);G.exports=function(S,x){function v(p,r){return g.coerce(S,x,C,p,r)}v("iciclecolorway",x.colorway),v("extendiciclecolors")}},25132:function(G,U,e){var g=e(74148),C=e(83024);G.exports=function(S,x,v){var p=v.flipX,r=v.flipY,t=v.orientation==="h",a=v.maxDepth,n=x[0],f=x[1];a&&(n=(S.height+1)*x[0]/Math.min(S.height+1,a),f=(S.height+1)*x[1]/Math.min(S.height+1,a));var c=g.partition().padding(v.pad.inner).size(t?[x[1],n]:[x[0],f])(S);return(t||p||r)&&C(c,x,{swapXY:t,flipX:p,flipY:r}),c}},38364:function(G,U,e){var g=e(95808),C=e(67880);G.exports=function(S,x,v,p){return g(S,x,v,p,{type:"icicle",drawDescendants:C})}},47192:function(G,U,e){var g=e(33428),C=e(76308),i=e(3400),S=e(82744).resizeText,x=e(60404);function v(r){var t=r._fullLayout._iciclelayer.selectAll(".trace");S(r,t,"icicle"),t.each(function(a){var n=g.select(this),f=a[0],c=f.trace;n.style("opacity",c.opacity),n.selectAll("path.surface").each(function(l){g.select(this).call(p,l,c,r)})})}function p(r,t,a,n){var f=t.data.data,c=!t.children,l=f.i,m=i.castOption(a,l,"marker.line.color")||C.defaultLine,h=i.castOption(a,l,"marker.line.width")||0;r.call(x,t,a,n).style("stroke-width",h).call(C.stroke,m).style("opacity",c?a.leaf.opacity:null)}G.exports={style:v,styleOne:p}},95188:function(G,U,e){for(var g=e(45464),C=e(21776).Ks,i=e(92880).extendFlat,S=e(47797).colormodel,x=["rgb","rgba","rgba256","hsl","hsla"],v=[],p=[],r=0;r0||g.inbox(r-t.y0,r-(t.y0+t.h*a.dy),0)>0)){var c=Math.floor((p-t.x0)/a.dx),l=Math.floor(Math.abs(r-t.y0)/a.dy),m;if(a._hasZ?m=t.z[l][c]:a._hasSource&&(m=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(c,l,1,1).data),!!m){var h=t.hi||a.hoverinfo,b;if(h){var u=h.split("+");u.indexOf("all")!==-1&&(u=["color"]),u.indexOf("color")!==-1&&(b=!0)}var o=S.colormodel[a.colormodel],d=o.colormodel||a.colormodel,w=d.length,A=a._scaler(m),_=o.suffix,y=[];(a.hovertemplate||b)&&(y.push("["+[A[0]+_[0],A[1]+_[1],A[2]+_[2]].join(", ")),w===4&&y.push(", "+A[3]+_[3]),y.push("]"),y=y.join(""),v.extraText=d.toUpperCase()+": "+y);var E;i(a.hovertext)&&i(a.hovertext[l])?E=a.hovertext[l][c]:i(a.text)&&i(a.text[l])&&(E=a.text[l][c]);var T=f.c2p(t.y0+(l+.5)*a.dy),s=t.x0+(c+.5)*a.dx,L=t.y0+(l+.5)*a.dy,M="["+m.slice(0,a.colormodel.length).join(", ")+"]";return[C.extendFlat(v,{index:[l,c],x0:n.c2p(t.x0+c*a.dx),x1:n.c2p(t.x0+(c+1)*a.dx),y0:T,y1:T,color:A,xVal:s,xLabelVal:s,yVal:L,yLabelVal:L,zLabelVal:M,text:E,hovertemplateLabels:{zLabel:M,colorLabel:y,"color[0]Label":A[0]+_[0],"color[1]Label":A[1]+_[1],"color[2]Label":A[2]+_[2],"color[3]Label":A[3]+_[3]}})]}}}},48928:function(G,U,e){G.exports={attributes:e(95188),supplyDefaults:e(13188),calc:e(93336),plot:e(63715),style:e(28576),hoverPoints:e(24892),eventData:e(79972),moduleType:"trace",name:"image",basePlotModule:e(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(G,U,e){var g=e(33428),C=e(3400),i=C.strTranslate,S=e(9616),x=e(47797),v=e(9188),p=e(2264).STYLE;G.exports=function(t,a,n,f){var c=a.xaxis,l=a.yaxis,m=!t._context._exportedPlot&&v();C.makeTraceGroups(f,n,"im").each(function(h){var b=g.select(this),u=h[0],o=u.trace,d=(o.zsmooth==="fast"||o.zsmooth===!1&&m)&&!o._hasZ&&o._hasSource&&c.type==="linear"&&l.type==="linear";o._realImage=d;var w=u.z,A=u.x0,_=u.y0,y=u.w,E=u.h,T=o.dx,s=o.dy,L,M,z,D,N,I;for(I=0;L===void 0&&I0;)M=c.c2p(A+I*T),I--;for(I=0;D===void 0&&I0;)N=l.c2p(_+I*s),I--;if(MJ[0];if(X||ee){var V=L+B/2,Q=D+O/2;ie+="transform:"+i(V+"px",Q+"px")+"scale("+(X?-1:1)+","+(ee?-1:1)+")"+i(-V+"px",-Q+"px")+";"}}te.attr("style",ie);var oe=new Promise(function($){if(o._hasZ)$();else if(o._hasSource)if(o._canvas&&o._canvas.el.width===y&&o._canvas.el.height===E&&o._canvas.source===o.source)$();else{var Z=document.createElement("canvas");Z.width=y,Z.height=E;var se=Z.getContext("2d",{willReadFrequently:!0});o._image=o._image||new Image;var ne=o._image;ne.onload=function(){se.drawImage(ne,0,0),o._canvas={el:Z,source:o.source},$()},ne.setAttribute("src",o.source)}}).then(function(){var $,Z;if(o._hasZ)Z=j(function(ce,ge){var Te=w[ge][ce];return C.isTypedArray(Te)&&(Te=Array.from(Te)),Te}),$=Z.toDataURL("image/png");else if(o._hasSource)if(d)$=o.source;else{var se=o._canvas.el.getContext("2d",{willReadFrequently:!0}),ne=se.getImageData(0,0,y,E).data;Z=j(function(ce,ge){var Te=4*(ge*y+ce);return[ne[Te],ne[Te+1],ne[Te+2],ne[Te+3]]}),$=Z.toDataURL("image/png")}te.attr({"xlink:href":$,height:O,width:B,x:L,y:D})});t._promises.push(oe)})}},28576:function(G,U,e){var g=e(33428);G.exports=function(i){g.select(i).selectAll(".im image").style("opacity",function(S){return S[0].trace.opacity})}},89864:function(G,U,e){var g=e(92880).extendFlat,C=e(92880).extendDeep,i=e(67824).overrideAll,S=e(25376),x=e(22548),v=e(86968).u,p=e(94724),r=e(31780).templatedArray,t=e(48164),a=e(29736).descriptionOnlyNumbers,n=S({editType:"plot",colorEditType:"plot"}),f={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:x.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},c={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},l=r("step",C({},f,{range:c}));G.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:v({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:g({},n,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:a("value")},font:g({},n,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:a("value")},increasing:{symbol:{valType:"string",dflt:t.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:t.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:t.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:t.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:g({},n,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:C({},f,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:x.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:i({range:c,visible:g({},p.visible,{dflt:!0}),tickmode:p.minor.tickmode,nticks:p.nticks,tick0:p.tick0,dtick:p.dtick,tickvals:p.tickvals,ticktext:p.ticktext,ticks:g({},p.ticks,{dflt:"outside"}),ticklen:p.ticklen,tickwidth:p.tickwidth,tickcolor:p.tickcolor,ticklabelstep:p.ticklabelstep,showticklabels:p.showticklabels,labelalias:p.labelalias,tickfont:S({}),tickangle:p.tickangle,tickformat:p.tickformat,tickformatstops:p.tickformatstops,tickprefix:p.tickprefix,showtickprefix:p.showtickprefix,ticksuffix:p.ticksuffix,showticksuffix:p.showticksuffix,separatethousands:p.separatethousands,exponentformat:p.exponentformat,minexponent:p.minexponent,showexponent:p.showexponent,editType:"plot"},"plot"),steps:l,threshold:{line:{color:g({},f.line.color,{}),width:g({},f.line.width,{dflt:1}),editType:"plot"},thickness:g({},f.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},92728:function(G,U,e){var g=e(7316);U.name="indicator",U.plot=function(C,i,S,x){g.plotBasePlot(U.name,C,i,S,x)},U.clean=function(C,i,S,x){g.cleanBasePlot(U.name,C,i,S,x)}},79136:function(G){function U(e,g){var C=[],i=g.value;typeof g._lastValue!="number"&&(g._lastValue=g.value);var S=g._lastValue,x=S;return g._hasDelta&&typeof g.delta.reference=="number"&&(x=g.delta.reference),C[0]={y:i,lastY:S,delta:i-x,relativeDelta:(i-x)/x},C}G.exports={calc:U}},12096:function(G){G.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},20424:function(G,U,e){var g=e(3400),C=e(89864),i=e(86968).Q,S=e(31780),x=e(51272),v=e(12096),p=e(26332),r=e(25404),t=e(95936),a=e(42568);function n(c,l,m,h){function b(N,I){return g.coerce(c,l,C,N,I)}i(l,h,b),b("mode"),l._hasNumber=l.mode.indexOf("number")!==-1,l._hasDelta=l.mode.indexOf("delta")!==-1,l._hasGauge=l.mode.indexOf("gauge")!==-1;var u=b("value");l._range=[0,typeof u=="number"?1.5*u:1];var o=new Array(2),d;l._hasNumber&&(b("number.valueformat"),b("number.font.color",h.font.color),b("number.font.family",h.font.family),b("number.font.size"),l.number.font.size===void 0&&(l.number.font.size=v.defaultNumberFontSize,o[0]=!0),b("number.prefix"),b("number.suffix"),d=l.number.font.size);var w;l._hasDelta&&(b("delta.font.color",h.font.color),b("delta.font.family",h.font.family),b("delta.font.size"),l.delta.font.size===void 0&&(l.delta.font.size=(l._hasNumber?.5:1)*(d||v.defaultNumberFontSize),o[1]=!0),b("delta.reference",l.value),b("delta.relative"),b("delta.valueformat",l.delta.relative?"2%":""),b("delta.increasing.symbol"),b("delta.increasing.color"),b("delta.decreasing.symbol"),b("delta.decreasing.color"),b("delta.position"),b("delta.prefix"),b("delta.suffix"),w=l.delta.font.size),l._scaleNumbers=(!l._hasNumber||o[0])&&(!l._hasDelta||o[1])||!1,b("title.font.color",h.font.color),b("title.font.family",h.font.family),b("title.font.size",.25*(d||w||v.defaultNumberFontSize)),b("title.text");var A,_,y,E;function T(N,I){return g.coerce(A,_,C.gauge,N,I)}function s(N,I){return g.coerce(y,E,C.gauge.axis,N,I)}if(l._hasGauge){A=c.gauge,A||(A={}),_=S.newContainer(l,"gauge"),T("shape");var L=l._isBullet=l.gauge.shape==="bullet";L||b("title.align","center");var M=l._isAngular=l.gauge.shape==="angular";M||b("align","center"),T("bgcolor",h.paper_bgcolor),T("borderwidth"),T("bordercolor"),T("bar.color"),T("bar.line.color"),T("bar.line.width");var z=v.valueThickness*(l.gauge.shape==="bullet"?.5:1);T("bar.thickness",z),x(A,_,{name:"steps",handleItemDefaults:f}),T("threshold.value"),T("threshold.thickness"),T("threshold.line.width"),T("threshold.line.color"),y={},A&&(y=A.axis||{}),E=S.newContainer(_,"axis"),s("visible"),l._range=s("range",l._range);var D={noAutotickangles:!0,outerTicks:!0};p(y,E,s,"linear"),a(y,E,s,"linear",D),t(y,E,s,"linear",D),r(y,E,s,D)}else b("title.align","center"),b("align","center"),l._isAngular=l._isBullet=!1;l._length=null}function f(c,l){function m(h,b){return g.coerce(c,l,C.gauge.steps,h,b)}m("color"),m("line.color"),m("line.width"),m("range"),m("thickness")}G.exports={supplyDefaults:n}},43480:function(G,U,e){G.exports={moduleType:"trace",name:"indicator",basePlotModule:e(92728),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e(89864),supplyDefaults:e(20424).supplyDefaults,calc:e(79136).calc,plot:e(97864),meta:{}}},97864:function(G,U,e){var g=e(33428),C=e(67756).qy,i=e(67756).Gz,S=e(3400),x=S.strScale,v=S.strTranslate,p=S.rad2deg,r=e(84284).MID_SHIFT,t=e(43616),a=e(12096),n=e(72736),f=e(54460),c=e(28336),l=e(37668),m=e(94724),h=e(76308),b={left:"start",center:"middle",right:"end"},u={left:0,center:.5,right:1},o=/[yzafpnµmkMGTPEZY]/;function d(D){return D&&D.duration>0}G.exports=function(N,I,k,B){var O=N._fullLayout,H;d(k)&&B&&(H=B()),S.makeTraceGroups(O._indicatorlayer,I,"trace").each(function(Y){var j=Y[0],te=j.trace,ie=g.select(this),ue=te._hasGauge,J=te._isAngular,X=te._isBullet,ee=te.domain,V={w:O._size.w*(ee.x[1]-ee.x[0]),h:O._size.h*(ee.y[1]-ee.y[0]),l:O._size.l+O._size.w*ee.x[0],r:O._size.r+O._size.w*(1-ee.x[1]),t:O._size.t+O._size.h*(1-ee.y[1]),b:O._size.b+O._size.h*ee.y[0]},Q=V.l+V.w/2,oe=V.t+V.h/2,$=Math.min(V.w/2,V.h),Z=a.innerRadius*$,se,ne,ce,ge=te.align||"center";if(ne=oe,!ue)se=V.l+u[ge]*V.w,ce=function(ke){return s(ke,V.w,V.h)};else if(J&&(se=Q,ne=oe+$/2,ce=function(ke){return L(ke,.9*Z)}),X){var Te=a.bulletPadding,we=1-a.bulletNumberDomainSize+Te;se=V.l+(we+(1-we)*u[ge])*V.w,ce=function(ke){return s(ke,(a.bulletNumberDomainSize-Te)*V.w,V.h)}}_(N,ie,Y,{numbersX:se,numbersY:ne,numbersScaler:ce,transitionOpts:k,onComplete:H});var Re,be;ue&&(Re={range:te.gauge.axis.range,color:te.gauge.bgcolor,line:{color:te.gauge.bordercolor,width:0},thickness:1},be={range:te.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:te.gauge.bordercolor,width:te.gauge.borderwidth},thickness:1});var Ae=ie.selectAll("g.angular").data(J?Y:[]);Ae.exit().remove();var me=ie.selectAll("g.angularaxis").data(J?Y:[]);me.exit().remove(),J&&A(N,ie,Y,{radius:$,innerRadius:Z,gauge:Ae,layer:me,size:V,gaugeBg:Re,gaugeOutline:be,transitionOpts:k,onComplete:H});var Le=ie.selectAll("g.bullet").data(X?Y:[]);Le.exit().remove();var He=ie.selectAll("g.bulletaxis").data(X?Y:[]);He.exit().remove(),X&&w(N,ie,Y,{gauge:Le,layer:He,size:V,gaugeBg:Re,gaugeOutline:be,transitionOpts:k,onComplete:H});var Ue=ie.selectAll("text.title").data(Y);Ue.exit().remove(),Ue.enter().append("text").classed("title",!0),Ue.attr("text-anchor",function(){return X?b.right:b[te.title.align]}).text(te.title.text).call(t.font,te.title.font).call(n.convertToTspans,N),Ue.attr("transform",function(){var ke=V.l+V.w*u[te.title.align],Ve,Ie=a.titlePadding,rt=t.bBox(Ue.node());if(ue){if(J)if(te.gauge.axis.visible){var Ke=t.bBox(me.node());Ve=Ke.top-Ie-rt.bottom}else Ve=V.t+V.h/2-$/2-rt.bottom-Ie;X&&(Ve=ne-(rt.top+rt.bottom)/2,ke=V.l-a.bulletPadding*V.w)}else Ve=te._numbersTop-Ie-rt.bottom;return v(ke,Ve)})})};function w(D,N,I,k){var B=I[0].trace,O=k.gauge,H=k.layer,Y=k.gaugeBg,j=k.gaugeOutline,te=k.size,ie=B.domain,ue=k.transitionOpts,J=k.onComplete,X,ee,V,Q,oe;O.enter().append("g").classed("bullet",!0),O.attr("transform",v(te.l,te.t)),H.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),H.selectAll("g.xbulletaxistick,path,text").remove();var $=te.h,Z=B.gauge.bar.thickness*$,se=ie.x[0],ne=ie.x[0]+(ie.x[1]-ie.x[0])*(B._hasNumber||B._hasDelta?1-a.bulletNumberDomainSize:1);X=T(D,B.gauge.axis),X._id="xbulletaxis",X.domain=[se,ne],X.setScale(),ee=f.calcTicks(X),V=f.makeTransTickFn(X),Q=f.getTickSigns(X)[2],oe=te.t+te.h,X.visible&&(f.drawTicks(D,X,{vals:X.ticks==="inside"?f.clipEnds(X,ee):ee,layer:H,path:f.makeTickPath(X,oe,Q),transFn:V}),f.drawLabels(D,X,{vals:ee,layer:H,transFn:V,labelFns:f.makeLabelFns(X,oe)}));function ce(me){me.attr("width",function(Le){return Math.max(0,X.c2p(Le.range[1])-X.c2p(Le.range[0]))}).attr("x",function(Le){return X.c2p(Le.range[0])}).attr("y",function(Le){return .5*(1-Le.thickness)*$}).attr("height",function(Le){return Le.thickness*$})}var ge=[Y].concat(B.gauge.steps),Te=O.selectAll("g.bg-bullet").data(ge);Te.enter().append("g").classed("bg-bullet",!0).append("rect"),Te.select("rect").call(ce).call(y),Te.exit().remove();var we=O.selectAll("g.value-bullet").data([B.gauge.bar]);we.enter().append("g").classed("value-bullet",!0).append("rect"),we.select("rect").attr("height",Z).attr("y",($-Z)/2).call(y),d(ue)?we.select("rect").transition().duration(ue.duration).ease(ue.easing).each("end",function(){J&&J()}).each("interrupt",function(){J&&J()}).attr("width",Math.max(0,X.c2p(Math.min(B.gauge.axis.range[1],I[0].y)))):we.select("rect").attr("width",typeof I[0].y=="number"?Math.max(0,X.c2p(Math.min(B.gauge.axis.range[1],I[0].y))):0),we.exit().remove();var Re=I.filter(function(){return B.gauge.threshold.value||B.gauge.threshold.value===0}),be=O.selectAll("g.threshold-bullet").data(Re);be.enter().append("g").classed("threshold-bullet",!0).append("line"),be.select("line").attr("x1",X.c2p(B.gauge.threshold.value)).attr("x2",X.c2p(B.gauge.threshold.value)).attr("y1",(1-B.gauge.threshold.thickness)/2*$).attr("y2",(1-(1-B.gauge.threshold.thickness)/2)*$).call(h.stroke,B.gauge.threshold.line.color).style("stroke-width",B.gauge.threshold.line.width),be.exit().remove();var Ae=O.selectAll("g.gauge-outline").data([j]);Ae.enter().append("g").classed("gauge-outline",!0).append("rect"),Ae.select("rect").call(ce).call(y),Ae.exit().remove()}function A(D,N,I,k){var B=I[0].trace,O=k.size,H=k.radius,Y=k.innerRadius,j=k.gaugeBg,te=k.gaugeOutline,ie=[O.l+O.w/2,O.t+O.h/2+H/2],ue=k.gauge,J=k.layer,X=k.transitionOpts,ee=k.onComplete,V=Math.PI/2;function Q($e){var lt=B.gauge.axis.range[0],ht=B.gauge.axis.range[1],dt=($e-lt)/(ht-lt)*Math.PI-V;return dt<-V?-V:dt>V?V:dt}function oe($e){return g.svg.arc().innerRadius((Y+H)/2-$e/2*(H-Y)).outerRadius((Y+H)/2+$e/2*(H-Y)).startAngle(-V)}function $($e){$e.attr("d",function(lt){return oe(lt.thickness).startAngle(Q(lt.range[0])).endAngle(Q(lt.range[1]))()})}var Z,se,ne,ce;ue.enter().append("g").classed("angular",!0),ue.attr("transform",v(ie[0],ie[1])),J.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),J.selectAll("g.xangularaxistick,path,text").remove(),Z=T(D,B.gauge.axis),Z.type="linear",Z.range=B.gauge.axis.range,Z._id="xangularaxis",Z.ticklabeloverflow="allow",Z.setScale();var ge=function($e){return(Z.range[0]-$e.x)/(Z.range[1]-Z.range[0])*Math.PI+Math.PI},Te={},we=f.makeLabelFns(Z,0),Re=we.labelStandoff;Te.xFn=function($e){var lt=ge($e);return Math.cos(lt)*Re},Te.yFn=function($e){var lt=ge($e),ht=Math.sin(lt)>0?.2:1;return-Math.sin(lt)*(Re+$e.fontSize*ht)+Math.abs(Math.cos(lt))*($e.fontSize*r)},Te.anchorFn=function($e){var lt=ge($e),ht=Math.cos(lt);return Math.abs(ht)<.1?"middle":ht>0?"start":"end"},Te.heightFn=function($e,lt,ht){var dt=ge($e);return-.5*(1+Math.sin(dt))*ht};var be=function($e){return v(ie[0]+H*Math.cos($e),ie[1]-H*Math.sin($e))};ne=function($e){return be(ge($e))};var Ae=function($e){var lt=ge($e);return be(lt)+"rotate("+-p(lt)+")"};if(se=f.calcTicks(Z),ce=f.getTickSigns(Z)[2],Z.visible){ce=Z.ticks==="inside"?-1:1;var me=(Z.linewidth||1)/2;f.drawTicks(D,Z,{vals:se,layer:J,path:"M"+ce*me+",0h"+ce*Z.ticklen,transFn:Ae}),f.drawLabels(D,Z,{vals:se,layer:J,transFn:ne,labelFns:Te})}var Le=[j].concat(B.gauge.steps),He=ue.selectAll("g.bg-arc").data(Le);He.enter().append("g").classed("bg-arc",!0).append("path"),He.select("path").call($).call(y),He.exit().remove();var Ue=oe(B.gauge.bar.thickness),ke=ue.selectAll("g.value-arc").data([B.gauge.bar]);ke.enter().append("g").classed("value-arc",!0).append("path");var Ve=ke.select("path");d(X)?(Ve.transition().duration(X.duration).ease(X.easing).each("end",function(){ee&&ee()}).each("interrupt",function(){ee&&ee()}).attrTween("d",E(Ue,Q(I[0].lastY),Q(I[0].y))),B._lastValue=I[0].y):Ve.attr("d",typeof I[0].y=="number"?Ue.endAngle(Q(I[0].y)):"M0,0Z"),Ve.call(y),ke.exit().remove(),Le=[];var Ie=B.gauge.threshold.value;(Ie||Ie===0)&&Le.push({range:[Ie,Ie],color:B.gauge.threshold.color,line:{color:B.gauge.threshold.line.color,width:B.gauge.threshold.line.width},thickness:B.gauge.threshold.thickness});var rt=ue.selectAll("g.threshold-arc").data(Le);rt.enter().append("g").classed("threshold-arc",!0).append("path"),rt.select("path").call($).call(y),rt.exit().remove();var Ke=ue.selectAll("g.gauge-outline").data([te]);Ke.enter().append("g").classed("gauge-outline",!0).append("path"),Ke.select("path").call($).call(y),Ke.exit().remove()}function _(D,N,I,k){var B=I[0].trace,O=k.numbersX,H=k.numbersY,Y=B.align||"center",j=b[Y],te=k.transitionOpts,ie=k.onComplete,ue=S.ensureSingle(N,"g","numbers"),J,X,ee,V=[];B._hasNumber&&V.push("number"),B._hasDelta&&(V.push("delta"),B.delta.position==="left"&&V.reverse());var Q=ue.selectAll("text").data(V);Q.enter().append("text"),Q.attr("text-anchor",function(){return j}).attr("class",function(be){return be}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),Q.exit().remove();function oe(be,Ae,me,Le){if(be.match("s")&&me>=0!=Le>=0&&!Ae(me).slice(-1).match(o)&&!Ae(Le).slice(-1).match(o)){var He=be.slice().replace("s","f").replace(/\d+/,function(ke){return parseInt(ke)-1}),Ue=T(D,{tickformat:He});return function(ke){return Math.abs(ke)<1?f.tickText(Ue,ke).text:Ae(ke)}}else return Ae}function $(){var be=T(D,{tickformat:B.number.valueformat},B._range);be.setScale(),f.prepTicks(be);var Ae=function(ke){return f.tickText(be,ke).text},me=B.number.suffix,Le=B.number.prefix,He=ue.select("text.number");function Ue(){var ke=typeof I[0].y=="number"?Le+Ae(I[0].y)+me:"-";He.text(ke).call(t.font,B.number.font).call(n.convertToTspans,D)}return d(te)?He.transition().duration(te.duration).ease(te.easing).each("end",function(){Ue(),ie&&ie()}).each("interrupt",function(){Ue(),ie&&ie()}).attrTween("text",function(){var ke=g.select(this),Ve=i(I[0].lastY,I[0].y);B._lastValue=I[0].y;var Ie=oe(B.number.valueformat,Ae,I[0].lastY,I[0].y);return function(rt){ke.text(Le+Ie(Ve(rt))+me)}}):Ue(),J=M(Le+Ae(I[0].y)+me,B.number.font,j,D),He}function Z(){var be=T(D,{tickformat:B.delta.valueformat},B._range);be.setScale(),f.prepTicks(be);var Ae=function(rt){return f.tickText(be,rt).text},me=B.delta.suffix,Le=B.delta.prefix,He=function(rt){var Ke=B.delta.relative?rt.relativeDelta:rt.delta;return Ke},Ue=function(rt,Ke){return rt===0||typeof rt!="number"||isNaN(rt)?"-":(rt>0?B.delta.increasing.symbol:B.delta.decreasing.symbol)+Le+Ke(rt)+me},ke=function(rt){return rt.delta>=0?B.delta.increasing.color:B.delta.decreasing.color};B._deltaLastValue===void 0&&(B._deltaLastValue=He(I[0]));var Ve=ue.select("text.delta");Ve.call(t.font,B.delta.font).call(h.fill,ke({delta:B._deltaLastValue}));function Ie(){Ve.text(Ue(He(I[0]),Ae)).call(h.fill,ke(I[0])).call(n.convertToTspans,D)}return d(te)?Ve.transition().duration(te.duration).ease(te.easing).tween("text",function(){var rt=g.select(this),Ke=He(I[0]),$e=B._deltaLastValue,lt=oe(B.delta.valueformat,Ae,$e,Ke),ht=i($e,Ke);return B._deltaLastValue=Ke,function(dt){rt.text(Ue(ht(dt),lt)),rt.call(h.fill,ke({delta:ht(dt)}))}}).each("end",function(){Ie(),ie&&ie()}).each("interrupt",function(){Ie(),ie&&ie()}):Ie(),X=M(Ue(He(I[0]),Ae),B.delta.font,j,D),Ve}var se=B.mode+B.align,ne;if(B._hasDelta&&(ne=Z(),se+=B.delta.position+B.delta.font.size+B.delta.font.family+B.delta.valueformat,se+=B.delta.increasing.symbol+B.delta.decreasing.symbol,ee=X),B._hasNumber&&($(),se+=B.number.font.size+B.number.font.family+B.number.valueformat+B.number.suffix+B.number.prefix,ee=J),B._hasDelta&&B._hasNumber){var ce=[(J.left+J.right)/2,(J.top+J.bottom)/2],ge=[(X.left+X.right)/2,(X.top+X.bottom)/2],Te,we,Re=.75*B.delta.font.size;B.delta.position==="left"&&(Te=z(B,"deltaPos",0,-1*(J.width*u[B.align]+X.width*(1-u[B.align])+Re),se,Math.min),we=ce[1]-ge[1],ee={width:J.width+X.width+Re,height:Math.max(J.height,X.height),left:X.left+Te,right:J.right,top:Math.min(J.top,X.top+we),bottom:Math.max(J.bottom,X.bottom+we)}),B.delta.position==="right"&&(Te=z(B,"deltaPos",0,J.width*(1-u[B.align])+X.width*u[B.align]+Re,se,Math.max),we=ce[1]-ge[1],ee={width:J.width+X.width+Re,height:Math.max(J.height,X.height),left:J.left,right:X.right+Te,top:Math.min(J.top,X.top+we),bottom:Math.max(J.bottom,X.bottom+we)}),B.delta.position==="bottom"&&(Te=null,we=X.height,ee={width:Math.max(J.width,X.width),height:J.height+X.height,left:Math.min(J.left,X.left),right:Math.max(J.right,X.right),top:J.bottom-J.height,bottom:J.bottom+X.height}),B.delta.position==="top"&&(Te=null,we=J.top,ee={width:Math.max(J.width,X.width),height:J.height+X.height,left:Math.min(J.left,X.left),right:Math.max(J.right,X.right),top:J.bottom-J.height-X.height,bottom:J.bottom}),ne.attr({dx:Te,dy:we})}(B._hasNumber||B._hasDelta)&&ue.attr("transform",function(){var be=k.numbersScaler(ee);se+=be[2];var Ae=z(B,"numbersScale",1,be[0],se,Math.min),me;B._scaleNumbers||(Ae=1),B._isAngular?me=H-Ae*ee.bottom:me=H-Ae*(ee.top+ee.bottom)/2,B._numbersTop=Ae*ee.top+me;var Le=ee[Y];Y==="center"&&(Le=(ee.left+ee.right)/2);var He=O-Ae*Le;return He=z(B,"numbersTranslate",0,He,se,Math.max),v(He,me)+x(Ae)})}function y(D){D.each(function(N){h.stroke(g.select(this),N.line.color)}).each(function(N){h.fill(g.select(this),N.color)}).style("stroke-width",function(N){return N.line.width})}function E(D,N,I){return function(){var k=C(N,I);return function(B){return D.endAngle(k(B))()}}}function T(D,N,I){var k=D._fullLayout,B=S.extendFlat({type:"linear",ticks:"outside",range:I,showline:!0},N),O={type:"linear",_id:"x"+N._id},H={letter:"x",font:k.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function Y(j,te){return S.coerce(B,O,m,j,te)}return c(B,O,Y,H,k),l(B,O,Y,H),O}function s(D,N,I){var k=Math.min(N/D.width,I/D.height);return[k,D,N+"x"+I]}function L(D,N){var I=Math.sqrt(D.width/2*(D.width/2)+D.height*D.height),k=N/I;return[k,D,N]}function M(D,N,I,k){var B=document.createElementNS("http://www.w3.org/2000/svg","text"),O=g.select(B);return O.text(D).attr("x",0).attr("y",0).attr("text-anchor",I).attr("data-unformatted",D).call(n.convertToTspans,k).call(t.font,N),t.bBox(O.node())}function z(D,N,I,k,B,O){var H="_cache"+N;D[H]&&D[H].key===B||(D[H]={key:B,value:I});var Y=S.aggNums(O,null,[D[H].value,k],2);return D[H].value=Y,Y}},50048:function(G,U,e){var g=e(49084),C=e(29736).axisHoverFormat,i=e(21776).Ks,S=e(52948),x=e(45464),v=e(92880).extendFlat,p=e(67824).overrideAll;function r(n){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function t(n){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var a=G.exports=p(v({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:r(),y:r(),z:r()},caps:{x:t(),y:t(),z:t()},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:C("x"),yhoverformat:C("y"),zhoverformat:C("z"),valuehoverformat:C("value",1),showlegend:v({},x.showlegend,{dflt:!1})},g("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:S.opacity,lightposition:S.lightposition,lighting:S.lighting,flatshading:S.flatshading,contour:S.contour,hoverinfo:v({},x.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes",a.transforms=void 0},62624:function(G,U,e){var g=e(47128),C=e(3832).processGrid,i=e(3832).filter;G.exports=function(x,v){v._len=Math.min(v.x.length,v.y.length,v.z.length,v.value.length),v._x=i(v.x,v._len),v._y=i(v.y,v._len),v._z=i(v.z,v._len),v._value=i(v.value,v._len);var p=C(v);v._gridFill=p.fill,v._Xs=p.Xs,v._Ys=p.Ys,v._Zs=p.Zs,v._len=p.len;for(var r=1/0,t=-1/0,a=0;a0;m--){var h=Math.min(l[m],l[m-1]),b=Math.max(l[m],l[m-1]);if(b>h&&h-1}function Z(Je,We){return Je===null?We:Je}function se(Je,We,Fe){te();var xe=[We],ye=[Fe];if(V>=1)xe=[We],ye=[Fe];else if(V>0){var Ee=oe(We,Fe);xe=Ee.xyzv,ye=Ee.abc}for(var Me=0;Me-1?Fe[je]:j(it,mt,bt);Lt>-1?Ne[je]=Lt:Ne[je]=ue(it,mt,bt,Z(Je,vt))}J(Ne[0],Ne[1],Ne[2])}}function ne(Je,We,Fe){var xe=function(ye,Ee,Me){se(Je,[We[ye],We[Ee],We[Me]],[Fe[ye],Fe[Ee],Fe[Me]])};xe(0,1,2),xe(2,3,0)}function ce(Je,We,Fe){var xe=function(ye,Ee,Me){se(Je,[We[ye],We[Ee],We[Me]],[Fe[ye],Fe[Ee],Fe[Me]])};xe(0,1,2),xe(3,0,1),xe(2,3,0),xe(1,2,3)}function ge(Je,We,Fe,xe){var ye=Je[3];yexe&&(ye=xe);for(var Ee=(Je[3]-ye)/(Je[3]-We[3]+1e-9),Me=[],Ne=0;Ne<4;Ne++)Me[Ne]=(1-Ee)*Je[Ne]+Ee*We[Ne];return Me}function Te(Je,We,Fe){return Je>=We&&Je<=Fe}function we(Je){var We=.001*(k-I);return Je>=I-We&&Je<=k+We}function Re(Je){for(var We=[],Fe=0;Fe<4;Fe++){var xe=Je[Fe];We.push([c._x[xe],c._y[xe],c._z[xe],c._value[xe]])}return We}var be=3;function Ae(Je,We,Fe,xe,ye,Ee){Ee||(Ee=1),Fe=[-1,-1,-1];var Me=!1,Ne=[Te(We[0][3],xe,ye),Te(We[1][3],xe,ye),Te(We[2][3],xe,ye)];if(!Ne[0]&&!Ne[1]&&!Ne[2])return!1;var je=function(mt,bt,vt){return we(bt[0][3])&&we(bt[1][3])&&we(bt[2][3])?(se(mt,bt,vt),!0):EeNe?[D,Ee]:[Ee,N];ht(We,je[0],je[1])}}var it=[[Math.min(I,N),Math.max(I,N)],[Math.min(D,k),Math.max(D,k)]];["x","y","z"].forEach(function(mt){for(var bt=[],vt=0;vt0&&(pt.push(or.id),mt==="x"?Xt.push([or.distRatio,0,0]):mt==="y"?Xt.push([0,or.distRatio,0]):Xt.push([0,0,or.distRatio]))}else mt==="x"?ir=nt(1,T-1):mt==="y"?ir=nt(1,s-1):ir=nt(1,L-1);pt.length>0&&(mt==="x"?bt[Lt]=dt(Je,pt,ct,Tt,Xt,bt[Lt]):mt==="y"?bt[Lt]=xt(Je,pt,ct,Tt,Xt,bt[Lt]):bt[Lt]=St(Je,pt,ct,Tt,Xt,bt[Lt]),Lt++),ir.length>0&&(mt==="x"?bt[Lt]=Ie(Je,ir,ct,Tt,bt[Lt]):mt==="y"?bt[Lt]=rt(Je,ir,ct,Tt,bt[Lt]):bt[Lt]=Ke(Je,ir,ct,Tt,bt[Lt]),Lt++)}var $t=c.caps[mt];$t.show&&$t.fill&&(Q($t.fill),mt==="x"?bt[Lt]=Ie(Je,[0,T-1],ct,Tt,bt[Lt]):mt==="y"?bt[Lt]=rt(Je,[0,s-1],ct,Tt,bt[Lt]):bt[Lt]=Ke(Je,[0,L-1],ct,Tt,bt[Lt]),Lt++)}}),d===0&&ie(),c._meshX=B,c._meshY=O,c._meshZ=H,c._meshIntensity=Y,c._Xs=_,c._Ys=y,c._Zs=E}return Xe(),c}function f(c,l){var m=c.glplot.gl,h=g({gl:m}),b=new r(c,h,l.uid);return h._trace=b,b.update(l),c.glplot.add(h),b}G.exports={findNearestOnAxis:p,generateIsoMeshes:n,createIsosurfaceTrace:f}},70548:function(G,U,e){var g=e(3400),C=e(24040),i=e(50048),S=e(27260);function x(p,r,t,a){function n(f,c){return g.coerce(p,r,i,f,c)}v(p,r,t,a,n)}function v(p,r,t,a,n){var f=n("isomin"),c=n("isomax");c!=null&&f!==void 0&&f!==null&&f>c&&(r.isomin=null,r.isomax=null);var l=n("x"),m=n("y"),h=n("z"),b=n("value");if(!l||!l.length||!m||!m.length||!h||!h.length||!b||!b.length){r.visible=!1;return}var u=C.getComponentMethod("calendars","handleTraceDefaults");u(p,r,["x","y","z"],a),n("valuehoverformat"),["x","y","z"].forEach(function(A){n(A+"hoverformat");var _="caps."+A,y=n(_+".show");y&&n(_+".fill");var E="slices."+A,T=n(E+".show");T&&(n(E+".fill"),n(E+".locations"))});var o=n("spaceframe.show");o&&n("spaceframe.fill");var d=n("surface.show");d&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var w=n("contour.show");w&&(n("contour.color"),n("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(A){n(A)}),S(p,r,a,n,{prefix:"",cLetter:"c"}),r._length=null}G.exports={supplyDefaults:x,supplyIsoDefaults:v}},6296:function(G,U,e){G.exports={attributes:e(50048),supplyDefaults:e(70548).supplyDefaults,calc:e(62624),colorbar:{min:"cmin",max:"cmax"},plot:e(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:e(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(G,U,e){var g=e(49084),C=e(29736).axisHoverFormat,i=e(21776).Ks,S=e(16716),x=e(45464),v=e(92880).extendFlat;G.exports=v({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"}),xhoverformat:C("x"),yhoverformat:C("y"),zhoverformat:C("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},g("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:S.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:v({},S.contours.x.show,{}),color:S.contours.x.color,width:S.contours.x.width,editType:"calc"},lightposition:{x:v({},S.lightposition.x,{dflt:1e5}),y:v({},S.lightposition.y,{dflt:1e5}),z:v({},S.lightposition.z,{dflt:0}),editType:"calc"},lighting:v({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},S.lighting),hoverinfo:v({},x.hoverinfo,{editType:"calc"}),showlegend:v({},x.showlegend,{dflt:!1})})},1876:function(G,U,e){var g=e(47128);G.exports=function(i,S){S.intensity&&g(i,S,{vals:S.intensity,containerStr:"",cLetter:"c"})}},576:function(G,U,e){var g=e(67792).gl_mesh3d,C=e(67792).delaunay_triangulate,i=e(67792).alpha_shape,S=e(67792).convex_hull,x=e(33040).parseColorScale,v=e(3400).isArrayOrTypedArray,p=e(43080),r=e(8932).extractOpts,t=e(52094);function a(u,o,d){this.scene=u,this.uid=d,this.mesh=o,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var n=a.prototype;n.handlePick=function(u){if(u.object===this.mesh){var o=u.index=u.data.index;u.data._cellCenter?u.traceCoordinate=u.data.dataCoordinate:u.traceCoordinate=[this.data.x[o],this.data.y[o],this.data.z[o]];var d=this.data.hovertext||this.data.text;return v(d)&&d[o]!==void 0?u.textLabel=d[o]:d&&(u.textLabel=d),!0}};function f(u){for(var o=[],d=u.length,w=0;w=o-.5)return!1;return!0}n.update=function(u){var o=this.scene,d=o.fullSceneLayout;this.data=u;var w=u.x.length,A=t(c(d.xaxis,u.x,o.dataScale[0],u.xcalendar),c(d.yaxis,u.y,o.dataScale[1],u.ycalendar),c(d.zaxis,u.z,o.dataScale[2],u.zcalendar)),_;if(u.i&&u.j&&u.k){if(u.i.length!==u.j.length||u.j.length!==u.k.length||!h(u.i,w)||!h(u.j,w)||!h(u.k,w))return;_=t(l(u.i),l(u.j),l(u.k))}else u.alphahull===0?_=S(A):u.alphahull>0?_=i(u.alphahull,A):_=m(u.delaunayaxis,A);var y={positions:A,cells:_,lightPosition:[u.lightposition.x,u.lightposition.y,u.lightposition.z],ambient:u.lighting.ambient,diffuse:u.lighting.diffuse,specular:u.lighting.specular,roughness:u.lighting.roughness,fresnel:u.lighting.fresnel,vertexNormalsEpsilon:u.lighting.vertexnormalsepsilon,faceNormalsEpsilon:u.lighting.facenormalsepsilon,opacity:u.opacity,contourEnable:u.contour.show,contourColor:p(u.contour.color).slice(0,3),contourWidth:u.contour.width,useFacetNormals:u.flatshading};if(u.intensity){var E=r(u);this.color="#fff";var T=u.intensitymode;y[T+"Intensity"]=u.intensity,y[T+"IntensityBounds"]=[E.min,E.max],y.colormap=x(u)}else u.vertexcolor?(this.color=u.vertexcolor[0],y.vertexColors=f(u.vertexcolor)):u.facecolor?(this.color=u.facecolor[0],y.cellColors=f(u.facecolor)):(this.color=u.color,y.meshColor=p(u.color));this.mesh.update(y)},n.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function b(u,o){var d=u.glplot.gl,w=g({gl:d}),A=new a(u,w,o.uid);return w._trace=A,A.update(o),u.glplot.add(w),A}G.exports=b},74212:function(G,U,e){var g=e(24040),C=e(3400),i=e(27260),S=e(52948);G.exports=function(v,p,r,t){function a(m,h){return C.coerce(v,p,S,m,h)}function n(m){var h=m.map(function(b){var u=a(b);return u&&C.isArrayOrTypedArray(u)?u:null});return h.every(function(b){return b&&b.length===h[0].length})&&h}var f=n(["x","y","z"]);if(!f){p.visible=!1;return}if(n(["i","j","k"]),p.i&&(!p.j||!p.k)||p.j&&(!p.k||!p.i)||p.k&&(!p.i||!p.j)){p.visible=!1;return}var c=g.getComponentMethod("calendars","handleTraceDefaults");c(v,p,["x","y","z"],t),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(m){a(m)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in v?(a("intensity"),a("intensitymode"),i(v,p,t,a,{prefix:"",cLetter:"c"})):(p.showscale=!1,"facecolor"in v?a("facecolor"):"vertexcolor"in v?a("vertexcolor"):a("color",r)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),p._length=null}},7404:function(G,U,e){G.exports={attributes:e(52948),supplyDefaults:e(74212),calc:e(1876),colorbar:{min:"cmin",max:"cmax"},plot:e(576),moduleType:"trace",name:"mesh3d",basePlotModule:e(12536),categories:["gl3d","showLegend"],meta:{}}},20279:function(G,U,e){var g=e(3400).extendFlat,C=e(52904),i=e(29736).axisHoverFormat,S=e(98192).u,x=e(55756),v=e(48164),p=v.INCREASING.COLOR,r=v.DECREASING.COLOR,t=C.line;function a(n){return{line:{color:g({},t.color,{dflt:n}),width:t.width,dash:S,editType:"style"},editType:"style"}}G.exports={xperiod:C.xperiod,xperiod0:C.xperiod0,xperiodalignment:C.xperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:g({},t.width,{}),dash:g({},S,{}),editType:"style"},increasing:a(p),decreasing:a(r),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:g({},x.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}})}},42812:function(G,U,e){var g=e(3400),C=g._,i=e(54460),S=e(1220),x=e(39032).BADNUM;function v(a,n){var f=i.getFromId(a,n.xaxis),c=i.getFromId(a,n.yaxis),l=t(a,f,n),m=n._minDiff;n._minDiff=null;var h=n._origX;n._origX=null;var b=n._xcalc;n._xcalc=null;var u=r(a,n,h,b,c,p);return n._extremes[f._id]=i.findExtremes(f,b,{vpad:m/2}),u.length?(g.extendFlat(u[0].t,{wHover:m/2,tickLen:l}),u):[{t:{empty:!0}}]}function p(a,n,f,c){return{o:a,h:n,l:f,c}}function r(a,n,f,c,l,m){for(var h=l.makeCalcdata(n,"open"),b=l.makeCalcdata(n,"high"),u=l.makeCalcdata(n,"low"),o=l.makeCalcdata(n,"close"),d=g.isArrayOrTypedArray(n.text),w=g.isArrayOrTypedArray(n.hovertext),A=!0,_=null,y=!!n.xperiodalignment,E=[],T=0;T_):A=D>L,_=D;var N=m(L,M,z,D);N.pos=s,N.yc=(L+D)/2,N.i=T,N.dir=A?"increasing":"decreasing",N.x=N.pos,N.y=[z,M],y&&(N.orig_p=f[T]),d&&(N.tx=n.text[T]),w&&(N.htx=n.hovertext[T]),E.push(N)}else E.push({pos:s,empty:!0})}return n._extremes[l._id]=i.findExtremes(l,g.concat(u,b),{padded:!0}),E.length&&(E[0].t={labels:{open:C(a,"open:")+" ",high:C(a,"high:")+" ",low:C(a,"low:")+" ",close:C(a,"close:")+" "}}),E}function t(a,n,f){var c=f._minDiff;if(!c){var l=a._fullData,m=[];c=1/0;var h;for(h=0;h"+o.labels[D]+g.hoverLabelText(b,N,u.yhoverformat)):(k=C.extendFlat({},w),k.y0=k.y1=I,k.yLabelVal=N,k.yLabel=o.labels[D]+g.hoverLabelText(b,N,u.yhoverformat),k.name="",d.push(k),M[N]=k)}return d}function n(f,c,l,m){var h=f.cd,b=f.ya,u=h[0].trace,o=h[0].t,d=t(f,c,l,m);if(!d)return[];var w=d.index,A=h[w],_=d.index=A.i,y=A.dir;function E(N){return o.labels[N]+g.hoverLabelText(b,u[N][_],u.yhoverformat)}var T=A.hi||u.hoverinfo,s=T.split("+"),L=T==="all",M=L||s.indexOf("y")!==-1,z=L||s.indexOf("text")!==-1,D=M?[E("open"),E("high"),E("low"),E("close")+" "+p[y]]:[];return z&&x(A,u,D),d.extraText=D.join("
    "),d.y0=d.y1=b.c2p(A.yc,!0),[d]}G.exports={hoverPoints:r,hoverSplit:a,hoverOnPoints:n}},65456:function(G,U,e){G.exports={moduleType:"trace",name:"ohlc",basePlotModule:e(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:e(20279),supplyDefaults:e(23860),calc:e(42812).calc,plot:e(36664),style:e(14008),hoverPoints:e(18720).hoverPoints,selectPoints:e(97384)}},52744:function(G,U,e){var g=e(24040),C=e(3400);G.exports=function(S,x,v,p){var r=v("x"),t=v("open"),a=v("high"),n=v("low"),f=v("close");v("hoverlabel.split");var c=g.getComponentMethod("calendars","handleTraceDefaults");if(c(S,x,["x"],p),!!(t&&a&&n&&f)){var l=Math.min(t.length,a.length,n.length,f.length);return r&&(l=Math.min(l,C.minRowLength(r))),x._length=l,l}}},36664:function(G,U,e){var g=e(33428),C=e(3400);G.exports=function(S,x,v,p){var r=x.yaxis,t=x.xaxis,a=!!t.rangebreaks;C.makeTraceGroups(p,v,"trace ohlc").each(function(n){var f=g.select(this),c=n[0],l=c.t,m=c.trace;if(m.visible!==!0||l.empty){f.remove();return}var h=l.tickLen,b=f.selectAll("path").data(C.identity);b.enter().append("path"),b.exit().remove(),b.attr("d",function(u){if(u.empty)return"M0,0Z";var o=t.c2p(u.pos-h,!0),d=t.c2p(u.pos+h,!0),w=a?(o+d)/2:t.c2p(u.pos,!0),A=r.c2p(u.o,!0),_=r.c2p(u.h,!0),y=r.c2p(u.l,!0),E=r.c2p(u.c,!0);return"M"+o+","+A+"H"+w+"M"+w+","+_+"V"+y+"M"+d+","+E+"H"+w})})}},97384:function(G){G.exports=function(e,g){var C=e.cd,i=e.xaxis,S=e.yaxis,x=[],v,p=C[0].t.bPos||0;if(g===!1)for(v=0;v=u.length||o[u[d]]!==void 0)return!1;o[u[d]]=!0}return!0}},76671:function(G,U,e){var g=e(3400),C=e(94288).hasColorscale,i=e(27260),S=e(86968).Q,x=e(51272),v=e(72140),p=e(26284),r=e(38116).isTypedArraySpec;function t(n,f,c,l,m){m("line.shape"),m("line.hovertemplate");var h=m("line.color",l.colorway[0]);if(C(n,"line")&&g.isArrayOrTypedArray(h)){if(h.length)return m("line.colorscale"),i(n,f,l,m,{prefix:"line.",cLetter:"c"}),h.length;f.line.color=c}return 1/0}function a(n,f){function c(d,w){return g.coerce(n,f,v.dimensions,d,w)}var l=c("values"),m=c("visible");if(l&&l.length||(m=f.visible=!1),m){c("label"),c("displayindex",f._index);var h=n.categoryarray,b=g.isArrayOrTypedArray(h)&&h.length>0||r(h),u;b&&(u="array");var o=c("categoryorder",u);o==="array"?(c("categoryarray"),c("ticktext")):(delete n.categoryarray,delete n.ticktext),!b&&o==="array"&&(f.categoryorder="trace")}}G.exports=function(f,c,l,m){function h(w,A){return g.coerce(f,c,v,w,A)}var b=x(f,c,{name:"dimensions",handleItemDefaults:a}),u=t(f,c,l,m,h);S(c,m,h),(!Array.isArray(b)||!b.length)&&(c.visible=!1),p(c,b,"values",u),h("hoveron"),h("hovertemplate"),h("arrangement"),h("bundlecolors"),h("sortpaths"),h("counts");var o={family:m.font.family,size:Math.round(m.font.size),color:m.font.color};g.coerceFont(h,"labelfont",o);var d={family:m.font.family,size:Math.round(m.font.size/1.2),color:m.font.color};g.coerceFont(h,"tickfont",d)}},22020:function(G,U,e){G.exports={attributes:e(72140),supplyDefaults:e(76671),calc:e(69136),plot:e(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:e(91800),categories:["noOpacity"],meta:{}}},51036:function(G,U,e){var g=e(33428),C=e(67756).Gz,i=e(36424),S=e(93024),x=e(3400),v=x.strTranslate,p=e(43616),r=e(49760),t=e(72736);function a(V,Q,oe,$){var Z=Q._context.staticPlot,se=V.map(ie.bind(0,Q,oe)),ne=$.selectAll("g.parcatslayer").data([null]);ne.enter().append("g").attr("class","parcatslayer").style("pointer-events",Z?"none":"all");var ce=ne.selectAll("g.trace.parcats").data(se,n),ge=ce.enter().append("g").attr("class","trace parcats");ce.attr("transform",function(Ve){return v(Ve.x,Ve.y)}),ge.append("g").attr("class","paths");var Te=ce.select("g.paths"),we=Te.selectAll("path.path").data(function(Ve){return Ve.paths},n);we.attr("fill",function(Ve){return Ve.model.color});var Re=we.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Ve){return Ve.model.color}).attr("fill-opacity",0);o(Re),we.attr("d",function(Ve){return Ve.svgD}),Re.empty()||we.sort(c),we.exit().remove(),we.on("mouseover",l).on("mouseout",m).on("click",u),ge.append("g").attr("class","dimensions");var be=ce.select("g.dimensions"),Ae=be.selectAll("g.dimension").data(function(Ve){return Ve.dimensions},n);Ae.enter().append("g").attr("class","dimension"),Ae.attr("transform",function(Ve){return v(Ve.x,0)}),Ae.exit().remove();var me=Ae.selectAll("g.category").data(function(Ve){return Ve.categories},n),Le=me.enter().append("g").attr("class","category");me.attr("transform",function(Ve){return v(0,Ve.y)}),Le.append("rect").attr("class","catrect").attr("pointer-events","none"),me.select("rect.catrect").attr("fill","none").attr("width",function(Ve){return Ve.width}).attr("height",function(Ve){return Ve.height}),A(Le);var He=me.selectAll("rect.bandrect").data(function(Ve){return Ve.bands},n);He.each(function(){x.raiseToTop(this)}),He.attr("fill",function(Ve){return Ve.color});var Ue=He.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Ve){return Ve.color}).attr("fill-opacity",0);He.attr("fill",function(Ve){return Ve.color}).attr("width",function(Ve){return Ve.width}).attr("height",function(Ve){return Ve.height}).attr("y",function(Ve){return Ve.y}).attr("cursor",function(Ve){return Ve.parcatsViewModel.arrangement==="fixed"?"default":Ve.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),y(Ue),He.exit().remove(),Le.append("text").attr("class","catlabel").attr("pointer-events","none");var ke=Q._fullLayout.paper_bgcolor;me.select("text.catlabel").attr("text-anchor",function(Ve){return f(Ve)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",t.makeTextShadow(ke)).style("fill","rgb(0, 0, 0)").attr("x",function(Ve){return f(Ve)?Ve.width+5:-5}).attr("y",function(Ve){return Ve.height/2}).text(function(Ve){return Ve.model.categoryLabel}).each(function(Ve){p.font(g.select(this),Ve.parcatsViewModel.categorylabelfont),t.convertToTspans(g.select(this),Q)}),Le.append("text").attr("class","dimlabel"),me.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Ve){return Ve.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Ve){return Ve.width/2}).attr("y",-5).text(function(Ve,Ie){return Ie===0?Ve.parcatsViewModel.model.dimensions[Ve.model.dimensionInd].dimensionLabel:null}).each(function(Ve){p.font(g.select(this),Ve.parcatsViewModel.labelfont)}),me.selectAll("rect.bandrect").on("mouseover",I).on("mouseout",k),me.exit().remove(),Ae.call(g.behavior.drag().origin(function(Ve){return{x:Ve.x,y:0}}).on("dragstart",B).on("drag",O).on("dragend",H)),ce.each(function(Ve){Ve.traceSelection=g.select(this),Ve.pathSelection=g.select(this).selectAll("g.paths").selectAll("path.path"),Ve.dimensionSelection=g.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),ce.exit().remove()}G.exports=function(V,Q,oe,$){a(oe,V,$,Q)};function n(V){return V.key}function f(V){var Q=V.parcatsViewModel.dimensions.length,oe=V.parcatsViewModel.dimensions[Q-1].model.dimensionInd;return V.model.dimensionInd===oe}function c(V,Q){return V.model.rawColor>Q.model.rawColor?1:V.model.rawColor"),Ke=g.mouse(Z)[0];S.loneHover({trace:se,x:me-ce.left+ge.left,y:Le-ce.top+ge.top,text:rt,color:V.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:He,idealAlign:Ke1&&Te.displayInd===ge.dimensions.length-1?(be=ne.left,Ae="left"):(be=ne.left+ne.width,Ae="right");var me=ce.model.count,Le=ce.model.categoryLabel,He=me/ce.parcatsViewModel.model.count,Ue={countLabel:me,categoryLabel:Le,probabilityLabel:He.toFixed(3)},ke=[];ce.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ke.push(["Count:",Ue.countLabel].join(" ")),ce.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&ke.push(["P("+Ue.categoryLabel+"):",Ue.probabilityLabel].join(" "));var Ve=ke.join("
    ");return{trace:we,x:$*(be-Q.left),y:Z*(Re-Q.top),text:Ve,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:Ae,hovertemplate:we.hovertemplate,hovertemplateLabels:Ue,eventData:[{data:we._input,fullData:we,count:me,category:Le,probability:He}]}}function D(V,Q,oe){var $=[];return g.select(oe.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var Z=this;$.push(z(V,Q,Z))}),$}function N(V,Q,oe){V._fullLayout._calcInverseTransform(V);var $=V._fullLayout._invScaleX,Z=V._fullLayout._invScaleY,se=oe.getBoundingClientRect(),ne=g.select(oe).datum(),ce=ne.categoryViewModel,ge=ce.parcatsViewModel,Te=ge.model.dimensions[ce.model.dimensionInd],we=ge.trace,Re=se.y+se.height/2,be,Ae;ge.dimensions.length>1&&Te.displayInd===ge.dimensions.length-1?(be=se.left,Ae="left"):(be=se.left+se.width,Ae="right");var me=ce.model.categoryLabel,Le=ne.parcatsViewModel.model.count,He=0;ne.categoryViewModel.bands.forEach(function(dt){dt.color===ne.color&&(He+=dt.count)});var Ue=ce.model.count,ke=0;ge.pathSelection.each(function(dt){dt.model.color===ne.color&&(ke+=dt.model.count)});var Ve=He/Le,Ie=He/ke,rt=He/Ue,Ke={countLabel:Le,categoryLabel:me,probabilityLabel:Ve.toFixed(3)},$e=[];ce.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&$e.push(["Count:",Ke.countLabel].join(" ")),ce.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&($e.push("P(color ∩ "+me+"): "+Ke.probabilityLabel),$e.push("P("+me+" | color): "+Ie.toFixed(3)),$e.push("P(color | "+me+"): "+rt.toFixed(3)));var lt=$e.join("
    "),ht=r.mostReadable(ne.color,["black","white"]);return{trace:we,x:$*(be-Q.left),y:Z*(Re-Q.top),text:lt,color:ne.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:ht,fontSize:10,idealAlign:Ae,hovertemplate:we.hovertemplate,hovertemplateLabels:Ke,eventData:[{data:we._input,fullData:we,category:me,count:Le,probability:Ve,categorycount:Ue,colorcount:ke,bandcolorcount:He}]}}function I(V){if(!V.parcatsViewModel.dragDimension&&V.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var Q=g.mouse(this)[1];if(Q<-1)return;var oe=V.parcatsViewModel.graphDiv,$=oe._fullLayout,Z=$._paperdiv.node().getBoundingClientRect(),se=V.parcatsViewModel.hoveron,ne=this;if(se==="color"?(s(ne),M(ne,"plotly_hover",g.event)):(T(ne),L(ne,"plotly_hover",g.event)),V.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var ce;se==="category"?ce=z(oe,Z,ne):se==="color"?ce=N(oe,Z,ne):se==="dimension"&&(ce=D(oe,Z,ne)),ce&&S.loneHover(ce,{container:$._hoverlayer.node(),outerContainer:$._paper.node(),gd:oe})}}}function k(V){var Q=V.parcatsViewModel;if(!Q.dragDimension&&(o(Q.pathSelection),A(Q.dimensionSelection.selectAll("g.category")),y(Q.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),S.loneUnhover(Q.graphDiv._fullLayout._hoverlayer.node()),Q.pathSelection.sort(c),Q.hoverinfoItems.indexOf("skip")===-1)){var oe=V.parcatsViewModel.hoveron,$=this;oe==="color"?M($,"plotly_unhover",g.event):L($,"plotly_unhover",g.event)}}function B(V){V.parcatsViewModel.arrangement!=="fixed"&&(V.dragDimensionDisplayInd=V.model.displayInd,V.initialDragDimensionDisplayInds=V.parcatsViewModel.model.dimensions.map(function(Q){return Q.displayInd}),V.dragHasMoved=!1,V.dragCategoryDisplayInd=null,g.select(this).selectAll("g.category").select("rect.catrect").each(function(Q){var oe=g.mouse(this)[0],$=g.mouse(this)[1];-2<=oe&&oe<=Q.width+2&&-2<=$&&$<=Q.height+2&&(V.dragCategoryDisplayInd=Q.model.displayInd,V.initialDragCategoryDisplayInds=V.model.categories.map(function(Z){return Z.displayInd}),Q.model.dragY=Q.y,x.raiseToTop(this.parentNode),g.select(this.parentNode).selectAll("rect.bandrect").each(function(Z){Z.y<$&&$<=Z.y+Z.height&&(V.potentialClickBand=this)}))}),V.parcatsViewModel.dragDimension=V,S.loneUnhover(V.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function O(V){if(V.parcatsViewModel.arrangement!=="fixed"&&(V.dragHasMoved=!0,V.dragDimensionDisplayInd!==null)){var Q=V.dragDimensionDisplayInd,oe=Q-1,$=Q+1,Z=V.parcatsViewModel.dimensions[Q];if(V.dragCategoryDisplayInd!==null){var se=Z.categories[V.dragCategoryDisplayInd];se.model.dragY+=g.event.dy;var ne=se.model.dragY,ce=se.model.displayInd,ge=Z.categories,Te=ge[ce-1],we=ge[ce+1];Te!==void 0&&newe.y+we.height/2&&(se.model.displayInd=we.model.displayInd,we.model.displayInd=ce),V.dragCategoryDisplayInd=se.model.displayInd}if(V.dragCategoryDisplayInd===null||V.parcatsViewModel.arrangement==="freeform"){Z.model.dragX=g.event.x;var Re=V.parcatsViewModel.dimensions[oe],be=V.parcatsViewModel.dimensions[$];Re!==void 0&&Z.model.dragXbe.x&&(Z.model.displayInd=be.model.displayInd,be.model.displayInd=V.dragDimensionDisplayInd),V.dragDimensionDisplayInd=Z.model.displayInd}X(V.parcatsViewModel),J(V.parcatsViewModel),te(V.parcatsViewModel),j(V.parcatsViewModel)}}function H(V){if(V.parcatsViewModel.arrangement!=="fixed"&&V.dragDimensionDisplayInd!==null){g.select(this).selectAll("text").attr("font-weight","normal");var Q={},oe=Y(V.parcatsViewModel),$=V.parcatsViewModel.model.dimensions.map(function(be){return be.displayInd}),Z=V.initialDragDimensionDisplayInds.some(function(be,Ae){return be!==$[Ae]});Z&&$.forEach(function(be,Ae){var me=V.parcatsViewModel.model.dimensions[Ae].containerInd;Q["dimensions["+me+"].displayindex"]=be});var se=!1;if(V.dragCategoryDisplayInd!==null){var ne=V.model.categories.map(function(be){return be.displayInd});if(se=V.initialDragCategoryDisplayInds.some(function(be,Ae){return be!==ne[Ae]}),se){var ce=V.model.categories.slice().sort(function(be,Ae){return be.displayInd-Ae.displayInd}),ge=ce.map(function(be){return be.categoryValue}),Te=ce.map(function(be){return be.categoryLabel});Q["dimensions["+V.model.containerInd+"].categoryarray"]=[ge],Q["dimensions["+V.model.containerInd+"].ticktext"]=[Te],Q["dimensions["+V.model.containerInd+"].categoryorder"]="array"}}if(V.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!V.dragHasMoved&&V.potentialClickBand&&(V.parcatsViewModel.hoveron==="color"?M(V.potentialClickBand,"plotly_click",g.event.sourceEvent):L(V.potentialClickBand,"plotly_click",g.event.sourceEvent)),V.model.dragX=null,V.dragCategoryDisplayInd!==null){var we=V.parcatsViewModel.dimensions[V.dragDimensionDisplayInd].categories[V.dragCategoryDisplayInd];we.model.dragY=null,V.dragCategoryDisplayInd=null}V.dragDimensionDisplayInd=null,V.parcatsViewModel.dragDimension=null,V.dragHasMoved=null,V.potentialClickBand=null,X(V.parcatsViewModel),J(V.parcatsViewModel);var Re=g.transition().duration(300).ease("cubic-in-out");Re.each(function(){te(V.parcatsViewModel,!0),j(V.parcatsViewModel,!0)}).each("end",function(){(Z||se)&&i.restyle(V.parcatsViewModel.graphDiv,Q,[oe])})}}function Y(V){for(var Q,oe=V.graphDiv._fullData,$=0;$=0;ge--)Te+="C"+ne[ge]+","+(Q[ge+1]+$)+" "+se[ge]+","+(Q[ge]+$)+" "+(V[ge]+oe[ge])+","+(Q[ge]+$),Te+="l-"+oe[ge]+",0 ";return Te+="Z",Te}function J(V){var Q=V.dimensions,oe=V.model,$=Q.map(function(nt){return nt.categories.map(function(ze){return ze.y})}),Z=V.model.dimensions.map(function(nt){return nt.categories.map(function(ze){return ze.displayInd})}),se=V.model.dimensions.map(function(nt){return nt.displayInd}),ne=V.dimensions.map(function(nt){return nt.model.dimensionInd}),ce=Q.map(function(nt){return nt.x}),ge=Q.map(function(nt){return nt.width}),Te=[];for(var we in oe.paths)oe.paths.hasOwnProperty(we)&&Te.push(oe.paths[we]);function Re(nt){var ze=nt.categoryInds.map(function(Je,We){return Z[We][Je]}),Xe=ne.map(function(Je){return ze[Je]});return Xe}Te.sort(function(nt,ze){var Xe=Re(nt),Je=Re(ze);return V.sortpaths==="backward"&&(Xe.reverse(),Je.reverse()),Xe.push(nt.valueInds[0]),Je.push(ze.valueInds[0]),V.bundlecolors&&(Xe.unshift(nt.rawColor),Je.unshift(ze.rawColor)),XeJe?1:0});for(var be=new Array(Te.length),Ae=Q[0].model.count,me=Q[0].categories.map(function(nt){return nt.height}).reduce(function(nt,ze){return nt+ze}),Le=0;Le0?Ue=me*(He.count/Ae):Ue=0;for(var ke=new Array($.length),Ve=0;Ve1?ne=(V.width-2*oe-$)/(Z-1):ne=0,ce=oe,ge=ce+ne*se;var Te=[],we=V.model.maxCats,Re=Q.categories.length,be=8,Ae=Q.count,me=V.height-be*(we-1),Le,He,Ue,ke,Ve,Ie=(we-Re)*be/2,rt=Q.categories.map(function(Ke){return{displayInd:Ke.displayInd,categoryInd:Ke.categoryInd}});for(rt.sort(function(Ke,$e){return Ke.displayInd-$e.displayInd}),Ve=0;Ve0?Le=He.count/Ae*me:Le=0,Ue={key:He.valueInds[0],model:He,width:$,height:Le,y:He.dragY!==null?He.dragY:Ie,bands:[],parcatsViewModel:V},Ie=Ie+Le+be,Te.push(Ue);return{key:Q.dimensionInd,x:Q.dragX!==null?Q.dragX:ge,y:0,width:$,model:Q,categories:Te,parcatsViewModel:V,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}},60268:function(G,U,e){var g=e(51036);G.exports=function(i,S,x,v){var p=i._fullLayout,r=p._paper,t=p._size;g(i,r,S,{width:t.w,height:t.h,margin:{t:t.t,r:t.r,b:t.b,l:t.l}},x,v)}},82296:function(G,U,e){var g=e(49084),C=e(94724),i=e(25376),S=e(86968).u,x=e(92880).extendFlat,v=e(31780).templatedArray;G.exports={domain:S({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:v("dimension",{label:{valType:"string",editType:"plot"},tickvals:x({},C.tickvals,{editType:"plot"}),ticktext:x({},C.ticktext,{editType:"plot"}),tickformat:x({},C.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:x({editType:"calc"},g("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(G,U,e){var g=e(30140),C=e(33428),i=e(71688).keyFun,S=e(71688).repeat,x=e(3400).sorterAsc,v=e(3400).strTranslate,p=g.bar.snapRatio;function r(H,Y){return H*(1-p)+Y*p}var t=g.bar.snapClose;function a(H,Y){return H*(1-t)+Y*t}function n(H,Y,j,te){if(f(j,te))return j;var ie=H?-1:1,ue=0,J=Y.length-1;if(ie<0){var X=ue;ue=J,J=X}for(var ee=Y[ue],V=ee,Q=ue;ie*Q=Y[j][0]&&H<=Y[j][1])return!0;return!1}function c(H){H.attr("x",-g.bar.captureWidth/2).attr("width",g.bar.captureWidth)}function l(H){H.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function m(H){if(!H.brush.filterSpecified)return"0,"+H.height;for(var Y=h(H.brush.filter.getConsolidated(),H.height),j=[0],te,ie,ue,J=Y.length?Y[0][0]:null,X=0;XH[1]+j||Y=.9*H[1]+.1*H[0]?"n":Y<=.9*H[0]+.1*H[1]?"s":"ns"}function u(){C.select(document.body).style("cursor",null)}function o(H){H.attr("stroke-dasharray",m)}function d(H,Y){var j=C.select(H).selectAll(".highlight, .highlight-shadow"),te=Y?j.transition().duration(g.bar.snapDuration).each("end",Y):j;o(te)}function w(H,Y){var j=H.brush,te=j.filterSpecified,ie=NaN,ue={},J;if(te){var X=H.height,ee=j.filter.getConsolidated(),V=h(ee,X),Q=NaN,oe=NaN,$=NaN;for(J=0;J<=V.length;J++){var Z=V[J];if(Z&&Z[0]<=Y&&Y<=Z[1]){Q=J;break}else if(oe=J?J-1:NaN,Z&&Z[0]>Y){$=J;break}}if(ie=Q,isNaN(ie)&&(isNaN(oe)||isNaN($)?ie=isNaN(oe)?$:oe:ie=Y-V[oe][1]=Te[0]&&ge<=Te[1]){ue.clickableOrdinalRange=Te;break}}}return ue}function A(H,Y){C.event.sourceEvent.stopPropagation();var j=Y.height-C.mouse(H)[1]-2*g.verticalPadding,te=Y.unitToPaddedPx.invert(j),ie=Y.brush,ue=w(Y,j),J=ue.interval,X=ie.svgBrush;if(X.wasDragged=!1,X.grabbingBar=ue.region==="ns",X.grabbingBar){var ee=J.map(Y.unitToPaddedPx);X.grabPoint=j-ee[0]-g.verticalPadding,X.barLength=ee[1]-ee[0]}X.clickableOrdinalRange=ue.clickableOrdinalRange,X.stayingIntervals=Y.multiselect&&ie.filterSpecified?ie.filter.getConsolidated():[],J&&(X.stayingIntervals=X.stayingIntervals.filter(function(V){return V[0]!==J[0]&&V[1]!==J[1]})),X.startExtent=ue.region?J[ue.region==="s"?1:0]:te,Y.parent.inBrushDrag=!0,X.brushStartCallback()}function _(H,Y){C.event.sourceEvent.stopPropagation();var j=Y.height-C.mouse(H)[1]-2*g.verticalPadding,te=Y.brush.svgBrush;te.wasDragged=!0,te._dragging=!0,te.grabbingBar?te.newExtent=[j-te.grabPoint,j+te.barLength-te.grabPoint].map(Y.unitToPaddedPx.invert):te.newExtent=[te.startExtent,Y.unitToPaddedPx.invert(j)].sort(x),Y.brush.filterSpecified=!0,te.extent=te.stayingIntervals.concat([te.newExtent]),te.brushCallback(Y),d(H.parentNode)}function y(H,Y){var j=Y.brush,te=j.filter,ie=j.svgBrush;ie._dragging||(E(H,Y),_(H,Y),Y.brush.svgBrush.wasDragged=!1),ie._dragging=!1;var ue=C.event;ue.sourceEvent.stopPropagation();var J=ie.grabbingBar;if(ie.grabbingBar=!1,ie.grabLocation=void 0,Y.parent.inBrushDrag=!1,u(),!ie.wasDragged){ie.wasDragged=void 0,ie.clickableOrdinalRange?j.filterSpecified&&Y.multiselect?ie.extent.push(ie.clickableOrdinalRange):(ie.extent=[ie.clickableOrdinalRange],j.filterSpecified=!0):J?(ie.extent=ie.stayingIntervals,ie.extent.length===0&&D(j)):D(j),ie.brushCallback(Y),d(H.parentNode),ie.brushEndCallback(j.filterSpecified?te.getConsolidated():[]);return}var X=function(){te.set(te.getConsolidated())};if(Y.ordinal){var ee=Y.unitTickvals;ee[ee.length-1]ie.newExtent[0];ie.extent=ie.stayingIntervals.concat(V?[ie.newExtent]:[]),ie.extent.length||D(j),ie.brushCallback(Y),V?d(H.parentNode,X):(X(),d(H.parentNode))}else X();ie.brushEndCallback(j.filterSpecified?te.getConsolidated():[])}function E(H,Y){var j=Y.height-C.mouse(H)[1]-2*g.verticalPadding,te=w(Y,j),ie="crosshair";te.clickableOrdinalRange?ie="pointer":te.region&&(ie=te.region+"-resize"),C.select(document.body).style("cursor",ie)}function T(H){H.on("mousemove",function(Y){C.event.preventDefault(),Y.parent.inBrushDrag||E(this,Y)}).on("mouseleave",function(Y){Y.parent.inBrushDrag||u()}).call(C.behavior.drag().on("dragstart",function(Y){A(this,Y)}).on("drag",function(Y){_(this,Y)}).on("dragend",function(Y){y(this,Y)}))}function s(H,Y){return H[0]-Y[0]}function L(H,Y,j){var te=j._context.staticPlot,ie=H.selectAll(".background").data(S);ie.enter().append("rect").classed("background",!0).call(c).call(l).style("pointer-events",te?"none":"auto").attr("transform",v(0,g.verticalPadding)),ie.call(T).attr("height",function(X){return X.height-g.verticalPadding});var ue=H.selectAll(".highlight-shadow").data(S);ue.enter().append("line").classed("highlight-shadow",!0).attr("x",-g.bar.width/2).attr("stroke-width",g.bar.width+g.bar.strokeWidth).attr("stroke",Y).attr("opacity",g.bar.strokeOpacity).attr("stroke-linecap","butt"),ue.attr("y1",function(X){return X.height}).call(o);var J=H.selectAll(".highlight").data(S);J.enter().append("line").classed("highlight",!0).attr("x",-g.bar.width/2).attr("stroke-width",g.bar.width-g.bar.strokeWidth).attr("stroke",g.bar.fillColor).attr("opacity",g.bar.fillOpacity).attr("stroke-linecap","butt"),J.attr("y1",function(X){return X.height}).call(o)}function M(H,Y,j){var te=H.selectAll("."+g.cn.axisBrush).data(S,i);te.enter().append("g").classed(g.cn.axisBrush,!0),L(te,Y,j)}function z(H){return H.svgBrush.extent.map(function(Y){return Y.slice()})}function D(H){H.filterSpecified=!1,H.svgBrush.extent=[[-1/0,1/0]]}function N(H){return function(j){var te=j.brush,ie=z(te),ue=ie.slice();te.filter.set(ue),H()}}function I(H){for(var Y=H.slice(),j=[],te,ie=Y.shift();ie;){for(te=ie.slice();(ie=Y.shift())&&ie[0]<=te[1];)te[1]=Math.max(te[1],ie[1]);j.push(te)}return j.length===1&&j[0][0]>j[0][1]&&(j=[]),j}function k(){var H=[],Y,j;return{set:function(te){H=te.map(function(ie){return ie.slice().sort(x)}).sort(s),H.length===1&&H[0][0]===-1/0&&H[0][1]===1/0&&(H=[[0,-1]]),Y=I(H),j=H.reduce(function(ie,ue){return[Math.min(ie[0],ue[0]),Math.max(ie[1],ue[1])]},[1/0,-1/0])},get:function(){return H.slice()},getConsolidated:function(){return Y},getBounds:function(){return j}}}function B(H,Y,j,te,ie,ue){var J=k();return J.set(j),{filter:J,filterSpecified:Y,svgBrush:{extent:[],brushStartCallback:te,brushCallback:N(ie),brushEndCallback:ue}}}function O(H,Y){if(Array.isArray(H[0])?(H=H.map(function(te){return te.sort(x)}),Y.multiselect?H=I(H.sort(s)):H=[H[0]]):H=[H.sort(x)],Y.tickvals){var j=Y.tickvals.slice().sort(x);if(H=H.map(function(te){var ie=[n(0,j,te[0],[]),n(1,j,te[1],[])];if(ie[1]>ie[0])return ie}).filter(function(te){return te}),!H.length)return}return H.length>1?H:H[0]}G.exports={makeBrush:B,ensureAxisBrush:M,cleanRanges:O}},61664:function(G,U,e){G.exports={attributes:e(82296),supplyDefaults:e(60664),calc:e(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:e(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(G,U,e){var g=e(33428),C=e(84888)._M,i=e(24196),S=e(9616);U.name="parcoords",U.plot=function(x){var v=C(x.calcdata,"parcoords")[0];v.length&&i(x,v)},U.clean=function(x,v,p,r){var t=r._has&&r._has("parcoords"),a=v._has&&v._has("parcoords");t&&!a&&(r._paperdiv.selectAll(".parcoords").remove(),r._glimages.selectAll("*").remove())},U.toSVG=function(x){var v=x._fullLayout._glimages,p=g.select(x).selectAll(".svg-container"),r=p.filter(function(a,n){return n===p.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function t(){var a=this,n=a.toDataURL("image/png"),f=v.append("svg:image");f.attr({xmlns:S.svg,"xlink:href":n,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}r.each(t),window.setTimeout(function(){g.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(G,U,e){var g=e(3400).isArrayOrTypedArray,C=e(8932),i=e(71688).wrap;G.exports=function(v,p){var r,t;return C.hasColorscale(p,"line")&&g(p.line.color)?(r=p.line.color,t=C.extractOpts(p.line).colorscale,C.calc(v,p,{vals:r,containerStr:"line",cLetter:"c"})):(r=S(p._length),t=[[0,p.line.color],[1,p.line.color]]),i({lineColor:r,cscale:t})};function S(x){for(var v=new Array(x),p=0;pt&&(g.log("parcoords traces support up to "+t+" dimensions at the moment"),o.splice(t));var d=x(l,m,{name:"dimensions",layout:b,handleItemDefaults:f}),w=n(l,m,h,b,u);S(m,b,u),(!Array.isArray(d)||!d.length)&&(m.visible=!1),a(m,d,"values",w);var A={family:b.font.family,size:Math.round(b.font.size/1.2),color:b.font.color};g.coerceFont(u,"labelfont",A),g.coerceFont(u,"tickfont",A),g.coerceFont(u,"rangefont",A),u("labelangle"),u("labelside"),u("unselected.line.color"),u("unselected.line.opacity")}},95724:function(G,U,e){var g=e(3400).isTypedArray;U.convertTypedArray=function(C){return g(C)?Array.prototype.slice.call(C):C},U.isOrdinal=function(C){return!!C.tickvals},U.isVisible=function(C){return C.visible||!("visible"in C)}},29928:function(G,U,e){var g=e(61664);g.plot=e(24196),G.exports=g},51352:function(G,U,e){var g=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),C=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),i=e(30140).maxDimensionCount,S=e(3400),x=1e-6,v=2048,p=new Uint8Array(4),r=new Uint8Array(4),t={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function a(y){y.read({x:0,y:0,width:1,height:1,data:p})}function n(y,E,T,s,L){var M=y._gl;M.enable(M.SCISSOR_TEST),M.scissor(E,T,s,L),y.clear({color:[0,0,0,0],depth:1})}function f(y,E,T,s,L,M){var z=M.key;function D(N){var I=Math.min(s,L-N*s);N===0&&(window.cancelAnimationFrame(T.currentRafs[z]),delete T.currentRafs[z],n(y,M.scissorX,M.scissorY,M.scissorWidth,M.viewBoxSize[1])),!T.clearOnly&&(M.count=2*I,M.offset=2*N*s,E(M),N*s+I>>8*E)%256/255}function h(y,E,T){for(var s=new Array(y*(i+4)),L=0,M=0;Mwe&&(we=oe[ne].dim1.canvasX,ge=ne);se===0&&n(L,0,0,I.canvasWidth,I.canvasHeight);var Re=J(T);for(ne=0;nene._length&&(Le=Le.slice(0,ne._length));var He=ne.tickvals,Ue;function ke($e,lt){return{val:$e,text:Ue[lt]}}function Ve($e,lt){return $e.val-lt.val}if(i(He)&&He.length){C.isTypedArray(He)&&(He=Array.from(He)),Ue=ne.ticktext,!i(Ue)||!Ue.length?Ue=He.map(S(ne.tickformat)):Ue.length>He.length?Ue=Ue.slice(0,He.length):He.length>Ue.length&&(He=He.slice(0,Ue.length));for(var Ie=1;Ie=lt||St>=ht)return;var nt=Ke.lineLayer.readPixel(xt,ht-1-St),ze=nt[3]!==0,Xe=ze?nt[2]+256*(nt[1]+256*nt[0]):null,Je={x:xt,y:St,clientX:$e.clientX,clientY:$e.clientY,dataIndex:Ke.model.key,curveNumber:Xe};Xe!==ge&&(ze?X.hover(Je):X.unhover&&X.unhover(Je),ge=Xe)}}),ce.style("opacity",function(Ke){return Ke.pick?0:1}),Q.style("background","rgba(255, 255, 255, 0)");var we=Q.selectAll("."+b.cn.parcoords).data(ne,c);we.exit().remove(),we.enter().append("g").classed(b.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),we.attr("transform",function(Ke){return r(Ke.model.translateX,Ke.model.translateY)});var Re=we.selectAll("."+b.cn.parcoordsControlView).data(l,c);Re.enter().append("g").classed(b.cn.parcoordsControlView,!0),Re.attr("transform",function(Ke){return r(Ke.model.pad.l,Ke.model.pad.t)});var be=Re.selectAll("."+b.cn.yAxis).data(function(Ke){return Ke.dimensions},c);be.enter().append("g").classed(b.cn.yAxis,!0),Re.each(function(Ke){O(be,Ke,$)}),ce.each(function(Ke){if(Ke.viewModel){!Ke.lineLayer||X?Ke.lineLayer=o(this,Ke):Ke.lineLayer.update(Ke),(Ke.key||Ke.key===0)&&(Ke.viewModel[Ke.key]=Ke.lineLayer);var $e=!Ke.context||X;Ke.lineLayer.render(Ke.viewModel.panels,$e)}}),be.attr("transform",function(Ke){return r(Ke.xScale(Ke.xIndex),0)}),be.call(g.behavior.drag().origin(function(Ke){return Ke}).on("drag",function(Ke){var $e=Ke.parent;se.linePickActive(!1),Ke.x=Math.max(-b.overdrag,Math.min(Ke.model.width+b.overdrag,g.event.x)),Ke.canvasX=Ke.x*Ke.model.canvasPixelRatio,be.sort(function(lt,ht){return lt.x-ht.x}).each(function(lt,ht){lt.xIndex=ht,lt.x=Ke===lt?lt.x:lt.xScale(lt.xIndex),lt.canvasX=lt.x*lt.model.canvasPixelRatio}),O(be,$e,$),be.filter(function(lt){return Math.abs(Ke.xIndex-lt.xIndex)!==0}).attr("transform",function(lt){return r(lt.xScale(lt.xIndex),0)}),g.select(this).attr("transform",r(Ke.x,0)),be.each(function(lt,ht,dt){dt===Ke.parent.key&&($e.dimensions[ht]=lt)}),$e.contextLayer&&$e.contextLayer.render($e.panels,!1,!z($e)),$e.focusLayer.render&&$e.focusLayer.render($e.panels)}).on("dragend",function(Ke){var $e=Ke.parent;Ke.x=Ke.xScale(Ke.xIndex),Ke.canvasX=Ke.x*Ke.model.canvasPixelRatio,O(be,$e,$),g.select(this).attr("transform",function(lt){return r(lt.x,0)}),$e.contextLayer&&$e.contextLayer.render($e.panels,!1,!z($e)),$e.focusLayer&&$e.focusLayer.render($e.panels),$e.pickLayer&&$e.pickLayer.render($e.panels,!0),se.linePickActive(!0),X&&X.axesMoved&&X.axesMoved($e.key,$e.dimensions.map(function(lt){return lt.crossfilterDimensionIndex}))})),be.exit().remove();var Ae=be.selectAll("."+b.cn.axisOverlays).data(l,c);Ae.enter().append("g").classed(b.cn.axisOverlays,!0),Ae.selectAll("."+b.cn.axis).remove();var me=Ae.selectAll("."+b.cn.axis).data(l,c);me.enter().append("g").classed(b.cn.axis,!0),me.each(function(Ke){var $e=Ke.model.height/Ke.model.tickDistance,lt=Ke.domainScale,ht=lt.domain();g.select(this).call(g.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks($e,Ke.tickFormat).tickValues(Ke.ordinal?ht:null).tickFormat(function(dt){return h.isOrdinal(Ke)?dt:Y(Ke.model.dimensions[Ke.visibleIndex],dt)}).scale(lt)),a.font(me.selectAll("text"),Ke.model.tickFont)}),me.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),me.selectAll("text").style("text-shadow",t.makeTextShadow(Z)).style("cursor","default");var Le=Ae.selectAll("."+b.cn.axisHeading).data(l,c);Le.enter().append("g").classed(b.cn.axisHeading,!0);var He=Le.selectAll("."+b.cn.axisTitle).data(l,c);He.enter().append("text").classed(b.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",ee?"none":"auto"),He.text(function(Ke){return Ke.label}).each(function(Ke){var $e=g.select(this);a.font($e,Ke.model.labelFont),t.convertToTspans($e,ie)}).attr("transform",function(Ke){var $e=B(Ke.model.labelAngle,Ke.model.labelSide),lt=b.axisTitleOffset;return($e.dir>0?"":r(0,2*lt+Ke.model.height))+p($e.degrees)+r(-lt*$e.dx,-lt*$e.dy)}).attr("text-anchor",function(Ke){var $e=B(Ke.model.labelAngle,Ke.model.labelSide),lt=Math.abs($e.dx),ht=Math.abs($e.dy);return 2*lt>ht?$e.dir*$e.dx<0?"start":"end":"middle"});var Ue=Ae.selectAll("."+b.cn.axisExtent).data(l,c);Ue.enter().append("g").classed(b.cn.axisExtent,!0);var ke=Ue.selectAll("."+b.cn.axisExtentTop).data(l,c);ke.enter().append("g").classed(b.cn.axisExtentTop,!0),ke.attr("transform",r(0,-b.axisExtentOffset));var Ve=ke.selectAll("."+b.cn.axisExtentTopText).data(l,c);Ve.enter().append("text").classed(b.cn.axisExtentTopText,!0).call(I),Ve.text(function(Ke){return j(Ke,!0)}).each(function(Ke){a.font(g.select(this),Ke.model.rangeFont)});var Ie=Ue.selectAll("."+b.cn.axisExtentBottom).data(l,c);Ie.enter().append("g").classed(b.cn.axisExtentBottom,!0),Ie.attr("transform",function(Ke){return r(0,Ke.model.height+b.axisExtentOffset)});var rt=Ie.selectAll("."+b.cn.axisExtentBottomText).data(l,c);rt.enter().append("text").classed(b.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(I),rt.text(function(Ke){return j(Ke,!1)}).each(function(Ke){a.font(g.select(this),Ke.model.rangeFont)}),u.ensureAxisBrush(Ae,Z,ie)}},24196:function(G,U,e){var g=e(36336),C=e(5048),i=e(95724).isVisible,S={};function x(r,t,a){var n=t.indexOf(a),f=r.indexOf(n);return f===-1&&(f+=t.length),f}function v(r,t){return function(n,f){return x(r,t,n)-x(r,t,f)}}var p=G.exports=function(t,a){var n=t._fullLayout,f=C(t,[],S);if(f){var c={},l={},m={},h={},b=n._size;a.forEach(function(A,_){var y=A[0].trace;m[_]=y.index;var E=h[_]=y._fullInput.index;c[_]=t.data[E].dimensions,l[_]=t.data[E].dimensions.slice()});var u=function(A,_,y){var E=l[A][_],T=y.map(function(N){return N.slice()}),s="dimensions["+_+"].constraintrange",L=n._tracePreGUI[t._fullData[m[A]]._fullInput.uid];if(L[s]===void 0){var M=E.constraintrange;L[s]=M||null}var z=t._fullData[m[A]].dimensions[_];T.length?(T.length===1&&(T=T[0]),E.constraintrange=T,z.constraintrange=T.slice(),T=[T]):(delete E.constraintrange,delete z.constraintrange,T=null);var D={};D[s]=T,t.emit("plotly_restyle",[D,[h[A]]])},o=function(A){t.emit("plotly_hover",A)},d=function(A){t.emit("plotly_unhover",A)},w=function(A,_){var y=v(_,l[A].filter(i));c[A].sort(y),l[A].filter(function(E){return!i(E)}).sort(function(E){return l[A].indexOf(E)}).forEach(function(E){c[A].splice(c[A].indexOf(E),1),c[A].splice(l[A].indexOf(E),0,E)}),t.emit("plotly_restyle",[{dimensions:[c[A]]},[h[A]]])};g(t,a,{width:b.w,height:b.h,margin:{t:b.t,r:b.r,b:b.b,l:b.l}},{filterChanged:u,hover:o,unhover:d,axesMoved:w})}};p.reglPrecompiled=S},74996:function(G,U,e){var g=e(45464),C=e(86968).u,i=e(25376),S=e(22548),x=e(21776).Ks,v=e(21776).Gw,p=e(92880).extendFlat,r=e(98192).c,t=i({editType:"plot",arrayOk:!0,colorEditType:"plot"});G.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:S.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:r,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:p({},g.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:x({},{keys:["label","color","value","percent","text"]}),texttemplate:v({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:p({},t,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:p({},t,{}),outsidetextfont:p({},t,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:p({},t,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:C({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:p({},t,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},80036:function(G,U,e){var g=e(7316);U.name="pie",U.plot=function(C,i,S,x){g.plotBasePlot(U.name,C,i,S,x)},U.clean=function(C,i,S,x){g.cleanBasePlot(U.name,C,i,S,x)}},45768:function(G,U,e){var g=e(38248),C=e(49760),i=e(76308),S={};function x(t,a){var n=[],f=t._fullLayout,c=f.hiddenlabels||[],l=a.labels,m=a.marker.colors||[],h=a.values,b=a._length,u=a._hasValues&&b,o,d;if(a.dlabel)for(l=new Array(b),o=0;o=0});var M=a.type==="funnelarea"?y:a.sort;return M&&n.sort(function(z,D){return D.v-z.v}),n[0]&&(n[0].vTotal=_),n}function v(t){return function(n,f){return!n||(n=C(n),!n.isValid())?!1:(n=i.addOpacity(n,n.getAlpha()),t[f]||(t[f]=n),n)}}function p(t,a){var n=(a||{}).type;n||(n="pie");var f=t._fullLayout,c=t.calcdata,l=f[n+"colorway"],m=f["_"+n+"colormap"];f["extend"+n+"colors"]&&(l=r(l,S));for(var h=0,b=0;b0){m=!0;break}}m||(l=0)}return{hasLabels:f,hasValues:c,len:l}}function r(a,n,f,c,l){var m=c("marker.line.width");m&&c("marker.line.color",l?void 0:f.paper_bgcolor);var h=c("marker.colors");v(c,"marker.pattern",h),a.marker&&!n.marker.pattern.fgcolor&&(n.marker.pattern.fgcolor=a.marker.colors),n.marker.pattern.bgcolor||(n.marker.pattern.bgcolor=f.paper_bgcolor)}function t(a,n,f,c){function l(L,M){return C.coerce(a,n,i,L,M)}var m=l("labels"),h=l("values"),b=p(m,h),u=b.len;if(n._hasLabels=b.hasLabels,n._hasValues=b.hasValues,!n._hasLabels&&n._hasValues&&(l("label0"),l("dlabel")),!u){n.visible=!1;return}n._length=u,r(a,n,c,l,!0),l("scalegroup");var o=l("text"),d=l("texttemplate"),w;if(d||(w=l("textinfo",C.isArrayOrTypedArray(o)?"text+percent":"percent")),l("hovertext"),l("hovertemplate"),d||w&&w!=="none"){var A=l("textposition");x(a,n,c,l,A,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var _=Array.isArray(A)||A==="auto",y=_||A==="outside";y&&l("automargin"),(A==="inside"||A==="auto"||Array.isArray(A))&&l("insidetextorientation")}else w==="none"&&l("textposition","none");S(n,c,l);var E=l("hole"),T=l("title.text");if(T){var s=l("title.position",E?"middle center":"top center");!E&&s==="middle center"&&(n.title.position="top center"),C.coerceFont(l,"title.font",c.font)}l("sort"),l("direction"),l("rotation"),l("pull")}G.exports={handleLabelsAndValues:p,handleMarkerDefaults:r,supplyDefaults:t}},53644:function(G,U,e){var g=e(10624).appendArrayMultiPointValues;G.exports=function(i,S){var x={curveNumber:S.index,pointNumbers:i.pts,data:S._input,fullData:S,label:i.label,color:i.color,value:i.v,percent:i.percent,text:i.text,bbox:i.bbox,v:i.v};return i.pts.length===1&&(x.pointNumber=x.i=i.pts[0]),g(x,S,i.pts),S.type==="funnelarea"&&(delete x.v,delete x.i),x}},21552:function(G,U,e){var g=e(43616),C=e(76308);G.exports=function(S,x,v,p){var r=v.marker.pattern;r&&r.shape?g.pointStyle(S,v,p,x):C.fill(S,x.color)}},69656:function(G,U,e){var g=e(3400);function C(i){return i.indexOf("e")!==-1?i.replace(/[.]?0+e/,"e"):i.indexOf(".")!==-1?i.replace(/[.]?0+$/,""):i}U.formatPiePercent=function(S,x){var v=C((S*100).toPrecision(3));return g.numSeparate(v,x)+"%"},U.formatPieValue=function(S,x){var v=C(S.toPrecision(10));return g.numSeparate(v,x)},U.getFirstFilled=function(S,x){if(g.isArrayOrTypedArray(S))for(var v=0;v0&&(Ie+=lt*ke.pxmid[0],rt+=lt*ke.pxmid[1])}ke.cxFinal=Ie,ke.cyFinal=rt;function ht(Je,We,Fe,xe){var ye=xe*(We[0]-Je[0]),Ee=xe*(We[1]-Je[1]);return"a"+xe*ne.r+","+xe*ne.r+" 0 "+ke.largeArc+(Fe?" 1 ":" 0 ")+ye+","+Ee}var dt=ce.hole;if(ke.v===ne.vTotal){var xt="M"+(Ie+ke.px0[0])+","+(rt+ke.px0[1])+ht(ke.px0,ke.pxmid,!0,1)+ht(ke.pxmid,ke.px0,!0,1)+"Z";dt?$e.attr("d","M"+(Ie+dt*ke.px0[0])+","+(rt+dt*ke.px0[1])+ht(ke.px0,ke.pxmid,!1,dt)+ht(ke.pxmid,ke.px0,!1,dt)+"Z"+xt):$e.attr("d",xt)}else{var St=ht(ke.px0,ke.px1,!0,1);if(dt){var nt=1-dt;$e.attr("d","M"+(Ie+dt*ke.px1[0])+","+(rt+dt*ke.px1[1])+ht(ke.px1,ke.px0,!1,dt)+"l"+nt*ke.px0[0]+","+nt*ke.px0[1]+St+"Z")}else $e.attr("d","M"+Ie+","+rt+"l"+ke.px0[0]+","+ke.px0[1]+St+"Z")}ue(X,ke,ne);var ze=l.castOption(ce.textposition,ke.pts),Xe=Ke.selectAll("g.slicetext").data(ke.text&&ze!=="none"?[0]:[]);Xe.enter().append("g").classed("slicetext",!0),Xe.exit().remove(),Xe.each(function(){var Je=v.ensureSingle(g.select(this),"text","",function(je){je.attr("data-notex",1)}),We=v.ensureUniformFontSize(X,ze==="outside"?d(ce,ke,Q.font):w(ce,ke,Q.font));Je.text(ke.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(x.font,We).call(t.convertToTspans,X);var Fe=x.bBox(Je.node()),xe;if(ze==="outside")xe=D(Fe,ke);else if(xe=_(Fe,ke,ne),ze==="auto"&&xe.scale<1){var ye=v.ensureUniformFontSize(X,ce.outsidetextfont);Je.call(x.font,ye),Fe=x.bBox(Je.node()),xe=D(Fe,ke)}var Ee=xe.textPosAngle,Me=Ee===void 0?ke.pxmid:ie(ne.r,Ee);if(xe.targetX=Ie+Me[0]*xe.rCenter+(xe.x||0),xe.targetY=rt+Me[1]*xe.rCenter+(xe.y||0),J(xe,Fe),xe.outside){var Ne=xe.targetY;ke.yLabelMin=Ne-Fe.height/2,ke.yLabelMid=Ne,ke.yLabelMax=Ne+Fe.height/2,ke.labelExtraX=0,ke.labelExtraY=0,we=!0}xe.fontSize=We.size,n(ce.type,xe,Q),Z[Ve].transform=xe,v.setTransormAndDisplay(Je,xe)})});var Re=g.select(this).selectAll("g.titletext").data(ce.title.text?[0]:[]);if(Re.enter().append("g").classed("titletext",!0),Re.exit().remove(),Re.each(function(){var ke=v.ensureSingle(g.select(this),"text","",function(rt){rt.attr("data-notex",1)}),Ve=ce.title.text;ce._meta&&(Ve=v.templateString(Ve,ce._meta)),ke.text(Ve).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(x.font,ce.title.font).call(t.convertToTspans,X);var Ie;ce.title.position==="middle center"?Ie=N(ne):Ie=I(ne,oe),ke.attr("transform",r(Ie.x,Ie.y)+p(Math.min(1,Ie.scale))+r(Ie.tx,Ie.ty))}),we&&H(Te,ce),u(ge,ce),we&&ce.automargin){var be=x.bBox(se.node()),Ae=ce.domain,me=oe.w*(Ae.x[1]-Ae.x[0]),Le=oe.h*(Ae.y[1]-Ae.y[0]),He=(.5*me-ne.r)/oe.w,Ue=(.5*Le-ne.r)/oe.h;C.autoMargin(X,"pie."+ce.uid+".automargin",{xl:Ae.x[0]-He,xr:Ae.x[1]+He,yb:Ae.y[0]-Ue,yt:Ae.y[1]+Ue,l:Math.max(ne.cx-ne.r-be.left,0),r:Math.max(be.right-(ne.cx+ne.r),0),b:Math.max(be.bottom-(ne.cy+ne.r),0),t:Math.max(ne.cy-ne.r-be.top,0),pad:5})}})});setTimeout(function(){$.selectAll("tspan").each(function(){var Z=g.select(this);Z.attr("dy")&&Z.attr("dy",Z.attr("dy"))})},0)}function u(X,ee){X.each(function(V){var Q=g.select(this);if(!V.labelExtraX&&!V.labelExtraY){Q.select("path.textline").remove();return}var oe=Q.select("g.slicetext text");V.transform.targetX+=V.labelExtraX,V.transform.targetY+=V.labelExtraY,v.setTransormAndDisplay(oe,V.transform);var $=V.cxFinal+V.pxmid[0],Z=V.cyFinal+V.pxmid[1],se="M"+$+","+Z,ne=(V.yLabelMax-V.yLabelMin)*(V.pxmid[0]<0?-1:1)/4;if(V.labelExtraX){var ce=V.labelExtraX*V.pxmid[1]/V.pxmid[0],ge=V.yLabelMid+V.labelExtraY-(V.cyFinal+V.pxmid[1]);Math.abs(ce)>Math.abs(ge)?se+="l"+ge*V.pxmid[0]/V.pxmid[1]+","+ge+"H"+($+V.labelExtraX+ne):se+="l"+V.labelExtraX+","+ce+"v"+(ge-ce)+"h"+ne}else se+="V"+(V.yLabelMid+V.labelExtraY)+"h"+ne;v.ensureSingle(Q,"path","textline").call(S.stroke,ee.outsidetextfont.color).attr({"stroke-width":Math.min(2,ee.outsidetextfont.size/8),d:se,fill:"none"})})}function o(X,ee,V){var Q=V[0],oe=Q.cx,$=Q.cy,Z=Q.trace,se=Z.type==="funnelarea";"_hasHoverLabel"in Z||(Z._hasHoverLabel=!1),"_hasHoverEvent"in Z||(Z._hasHoverEvent=!1),X.on("mouseover",function(ne){var ce=ee._fullLayout,ge=ee._fullData[Z.index];if(!(ee._dragging||ce.hovermode===!1)){var Te=ge.hoverinfo;if(Array.isArray(Te)&&(Te=i.castHoverinfo({hoverinfo:[l.castOption(Te,ne.pts)],_module:Z._module},ce,0)),Te==="all"&&(Te="label+text+value+percent+name"),ge.hovertemplate||Te!=="none"&&Te!=="skip"&&Te){var we=ne.rInscribed||0,Re=oe+ne.pxmid[0]*(1-we),be=$+ne.pxmid[1]*(1-we),Ae=ce.separators,me=[];if(Te&&Te.indexOf("label")!==-1&&me.push(ne.label),ne.text=l.castOption(ge.hovertext||ge.text,ne.pts),Te&&Te.indexOf("text")!==-1){var Le=ne.text;v.isValidTextValue(Le)&&me.push(Le)}ne.value=ne.v,ne.valueLabel=l.formatPieValue(ne.v,Ae),Te&&Te.indexOf("value")!==-1&&me.push(ne.valueLabel),ne.percent=ne.v/Q.vTotal,ne.percentLabel=l.formatPiePercent(ne.percent,Ae),Te&&Te.indexOf("percent")!==-1&&me.push(ne.percentLabel);var He=ge.hoverlabel,Ue=He.font,ke=[];i.loneHover({trace:Z,x0:Re-we*Q.r,x1:Re+we*Q.r,y:be,_x0:se?oe+ne.TL[0]:Re-we*Q.r,_x1:se?oe+ne.TR[0]:Re+we*Q.r,_y0:se?$+ne.TL[1]:be-we*Q.r,_y1:se?$+ne.BL[1]:be+we*Q.r,text:me.join("
    "),name:ge.hovertemplate||Te.indexOf("name")!==-1?ge.name:void 0,idealAlign:ne.pxmid[0]<0?"left":"right",color:l.castOption(He.bgcolor,ne.pts)||ne.color,borderColor:l.castOption(He.bordercolor,ne.pts),fontFamily:l.castOption(Ue.family,ne.pts),fontSize:l.castOption(Ue.size,ne.pts),fontColor:l.castOption(Ue.color,ne.pts),nameLength:l.castOption(He.namelength,ne.pts),textAlign:l.castOption(He.align,ne.pts),hovertemplate:l.castOption(ge.hovertemplate,ne.pts),hovertemplateLabels:ne,eventData:[m(ne,ge)]},{container:ce._hoverlayer.node(),outerContainer:ce._paper.node(),gd:ee,inOut_bbox:ke}),ne.bbox=ke[0],Z._hasHoverLabel=!0}Z._hasHoverEvent=!0,ee.emit("plotly_hover",{points:[m(ne,ge)],event:g.event})}}),X.on("mouseout",function(ne){var ce=ee._fullLayout,ge=ee._fullData[Z.index],Te=g.select(this).datum();Z._hasHoverEvent&&(ne.originalEvent=g.event,ee.emit("plotly_unhover",{points:[m(Te,ge)],event:g.event}),Z._hasHoverEvent=!1),Z._hasHoverLabel&&(i.loneUnhover(ce._hoverlayer.node()),Z._hasHoverLabel=!1)}),X.on("click",function(ne){var ce=ee._fullLayout,ge=ee._fullData[Z.index];ee._dragging||ce.hovermode===!1||(ee._hoverdata=[m(ne,ge)],i.click(ee,g.event))})}function d(X,ee,V){var Q=l.castOption(X.outsidetextfont.color,ee.pts)||l.castOption(X.textfont.color,ee.pts)||V.color,oe=l.castOption(X.outsidetextfont.family,ee.pts)||l.castOption(X.textfont.family,ee.pts)||V.family,$=l.castOption(X.outsidetextfont.size,ee.pts)||l.castOption(X.textfont.size,ee.pts)||V.size;return{color:Q,family:oe,size:$}}function w(X,ee,V){var Q=l.castOption(X.insidetextfont.color,ee.pts);!Q&&X._input.textfont&&(Q=l.castOption(X._input.textfont.color,ee.pts));var oe=l.castOption(X.insidetextfont.family,ee.pts)||l.castOption(X.textfont.family,ee.pts)||V.family,$=l.castOption(X.insidetextfont.size,ee.pts)||l.castOption(X.textfont.size,ee.pts)||V.size;return{color:Q||S.contrast(ee.color),family:oe,size:$}}function A(X,ee){for(var V,Q,oe=0;oe=-4;He-=2)Le(Math.PI*He,"tan");for(He=4;He>=-4;He-=2)Le(Math.PI*(He+1),"tan")}if(Te||Re){for(He=4;He>=-4;He-=2)Le(Math.PI*(He+1.5),"rad");for(He=4;He>=-4;He-=2)Le(Math.PI*(He+.5),"rad")}}if(se||be||Te){var Ue=Math.sqrt(X.width*X.width+X.height*X.height);if(me={scale:oe*Q*2/Ue,rCenter:1-oe,rotate:0},me.textPosAngle=(ee.startangle+ee.stopangle)/2,me.scale>=1)return me;Ae.push(me)}(be||Re)&&(me=E(X,Q,Z,ne,ce),me.textPosAngle=(ee.startangle+ee.stopangle)/2,Ae.push(me)),(be||we)&&(me=T(X,Q,Z,ne,ce),me.textPosAngle=(ee.startangle+ee.stopangle)/2,Ae.push(me));for(var ke=0,Ve=0,Ie=0;Ie=1)break}return Ae[ke]}function y(X,ee){var V=X.startangle,Q=X.stopangle;return V>ee&&ee>Q||V0?1:-1)/2,y:$/(1+V*V/(Q*Q)),outside:!0}}function N(X){var ee=Math.sqrt(X.titleBox.width*X.titleBox.width+X.titleBox.height*X.titleBox.height);return{x:X.cx,y:X.cy,scale:X.trace.hole*X.r*2/ee,tx:0,ty:-X.titleBox.height/2+X.trace.title.font.size}}function I(X,ee){var V=1,Q=1,oe,$=X.trace,Z={x:X.cx,y:X.cy},se={tx:0,ty:0};se.ty+=$.title.font.size,oe=O($),$.title.position.indexOf("top")!==-1?(Z.y-=(1+oe)*X.r,se.ty-=X.titleBox.height):$.title.position.indexOf("bottom")!==-1&&(Z.y+=(1+oe)*X.r);var ne=k(X.r,X.trace.aspectratio),ce=ee.w*($.domain.x[1]-$.domain.x[0])/2;return $.title.position.indexOf("left")!==-1?(ce=ce+ne,Z.x-=(1+oe)*ne,se.tx+=X.titleBox.width/2):$.title.position.indexOf("center")!==-1?ce*=2:$.title.position.indexOf("right")!==-1&&(ce=ce+ne,Z.x+=(1+oe)*ne,se.tx-=X.titleBox.width/2),V=ce/X.titleBox.width,Q=B(X,ee)/X.titleBox.height,{x:Z.x,y:Z.y,scale:Math.min(V,Q),tx:se.tx,ty:se.ty}}function k(X,ee){return X/(ee===void 0?1:ee)}function B(X,ee){var V=X.trace,Q=ee.h*(V.domain.y[1]-V.domain.y[0]);return Math.min(X.titleBox.height,Q/2)}function O(X){var ee=X.pull;if(!ee)return 0;var V;if(v.isArrayOrTypedArray(ee))for(ee=0,V=0;Vee&&(ee=X.pull[V]);return ee}function H(X,ee){var V,Q,oe,$,Z,se,ne,ce,ge,Te,we,Re,be;function Ae(Ue,ke){return Ue.pxmid[1]-ke.pxmid[1]}function me(Ue,ke){return ke.pxmid[1]-Ue.pxmid[1]}function Le(Ue,ke){ke||(ke={});var Ve=ke.labelExtraY+(Q?ke.yLabelMax:ke.yLabelMin),Ie=Q?Ue.yLabelMin:Ue.yLabelMax,rt=Q?Ue.yLabelMax:Ue.yLabelMin,Ke=Ue.cyFinal+Z(Ue.px0[1],Ue.px1[1]),$e=Ve-Ie,lt,ht,dt,xt,St,nt;if($e*ne>0&&(Ue.labelExtraY=$e),!!v.isArrayOrTypedArray(ee.pull))for(ht=0;ht=(l.castOption(ee.pull,dt.pts)||0))&&((Ue.pxmid[1]-dt.pxmid[1])*ne>0?(xt=dt.cyFinal+Z(dt.px0[1],dt.px1[1]),$e=xt-Ie-Ue.labelExtraY,$e*ne>0&&(Ue.labelExtraY+=$e)):(rt+Ue.labelExtraY-Ke)*ne>0&&(lt=3*se*Math.abs(ht-Te.indexOf(Ue)),St=dt.cxFinal+$(dt.px0[0],dt.px1[0]),nt=St+lt-(Ue.cxFinal+Ue.pxmid[0])-Ue.labelExtraX,nt*se>0&&(Ue.labelExtraX+=nt)))}for(Q=0;Q<2;Q++)for(oe=Q?Ae:me,Z=Q?Math.max:Math.min,ne=Q?1:-1,V=0;V<2;V++){for($=V?Math.max:Math.min,se=V?1:-1,ce=X[Q][V],ce.sort(oe),ge=X[1-Q][V],Te=ge.concat(ce),Re=[],we=0;we1?(ce=V.r,ge=ce/oe.aspectratio):(ge=V.r,ce=ge*oe.aspectratio),ce*=(1+oe.baseratio)/2,ne=ce*ge}Z=Math.min(Z,ne/V.vTotal)}for(Q=0;Qee.vTotal/2?1:0,ce.halfangle=Math.PI*Math.min(ce.v/ee.vTotal,.5),ce.ring=1-Q.hole,ce.rInscribed=z(ce,ee))}function ie(X,ee){return[X*Math.sin(ee),-X*Math.cos(ee)]}function ue(X,ee,V){var Q=X._fullLayout,oe=V.trace,$=oe.texttemplate,Z=oe.textinfo;if(!$&&Z&&Z!=="none"){var se=Z.split("+"),ne=function(ke){return se.indexOf(ke)!==-1},ce=ne("label"),ge=ne("text"),Te=ne("value"),we=ne("percent"),Re=Q.separators,be;if(be=ce?[ee.label]:[],ge){var Ae=l.getFirstFilled(oe.text,ee.pts);h(Ae)&&be.push(Ae)}Te&&be.push(l.formatPieValue(ee.v,Re)),we&&be.push(l.formatPiePercent(ee.v/V.vTotal,Re)),ee.text=be.join("
    ")}function me(ke){return{label:ke.label,value:ke.v,valueLabel:l.formatPieValue(ke.v,Q.separators),percent:ke.v/V.vTotal,percentLabel:l.formatPiePercent(ke.v/V.vTotal,Q.separators),color:ke.color,text:ke.text,customdata:v.castOption(oe,ke.i,"customdata")}}if($){var Le=v.castOption(oe,ee.i,"texttemplate");if(!Le)ee.text="";else{var He=me(ee),Ue=l.getFirstFilled(oe.text,ee.pts);(h(Ue)||Ue==="")&&(He.text=Ue),ee.text=v.texttemplateString(Le,He,X._fullLayout._d3locale,He,oe._meta||{})}}}function J(X,ee){var V=X.rotate*Math.PI/180,Q=Math.cos(V),oe=Math.sin(V),$=(ee.left+ee.right)/2,Z=(ee.top+ee.bottom)/2;X.textX=$*Q-Z*oe,X.textY=$*oe+Z*Q,X.noCenter=!0}G.exports={plot:b,formatSliceLabel:ue,transformInsideText:_,determineInsideTextFont:w,positionTitleOutside:I,prerenderTitles:A,layoutAreas:Y,attachFxHandlers:o,computeTransform:J}},22152:function(G,U,e){var g=e(33428),C=e(10528),i=e(82744).resizeText;G.exports=function(x){var v=x._fullLayout._pielayer.selectAll(".trace");i(x,v,"pie"),v.each(function(p){var r=p[0],t=r.trace,a=g.select(this);a.style({opacity:t.opacity}),a.selectAll("path.surface").each(function(n){g.select(this).call(C,n,t,x)})})}},10528:function(G,U,e){var g=e(76308),C=e(69656).castOption,i=e(21552);G.exports=function(x,v,p,r){var t=p.marker.line,a=C(t.color,v.pts)||g.defaultLine,n=C(t.width,v.pts)||0;x.call(i,v,p,r).style("stroke-width",n).call(g.stroke,a)}},35484:function(G,U,e){var g=e(52904);G.exports={x:g.x,y:g.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:g.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},11072:function(G,U,e){var g=e(67792).gl_pointcloud2d,C=e(3400).isArrayOrTypedArray,i=e(43080),S=e(19280).findExtremes,x=e(44928);function v(t,a){this.scene=t,this.uid=a,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=g(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var p=v.prototype;p.handlePick=function(t){var a=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[a*2],this.pickXYData[a*2+1]]:[this.pickXData[a],this.pickYData[a]],textLabel:C(this.textLabels)?this.textLabels[a]:this.textLabels,color:this.color,name:this.name,pointIndex:a,hoverinfo:this.hoverinfo}},p.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=x(t,{})},p.updateFast=function(t){var a=this.xData=this.pickXData=t.x,n=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,c=t.xbounds&&t.ybounds,l=t.indices,m,h,b,u=this.bounds,o,d,w;if(f){if(b=f,m=f.length>>>1,c)u[0]=t.xbounds[0],u[2]=t.xbounds[1],u[1]=t.ybounds[0],u[3]=t.ybounds[1];else for(w=0;wu[2]&&(u[2]=o),du[3]&&(u[3]=d);if(l)h=l;else for(h=new Int32Array(m),w=0;wu[2]&&(u[2]=o),du[3]&&(u[3]=d);this.idToIndex=h,this.pointcloudOptions.idToIndex=h,this.pointcloudOptions.positions=b;var A=i(t.marker.color),_=i(t.marker.border.color),y=t.opacity*t.marker.opacity;A[3]*=y,this.pointcloudOptions.color=A;var E=t.marker.blend;if(E===null){var T=100;E=a.length_&&(_=n.source[o]),n.target[o]>_&&(_=n.target[o]);var y=_+1;t.node._count=y;var E,T=t.node.groups,s={};for(o=0;o0&&x(I,y)&&x(k,y)&&!(s.hasOwnProperty(I)&&s.hasOwnProperty(k)&&s[I]===s[k])){s.hasOwnProperty(k)&&(k=s[k]),s.hasOwnProperty(I)&&(I=s[I]),I=+I,k=+k,h[I]=h[k]=!0;var B="";n.label&&n.label[o]&&(B=n.label[o]);var O=null;B&&b.hasOwnProperty(B)&&(O=b[B]),f.push({pointNumber:o,label:B,color:c?n.color[o]:n.color,hovercolor:l?n.hovercolor[o]:n.hovercolor,customdata:m?n.customdata[o]:n.customdata,concentrationscale:O,source:I,target:k,value:+N}),D.source.push(I),D.target.push(k)}}var H=y+T.length,Y=S(a.color),j=S(a.customdata),te=[];for(o=0;oy-1,childrenNodes:[],pointNumber:o,label:ie,color:Y?a.color[o]:a.color,customdata:j?a.customdata[o]:a.customdata})}var ue=!1;return r(H,D.source,D.target)&&(ue=!0),{circular:ue,links:f,nodes:te,groups:T,groupLookup:s}}function r(t,a,n){for(var f=C.init2dArray(t,0),c=0;c1})}G.exports=function(a,n){var f=p(n);return i({circular:f.circular,_nodes:f.nodes,_links:f.links,_groups:f.groups,_groupLookup:f.groupLookup})}},11820:function(G){G.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},47140:function(G,U,e){var g=e(3400),C=e(41440),i=e(76308),S=e(49760),x=e(86968).Q,v=e(16132),p=e(31780),r=e(51272);G.exports=function(n,f,c,l){function m(z,D){return g.coerce(n,f,C,z,D)}var h=g.extendDeep(l.hoverlabel,n.hoverlabel),b=n.node,u=p.newContainer(f,"node");function o(z,D){return g.coerce(b,u,C.node,z,D)}o("label"),o("groups"),o("x"),o("y"),o("pad"),o("thickness"),o("line.color"),o("line.width"),o("hoverinfo",n.hoverinfo),v(b,u,o,h),o("hovertemplate"),o("align");var d=l.colorway,w=function(z){return d[z%d.length]};o("color",u.label.map(function(z,D){return i.addOpacity(w(D),.8)})),o("customdata");var A=n.link||{},_=p.newContainer(f,"link");function y(z,D){return g.coerce(A,_,C.link,z,D)}y("label"),y("arrowlen"),y("source"),y("target"),y("value"),y("line.color"),y("line.width"),y("hoverinfo",n.hoverinfo),v(A,_,y,h),y("hovertemplate");var E=S(l.paper_bgcolor).getLuminance()<.333,T=E?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",s=y("color",T);function L(z){var D=S(z);if(!D.isValid())return z;var N=D.getAlpha();return N<=.8?D.setAlpha(N+.2):D=E?D.brighten():D.darken(),D.toRgbString()}y("hovercolor",Array.isArray(s)?s.map(L):L(s)),y("customdata"),r(A,_,{name:"colorscales",handleItemDefaults:t}),x(f,l,m),m("orientation"),m("valueformat"),m("valuesuffix");var M;u.x.length&&u.y.length&&(M="freeform"),m("arrangement",M),g.coerceFont(m,"textfont",g.extendFlat({},l.font)),f._length=null};function t(a,n){function f(c,l){return g.coerce(a,n,C.link.colorscales,c,l)}f("label"),f("cmin"),f("cmax"),f("colorscale")}},45499:function(G,U,e){G.exports={attributes:e(41440),supplyDefaults:e(47140),calc:e(48068),plot:e(59596),moduleType:"trace",name:"sankey",basePlotModule:e(10760),selectPoints:e(81128),categories:["noOpacity"],meta:{}}},59596:function(G,U,e){var g=e(33428),C=e(3400),i=C.numberFormat,S=e(83248),x=e(93024),v=e(76308),p=e(11820).cn,r=C._;function t(d){return d!==""}function a(d,w){return d.filter(function(A){return A.key===w.traceId})}function n(d,w){g.select(d).select("path").style("fill-opacity",w),g.select(d).select("rect").style("fill-opacity",w)}function f(d){g.select(d).select("text.name").style("fill","black")}function c(d){return function(w){return d.node.sourceLinks.indexOf(w.link)!==-1||d.node.targetLinks.indexOf(w.link)!==-1}}function l(d){return function(w){return w.node.sourceLinks.indexOf(d.link)!==-1||w.node.targetLinks.indexOf(d.link)!==-1}}function m(d,w,A){w&&A&&a(A,w).selectAll("."+p.sankeyLink).filter(c(w)).call(b.bind(0,w,A,!1))}function h(d,w,A){w&&A&&a(A,w).selectAll("."+p.sankeyLink).filter(c(w)).call(u.bind(0,w,A,!1))}function b(d,w,A,_){_.style("fill",function(y){if(!y.link.concentrationscale)return y.tinyColorHoverHue}).style("fill-opacity",function(y){if(!y.link.concentrationscale)return y.tinyColorHoverAlpha}),_.each(function(y){var E=y.link.label;E!==""&&a(w,d).selectAll("."+p.sankeyLink).filter(function(T){return T.link.label===E}).style("fill",function(T){if(!T.link.concentrationscale)return T.tinyColorHoverHue}).style("fill-opacity",function(T){if(!T.link.concentrationscale)return T.tinyColorHoverAlpha})}),A&&a(w,d).selectAll("."+p.sankeyNode).filter(l(d)).call(m)}function u(d,w,A,_){_.style("fill",function(y){return y.tinyColorHue}).style("fill-opacity",function(y){return y.tinyColorAlpha}),_.each(function(y){var E=y.link.label;E!==""&&a(w,d).selectAll("."+p.sankeyLink).filter(function(T){return T.link.label===E}).style("fill",function(T){return T.tinyColorHue}).style("fill-opacity",function(T){return T.tinyColorAlpha})}),A&&a(w,d).selectAll(p.sankeyNode).filter(l(d)).call(h)}function o(d,w){var A=d.hoverlabel||{},_=C.nestedProperty(A,w).get();return Array.isArray(_)?!1:_}G.exports=function(w,A){for(var _=w._fullLayout,y=_._paper,E=_._size,T=0;T"),color:o(J,"bgcolor")||v.addOpacity(oe.color,1),borderColor:o(J,"bordercolor"),fontFamily:o(J,"font.family"),fontSize:o(J,"font.size"),fontColor:o(J,"font.color"),nameLength:o(J,"namelength"),textAlign:o(J,"align"),idealAlign:g.event.x<$[0]?"right":"left",hovertemplate:J.hovertemplate,hovertemplateLabels:Z,eventData:[oe]})}}var se=x.loneHover(X,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:w,anchorIndex:V});se.each(function(){var ne=this;ue.link.concentrationscale||n(ne,.65),f(ne)})},O=function(ie,ue,J){w._fullLayout.hovermode!==!1&&(g.select(ie).call(u.bind(0,ue,J,!0)),ue.link.trace.link.hoverinfo!=="skip"&&(ue.link.fullData=ue.link.trace,w.emit("plotly_unhover",{event:g.event,points:[ue.link]})),x.loneUnhover(_._hoverlayer.node()))},H=function(ie,ue,J){var X=ue.node;X.originalEvent=g.event,w._hoverdata=[X],g.select(ie).call(h,ue,J),x.click(w,{target:!0})},Y=function(ie,ue,J){w._fullLayout.hovermode!==!1&&(g.select(ie).call(m,ue,J),ue.node.trace.node.hoverinfo!=="skip"&&(ue.node.fullData=ue.node.trace,w.emit("plotly_hover",{event:g.event,points:[ue.node]})))},j=function(ie,ue){if(w._fullLayout.hovermode!==!1){var J=ue.node.trace.node;if(!(J.hoverinfo==="none"||J.hoverinfo==="skip")){var X=g.select(ie).select("."+p.nodeRect),ee=w._fullLayout._paperdiv.node().getBoundingClientRect(),V=X.node().getBoundingClientRect(),Q=V.left-2-ee.left,oe=V.right+2-ee.left,$=V.top+V.height/4-ee.top,Z={valueLabel:i(ue.valueFormat)(ue.node.value)+ue.valueSuffix};ue.node.fullData=ue.node.trace,w._fullLayout._calcInverseTransform(w);var se=w._fullLayout._invScaleX,ne=w._fullLayout._invScaleY,ce=x.loneHover({x0:se*Q,x1:se*oe,y:ne*$,name:i(ue.valueFormat)(ue.node.value)+ue.valueSuffix,text:[ue.node.label,I+ue.node.targetLinks.length,k+ue.node.sourceLinks.length].filter(t).join("
    "),color:o(J,"bgcolor")||ue.tinyColorHue,borderColor:o(J,"bordercolor"),fontFamily:o(J,"font.family"),fontSize:o(J,"font.size"),fontColor:o(J,"font.color"),nameLength:o(J,"namelength"),textAlign:o(J,"align"),idealAlign:"left",hovertemplate:J.hovertemplate,hovertemplateLabels:Z,eventData:[ue.node]},{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:w});n(ce,.85),f(ce)}}},te=function(ie,ue,J){w._fullLayout.hovermode!==!1&&(g.select(ie).call(h,ue,J),ue.node.trace.node.hoverinfo!=="skip"&&(ue.node.fullData=ue.node.trace,w.emit("plotly_unhover",{event:g.event,points:[ue.node]})),x.loneUnhover(_._hoverlayer.node()))};S(w,y,A,{width:E.w,height:E.h,margin:{t:E.t,r:E.r,b:E.b,l:E.l}},{linkEvents:{hover:M,follow:B,unhover:O,select:L},nodeEvents:{hover:Y,follow:j,unhover:te,select:H}})}},83248:function(G,U,e){var g=e(49812),C=e(67756).Gz,i=e(33428),S=e(26800),x=e(48932),v=e(11820),p=e(49760),r=e(76308),t=e(43616),a=e(3400),n=a.strTranslate,f=a.strRotate,c=e(71688),l=c.keyFun,m=c.repeat,h=c.unwrap,b=e(72736),u=e(24040),o=e(84284),d=o.CAP_SHIFT,w=o.LINE_SPACING,A=3;function _(ee,V,Q){var oe=h(V),$=oe.trace,Z=$.domain,se=$.orientation==="h",ne=$.node.pad,ce=$.node.thickness,ge={justify:S.sankeyJustify,left:S.sankeyLeft,right:S.sankeyRight,center:S.sankeyCenter}[$.node.align],Te=ee.width*(Z.x[1]-Z.x[0]),we=ee.height*(Z.y[1]-Z.y[0]),Re=oe._nodes,be=oe._links,Ae=oe.circular,me;Ae?me=x.sankeyCircular().circularLinkGap(0):me=S.sankey(),me.iterations(v.sankeyIterations).size(se?[Te,we]:[we,Te]).nodeWidth(ce).nodePadding(ne).nodeId(function(nt){return nt.pointNumber}).nodeAlign(ge).nodes(Re).links(be);var Le=me();me.nodePadding()=We||(Je=We-Xe.y0,Je>1e-6&&(Xe.y0+=Je,Xe.y1+=Je)),We=Xe.y1+ne})}function ht(nt){var ze=nt.map(function(Ee,Me){return{x0:Ee.x0,index:Me}}).sort(function(Ee,Me){return Ee.x0-Me.x0}),Xe=[],Je=-1,We,Fe=-1/0,xe;for(He=0;HeFe+ce&&(Je+=1,We=ye.x0),Fe=ye.x0,Xe[Je]||(Xe[Je]=[]),Xe[Je].push(ye),xe=We-ye.x0,ye.x0+=xe,ye.x1+=xe}return Xe}if($.node.x.length&&$.node.y.length){for(He=0;He0?"L"+$.targetX+" "+$.targetY:"")+"Z":Q="M "+($.targetX-V)+" "+($.targetY-oe)+" L"+($.rightInnerExtent-V)+" "+($.targetY-oe)+"A"+($.rightLargeArcRadius+oe)+" "+($.rightSmallArcRadius+oe)+" 0 0 0 "+($.rightFullExtent-oe-V)+" "+($.targetY+$.rightSmallArcRadius)+"L"+($.rightFullExtent-oe-V)+" "+$.verticalRightInnerExtent+"A"+($.rightLargeArcRadius+oe)+" "+($.rightLargeArcRadius+oe)+" 0 0 0 "+($.rightInnerExtent-V)+" "+($.verticalFullExtent+oe)+"L"+$.leftInnerExtent+" "+($.verticalFullExtent+oe)+"A"+($.leftLargeArcRadius+oe)+" "+($.leftLargeArcRadius+oe)+" 0 0 0 "+($.leftFullExtent+oe)+" "+$.verticalLeftInnerExtent+"L"+($.leftFullExtent+oe)+" "+($.sourceY+$.leftSmallArcRadius)+"A"+($.leftLargeArcRadius+oe)+" "+($.leftSmallArcRadius+oe)+" 0 0 0 "+$.leftInnerExtent+" "+($.sourceY-oe)+"L"+$.sourceX+" "+($.sourceY-oe)+"L"+$.sourceX+" "+($.sourceY+oe)+"L"+$.leftInnerExtent+" "+($.sourceY+oe)+"A"+($.leftLargeArcRadius-oe)+" "+($.leftSmallArcRadius-oe)+" 0 0 1 "+($.leftFullExtent-oe)+" "+($.sourceY+$.leftSmallArcRadius)+"L"+($.leftFullExtent-oe)+" "+$.verticalLeftInnerExtent+"A"+($.leftLargeArcRadius-oe)+" "+($.leftLargeArcRadius-oe)+" 0 0 1 "+$.leftInnerExtent+" "+($.verticalFullExtent-oe)+"L"+($.rightInnerExtent-V)+" "+($.verticalFullExtent-oe)+"A"+($.rightLargeArcRadius-oe)+" "+($.rightLargeArcRadius-oe)+" 0 0 1 "+($.rightFullExtent+oe-V)+" "+$.verticalRightInnerExtent+"L"+($.rightFullExtent+oe-V)+" "+($.targetY+$.rightSmallArcRadius)+"A"+($.rightLargeArcRadius-oe)+" "+($.rightSmallArcRadius-oe)+" 0 0 1 "+($.rightInnerExtent-V)+" "+($.targetY+oe)+"L"+($.targetX-V)+" "+($.targetY+oe)+(V>0?"L"+$.targetX+" "+$.targetY:"")+"Z",Q}function T(){var ee=.5;function V(Q){var oe=Q.linkArrowLength;if(Q.link.circular)return E(Q.link,oe);var $=Math.abs((Q.link.target.x0-Q.link.source.x1)/2);oe>$&&(oe=$);var Z=Q.link.source.x1,se=Q.link.target.x0-oe,ne=C(Z,se),ce=ne(ee),ge=ne(1-ee),Te=Q.link.y0-Q.link.width/2,we=Q.link.y0+Q.link.width/2,Re=Q.link.y1-Q.link.width/2,be=Q.link.y1+Q.link.width/2,Ae="M"+Z+","+Te,me="C"+ce+","+Te+" "+ge+","+Re+" "+se+","+Re,Le="C"+ge+","+be+" "+ce+","+we+" "+Z+","+we,He=oe>0?"L"+(se+oe)+","+(Re+Q.link.width/2):"";return He+="L"+se+","+be,Ae+me+He+Le+"Z"}return V}function s(ee,V){var Q=p(V.color),oe=v.nodePadAcross,$=ee.nodePad/2;V.dx=V.x1-V.x0,V.dy=V.y1-V.y0;var Z=V.dx,se=Math.max(.5,V.dy),ne="node_"+V.pointNumber;return V.group&&(ne=a.randstr()),V.trace=ee.trace,V.curveNumber=ee.trace.index,{index:V.pointNumber,key:ne,partOfGroup:V.partOfGroup||!1,group:V.group,traceId:ee.key,trace:ee.trace,node:V,nodePad:ee.nodePad,nodeLineColor:ee.nodeLineColor,nodeLineWidth:ee.nodeLineWidth,textFont:ee.textFont,size:ee.horizontal?ee.height:ee.width,visibleWidth:Math.ceil(Z),visibleHeight:se,zoneX:-oe,zoneY:-$,zoneWidth:Z+2*oe,zoneHeight:se+2*$,labelY:ee.horizontal?V.dy/2+1:V.dx/2+1,left:V.originalLayer===1,sizeAcross:ee.width,forceLayouts:ee.forceLayouts,horizontal:ee.horizontal,darkBackground:Q.getBrightness()<=128,tinyColorHue:r.tinyRGB(Q),tinyColorAlpha:Q.getAlpha(),valueFormat:ee.valueFormat,valueSuffix:ee.valueSuffix,sankey:ee.sankey,graph:ee.graph,arrangement:ee.arrangement,uniqueNodeLabelPathId:[ee.guid,ee.key,ne].join("_"),interactionState:ee.interactionState,figure:ee}}function L(ee){ee.attr("transform",function(V){return n(V.node.x0.toFixed(3),V.node.y0.toFixed(3))})}function M(ee){ee.call(L)}function z(ee,V){ee.call(M),V.attr("d",T())}function D(ee){ee.attr("width",function(V){return V.node.x1-V.node.x0}).attr("height",function(V){return V.visibleHeight})}function N(ee){return ee.link.width>1||ee.linkLineWidth>0}function I(ee){var V=n(ee.translateX,ee.translateY);return V+(ee.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function k(ee,V,Q){ee.on(".basic",null).on("mouseover.basic",function(oe){!oe.interactionState.dragInProgress&&!oe.partOfGroup&&(Q.hover(this,oe,V),oe.interactionState.hovered=[this,oe])}).on("mousemove.basic",function(oe){!oe.interactionState.dragInProgress&&!oe.partOfGroup&&(Q.follow(this,oe),oe.interactionState.hovered=[this,oe])}).on("mouseout.basic",function(oe){!oe.interactionState.dragInProgress&&!oe.partOfGroup&&(Q.unhover(this,oe,V),oe.interactionState.hovered=!1)}).on("click.basic",function(oe){oe.interactionState.hovered&&(Q.unhover(this,oe,V),oe.interactionState.hovered=!1),!oe.interactionState.dragInProgress&&!oe.partOfGroup&&Q.select(this,oe,V)})}function B(ee,V,Q,oe){var $=i.behavior.drag().origin(function(Z){return{x:Z.node.x0+Z.visibleWidth/2,y:Z.node.y0+Z.visibleHeight/2}}).on("dragstart",function(Z){if(Z.arrangement!=="fixed"&&(a.ensureSingle(oe._fullLayout._infolayer,"g","dragcover",function(ne){oe._fullLayout._dragCover=ne}),a.raiseToTop(this),Z.interactionState.dragInProgress=Z.node,ie(Z.node),Z.interactionState.hovered&&(Q.nodeEvents.unhover.apply(0,Z.interactionState.hovered),Z.interactionState.hovered=!1),Z.arrangement==="snap")){var se=Z.traceId+"|"+Z.key;Z.forceLayouts[se]?Z.forceLayouts[se].alpha(1):O(ee,se,Z),H(ee,V,Z,se,oe)}}).on("drag",function(Z){if(Z.arrangement!=="fixed"){var se=i.event.x,ne=i.event.y;Z.arrangement==="snap"?(Z.node.x0=se-Z.visibleWidth/2,Z.node.x1=se+Z.visibleWidth/2,Z.node.y0=ne-Z.visibleHeight/2,Z.node.y1=ne+Z.visibleHeight/2):(Z.arrangement==="freeform"&&(Z.node.x0=se-Z.visibleWidth/2,Z.node.x1=se+Z.visibleWidth/2),ne=Math.max(0,Math.min(Z.size-Z.visibleHeight/2,ne)),Z.node.y0=ne-Z.visibleHeight/2,Z.node.y1=ne+Z.visibleHeight/2),ie(Z.node),Z.arrangement!=="snap"&&(Z.sankey.update(Z.graph),z(ee.filter(ue(Z)),V))}}).on("dragend",function(Z){if(Z.arrangement!=="fixed"){Z.interactionState.dragInProgress=!1;for(var se=0;se0)window.requestAnimationFrame(Z);else{var ce=Q.node.originalX;Q.node.x0=ce-Q.visibleWidth/2,Q.node.x1=ce+Q.visibleWidth/2,j(Q,$)}})}function Y(ee,V,Q,oe){return function(){for(var Z=0,se=0;se0&&oe.forceLayouts[V].alpha(0)}}function j(ee,V){for(var Q=[],oe=[],$=0;$I&&L[B].gap;)B--;for(H=L[B].s,k=L.length-1;k>B;k--)L[k].s=H;for(;ID[h]&&h=0;c--){var l=x[c];if(l.type==="scatter"&&l.xaxis===n.xaxis&&l.yaxis===n.yaxis){l.opacity=void 0;break}}}}}},18800:function(G,U,e){var g=e(3400),C=e(24040),i=e(52904),S=e(88200),x=e(43028),v=e(43980),p=e(31147),r=e(43912),t=e(74428),a=e(66828),n=e(11731),f=e(124),c=e(70840),l=e(3400).coercePattern;G.exports=function(h,b,u,o){function d(L,M){return g.coerce(h,b,i,L,M)}var w=v(h,b,o,d);if(w||(b.visible=!1),!!b.visible){p(h,b,o,d),d("xhoverformat"),d("yhoverformat");var A=r(h,b,o,d);o.scattermode==="group"&&b.orientation===void 0&&d("orientation","v");var _=!A&&w=Math.min(ie,ue)&&h<=Math.max(ie,ue)?0:1/0}var J=Math.max(3,te.mrc||0),X=1-1/J,ee=Math.abs(l.c2p(te.x)-h);return ee=Math.min(ie,ue)&&b<=Math.max(ie,ue)?0:1/0}var J=Math.max(3,te.mrc||0),X=1-1/J,ee=Math.abs(m.c2p(te.y)-b);return eeQ!=Te>=Q&&(ne=Z[$-1][0],ce=Z[$][0],Te-ge&&(se=ne+(ce-ne)*(Q-ge)/(Te-ge),J=Math.min(J,se),X=Math.max(X,se)));return J=Math.max(J,0),X=Math.min(X,l._length),{x0:J,x1:X,y0:Q,y1:Q}}if(o.indexOf("fills")!==-1&&c._fillElement){var H=B(c._fillElement)&&!B(c._fillExclusionElement);if(H){var Y=O(c._polygons);Y===null&&(Y={x0:u[0],x1:u[0],y0:u[1],y1:u[1]});var j=x.defaultLine;return x.opacity(c.fillcolor)?j=c.fillcolor:x.opacity((c.line||{}).color)&&(j=c.line.color),g.extendFlat(r,{distance:r.maxHoverDistance,x0:Y.x0,x1:Y.x1,y0:Y.y0,y1:Y.y1,color:j,hovertemplate:!1}),delete r.index,c.text&&!g.isArrayOrTypedArray(c.text)?r.text=String(c.text):r.text=c.name,[r]}}}},65875:function(G,U,e){var g=e(43028);G.exports={hasLines:g.hasLines,hasMarkers:g.hasMarkers,hasText:g.hasText,isBubble:g.isBubble,attributes:e(52904),layoutAttributes:e(55308),supplyDefaults:e(18800),crossTraceDefaults:e(35036),supplyLayoutDefaults:e(59748),calc:e(16356).calc,crossTraceCalc:e(96664),arraysToCalcdata:e(20148),plot:e(96504),colorbar:e(5528),formatLabels:e(76688),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(98723),selectPoints:e(91560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e(57952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},55308:function(G){G.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},59748:function(G,U,e){var g=e(3400),C=e(55308);G.exports=function(i,S){function x(p,r){return g.coerce(i,S,C,p,r)}var v=S.barmode==="group";S.scattermode==="group"&&x("scattergap",v?S.bargap:.2)}},66828:function(G,U,e){var g=e(3400).isArrayOrTypedArray,C=e(94288).hasColorscale,i=e(27260);G.exports=function(x,v,p,r,t,a){a||(a={});var n=(x.marker||{}).color;if(n&&n._inputArray&&(n=n._inputArray),t("line.color",p),C(x,"line"))i(x,v,r,t,{prefix:"line.",cLetter:"c"});else{var f=(g(n)?!1:n)||p;t("line.color",f)}t("line.width"),a.noDash||t("line.dash"),a.backoff&&t("line.backoff")}},52340:function(G,U,e){var g=e(43616),C=e(39032),i=C.BADNUM,S=C.LOG_CLIP,x=S+.5,v=S-.5,p=e(3400),r=p.segmentsIntersect,t=p.constrain,a=e(88200);G.exports=function(f,c){var l=c.trace||{},m=c.xaxis,h=c.yaxis,b=m.type==="log",u=h.type==="log",o=m._length,d=h._length,w=c.backoff,A=l.marker,_=c.connectGaps,y=c.baseTolerance,E=c.shape,T=E==="linear",s=l.fill&&l.fill!=="none",L=[],M=a.minTolerance,z=f.length,D=new Array(z),N=0,I,k,B,O,H,Y,j,te,ie,ue,J,X,ee,V,Q,oe;function $(mt){var bt=f[mt];if(!bt)return!1;var vt=c.linearized?m.l2p(bt.x):m.c2p(bt.x),Lt=c.linearized?h.l2p(bt.y):h.c2p(bt.y);if(vt===i){if(b&&(vt=m.c2p(bt.x,!0)),vt===i)return!1;u&&Lt===i&&(vt*=Math.abs(m._m*d*(m._m>0?x:v)/(h._m*o*(h._m>0?x:v)))),vt*=1e3}if(Lt===i){if(u&&(Lt=h.c2p(bt.y,!0)),Lt===i)return!1;Lt*=1e3}return[vt,Lt]}function Z(mt,bt,vt,Lt){var ct=vt-mt,Tt=Lt-bt,Bt=.5-mt,ir=.5-bt,pt=ct*ct+Tt*Tt,Xt=ct*Bt+Tt*ir;if(Xt>0&&Xt1||Math.abs(Bt.y-vt[0][1])>1)&&(Bt=[Bt.x,Bt.y],Lt&&ge(Bt,mt)Re||mt[1]Ae)return[t(mt[0],we,Re),t(mt[1],be,Ae)]}function $e(mt,bt){if(mt[0]===bt[0]&&(mt[0]===we||mt[0]===Re)||mt[1]===bt[1]&&(mt[1]===be||mt[1]===Ae))return!0}function lt(mt,bt){var vt=[],Lt=Ke(mt),ct=Ke(bt);return Lt&&ct&&$e(Lt,ct)||(Lt&&vt.push(Lt),ct&&vt.push(ct)),vt}function ht(mt,bt,vt){return function(Lt,ct){var Tt=Ke(Lt),Bt=Ke(ct),ir=[];if(Tt&&Bt&&$e(Tt,Bt))return ir;Tt&&ir.push(Tt),Bt&&ir.push(Bt);var pt=2*p.constrain((Lt[mt]+ct[mt])/2,bt,vt)-((Tt||Lt)[mt]+(Bt||ct)[mt]);if(pt){var Xt;Tt&&Bt?Xt=pt>0==Tt[mt]>Bt[mt]?Tt:Bt:Xt=Tt||Bt,Xt[mt]+=pt}return ir}}var dt;E==="linear"||E==="spline"?dt=rt:E==="hv"||E==="vh"?dt=lt:E==="hvh"?dt=ht(0,we,Re):E==="vhv"&&(dt=ht(1,be,Ae));function xt(mt,bt){var vt=bt[0]-mt[0],Lt=(bt[1]-mt[1])/vt,ct=(mt[1]*bt[0]-bt[1]*mt[0])/vt;return ct>0?[Lt>0?we:Re,Ae]:[Lt>0?Re:we,be]}function St(mt){var bt=mt[0],vt=mt[1],Lt=bt===D[N-1][0],ct=vt===D[N-1][1];if(!(Lt&&ct))if(N>1){var Tt=bt===D[N-2][0],Bt=vt===D[N-2][1];Lt&&(bt===we||bt===Re)&&Tt?Bt?N--:D[N-1]=mt:ct&&(vt===be||vt===Ae)&&Bt?Tt?N--:D[N-1]=mt:D[N++]=mt}else D[N++]=mt}function nt(mt){D[N-1][0]!==mt[0]&&D[N-1][1]!==mt[1]&&St([Ue,ke]),St(mt),Ve=null,Ue=ke=0}var ze=p.isArrayOrTypedArray(A);function Xe(mt){if(mt&&w&&(mt.i=I,mt.d=f,mt.trace=l,mt.marker=ze?A[mt.i]:A,mt.backoff=w),se=mt[0]/o,ne=mt[1]/d,Le=mt[0]Re?Re:0,He=mt[1]Ae?Ae:0,Le||He){if(!N)D[N++]=[Le||mt[0],He||mt[1]];else if(Ve){var bt=dt(Ve,mt);bt.length>1&&(nt(bt[0]),D[N++]=bt[1])}else Ie=dt(D[N-1],mt)[0],D[N++]=Ie;var vt=D[N-1];Le&&He&&(vt[0]!==Le||vt[1]!==He)?(Ve&&(Ue!==Le&&ke!==He?St(Ue&&ke?xt(Ve,mt):[Ue||Le,ke||He]):Ue&&ke&&St([Ue,ke])),St([Le,He])):Ue-Le&&ke-He&&St([Le||Ue,He||ke]),Ve=mt,Ue=Le,ke=He}else Ve&&nt(dt(Ve,mt)[0]),D[N++]=mt}for(I=0;Ice(Y,Je))break;B=Y,ee=ie[0]*te[0]+ie[1]*te[1],ee>J?(J=ee,O=Y,j=!1):ee=f.length||!Y)break;Xe(Y),k=Y}}Ve&&St([Ue||Ve[0],ke||Ve[1]]),L.push(D.slice(0,N))}var We=E.slice(E.length-1);if(w&&We!=="h"&&We!=="v"){for(var Fe=!1,xe=-1,ye=[],Ee=0;Ee=0?r=c:(r=c=f,f++),r0?Math.max(a,p):0}}},5528:function(G){G.exports={container:"marker",min:"cmin",max:"cmax"}},74428:function(G,U,e){var g=e(76308),C=e(94288).hasColorscale,i=e(27260),S=e(43028);G.exports=function(v,p,r,t,a,n){var f=S.isBubble(v),c=(v.line||{}).color,l;if(n=n||{},c&&(r=c),a("marker.symbol"),a("marker.opacity",f?.7:1),a("marker.size"),n.noAngle||(a("marker.angle"),n.noAngleRef||a("marker.angleref"),n.noStandOff||a("marker.standoff")),a("marker.color",r),C(v,"marker")&&i(v,p,t,a,{prefix:"marker.",cLetter:"c"}),n.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),n.noLine||(c&&!Array.isArray(c)&&p.marker.color!==c?l=c:f?l=g.background:l=g.defaultLine,a("marker.line.color",l),C(v,"marker.line")&&i(v,p,t,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",f?1:0)),f&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),n.gradient){var m=a("marker.gradient.type");m!=="none"&&a("marker.gradient.color")}}},31147:function(G,U,e){var g=e(3400).dateTick0,C=e(39032),i=C.ONEWEEK;function S(x,v){return x%i===0?g(v,1):g(v,0)}G.exports=function(v,p,r,t,a){if(a||(a={x:!0,y:!0}),a.x){var n=t("xperiod");n&&(t("xperiod0",S(n,p.xcalendar)),t("xperiodalignment"))}if(a.y){var f=t("yperiod");f&&(t("yperiod0",S(f,p.ycalendar)),t("yperiodalignment"))}}},96504:function(G,U,e){var g=e(33428),C=e(24040),i=e(3400),S=i.ensureSingle,x=i.identity,v=e(43616),p=e(43028),r=e(52340),t=e(14328),a=e(92065).tester;G.exports=function(m,h,b,u,o,d){var w,A,_=!o,y=!!o&&o.duration>0,E=t(m,h,b);if(w=u.selectAll("g.trace").data(E,function(s){return s[0].trace.uid}),w.enter().append("g").attr("class",function(s){return"trace scatter trace"+s[0].trace.uid}).style("stroke-miterlimit",2),w.order(),n(m,w,h),y){d&&(A=d());var T=g.transition().duration(o.duration).ease(o.easing).each("end",function(){A&&A()}).each("interrupt",function(){A&&A()});T.each(function(){u.selectAll("g.trace").each(function(s,L){f(m,L,h,s,E,this,o)})})}else w.each(function(s,L){f(m,L,h,s,E,this,o)});_&&w.exit().remove(),u.selectAll("path:not([d])").remove()};function n(l,m,h){m.each(function(b){var u=S(g.select(this),"g","fills");v.setClipUrl(u,h.layerClipId,l);var o=b[0].trace,d=[];o._ownfill&&d.push("_ownFill"),o._nexttrace&&d.push("_nextFill");var w=u.selectAll("g").data(d,x);w.enter().append("g"),w.exit().each(function(A){o[A]=null}).remove(),w.order().each(function(A){o[A]=S(g.select(this),"path","js-fill")})})}function f(l,m,h,b,u,o,d){var w=l._context.staticPlot,A;c(l,m,h,b,u);var _=!!d&&d.duration>0;function y(St){return _?St.transition():St}var E=h.xaxis,T=h.yaxis,s=b[0].trace,L=s.line,M=g.select(o),z=S(M,"g","errorbars"),D=S(M,"g","lines"),N=S(M,"g","points"),I=S(M,"g","text");if(C.getComponentMethod("errorbars","plot")(l,z,h,d),s.visible!==!0)return;y(M).style("opacity",s.opacity);var k,B,O=s.fill.charAt(s.fill.length-1);O!=="x"&&O!=="y"&&(O="");var H,Y;O==="y"?(H=1,Y=T.c2p(0,!0)):O==="x"&&(H=0,Y=E.c2p(0,!0)),b[0][h.isRangePlot?"nodeRangePlot3":"node3"]=M;var j="",te=[],ie=s._prevtrace,ue=null,J=null;ie&&(j=ie._prevRevpath||"",B=ie._nextFill,te=ie._ownPolygons,ue=ie._fillsegments,J=ie._fillElement);var X,ee,V="",Q="",oe,$,Z,se,ne,ce,ge=[];s._polygons=[];var Te=[],we=[],Re=i.noop;if(k=s._ownFill,p.hasLines(s)||s.fill!=="none"){B&&B.datum(b),["hv","vh","hvh","vhv"].indexOf(L.shape)!==-1?(oe=v.steps(L.shape),$=v.steps(L.shape.split("").reverse().join(""))):L.shape==="spline"?oe=$=function(St){var nt=St[St.length-1];return St.length>1&&St[0][0]===nt[0]&&St[0][1]===nt[1]?v.smoothclosed(St.slice(1),L.smoothing):v.smoothopen(St,L.smoothing)}:oe=$=function(St){return"M"+St.join("L")},Z=function(St){return $(St.reverse())},we=r(b,{xaxis:E,yaxis:T,trace:s,connectGaps:s.connectgaps,baseTolerance:Math.max(L.width||1,3)/4,shape:L.shape,backoff:L.backoff,simplify:L.simplify,fill:s.fill}),Te=new Array(we.length);var be=0;for(A=0;A=w[0]&&M.x<=w[1]&&M.y>=A[0]&&M.y<=A[1]}),T=Math.ceil(E.length/y),s=0;u.forEach(function(M,z){var D=M[0].trace;p.hasMarkers(D)&&D.marker.maxdisplayed>0&&z0){var h=r.c2l(l);r._lowerLogErrorBound||(r._lowerLogErrorBound=h),r._lowerErrorBound=Math.min(r._lowerLogErrorBound,h)}}else a[n]=[-f[0]*p,f[1]*p]}return a}function i(x){for(var v=0;v-1?-1:M.indexOf("right")>-1?1:0}function d(M){return M==null?0:M.indexOf("top")>-1?-1:M.indexOf("bottom")>-1?1:0}function w(M){var z=0,D=0,N=[z,D];if(Array.isArray(M))for(var I=0;I=0){var Y=b(O.position,O.delaunayColor,O.delaunayAxis);Y.opacity=M.opacity,this.delaunayMesh?this.delaunayMesh.update(Y):(Y.gl=z,this.delaunayMesh=S(Y),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},h.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function L(M,z){var D=new m(M,z.uid);return D.update(z),D}G.exports=L},83484:function(G,U,e){var g=e(24040),C=e(3400),i=e(43028),S=e(74428),x=e(66828),v=e(124),p=e(91592);G.exports=function(a,n,f,c){function l(A,_){return C.coerce(a,n,p,A,_)}var m=r(a,n,l,c);if(!m){n.visible=!1;return}l("text"),l("hovertext"),l("hovertemplate"),l("xhoverformat"),l("yhoverformat"),l("zhoverformat"),l("mode"),i.hasMarkers(n)&&S(a,n,f,c,l,{noSelect:!0,noAngle:!0}),i.hasLines(n)&&(l("connectgaps"),x(a,n,f,c,l)),i.hasText(n)&&(l("texttemplate"),v(a,n,c,l,{noSelect:!0}));var h=(n.line||{}).color,b=(n.marker||{}).color;l("surfaceaxis")>=0&&l("surfacecolor",h||b);for(var u=["x","y","z"],o=0;o<3;++o){var d="projection."+u[o];l(d+".show")&&(l(d+".opacity"),l(d+".scale"))}var w=g.getComponentMethod("errorbars","supplyDefaults");w(a,n,h||b||f,{axis:"z"}),w(a,n,h||b||f,{axis:"y",inherit:"z"}),w(a,n,h||b||f,{axis:"x",inherit:"z"})};function r(t,a,n,f){var c=0,l=n("x"),m=n("y"),h=n("z"),b=g.getComponentMethod("calendars","handleTraceDefaults");return b(t,a,["x","y","z"],f),l&&m&&h&&(c=Math.min(l.length,m.length,h.length),a._length=a._xlength=a._ylength=a._zlength=c),c}},3296:function(G,U,e){G.exports={plot:e(41064),attributes:e(91592),markerSymbols:e(87792),supplyDefaults:e(83484),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:e(41484),moduleType:"trace",name:"scatter3d",basePlotModule:e(12536),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},90372:function(G,U,e){var g=e(98304),C=e(52904),i=e(45464),S=e(21776).Ks,x=e(21776).Gw,v=e(49084),p=e(92880).extendFlat,r=C.marker,t=C.line,a=r.line;G.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:p({},C.mode,{dflt:"markers"}),text:p({},C.text,{}),texttemplate:x({editType:"plot"},{keys:["a","b","text"]}),hovertext:p({},C.hovertext,{}),line:{color:t.color,width:t.width,dash:t.dash,backoff:t.backoff,shape:p({},t.shape,{values:["linear","spline"]}),smoothing:t.smoothing,editType:"calc"},connectgaps:C.connectgaps,fill:p({},C.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:g(),marker:p({symbol:r.symbol,opacity:r.opacity,maxdisplayed:r.maxdisplayed,angle:r.angle,angleref:r.angleref,standoff:r.standoff,size:r.size,sizeref:r.sizeref,sizemin:r.sizemin,sizemode:r.sizemode,line:p({width:a.width,editType:"calc"},v("marker.line")),gradient:r.gradient,editType:"calc"},v("marker")),textfont:C.textfont,textposition:C.textposition,selected:C.selected,unselected:C.unselected,hoverinfo:p({},i.hoverinfo,{flags:["a","b","text","name"]}),hoveron:C.hoveron,hovertemplate:S()}},48228:function(G,U,e){var g=e(38248),C=e(90136),i=e(20148),S=e(4500),x=e(16356).calcMarkerSize,v=e(50948);G.exports=function(r,t){var a=t._carpetTrace=v(r,t);if(!(!a||!a.visible||a.visible==="legendonly")){var n;t.xaxis=a.xaxis,t.yaxis=a.yaxis;var f=t._length,c=new Array(f),l,m,h=!1;for(n=0;n0?y=A.labelprefix.replace(/ = $/,""):y=A._hovertitle,u.push(y+": "+_.toFixed(3)+A.labelsuffix)}if(!m.hovertemplate){var d=l.hi||m.hoverinfo,w=d.split("+");w.indexOf("all")!==-1&&(w=["a","b","text"]),w.indexOf("a")!==-1&&o(h.aaxis,l.a),w.indexOf("b")!==-1&&o(h.baxis,l.b),u.push("y: "+t.yLabel),w.indexOf("text")!==-1&&C(l,m,u),t.extraText=u.join("
    ")}return r}},4184:function(G,U,e){G.exports={attributes:e(90372),supplyDefaults:e(6176),colorbar:e(5528),formatLabels:e(52364),calc:e(48228),plot:e(20036),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(58960),selectPoints:e(91560),eventData:e(89307),moduleType:"trace",name:"scattercarpet",basePlotModule:e(57952),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},20036:function(G,U,e){var g=e(96504),C=e(54460),i=e(43616);G.exports=function(x,v,p,r){var t,a,n,f=p[0][0].carpet,c=C.getFromId(x,f.xaxis||"x"),l=C.getFromId(x,f.yaxis||"y"),m={xaxis:c,yaxis:l,plot:v.plot};for(t=0;t")}},36952:function(G,U,e){G.exports={attributes:e(6096),supplyDefaults:e(86188),colorbar:e(5528),formatLabels:e(56696),calc:e(25212),calcGeoJSON:e(48691).calcGeoJSON,plot:e(48691).plot,style:e(25064),styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(64292),eventData:e(58544),selectPoints:e(8796),moduleType:"trace",name:"scattergeo",basePlotModule:e(10816),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},48691:function(G,U,e){var g=e(33428),C=e(3400),i=e(59972).getTopojsonFeatures,S=e(44808),x=e(27144),v=e(19280).findExtremes,p=e(39032).BADNUM,r=e(16356).calcMarkerSize,t=e(43028),a=e(25064);function n(c,l,m){var h=l.layers.frontplot.select(".scatterlayer"),b=C.makeTraceGroups(h,m,"trace scattergeo");function u(o,d){o.lonlat[0]===p&&g.select(d).remove()}b.selectAll("*").remove(),b.each(function(o){var d=g.select(this),w=o[0].trace;if(t.hasLines(w)||w.fill!=="none"){var A=S.calcTraceToLineCoords(o),_=w.fill!=="none"?S.makePolygon(A):S.makeLine(A);d.selectAll("path.js-line").data([{geojson:_,trace:w}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}t.hasMarkers(w)&&d.selectAll("path.point").data(C.identity).enter().append("path").classed("point",!0).each(function(y){u(y,this)}),t.hasText(w)&&d.selectAll("g").data(C.identity).enter().append("g").append("text").each(function(y){u(y,this)}),a(c,o)})}function f(c,l){var m=c[0].trace,h=l[m.geo],b=h._subplot,u=m._length,o,d;if(C.isArrayOrTypedArray(m.locations)){var w=m.locationmode,A=w==="geojson-id"?x.extractTraceFeature(c):i(m,b.topojson);for(o=0;o=l,T=y*2,s={},L,M=w.makeCalcdata(o,"x"),z=A.makeCalcdata(o,"y"),D=x(o,w,"x",M),N=x(o,A,"y",z),I=D.vals,k=N.vals;o._x=I,o._y=k,o.xperiodalignment&&(o._origX=M,o._xStarts=D.starts,o._xEnds=D.ends),o.yperiodalignment&&(o._origY=z,o._yStarts=N.starts,o._yEnds=N.ends);var B=new Array(T),O=new Array(y);for(L=0;L1&&C.extendFlat(_.line,n.linePositions(b,o,d)),_.errorX||_.errorY){var y=n.errorBarPositions(b,o,d,w,A);_.errorX&&C.extendFlat(_.errorX,y.x),_.errorY&&C.extendFlat(_.errorY,y.y)}return _.text&&(C.extendFlat(_.text,{positions:d},n.textPosition(b,o,_.text,_.marker)),C.extendFlat(_.textSel,{positions:d},n.textPosition(b,o,_.text,_.markerSel)),C.extendFlat(_.textUnsel,{positions:d},n.textPosition(b,o,_.text,_.markerUnsel))),_}},67072:function(G){var U=20;G.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:U,SYMBOL_STROKE:U/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},84236:function(G,U,e){var g=e(38248),C=e(20472),i=e(72160),S=e(24040),x=e(3400),v=x.isArrayOrTypedArray,p=e(43616),r=e(79811),t=e(33040).formatColor,a=e(43028),n=e(7152),f=e(80088),c=e(67072),l=e(13448).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},h=e(10624).appendArrayPointValue;function b(N,I){var k,B={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},O=N._context.plotGlPixelRatio;if(I.visible!==!0)return B;if(a.hasText(I)&&(B.text=u(N,I),B.textSel=w(N,I,I.selected),B.textUnsel=w(N,I,I.unselected)),a.hasMarkers(I)&&(B.marker=o(N,I),B.markerSel=d(N,I,I.selected),B.markerUnsel=d(N,I,I.unselected),!I.unselected&&v(I.marker.opacity))){var H=I.marker.opacity;for(B.markerUnsel.opacity=new Array(H.length),k=0;kc.TOO_MANY_POINTS||a.hasMarkers(I)?"rect":"round";if(ie&&I.connectgaps){var J=H[0],X=H[1];for(Y=0;Y1?te[Y]:te[0]:te,ee=v(ie)?ie.length>1?ie[Y]:ie[0]:ie,V=m[X],Q=m[ee],oe=ue?ue/.8+1:0,$=-Q*oe-Q*.5;H.offset[Y]=[V*oe/J,$/J]}}return H}G.exports={style:b,markerStyle:o,markerSelection:d,linePositions:M,errorBarPositions:z,textPosition:D}},80220:function(G,U,e){var g=e(3400),C=e(24040),i=e(80088),S=e(2876),x=e(88200),v=e(43028),p=e(43980),r=e(31147),t=e(74428),a=e(66828),n=e(70840),f=e(124);G.exports=function(l,m,h,b){function u(T,s){return g.coerce(l,m,S,T,s)}var o=l.marker?i.isOpenSymbol(l.marker.symbol):!1,d=v.isBubble(l),w=p(l,m,b,u);if(!w){m.visible=!1;return}r(l,m,b,u),u("xhoverformat"),u("yhoverformat");var A=w100},U.isDotSymbol=function(C){return typeof C=="string"?g.DOT_RE.test(C):C>200}},41272:function(G,U,e){var g=e(24040),C=e(3400),i=e(44928);function S(v,p,r,t){var a=v.cd,n=a[0].t,f=a[0].trace,c=v.xa,l=v.ya,m=n.x,h=n.y,b=c.c2p(p),u=l.c2p(r),o=v.distance,d;if(n.tree){var w=c.p2c(b-o),A=c.p2c(b+o),_=l.p2c(u-o),y=l.p2c(u+o);t==="x"?d=n.tree.range(Math.min(w,A),Math.min(l._rl[0],l._rl[1]),Math.max(w,A),Math.max(l._rl[0],l._rl[1])):d=n.tree.range(Math.min(w,A),Math.min(_,y),Math.max(w,A),Math.max(_,y))}else d=n.ids;var E,T,s,L,M,z,D,N,I,k=o;if(t==="x"){var B=!!f.xperiodalignment,O=!!f.yperiodalignment;for(M=0;M=Math.min(H,Y)&&b<=Math.max(H,Y)?0:1/0}if(z=Math.min(j,te)&&u<=Math.max(j,te)?0:1/0}I=Math.sqrt(z*z+D*D),T=d[M]}}}else for(M=d.length-1;M>-1;M--)E=d[M],s=m[E],L=h[E],z=c.c2p(s)-b,D=l.c2p(L)-u,N=Math.sqrt(z*z+D*D),No.glText.length){var s=E-o.glText.length;for(A=0;Ase&&(isNaN(Z[ne])||isNaN(Z[ne+1]));)ne-=2;$.positions=Z.slice(se,ne+2)}return $}),o.line2d.update(o.lineOptions)),o.error2d){var z=(o.errorXOptions||[]).concat(o.errorYOptions||[]);o.error2d.update(z)}o.scatter2d&&o.scatter2d.update(o.markerOptions),o.fillOrder=x.repeat(null,E),o.fill2d&&(o.fillOptions=o.fillOptions.map(function($,Z){var se=b[Z];if(!(!$||!se||!se[0]||!se[0].trace)){var ne=se[0],ce=ne.trace,ge=ne.t,Te=o.lineOptions[Z],we,Re,be=[];ce._ownfill&&be.push(Z),ce._nexttrace&&be.push(Z+1),be.length&&(o.fillOrder[Z]=be);var Ae=[],me=Te&&Te.positions||ge.positions,Le,He;if(ce.fill==="tozeroy"){for(Le=0;LeLe&&isNaN(me[He+1]);)He-=2;me[Le+1]!==0&&(Ae=[me[Le],0]),Ae=Ae.concat(me.slice(Le,He+2)),me[He+1]!==0&&(Ae=Ae.concat([me[He],0]))}else if(ce.fill==="tozerox"){for(Le=0;LeLe&&isNaN(me[He]);)He-=2;me[Le]!==0&&(Ae=[0,me[Le+1]]),Ae=Ae.concat(me.slice(Le,He+2)),me[He]!==0&&(Ae=Ae.concat([0,me[He+1]]))}else if(ce.fill==="toself"||ce.fill==="tonext"){for(Ae=[],we=0,$.splitNull=!0,Re=0;Re-1;for(A=0;A=0?Math.floor((a+180)/360):Math.ceil((a-180)/360),A=w*360,_=a-A;function y(I){var k=I.lonlat;if(k[0]===x||o&&b.indexOf(I.i+1)===-1)return 1/0;var B=C.modHalf(k[0],360),O=k[1],H=h.project([B,O]),Y=H.x-l.c2p([_,O]),j=H.y-m.c2p([B,n]),te=Math.max(3,I.mrc||0);return Math.max(Math.sqrt(Y*Y+j*j)-te,1-3/te)}if(g.getClosest(f,y,t),t.index!==!1){var E=f[t.index],T=E.lonlat,s=[C.modHalf(T[0],360)+A,T[1]],L=l.c2p(s),M=m.c2p(s),z=E.mrc||1;t.x0=L-z,t.x1=L+z,t.y0=M-z,t.y1=M+z;var D={};D[c.subplot]={_subplot:h};var N=c._module.formatLabels(E,c,D);return t.lonLabel=N.lonLabel,t.latLabel=N.latLabel,t.color=i(c,E),t.extraText=r(c,E,f[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}function r(t,a,n){if(t.hovertemplate)return;var f=a.hi||t.hoverinfo,c=f.split("+"),l=c.indexOf("all")!==-1,m=c.indexOf("lon")!==-1,h=c.indexOf("lat")!==-1,b=a.lonlat,u=[];function o(d){return d+"°"}return l||m&&h?u.push("("+o(b[1])+", "+o(b[0])+")"):m?u.push(n.lon+o(b[0])):h&&u.push(n.lat+o(b[1])),(l||c.indexOf("text")!==-1)&&S(a,t,u),u.join("
    ")}G.exports={hoverPoints:p,getExtraText:r}},11572:function(G,U,e){G.exports={attributes:e(31512),supplyDefaults:e(15752),colorbar:e(5528),formatLabels:e(11960),calc:e(25212),plot:e(9660),hoverPoints:e(63312).hoverPoints,eventData:e(37920),selectPoints:e(404),styleOnSelect:function(g,C){if(C){var i=C[0].trace;i._glTrace.update(C)}},moduleType:"trace",name:"scattermapbox",basePlotModule:e(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(G,U,e){var g=e(3400),C=e(59392),i=e(47552).traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function x(p,r,t,a){this.type="scattermapbox",this.subplot=p,this.uid=r,this.clusterEnabled=t,this.isHidden=a,this.sourceIds={fill:"source-"+r+"-fill",line:"source-"+r+"-line",circle:"source-"+r+"-circle",symbol:"source-"+r+"-symbol",cluster:"source-"+r+"-circle",clusterCount:"source-"+r+"-circle"},this.layerIds={fill:i+r+"-fill",line:i+r+"-line",circle:i+r+"-circle",symbol:i+r+"-symbol",cluster:i+r+"-cluster",clusterCount:i+r+"-cluster-count"},this.below=null}var v=x.prototype;v.addSource=function(p,r,t){var a={type:"geojson",data:r.geojson};t&&t.enabled&&g.extendFlat(a,{cluster:!0,clusterMaxZoom:t.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[p]);n?n.setData(r.geojson):this.subplot.map.addSource(this.sourceIds[p],a)},v.setSourceData=function(p,r){this.subplot.map.getSource(this.sourceIds[p]).setData(r.geojson)},v.addLayer=function(p,r,t){var a={type:r.type,id:this.layerIds[p],source:this.sourceIds[p],layout:r.layout,paint:r.paint};r.filter&&(a.filter=r.filter);for(var n=this.layerIds[p],f,c=this.subplot.getMapLayers(),l=0;l=0;L--){var M=s[L];n.removeLayer(h.layerIds[M])}T||n.removeSource(h.sourceIds.circle)}function o(T){for(var s=S.nonCluster,L=0;L=0;L--){var M=s[L];n.removeLayer(h.layerIds[M]),T||n.removeSource(h.sourceIds[M])}}function w(T){m?u(T):d(T)}function A(T){l?b(T):o(T)}function _(){for(var T=l?S.cluster:S.nonCluster,s=0;s=0;a--){var n=t[a];r.removeLayer(this.layerIds[n]),r.removeSource(this.sourceIds[n])}},G.exports=function(r,t){var a=t[0].trace,n=a.cluster&&a.cluster.enabled,f=a.visible!==!0,c=new x(r,a.uid,n,f),l=C(r.gd,t),m=c.below=r.belowLookup["trace-"+a.uid],h,b,u;if(n)for(c.addSource("circle",l.circle,a.cluster),h=0;h")}}G.exports={hoverPoints:C,makeHoverPointText:i}},76924:function(G,U,e){G.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:e(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:e(8319),supplyDefaults:e(85968).supplyDefaults,colorbar:e(5528),formatLabels:e(22852),calc:e(58320),plot:e(43456),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(8504).hoverPoints,selectPoints:e(91560),meta:{}}},43456:function(G,U,e){var g=e(96504),C=e(39032).BADNUM;G.exports=function(S,x,v){for(var p=x.layers.frontplot.select("g.scatterlayer"),r=x.xaxis,t=x.yaxis,a={xaxis:r,yaxis:t,plot:x.framework,layerClipId:x._hasClipOnAxisFalse?x.clipIds.forTraces:null},n=x.radialAxis,f=x.angularAxis,c=0;c=p&&(_.marker.cluster=o.tree),_.marker&&(_.markerSel.positions=_.markerUnsel.positions=_.marker.positions=s),_.line&&s.length>1&&v.extendFlat(_.line,x.linePositions(a,u,s)),_.text&&(v.extendFlat(_.text,{positions:s},x.textPosition(a,u,_.text,_.marker)),v.extendFlat(_.textSel,{positions:s},x.textPosition(a,u,_.text,_.markerSel)),v.extendFlat(_.textUnsel,{positions:s},x.textPosition(a,u,_.text,_.markerUnsel))),_.fill&&!m.fill2d&&(m.fill2d=!0),_.marker&&!m.scatter2d&&(m.scatter2d=!0),_.line&&!m.line2d&&(m.line2d=!0),_.text&&!m.glText&&(m.glText=!0),m.lineOptions.push(_.line),m.fillOptions.push(_.fill),m.markerOptions.push(_.marker),m.markerSelectedOptions.push(_.markerSel),m.markerUnselectedOptions.push(_.markerUnsel),m.textOptions.push(_.text),m.textSelectedOptions.push(_.textSel),m.textUnselectedOptions.push(_.textUnsel),m.selectBatch.push([]),m.unselectBatch.push([]),o.x=L,o.y=M,o.rawx=L,o.rawy=M,o.r=w,o.theta=A,o.positions=s,o._scene=m,o.index=m.count,m.count++}}),i(a,n,f)}},G.exports.reglPrecompiled=r},69496:function(G,U,e){var g=e(21776).Ks,C=e(21776).Gw,i=e(92880).extendFlat,S=e(98304),x=e(52904),v=e(45464),p=x.line;G.exports={mode:x.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:x.text,texttemplate:C({editType:"plot"},{keys:["real","imag","text"]}),hovertext:x.hovertext,line:{color:p.color,width:p.width,dash:p.dash,backoff:p.backoff,shape:i({},p.shape,{values:["linear","spline"]}),smoothing:p.smoothing,editType:"calc"},connectgaps:x.connectgaps,marker:x.marker,cliponaxis:i({},x.cliponaxis,{dflt:!1}),textposition:x.textposition,textfont:x.textfont,fill:i({},x.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:S(),hoverinfo:i({},v.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:x.hoveron,hovertemplate:g(),selected:x.selected,unselected:x.unselected}},47507:function(G,U,e){var g=e(38248),C=e(39032).BADNUM,i=e(90136),S=e(20148),x=e(4500),v=e(16356).calcMarkerSize;G.exports=function(r,t){for(var a=r._fullLayout,n=t.subplot,f=a[n].realaxis,c=a[n].imaginaryaxis,l=f.makeCalcdata(t,"real"),m=c.makeCalcdata(t,"imag"),h=t._length,b=new Array(h),u=0;u")}}G.exports={hoverPoints:C,makeHoverPointText:i}},95443:function(G,U,e){G.exports={moduleType:"trace",name:"scattersmith",basePlotModule:e(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:e(69496),supplyDefaults:e(76716),colorbar:e(5528),formatLabels:e(49504),calc:e(47507),plot:e(34927),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(25292).hoverPoints,selectPoints:e(91560),meta:{}}},34927:function(G,U,e){var g=e(96504),C=e(39032).BADNUM,i=e(36416),S=i.smith;G.exports=function(v,p,r){for(var t=p.layers.frontplot.select("g.scatterlayer"),a=p.xaxis,n=p.yaxis,f={xaxis:a,yaxis:n,plot:p.framework,layerClipId:p._hasClipOnAxisFalse?p.clipIds.forTraces:null},c=0;c"),r.hovertemplate=l.hovertemplate,p}},34864:function(G,U,e){G.exports={attributes:e(5896),supplyDefaults:e(84256),colorbar:e(5528),formatLabels:e(90404),calc:e(34335),plot:e(88776),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(26596),selectPoints:e(91560),eventData:e(97476),moduleType:"trace",name:"scatterternary",basePlotModule:e(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(G,U,e){var g=e(96504);G.exports=function(i,S,x){var v=S.plotContainer;v.select(".scatterlayer").selectAll("*").remove();for(var p=S.xaxis,r=S.yaxis,t={xaxis:p,yaxis:r,plot:v,layerClipId:S._hasClipOnAxisFalse?S.clipIdRelative:null},a=S.layers.frontplot.select("g.scatterlayer"),n=0;na,L;for(s?L=h.sizeAvg||Math.max(h.size,3):L=i(c,m),w=0;wd&&h||o-1,I=S(h)||!!a.selectedpoints||N,k=!0;if(I){var B=a._length;if(a.selectedpoints){f.selectBatch=a.selectedpoints;var O=a.selectedpoints,H={};for(o=0;o1&&(T=r[n-1],L=t[n-1],z=a[n-1]),f=0;fT?"-":"+")+"x"),w=w.replace("y",(s>L?"-":"+")+"y"),w=w.replace("z",(M>z?"-":"+")+"z");var k=function(){n=0,D=[],N=[],I=[]};(!n||n2?h=l.slice(1,m-1):m===2?h=[(l[0]+l[1])/2]:h=l,h}function n(l){var m=l.length;return m===1?[.5,.5]:[l[1]-l[0],l[m-1]-l[m-2]]}function f(l,m){var h=l.fullSceneLayout,b=l.dataScale,u=m._len,o={};function d(ue,J){var X=h[J],ee=b[p[J]];return i.simpleMap(ue,function(V){return X.d2l(V)*ee})}if(o.vectors=v(d(m._u,"xaxis"),d(m._v,"yaxis"),d(m._w,"zaxis"),u),!u)return{positions:[],cells:[]};var w=d(m._Xs,"xaxis"),A=d(m._Ys,"yaxis"),_=d(m._Zs,"zaxis");o.meshgrid=[w,A,_],o.gridFill=m._gridFill;var y=m._slen;if(y)o.startingPositions=v(d(m._startsX,"xaxis"),d(m._startsY,"yaxis"),d(m._startsZ,"zaxis"));else{for(var E=A[0],T=a(w),s=a(_),L=new Array(T.length*s.length),M=0,z=0;z=0},L,M,z;b?(L=Math.min(h.length,o.length),M=function(V){return T(h[V])&&s(V)},z=function(V){return String(h[V])}):(L=Math.min(u.length,o.length),M=function(V){return T(u[V])&&s(V)},z=function(V){return String(u[V])}),w&&(L=Math.min(L,d.length));for(var D=0;D1){for(var H=i.randstr(),Y=0;Y=0){x.i=t.i;var f=v.marker;f.pattern?(!f.colors||!f.pattern.shape)&&(f.color=n,x.color=n):(f.color=n,x.color=n),g.pointStyle(S,v,p,x)}else C.fill(S,n)}},45716:function(G,U,e){var g=e(33428),C=e(24040),i=e(10624).appendArrayPointValue,S=e(93024),x=e(3400),v=e(95924),p=e(78176),r=e(69656),t=r.formatPieValue;G.exports=function(f,c,l,m,h){var b=m[0],u=b.trace,o=b.hierarchy,d=u.type==="sunburst",w=u.type==="treemap"||u.type==="icicle";"_hasHoverLabel"in u||(u._hasHoverLabel=!1),"_hasHoverEvent"in u||(u._hasHoverEvent=!1);var A=function(E){var T=l._fullLayout;if(!(l._dragging||T.hovermode===!1)){var s=l._fullData[u.index],L=E.data.data,M=L.i,z=p.isHierarchyRoot(E),D=p.getParent(o,E),N=p.getValue(E),I=function(Z){return x.castOption(s,M,Z)},k=I("hovertemplate"),B=S.castHoverinfo(s,T,M),O=T.separators,H;if(k||B&&B!=="none"&&B!=="skip"){var Y,j;d&&(Y=b.cx+E.pxmid[0]*(1-E.rInscribed),j=b.cy+E.pxmid[1]*(1-E.rInscribed)),w&&(Y=E._hoverX,j=E._hoverY);var te={},ie=[],ue=[],J=function(Z){return ie.indexOf(Z)!==-1};B&&(ie=B==="all"?s._module.attributes.hoverinfo.flags:B.split("+")),te.label=L.label,J("label")&&te.label&&ue.push(te.label),L.hasOwnProperty("v")&&(te.value=L.v,te.valueLabel=t(te.value,O),J("value")&&ue.push(te.valueLabel)),te.currentPath=E.currentPath=p.getPath(E.data),J("current path")&&!z&&ue.push(te.currentPath);var X,ee=[],V=function(){ee.indexOf(X)===-1&&(ue.push(X),ee.push(X))};te.percentParent=E.percentParent=N/p.getValue(D),te.parent=E.parentString=p.getPtLabel(D),J("percent parent")&&(X=p.formatPercent(te.percentParent,O)+" of "+te.parent,V()),te.percentEntry=E.percentEntry=N/p.getValue(c),te.entry=E.entry=p.getPtLabel(c),J("percent entry")&&!z&&!E.onPathbar&&(X=p.formatPercent(te.percentEntry,O)+" of "+te.entry,V()),te.percentRoot=E.percentRoot=N/p.getValue(o),te.root=E.root=p.getPtLabel(o),J("percent root")&&!z&&(X=p.formatPercent(te.percentRoot,O)+" of "+te.root,V()),te.text=I("hovertext")||I("text"),J("text")&&(X=te.text,x.isValidTextValue(X)&&ue.push(X)),H=[a(E,s,h.eventDataKeys)];var Q={trace:s,y:j,_x0:E._x0,_x1:E._x1,_y0:E._y0,_y1:E._y1,text:ue.join("
    "),name:k||J("name")?s.name:void 0,color:I("hoverlabel.bgcolor")||L.color,borderColor:I("hoverlabel.bordercolor"),fontFamily:I("hoverlabel.font.family"),fontSize:I("hoverlabel.font.size"),fontColor:I("hoverlabel.font.color"),nameLength:I("hoverlabel.namelength"),textAlign:I("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:te,eventData:H};d&&(Q.x0=Y-E.rInscribed*E.rpx1,Q.x1=Y+E.rInscribed*E.rpx1,Q.idealAlign=E.pxmid[0]<0?"left":"right"),w&&(Q.x=Y,Q.idealAlign=Y<0?"left":"right");var oe=[];S.loneHover(Q,{container:T._hoverlayer.node(),outerContainer:T._paper.node(),gd:l,inOut_bbox:oe}),H[0].bbox=oe[0],u._hasHoverLabel=!0}if(w){var $=f.select("path.surface");h.styleOne($,E,s,l,{hovered:!0})}u._hasHoverEvent=!0,l.emit("plotly_hover",{points:H||[a(E,s,h.eventDataKeys)],event:g.event})}},_=function(E){var T=l._fullLayout,s=l._fullData[u.index],L=g.select(this).datum();if(u._hasHoverEvent&&(E.originalEvent=g.event,l.emit("plotly_unhover",{points:[a(L,s,h.eventDataKeys)],event:g.event}),u._hasHoverEvent=!1),u._hasHoverLabel&&(S.loneUnhover(T._hoverlayer.node()),u._hasHoverLabel=!1),w){var M=f.select("path.surface");h.styleOne(M,L,s,l,{hovered:!1})}},y=function(E){var T=l._fullLayout,s=l._fullData[u.index],L=d&&(p.isHierarchyRoot(E)||p.isLeaf(E)),M=p.getPtId(E),z=p.isEntry(E)?p.findEntryWithChild(o,M):p.findEntryWithLevel(o,M),D=p.getPtId(z),N={points:[a(E,s,h.eventDataKeys)],event:g.event};L||(N.nextLevel=D);var I=v.triggerHandler(l,"plotly_"+u.type+"click",N);if(I!==!1&&T.hovermode&&(l._hoverdata=[a(E,s,h.eventDataKeys)],S.click(l,g.event)),!L&&I!==!1&&!l._dragging&&!l._transitioning){C.call("_storeDirectGUIEdit",s,T._tracePreGUI[s.uid],{level:s.level});var k={data:[{level:D}],traces:[u.index]},B={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:"immediate",fromcurrent:!0};S.loneUnhover(T._hoverlayer.node()),C.call("animate",l,k,B)}};f.on("mouseover",A),f.on("mouseout",_),f.on("click",y)};function a(n,f,c){for(var l=n.data.data,m={curveNumber:f.index,pointNumber:l.i,data:f._input,fullData:f},h=0;h0)},U.getMaxDepth=function(r){return r.maxdepth>=0?r.maxdepth:1/0},U.isHeader=function(r,t){return!(U.isLeaf(r)||r.depth===t._maxDepth-1)};function p(r){return r.data.data.pid}U.getParent=function(r,t){return U.findEntryWithLevel(r,p(t))},U.listPath=function(r,t){var a=r.parent;if(!a)return[];var n=t?[a.data[t]]:[a];return U.listPath(a,t).concat(n)},U.getPath=function(r){return U.listPath(r,"label").join("/")+"/"},U.formatValue=S.formatPieValue,U.formatPercent=function(r,t){var a=g.formatPercent(r,0);return a==="0%"&&(a=S.formatPiePercent(r,t)),a}},5621:function(G,U,e){G.exports={moduleType:"trace",name:"sunburst",basePlotModule:e(54904),categories:[],animatable:!0,attributes:e(424),layoutAttributes:e(84920),supplyDefaults:e(25244),supplyLayoutDefaults:e(28732),calc:e(3776).calc,crossTraceCalc:e(3776).crossTraceCalc,plot:e(96488).plot,style:e(85676).style,colorbar:e(5528),meta:{}}},84920:function(G){G.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},28732:function(G,U,e){var g=e(3400),C=e(84920);G.exports=function(S,x){function v(p,r){return g.coerce(S,x,C,p,r)}v("sunburstcolorway",x.colorway),v("extendsunburstcolors")}},96488:function(G,U,e){var g=e(33428),C=e(74148),i=e(67756).qy,S=e(43616),x=e(3400),v=e(72736),p=e(82744),r=p.recordMinTextSize,t=p.clearMinTextSize,a=e(37820),n=e(69656).getRotationAngle,f=a.computeTransform,c=a.transformInsideText,l=e(85676).styleOne,m=e(60100).resizeText,h=e(45716),b=e(27328),u=e(78176);U.plot=function(y,E,T,s){var L=y._fullLayout,M=L._sunburstlayer,z,D,N=!T,I=!L.uniformtext.mode&&u.hasTransition(T);if(t("sunburst",L),z=M.selectAll("g.trace.sunburst").data(E,function(B){return B[0].trace.uid}),z.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),z.order(),I){s&&(D=s());var k=g.transition().duration(T.duration).ease(T.easing).each("end",function(){D&&D()}).each("interrupt",function(){D&&D()});k.each(function(){M.selectAll("g.trace").each(function(B){o(y,B,this,T)})})}else z.each(function(B){o(y,B,this,T)}),L.uniformtext.mode&&m(y,L._sunburstlayer.selectAll(".trace"),"sunburst");N&&z.exit().remove()};function o(y,E,T,s){var L=y._context.staticPlot,M=y._fullLayout,z=!M.uniformtext.mode&&u.hasTransition(s),D=g.select(T),N=D.selectAll("g.slice"),I=E[0],k=I.trace,B=I.hierarchy,O=u.findEntryWithLevel(B,k.level),H=u.getMaxDepth(k),Y=M._size,j=k.domain,te=Y.w*(j.x[1]-j.x[0]),ie=Y.h*(j.y[1]-j.y[0]),ue=.5*Math.min(te,ie),J=I.cx=Y.l+Y.w*(j.x[1]+j.x[0])/2,X=I.cy=Y.t+Y.h*(1-j.y[0])-ie/2;if(!O)return N.remove();var ee=null,V={};z&&N.each(function(Ve){V[u.getPtId(Ve)]={rpx0:Ve.rpx0,rpx1:Ve.rpx1,x0:Ve.x0,x1:Ve.x1,transform:Ve.transform},!ee&&u.isEntry(Ve)&&(ee=Ve)});var Q=d(O).descendants(),oe=O.height+1,$=0,Z=H;I.hasMultipleRoots&&u.isHierarchyRoot(O)&&(Q=Q.slice(1),oe-=1,$=1,Z+=1),Q=Q.filter(function(Ve){return Ve.y1<=Z});var se=n(k.rotation);se&&Q.forEach(function(Ve){Ve.x0+=se,Ve.x1+=se});var ne=Math.min(oe,H),ce=function(Ve){return(Ve-$)/ne*ue},ge=function(Ve,Ie){return[Ve*Math.cos(Ie),-Ve*Math.sin(Ie)]},Te=function(Ve){return x.pathAnnulus(Ve.rpx0,Ve.rpx1,Ve.x0,Ve.x1,J,X)},we=function(Ve){return J+A(Ve)[0]*(Ve.transform.rCenter||0)+(Ve.transform.x||0)},Re=function(Ve){return X+A(Ve)[1]*(Ve.transform.rCenter||0)+(Ve.transform.y||0)};N=N.data(Q,u.getPtId),N.enter().append("g").classed("slice",!0),z?N.exit().transition().each(function(){var Ve=g.select(this),Ie=Ve.select("path.surface");Ie.transition().attrTween("d",function(Ke){var $e=Le(Ke);return function(lt){return Te($e(lt))}});var rt=Ve.select("g.slicetext");rt.attr("opacity",0)}).remove():N.exit().remove(),N.order();var be=null;if(z&&ee){var Ae=u.getPtId(ee);N.each(function(Ve){be===null&&u.getPtId(Ve)===Ae&&(be=Ve.x1)})}var me=N;z&&(me=me.transition().each("end",function(){var Ve=g.select(this);u.setSliceCursor(Ve,y,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),me.each(function(Ve){var Ie=g.select(this),rt=x.ensureSingle(Ie,"path","surface",function(xt){xt.style("pointer-events",L?"none":"all")});Ve.rpx0=ce(Ve.y0),Ve.rpx1=ce(Ve.y1),Ve.xmid=(Ve.x0+Ve.x1)/2,Ve.pxmid=ge(Ve.rpx1,Ve.xmid),Ve.midangle=-(Ve.xmid-Math.PI/2),Ve.startangle=-(Ve.x0-Math.PI/2),Ve.stopangle=-(Ve.x1-Math.PI/2),Ve.halfangle=.5*Math.min(x.angleDelta(Ve.x0,Ve.x1)||Math.PI,Math.PI),Ve.ring=1-Ve.rpx0/Ve.rpx1,Ve.rInscribed=w(Ve),z?rt.transition().attrTween("d",function(xt){var St=He(xt);return function(nt){return Te(St(nt))}}):rt.attr("d",Te),Ie.call(h,O,y,E,{eventDataKeys:b.eventDataKeys,transitionTime:b.CLICK_TRANSITION_TIME,transitionEasing:b.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,y,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:y._transitioning}),rt.call(l,Ve,k,y);var Ke=x.ensureSingle(Ie,"g","slicetext"),$e=x.ensureSingle(Ke,"text","",function(xt){xt.attr("data-notex",1)}),lt=x.ensureUniformFontSize(y,u.determineTextFont(k,Ve,M.font));$e.text(U.formatSliceLabel(Ve,O,k,E,M)).classed("slicetext",!0).attr("text-anchor","middle").call(S.font,lt).call(v.convertToTspans,y);var ht=S.bBox($e.node());Ve.transform=c(ht,Ve,I),Ve.transform.targetX=we(Ve),Ve.transform.targetY=Re(Ve);var dt=function(xt,St){var nt=xt.transform;return f(nt,St),nt.fontSize=lt.size,r(k.type,nt,M),x.getTextTransform(nt)};z?$e.transition().attrTween("transform",function(xt){var St=Ue(xt);return function(nt){return dt(St(nt),ht)}}):$e.attr("transform",dt(Ve,ht))});function Le(Ve){var Ie=u.getPtId(Ve),rt=V[Ie],Ke=V[u.getPtId(O)],$e;if(Ke){var lt=(Ve.x1>Ke.x1?2*Math.PI:0)+se;$e=Ve.rpx1be?2*Math.PI:0)+se;rt={x0:$e,x1:$e}}else rt={rpx0:ue,rpx1:ue},x.extendFlat(rt,ke(Ve));else rt={rpx0:0,rpx1:0};else rt={x0:se,x1:se};return i(rt,Ke)}function Ue(Ve){var Ie=V[u.getPtId(Ve)],rt,Ke=Ve.transform;if(Ie)rt=Ie;else if(rt={rpx1:Ve.rpx1,transform:{textPosAngle:Ke.textPosAngle,scale:0,rotate:Ke.rotate,rCenter:Ke.rCenter,x:Ke.x,y:Ke.y}},ee)if(Ve.parent)if(be){var $e=Ve.x1>be?2*Math.PI:0;rt.x0=rt.x1=$e}else x.extendFlat(rt,ke(Ve));else rt.x0=rt.x1=se;else rt.x0=rt.x1=se;var lt=i(rt.transform.textPosAngle,Ve.transform.textPosAngle),ht=i(rt.rpx1,Ve.rpx1),dt=i(rt.x0,Ve.x0),xt=i(rt.x1,Ve.x1),St=i(rt.transform.scale,Ke.scale),nt=i(rt.transform.rotate,Ke.rotate),ze=Ke.rCenter===0?3:rt.transform.rCenter===0?1/3:1,Xe=i(rt.transform.rCenter,Ke.rCenter),Je=function(We){return Xe(Math.pow(We,ze))};return function(We){var Fe=ht(We),xe=dt(We),ye=xt(We),Ee=Je(We),Me=ge(Fe,(xe+ye)/2),Ne=lt(We),je={pxmid:Me,rpx1:Fe,transform:{textPosAngle:Ne,rCenter:Ee,x:Ke.x,y:Ke.y}};return r(k.type,Ke,M),{transform:{targetX:we(je),targetY:Re(je),scale:St(We),rotate:nt(We),rCenter:Ee}}}}function ke(Ve){var Ie=Ve.parent,rt=V[u.getPtId(Ie)],Ke={};if(rt){var $e=Ie.children,lt=$e.indexOf(Ve),ht=$e.length,dt=i(rt.x0,rt.x1);Ke.x0=dt(lt/ht),Ke.x1=dt(lt/ht)}else Ke.x0=Ke.x1=0;return Ke}}function d(y){return C.partition().size([2*Math.PI,y.height+1])(y)}U.formatSliceLabel=function(y,E,T,s,L){var M=T.texttemplate,z=T.textinfo;if(!M&&(!z||z==="none"))return"";var D=L.separators,N=s[0],I=y.data.data,k=N.hierarchy,B=u.isHierarchyRoot(y),O=u.getParent(k,y),H=u.getValue(y);if(!M){var Y=z.split("+"),j=function($){return Y.indexOf($)!==-1},te=[],ie;if(j("label")&&I.label&&te.push(I.label),I.hasOwnProperty("v")&&j("value")&&te.push(u.formatValue(I.v,D)),!B){j("current path")&&te.push(u.getPath(y.data));var ue=0;j("percent parent")&&ue++,j("percent entry")&&ue++,j("percent root")&&ue++;var J=ue>1;if(ue){var X,ee=function($){ie=u.formatPercent(X,D),J&&(ie+=" of "+$),te.push(ie)};j("percent parent")&&!B&&(X=H/u.getValue(O),ee("parent")),j("percent entry")&&(X=H/u.getValue(E),ee("entry")),j("percent root")&&(X=H/u.getValue(k),ee("root"))}}return j("text")&&(ie=x.castOption(T,I.i,"text"),x.isValidTextValue(ie)&&te.push(ie)),te.join("
    ")}var V=x.castOption(T,I.i,"texttemplate");if(!V)return"";var Q={};I.label&&(Q.label=I.label),I.hasOwnProperty("v")&&(Q.value=I.v,Q.valueLabel=u.formatValue(I.v,D)),Q.currentPath=u.getPath(y.data),B||(Q.percentParent=H/u.getValue(O),Q.percentParentLabel=u.formatPercent(Q.percentParent,D),Q.parent=u.getPtLabel(O)),Q.percentEntry=H/u.getValue(E),Q.percentEntryLabel=u.formatPercent(Q.percentEntry,D),Q.entry=u.getPtLabel(E),Q.percentRoot=H/u.getValue(k),Q.percentRootLabel=u.formatPercent(Q.percentRoot,D),Q.root=u.getPtLabel(k),I.hasOwnProperty("color")&&(Q.color=I.color);var oe=x.castOption(T,I.i,"text");return(x.isValidTextValue(oe)||oe==="")&&(Q.text=oe),Q.customdata=x.castOption(T,I.i,"customdata"),x.texttemplateString(V,Q,L._d3locale,Q,T._meta||{})};function w(y){return y.rpx0===0&&x.isFullCircle([y.x0,y.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(y.halfangle)),y.ring/2))}function A(y){return _(y.rpx1,y.transform.textPosAngle)}function _(y,E){return[y*Math.sin(E),-y*Math.cos(E)]}},85676:function(G,U,e){var g=e(33428),C=e(76308),i=e(3400),S=e(82744).resizeText,x=e(60404);function v(r){var t=r._fullLayout._sunburstlayer.selectAll(".trace");S(r,t,"sunburst"),t.each(function(a){var n=g.select(this),f=a[0],c=f.trace;n.style("opacity",c.opacity),n.selectAll("path.surface").each(function(l){g.select(this).call(p,l,c,r)})})}function p(r,t,a,n){var f=t.data.data,c=!t.children,l=f.i,m=i.castOption(a,l,"marker.line.color")||C.defaultLine,h=i.castOption(a,l,"marker.line.width")||0;r.call(x,t,a,n).style("stroke-width",h).call(C.stroke,m).style("opacity",c?a.leaf.opacity:null)}G.exports={style:v,styleOne:p}},16716:function(G,U,e){var g=e(76308),C=e(49084),i=e(29736).axisHoverFormat,S=e(21776).Ks,x=e(45464),v=e(92880).extendFlat,p=e(67824).overrideAll;function r(n){return{valType:"boolean",dflt:!1}}function t(n){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:r(),y:r(),z:r()},color:{valType:"color",dflt:g.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:g.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var a=G.exports=p(v({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:S(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},C("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:t(),y:t(),z:t()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:v({},C.zauto,{}),zmin:v({},C.zmin,{}),zmax:v({},C.zmax,{})},hoverinfo:v({},x.hoverinfo),showlegend:v({},x.showlegend,{dflt:!1})}),"calc","nested");a.x.editType=a.y.editType=a.z.editType="calc+clearAxisTypes",a.transforms=void 0},56576:function(G,U,e){var g=e(47128);G.exports=function(i,S){S.surfacecolor?g(i,S,{vals:S.surfacecolor,containerStr:"",cLetter:"c"}):g(i,S,{vals:S.z,containerStr:"",cLetter:"c"})}},79164:function(G,U,e){var g=e(67792).gl_surface3d,C=e(67792).ndarray,i=e(67792).ndarray_linear_interpolate.d2,S=e(70448),x=e(11240),v=e(3400).isArrayOrTypedArray,p=e(33040).parseColorScale,r=e(43080),t=e(8932).extractOpts;function a(s,L,M){this.scene=s,this.uid=M,this.surface=L,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var n=a.prototype;n.getXat=function(s,L,M,z){var D=v(this.data.x)?v(this.data.x[0])?this.data.x[L][s]:this.data.x[s]:s;return M===void 0?D:z.d2l(D,0,M)},n.getYat=function(s,L,M,z){var D=v(this.data.y)?v(this.data.y[0])?this.data.y[L][s]:this.data.y[L]:L;return M===void 0?D:z.d2l(D,0,M)},n.getZat=function(s,L,M,z){var D=this.data.z[L][s];return D===null&&this.data.connectgaps&&this.data._interpolatedZ&&(D=this.data._interpolatedZ[L][s]),M===void 0?D:z.d2l(D,0,M)},n.handlePick=function(s){if(s.object===this.surface){var L=(s.data.index[0]-1)/this.dataScaleX-1,M=(s.data.index[1]-1)/this.dataScaleY-1,z=Math.max(Math.min(Math.round(L),this.data.z[0].length-1),0),D=Math.max(Math.min(Math.round(M),this.data._ylength-1),0);s.index=[z,D],s.traceCoordinate=[this.getXat(z,D),this.getYat(z,D),this.getZat(z,D)],s.dataCoordinate=[this.getXat(z,D,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(z,D,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(z,D,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var N=0;N<3;N++){var I=s.dataCoordinate[N];I!=null&&(s.dataCoordinate[N]*=this.scene.dataScale[N])}var k=this.data.hovertext||this.data.text;return v(k)&&k[D]&&k[D][z]!==void 0?s.textLabel=k[D][z]:k?s.textLabel=k:s.textLabel="",s.data.dataCoordinate=s.dataCoordinate.slice(),this.surface.highlight(s.data),this.scene.glplot.spikes.position=s.dataCoordinate,!0}};function f(s){var L=s[0].rgb,M=s[s.length-1].rgb;return L[0]===M[0]&&L[1]===M[1]&&L[2]===M[2]&&L[3]===M[3]}var c=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function l(s,L){if(s0){M=c[z];break}return M}function b(s,L){if(!(s<1||L<1)){for(var M=m(s),z=m(L),D=1,N=0;Nw;)z--,z/=h(z),z++,z1?D:1};function A(s,L,M){var z=M[8]+M[2]*L[0]+M[5]*L[1];return s[0]=(M[6]+M[0]*L[0]+M[3]*L[1])/z,s[1]=(M[7]+M[1]*L[0]+M[4]*L[1])/z,s}function _(s,L,M){return y(s,L,A,M),s}function y(s,L,M,z){for(var D=[0,0],N=s.shape[0],I=s.shape[1],k=0;k0&&this.contourStart[z]!==null&&this.contourEnd[z]!==null&&this.contourEnd[z]>this.contourStart[z]))for(L[z]=!0,D=this.contourStart[z];Dj&&(this.minValues[O]=j),this.maxValues[O]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},55992:function(G,U,e){var g=e(23536),C=e(92880).extendFlat,i=e(38248),S=e(38116).isTypedArray,x=e(38116).isArrayOrTypedArray;G.exports=function(m,h){var b=r(h.cells.values),u=function(j){return j.slice(h.header.values.length,j.length)},o=r(h.header.values);o.length&&!o[0].length&&(o[0]=[""],o=r(o));var d=o.concat(u(b).map(function(){return t((o[0]||[""]).length)})),w=h.domain,A=Math.floor(m._fullLayout._size.w*(w.x[1]-w.x[0])),_=Math.floor(m._fullLayout._size.h*(w.y[1]-w.y[0])),y=h.header.values.length?d[0].map(function(){return h.header.height}):[g.emptyHeaderHeight],E=b.length?b[0].map(function(){return h.cells.height}):[],T=y.reduce(p,0),s=_-T,L=s+g.uplift,M=f(E,L),z=f(y,T),D=n(z,[]),N=n(M,D),I={},k=h._fullInput.columnorder;x(k)&&(k=Array.from(k)),k=k.concat(u(b.map(function(j,te){return te})));var B=d.map(function(j,te){var ie=x(h.columnwidth)?h.columnwidth[Math.min(te,h.columnwidth.length-1)]:h.columnwidth;return i(ie)?Number(ie):1}),O=B.reduce(p,0);B=B.map(function(j){return j/O*A});var H=Math.max(v(h.header.line.width),v(h.cells.line.width)),Y={key:h.uid+m._context.staticPlot,translateX:w.x[0]*m._fullLayout._size.w,translateY:m._fullLayout._size.h*(1-w.y[1]),size:m._fullLayout._size,width:A,maxLineWidth:H,height:_,columnOrder:k,groupHeight:_,rowBlocks:N,headerRowBlocks:D,scrollY:0,cells:C({},h.cells,{values:b}),headerCells:C({},h.header,{values:d}),gdColumns:d.map(function(j){return j[0]}),gdColumnsOriginalOrder:d.map(function(j){return j[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:d.map(function(j,te){var ie=I[j];I[j]=(ie||0)+1;var ue=j+"__"+I[j];return{key:ue,label:j,specIndex:te,xIndex:k[te],xScale:a,x:void 0,calcdata:void 0,columnWidth:B[te]}})};return Y.columns.forEach(function(j){j.calcdata=Y,j.x=a(j)}),Y};function v(l){if(x(l)){for(var m=0,h=0;h=m||_===l.length-1)&&(h[u]=d,d.key=A++,d.firstRowIndex=w,d.lastRowIndex=_,d=c(),u+=o,w=_+1,o=0);return h}function c(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}},53056:function(G,U,e){var g=e(92880).extendFlat;U.splitToPanels=function(i){var S=[0,0],x=g({},i,{key:"header",type:"header",page:0,prevPages:S,currentRepaint:[null,null],dragHandle:!0,values:i.calcdata.headerCells.values[i.specIndex],rowBlocks:i.calcdata.headerRowBlocks,calcdata:g({},i.calcdata,{cells:i.calcdata.headerCells})}),v=g({},i,{key:"cells1",type:"cells",page:0,prevPages:S,currentRepaint:[null,null],dragHandle:!1,values:i.calcdata.cells.values[i.specIndex],rowBlocks:i.calcdata.rowBlocks}),p=g({},i,{key:"cells2",type:"cells",page:1,prevPages:S,currentRepaint:[null,null],dragHandle:!1,values:i.calcdata.cells.values[i.specIndex],rowBlocks:i.calcdata.rowBlocks});return[v,p,x]},U.splitToCells=function(i){var S=C(i);return(i.values||[]).slice(S[0],S[1]).map(function(x,v){var p=typeof x=="string"&&x.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:v+p,key:S[0]+v,column:i,calcdata:i.calcdata,page:i.page,rowBlocks:i.rowBlocks,value:x}})};function C(i){var S=i.rowBlocks[i.page],x=S?S.rows[0].rowIndex:0,v=S?x+S.rows.length:0;return[x,v]}},53212:function(G,U,e){var g=e(3400),C=e(60520),i=e(86968).Q;function S(x,v){for(var p=x.columnorder||[],r=x.header.values.length,t=p.slice(0,r),a=t.slice().sort(function(c,l){return c-l}),n=t.map(function(c){return a.indexOf(c)}),f=n.length;f/i),me=!be||Ae;ge.mayHaveMarkup=be&&Re.match(/[<&>]/);var Le=M(Re);ge.latex=Le;var He=Le?"":N(ge.calcdata.cells.prefix,Te,we)||"",Ue=Le?"":N(ge.calcdata.cells.suffix,Te,we)||"",ke=Le?null:N(ge.calcdata.cells.format,Te,we)||null,Ve=He+(ke?S(ke)(ge.value):ge.value)+Ue,Ie;ge.wrappingNeeded=!ge.wrapped&&!me&&!Le&&(Ie=z(Ve)),ge.cellHeightMayIncrease=Ae||Le||ge.mayHaveMarkup||(Ie===void 0?z(Ve):Ie),ge.needsConvertToTspans=ge.mayHaveMarkup||ge.wrappingNeeded||ge.latex;var rt;if(ge.wrappingNeeded){var Ke=g.wrapSplitCharacter===" "?Ve.replace(/ge&&ce.push(Te),ge+=be}return ce}function Y(Z,se,ne){var ce=b(se)[0];if(ce!==void 0){var ge=ce.rowBlocks,Te=ce.calcdata,we=ee(ge,ge.length),Re=ce.calcdata.groupHeight-O(ce),be=Te.scrollY=Math.max(0,Math.min(we-Re,Te.scrollY)),Ae=H(ge,be,Re);Ae.length===1&&(Ae[0]===ge.length-1?Ae.unshift(Ae[0]-1):Ae.push(Ae[0]+1)),Ae[0]%2&&Ae.reverse(),se.each(function(me,Le){me.page=Ae[Le],me.scrollY=be}),se.attr("transform",function(me){var Le=ee(me.rowBlocks,me.page)-me.scrollY;return t(0,Le)}),Z&&(te(Z,ne,se,Ae,ce.prevPages,ce,0),te(Z,ne,se,Ae,ce.prevPages,ce,1),u(ne,Z))}}function j(Z,se,ne,ce){return function(Te){var we=Te.calcdata?Te.calcdata:Te,Re=se.filter(function(Le){return we.key===Le.key}),be=ne||we.scrollbarState.dragMultiplier,Ae=we.scrollY;we.scrollY=ce===void 0?we.scrollY+be*C.event.dy:ce;var me=Re.selectAll("."+g.cn.yColumn).selectAll("."+g.cn.columnBlock).filter(k);return Y(Z,me,Re),we.scrollY===Ae}}function te(Z,se,ne,ce,ge,Te,we){var Re=ce[we]!==ge[we];Re&&(clearTimeout(Te.currentRepaint[we]),Te.currentRepaint[we]=setTimeout(function(){var be=ne.filter(function(Ae,me){return me===we&&ce[me]!==ge[me]});o(Z,se,be,ne),ge[we]=ce[we]}))}function ie(Z,se,ne,ce){return function(){var Te=C.select(se.parentNode);Te.each(function(we){var Re=we.fragments;Te.selectAll("tspan.line").each(function(Ve,Ie){Re[Ie].width=this.getComputedTextLength()});var be=Re[Re.length-1].width,Ae=Re.slice(0,-1),me=[],Le,He,Ue=0,ke=we.column.columnWidth-2*g.cellPad;for(we.value="";Ae.length;)Le=Ae.shift(),He=Le.width+be,Ue+He>ke&&(we.value+=me.join(g.wrapSpacer)+g.lineBreaker,me=[],Ue=0),me.push(Le.text),Ue+=He;Ue&&(we.value+=me.join(g.wrapSpacer)),we.wrapped=!0}),Te.selectAll("tspan.line").remove(),L(Te.select("."+g.cn.cellText),ne,Z,ce),C.select(se.parentNode.parentNode).call(X)}}function ue(Z,se,ne,ce,ge){return function(){if(!ge.settledY){var we=C.select(se.parentNode),Re=oe(ge),be=ge.key-Re.firstRowIndex,Ae=Re.rows[be].rowHeight,me=ge.cellHeightMayIncrease?se.parentNode.getBoundingClientRect().height+2*g.cellPad:Ae,Le=Math.max(me,Ae),He=Le-Re.rows[be].rowHeight;He&&(Re.rows[be].rowHeight=Le,Z.selectAll("."+g.cn.columnCell).call(X),Y(null,Z.filter(k),0),u(ne,ce,!0)),we.attr("transform",function(){var Ue=this,ke=Ue.parentNode,Ve=ke.getBoundingClientRect(),Ie=C.select(Ue.parentNode).select("."+g.cn.cellRect).node().getBoundingClientRect(),rt=Ue.transform.baseVal.consolidate(),Ke=Ie.top-Ve.top+(rt?rt.matrix.f:g.cellPad);return t(J(ge,C.select(Ue.parentNode).select("."+g.cn.cellTextHolder).node().getBoundingClientRect().width),Ke)}),ge.settledY=!0}}}function J(Z,se){switch(Z.align){case"left":return g.cellPad;case"right":return Z.column.columnWidth-(se||0)-g.cellPad;case"center":return(Z.column.columnWidth-(se||0))/2;default:return g.cellPad}}function X(Z){Z.attr("transform",function(se){var ne=se.rowBlocks[0].auxiliaryBlocks.reduce(function(we,Re){return we+V(Re,1/0)},0),ce=oe(se),ge=V(ce,se.key),Te=ge+ne;return t(0,Te)}).selectAll("."+g.cn.cellRect).attr("height",function(se){return $(oe(se),se.key).rowHeight})}function ee(Z,se){for(var ne=0,ce=se-1;ce>=0;ce--)ne+=Q(Z[ce]);return ne}function V(Z,se){for(var ne=0,ce=0;ce","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:r({},x.textfont,{}),editType:"calc"},text:x.text,textinfo:v.textinfo,texttemplate:C({editType:"plot"},{keys:p.eventDataKeys.concat(["label","value"])}),hovertext:x.hovertext,hoverinfo:v.hoverinfo,hovertemplate:g({},{keys:p.eventDataKeys}),textfont:x.textfont,insidetextfont:x.insidetextfont,outsidetextfont:r({},x.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:x.sort,root:v.root,domain:S({name:"treemap",trace:!0,editType:"calc"})}},79516:function(G,U,e){var g=e(7316);U.name="treemap",U.plot=function(C,i,S,x){g.plotBasePlot(U.name,C,i,S,x)},U.clean=function(C,i,S,x){g.cleanBasePlot(U.name,C,i,S,x)}},97840:function(G,U,e){var g=e(3776);U.r=function(C,i){return g.calc(C,i)},U.q=function(C){return g._runCrossTraceCalc("treemap",C)}},32984:function(G){G.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},34092:function(G,U,e){var g=e(3400),C=e(40516),i=e(76308),S=e(86968).Q,x=e(31508).handleText,v=e(78048).TEXTPAD,p=e(74174).handleMarkerDefaults,r=e(8932),t=r.hasColorscale,a=r.handleDefaults;G.exports=function(f,c,l,m){function h(s,L){return g.coerce(f,c,C,s,L)}var b=h("labels"),u=h("parents");if(!b||!b.length||!u||!u.length){c.visible=!1;return}var o=h("values");o&&o.length?h("branchvalues"):h("count"),h("level"),h("maxdepth");var d=h("tiling.packing");d==="squarify"&&h("tiling.squarifyratio"),h("tiling.flip"),h("tiling.pad");var w=h("text");h("texttemplate"),c.texttemplate||h("textinfo",g.isArrayOrTypedArray(w)?"text+label":"label"),h("hovertext"),h("hovertemplate");var A=h("pathbar.visible"),_="auto";x(f,c,m,h,_,{hasPathbar:A,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h("textposition");var y=c.textposition.indexOf("bottom")!==-1;p(f,c,m,h);var E=c._hasColorscale=t(f,"marker","colors")||(f.marker||{}).coloraxis;E?a(f,c,m,h,{prefix:"marker.",cLetter:"c"}):h("marker.depthfade",!(c.marker.colors||[]).length);var T=c.textfont.size*2;h("marker.pad.t",y?T/4:T),h("marker.pad.l",T/4),h("marker.pad.r",T/4),h("marker.pad.b",y?T:T/4),h("marker.cornerradius"),c._hovered={marker:{line:{width:2,color:i.contrast(m.paper_bgcolor)}}},A&&(h("pathbar.thickness",c.pathbar.textfont.size+2*v),h("pathbar.side"),h("pathbar.edgeshape")),h("sort"),h("root.color"),S(c,m,h),c._length=null}},95808:function(G,U,e){var g=e(33428),C=e(78176),i=e(82744),S=i.clearMinTextSize,x=e(60100).resizeText,v=e(52960);G.exports=function(r,t,a,n,f){var c=f.type,l=f.drawDescendants,m=r._fullLayout,h=m["_"+c+"layer"],b,u,o=!a;if(S(c,m),b=h.selectAll("g.trace."+c).data(t,function(w){return w[0].trace.uid}),b.enter().append("g").classed("trace",!0).classed(c,!0),b.order(),!m.uniformtext.mode&&C.hasTransition(a)){n&&(u=n());var d=g.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});d.each(function(){h.selectAll("g.trace").each(function(w){v(r,w,this,a,l)})})}else b.each(function(w){v(r,w,this,a,l)}),m.uniformtext.mode&&x(r,h.selectAll(".trace"),c);o&&b.exit().remove()}},27336:function(G,U,e){var g=e(33428),C=e(3400),i=e(43616),S=e(72736),x=e(13832),v=e(66192).styleOne,p=e(32984),r=e(78176),t=e(45716),a=!0;G.exports=function(f,c,l,m,h){var b=h.barDifY,u=h.width,o=h.height,d=h.viewX,w=h.viewY,A=h.pathSlice,_=h.toMoveInsideSlice,y=h.strTransform,E=h.hasTransition,T=h.handleSlicesExit,s=h.makeUpdateSliceInterpolator,L=h.makeUpdateTextInterpolator,M={},z=f._context.staticPlot,D=f._fullLayout,N=c[0],I=N.trace,k=N.hierarchy,B=u/I._entryDepth,O=r.listPath(l.data,"id"),H=x(k.copy(),[u,o],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();H=H.filter(function(j){var te=O.indexOf(j.data.id);return te===-1?!1:(j.x0=B*te,j.x1=B*(te+1),j.y0=b,j.y1=b+o,j.onPathbar=!0,!0)}),H.reverse(),m=m.data(H,r.getPtId),m.enter().append("g").classed("pathbar",!0),T(m,a,M,[u,o],A),m.order();var Y=m;E&&(Y=Y.transition().each("end",function(){var j=g.select(this);r.setSliceCursor(j,f,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),Y.each(function(j){j._x0=d(j.x0),j._x1=d(j.x1),j._y0=w(j.y0),j._y1=w(j.y1),j._hoverX=d(j.x1-Math.min(u,o)/2),j._hoverY=w(j.y1-o/2);var te=g.select(this),ie=C.ensureSingle(te,"path","surface",function(ee){ee.style("pointer-events",z?"none":"all")});E?ie.transition().attrTween("d",function(ee){var V=s(ee,a,M,[u,o]);return function(Q){return A(V(Q))}}):ie.attr("d",A),te.call(t,l,f,c,{styleOne:v,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(r.setSliceCursor,f,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:f._transitioning}),ie.call(v,j,I,f,{hovered:!1}),j._text=(r.getPtLabel(j)||"").split("
    ").join(" ")||"";var ue=C.ensureSingle(te,"g","slicetext"),J=C.ensureSingle(ue,"text","",function(ee){ee.attr("data-notex",1)}),X=C.ensureUniformFontSize(f,r.determineTextFont(I,j,D.font,{onPathbar:!0}));J.text(j._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,X).call(S.convertToTspans,f),j.textBB=i.bBox(J.node()),j.transform=_(j,{fontSize:X.size,onPathbar:!0}),j.transform.fontSize=X.size,E?J.transition().attrTween("transform",function(ee){var V=L(ee,a,M,[u,o]);return function(Q){return y(V(Q))}}):J.attr("transform",y(j))})}},76477:function(G,U,e){var g=e(33428),C=e(3400),i=e(43616),S=e(72736),x=e(13832),v=e(66192).styleOne,p=e(32984),r=e(78176),t=e(45716),a=e(96488).formatSliceLabel,n=!1;G.exports=function(c,l,m,h,b){var u=b.width,o=b.height,d=b.viewX,w=b.viewY,A=b.pathSlice,_=b.toMoveInsideSlice,y=b.strTransform,E=b.hasTransition,T=b.handleSlicesExit,s=b.makeUpdateSliceInterpolator,L=b.makeUpdateTextInterpolator,M=b.prevEntry,z={},D=c._context.staticPlot,N=c._fullLayout,I=l[0],k=I.trace,B=k.textposition.indexOf("left")!==-1,O=k.textposition.indexOf("right")!==-1,H=k.textposition.indexOf("bottom")!==-1,Y=!H&&!k.marker.pad.t||H&&!k.marker.pad.b,j=x(m,[u,o],{packing:k.tiling.packing,squarifyratio:k.tiling.squarifyratio,flipX:k.tiling.flip.indexOf("x")>-1,flipY:k.tiling.flip.indexOf("y")>-1,pad:{inner:k.tiling.pad,top:k.marker.pad.t,left:k.marker.pad.l,right:k.marker.pad.r,bottom:k.marker.pad.b}}),te=j.descendants(),ie=1/0,ue=-1/0;te.forEach(function(Q){var oe=Q.depth;oe>=k._maxDepth?(Q.x0=Q.x1=(Q.x0+Q.x1)/2,Q.y0=Q.y1=(Q.y0+Q.y1)/2):(ie=Math.min(ie,oe),ue=Math.max(ue,oe))}),h=h.data(te,r.getPtId),k._maxVisibleLayers=isFinite(ue)?ue-ie+1:0,h.enter().append("g").classed("slice",!0),T(h,n,z,[u,o],A),h.order();var J=null;if(E&&M){var X=r.getPtId(M);h.each(function(Q){J===null&&r.getPtId(Q)===X&&(J={x0:Q.x0,x1:Q.x1,y0:Q.y0,y1:Q.y1})})}var ee=function(){return J||{x0:0,x1:u,y0:0,y1:o}},V=h;return E&&(V=V.transition().each("end",function(){var Q=g.select(this);r.setSliceCursor(Q,c,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),V.each(function(Q){var oe=r.isHeader(Q,k);Q._x0=d(Q.x0),Q._x1=d(Q.x1),Q._y0=w(Q.y0),Q._y1=w(Q.y1),Q._hoverX=d(Q.x1-k.marker.pad.r),Q._hoverY=w(H?Q.y1-k.marker.pad.b/2:Q.y0+k.marker.pad.t/2);var $=g.select(this),Z=C.ensureSingle($,"path","surface",function(we){we.style("pointer-events",D?"none":"all")});E?Z.transition().attrTween("d",function(we){var Re=s(we,n,ee(),[u,o]);return function(be){return A(Re(be))}}):Z.attr("d",A),$.call(t,m,c,l,{styleOne:v,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(r.setSliceCursor,c,{isTransitioning:c._transitioning}),Z.call(v,Q,k,c,{hovered:!1}),Q.x0===Q.x1||Q.y0===Q.y1?Q._text="":oe?Q._text=Y?"":r.getPtLabel(Q)||"":Q._text=a(Q,m,k,l,N)||"";var se=C.ensureSingle($,"g","slicetext"),ne=C.ensureSingle(se,"text","",function(we){we.attr("data-notex",1)}),ce=C.ensureUniformFontSize(c,r.determineTextFont(k,Q,N.font)),ge=Q._text||" ",Te=oe&&ge.indexOf("
    ")===-1;ne.text(ge).classed("slicetext",!0).attr("text-anchor",O?"end":B||Te?"start":"middle").call(i.font,ce).call(S.convertToTspans,c),Q.textBB=i.bBox(ne.node()),Q.transform=_(Q,{fontSize:ce.size,isHeader:oe}),Q.transform.fontSize=ce.size,E?ne.transition().attrTween("transform",function(we){var Re=L(we,n,ee(),[u,o]);return function(be){return y(Re(be))}}):ne.attr("transform",y(Q))}),J}},83024:function(G){G.exports=function U(e,g,C){var i;C.swapXY&&(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i),C.flipX&&(i=e.x0,e.x0=g[0]-e.x1,e.x1=g[0]-i),C.flipY&&(i=e.y0,e.y0=g[1]-e.y1,e.y1=g[1]-i);var S=e.children;if(S)for(var x=0;x-1?O+j:-(Y+j):0,ie={x0:H,x1:H,y0:te,y1:te+Y},ue=function(ze,Xe,Je){var We=w.tiling.pad,Fe=function(Me){return Me-We<=Xe.x0},xe=function(Me){return Me+We>=Xe.x1},ye=function(Me){return Me-We<=Xe.y0},Ee=function(Me){return Me+We>=Xe.y1};return ze.x0===Xe.x0&&ze.x1===Xe.x1&&ze.y0===Xe.y0&&ze.y1===Xe.y1?{x0:ze.x0,x1:ze.x1,y0:ze.y0,y1:ze.y1}:{x0:Fe(ze.x0-We)?0:xe(ze.x0-We)?Je[0]:ze.x0,x1:Fe(ze.x1+We)?0:xe(ze.x1+We)?Je[0]:ze.x1,y0:ye(ze.y0-We)?0:Ee(ze.y0-We)?Je[1]:ze.y0,y1:ye(ze.y1+We)?0:Ee(ze.y1+We)?Je[1]:ze.y1}},J=null,X={},ee={},V=null,Q=function(ze,Xe){return Xe?X[f(ze)]:ee[f(ze)]},oe=function(ze,Xe,Je,We){if(Xe)return X[f(y)]||ie;var Fe=ee[w.level]||Je;return N(ze)?ue(ze,Fe,We):{}};d.hasMultipleRoots&&M&&D++,w._maxDepth=D,w._backgroundColor=o.paper_bgcolor,w._entryDepth=E.data.depth,w._atRootLevel=M;var $=-B/2+I.l+I.w*(k.x[1]+k.x[0])/2,Z=-O/2+I.t+I.h*(1-(k.y[1]+k.y[0])/2),se=function(ze){return $+ze},ne=function(ze){return Z+ze},ce=ne(0),ge=se(0),Te=function(ze){return ge+ze},we=function(ze){return ce+ze};function Re(ze,Xe){return ze+","+Xe}var be=Te(0),Ae=function(ze){ze.x=Math.max(be,ze.x)},me=w.pathbar.edgeshape,Le=function(ze){var Xe=Te(Math.max(Math.min(ze.x0,ze.x0),0)),Je=Te(Math.min(Math.max(ze.x1,ze.x1),H)),We=we(ze.y0),Fe=we(ze.y1),xe=Y/2,ye={},Ee={};ye.x=Xe,Ee.x=Je,ye.y=Ee.y=(We+Fe)/2;var Me={x:Xe,y:We},Ne={x:Je,y:We},je={x:Je,y:Fe},it={x:Xe,y:Fe};return me===">"?(Me.x-=xe,Ne.x-=xe,je.x-=xe,it.x-=xe):me==="/"?(je.x-=xe,it.x-=xe,ye.x-=xe/2,Ee.x-=xe/2):me==="\\"?(Me.x-=xe,Ne.x-=xe,ye.x-=xe/2,Ee.x-=xe/2):me==="<"&&(ye.x-=xe,Ee.x-=xe),Ae(Me),Ae(it),Ae(ye),Ae(Ne),Ae(je),Ae(Ee),"M"+Re(Me.x,Me.y)+"L"+Re(Ne.x,Ne.y)+"L"+Re(Ee.x,Ee.y)+"L"+Re(je.x,je.y)+"L"+Re(it.x,it.y)+"L"+Re(ye.x,ye.y)+"Z"},He=w[_?"tiling":"marker"].pad,Ue=function(ze){return w.textposition.indexOf(ze)!==-1},ke=Ue("top"),Ve=Ue("left"),Ie=Ue("right"),rt=Ue("bottom"),Ke=function(ze){var Xe=se(ze.x0),Je=se(ze.x1),We=ne(ze.y0),Fe=ne(ze.y1),xe=Je-Xe,ye=Fe-We;if(!xe||!ye)return"";var Ee=w.marker.cornerradius||0,Me=Math.min(Ee,xe/2,ye/2);Me&&ze.data&&ze.data.data&&ze.data.data.label&&(ke&&(Me=Math.min(Me,He.t)),Ve&&(Me=Math.min(Me,He.l)),Ie&&(Me=Math.min(Me,He.r)),rt&&(Me=Math.min(Me,He.b)));var Ne=function(je,it){return Me?"a"+Re(Me,Me)+" 0 0 1 "+Re(je,it):""};return"M"+Re(Xe,We+Me)+Ne(Me,-Me)+"L"+Re(Je-Me,We)+Ne(Me,Me)+"L"+Re(Je,Fe-Me)+Ne(-Me,Me)+"L"+Re(Xe+Me,Fe)+Ne(-Me,-Me)+"Z"},$e=function(ze,Xe){var Je=ze.x0,We=ze.x1,Fe=ze.y0,xe=ze.y1,ye=ze.textBB,Ee=ke||Xe.isHeader&&!rt,Me=Ee?"start":rt?"end":"middle",Ne=Ue("right"),je=Ue("left")||Xe.onPathbar,it=je?-1:Ne?1:0;if(Xe.isHeader){if(Je+=(_?He:He.l)-x,We-=(_?He:He.r)-x,Je>=We){var mt=(Je+We)/2;Je=mt,We=mt}var bt;rt?(bt=xe-(_?He:He.b),Fe0)for(var T=0;T0){var A=p.xa,_=p.ya,y,E,T,s,L;l.orientation==="h"?(L=r,y="y",T=_,E="x",s=A):(L=t,y="x",T=A,E="y",s=_);var M=c[p.index];if(L>=M.span[0]&&L<=M.span[1]){var z=C.extendFlat({},p),D=s.c2p(L,!0),N=x.getKdeValue(M,l,L),I=x.getPositionOnKdePath(M,l,D),k=T._offset,B=T._length;z[y+"0"]=I[0],z[y+"1"]=I[1],z[E+"0"]=z[E+"1"]=D,z[E+"Label"]=E+": "+i.hoverLabelText(s,L,l[E+"hoverformat"])+", "+c[0].t.labels.kde+" "+N.toFixed(3);for(var O=0,H=0;H")),c.color=v(m,w),[c]};function v(p,r){var t=p[r.dir].marker,a=t.color,n=t.line.color,f=t.line.width;if(C(a))return a;if(C(n)&&f)return n}},95952:function(G,U,e){G.exports={attributes:e(65776),layoutAttributes:e(91352),supplyDefaults:e(24224).supplyDefaults,crossTraceDefaults:e(24224).crossTraceDefaults,supplyLayoutDefaults:e(59464),calc:e(73540),crossTraceCalc:e(50152),plot:e(64488),style:e(12252).style,hoverPoints:e(94196),eventData:e(53256),selectPoints:e(45784),moduleType:"trace",name:"waterfall",basePlotModule:e(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},91352:function(G){G.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},59464:function(G,U,e){var g=e(3400),C=e(91352);G.exports=function(i,S,x){var v=!1;function p(a,n){return g.coerce(i,S,C,a,n)}for(var r=0;r0&&(o?L+="M"+T[0]+","+s[1]+"V"+s[0]:L+="M"+T[1]+","+s[0]+"H"+T[0]),d!=="between"&&(_.isSum||y path").each(function(h){if(!h.isBlank){var b=m[h.dir].marker;g.select(this).call(i.fill,b.color).call(i.stroke,b.line.color).call(C.dashLine,b.line.dash,b.line.width).style("opacity",m.selectedpoints&&!h.selected?S:1)}}),p(l,m,t),l.selectAll(".lines").each(function(){var h=m.connector.line;C.lineGroupStyle(g.select(this).selectAll("path"),h.width,h.color,h.dash)})})}G.exports={style:r}},84224:function(G,U,e){var g=e(54460),C=e(3400),i=e(73060),S=e(60468).W,x=e(39032).BADNUM;U.moduleType="transform",U.name="aggregate";var v=U.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},p=v.aggregations;U.supplyDefaults=function(c,l){var m={},h;function b(M,z){return C.coerce(c,m,v,M,z)}var u=b("enabled");if(!u)return m;var o=i.findArrayAttributes(l),d={};for(h=0;hw&&(w=E,A=y)}}return w?b(A):x};case"rms":return function(u,o){for(var d=0,w=0,A=0;A":return function(d){return u(d)>o};case">=":return function(d){return u(d)>=o};case"[]":return function(d){var w=u(d);return w>=o[0]&&w<=o[1]};case"()":return function(d){var w=u(d);return w>o[0]&&w=o[0]&&wo[0]&&w<=o[1]};case"][":return function(d){var w=u(d);return w<=o[0]||w>=o[1]};case")(":return function(d){var w=u(d);return wo[1]};case"](":return function(d){var w=u(d);return w<=o[0]||w>o[1]};case")[":return function(d){var w=u(d);return w=o[1]};case"{}":return function(d){return o.indexOf(u(d))!==-1};case"}{":return function(d){return o.indexOf(u(d))===-1}}}},32028:function(G,U,e){var g=e(3400),C=e(73060),i=e(7316),S=e(60468).W;U.moduleType="transform",U.name="groupby",U.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},U.supplyDefaults=function(v,p,r){var t,a={};function n(b,u){return g.coerce(v,a,U.attributes,b,u)}var f=n("enabled");if(!f)return a;n("groups"),n("nameformat",r._dataLength>1?"%{group} (%{trace})":"%{group}");var c=v.styles,l=a.styles=[];if(c)for(t=0;t +* @license MIT +*/function t(xe,ye){if(!(xe instanceof ye))throw new TypeError("Cannot call a class as a function")}function a(xe,ye){for(var Ee=0;Ee"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(xe){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ee){return Ee.__proto__||Object.getPrototypeOf(Ee)},u(xe)}function o(xe){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},o(xe)}var d=r(3910),w=r(3187),A=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.lW=T,p.h2=50;var _=2147483647;T.TYPED_ARRAY_SUPPORT=y(),!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function y(){try{var xe=new Uint8Array(1),ye={foo:function(){return 42}};return Object.setPrototypeOf(ye,Uint8Array.prototype),Object.setPrototypeOf(xe,ye),xe.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function E(xe){if(xe>_)throw new RangeError('The value "'+xe+'" is invalid for option "size"');var ye=new Uint8Array(xe);return Object.setPrototypeOf(ye,T.prototype),ye}function T(xe,ye,Ee){if(typeof xe=="number"){if(typeof ye=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(xe)}return s(xe,ye,Ee)}T.poolSize=8192;function s(xe,ye,Ee){if(typeof xe=="string")return D(xe,ye);if(ArrayBuffer.isView(xe))return I(xe);if(xe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+o(xe));if(ze(xe,ArrayBuffer)||xe&&ze(xe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(xe,SharedArrayBuffer)||xe&&ze(xe.buffer,SharedArrayBuffer)))return k(xe,ye,Ee);if(typeof xe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Me=xe.valueOf&&xe.valueOf();if(Me!=null&&Me!==xe)return T.from(Me,ye,Ee);var Ne=B(xe);if(Ne)return Ne;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof xe[Symbol.toPrimitive]=="function")return T.from(xe[Symbol.toPrimitive]("string"),ye,Ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+o(xe))}T.from=function(xe,ye,Ee){return s(xe,ye,Ee)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function L(xe){if(typeof xe!="number")throw new TypeError('"size" argument must be of type number');if(xe<0)throw new RangeError('The value "'+xe+'" is invalid for option "size"')}function M(xe,ye,Ee){return L(xe),xe<=0?E(xe):ye!==void 0?typeof Ee=="string"?E(xe).fill(ye,Ee):E(xe).fill(ye):E(xe)}T.alloc=function(xe,ye,Ee){return M(xe,ye,Ee)};function z(xe){return L(xe),E(xe<0?0:O(xe)|0)}T.allocUnsafe=function(xe){return z(xe)},T.allocUnsafeSlow=function(xe){return z(xe)};function D(xe,ye){if((typeof ye!="string"||ye==="")&&(ye="utf8"),!T.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);var Ee=H(xe,ye)|0,Me=E(Ee),Ne=Me.write(xe,ye);return Ne!==Ee&&(Me=Me.slice(0,Ne)),Me}function N(xe){for(var ye=xe.length<0?0:O(xe.length)|0,Ee=E(ye),Me=0;Me=_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_.toString(16)+" bytes");return xe|0}T.isBuffer=function(ye){return ye!=null&&ye._isBuffer===!0&&ye!==T.prototype},T.compare=function(ye,Ee){if(ze(ye,Uint8Array)&&(ye=T.from(ye,ye.offset,ye.byteLength)),ze(Ee,Uint8Array)&&(Ee=T.from(Ee,Ee.offset,Ee.byteLength)),!T.isBuffer(ye)||!T.isBuffer(Ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ye===Ee)return 0;for(var Me=ye.length,Ne=Ee.length,je=0,it=Math.min(Me,Ne);jeNe.length?(T.isBuffer(it)||(it=T.from(it)),it.copy(Ne,je)):Uint8Array.prototype.set.call(Ne,it,je);else if(T.isBuffer(it))it.copy(Ne,je);else throw new TypeError('"list" argument must be an Array of Buffers');je+=it.length}return Ne};function H(xe,ye){if(T.isBuffer(xe))return xe.length;if(ArrayBuffer.isView(xe)||ze(xe,ArrayBuffer))return xe.byteLength;if(typeof xe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+o(xe));var Ee=xe.length,Me=arguments.length>2&&arguments[2]===!0;if(!Me&&Ee===0)return 0;for(var Ne=!1;;)switch(ye){case"ascii":case"latin1":case"binary":return Ee;case"utf8":case"utf-8":return ht(xe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee*2;case"hex":return Ee>>>1;case"base64":return St(xe).length;default:if(Ne)return Me?-1:ht(xe).length;ye=(""+ye).toLowerCase(),Ne=!0}}T.byteLength=H;function Y(xe,ye,Ee){var Me=!1;if((ye===void 0||ye<0)&&(ye=0),ye>this.length||((Ee===void 0||Ee>this.length)&&(Ee=this.length),Ee<=0)||(Ee>>>=0,ye>>>=0,Ee<=ye))return"";for(xe||(xe="utf8");;)switch(xe){case"hex":return ce(this,ye,Ee);case"utf8":case"utf-8":return oe(this,ye,Ee);case"ascii":return se(this,ye,Ee);case"latin1":case"binary":return ne(this,ye,Ee);case"base64":return Q(this,ye,Ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,ye,Ee);default:if(Me)throw new TypeError("Unknown encoding: "+xe);xe=(xe+"").toLowerCase(),Me=!0}}T.prototype._isBuffer=!0;function j(xe,ye,Ee){var Me=xe[ye];xe[ye]=xe[Ee],xe[Ee]=Me}T.prototype.swap16=function(){var ye=this.length;if(ye%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ee=0;EeEe&&(ye+=" ... "),""},A&&(T.prototype[A]=T.prototype.inspect),T.prototype.compare=function(ye,Ee,Me,Ne,je){if(ze(ye,Uint8Array)&&(ye=T.from(ye,ye.offset,ye.byteLength)),!T.isBuffer(ye))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+o(ye));if(Ee===void 0&&(Ee=0),Me===void 0&&(Me=ye?ye.length:0),Ne===void 0&&(Ne=0),je===void 0&&(je=this.length),Ee<0||Me>ye.length||Ne<0||je>this.length)throw new RangeError("out of range index");if(Ne>=je&&Ee>=Me)return 0;if(Ne>=je)return-1;if(Ee>=Me)return 1;if(Ee>>>=0,Me>>>=0,Ne>>>=0,je>>>=0,this===ye)return 0;for(var it=je-Ne,mt=Me-Ee,bt=Math.min(it,mt),vt=this.slice(Ne,je),Lt=ye.slice(Ee,Me),ct=0;ct2147483647?Ee=2147483647:Ee<-2147483648&&(Ee=-2147483648),Ee=+Ee,Xe(Ee)&&(Ee=Ne?0:xe.length-1),Ee<0&&(Ee=xe.length+Ee),Ee>=xe.length){if(Ne)return-1;Ee=xe.length-1}else if(Ee<0)if(Ne)Ee=0;else return-1;if(typeof ye=="string"&&(ye=T.from(ye,Me)),T.isBuffer(ye))return ye.length===0?-1:ie(xe,ye,Ee,Me,Ne);if(typeof ye=="number")return ye=ye&255,typeof Uint8Array.prototype.indexOf=="function"?Ne?Uint8Array.prototype.indexOf.call(xe,ye,Ee):Uint8Array.prototype.lastIndexOf.call(xe,ye,Ee):ie(xe,[ye],Ee,Me,Ne);throw new TypeError("val must be string, number or Buffer")}function ie(xe,ye,Ee,Me,Ne){var je=1,it=xe.length,mt=ye.length;if(Me!==void 0&&(Me=String(Me).toLowerCase(),Me==="ucs2"||Me==="ucs-2"||Me==="utf16le"||Me==="utf-16le")){if(xe.length<2||ye.length<2)return-1;je=2,it/=2,mt/=2,Ee/=2}function bt(Bt,ir){return je===1?Bt[ir]:Bt.readUInt16BE(ir*je)}var vt;if(Ne){var Lt=-1;for(vt=Ee;vtit&&(Ee=it-mt),vt=Ee;vt>=0;vt--){for(var ct=!0,Tt=0;TtNe&&(Me=Ne)):Me=Ne;var je=ye.length;Me>je/2&&(Me=je/2);var it;for(it=0;it>>0,isFinite(Me)?(Me=Me>>>0,Ne===void 0&&(Ne="utf8")):(Ne=Me,Me=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-Ee;if((Me===void 0||Me>je)&&(Me=je),ye.length>0&&(Me<0||Ee<0)||Ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ne||(Ne="utf8");for(var it=!1;;)switch(Ne){case"hex":return ue(this,ye,Ee,Me);case"utf8":case"utf-8":return J(this,ye,Ee,Me);case"ascii":case"latin1":case"binary":return X(this,ye,Ee,Me);case"base64":return ee(this,ye,Ee,Me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,ye,Ee,Me);default:if(it)throw new TypeError("Unknown encoding: "+Ne);Ne=(""+Ne).toLowerCase(),it=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(xe,ye,Ee){return ye===0&&Ee===xe.length?d.fromByteArray(xe):d.fromByteArray(xe.slice(ye,Ee))}function oe(xe,ye,Ee){Ee=Math.min(xe.length,Ee);for(var Me=[],Ne=ye;Ne239?4:je>223?3:je>191?2:1;if(Ne+mt<=Ee){var bt=void 0,vt=void 0,Lt=void 0,ct=void 0;switch(mt){case 1:je<128&&(it=je);break;case 2:bt=xe[Ne+1],(bt&192)===128&&(ct=(je&31)<<6|bt&63,ct>127&&(it=ct));break;case 3:bt=xe[Ne+1],vt=xe[Ne+2],(bt&192)===128&&(vt&192)===128&&(ct=(je&15)<<12|(bt&63)<<6|vt&63,ct>2047&&(ct<55296||ct>57343)&&(it=ct));break;case 4:bt=xe[Ne+1],vt=xe[Ne+2],Lt=xe[Ne+3],(bt&192)===128&&(vt&192)===128&&(Lt&192)===128&&(ct=(je&15)<<18|(bt&63)<<12|(vt&63)<<6|Lt&63,ct>65535&&ct<1114112&&(it=ct))}}it===null?(it=65533,mt=1):it>65535&&(it-=65536,Me.push(it>>>10&1023|55296),it=56320|it&1023),Me.push(it),Ne+=mt}return Z(Me)}var $=4096;function Z(xe){var ye=xe.length;if(ye<=$)return String.fromCharCode.apply(String,xe);for(var Ee="",Me=0;MeMe)&&(Ee=Me);for(var Ne="",je=ye;jeMe&&(ye=Me),Ee<0?(Ee+=Me,Ee<0&&(Ee=0)):Ee>Me&&(Ee=Me),EeEe)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(ye,Ee,Me){ye=ye>>>0,Ee=Ee>>>0,Me||Te(ye,Ee,this.length);for(var Ne=this[ye],je=1,it=0;++it>>0,Ee=Ee>>>0,Me||Te(ye,Ee,this.length);for(var Ne=this[ye+--Ee],je=1;Ee>0&&(je*=256);)Ne+=this[ye+--Ee]*je;return Ne},T.prototype.readUint8=T.prototype.readUInt8=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,1,this.length),this[ye]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,2,this.length),this[ye]|this[ye+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,2,this.length),this[ye]<<8|this[ye+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,4,this.length),(this[ye]|this[ye+1]<<8|this[ye+2]<<16)+this[ye+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,4,this.length),this[ye]*16777216+(this[ye+1]<<16|this[ye+2]<<8|this[ye+3])},T.prototype.readBigUInt64LE=We(function(ye){ye=ye>>>0,rt(ye,"offset");var Ee=this[ye],Me=this[ye+7];(Ee===void 0||Me===void 0)&&Ke(ye,this.length-8);var Ne=Ee+this[++ye]*Math.pow(2,8)+this[++ye]*Math.pow(2,16)+this[++ye]*Math.pow(2,24),je=this[++ye]+this[++ye]*Math.pow(2,8)+this[++ye]*Math.pow(2,16)+Me*Math.pow(2,24);return BigInt(Ne)+(BigInt(je)<>>0,rt(ye,"offset");var Ee=this[ye],Me=this[ye+7];(Ee===void 0||Me===void 0)&&Ke(ye,this.length-8);var Ne=Ee*Math.pow(2,24)+this[++ye]*Math.pow(2,16)+this[++ye]*Math.pow(2,8)+this[++ye],je=this[++ye]*Math.pow(2,24)+this[++ye]*Math.pow(2,16)+this[++ye]*Math.pow(2,8)+Me;return(BigInt(Ne)<>>0,Ee=Ee>>>0,Me||Te(ye,Ee,this.length);for(var Ne=this[ye],je=1,it=0;++it=je&&(Ne-=Math.pow(2,8*Ee)),Ne},T.prototype.readIntBE=function(ye,Ee,Me){ye=ye>>>0,Ee=Ee>>>0,Me||Te(ye,Ee,this.length);for(var Ne=Ee,je=1,it=this[ye+--Ne];Ne>0&&(je*=256);)it+=this[ye+--Ne]*je;return je*=128,it>=je&&(it-=Math.pow(2,8*Ee)),it},T.prototype.readInt8=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,1,this.length),this[ye]&128?(255-this[ye]+1)*-1:this[ye]},T.prototype.readInt16LE=function(ye,Ee){ye=ye>>>0,Ee||Te(ye,2,this.length);var Me=this[ye]|this[ye+1]<<8;return Me&32768?Me|4294901760:Me},T.prototype.readInt16BE=function(ye,Ee){ye=ye>>>0,Ee||Te(ye,2,this.length);var Me=this[ye+1]|this[ye]<<8;return Me&32768?Me|4294901760:Me},T.prototype.readInt32LE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,4,this.length),this[ye]|this[ye+1]<<8|this[ye+2]<<16|this[ye+3]<<24},T.prototype.readInt32BE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,4,this.length),this[ye]<<24|this[ye+1]<<16|this[ye+2]<<8|this[ye+3]},T.prototype.readBigInt64LE=We(function(ye){ye=ye>>>0,rt(ye,"offset");var Ee=this[ye],Me=this[ye+7];(Ee===void 0||Me===void 0)&&Ke(ye,this.length-8);var Ne=this[ye+4]+this[ye+5]*Math.pow(2,8)+this[ye+6]*Math.pow(2,16)+(Me<<24);return(BigInt(Ne)<>>0,rt(ye,"offset");var Ee=this[ye],Me=this[ye+7];(Ee===void 0||Me===void 0)&&Ke(ye,this.length-8);var Ne=(Ee<<24)+this[++ye]*Math.pow(2,16)+this[++ye]*Math.pow(2,8)+this[++ye];return(BigInt(Ne)<>>0,Ee||Te(ye,4,this.length),w.read(this,ye,!0,23,4)},T.prototype.readFloatBE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,4,this.length),w.read(this,ye,!1,23,4)},T.prototype.readDoubleLE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,8,this.length),w.read(this,ye,!0,52,8)},T.prototype.readDoubleBE=function(ye,Ee){return ye=ye>>>0,Ee||Te(ye,8,this.length),w.read(this,ye,!1,52,8)};function we(xe,ye,Ee,Me,Ne,je){if(!T.isBuffer(xe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ye>Ne||yexe.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(ye,Ee,Me,Ne){if(ye=+ye,Ee=Ee>>>0,Me=Me>>>0,!Ne){var je=Math.pow(2,8*Me)-1;we(this,ye,Ee,Me,je,0)}var it=1,mt=0;for(this[Ee]=ye&255;++mt>>0,Me=Me>>>0,!Ne){var je=Math.pow(2,8*Me)-1;we(this,ye,Ee,Me,je,0)}var it=Me-1,mt=1;for(this[Ee+it]=ye&255;--it>=0&&(mt*=256);)this[Ee+it]=ye/mt&255;return Ee+Me},T.prototype.writeUint8=T.prototype.writeUInt8=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,1,255,0),this[Ee]=ye&255,Ee+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,2,65535,0),this[Ee]=ye&255,this[Ee+1]=ye>>>8,Ee+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,2,65535,0),this[Ee]=ye>>>8,this[Ee+1]=ye&255,Ee+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,4,4294967295,0),this[Ee+3]=ye>>>24,this[Ee+2]=ye>>>16,this[Ee+1]=ye>>>8,this[Ee]=ye&255,Ee+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,4,4294967295,0),this[Ee]=ye>>>24,this[Ee+1]=ye>>>16,this[Ee+2]=ye>>>8,this[Ee+3]=ye&255,Ee+4};function Re(xe,ye,Ee,Me,Ne){Ie(ye,Me,Ne,xe,Ee,7);var je=Number(ye&BigInt(4294967295));xe[Ee++]=je,je=je>>8,xe[Ee++]=je,je=je>>8,xe[Ee++]=je,je=je>>8,xe[Ee++]=je;var it=Number(ye>>BigInt(32)&BigInt(4294967295));return xe[Ee++]=it,it=it>>8,xe[Ee++]=it,it=it>>8,xe[Ee++]=it,it=it>>8,xe[Ee++]=it,Ee}function be(xe,ye,Ee,Me,Ne){Ie(ye,Me,Ne,xe,Ee,7);var je=Number(ye&BigInt(4294967295));xe[Ee+7]=je,je=je>>8,xe[Ee+6]=je,je=je>>8,xe[Ee+5]=je,je=je>>8,xe[Ee+4]=je;var it=Number(ye>>BigInt(32)&BigInt(4294967295));return xe[Ee+3]=it,it=it>>8,xe[Ee+2]=it,it=it>>8,xe[Ee+1]=it,it=it>>8,xe[Ee]=it,Ee+8}T.prototype.writeBigUInt64LE=We(function(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Re(this,ye,Ee,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=We(function(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return be(this,ye,Ee,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(ye,Ee,Me,Ne){if(ye=+ye,Ee=Ee>>>0,!Ne){var je=Math.pow(2,8*Me-1);we(this,ye,Ee,Me,je-1,-je)}var it=0,mt=1,bt=0;for(this[Ee]=ye&255;++it>0)-bt&255;return Ee+Me},T.prototype.writeIntBE=function(ye,Ee,Me,Ne){if(ye=+ye,Ee=Ee>>>0,!Ne){var je=Math.pow(2,8*Me-1);we(this,ye,Ee,Me,je-1,-je)}var it=Me-1,mt=1,bt=0;for(this[Ee+it]=ye&255;--it>=0&&(mt*=256);)ye<0&&bt===0&&this[Ee+it+1]!==0&&(bt=1),this[Ee+it]=(ye/mt>>0)-bt&255;return Ee+Me},T.prototype.writeInt8=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,1,127,-128),ye<0&&(ye=255+ye+1),this[Ee]=ye&255,Ee+1},T.prototype.writeInt16LE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,2,32767,-32768),this[Ee]=ye&255,this[Ee+1]=ye>>>8,Ee+2},T.prototype.writeInt16BE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,2,32767,-32768),this[Ee]=ye>>>8,this[Ee+1]=ye&255,Ee+2},T.prototype.writeInt32LE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,4,2147483647,-2147483648),this[Ee]=ye&255,this[Ee+1]=ye>>>8,this[Ee+2]=ye>>>16,this[Ee+3]=ye>>>24,Ee+4},T.prototype.writeInt32BE=function(ye,Ee,Me){return ye=+ye,Ee=Ee>>>0,Me||we(this,ye,Ee,4,2147483647,-2147483648),ye<0&&(ye=4294967295+ye+1),this[Ee]=ye>>>24,this[Ee+1]=ye>>>16,this[Ee+2]=ye>>>8,this[Ee+3]=ye&255,Ee+4},T.prototype.writeBigInt64LE=We(function(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Re(this,ye,Ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=We(function(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return be(this,ye,Ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ae(xe,ye,Ee,Me,Ne,je){if(Ee+Me>xe.length)throw new RangeError("Index out of range");if(Ee<0)throw new RangeError("Index out of range")}function me(xe,ye,Ee,Me,Ne){return ye=+ye,Ee=Ee>>>0,Ne||Ae(xe,ye,Ee,4),w.write(xe,ye,Ee,Me,23,4),Ee+4}T.prototype.writeFloatLE=function(ye,Ee,Me){return me(this,ye,Ee,!0,Me)},T.prototype.writeFloatBE=function(ye,Ee,Me){return me(this,ye,Ee,!1,Me)};function Le(xe,ye,Ee,Me,Ne){return ye=+ye,Ee=Ee>>>0,Ne||Ae(xe,ye,Ee,8),w.write(xe,ye,Ee,Me,52,8),Ee+8}T.prototype.writeDoubleLE=function(ye,Ee,Me){return Le(this,ye,Ee,!0,Me)},T.prototype.writeDoubleBE=function(ye,Ee,Me){return Le(this,ye,Ee,!1,Me)},T.prototype.copy=function(ye,Ee,Me,Ne){if(!T.isBuffer(ye))throw new TypeError("argument should be a Buffer");if(Me||(Me=0),!Ne&&Ne!==0&&(Ne=this.length),Ee>=ye.length&&(Ee=ye.length),Ee||(Ee=0),Ne>0&&Ne=this.length)throw new RangeError("Index out of range");if(Ne<0)throw new RangeError("sourceEnd out of bounds");Ne>this.length&&(Ne=this.length),ye.length-Ee>>0,Me=Me===void 0?this.length:Me>>>0,ye||(ye=0);var it;if(typeof ye=="number")for(it=Ee;itMath.pow(2,32)?Ne=ke(String(Ee)):typeof Ee=="bigint"&&(Ne=String(Ee),(Ee>Math.pow(BigInt(2),BigInt(32))||Ee<-Math.pow(BigInt(2),BigInt(32)))&&(Ne=ke(Ne)),Ne+="n"),Me+=" It must be ".concat(ye,". Received ").concat(Ne),Me},RangeError);function ke(xe){for(var ye="",Ee=xe.length,Me=xe[0]==="-"?1:0;Ee>=Me+4;Ee-=3)ye="_".concat(xe.slice(Ee-3,Ee)).concat(ye);return"".concat(xe.slice(0,Ee)).concat(ye)}function Ve(xe,ye,Ee){rt(ye,"offset"),(xe[ye]===void 0||xe[ye+Ee]===void 0)&&Ke(ye,xe.length-(Ee+1))}function Ie(xe,ye,Ee,Me,Ne,je){if(xe>Ee||xe3?ye===0||ye===BigInt(0)?mt=">= 0".concat(it," and < 2").concat(it," ** ").concat((je+1)*8).concat(it):mt=">= -(2".concat(it," ** ").concat((je+1)*8-1).concat(it,") and < 2 ** ")+"".concat((je+1)*8-1).concat(it):mt=">= ".concat(ye).concat(it," and <= ").concat(Ee).concat(it),new He.ERR_OUT_OF_RANGE("value",mt,xe)}Ve(Me,Ne,je)}function rt(xe,ye){if(typeof xe!="number")throw new He.ERR_INVALID_ARG_TYPE(ye,"number",xe)}function Ke(xe,ye,Ee){throw Math.floor(xe)!==xe?(rt(xe,Ee),new He.ERR_OUT_OF_RANGE(Ee||"offset","an integer",xe)):ye<0?new He.ERR_BUFFER_OUT_OF_BOUNDS:new He.ERR_OUT_OF_RANGE(Ee||"offset",">= ".concat(Ee?1:0," and <= ").concat(ye),xe)}var $e=/[^+/0-9A-Za-z-_]/g;function lt(xe){if(xe=xe.split("=")[0],xe=xe.trim().replace($e,""),xe.length<2)return"";for(;xe.length%4!==0;)xe=xe+"=";return xe}function ht(xe,ye){ye=ye||1/0;for(var Ee,Me=xe.length,Ne=null,je=[],it=0;it55295&&Ee<57344){if(!Ne){if(Ee>56319){(ye-=3)>-1&&je.push(239,191,189);continue}else if(it+1===Me){(ye-=3)>-1&&je.push(239,191,189);continue}Ne=Ee;continue}if(Ee<56320){(ye-=3)>-1&&je.push(239,191,189),Ne=Ee;continue}Ee=(Ne-55296<<10|Ee-56320)+65536}else Ne&&(ye-=3)>-1&&je.push(239,191,189);if(Ne=null,Ee<128){if((ye-=1)<0)break;je.push(Ee)}else if(Ee<2048){if((ye-=2)<0)break;je.push(Ee>>6|192,Ee&63|128)}else if(Ee<65536){if((ye-=3)<0)break;je.push(Ee>>12|224,Ee>>6&63|128,Ee&63|128)}else if(Ee<1114112){if((ye-=4)<0)break;je.push(Ee>>18|240,Ee>>12&63|128,Ee>>6&63|128,Ee&63|128)}else throw new Error("Invalid code point")}return je}function dt(xe){for(var ye=[],Ee=0;Ee>8,Ne=Ee%256,je.push(Ne),je.push(Me);return je}function St(xe){return d.toByteArray(lt(xe))}function nt(xe,ye,Ee,Me){var Ne;for(Ne=0;Ne=ye.length||Ne>=xe.length);++Ne)ye[Ne+Ee]=xe[Ne];return Ne}function ze(xe,ye){return xe instanceof ye||xe!=null&&xe.constructor!=null&&xe.constructor.name!=null&&xe.constructor.name===ye.name}function Xe(xe){return xe!==xe}var Je=function(){for(var xe="0123456789abcdef",ye=new Array(256),Ee=0;Ee<16;++Ee)for(var Me=Ee*16,Ne=0;Ne<16;++Ne)ye[Me+Ne]=xe[Ee]+xe[Ne];return ye}();function We(xe){return typeof BigInt>"u"?Fe:xe}function Fe(){throw new Error("BigInt not supported")}},2321:function(v){v.exports=a,v.exports.isMobile=a,v.exports.default=a;var p=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,t=/android|ipad|playbook|silk/i;function a(n){n||(n={});var f=n.ua;if(!f&&typeof navigator<"u"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var c=p.test(f)&&!r.test(f)||!!n.tablet&&t.test(f);return!c&&n.tablet&&n.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},3910:function(v,p){p.byteLength=m,p.toByteArray=b,p.fromByteArray=d;for(var r=[],t=[],a=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,c=n.length;f0)throw new Error("Invalid string. Length must be a multiple of 4");var _=w.indexOf("=");_===-1&&(_=A);var y=_===A?0:4-_%4;return[_,y]}function m(w){var A=l(w),_=A[0],y=A[1];return(_+y)*3/4-y}function h(w,A,_){return(A+_)*3/4-_}function b(w){var A,_=l(w),y=_[0],E=_[1],T=new a(h(w,y,E)),s=0,L=E>0?y-4:y,M;for(M=0;M>16&255,T[s++]=A>>8&255,T[s++]=A&255;return E===2&&(A=t[w.charCodeAt(M)]<<2|t[w.charCodeAt(M+1)]>>4,T[s++]=A&255),E===1&&(A=t[w.charCodeAt(M)]<<10|t[w.charCodeAt(M+1)]<<4|t[w.charCodeAt(M+2)]>>2,T[s++]=A>>8&255,T[s++]=A&255),T}function u(w){return r[w>>18&63]+r[w>>12&63]+r[w>>6&63]+r[w&63]}function o(w,A,_){for(var y,E=[],T=A;T<_;T+=3)y=(w[T]<<16&16711680)+(w[T+1]<<8&65280)+(w[T+2]&255),E.push(u(y));return E.join("")}function d(w){for(var A,_=w.length,y=_%3,E=[],T=16383,s=0,L=_-y;sL?L:s+T));return y===1?(A=w[_-1],E.push(r[A>>2]+r[A<<4&63]+"==")):y===2&&(A=(w[_-2]<<8)+w[_-1],E.push(r[A>>10]+r[A>>4&63]+r[A<<2&63]+"=")),E.join("")}},3187:function(v,p){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */p.read=function(r,t,a,n,f){var c,l,m=f*8-n-1,h=(1<>1,u=-7,o=a?f-1:0,d=a?-1:1,w=r[t+o];for(o+=d,c=w&(1<<-u)-1,w>>=-u,u+=m;u>0;c=c*256+r[t+o],o+=d,u-=8);for(l=c&(1<<-u)-1,c>>=-u,u+=n;u>0;l=l*256+r[t+o],o+=d,u-=8);if(c===0)c=1-b;else{if(c===h)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,n),c=c-b}return(w?-1:1)*l*Math.pow(2,c-n)},p.write=function(r,t,a,n,f,c){var l,m,h,b=c*8-f-1,u=(1<>1,d=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:c-1,A=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,l=u):(l=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-l))<1&&(l--,h*=2),l+o>=1?t+=d/h:t+=d*Math.pow(2,1-o),t*h>=2&&(l++,h/=2),l+o>=u?(m=0,l=u):l+o>=1?(m=(t*h-1)*Math.pow(2,f),l=l+o):(m=t*Math.pow(2,o-1)*Math.pow(2,f),l=0));f>=8;r[a+w]=m&255,w+=A,m/=256,f-=8);for(l=l<0;r[a+w]=l&255,w+=A,l/=256,b-=8);r[a+w-A]|=_*128}},1152:function(v,p,r){v.exports=l;var t=r(3440),a=r(7774),n=r(9298);function f(m,h){this._controllerNames=Object.keys(m),this._controllerList=this._controllerNames.map(function(b){return m[b]}),this._mode=h,this._active=m[h],this._active||(this._mode="turntable",this._active=m.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(m){for(var h=this._controllerList,b=0;b"u"?r(5346):WeakMap,a=r(5827),n=r(2944),f=new t;function c(l){var m=f.get(l),h=m&&(m._triangleBuffer.handle||m._triangleBuffer.buffer);if(!h||!l.isBuffer(h)){var b=a(l,new Float32Array([-1,-1,-1,4,4,-1]));m=n(l,[{buffer:b,type:l.FLOAT,size:2}]),m._triangleBuffer=b,f.set(l,m)}m.bind(),l.drawArrays(l.TRIANGLES,0,3),m.unbind()}v.exports=c},8008:function(v,p,r){var t=r(4930);v.exports=a;function a(n,f,c){f=typeof f=="number"?f:1,c=c||": ";var l=n.split(/\r?\n/),m=String(l.length+f-1).length;return l.map(function(h,b){var u=b+f,o=String(u).length,d=t(u,m-o);return d+c+h}).join(` +`)}},2153:function(v,p,r){v.exports=n;var t=r(417);function a(f,c){for(var l=new Array(c+1),m=0;m0?o=o.ushln(u):u<0&&(d=d.ushln(-u)),c(o,d)}},234:function(v,p,r){var t=r(3218);v.exports=a;function a(n){return Array.isArray(n)&&n.length===2&&t(n[0])&&t(n[1])}},4275:function(v,p,r){var t=r(1928);v.exports=a;function a(n){return n.cmp(new t(0))}},9958:function(v,p,r){var t=r(4275);v.exports=a;function a(n){var f=n.length,c=n.words,l=0;if(f===1)l=c[0];else if(f===2)l=c[0]+c[1]*67108864;else for(var m=0;m20?52:l+32}},3218:function(v,p,r){r(1928),v.exports=t;function t(a){return a&&typeof a=="object"&&!!a.words}},5514:function(v,p,r){var t=r(1928),a=r(8362);v.exports=n;function n(f){var c=a.exponent(f);return c<52?new t(f):new t(f*Math.pow(2,52-c)).ushln(c-52)}},8524:function(v,p,r){var t=r(5514),a=r(4275);v.exports=n;function n(f,c){var l=a(f),m=a(c);if(l===0)return[t(0),t(1)];if(m===0)return[t(0),t(0)];m<0&&(f=f.neg(),c=c.neg());var h=f.gcd(c);return h.cmpn(1)?[f.div(h),c.div(h)]:[f,c]}},2813:function(v,p,r){var t=r(1928);v.exports=a;function a(n){return new t(n)}},3962:function(v,p,r){var t=r(8524);v.exports=a;function a(n,f){return t(n[0].mul(f[0]),n[1].mul(f[1]))}},4951:function(v,p,r){var t=r(4275);v.exports=a;function a(n){return t(n[0])*t(n[1])}},4354:function(v,p,r){var t=r(8524);v.exports=a;function a(n,f){return t(n[0].mul(f[1]).sub(n[1].mul(f[0])),n[1].mul(f[1]))}},7999:function(v,p,r){var t=r(9958),a=r(1112);v.exports=n;function n(f){var c=f[0],l=f[1];if(c.cmpn(0)===0)return 0;var m=c.abs().divmod(l.abs()),h=m.div,b=t(h),u=m.mod,o=c.negative!==l.negative?-1:1;if(u.cmpn(0)===0)return o*b;if(b){var d=a(b)+4,w=t(u.ushln(d).divRound(l));return o*(b+w*Math.pow(2,-d))}else{var A=l.bitLength()-u.bitLength()+53,w=t(u.ushln(A).divRound(l));return A<1023?o*w*Math.pow(2,-A):(w*=Math.pow(2,-1023),o*w*Math.pow(2,1023-A))}}},5070:function(v){function p(c,l,m,h,b){for(var u=b+1;h<=b;){var o=h+b>>>1,d=c[o],w=m!==void 0?m(d,l):d-l;w>=0?(u=o,b=o-1):h=o+1}return u}function r(c,l,m,h,b){for(var u=b+1;h<=b;){var o=h+b>>>1,d=c[o],w=m!==void 0?m(d,l):d-l;w>0?(u=o,b=o-1):h=o+1}return u}function t(c,l,m,h,b){for(var u=h-1;h<=b;){var o=h+b>>>1,d=c[o],w=m!==void 0?m(d,l):d-l;w<0?(u=o,h=o+1):b=o-1}return u}function a(c,l,m,h,b){for(var u=h-1;h<=b;){var o=h+b>>>1,d=c[o],w=m!==void 0?m(d,l):d-l;w<=0?(u=o,h=o+1):b=o-1}return u}function n(c,l,m,h,b){for(;h<=b;){var u=h+b>>>1,o=c[u],d=m!==void 0?m(o,l):o-l;if(d===0)return u;d<=0?h=u+1:b=u-1}return-1}function f(c,l,m,h,b,u){return typeof m=="function"?u(c,l,m,h===void 0?0:h|0,b===void 0?c.length-1:b|0):u(c,l,void 0,m===void 0?0:m|0,h===void 0?c.length-1:h|0)}v.exports={ge:function(c,l,m,h,b){return f(c,l,m,h,b,p)},gt:function(c,l,m,h,b){return f(c,l,m,h,b,r)},lt:function(c,l,m,h,b){return f(c,l,m,h,b,t)},le:function(c,l,m,h,b){return f(c,l,m,h,b,a)},eq:function(c,l,m,h,b){return f(c,l,m,h,b,n)}}},2288:function(v,p){"use restrict";var r=32;p.INT_BITS=r,p.INT_MAX=2147483647,p.INT_MIN=-1<0)-(n<0)},p.abs=function(n){var f=n>>r-1;return(n^f)-f},p.min=function(n,f){return f^(n^f)&-(n65535)<<4,n>>>=f,c=(n>255)<<3,n>>>=c,f|=c,c=(n>15)<<2,n>>>=c,f|=c,c=(n>3)<<1,n>>>=c,f|=c,f|n>>1},p.log10=function(n){return n>=1e9?9:n>=1e8?8:n>=1e7?7:n>=1e6?6:n>=1e5?5:n>=1e4?4:n>=1e3?3:n>=100?2:n>=10?1:0},p.popCount=function(n){return n=n-(n>>>1&1431655765),n=(n&858993459)+(n>>>2&858993459),(n+(n>>>4)&252645135)*16843009>>>24};function t(n){var f=32;return n&=-n,n&&f--,n&65535&&(f-=16),n&16711935&&(f-=8),n&252645135&&(f-=4),n&858993459&&(f-=2),n&1431655765&&(f-=1),f}p.countTrailingZeros=t,p.nextPow2=function(n){return n+=n===0,--n,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n+1},p.prevPow2=function(n){return n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n-(n>>>1)},p.parity=function(n){return n^=n>>>16,n^=n>>>8,n^=n>>>4,n&=15,27030>>>n&1};var a=new Array(256);(function(n){for(var f=0;f<256;++f){var c=f,l=f,m=7;for(c>>>=1;c;c>>>=1)l<<=1,l|=c&1,--m;n[f]=l<>>8&255]<<16|a[n>>>16&255]<<8|a[n>>>24&255]},p.interleave2=function(n,f){return n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,n|f<<1},p.deinterleave2=function(n,f){return n=n>>>f&1431655765,n=(n|n>>>1)&858993459,n=(n|n>>>2)&252645135,n=(n|n>>>4)&16711935,n=(n|n>>>16)&65535,n<<16>>16},p.interleave3=function(n,f,c){return n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,n|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,n|c<<2},p.deinterleave3=function(n,f){return n=n>>>f&1227133513,n=(n|n>>>2)&3272356035,n=(n|n>>>4)&251719695,n=(n|n>>>8)&4278190335,n=(n|n>>>16)&1023,n<<22>>22},p.nextCombination=function(n){var f=n|n-1;return f+1|(~f&-~f)-1>>>t(n)+1}},1928:function(v,p,r){v=r.nmd(v),function(t,a){function n(B,O){if(!B)throw new Error(O||"Assertion failed")}function f(B,O){B.super_=O;var H=function(){};H.prototype=O.prototype,B.prototype=new H,B.prototype.constructor=B}function c(B,O,H){if(c.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((O==="le"||O==="be")&&(H=O,O=10),this._init(B||0,O||10,H||"be"))}typeof t=="object"?t.exports=c:a.BN=c,c.BN=c,c.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=r(6601).Buffer}catch{}c.isBN=function(O){return O instanceof c?!0:O!==null&&typeof O=="object"&&O.constructor.wordSize===c.wordSize&&Array.isArray(O.words)},c.max=function(O,H){return O.cmp(H)>0?O:H},c.min=function(O,H){return O.cmp(H)<0?O:H},c.prototype._init=function(O,H,Y){if(typeof O=="number")return this._initNumber(O,H,Y);if(typeof O=="object")return this._initArray(O,H,Y);H==="hex"&&(H=16),n(H===(H|0)&&H>=2&&H<=36),O=O.toString().replace(/\s+/g,"");var j=0;O[0]==="-"&&(j++,this.negative=1),j=0;j-=3)ie=O[j]|O[j-1]<<8|O[j-2]<<16,this.words[te]|=ie<>>26-ue&67108863,ue+=24,ue>=26&&(ue-=26,te++);else if(Y==="le")for(j=0,te=0;j>>26-ue&67108863,ue+=24,ue>=26&&(ue-=26,te++);return this.strip()};function m(B,O){var H=B.charCodeAt(O);return H>=65&&H<=70?H-55:H>=97&&H<=102?H-87:H-48&15}function h(B,O,H){var Y=m(B,H);return H-1>=O&&(Y|=m(B,H-1)<<4),Y}c.prototype._parseHex=function(O,H,Y){this.length=Math.ceil((O.length-H)/6),this.words=new Array(this.length);for(var j=0;j=H;j-=2)ue=h(O,H,j)<=18?(te-=18,ie+=1,this.words[ie]|=ue>>>26):te+=8;else{var J=O.length-H;for(j=J%2===0?H+1:H;j=18?(te-=18,ie+=1,this.words[ie]|=ue>>>26):te+=8}this.strip()};function b(B,O,H,Y){for(var j=0,te=Math.min(B.length,H),ie=O;ie=49?j+=ue-49+10:ue>=17?j+=ue-17+10:j+=ue}return j}c.prototype._parseBase=function(O,H,Y){this.words=[0],this.length=1;for(var j=0,te=1;te<=67108863;te*=H)j++;j--,te=te/H|0;for(var ie=O.length-Y,ue=ie%j,J=Math.min(ie,ie-ue)+Y,X=0,ee=Y;ee1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],o=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(O,H){O=O||10,H=H|0||1;var Y;if(O===16||O==="hex"){Y="";for(var j=0,te=0,ie=0;ie>>24-j&16777215,te!==0||ie!==this.length-1?Y=u[6-J.length]+J+Y:Y=J+Y,j+=2,j>=26&&(j-=26,ie--)}for(te!==0&&(Y=te.toString(16)+Y);Y.length%H!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(O===(O|0)&&O>=2&&O<=36){var X=o[O],ee=d[O];Y="";var V=this.clone();for(V.negative=0;!V.isZero();){var Q=V.modn(ee).toString(O);V=V.idivn(ee),V.isZero()?Y=Q+Y:Y=u[X-Q.length]+Q+Y}for(this.isZero()&&(Y="0"+Y);Y.length%H!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}n(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var O=this.words[0];return this.length===2?O+=this.words[1]*67108864:this.length===3&&this.words[2]===1?O+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-O:O},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(O,H){return n(typeof l<"u"),this.toArrayLike(l,O,H)},c.prototype.toArray=function(O,H){return this.toArrayLike(Array,O,H)},c.prototype.toArrayLike=function(O,H,Y){var j=this.byteLength(),te=Y||Math.max(1,j);n(j<=te,"byte array longer than desired length"),n(te>0,"Requested array length <= 0"),this.strip();var ie=H==="le",ue=new O(te),J,X,ee=this.clone();if(ie){for(X=0;!ee.isZero();X++)J=ee.andln(255),ee.iushrn(8),ue[X]=J;for(;X=4096&&(Y+=13,H>>>=13),H>=64&&(Y+=7,H>>>=7),H>=8&&(Y+=4,H>>>=4),H>=2&&(Y+=2,H>>>=2),Y+H},c.prototype._zeroBits=function(O){if(O===0)return 26;var H=O,Y=0;return H&8191||(Y+=13,H>>>=13),H&127||(Y+=7,H>>>=7),H&15||(Y+=4,H>>>=4),H&3||(Y+=2,H>>>=2),H&1||Y++,Y},c.prototype.bitLength=function(){var O=this.words[this.length-1],H=this._countBits(O);return(this.length-1)*26+H};function w(B){for(var O=new Array(B.bitLength()),H=0;H>>j}return O}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var O=0,H=0;HO.length?this.clone().ior(O):O.clone().ior(this)},c.prototype.uor=function(O){return this.length>O.length?this.clone().iuor(O):O.clone().iuor(this)},c.prototype.iuand=function(O){var H;this.length>O.length?H=O:H=this;for(var Y=0;YO.length?this.clone().iand(O):O.clone().iand(this)},c.prototype.uand=function(O){return this.length>O.length?this.clone().iuand(O):O.clone().iuand(this)},c.prototype.iuxor=function(O){var H,Y;this.length>O.length?(H=this,Y=O):(H=O,Y=this);for(var j=0;jO.length?this.clone().ixor(O):O.clone().ixor(this)},c.prototype.uxor=function(O){return this.length>O.length?this.clone().iuxor(O):O.clone().iuxor(this)},c.prototype.inotn=function(O){n(typeof O=="number"&&O>=0);var H=Math.ceil(O/26)|0,Y=O%26;this._expand(H),Y>0&&H--;for(var j=0;j0&&(this.words[j]=~this.words[j]&67108863>>26-Y),this.strip()},c.prototype.notn=function(O){return this.clone().inotn(O)},c.prototype.setn=function(O,H){n(typeof O=="number"&&O>=0);var Y=O/26|0,j=O%26;return this._expand(Y+1),H?this.words[Y]=this.words[Y]|1<O.length?(Y=this,j=O):(Y=O,j=this);for(var te=0,ie=0;ie>>26;for(;te!==0&&ie>>26;if(this.length=Y.length,te!==0)this.words[this.length]=te,this.length++;else if(Y!==this)for(;ieO.length?this.clone().iadd(O):O.clone().iadd(this)},c.prototype.isub=function(O){if(O.negative!==0){O.negative=0;var H=this.iadd(O);return O.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(O),this.negative=1,this._normSign();var Y=this.cmp(O);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var j,te;Y>0?(j=this,te=O):(j=O,te=this);for(var ie=0,ue=0;ue>26,this.words[ue]=H&67108863;for(;ie!==0&&ue>26,this.words[ue]=H&67108863;if(ie===0&&ue>>26,V=J&67108863,Q=Math.min(X,O.length-1),oe=Math.max(0,X-B.length+1);oe<=Q;oe++){var $=X-oe|0;j=B.words[$]|0,te=O.words[oe]|0,ie=j*te+V,ee+=ie/67108864|0,V=ie&67108863}H.words[X]=V|0,J=ee|0}return J!==0?H.words[X]=J|0:H.length--,H.strip()}var _=function(O,H,Y){var j=O.words,te=H.words,ie=Y.words,ue=0,J,X,ee,V=j[0]|0,Q=V&8191,oe=V>>>13,$=j[1]|0,Z=$&8191,se=$>>>13,ne=j[2]|0,ce=ne&8191,ge=ne>>>13,Te=j[3]|0,we=Te&8191,Re=Te>>>13,be=j[4]|0,Ae=be&8191,me=be>>>13,Le=j[5]|0,He=Le&8191,Ue=Le>>>13,ke=j[6]|0,Ve=ke&8191,Ie=ke>>>13,rt=j[7]|0,Ke=rt&8191,$e=rt>>>13,lt=j[8]|0,ht=lt&8191,dt=lt>>>13,xt=j[9]|0,St=xt&8191,nt=xt>>>13,ze=te[0]|0,Xe=ze&8191,Je=ze>>>13,We=te[1]|0,Fe=We&8191,xe=We>>>13,ye=te[2]|0,Ee=ye&8191,Me=ye>>>13,Ne=te[3]|0,je=Ne&8191,it=Ne>>>13,mt=te[4]|0,bt=mt&8191,vt=mt>>>13,Lt=te[5]|0,ct=Lt&8191,Tt=Lt>>>13,Bt=te[6]|0,ir=Bt&8191,pt=Bt>>>13,Xt=te[7]|0,Kt=Xt&8191,or=Xt>>>13,$t=te[8]|0,gt=$t&8191,st=$t>>>13,At=te[9]|0,Ct=At&8191,It=At>>>13;Y.negative=O.negative^H.negative,Y.length=19,J=Math.imul(Q,Xe),X=Math.imul(Q,Je),X=X+Math.imul(oe,Xe)|0,ee=Math.imul(oe,Je);var Pt=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,J=Math.imul(Z,Xe),X=Math.imul(Z,Je),X=X+Math.imul(se,Xe)|0,ee=Math.imul(se,Je),J=J+Math.imul(Q,Fe)|0,X=X+Math.imul(Q,xe)|0,X=X+Math.imul(oe,Fe)|0,ee=ee+Math.imul(oe,xe)|0;var kt=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(kt>>>26)|0,kt&=67108863,J=Math.imul(ce,Xe),X=Math.imul(ce,Je),X=X+Math.imul(ge,Xe)|0,ee=Math.imul(ge,Je),J=J+Math.imul(Z,Fe)|0,X=X+Math.imul(Z,xe)|0,X=X+Math.imul(se,Fe)|0,ee=ee+Math.imul(se,xe)|0,J=J+Math.imul(Q,Ee)|0,X=X+Math.imul(Q,Me)|0,X=X+Math.imul(oe,Ee)|0,ee=ee+Math.imul(oe,Me)|0;var Vt=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,J=Math.imul(we,Xe),X=Math.imul(we,Je),X=X+Math.imul(Re,Xe)|0,ee=Math.imul(Re,Je),J=J+Math.imul(ce,Fe)|0,X=X+Math.imul(ce,xe)|0,X=X+Math.imul(ge,Fe)|0,ee=ee+Math.imul(ge,xe)|0,J=J+Math.imul(Z,Ee)|0,X=X+Math.imul(Z,Me)|0,X=X+Math.imul(se,Ee)|0,ee=ee+Math.imul(se,Me)|0,J=J+Math.imul(Q,je)|0,X=X+Math.imul(Q,it)|0,X=X+Math.imul(oe,je)|0,ee=ee+Math.imul(oe,it)|0;var Jt=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,J=Math.imul(Ae,Xe),X=Math.imul(Ae,Je),X=X+Math.imul(me,Xe)|0,ee=Math.imul(me,Je),J=J+Math.imul(we,Fe)|0,X=X+Math.imul(we,xe)|0,X=X+Math.imul(Re,Fe)|0,ee=ee+Math.imul(Re,xe)|0,J=J+Math.imul(ce,Ee)|0,X=X+Math.imul(ce,Me)|0,X=X+Math.imul(ge,Ee)|0,ee=ee+Math.imul(ge,Me)|0,J=J+Math.imul(Z,je)|0,X=X+Math.imul(Z,it)|0,X=X+Math.imul(se,je)|0,ee=ee+Math.imul(se,it)|0,J=J+Math.imul(Q,bt)|0,X=X+Math.imul(Q,vt)|0,X=X+Math.imul(oe,bt)|0,ee=ee+Math.imul(oe,vt)|0;var ur=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(ur>>>26)|0,ur&=67108863,J=Math.imul(He,Xe),X=Math.imul(He,Je),X=X+Math.imul(Ue,Xe)|0,ee=Math.imul(Ue,Je),J=J+Math.imul(Ae,Fe)|0,X=X+Math.imul(Ae,xe)|0,X=X+Math.imul(me,Fe)|0,ee=ee+Math.imul(me,xe)|0,J=J+Math.imul(we,Ee)|0,X=X+Math.imul(we,Me)|0,X=X+Math.imul(Re,Ee)|0,ee=ee+Math.imul(Re,Me)|0,J=J+Math.imul(ce,je)|0,X=X+Math.imul(ce,it)|0,X=X+Math.imul(ge,je)|0,ee=ee+Math.imul(ge,it)|0,J=J+Math.imul(Z,bt)|0,X=X+Math.imul(Z,vt)|0,X=X+Math.imul(se,bt)|0,ee=ee+Math.imul(se,vt)|0,J=J+Math.imul(Q,ct)|0,X=X+Math.imul(Q,Tt)|0,X=X+Math.imul(oe,ct)|0,ee=ee+Math.imul(oe,Tt)|0;var hr=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(hr>>>26)|0,hr&=67108863,J=Math.imul(Ve,Xe),X=Math.imul(Ve,Je),X=X+Math.imul(Ie,Xe)|0,ee=Math.imul(Ie,Je),J=J+Math.imul(He,Fe)|0,X=X+Math.imul(He,xe)|0,X=X+Math.imul(Ue,Fe)|0,ee=ee+Math.imul(Ue,xe)|0,J=J+Math.imul(Ae,Ee)|0,X=X+Math.imul(Ae,Me)|0,X=X+Math.imul(me,Ee)|0,ee=ee+Math.imul(me,Me)|0,J=J+Math.imul(we,je)|0,X=X+Math.imul(we,it)|0,X=X+Math.imul(Re,je)|0,ee=ee+Math.imul(Re,it)|0,J=J+Math.imul(ce,bt)|0,X=X+Math.imul(ce,vt)|0,X=X+Math.imul(ge,bt)|0,ee=ee+Math.imul(ge,vt)|0,J=J+Math.imul(Z,ct)|0,X=X+Math.imul(Z,Tt)|0,X=X+Math.imul(se,ct)|0,ee=ee+Math.imul(se,Tt)|0,J=J+Math.imul(Q,ir)|0,X=X+Math.imul(Q,pt)|0,X=X+Math.imul(oe,ir)|0,ee=ee+Math.imul(oe,pt)|0;var vr=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(vr>>>26)|0,vr&=67108863,J=Math.imul(Ke,Xe),X=Math.imul(Ke,Je),X=X+Math.imul($e,Xe)|0,ee=Math.imul($e,Je),J=J+Math.imul(Ve,Fe)|0,X=X+Math.imul(Ve,xe)|0,X=X+Math.imul(Ie,Fe)|0,ee=ee+Math.imul(Ie,xe)|0,J=J+Math.imul(He,Ee)|0,X=X+Math.imul(He,Me)|0,X=X+Math.imul(Ue,Ee)|0,ee=ee+Math.imul(Ue,Me)|0,J=J+Math.imul(Ae,je)|0,X=X+Math.imul(Ae,it)|0,X=X+Math.imul(me,je)|0,ee=ee+Math.imul(me,it)|0,J=J+Math.imul(we,bt)|0,X=X+Math.imul(we,vt)|0,X=X+Math.imul(Re,bt)|0,ee=ee+Math.imul(Re,vt)|0,J=J+Math.imul(ce,ct)|0,X=X+Math.imul(ce,Tt)|0,X=X+Math.imul(ge,ct)|0,ee=ee+Math.imul(ge,Tt)|0,J=J+Math.imul(Z,ir)|0,X=X+Math.imul(Z,pt)|0,X=X+Math.imul(se,ir)|0,ee=ee+Math.imul(se,pt)|0,J=J+Math.imul(Q,Kt)|0,X=X+Math.imul(Q,or)|0,X=X+Math.imul(oe,Kt)|0,ee=ee+Math.imul(oe,or)|0;var Ye=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,J=Math.imul(ht,Xe),X=Math.imul(ht,Je),X=X+Math.imul(dt,Xe)|0,ee=Math.imul(dt,Je),J=J+Math.imul(Ke,Fe)|0,X=X+Math.imul(Ke,xe)|0,X=X+Math.imul($e,Fe)|0,ee=ee+Math.imul($e,xe)|0,J=J+Math.imul(Ve,Ee)|0,X=X+Math.imul(Ve,Me)|0,X=X+Math.imul(Ie,Ee)|0,ee=ee+Math.imul(Ie,Me)|0,J=J+Math.imul(He,je)|0,X=X+Math.imul(He,it)|0,X=X+Math.imul(Ue,je)|0,ee=ee+Math.imul(Ue,it)|0,J=J+Math.imul(Ae,bt)|0,X=X+Math.imul(Ae,vt)|0,X=X+Math.imul(me,bt)|0,ee=ee+Math.imul(me,vt)|0,J=J+Math.imul(we,ct)|0,X=X+Math.imul(we,Tt)|0,X=X+Math.imul(Re,ct)|0,ee=ee+Math.imul(Re,Tt)|0,J=J+Math.imul(ce,ir)|0,X=X+Math.imul(ce,pt)|0,X=X+Math.imul(ge,ir)|0,ee=ee+Math.imul(ge,pt)|0,J=J+Math.imul(Z,Kt)|0,X=X+Math.imul(Z,or)|0,X=X+Math.imul(se,Kt)|0,ee=ee+Math.imul(se,or)|0,J=J+Math.imul(Q,gt)|0,X=X+Math.imul(Q,st)|0,X=X+Math.imul(oe,gt)|0,ee=ee+Math.imul(oe,st)|0;var Ge=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,J=Math.imul(St,Xe),X=Math.imul(St,Je),X=X+Math.imul(nt,Xe)|0,ee=Math.imul(nt,Je),J=J+Math.imul(ht,Fe)|0,X=X+Math.imul(ht,xe)|0,X=X+Math.imul(dt,Fe)|0,ee=ee+Math.imul(dt,xe)|0,J=J+Math.imul(Ke,Ee)|0,X=X+Math.imul(Ke,Me)|0,X=X+Math.imul($e,Ee)|0,ee=ee+Math.imul($e,Me)|0,J=J+Math.imul(Ve,je)|0,X=X+Math.imul(Ve,it)|0,X=X+Math.imul(Ie,je)|0,ee=ee+Math.imul(Ie,it)|0,J=J+Math.imul(He,bt)|0,X=X+Math.imul(He,vt)|0,X=X+Math.imul(Ue,bt)|0,ee=ee+Math.imul(Ue,vt)|0,J=J+Math.imul(Ae,ct)|0,X=X+Math.imul(Ae,Tt)|0,X=X+Math.imul(me,ct)|0,ee=ee+Math.imul(me,Tt)|0,J=J+Math.imul(we,ir)|0,X=X+Math.imul(we,pt)|0,X=X+Math.imul(Re,ir)|0,ee=ee+Math.imul(Re,pt)|0,J=J+Math.imul(ce,Kt)|0,X=X+Math.imul(ce,or)|0,X=X+Math.imul(ge,Kt)|0,ee=ee+Math.imul(ge,or)|0,J=J+Math.imul(Z,gt)|0,X=X+Math.imul(Z,st)|0,X=X+Math.imul(se,gt)|0,ee=ee+Math.imul(se,st)|0,J=J+Math.imul(Q,Ct)|0,X=X+Math.imul(Q,It)|0,X=X+Math.imul(oe,Ct)|0,ee=ee+Math.imul(oe,It)|0;var Nt=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,J=Math.imul(St,Fe),X=Math.imul(St,xe),X=X+Math.imul(nt,Fe)|0,ee=Math.imul(nt,xe),J=J+Math.imul(ht,Ee)|0,X=X+Math.imul(ht,Me)|0,X=X+Math.imul(dt,Ee)|0,ee=ee+Math.imul(dt,Me)|0,J=J+Math.imul(Ke,je)|0,X=X+Math.imul(Ke,it)|0,X=X+Math.imul($e,je)|0,ee=ee+Math.imul($e,it)|0,J=J+Math.imul(Ve,bt)|0,X=X+Math.imul(Ve,vt)|0,X=X+Math.imul(Ie,bt)|0,ee=ee+Math.imul(Ie,vt)|0,J=J+Math.imul(He,ct)|0,X=X+Math.imul(He,Tt)|0,X=X+Math.imul(Ue,ct)|0,ee=ee+Math.imul(Ue,Tt)|0,J=J+Math.imul(Ae,ir)|0,X=X+Math.imul(Ae,pt)|0,X=X+Math.imul(me,ir)|0,ee=ee+Math.imul(me,pt)|0,J=J+Math.imul(we,Kt)|0,X=X+Math.imul(we,or)|0,X=X+Math.imul(Re,Kt)|0,ee=ee+Math.imul(Re,or)|0,J=J+Math.imul(ce,gt)|0,X=X+Math.imul(ce,st)|0,X=X+Math.imul(ge,gt)|0,ee=ee+Math.imul(ge,st)|0,J=J+Math.imul(Z,Ct)|0,X=X+Math.imul(Z,It)|0,X=X+Math.imul(se,Ct)|0,ee=ee+Math.imul(se,It)|0;var Ot=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,J=Math.imul(St,Ee),X=Math.imul(St,Me),X=X+Math.imul(nt,Ee)|0,ee=Math.imul(nt,Me),J=J+Math.imul(ht,je)|0,X=X+Math.imul(ht,it)|0,X=X+Math.imul(dt,je)|0,ee=ee+Math.imul(dt,it)|0,J=J+Math.imul(Ke,bt)|0,X=X+Math.imul(Ke,vt)|0,X=X+Math.imul($e,bt)|0,ee=ee+Math.imul($e,vt)|0,J=J+Math.imul(Ve,ct)|0,X=X+Math.imul(Ve,Tt)|0,X=X+Math.imul(Ie,ct)|0,ee=ee+Math.imul(Ie,Tt)|0,J=J+Math.imul(He,ir)|0,X=X+Math.imul(He,pt)|0,X=X+Math.imul(Ue,ir)|0,ee=ee+Math.imul(Ue,pt)|0,J=J+Math.imul(Ae,Kt)|0,X=X+Math.imul(Ae,or)|0,X=X+Math.imul(me,Kt)|0,ee=ee+Math.imul(me,or)|0,J=J+Math.imul(we,gt)|0,X=X+Math.imul(we,st)|0,X=X+Math.imul(Re,gt)|0,ee=ee+Math.imul(Re,st)|0,J=J+Math.imul(ce,Ct)|0,X=X+Math.imul(ce,It)|0,X=X+Math.imul(ge,Ct)|0,ee=ee+Math.imul(ge,It)|0;var Qt=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,J=Math.imul(St,je),X=Math.imul(St,it),X=X+Math.imul(nt,je)|0,ee=Math.imul(nt,it),J=J+Math.imul(ht,bt)|0,X=X+Math.imul(ht,vt)|0,X=X+Math.imul(dt,bt)|0,ee=ee+Math.imul(dt,vt)|0,J=J+Math.imul(Ke,ct)|0,X=X+Math.imul(Ke,Tt)|0,X=X+Math.imul($e,ct)|0,ee=ee+Math.imul($e,Tt)|0,J=J+Math.imul(Ve,ir)|0,X=X+Math.imul(Ve,pt)|0,X=X+Math.imul(Ie,ir)|0,ee=ee+Math.imul(Ie,pt)|0,J=J+Math.imul(He,Kt)|0,X=X+Math.imul(He,or)|0,X=X+Math.imul(Ue,Kt)|0,ee=ee+Math.imul(Ue,or)|0,J=J+Math.imul(Ae,gt)|0,X=X+Math.imul(Ae,st)|0,X=X+Math.imul(me,gt)|0,ee=ee+Math.imul(me,st)|0,J=J+Math.imul(we,Ct)|0,X=X+Math.imul(we,It)|0,X=X+Math.imul(Re,Ct)|0,ee=ee+Math.imul(Re,It)|0;var tr=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(tr>>>26)|0,tr&=67108863,J=Math.imul(St,bt),X=Math.imul(St,vt),X=X+Math.imul(nt,bt)|0,ee=Math.imul(nt,vt),J=J+Math.imul(ht,ct)|0,X=X+Math.imul(ht,Tt)|0,X=X+Math.imul(dt,ct)|0,ee=ee+Math.imul(dt,Tt)|0,J=J+Math.imul(Ke,ir)|0,X=X+Math.imul(Ke,pt)|0,X=X+Math.imul($e,ir)|0,ee=ee+Math.imul($e,pt)|0,J=J+Math.imul(Ve,Kt)|0,X=X+Math.imul(Ve,or)|0,X=X+Math.imul(Ie,Kt)|0,ee=ee+Math.imul(Ie,or)|0,J=J+Math.imul(He,gt)|0,X=X+Math.imul(He,st)|0,X=X+Math.imul(Ue,gt)|0,ee=ee+Math.imul(Ue,st)|0,J=J+Math.imul(Ae,Ct)|0,X=X+Math.imul(Ae,It)|0,X=X+Math.imul(me,Ct)|0,ee=ee+Math.imul(me,It)|0;var fr=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(fr>>>26)|0,fr&=67108863,J=Math.imul(St,ct),X=Math.imul(St,Tt),X=X+Math.imul(nt,ct)|0,ee=Math.imul(nt,Tt),J=J+Math.imul(ht,ir)|0,X=X+Math.imul(ht,pt)|0,X=X+Math.imul(dt,ir)|0,ee=ee+Math.imul(dt,pt)|0,J=J+Math.imul(Ke,Kt)|0,X=X+Math.imul(Ke,or)|0,X=X+Math.imul($e,Kt)|0,ee=ee+Math.imul($e,or)|0,J=J+Math.imul(Ve,gt)|0,X=X+Math.imul(Ve,st)|0,X=X+Math.imul(Ie,gt)|0,ee=ee+Math.imul(Ie,st)|0,J=J+Math.imul(He,Ct)|0,X=X+Math.imul(He,It)|0,X=X+Math.imul(Ue,Ct)|0,ee=ee+Math.imul(Ue,It)|0;var rr=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(rr>>>26)|0,rr&=67108863,J=Math.imul(St,ir),X=Math.imul(St,pt),X=X+Math.imul(nt,ir)|0,ee=Math.imul(nt,pt),J=J+Math.imul(ht,Kt)|0,X=X+Math.imul(ht,or)|0,X=X+Math.imul(dt,Kt)|0,ee=ee+Math.imul(dt,or)|0,J=J+Math.imul(Ke,gt)|0,X=X+Math.imul(Ke,st)|0,X=X+Math.imul($e,gt)|0,ee=ee+Math.imul($e,st)|0,J=J+Math.imul(Ve,Ct)|0,X=X+Math.imul(Ve,It)|0,X=X+Math.imul(Ie,Ct)|0,ee=ee+Math.imul(Ie,It)|0;var Ht=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,J=Math.imul(St,Kt),X=Math.imul(St,or),X=X+Math.imul(nt,Kt)|0,ee=Math.imul(nt,or),J=J+Math.imul(ht,gt)|0,X=X+Math.imul(ht,st)|0,X=X+Math.imul(dt,gt)|0,ee=ee+Math.imul(dt,st)|0,J=J+Math.imul(Ke,Ct)|0,X=X+Math.imul(Ke,It)|0,X=X+Math.imul($e,Ct)|0,ee=ee+Math.imul($e,It)|0;var dr=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(dr>>>26)|0,dr&=67108863,J=Math.imul(St,gt),X=Math.imul(St,st),X=X+Math.imul(nt,gt)|0,ee=Math.imul(nt,st),J=J+Math.imul(ht,Ct)|0,X=X+Math.imul(ht,It)|0,X=X+Math.imul(dt,Ct)|0,ee=ee+Math.imul(dt,It)|0;var mr=(ue+J|0)+((X&8191)<<13)|0;ue=(ee+(X>>>13)|0)+(mr>>>26)|0,mr&=67108863,J=Math.imul(St,Ct),X=Math.imul(St,It),X=X+Math.imul(nt,Ct)|0,ee=Math.imul(nt,It);var xr=(ue+J|0)+((X&8191)<<13)|0;return ue=(ee+(X>>>13)|0)+(xr>>>26)|0,xr&=67108863,ie[0]=Pt,ie[1]=kt,ie[2]=Vt,ie[3]=Jt,ie[4]=ur,ie[5]=hr,ie[6]=vr,ie[7]=Ye,ie[8]=Ge,ie[9]=Nt,ie[10]=Ot,ie[11]=Qt,ie[12]=tr,ie[13]=fr,ie[14]=rr,ie[15]=Ht,ie[16]=dr,ie[17]=mr,ie[18]=xr,ue!==0&&(ie[19]=ue,Y.length++),Y};Math.imul||(_=A);function y(B,O,H){H.negative=O.negative^B.negative,H.length=B.length+O.length;for(var Y=0,j=0,te=0;te>>26)|0,j+=ie>>>26,ie&=67108863}H.words[te]=ue,Y=ie,ie=j}return Y!==0?H.words[te]=Y:H.length--,H.strip()}function E(B,O,H){var Y=new T;return Y.mulp(B,O,H)}c.prototype.mulTo=function(O,H){var Y,j=this.length+O.length;return this.length===10&&O.length===10?Y=_(this,O,H):j<63?Y=A(this,O,H):j<1024?Y=y(this,O,H):Y=E(this,O,H),Y};function T(B,O){this.x=B,this.y=O}T.prototype.makeRBT=function(O){for(var H=new Array(O),Y=c.prototype._countBits(O)-1,j=0;j>=1;return j},T.prototype.permute=function(O,H,Y,j,te,ie){for(var ue=0;ue>>1)te++;return 1<>>13,Y[2*ie+1]=te&8191,te=te>>>13;for(ie=2*H;ie>=26,H+=j/67108864|0,H+=te>>>26,this.words[Y]=te&67108863}return H!==0&&(this.words[Y]=H,this.length++),this},c.prototype.muln=function(O){return this.clone().imuln(O)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(O){var H=w(O);if(H.length===0)return new c(1);for(var Y=this,j=0;j=0);var H=O%26,Y=(O-H)/26,j=67108863>>>26-H<<26-H,te;if(H!==0){var ie=0;for(te=0;te>>26-H}ie&&(this.words[te]=ie,this.length++)}if(Y!==0){for(te=this.length-1;te>=0;te--)this.words[te+Y]=this.words[te];for(te=0;te=0);var j;H?j=(H-H%26)/26:j=0;var te=O%26,ie=Math.min((O-te)/26,this.length),ue=67108863^67108863>>>te<ie)for(this.length-=ie,X=0;X=0&&(ee!==0||X>=j);X--){var V=this.words[X]|0;this.words[X]=ee<<26-te|V>>>te,ee=V&ue}return J&&ee!==0&&(J.words[J.length++]=ee),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(O,H,Y){return n(this.negative===0),this.iushrn(O,H,Y)},c.prototype.shln=function(O){return this.clone().ishln(O)},c.prototype.ushln=function(O){return this.clone().iushln(O)},c.prototype.shrn=function(O){return this.clone().ishrn(O)},c.prototype.ushrn=function(O){return this.clone().iushrn(O)},c.prototype.testn=function(O){n(typeof O=="number"&&O>=0);var H=O%26,Y=(O-H)/26,j=1<=0);var H=O%26,Y=(O-H)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(H!==0&&Y++,this.length=Math.min(Y,this.length),H!==0){var j=67108863^67108863>>>H<=67108864;H++)this.words[H]-=67108864,H===this.length-1?this.words[H+1]=1:this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},c.prototype.isubn=function(O){if(n(typeof O=="number"),n(O<67108864),O<0)return this.iaddn(-O);if(this.negative!==0)return this.negative=0,this.iaddn(O),this.negative=1,this;if(this.words[0]-=O,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H>26)-(J/67108864|0),this.words[te+Y]=ie&67108863}for(;te>26,this.words[te+Y]=ie&67108863;if(ue===0)return this.strip();for(n(ue===-1),ue=0,te=0;te>26,this.words[te]=ie&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(O,H){var Y=this.length-O.length,j=this.clone(),te=O,ie=te.words[te.length-1]|0,ue=this._countBits(ie);Y=26-ue,Y!==0&&(te=te.ushln(Y),j.iushln(Y),ie=te.words[te.length-1]|0);var J=j.length-te.length,X;if(H!=="mod"){X=new c(null),X.length=J+1,X.words=new Array(X.length);for(var ee=0;ee=0;Q--){var oe=(j.words[te.length+Q]|0)*67108864+(j.words[te.length+Q-1]|0);for(oe=Math.min(oe/ie|0,67108863),j._ishlnsubmul(te,oe,Q);j.negative!==0;)oe--,j.negative=0,j._ishlnsubmul(te,1,Q),j.isZero()||(j.negative^=1);X&&(X.words[Q]=oe)}return X&&X.strip(),j.strip(),H!=="div"&&Y!==0&&j.iushrn(Y),{div:X||null,mod:j}},c.prototype.divmod=function(O,H,Y){if(n(!O.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var j,te,ie;return this.negative!==0&&O.negative===0?(ie=this.neg().divmod(O,H),H!=="mod"&&(j=ie.div.neg()),H!=="div"&&(te=ie.mod.neg(),Y&&te.negative!==0&&te.iadd(O)),{div:j,mod:te}):this.negative===0&&O.negative!==0?(ie=this.divmod(O.neg(),H),H!=="mod"&&(j=ie.div.neg()),{div:j,mod:ie.mod}):this.negative&O.negative?(ie=this.neg().divmod(O.neg(),H),H!=="div"&&(te=ie.mod.neg(),Y&&te.negative!==0&&te.isub(O)),{div:ie.div,mod:te}):O.length>this.length||this.cmp(O)<0?{div:new c(0),mod:this}:O.length===1?H==="div"?{div:this.divn(O.words[0]),mod:null}:H==="mod"?{div:null,mod:new c(this.modn(O.words[0]))}:{div:this.divn(O.words[0]),mod:new c(this.modn(O.words[0]))}:this._wordDiv(O,H)},c.prototype.div=function(O){return this.divmod(O,"div",!1).div},c.prototype.mod=function(O){return this.divmod(O,"mod",!1).mod},c.prototype.umod=function(O){return this.divmod(O,"mod",!0).mod},c.prototype.divRound=function(O){var H=this.divmod(O);if(H.mod.isZero())return H.div;var Y=H.div.negative!==0?H.mod.isub(O):H.mod,j=O.ushrn(1),te=O.andln(1),ie=Y.cmp(j);return ie<0||te===1&&ie===0?H.div:H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},c.prototype.modn=function(O){n(O<=67108863);for(var H=(1<<26)%O,Y=0,j=this.length-1;j>=0;j--)Y=(H*Y+(this.words[j]|0))%O;return Y},c.prototype.idivn=function(O){n(O<=67108863);for(var H=0,Y=this.length-1;Y>=0;Y--){var j=(this.words[Y]|0)+H*67108864;this.words[Y]=j/O|0,H=j%O}return this.strip()},c.prototype.divn=function(O){return this.clone().idivn(O)},c.prototype.egcd=function(O){n(O.negative===0),n(!O.isZero());var H=this,Y=O.clone();H.negative!==0?H=H.umod(O):H=H.clone();for(var j=new c(1),te=new c(0),ie=new c(0),ue=new c(1),J=0;H.isEven()&&Y.isEven();)H.iushrn(1),Y.iushrn(1),++J;for(var X=Y.clone(),ee=H.clone();!H.isZero();){for(var V=0,Q=1;!(H.words[0]&Q)&&V<26;++V,Q<<=1);if(V>0)for(H.iushrn(V);V-- >0;)(j.isOdd()||te.isOdd())&&(j.iadd(X),te.isub(ee)),j.iushrn(1),te.iushrn(1);for(var oe=0,$=1;!(Y.words[0]&$)&&oe<26;++oe,$<<=1);if(oe>0)for(Y.iushrn(oe);oe-- >0;)(ie.isOdd()||ue.isOdd())&&(ie.iadd(X),ue.isub(ee)),ie.iushrn(1),ue.iushrn(1);H.cmp(Y)>=0?(H.isub(Y),j.isub(ie),te.isub(ue)):(Y.isub(H),ie.isub(j),ue.isub(te))}return{a:ie,b:ue,gcd:Y.iushln(J)}},c.prototype._invmp=function(O){n(O.negative===0),n(!O.isZero());var H=this,Y=O.clone();H.negative!==0?H=H.umod(O):H=H.clone();for(var j=new c(1),te=new c(0),ie=Y.clone();H.cmpn(1)>0&&Y.cmpn(1)>0;){for(var ue=0,J=1;!(H.words[0]&J)&&ue<26;++ue,J<<=1);if(ue>0)for(H.iushrn(ue);ue-- >0;)j.isOdd()&&j.iadd(ie),j.iushrn(1);for(var X=0,ee=1;!(Y.words[0]&ee)&&X<26;++X,ee<<=1);if(X>0)for(Y.iushrn(X);X-- >0;)te.isOdd()&&te.iadd(ie),te.iushrn(1);H.cmp(Y)>=0?(H.isub(Y),j.isub(te)):(Y.isub(H),te.isub(j))}var V;return H.cmpn(1)===0?V=j:V=te,V.cmpn(0)<0&&V.iadd(O),V},c.prototype.gcd=function(O){if(this.isZero())return O.abs();if(O.isZero())return this.abs();var H=this.clone(),Y=O.clone();H.negative=0,Y.negative=0;for(var j=0;H.isEven()&&Y.isEven();j++)H.iushrn(1),Y.iushrn(1);do{for(;H.isEven();)H.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var te=H.cmp(Y);if(te<0){var ie=H;H=Y,Y=ie}else if(te===0||Y.cmpn(1)===0)break;H.isub(Y)}while(!0);return Y.iushln(j)},c.prototype.invm=function(O){return this.egcd(O).a.umod(O)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(O){return this.words[0]&O},c.prototype.bincn=function(O){n(typeof O=="number");var H=O%26,Y=(O-H)/26,j=1<>>26,ue&=67108863,this.words[ie]=ue}return te!==0&&(this.words[ie]=te,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(O){var H=O<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this.strip();var Y;if(this.length>1)Y=1;else{H&&(O=-O),n(O<=67108863,"Number is too big");var j=this.words[0]|0;Y=j===O?0:jO.length)return 1;if(this.length=0;Y--){var j=this.words[Y]|0,te=O.words[Y]|0;if(j!==te){jte&&(H=1);break}}return H},c.prototype.gtn=function(O){return this.cmpn(O)===1},c.prototype.gt=function(O){return this.cmp(O)===1},c.prototype.gten=function(O){return this.cmpn(O)>=0},c.prototype.gte=function(O){return this.cmp(O)>=0},c.prototype.ltn=function(O){return this.cmpn(O)===-1},c.prototype.lt=function(O){return this.cmp(O)===-1},c.prototype.lten=function(O){return this.cmpn(O)<=0},c.prototype.lte=function(O){return this.cmp(O)<=0},c.prototype.eqn=function(O){return this.cmpn(O)===0},c.prototype.eq=function(O){return this.cmp(O)===0},c.red=function(O){return new I(O)},c.prototype.toRed=function(O){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),O.convertTo(this)._forceRed(O)},c.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(O){return this.red=O,this},c.prototype.forceRed=function(O){return n(!this.red,"Already a number in reduction context"),this._forceRed(O)},c.prototype.redAdd=function(O){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,O)},c.prototype.redIAdd=function(O){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,O)},c.prototype.redSub=function(O){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,O)},c.prototype.redISub=function(O){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,O)},c.prototype.redShl=function(O){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,O)},c.prototype.redMul=function(O){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.mul(this,O)},c.prototype.redIMul=function(O){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.imul(this,O)},c.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(O){return n(this.red&&!O.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,O)};var s={k256:null,p224:null,p192:null,p25519:null};function L(B,O){this.name=B,this.p=new c(O,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var O=new c(null);return O.words=new Array(Math.ceil(this.n/13)),O},L.prototype.ireduce=function(O){var H=O,Y;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),Y=H.bitLength();while(Y>this.n);var j=Y0?H.isub(this.p):H.strip!==void 0?H.strip():H._strip(),H},L.prototype.split=function(O,H){O.iushrn(this.n,0,H)},L.prototype.imulK=function(O){return O.imul(this.k)};function M(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(M,L),M.prototype.split=function(O,H){for(var Y=4194303,j=Math.min(O.length,9),te=0;te>>22,ie=ue}ie>>>=22,O.words[te-10]=ie,ie===0&&O.length>10?O.length-=10:O.length-=9},M.prototype.imulK=function(O){O.words[O.length]=0,O.words[O.length+1]=0,O.length+=2;for(var H=0,Y=0;Y>>=26,O.words[Y]=te,H=j}return H!==0&&(O.words[O.length++]=H),O},c._prime=function(O){if(s[O])return s[O];var H;if(O==="k256")H=new M;else if(O==="p224")H=new z;else if(O==="p192")H=new D;else if(O==="p25519")H=new N;else throw new Error("Unknown prime "+O);return s[O]=H,H};function I(B){if(typeof B=="string"){var O=c._prime(B);this.m=O.p,this.prime=O}else n(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}I.prototype._verify1=function(O){n(O.negative===0,"red works only with positives"),n(O.red,"red works only with red numbers")},I.prototype._verify2=function(O,H){n((O.negative|H.negative)===0,"red works only with positives"),n(O.red&&O.red===H.red,"red works only with red numbers")},I.prototype.imod=function(O){return this.prime?this.prime.ireduce(O)._forceRed(this):O.umod(this.m)._forceRed(this)},I.prototype.neg=function(O){return O.isZero()?O.clone():this.m.sub(O)._forceRed(this)},I.prototype.add=function(O,H){this._verify2(O,H);var Y=O.add(H);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},I.prototype.iadd=function(O,H){this._verify2(O,H);var Y=O.iadd(H);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},I.prototype.sub=function(O,H){this._verify2(O,H);var Y=O.sub(H);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},I.prototype.isub=function(O,H){this._verify2(O,H);var Y=O.isub(H);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},I.prototype.shl=function(O,H){return this._verify1(O),this.imod(O.ushln(H))},I.prototype.imul=function(O,H){return this._verify2(O,H),this.imod(O.imul(H))},I.prototype.mul=function(O,H){return this._verify2(O,H),this.imod(O.mul(H))},I.prototype.isqr=function(O){return this.imul(O,O.clone())},I.prototype.sqr=function(O){return this.mul(O,O)},I.prototype.sqrt=function(O){if(O.isZero())return O.clone();var H=this.m.andln(3);if(n(H%2===1),H===3){var Y=this.m.add(new c(1)).iushrn(2);return this.pow(O,Y)}for(var j=this.m.subn(1),te=0;!j.isZero()&&j.andln(1)===0;)te++,j.iushrn(1);n(!j.isZero());var ie=new c(1).toRed(this),ue=ie.redNeg(),J=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new c(2*X*X).toRed(this);this.pow(X,J).cmp(ue)!==0;)X.redIAdd(ue);for(var ee=this.pow(X,j),V=this.pow(O,j.addn(1).iushrn(1)),Q=this.pow(O,j),oe=te;Q.cmp(ie)!==0;){for(var $=Q,Z=0;$.cmp(ie)!==0;Z++)$=$.redSqr();n(Z=0;te--){for(var ee=H.words[te],V=X-1;V>=0;V--){var Q=ee>>V&1;if(ie!==j[0]&&(ie=this.sqr(ie)),Q===0&&ue===0){J=0;continue}ue<<=1,ue|=Q,J++,!(J!==Y&&(te!==0||V!==0))&&(ie=this.mul(ie,j[ue]),J=0,ue=0)}X=26}return ie},I.prototype.convertTo=function(O){var H=O.umod(this.m);return H===O?H.clone():H},I.prototype.convertFrom=function(O){var H=O.clone();return H.red=null,H},c.mont=function(O){return new k(O)};function k(B){I.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(k,I),k.prototype.convertTo=function(O){return this.imod(O.ushln(this.shift))},k.prototype.convertFrom=function(O){var H=this.imod(O.mul(this.rinv));return H.red=null,H},k.prototype.imul=function(O,H){if(O.isZero()||H.isZero())return O.words[0]=0,O.length=1,O;var Y=O.imul(H),j=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),te=Y.isub(j).iushrn(this.shift),ie=te;return te.cmp(this.m)>=0?ie=te.isub(this.m):te.cmpn(0)<0&&(ie=te.iadd(this.m)),ie._forceRed(this)},k.prototype.mul=function(O,H){if(O.isZero()||H.isZero())return new c(0)._forceRed(this);var Y=O.mul(H),j=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),te=Y.isub(j).iushrn(this.shift),ie=te;return te.cmp(this.m)>=0?ie=te.isub(this.m):te.cmpn(0)<0&&(ie=te.iadd(this.m)),ie._forceRed(this)},k.prototype.invm=function(O){var H=this.imod(O._invmp(this.m).mul(this.r2));return H._forceRed(this)}}(v,this)},2692:function(v){v.exports=p;function p(r){var t,a,n,f=r.length,c=0;for(t=0;t>>1;if(!(T<=0)){var s,L=t.mallocDouble(2*T*y),M=t.mallocInt32(y);if(y=c(d,T,L,M),y>0){if(T===1&&_)a.init(y),s=a.sweepComplete(T,A,0,y,L,M,0,y,L,M);else{var z=t.mallocDouble(2*T*E),D=t.mallocInt32(E);E=c(w,T,z,D),E>0&&(a.init(y+E),T===1?s=a.sweepBipartite(T,A,0,y,L,M,0,E,z,D):s=n(T,A,_,y,L,M,E,z,D),t.free(z),t.free(D))}t.free(L),t.free(M)}return s}}}var m;function h(d,w){m.push([d,w])}function b(d){return m=[],l(d,d,h,!0),m}function u(d,w){return m=[],l(d,w,h,!1),m}function o(d,w,A){switch(arguments.length){case 1:return b(d);case 2:return typeof w=="function"?l(d,d,w,!0):u(d,w);case 3:return l(d,w,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},7333:function(v,p){function r(){function n(l,m,h,b,u,o,d,w,A,_,y){for(var E=2*l,T=b,s=E*b;TA-w?n(l,m,h,b,u,o,d,w,A,_,y):f(l,m,h,b,u,o,d,w,A,_,y)}return c}function t(){function n(h,b,u,o,d,w,A,_,y,E,T){for(var s=2*h,L=o,M=s*o;LE-y?o?n(h,b,u,d,w,A,_,y,E,T,s):f(h,b,u,d,w,A,_,y,E,T,s):o?c(h,b,u,d,w,A,_,y,E,T,s):l(h,b,u,d,w,A,_,y,E,T,s)}return m}function a(n){return n?r():t()}p.partial=a(!1),p.full=a(!0)},2337:function(v,p,r){v.exports=B;var t=r(5306),a=r(2288),n=r(7333),f=n.partial,c=n.full,l=r(1390),m=r(2464),h=r(122),b=128,u=1<<22,o=1<<22,d=h("!(lo>=p0)&&!(p1>=hi)"),w=h("lo===p0"),A=h("lo0;){ee-=1;var oe=ee*T,$=M[oe],Z=M[oe+1],se=M[oe+2],ne=M[oe+3],ce=M[oe+4],ge=M[oe+5],Te=ee*s,we=z[Te],Re=z[Te+1],be=ge&1,Ae=!!(ge&16),me=te,Le=ie,He=J,Ue=X;if(be&&(me=J,Le=X,He=te,Ue=ie),!(ge&2&&(se=A(O,$,Z,se,me,Le,Re),Z>=se))&&!(ge&4&&(Z=_(O,$,Z,se,me,Le,we),Z>=se))){var ke=se-Z,Ve=ce-ne;if(Ae){if(O*ke*(ke+Ve)h&&u[E+m]>_;--y,E-=d){for(var T=E,s=E+d,L=0;L>>1,_=2*l,y=A,E=u[_*A+m];d=z?(y=M,E=z):L>=N?(y=s,E=L):(y=D,E=N):z>=N?(y=M,E=z):N>=L?(y=s,E=L):(y=D,E=N);for(var B=_*(w-1),O=_*y,I=0;I<_;++I,++B,++O){var k=u[B];u[B]=u[O],u[O]=k}var H=o[w-1];o[w-1]=o[y],o[y]=H,y=a(l,m,d,w-1,u,o,E);for(var B=_*(w-1),O=_*y,I=0;I<_;++I,++B,++O){var k=u[B];u[B]=u[O],u[O]=k}var H=o[w-1];if(o[w-1]=o[y],o[y]=H,A=p0)&&!(p1>=hi)":m};function r(h){return p[h]}function t(h,b,u,o,d,w,A){for(var _=2*h,y=_*u,E=y,T=u,s=b,L=h+b,M=u;o>M;++M,y+=_){var z=d[y+s];if(z===A)if(T===M)T+=1,E+=_;else{for(var D=0;_>D;++D){var N=d[y+D];d[y+D]=d[E],d[E++]=N}var I=w[M];w[M]=w[T],w[T++]=I}}return T}function a(h,b,u,o,d,w,A){for(var _=2*h,y=_*u,E=y,T=u,s=b,L=h+b,M=u;o>M;++M,y+=_){var z=d[y+s];if(zD;++D){var N=d[y+D];d[y+D]=d[E],d[E++]=N}var I=w[M];w[M]=w[T],w[T++]=I}}return T}function n(h,b,u,o,d,w,A){for(var _=2*h,y=_*u,E=y,T=u,s=b,L=h+b,M=u;o>M;++M,y+=_){var z=d[y+L];if(z<=A)if(T===M)T+=1,E+=_;else{for(var D=0;_>D;++D){var N=d[y+D];d[y+D]=d[E],d[E++]=N}var I=w[M];w[M]=w[T],w[T++]=I}}return T}function f(h,b,u,o,d,w,A){for(var _=2*h,y=_*u,E=y,T=u,s=b,L=h+b,M=u;o>M;++M,y+=_){var z=d[y+L];if(z<=A)if(T===M)T+=1,E+=_;else{for(var D=0;_>D;++D){var N=d[y+D];d[y+D]=d[E],d[E++]=N}var I=w[M];w[M]=w[T],w[T++]=I}}return T}function c(h,b,u,o,d,w,A){for(var _=2*h,y=_*u,E=y,T=u,s=b,L=h+b,M=u;o>M;++M,y+=_){var z=d[y+s],D=d[y+L];if(z<=A&&A<=D)if(T===M)T+=1,E+=_;else{for(var N=0;_>N;++N){var I=d[y+N];d[y+N]=d[E],d[E++]=I}var k=w[M];w[M]=w[T],w[T++]=k}}return T}function l(h,b,u,o,d,w,A){for(var _=2*h,y=_*u,E=y,T=u,s=b,L=h+b,M=u;o>M;++M,y+=_){var z=d[y+s],D=d[y+L];if(zN;++N){var I=d[y+N];d[y+N]=d[E],d[E++]=I}var k=w[M];w[M]=w[T],w[T++]=k}}return T}function m(h,b,u,o,d,w,A,_){for(var y=2*h,E=y*u,T=E,s=u,L=b,M=h+b,z=u;o>z;++z,E+=y){var D=d[E+L],N=d[E+M];if(!(D>=A)&&!(_>=N))if(s===z)s+=1,T+=y;else{for(var I=0;y>I;++I){var k=d[E+I];d[E+I]=d[T],d[T++]=k}var B=w[z];w[z]=w[s],w[s++]=B}}return s}},309:function(v){v.exports=r;var p=32;function r(b,u){u<=4*p?t(0,u-1,b):h(0,u-1,b)}function t(b,u,o){for(var d=2*(b+1),w=b+1;w<=u;++w){for(var A=o[d++],_=o[d++],y=w,E=d-2;y-- >b;){var T=o[E-2],s=o[E-1];if(To[u+1]:!0}function m(b,u,o,d){b*=2;var w=d[b];return w>1,y=_-d,E=_+d,T=w,s=y,L=_,M=E,z=A,D=b+1,N=u-1,I=0;l(T,s,o)&&(I=T,T=s,s=I),l(M,z,o)&&(I=M,M=z,z=I),l(T,L,o)&&(I=T,T=L,L=I),l(s,L,o)&&(I=s,s=L,L=I),l(T,M,o)&&(I=T,T=M,M=I),l(L,M,o)&&(I=L,L=M,M=I),l(s,z,o)&&(I=s,s=z,z=I),l(s,L,o)&&(I=s,s=L,L=I),l(M,z,o)&&(I=M,M=z,z=I);for(var k=o[2*s],B=o[2*s+1],O=o[2*M],H=o[2*M+1],Y=2*T,j=2*L,te=2*z,ie=2*w,ue=2*_,J=2*A,X=0;X<2;++X){var ee=o[Y+X],V=o[j+X],Q=o[te+X];o[ie+X]=ee,o[ue+X]=V,o[J+X]=Q}n(y,b,o),n(E,u,o);for(var oe=D;oe<=N;++oe)if(m(oe,k,B,o))oe!==D&&a(oe,D,o),++D;else if(!m(oe,O,H,o))for(;;)if(m(N,O,H,o)){m(N,k,B,o)?(f(oe,D,N,o),++D,--N):(a(oe,N,o),--N);break}else{if(--N>>1;n(d,V);for(var Q=0,oe=0,ue=0;ue=f)$=$-f|0,A(h,b,oe--,$);else if($>=0)A(l,m,Q--,$);else if($<=-f){$=-$-f|0;for(var Z=0;Z>>1;n(d,V);for(var Q=0,oe=0,$=0,ue=0;ue>1===d[2*ue+3]>>1&&(se=2,ue+=1),Z<0){for(var ne=-(Z>>1)-1,ce=0;ce<$;++ce){var ge=M(u[ce],ne);if(ge!==void 0)return ge}if(se!==0)for(var ce=0;ce>1)-1;se===0?A(l,m,Q--,ne):se===1?A(h,b,oe--,ne):se===2&&A(u,o,$--,ne)}}}function T(L,M,z,D,N,I,k,B,O,H,Y,j){var te=0,ie=2*L,ue=M,J=M+L,X=1,ee=1;D?ee=f:X=f;for(var V=N;V>>1;n(d,Z);for(var se=0,V=0;V=f?(ce=!D,Q-=f):(ce=!!D,Q-=1),ce)_(l,m,se++,Q);else{var ge=j[Q],Te=ie*Q,we=Y[Te+M+1],Re=Y[Te+M+1+L];e:for(var be=0;be>>1;n(d,Q);for(var oe=0,J=0;J=f)l[oe++]=X-f;else{X-=1;var Z=Y[X],se=te*X,ne=H[se+M+1],ce=H[se+M+1+L];e:for(var ge=0;ge=0;--ge)if(l[ge]===X){for(var be=ge+1;be0;){for(var d=l.pop(),b=l.pop(),w=-1,A=-1,u=h[b],y=1;y=0||(c.flip(b,d),a(f,c,l,w,b,A),a(f,c,l,b,A,w),a(f,c,l,A,d,w),a(f,c,l,d,w,A))}}},7098:function(v,p,r){var t=r(5070);v.exports=m;function a(h,b,u,o,d,w,A){this.cells=h,this.neighbor=b,this.flags=o,this.constraint=u,this.active=d,this.next=w,this.boundary=A}var n=a.prototype;function f(h,b){return h[0]-b[0]||h[1]-b[1]||h[2]-b[2]}n.locate=function(){var h=[0,0,0];return function(b,u,o){var d=b,w=u,A=o;return u0||A.length>0;){for(;w.length>0;){var s=w.pop();if(_[s]!==-d){_[s]=d,y[s];for(var L=0;L<3;++L){var M=T[3*s+L];M>=0&&_[M]===0&&(E[3*s+L]?A.push(M):(w.push(M),_[M]=d))}}}var z=A;A=w,w=z,A.length=0,d=-d}var D=l(y,_,b);return u?D.concat(o.boundary):D}},9971:function(v,p,r){var t=r(5070),a=r(417)[3],n=0,f=1,c=2;v.exports=A;function l(_,y,E,T,s){this.a=_,this.b=y,this.idx=E,this.lowerIds=T,this.upperIds=s}function m(_,y,E,T){this.a=_,this.b=y,this.type=E,this.idx=T}function h(_,y){var E=_.a[0]-y.a[0]||_.a[1]-y.a[1]||_.type-y.type;return E||_.type!==n&&(E=a(_.a,_.b,y.b),E)?E:_.idx-y.idx}function b(_,y){return a(_.a,_.b,y)}function u(_,y,E,T,s){for(var L=t.lt(y,T,b),M=t.gt(y,T,b),z=L;z1&&a(E[N[k-2]],E[N[k-1]],T)>0;)_.push([N[k-1],N[k-2],s]),k-=1;N.length=k,N.push(s);for(var I=D.upperIds,k=I.length;k>1&&a(E[I[k-2]],E[I[k-1]],T)<0;)_.push([I[k-2],I[k-1],s]),k-=1;I.length=k,I.push(s)}}function o(_,y){var E;return _.a[0]D[0]&&s.push(new m(D,z,c,L),new m(z,D,f,L))}s.sort(h);for(var N=s[0].a[0]-(1+Math.abs(s[0].a[0]))*Math.pow(2,-52),I=[new l([N,1],[N,0],-1,[],[])],k=[],L=0,B=s.length;L=0}}(),n.removeTriangle=function(l,m,h){var b=this.stars;f(b[l],m,h),f(b[m],h,l),f(b[h],l,m)},n.addTriangle=function(l,m,h){var b=this.stars;b[l].push(m,h),b[m].push(h,l),b[h].push(l,m)},n.opposite=function(l,m){for(var h=this.stars[m],b=1,u=h.length;b=0;--O){var ee=k[O];H=ee[0];var V=N[H],Q=V[0],oe=V[1],$=D[Q],Z=D[oe];if(($[0]-Z[0]||$[1]-Z[1])<0){var se=Q;Q=oe,oe=se}V[0]=Q;var ne=V[1]=ee[1],ce;for(B&&(ce=V[2]);O>0&&k[O-1][0]===H;){var ee=k[--O],ge=ee[1];B?N.push([ne,ge,ce]):N.push([ne,ge]),ne=ge}B?N.push([ne,oe,ce]):N.push([ne,oe])}return Y}function y(D,N,I){for(var k=N.length,B=new t(k),O=[],H=0;HN[2]?1:0)}function s(D,N,I){if(D.length!==0){if(N)for(var k=0;k0||H.length>0}function z(D,N,I){var k;if(I){k=N;for(var B=new Array(N.length),O=0;O_+1)throw new Error(w+" map requires nshades to be at least size "+d.length);Array.isArray(m.alpha)?m.alpha.length!==2?y=[1,1]:y=m.alpha.slice():typeof m.alpha=="number"?y=[m.alpha,m.alpha]:y=[1,1],h=d.map(function(z){return Math.round(z.index*_)}),y[0]=Math.min(Math.max(y[0],0),1),y[1]=Math.min(Math.max(y[1],0),1);var T=d.map(function(z,D){var N=d[D].index,I=d[D].rgb.slice();return I.length===4&&I[3]>=0&&I[3]<=1||(I[3]=y[0]+(y[1]-y[0])*N),I}),s=[];for(E=0;E=0}function m(h,b,u,o){var d=t(b,u,o);if(d===0){var w=a(t(h,b,u)),A=a(t(h,b,o));if(w===A){if(w===0){var _=l(h,b,u),y=l(h,b,o);return _===y?0:_?1:-1}return 0}else{if(A===0)return w>0||l(h,b,o)?-1:1;if(w===0)return A>0||l(h,b,u)?1:-1}return a(A-w)}var E=t(h,b,u);if(E>0)return d>0&&t(h,b,o)>0?1:-1;if(E<0)return d>0||t(h,b,o)>0?1:-1;var T=t(h,b,o);return T>0||l(h,b,u)?1:-1}},7538:function(v){v.exports=function(r){return r<0?-1:r>0?1:0}},9209:function(v){v.exports=t;var p=Math.min;function r(a,n){return a-n}function t(a,n){var f=a.length,c=a.length-n.length;if(c)return c;switch(f){case 0:return 0;case 1:return a[0]-n[0];case 2:return a[0]+a[1]-n[0]-n[1]||p(a[0],a[1])-p(n[0],n[1]);case 3:var l=a[0]+a[1],m=n[0]+n[1];if(c=l+a[2]-(m+n[2]),c)return c;var h=p(a[0],a[1]),b=p(n[0],n[1]);return p(h,a[2])-p(b,n[2])||p(h+a[2],l)-p(b+n[2],m);case 4:var u=a[0],o=a[1],d=a[2],w=a[3],A=n[0],_=n[1],y=n[2],E=n[3];return u+o+d+w-(A+_+y+E)||p(u,o,d,w)-p(A,_,y,E,A)||p(u+o,u+d,u+w,o+d,o+w,d+w)-p(A+_,A+y,A+E,_+y,_+E,y+E)||p(u+o+d,u+o+w,u+d+w,o+d+w)-p(A+_+y,A+_+E,A+y+E,_+y+E);default:for(var T=a.slice().sort(r),s=n.slice().sort(r),L=0;Lr[a][0]&&(a=n);return ta?[[a],[t]]:[[t]]}},8722:function(v,p,r){v.exports=a;var t=r(3266);function a(n){var f=t(n),c=f.length;if(c<=2)return[];for(var l=new Array(c),m=f[c-1],h=0;h=m[A]&&(w+=1);o[d]=w}}return l}function c(l,m){try{return t(l,!0)}catch{var h=a(l);if(h.length<=m)return[];var b=n(l,h),u=t(b,!0);return f(u,h)}}},9680:function(v){function p(t,a,n,f,c,l){var m=6*c*c-6*c,h=3*c*c-4*c+1,b=-6*c*c+6*c,u=3*c*c-2*c;if(t.length){l||(l=new Array(t.length));for(var o=t.length-1;o>=0;--o)l[o]=m*t[o]+h*a[o]+b*n[o]+u*f[o];return l}return m*t+h*a+b*n[o]+u*f}function r(t,a,n,f,c,l){var m=c-1,h=c*c,b=m*m,u=(1+2*c)*b,o=c*b,d=h*(3-2*c),w=h*m;if(t.length){l||(l=new Array(t.length));for(var A=t.length-1;A>=0;--A)l[A]=u*t[A]+o*a[A]+d*n[A]+w*f[A];return l}return u*t+o*a+d*n+w*f}v.exports=r,v.exports.derivative=p},4419:function(v,p,r){var t=r(2183),a=r(1215);v.exports=l;function n(m,h){this.point=m,this.index=h}function f(m,h){for(var b=m.point,u=h.point,o=b.length,d=0;d=2)return!1;I[B]=O}return!0}):N=N.filter(function(I){for(var k=0;k<=u;++k){var B=L[I[k]];if(B<0)return!1;I[k]=B}return!0}),u&1)for(var w=0;w>>31},v.exports.exponent=function(n){var f=v.exports.hi(n);return(f<<1>>>21)-1023},v.exports.fraction=function(n){var f=v.exports.lo(n),c=v.exports.hi(n),l=c&(1<<20)-1;return c&2146435072&&(l+=1048576),[f,l]},v.exports.denormalized=function(n){var f=v.exports.hi(n);return!(f&2146435072)}},3094:function(v){function p(a,n,f){var c=a[f]|0;if(c<=0)return[];var l=new Array(c),m;if(f===a.length-1)for(m=0;m"u"&&(n=0),typeof a){case"number":if(a>0)return r(a|0,n);break;case"object":if(typeof a.length=="number")return p(a,n,0);break}return[]}v.exports=t},8348:function(v,p,r){v.exports=a;var t=r(1215);function a(n,f){var c=n.length;if(typeof f!="number"){f=0;for(var l=0;l=u-1)for(var E=w.length-1,s=h-b[u-1],T=0;T<_;++T,--E)d[T]=w[E]+s*A[E];else{for(var E=_*(o+1)-1,L=b[o],M=b[o+1],z=M-L||1,D=this._scratch[1],N=this._scratch[2],I=this._scratch[3],k=this._scratch[4],B=!0,T=0;T<_;++T,--E)D[T]=w[E],I[T]=A[E]*z,N[T]=w[E+_],k[T]=A[E+_]*z,B=B&&D[T]===N[T]&&I[T]===k[T]&&I[T]===0;if(B)for(var T=0;T<_;++T)d[T]=D[T];else t(D,I,N,k,(h-L)/z,d)}for(var O=y[0],H=y[1],T=0;T<_;++T)d[T]=n(O[T],H[T],d[T]);return d},c.dcurve=function(h){var b=this._time,u=b.length,o=a.le(b,h),d=this._scratch[0],w=this._state,A=this._velocity,_=this.dimension;if(o>=u-1){var y=w.length-1;h-b[u-1];for(var E=0;E<_;++E,--y)d[E]=A[y]}else{for(var y=_*(o+1)-1,T=b[o],s=b[o+1],L=s-T||1,M=this._scratch[1],z=this._scratch[2],D=this._scratch[3],N=this._scratch[4],I=!0,E=0;E<_;++E,--y)M[E]=w[y],D[E]=A[y]*L,z[E]=w[y+_],N[E]=A[y+_]*L,I=I&&M[E]===z[E]&&D[E]===N[E]&&D[E]===0;if(I)for(var E=0;E<_;++E)d[E]=0;else{t.derivative(M,D,z,N,(h-T)/L,d);for(var E=0;E<_;++E)d[E]/=L}}return d},c.lastT=function(){var h=this._time;return h[h.length-1]},c.stable=function(){for(var h=this._velocity,b=h.length,u=this.dimension-1;u>=0;--u)if(h[--b])return!1;return!0},c.jump=function(h){var b=this.lastT(),u=this.dimension;if(!(h0;--T)o.push(n(_[T-1],y[T-1],arguments[T])),d.push(0)}},c.push=function(h){var b=this.lastT(),u=this.dimension;if(!(h1e-6?1/A:0;this._time.push(h);for(var s=u;s>0;--s){var L=n(y[s-1],E[s-1],arguments[s]);o.push(L),d.push((L-o[w++])*T)}}},c.set=function(h){var b=this.dimension;if(!(h0;--_)u.push(n(w[_-1],A[_-1],arguments[_])),o.push(0)}},c.move=function(h){var b=this.lastT(),u=this.dimension;if(!(h<=b||arguments.length!==u+1)){var o=this._state,d=this._velocity,w=o.length-this.dimension,A=this.bounds,_=A[0],y=A[1],E=h-b,T=E>1e-6?1/E:0;this._time.push(h);for(var s=u;s>0;--s){var L=arguments[s];o.push(n(_[s-1],y[s-1],o[w++]+L)),d.push(L*T)}}},c.idle=function(h){var b=this.lastT();if(!(h=0;--T)o.push(n(_[T],y[T],o[w]+E*d[w])),d.push(0),w+=1}};function l(h){for(var b=new Array(h),u=0;u=0;--D){var s=L[D];M[D]<=0?L[D]=new t(s._color,s.key,s.value,L[D+1],s.right,s._count+1):L[D]=new t(s._color,s.key,s.value,s.left,L[D+1],s._count+1)}for(var D=L.length-1;D>1;--D){var N=L[D-1],s=L[D];if(N._color===r||s._color===r)break;var I=L[D-2];if(I.left===N)if(N.left===s){var k=I.right;if(k&&k._color===p)N._color=r,I.right=n(r,k),I._color=p,D-=1;else{if(I._color=p,I.left=N.right,N._color=r,N.right=I,L[D-2]=N,L[D-1]=s,f(I),f(N),D>=3){var B=L[D-3];B.left===I?B.left=N:B.right=N}break}}else{var k=I.right;if(k&&k._color===p)N._color=r,I.right=n(r,k),I._color=p,D-=1;else{if(N.right=s.left,I._color=p,I.left=s.right,s._color=r,s.left=N,s.right=I,L[D-2]=s,L[D-1]=N,f(I),f(N),f(s),D>=3){var B=L[D-3];B.left===I?B.left=s:B.right=s}break}}else if(N.right===s){var k=I.left;if(k&&k._color===p)N._color=r,I.left=n(r,k),I._color=p,D-=1;else{if(I._color=p,I.right=N.left,N._color=r,N.left=I,L[D-2]=N,L[D-1]=s,f(I),f(N),D>=3){var B=L[D-3];B.right===I?B.right=N:B.left=N}break}}else{var k=I.left;if(k&&k._color===p)N._color=r,I.left=n(r,k),I._color=p,D-=1;else{if(N.left=s.right,I._color=p,I.right=s.left,s._color=r,s.right=N,s.left=I,L[D-2]=s,L[D-1]=N,f(I),f(N),f(s),D>=3){var B=L[D-3];B.right===I?B.right=s:B.left=s}break}}}return L[0]._color=r,new c(T,L[0])};function m(y,E){if(E.left){var T=m(y,E.left);if(T)return T}var T=y(E.key,E.value);if(T)return T;if(E.right)return m(y,E.right)}function h(y,E,T,s){var L=E(y,s.key);if(L<=0){if(s.left){var M=h(y,E,T,s.left);if(M)return M}var M=T(s.key,s.value);if(M)return M}if(s.right)return h(y,E,T,s.right)}function b(y,E,T,s,L){var M=T(y,L.key),z=T(E,L.key),D;if(M<=0&&(L.left&&(D=b(y,E,T,s,L.left),D)||z>0&&(D=s(L.key,L.value),D)))return D;if(z>0&&L.right)return b(y,E,T,s,L.right)}l.forEach=function(E,T,s){if(this.root)switch(arguments.length){case 1:return m(E,this.root);case 2:return h(T,this._compare,E,this.root);case 3:return this._compare(T,s)>=0?void 0:b(T,s,this._compare,E,this.root)}},Object.defineProperty(l,"begin",{get:function(){for(var y=[],E=this.root;E;)y.push(E),E=E.left;return new u(this,y)}}),Object.defineProperty(l,"end",{get:function(){for(var y=[],E=this.root;E;)y.push(E),E=E.right;return new u(this,y)}}),l.at=function(y){if(y<0)return new u(this,[]);for(var E=this.root,T=[];;){if(T.push(E),E.left){if(y=E.right._count)break;E=E.right}else break}return new u(this,[])},l.ge=function(y){for(var E=this._compare,T=this.root,s=[],L=0;T;){var M=E(y,T.key);s.push(T),M<=0&&(L=s.length),M<=0?T=T.left:T=T.right}return s.length=L,new u(this,s)},l.gt=function(y){for(var E=this._compare,T=this.root,s=[],L=0;T;){var M=E(y,T.key);s.push(T),M<0&&(L=s.length),M<0?T=T.left:T=T.right}return s.length=L,new u(this,s)},l.lt=function(y){for(var E=this._compare,T=this.root,s=[],L=0;T;){var M=E(y,T.key);s.push(T),M>0&&(L=s.length),M<=0?T=T.left:T=T.right}return s.length=L,new u(this,s)},l.le=function(y){for(var E=this._compare,T=this.root,s=[],L=0;T;){var M=E(y,T.key);s.push(T),M>=0&&(L=s.length),M<0?T=T.left:T=T.right}return s.length=L,new u(this,s)},l.find=function(y){for(var E=this._compare,T=this.root,s=[];T;){var L=E(y,T.key);if(s.push(T),L===0)return new u(this,s);L<=0?T=T.left:T=T.right}return new u(this,[])},l.remove=function(y){var E=this.find(y);return E?E.remove():this},l.get=function(y){for(var E=this._compare,T=this.root;T;){var s=E(y,T.key);if(s===0)return T.value;s<=0?T=T.left:T=T.right}};function u(y,E){this.tree=y,this._stack=E}var o=u.prototype;Object.defineProperty(o,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(o,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),o.clone=function(){return new u(this.tree,this._stack.slice())};function d(y,E){y.key=E.key,y.value=E.value,y.left=E.left,y.right=E.right,y._color=E._color,y._count=E._count}function w(y){for(var E,T,s,L,M=y.length-1;M>=0;--M){if(E=y[M],M===0){E._color=r;return}if(T=y[M-1],T.left===E){if(s=T.right,s.right&&s.right._color===p){if(s=T.right=a(s),L=s.right=a(s.right),T.right=s.left,s.left=T,s.right=L,s._color=T._color,E._color=r,T._color=r,L._color=r,f(T),f(s),M>1){var z=y[M-2];z.left===T?z.left=s:z.right=s}y[M-1]=s;return}else if(s.left&&s.left._color===p){if(s=T.right=a(s),L=s.left=a(s.left),T.right=L.left,s.left=L.right,L.left=T,L.right=s,L._color=T._color,T._color=r,s._color=r,E._color=r,f(T),f(s),f(L),M>1){var z=y[M-2];z.left===T?z.left=L:z.right=L}y[M-1]=L;return}if(s._color===r)if(T._color===p){T._color=r,T.right=n(p,s);return}else{T.right=n(p,s);continue}else{if(s=a(s),T.right=s.left,s.left=T,s._color=T._color,T._color=p,f(T),f(s),M>1){var z=y[M-2];z.left===T?z.left=s:z.right=s}y[M-1]=s,y[M]=T,M+11){var z=y[M-2];z.right===T?z.right=s:z.left=s}y[M-1]=s;return}else if(s.right&&s.right._color===p){if(s=T.left=a(s),L=s.right=a(s.right),T.left=L.right,s.right=L.left,L.right=T,L.left=s,L._color=T._color,T._color=r,s._color=r,E._color=r,f(T),f(s),f(L),M>1){var z=y[M-2];z.right===T?z.right=L:z.left=L}y[M-1]=L;return}if(s._color===r)if(T._color===p){T._color=r,T.left=n(p,s);return}else{T.left=n(p,s);continue}else{if(s=a(s),T.left=s.right,s.right=T,s._color=T._color,T._color=p,f(T),f(s),M>1){var z=y[M-2];z.right===T?z.right=s:z.left=s}y[M-1]=s,y[M]=T,M+1=0;--s){var T=y[s];T.left===y[s+1]?E[s]=new t(T._color,T.key,T.value,E[s+1],T.right,T._count):E[s]=new t(T._color,T.key,T.value,T.left,E[s+1],T._count)}if(T=E[E.length-1],T.left&&T.right){var L=E.length;for(T=T.left;T.right;)E.push(T),T=T.right;var M=E[L-1];E.push(new t(T._color,M.key,M.value,T.left,T.right,T._count)),E[L-1].key=T.key,E[L-1].value=T.value;for(var s=E.length-2;s>=L;--s)T=E[s],E[s]=new t(T._color,T.key,T.value,T.left,E[s+1],T._count);E[L-1].left=E[L]}if(T=E[E.length-1],T._color===p){var z=E[E.length-2];z.left===T?z.left=null:z.right===T&&(z.right=null),E.pop();for(var s=0;s0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(o,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(o,"index",{get:function(){var y=0,E=this._stack;if(E.length===0){var T=this.tree.root;return T?T._count:0}else E[E.length-1].left&&(y=E[E.length-1].left._count);for(var s=E.length-2;s>=0;--s)E[s+1]===E[s].right&&(++y,E[s].left&&(y+=E[s].left._count));return y},enumerable:!0}),o.next=function(){var y=this._stack;if(y.length!==0){var E=y[y.length-1];if(E.right)for(E=E.right;E;)y.push(E),E=E.left;else for(y.pop();y.length>0&&y[y.length-1].right===E;)E=y[y.length-1],y.pop()}},Object.defineProperty(o,"hasNext",{get:function(){var y=this._stack;if(y.length===0)return!1;if(y[y.length-1].right)return!0;for(var E=y.length-1;E>0;--E)if(y[E-1].left===y[E])return!0;return!1}}),o.update=function(y){var E=this._stack;if(E.length===0)throw new Error("Can't update empty node!");var T=new Array(E.length),s=E[E.length-1];T[T.length-1]=new t(s._color,s.key,y,s.left,s.right,s._count);for(var L=E.length-2;L>=0;--L)s=E[L],s.left===E[L+1]?T[L]=new t(s._color,s.key,s.value,T[L+1],s.right,s._count):T[L]=new t(s._color,s.key,s.value,s.left,T[L+1],s._count);return new c(this.tree._compare,T[0])},o.prev=function(){var y=this._stack;if(y.length!==0){var E=y[y.length-1];if(E.left)for(E=E.left;E;)y.push(E),E=E.right;else for(y.pop();y.length>0&&y[y.length-1].left===E;)E=y[y.length-1],y.pop()}},Object.defineProperty(o,"hasPrev",{get:function(){var y=this._stack;if(y.length===0)return!1;if(y[y.length-1].left)return!0;for(var E=y.length-1;E>0;--E)if(y[E-1].right===y[E])return!0;return!1}});function A(y,E){return yE?1:0}function _(y){return new c(y||A,null)}},7453:function(v,p,r){v.exports=s;var t=r(9557),a=r(1681),n=r(1011),f=r(2864),c=r(8468),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function m(L,M){return L[0]=M[0],L[1]=M[1],L[2]=M[2],L}function h(L){this.gl=L,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=n(L)}var b=h.prototype;b.update=function(L){L=L||{};function M(ie,ue,J){if(J in L){var X=L[J],ee=this[J],V;(ie?Array.isArray(X)&&Array.isArray(X[0]):Array.isArray(X))?this[J]=V=[ue(X[0]),ue(X[1]),ue(X[2])]:this[J]=V=[ue(X),ue(X),ue(X)];for(var Q=0;Q<3;++Q)if(V[Q]!==ee[Q])return!0}return!1}var z=M.bind(this,!1,Number),D=M.bind(this,!1,Boolean),N=M.bind(this,!1,String),I=M.bind(this,!0,function(ie){if(Array.isArray(ie)){if(ie.length===3)return[+ie[0],+ie[1],+ie[2],1];if(ie.length===4)return[+ie[0],+ie[1],+ie[2],+ie[3]]}return[0,0,0,1]}),k,B=!1,O=!1;if("bounds"in L)for(var H=L.bounds,Y=0;Y<2;++Y)for(var j=0;j<3;++j)H[Y][j]!==this.bounds[Y][j]&&(O=!0),this.bounds[Y][j]=H[Y][j];if("ticks"in L){k=L.ticks,B=!0,this.autoTicks=!1;for(var Y=0;Y<3;++Y)this.tickSpacing[Y]=0}else z("tickSpacing")&&(this.autoTicks=!0,O=!0);if(this._firstInit&&("ticks"in L||"tickSpacing"in L||(this.autoTicks=!0),O=!0,B=!0,this._firstInit=!1),O&&this.autoTicks&&(k=c.create(this.bounds,this.tickSpacing),B=!0),B){for(var Y=0;Y<3;++Y)k[Y].sort(function(ue,J){return ue.x-J.x});c.equal(k,this.ticks)?B=!1:this.ticks=k}D("tickEnable"),N("tickFont")&&(B=!0),z("tickSize"),z("tickAngle"),z("tickPad"),I("tickColor");var te=N("labels");N("labelFont")&&(te=!0),D("labelEnable"),z("labelSize"),z("labelPad"),I("labelColor"),D("lineEnable"),D("lineMirror"),z("lineWidth"),I("lineColor"),D("lineTickEnable"),D("lineTickMirror"),z("lineTickLength"),z("lineTickWidth"),I("lineTickColor"),D("gridEnable"),z("gridWidth"),I("gridColor"),D("zeroEnable"),I("zeroLineColor"),z("zeroLineWidth"),D("backgroundEnable"),I("backgroundColor"),this._text?this._text&&(te||B)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=t(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&B&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=a(this.gl,this.bounds,this.ticks))};function u(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var o=[new u,new u,new u];function d(L,M,z,D,N){for(var I=L.primalOffset,k=L.primalMinor,B=L.mirrorOffset,O=L.mirrorMinor,H=D[M],Y=0;Y<3;++Y)if(M!==Y){var j=I,te=B,ie=k,ue=O;H&1<0?(ie[Y]=-1,ue[Y]=0):(ie[Y]=0,ue[Y]=1)}}var w=[0,0,0],A={model:l,view:l,projection:l,_ortho:!1};b.isOpaque=function(){return!0},b.isTransparent=function(){return!1},b.drawTransparent=function(L){};var _=0,y=[0,0,0],E=[0,0,0],T=[0,0,0];b.draw=function(L){L=L||A;for(var ee=this.gl,M=L.model||l,z=L.view||l,D=L.projection||l,N=this.bounds,I=L._ortho||!1,k=f(M,z,D,N,I),B=k.cubeEdges,O=k.axis,H=z[12],Y=z[13],j=z[14],te=z[15],ie=I?2:1,ue=ie*this.pixelRatio*(D[3]*H+D[7]*Y+D[11]*j+D[15]*te)/ee.drawingBufferHeight,J=0;J<3;++J)this.lastCubeProps.cubeEdges[J]=B[J],this.lastCubeProps.axis[J]=O[J];for(var X=o,J=0;J<3;++J)d(o[J],J,this.bounds,B,O);for(var ee=this.gl,V=w,J=0;J<3;++J)this.backgroundEnable[J]?V[J]=O[J]:V[J]=0;this._background.draw(M,z,D,N,V,this.backgroundColor),this._lines.bind(M,z,D,this);for(var J=0;J<3;++J){var Q=[0,0,0];O[J]>0?Q[J]=N[1][J]:Q[J]=N[0][J];for(var oe=0;oe<2;++oe){var $=(J+1+oe)%3,Z=(J+1+(oe^1))%3;this.gridEnable[$]&&this._lines.drawGrid($,Z,this.bounds,Q,this.gridColor[$],this.gridWidth[$]*this.pixelRatio)}for(var oe=0;oe<2;++oe){var $=(J+1+oe)%3,Z=(J+1+(oe^1))%3;this.zeroEnable[Z]&&Math.min(N[0][Z],N[1][Z])<=0&&Math.max(N[0][Z],N[1][Z])>=0&&this._lines.drawZero($,Z,this.bounds,Q,this.zeroLineColor[Z],this.zeroLineWidth[Z]*this.pixelRatio)}}for(var J=0;J<3;++J){this.lineEnable[J]&&this._lines.drawAxisLine(J,this.bounds,X[J].primalOffset,this.lineColor[J],this.lineWidth[J]*this.pixelRatio),this.lineMirror[J]&&this._lines.drawAxisLine(J,this.bounds,X[J].mirrorOffset,this.lineColor[J],this.lineWidth[J]*this.pixelRatio);for(var se=m(y,X[J].primalMinor),ne=m(E,X[J].mirrorMinor),ce=this.lineTickLength,oe=0;oe<3;++oe){var ge=ue/M[5*oe];se[oe]*=ce[oe]*ge,ne[oe]*=ce[oe]*ge}this.lineTickEnable[J]&&this._lines.drawAxisTicks(J,X[J].primalOffset,se,this.lineTickColor[J],this.lineTickWidth[J]*this.pixelRatio),this.lineTickMirror[J]&&this._lines.drawAxisTicks(J,X[J].mirrorOffset,ne,this.lineTickColor[J],this.lineTickWidth[J]*this.pixelRatio)}this._lines.unbind(),this._text.bind(M,z,D,this.pixelRatio);var Te,we=.5,Re,be;function Ae(Ve){be=[0,0,0],be[Ve]=1}function me(Ve,Ie,rt){var Ke=(Ve+1)%3,$e=(Ve+2)%3,lt=Ie[Ke],ht=Ie[$e],dt=rt[Ke],xt=rt[$e];if(lt>0&&xt>0){Ae(Ke);return}else if(lt>0&&xt<0){Ae(Ke);return}else if(lt<0&&xt>0){Ae(Ke);return}else if(lt<0&&xt<0){Ae(Ke);return}else if(ht>0&&dt>0){Ae($e);return}else if(ht>0&&dt<0){Ae($e);return}else if(ht<0&&dt>0){Ae($e);return}else if(ht<0&&dt<0){Ae($e);return}}for(var J=0;J<3;++J){for(var Le=X[J].primalMinor,He=X[J].mirrorMinor,Ue=m(T,X[J].primalOffset),oe=0;oe<3;++oe)this.lineTickEnable[J]&&(Ue[oe]+=ue*Le[oe]*Math.max(this.lineTickLength[oe],0)/M[5*oe]);var ke=[0,0,0];if(ke[J]=1,this.tickEnable[J]){this.tickAngle[J]===-3600?(this.tickAngle[J]=0,this.tickAlign[J]="auto"):this.tickAlign[J]=-1,Re=1,Te=[this.tickAlign[J],we,Re],Te[0]==="auto"?Te[0]=_:Te[0]=parseInt(""+Te[0]),be=[0,0,0],me(J,Le,He);for(var oe=0;oe<3;++oe)Ue[oe]+=ue*Le[oe]*this.tickPad[oe]/M[5*oe];this._text.drawTicks(J,this.tickSize[J],this.tickAngle[J],Ue,this.tickColor[J],ke,be,Te)}if(this.labelEnable[J]){Re=0,be=[0,0,0],this.labels[J].length>4&&(Ae(J),Re=1),Te=[this.labelAlign[J],we,Re],Te[0]==="auto"?Te[0]=_:Te[0]=parseInt(""+Te[0]);for(var oe=0;oe<3;++oe)Ue[oe]+=ue*Le[oe]*this.labelPad[oe]/M[5*oe];Ue[J]+=.5*(N[0][J]+N[1][J]),this._text.drawLabel(J,this.labelSize[J],this.labelAngle[J],Ue,this.labelColor[J],[0,0,0],be,Te)}}this._text.unbind()},b.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function s(L,M){var z=new h(L);return z.update(M),z}},1011:function(v,p,r){v.exports=l;var t=r(5827),a=r(2944),n=r(1943).bg;function f(m,h,b,u){this.gl=m,this.buffer=h,this.vao=b,this.shader=u}var c=f.prototype;c.draw=function(m,h,b,u,o,d){for(var w=!1,A=0;A<3;++A)w=w||o[A];if(w){var _=this.gl;_.enable(_.POLYGON_OFFSET_FILL),_.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:m,view:h,projection:b,bounds:u,enable:o,colors:d},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),_.disable(_.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function l(m){for(var h=[],b=[],u=0,o=0;o<3;++o)for(var d=(o+1)%3,w=(o+2)%3,A=[0,0,0],_=[0,0,0],y=-1;y<=1;y+=2){b.push(u,u+2,u+1,u+1,u+2,u+3),A[o]=y,_[o]=y;for(var E=-1;E<=1;E+=2){A[d]=E;for(var T=-1;T<=1;T+=2)A[w]=T,h.push(A[0],A[1],A[2],_[0],_[1],_[2]),u+=1}var s=d;d=w,w=s}var L=t(m,new Float32Array(h)),M=t(m,new Uint16Array(b),m.ELEMENT_ARRAY_BUFFER),z=a(m,[{buffer:L,type:m.FLOAT,size:3,offset:0,stride:24},{buffer:L,type:m.FLOAT,size:3,offset:12,stride:24}],M),D=n(m);return D.attributes.position.location=0,D.attributes.normal.location=1,new f(m,L,z,D)}},2864:function(v,p,r){v.exports=y;var t=r(2288),a=r(104),n=r(4670),f=r(417),c=new Array(16),l=new Array(8),m=new Array(8),h=new Array(3),b=[0,0,0];(function(){for(var E=0;E<8;++E)l[E]=[1,1,1,1],m[E]=[1,1,1]})();function u(E,T,s){for(var L=0;L<4;++L){E[L]=s[12+L];for(var M=0;M<3;++M)E[L]+=T[M]*s[4*M+L]}}var o=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(E){for(var T=0;Tte&&(k|=1<te){k|=1<m[D][1])&&(oe=D);for(var $=-1,D=0;D<3;++D){var Z=oe^1<m[se][0]&&(se=Z)}}var ne=w;ne[0]=ne[1]=ne[2]=0,ne[t.log2($^oe)]=oe&$,ne[t.log2(oe^se)]=oe&se;var ce=se^7;ce===k||ce===Q?(ce=$^7,ne[t.log2(se^ce)]=ce&se):ne[t.log2($^ce)]=ce&$;for(var ge=A,Te=k,H=0;H<3;++H)Te&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ? + b - PI : + b; +} + +float look_horizontal_or_vertical(float a, float ratio) { + // ratio controls the ratio between being horizontal to (vertical + horizontal) + // if ratio is set to 0.5 then it is 50%, 50%. + // when using a higher ratio e.g. 0.75 the result would + // likely be more horizontal than vertical. + + float b = positive_angle(a); + + return + (b < ( ratio) * HALF_PI) ? 0.0 : + (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI : + (b < (2.0 + ratio) * HALF_PI) ? 0.0 : + (b < (4.0 - ratio) * HALF_PI) ? HALF_PI : + 0.0; +} + +float roundTo(float a, float b) { + return float(b * floor((a + 0.5 * b) / b)); +} + +float look_round_n_directions(float a, int n) { + float b = positive_angle(a); + float div = TWO_PI / float(n); + float c = roundTo(b, div); + return look_upwards(c); +} + +float applyAlignOption(float rawAngle, float delta) { + return + (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions + (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical + (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis + (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards + (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal + rawAngle; // otherwise return back raw input angle +} + +bool isAxisTitle = (axis.x == 0.0) && + (axis.y == 0.0) && + (axis.z == 0.0); + +void main() { + //Compute world offset + float axisDistance = position.z; + vec3 dataPosition = axisDistance * axis + offset; + + float beta = angle; // i.e. user defined attributes for each tick + + float axisAngle; + float clipAngle; + float flip; + + if (enableAlign) { + axisAngle = (isAxisTitle) ? HALF_PI : + computeViewAngle(dataPosition, dataPosition + axis); + clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir); + + axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0; + clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0; + + flip = (dot(vec2(cos(axisAngle), sin(axisAngle)), + vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0; + + beta += applyAlignOption(clipAngle, flip * PI); + } + + //Compute plane offset + vec2 planeCoord = position.xy * pixelScale; + + mat2 planeXform = scale * mat2( + cos(beta), sin(beta), + -sin(beta), cos(beta) + ); + + vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution; + + //Compute clip position + vec3 clipPosition = project(dataPosition); + + //Apply text offset in clip coordinates + clipPosition += vec3(viewOffset, 0.0); + + //Done + gl_Position = vec4(clipPosition, 1.0); +}`]),l=t([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 color; +void main() { + gl_FragColor = color; +}`]);p.f=function(b){return a(b,c,l,null,[{name:"position",type:"vec3"}])};var m=t([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec3 normal; + +uniform mat4 model, view, projection; +uniform vec3 enable; +uniform vec3 bounds[2]; + +varying vec3 colorChannel; + +void main() { + + vec3 signAxis = sign(bounds[1] - bounds[0]); + + vec3 realNormal = signAxis * normal; + + if(dot(realNormal, enable) > 0.0) { + vec3 minRange = min(bounds[0], bounds[1]); + vec3 maxRange = max(bounds[0], bounds[1]); + vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0)); + gl_Position = projection * view * model * vec4(nPosition, 1.0); + } else { + gl_Position = vec4(0,0,0,0); + } + + colorChannel = abs(realNormal); +}`]),h=t([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 colors[3]; + +varying vec3 colorChannel; + +void main() { + gl_FragColor = colorChannel.x * colors[0] + + colorChannel.y * colors[1] + + colorChannel.z * colors[2]; +}`]);p.bg=function(b){return a(b,m,h,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},9557:function(v,p,r){v.exports=d;var t=r(5827),a=r(2944),n=r(875),f=r(1943).f,c=window||g.global||{},l=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var m=3;function h(w,A,_,y){this.gl=w,this.shader=A,this.buffer=_,this.vao=y,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var b=h.prototype,u=[0,0];b.bind=function(w,A,_,y){this.vao.bind(),this.shader.bind();var E=this.shader.uniforms;E.model=w,E.view=A,E.projection=_,E.pixelScale=y,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=u},b.unbind=function(){this.vao.unbind()},b.update=function(w,A,_,y,E){var T=[];function s(O,H,Y,j,te,ie){var ue=l[Y];ue||(ue=l[Y]={});var J=ue[H];J||(J=ue[H]=o(H,{triangles:!0,font:Y,textAlign:"center",textBaseline:"middle",lineSpacing:te,styletags:ie}));for(var X=(j||12)/12,ee=J.positions,V=J.cells,Q=0,oe=V.length;Q=0;--Z){var se=ee[$[Z]];T.push(X*se[0],-X*se[1],O)}}for(var L=[0,0,0],M=[0,0,0],z=[0,0,0],D=[0,0,0],N=1.25,I={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},k=0;k<3;++k){z[k]=T.length/m|0,s(.5*(w[0][k]+w[1][k]),A[k],_[k],12,N,I),D[k]=(T.length/m|0)-z[k],L[k]=T.length/m|0;for(var B=0;B=0&&(m=c.length-l-1);var h=Math.pow(10,m),b=Math.round(n*f*h),u=b+"";if(u.indexOf("e")>=0)return u;var o=b/h,d=b%h;b<0?(o=-Math.ceil(o)|0,d=-d|0):(o=Math.floor(o)|0,d=d|0);var w=""+o;if(b<0&&(w="-"+w),m){for(var A=""+d;A.length=n[0][l];--h)m.push({x:h*f[l],text:r(f[l],h)});c.push(m)}return c}function a(n,f){for(var c=0;c<3;++c){if(n[c].length!==f[c].length)return!1;for(var l=0;lw)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return o.bufferSubData(d,y,_),w}function h(o,d){for(var w=t.malloc(o.length,d),A=o.length,_=0;_=0;--A){if(d[A]!==w)return!1;w*=o[A]}return!0}l.update=function(o,d){if(typeof d!="number"&&(d=-1),this.bind(),typeof o=="object"&&typeof o.shape<"u"){var w=o.dtype;if(f.indexOf(w)<0&&(w="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&w!=="uint16"?w="uint32":w="uint16"}if(w===o.dtype&&b(o.shape,o.stride))o.offset===0&&o.data.length===o.shape[0]?this.length=m(this.gl,this.type,this.length,this.usage,o.data,d):this.length=m(this.gl,this.type,this.length,this.usage,o.data.subarray(o.offset,o.shape[0]),d);else{var _=t.malloc(o.size,w),y=n(_,o.shape);a.assign(y,o),d<0?this.length=m(this.gl,this.type,this.length,this.usage,_,d):this.length=m(this.gl,this.type,this.length,this.usage,_.subarray(0,o.size),d),t.free(_)}}else if(Array.isArray(o)){var E;this.type===this.gl.ELEMENT_ARRAY_BUFFER?E=h(o,"uint16"):E=h(o,"float32"),d<0?this.length=m(this.gl,this.type,this.length,this.usage,E,d):this.length=m(this.gl,this.type,this.length,this.usage,E.subarray(0,o.length),d),t.free(E)}else if(typeof o=="object"&&typeof o.length=="number")this.length=m(this.gl,this.type,this.length,this.usage,o,d);else if(typeof o=="number"||o===void 0){if(d>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");o=o|0,o<=0&&(o=1),this.gl.bufferData(this.type,o|0,this.usage),this.length=o}else throw new Error("gl-buffer: Invalid data type")};function u(o,d,w,A){if(w=w||o.ARRAY_BUFFER,A=A||o.DYNAMIC_DRAW,w!==o.ARRAY_BUFFER&&w!==o.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==o.DYNAMIC_DRAW&&A!==o.STATIC_DRAW&&A!==o.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var _=o.createBuffer(),y=new c(o,w,_,0,A);return y.update(d),y}v.exports=u},1140:function(v,p,r){var t=r(2858);v.exports=function(n,f){var c=n.positions,l=n.vectors,m={positions:[],vertexIntensity:[],vertexIntensityBounds:n.vertexIntensityBounds,vectors:[],cells:[],coneOffset:n.coneOffset,colormap:n.colormap};if(n.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),m;for(var h=0,b=1/0,u=-1/0,o=1/0,d=-1/0,w=1/0,A=-1/0,_=null,y=null,E=[],T=1/0,s=!1,L=0;Lh&&(h=t.length(z)),L){var D=2*t.distance(_,M)/(t.length(y)+t.length(z));D?(T=Math.min(T,D),s=!1):s=!0}s||(_=M,y=z),E.push(z)}var N=[b,o,w],I=[u,d,A];f&&(f[0]=N,f[1]=I),h===0&&(h=1);var k=1/h;isFinite(T)||(T=1),m.vectorScale=T;var B=n.coneSize||.5;n.absoluteConeSize&&(B=n.absoluteConeSize*k),m.coneScale=B;for(var L=0,O=0;L=1},o.isTransparent=function(){return this.opacity<1},o.pickSlots=1,o.setPickBase=function(E){this.pickId=E};function d(E){for(var T=h({colormap:E,nshades:256,format:"rgba"}),s=new Uint8Array(256*4),L=0;L<256;++L){for(var M=T[L],z=0;z<3;++z)s[4*L+z]=M[z];s[4*L+3]=M[3]*255}return m(s,[256,256,4],[4,0,1])}function w(E){for(var T=E.length,s=new Array(T),L=0;L0){var H=this.triShader;H.bind(),H.uniforms=N,this.triangleVAO.bind(),T.drawArrays(T.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},o.drawPick=function(E){E=E||{};for(var T=this.gl,s=E.model||b,L=E.view||b,M=E.projection||b,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],D=0;D<3;++D)z[0][D]=Math.max(z[0][D],this.clipBounds[0][D]),z[1][D]=Math.min(z[1][D],this.clipBounds[1][D]);this._model=[].slice.call(s),this._view=[].slice.call(L),this._projection=[].slice.call(M),this._resolution=[T.drawingBufferWidth,T.drawingBufferHeight];var N={model:s,view:L,projection:M,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},I=this.pickShader;I.bind(),I.uniforms=N,this.triangleCount>0&&(this.triangleVAO.bind(),T.drawArrays(T.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},o.pick=function(E){if(!E||E.id!==this.pickId)return null;var T=E.value[0]+256*E.value[1]+65536*E.value[2],s=this.cells[T],L=this.positions[s[1]].slice(0,3),M={position:L,dataCoordinate:L,index:Math.floor(s[1]/48)};return this.traceType==="cone"?M.index=Math.floor(s[1]/48):this.traceType==="streamtube"&&(M.intensity=this.intensity[s[1]],M.velocity=this.vectors[s[1]].slice(0,3),M.divergence=this.vectors[s[1]][3],M.index=T),M},o.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(E,T){var s=t(E,T.meshShader.vertex,T.meshShader.fragment,null,T.meshShader.attributes);return s.attributes.position.location=0,s.attributes.color.location=2,s.attributes.uv.location=3,s.attributes.vector.location=4,s}function _(E,T){var s=t(E,T.pickShader.vertex,T.pickShader.fragment,null,T.pickShader.attributes);return s.attributes.position.location=0,s.attributes.id.location=1,s.attributes.vector.location=4,s}function y(E,T,s){var L=s.shaders;arguments.length===1&&(T=E,E=T.gl);var M=A(E,L),z=_(E,L),D=f(E,m(new Uint8Array([255,255,255,255]),[1,1,4]));D.generateMipmap(),D.minFilter=E.LINEAR_MIPMAP_LINEAR,D.magFilter=E.LINEAR;var N=a(E),I=a(E),k=a(E),B=a(E),O=a(E),H=n(E,[{buffer:N,type:E.FLOAT,size:4},{buffer:O,type:E.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:k,type:E.FLOAT,size:4},{buffer:B,type:E.FLOAT,size:2},{buffer:I,type:E.FLOAT,size:4}]),Y=new u(E,D,M,z,N,I,O,k,B,H,s.traceType||"cone");return Y.update(T),Y}v.exports=y},7234:function(v,p,r){var t=r(6832),a=t([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec3 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, coneScale, coneOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * conePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(conePosition, 1.0); + vec4 t_position = view * conePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = conePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),n=t([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),f=t([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float vectorScale, coneScale, coneOffset; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + gl_Position = projection * view * conePosition; + f_id = id; + f_position = position.xyz; +} +`]),c=t([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);p.meshShader={vertex:a,fragment:n,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},p.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},1950:function(v){v.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},6603:function(v,p,r){var t=r(1950);v.exports=function(n){return t[n]}},3110:function(v,p,r){v.exports=u;var t=r(5827),a=r(2944),n=r(7667),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(o,d,w,A){this.gl=o,this.shader=A,this.buffer=d,this.vao=w,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=c.prototype;l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(o){var d=this.gl,w=this.shader.uniforms;this.shader.bind();var A=w.view=o.view||f,_=w.projection=o.projection||f;w.model=o.model||f,w.clipBounds=this.clipBounds,w.opacity=this.opacity;var y=A[12],E=A[13],T=A[14],s=A[15],L=o._ortho||!1,M=L?2:1,z=M*this.pixelRatio*(_[3]*y+_[7]*E+_[11]*T+_[15]*s)/d.drawingBufferHeight;this.vao.bind();for(var D=0;D<3;++D)d.lineWidth(this.lineWidth[D]*this.pixelRatio),w.capSize=this.capSize[D]*z,this.lineCount[D]&&d.drawArrays(d.LINES,this.lineOffset[D],this.lineCount[D]);this.vao.unbind()};function m(o,d){for(var w=0;w<3;++w)o[0][w]=Math.min(o[0][w],d[w]),o[1][w]=Math.max(o[1][w],d[w])}var h=function(){for(var o=new Array(3),d=0;d<3;++d){for(var w=[],A=1;A<=2;++A)for(var _=-1;_<=1;_+=2){var y=(A+d)%3,E=[0,0,0];E[y]=_,w.push(E)}o[d]=w}return o}();function b(o,d,w,A){for(var _=h[A],y=0;y<_.length;++y){var E=_[y];o.push(d[0],d[1],d[2],w[0],w[1],w[2],w[3],E[0],E[1],E[2])}return _.length}l.update=function(o){o=o||{},"lineWidth"in o&&(this.lineWidth=o.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in o&&(this.capSize=o.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in o&&(this.opacity=+o.opacity,this.opacity<1&&(this.hasAlpha=!0));var d=o.color||[[0,0,0],[0,0,0],[0,0,0]],w=o.position,A=o.error;if(Array.isArray(d[0])||(d=[d,d,d]),w&&A){var _=[],y=w.length,E=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var T=0;T<3;++T){this.lineOffset[T]=E;e:for(var s=0;s0){var N=L.slice();N[T]+=z[1][T],_.push(L[0],L[1],L[2],D[0],D[1],D[2],D[3],0,0,0,N[0],N[1],N[2],D[0],D[1],D[2],D[3],0,0,0),m(this.bounds,N),E+=2+b(_,N,D,T)}}}this.lineCount[T]=E-this.lineOffset[T]}this.buffer.update(_)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function u(o){var d=o.gl,w=t(d),A=a(d,[{buffer:w,type:d.FLOAT,size:3,offset:0,stride:40},{buffer:w,type:d.FLOAT,size:4,offset:12,stride:40},{buffer:w,type:d.FLOAT,size:3,offset:28,stride:40}]),_=n(d);_.attributes.position.location=0,_.attributes.color.location=1,_.attributes.offset.location=2;var y=new c(d,w,A,_);return y.update(o),y}},7667:function(v,p,r){var t=r(6832),a=r(5158),n=t([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, offset; +attribute vec4 color; +uniform mat4 model, view, projection; +uniform float capSize; +varying vec4 fragColor; +varying vec3 fragPosition; + +void main() { + vec4 worldPosition = model * vec4(position, 1.0); + worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0); + gl_Position = projection * view * worldPosition; + fragColor = color; + fragPosition = position; +}`]),f=t([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float opacity; +varying vec3 fragPosition; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], fragPosition) || + fragColor.a * opacity == 0. + ) discard; + + gl_FragColor = opacity * fragColor; +}`]);v.exports=function(c){return a(c,n,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},4234:function(v,p,r){var t=r(8931);v.exports=E;var a=null,n,f,c,l;function m(T){var s=T.getParameter(T.FRAMEBUFFER_BINDING),L=T.getParameter(T.RENDERBUFFER_BINDING),M=T.getParameter(T.TEXTURE_BINDING_2D);return[s,L,M]}function h(T,s){T.bindFramebuffer(T.FRAMEBUFFER,s[0]),T.bindRenderbuffer(T.RENDERBUFFER,s[1]),T.bindTexture(T.TEXTURE_2D,s[2])}function b(T,s){var L=T.getParameter(s.MAX_COLOR_ATTACHMENTS_WEBGL);a=new Array(L+1);for(var M=0;M<=L;++M){for(var z=new Array(L),D=0;D1&&I.drawBuffersWEBGL(a[N]);var Y=L.getExtension("WEBGL_depth_texture");Y?k?T.depth=o(L,z,D,Y.UNSIGNED_INT_24_8_WEBGL,L.DEPTH_STENCIL,L.DEPTH_STENCIL_ATTACHMENT):B&&(T.depth=o(L,z,D,L.UNSIGNED_SHORT,L.DEPTH_COMPONENT,L.DEPTH_ATTACHMENT)):B&&k?T._depth_rb=d(L,z,D,L.DEPTH_STENCIL,L.DEPTH_STENCIL_ATTACHMENT):B?T._depth_rb=d(L,z,D,L.DEPTH_COMPONENT16,L.DEPTH_ATTACHMENT):k&&(T._depth_rb=d(L,z,D,L.STENCIL_INDEX,L.STENCIL_ATTACHMENT));var j=L.checkFramebufferStatus(L.FRAMEBUFFER);if(j!==L.FRAMEBUFFER_COMPLETE){T._destroyed=!0,L.bindFramebuffer(L.FRAMEBUFFER,null),L.deleteFramebuffer(T.handle),T.handle=null,T.depth&&(T.depth.dispose(),T.depth=null),T._depth_rb&&(L.deleteRenderbuffer(T._depth_rb),T._depth_rb=null);for(var H=0;Hz||L<0||L>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");T._shape[0]=s,T._shape[1]=L;for(var D=m(M),N=0;ND||L<0||L>D)throw new Error("gl-fbo: Parameters are too large for FBO");M=M||{};var N=1;if("color"in M){if(N=Math.max(M.color|0,0),N<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(N>1)if(z){if(N>T.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+N+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var I=T.UNSIGNED_BYTE,k=T.getExtension("OES_texture_float");if(M.float&&N>0){if(!k)throw new Error("gl-fbo: Context does not support floating point textures");I=T.FLOAT}else M.preferFloat&&N>0&&k&&(I=T.FLOAT);var B=!0;"depth"in M&&(B=!!M.depth);var O=!1;return"stencil"in M&&(O=!!M.stencil),new A(T,s,L,I,N,B,O,z)}},3530:function(v,p,r){var t=r(8974).sprintf,a=r(6603),n=r(9365),f=r(8008);v.exports=c;function c(l,m,h){var b=n(m)||"of unknown name (see npm glsl-shader-name)",u="unknown type";h!==void 0&&(u=h===a.FRAGMENT_SHADER?"fragment":"vertex");for(var o=t(`Error compiling %s shader %s: +`,u,b),d=t("%s%s",o,l),w=l.split(` +`),A={},_=0;_>N*8&255;this.pickOffset=w,_.bind();var I=_.uniforms;I.viewTransform=o,I.pickOffset=d,I.shape=this.shape;var k=_.attributes;return this.positionBuffer.bind(),k.position.pointer(),this.weightBuffer.bind(),k.weight.pointer(T.UNSIGNED_BYTE,!1),this.idBuffer.bind(),k.pickId.pointer(T.UNSIGNED_BYTE,!1),T.drawArrays(T.TRIANGLES,0,E),w+this.shape[0]*this.shape[1]}}}(),h.pick=function(o,d,w){var A=this.pickOffset,_=this.shape[0]*this.shape[1];if(w=A+_)return null;var y=w-A,E=this.xData,T=this.yData;return{object:this,pointId:y,dataCoord:[E[y%this.shape[0]],T[y/this.shape[0]|0]]}},h.update=function(o){o=o||{};var d=o.shape||[0,0],w=o.x||a(d[0]),A=o.y||a(d[1]),_=o.z||new Float32Array(d[0]*d[1]),y=o.zsmooth!==!1;this.xData=w,this.yData=A;var E=o.colorLevels||[0],T=o.colorValues||[0,0,0,1],s=E.length,L=this.bounds,M,z,D,N;y?(M=L[0]=w[0],z=L[1]=A[0],D=L[2]=w[w.length-1],N=L[3]=A[A.length-1]):(M=L[0]=w[0]+(w[1]-w[0])/2,z=L[1]=A[0]+(A[1]-A[0])/2,D=L[2]=w[w.length-1]+(w[w.length-1]-w[w.length-2])/2,N=L[3]=A[A.length-1]+(A[A.length-1]-A[A.length-2])/2);var I=1/(D-M),k=1/(N-z),B=d[0],O=d[1];this.shape=[B,O];var H=(y?(B-1)*(O-1):B*O)*(b.length>>>1);this.numVertices=H;for(var Y=n.mallocUint8(H*4),j=n.mallocFloat32(H*2),te=n.mallocUint8(H*2),ie=n.mallocUint32(H),ue=0,J=y?B-1:B,X=y?O-1:O,ee=0;ee max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D dashTexture; +uniform float dashScale; +uniform float opacity; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], worldPosition) || + fragColor.a * opacity == 0. + ) discard; + + float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r; + if(dashWeight < 0.5) { + discard; + } + gl_FragColor = fragColor * opacity; +} +`]),c=t([`precision highp float; +#define GLSLIFY 1 + +#define FLOAT_MAX 1.70141184e38 +#define FLOAT_MIN 1.17549435e-38 + +// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl +vec4 packFloat(float v) { + float av = abs(v); + + //Handle special cases + if(av < FLOAT_MIN) { + return vec4(0.0, 0.0, 0.0, 0.0); + } else if(v > FLOAT_MAX) { + return vec4(127.0, 128.0, 0.0, 0.0) / 255.0; + } else if(v < -FLOAT_MAX) { + return vec4(255.0, 128.0, 0.0, 0.0) / 255.0; + } + + vec4 c = vec4(0,0,0,0); + + //Compute exponent and mantissa + float e = floor(log2(av)); + float m = av * pow(2.0, -e) - 1.0; + + //Unpack mantissa + c[1] = floor(128.0 * m); + m -= c[1] / 128.0; + c[2] = floor(32768.0 * m); + m -= c[2] / 32768.0; + c[3] = floor(8388608.0 * m); + + //Unpack exponent + float ebias = e + 127.0; + c[0] = floor(ebias / 2.0); + ebias -= c[0] * 2.0; + c[1] += floor(ebias) * 128.0; + + //Unpack sign bit + c[0] += 128.0 * step(0.0, -v); + + //Scale back to range + return c / 255.0; +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform float pickId; +uniform vec3 clipBounds[2]; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; + + gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); +}`]),l=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];p.createShader=function(m){return a(m,n,f,null,l)},p.createPickShader=function(m){return a(m,n,c,null,l)}},6086:function(v,p,r){v.exports=T;var t=r(5827),a=r(2944),n=r(8931),f=new Uint8Array(4),c=new Float32Array(f.buffer);function l(s,L,M,z){return f[0]=z,f[1]=M,f[2]=L,f[3]=s,c[0]}var m=r(5070),h=r(5050),b=r(248),u=b.createShader,o=b.createPickShader,d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function w(s,L){for(var M=0,z=0;z<3;++z){var D=s[z]-L[z];M+=D*D}return Math.sqrt(M)}function A(s){for(var L=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],M=0;M<3;++M)L[0][M]=Math.max(s[0][M],L[0][M]),L[1][M]=Math.min(s[1][M],L[1][M]);return L}function _(s,L,M,z){this.arcLength=s,this.position=L,this.index=M,this.dataCoordinate=z}function y(s,L,M,z,D,N){this.gl=s,this.shader=L,this.pickShader=M,this.buffer=z,this.vao=D,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=N,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var E=y.prototype;E.isTransparent=function(){return this.hasAlpha},E.isOpaque=function(){return!this.hasAlpha},E.pickSlots=1,E.setPickBase=function(s){this.pickId=s},E.drawTransparent=E.draw=function(s){if(this.vertexCount){var L=this.gl,M=this.shader,z=this.vao;M.bind(),M.uniforms={model:s.model||d,view:s.view||d,projection:s.projection||d,clipBounds:A(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[L.drawingBufferWidth,L.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(L.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},E.drawPick=function(s){if(this.vertexCount){var L=this.gl,M=this.pickShader,z=this.vao;M.bind(),M.uniforms={model:s.model||d,view:s.view||d,projection:s.projection||d,pickId:this.pickId,clipBounds:A(this.clipBounds),screenShape:[L.drawingBufferWidth,L.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(L.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},E.update=function(s){var L,M;this.dirty=!0;var z=!!s.connectGaps;"dashScale"in s&&(this.dashScale=s.dashScale),this.hasAlpha=!1,"opacity"in s&&(this.opacity=+s.opacity,this.opacity<1&&(this.hasAlpha=!0));var D=[],N=[],I=[],k=0,B=0,O=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],H=s.position||s.positions;if(H){var Y=s.color||s.colors||[0,0,0,1],j=s.lineWidth||1,te=!1;e:for(L=1;L0){for(var J=0;J<24;++J)D.push(D[D.length-12]);B+=2,te=!0}continue e}O[0][M]=Math.min(O[0][M],ie[M],ue[M]),O[1][M]=Math.max(O[1][M],ie[M],ue[M])}var X,ee;Array.isArray(Y[0])?(X=Y.length>L-1?Y[L-1]:Y.length>0?Y[Y.length-1]:[0,0,0,1],ee=Y.length>L?Y[L]:Y.length>0?Y[Y.length-1]:[0,0,0,1]):X=ee=Y,X.length===3&&(X=[X[0],X[1],X[2],1]),ee.length===3&&(ee=[ee[0],ee[1],ee[2],1]),!this.hasAlpha&&X[3]<1&&(this.hasAlpha=!0);var V;Array.isArray(j)?V=j.length>L-1?j[L-1]:j.length>0?j[j.length-1]:[0,0,0,1]:V=j;var Q=k;if(k+=w(ie,ue),te){for(M=0;M<2;++M)D.push(ie[0],ie[1],ie[2],ue[0],ue[1],ue[2],Q,V,X[0],X[1],X[2],X[3]);B+=2,te=!1}D.push(ie[0],ie[1],ie[2],ue[0],ue[1],ue[2],Q,V,X[0],X[1],X[2],X[3],ie[0],ie[1],ie[2],ue[0],ue[1],ue[2],Q,-V,X[0],X[1],X[2],X[3],ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],k,-V,ee[0],ee[1],ee[2],ee[3],ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],k,V,ee[0],ee[1],ee[2],ee[3]),B+=4}}if(this.buffer.update(D),N.push(k),I.push(H[H.length-1].slice()),this.bounds=O,this.vertexCount=B,this.points=I,this.arcLength=N,"dashes"in s){var oe=s.dashes,$=oe.slice();for($.unshift(0),L=1;L<$.length;++L)$[L]=$[L-1]+$[L];var Z=h(new Array(256*4),[256,1,4]);for(L=0;L<256;++L){for(M=0;M<4;++M)Z.set(L,0,M,0);m.le($,$[$.length-1]*L/255)&1?Z.set(L,0,0,0):Z.set(L,0,0,255)}this.texture.setPixels(Z)}},E.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},E.pick=function(s){if(!s||s.id!==this.pickId)return null;var L=l(s.value[0],s.value[1],s.value[2],0),M=m.le(this.arcLength,L);if(M<0)return null;if(M===this.arcLength.length-1)return new _(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),M);for(var z=this.points[M],D=this.points[Math.min(M+1,this.points.length-1)],N=(L-this.arcLength[M])/(this.arcLength[M+1]-this.arcLength[M]),I=1-N,k=[0,0,0],B=0;B<3;++B)k[B]=I*z[B]+N*D[B];var O=Math.min(N<.5?M:M+1,this.points.length-1);return new _(L,k,O,this.points[O])};function T(s){var L=s.gl||s.scene&&s.scene.gl,M=u(L);M.attributes.position.location=0,M.attributes.nextPosition.location=1,M.attributes.arcLength.location=2,M.attributes.lineWidth.location=3,M.attributes.color.location=4;var z=o(L);z.attributes.position.location=0,z.attributes.nextPosition.location=1,z.attributes.arcLength.location=2,z.attributes.lineWidth.location=3,z.attributes.color.location=4;for(var D=t(L),N=a(L,[{buffer:D,size:3,offset:0,stride:48},{buffer:D,size:3,offset:12,stride:48},{buffer:D,size:1,offset:24,stride:48},{buffer:D,size:1,offset:28,stride:48},{buffer:D,size:4,offset:32,stride:48}]),I=h(new Array(256*4),[256,1,4]),k=0;k<1024;++k)I.data[k]=255;var B=n(L,I);B.wrap=L.REPEAT;var O=new y(L,M,z,D,N,B);return O.update(s),O}},7332:function(v){v.exports=p;function p(r){var t=new Float32Array(16);return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],t}},9823:function(v){v.exports=p;function p(){var r=new Float32Array(16);return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7787:function(v){v.exports=p;function p(r){var t=r[0],a=r[1],n=r[2],f=r[3],c=r[4],l=r[5],m=r[6],h=r[7],b=r[8],u=r[9],o=r[10],d=r[11],w=r[12],A=r[13],_=r[14],y=r[15],E=t*l-a*c,T=t*m-n*c,s=t*h-f*c,L=a*m-n*l,M=a*h-f*l,z=n*h-f*m,D=b*A-u*w,N=b*_-o*w,I=b*y-d*w,k=u*_-o*A,B=u*y-d*A,O=o*y-d*_;return E*O-T*B+s*k+L*I-M*N+z*D}},5950:function(v){v.exports=p;function p(r,t){var a=t[0],n=t[1],f=t[2],c=t[3],l=a+a,m=n+n,h=f+f,b=a*l,u=n*l,o=n*m,d=f*l,w=f*m,A=f*h,_=c*l,y=c*m,E=c*h;return r[0]=1-o-A,r[1]=u+E,r[2]=d-y,r[3]=0,r[4]=u-E,r[5]=1-b-A,r[6]=w+_,r[7]=0,r[8]=d+y,r[9]=w-_,r[10]=1-b-o,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7280:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2],l=t[3],m=n+n,h=f+f,b=c+c,u=n*m,o=n*h,d=n*b,w=f*h,A=f*b,_=c*b,y=l*m,E=l*h,T=l*b;return r[0]=1-(w+_),r[1]=o+T,r[2]=d-E,r[3]=0,r[4]=o-T,r[5]=1-(u+_),r[6]=A+y,r[7]=0,r[8]=d+E,r[9]=A-y,r[10]=1-(u+w),r[11]=0,r[12]=a[0],r[13]=a[1],r[14]=a[2],r[15]=1,r}},9947:function(v){v.exports=p;function p(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7437:function(v){v.exports=p;function p(r,t){var a=t[0],n=t[1],f=t[2],c=t[3],l=t[4],m=t[5],h=t[6],b=t[7],u=t[8],o=t[9],d=t[10],w=t[11],A=t[12],_=t[13],y=t[14],E=t[15],T=a*m-n*l,s=a*h-f*l,L=a*b-c*l,M=n*h-f*m,z=n*b-c*m,D=f*b-c*h,N=u*_-o*A,I=u*y-d*A,k=u*E-w*A,B=o*y-d*_,O=o*E-w*_,H=d*E-w*y,Y=T*H-s*O+L*B+M*k-z*I+D*N;return Y?(Y=1/Y,r[0]=(m*H-h*O+b*B)*Y,r[1]=(f*O-n*H-c*B)*Y,r[2]=(_*D-y*z+E*M)*Y,r[3]=(d*z-o*D-w*M)*Y,r[4]=(h*k-l*H-b*I)*Y,r[5]=(a*H-f*k+c*I)*Y,r[6]=(y*L-A*D-E*s)*Y,r[7]=(u*D-d*L+w*s)*Y,r[8]=(l*O-m*k+b*N)*Y,r[9]=(n*k-a*O-c*N)*Y,r[10]=(A*z-_*L+E*T)*Y,r[11]=(o*L-u*z-w*T)*Y,r[12]=(m*I-l*B-h*N)*Y,r[13]=(a*B-n*I+f*N)*Y,r[14]=(_*s-A*M-y*T)*Y,r[15]=(u*M-o*s+d*T)*Y,r):null}},3012:function(v,p,r){var t=r(9947);v.exports=a;function a(n,f,c,l){var m,h,b,u,o,d,w,A,_,y,E=f[0],T=f[1],s=f[2],L=l[0],M=l[1],z=l[2],D=c[0],N=c[1],I=c[2];return Math.abs(E-D)<1e-6&&Math.abs(T-N)<1e-6&&Math.abs(s-I)<1e-6?t(n):(w=E-D,A=T-N,_=s-I,y=1/Math.sqrt(w*w+A*A+_*_),w*=y,A*=y,_*=y,m=M*_-z*A,h=z*w-L*_,b=L*A-M*w,y=Math.sqrt(m*m+h*h+b*b),y?(y=1/y,m*=y,h*=y,b*=y):(m=0,h=0,b=0),u=A*b-_*h,o=_*m-w*b,d=w*h-A*m,y=Math.sqrt(u*u+o*o+d*d),y?(y=1/y,u*=y,o*=y,d*=y):(u=0,o=0,d=0),n[0]=m,n[1]=u,n[2]=w,n[3]=0,n[4]=h,n[5]=o,n[6]=A,n[7]=0,n[8]=b,n[9]=d,n[10]=_,n[11]=0,n[12]=-(m*E+h*T+b*s),n[13]=-(u*E+o*T+d*s),n[14]=-(w*E+A*T+_*s),n[15]=1,n)}},104:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2],l=t[3],m=t[4],h=t[5],b=t[6],u=t[7],o=t[8],d=t[9],w=t[10],A=t[11],_=t[12],y=t[13],E=t[14],T=t[15],s=a[0],L=a[1],M=a[2],z=a[3];return r[0]=s*n+L*m+M*o+z*_,r[1]=s*f+L*h+M*d+z*y,r[2]=s*c+L*b+M*w+z*E,r[3]=s*l+L*u+M*A+z*T,s=a[4],L=a[5],M=a[6],z=a[7],r[4]=s*n+L*m+M*o+z*_,r[5]=s*f+L*h+M*d+z*y,r[6]=s*c+L*b+M*w+z*E,r[7]=s*l+L*u+M*A+z*T,s=a[8],L=a[9],M=a[10],z=a[11],r[8]=s*n+L*m+M*o+z*_,r[9]=s*f+L*h+M*d+z*y,r[10]=s*c+L*b+M*w+z*E,r[11]=s*l+L*u+M*A+z*T,s=a[12],L=a[13],M=a[14],z=a[15],r[12]=s*n+L*m+M*o+z*_,r[13]=s*f+L*h+M*d+z*y,r[14]=s*c+L*b+M*w+z*E,r[15]=s*l+L*u+M*A+z*T,r}},5268:function(v){v.exports=p;function p(r,t,a,n,f,c,l){var m=1/(t-a),h=1/(n-f),b=1/(c-l);return r[0]=-2*m,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*h,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*b,r[11]=0,r[12]=(t+a)*m,r[13]=(f+n)*h,r[14]=(l+c)*b,r[15]=1,r}},1120:function(v){v.exports=p;function p(r,t,a,n,f){var c=1/Math.tan(t/2),l=1/(n-f);return r[0]=c/a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=c,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=(f+n)*l,r[11]=-1,r[12]=0,r[13]=0,r[14]=2*f*n*l,r[15]=0,r}},4422:function(v){v.exports=p;function p(r,t,a,n){var f=n[0],c=n[1],l=n[2],m=Math.sqrt(f*f+c*c+l*l),h,b,u,o,d,w,A,_,y,E,T,s,L,M,z,D,N,I,k,B,O,H,Y,j;return Math.abs(m)<1e-6?null:(m=1/m,f*=m,c*=m,l*=m,h=Math.sin(a),b=Math.cos(a),u=1-b,o=t[0],d=t[1],w=t[2],A=t[3],_=t[4],y=t[5],E=t[6],T=t[7],s=t[8],L=t[9],M=t[10],z=t[11],D=f*f*u+b,N=c*f*u+l*h,I=l*f*u-c*h,k=f*c*u-l*h,B=c*c*u+b,O=l*c*u+f*h,H=f*l*u+c*h,Y=c*l*u-f*h,j=l*l*u+b,r[0]=o*D+_*N+s*I,r[1]=d*D+y*N+L*I,r[2]=w*D+E*N+M*I,r[3]=A*D+T*N+z*I,r[4]=o*k+_*B+s*O,r[5]=d*k+y*B+L*O,r[6]=w*k+E*B+M*O,r[7]=A*k+T*B+z*O,r[8]=o*H+_*Y+s*j,r[9]=d*H+y*Y+L*j,r[10]=w*H+E*Y+M*j,r[11]=A*H+T*Y+z*j,t!==r&&(r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r)}},6109:function(v){v.exports=p;function p(r,t,a){var n=Math.sin(a),f=Math.cos(a),c=t[4],l=t[5],m=t[6],h=t[7],b=t[8],u=t[9],o=t[10],d=t[11];return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[4]=c*f+b*n,r[5]=l*f+u*n,r[6]=m*f+o*n,r[7]=h*f+d*n,r[8]=b*f-c*n,r[9]=u*f-l*n,r[10]=o*f-m*n,r[11]=d*f-h*n,r}},7115:function(v){v.exports=p;function p(r,t,a){var n=Math.sin(a),f=Math.cos(a),c=t[0],l=t[1],m=t[2],h=t[3],b=t[8],u=t[9],o=t[10],d=t[11];return t!==r&&(r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=c*f-b*n,r[1]=l*f-u*n,r[2]=m*f-o*n,r[3]=h*f-d*n,r[8]=c*n+b*f,r[9]=l*n+u*f,r[10]=m*n+o*f,r[11]=h*n+d*f,r}},5240:function(v){v.exports=p;function p(r,t,a){var n=Math.sin(a),f=Math.cos(a),c=t[0],l=t[1],m=t[2],h=t[3],b=t[4],u=t[5],o=t[6],d=t[7];return t!==r&&(r[8]=t[8],r[9]=t[9],r[10]=t[10],r[11]=t[11],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=c*f+b*n,r[1]=l*f+u*n,r[2]=m*f+o*n,r[3]=h*f+d*n,r[4]=b*f-c*n,r[5]=u*f-l*n,r[6]=o*f-m*n,r[7]=d*f-h*n,r}},3668:function(v){v.exports=p;function p(r,t,a){var n=a[0],f=a[1],c=a[2];return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=t[3]*n,r[4]=t[4]*f,r[5]=t[5]*f,r[6]=t[6]*f,r[7]=t[7]*f,r[8]=t[8]*c,r[9]=t[9]*c,r[10]=t[10]*c,r[11]=t[11]*c,r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15],r}},998:function(v){v.exports=p;function p(r,t,a){var n=a[0],f=a[1],c=a[2],l,m,h,b,u,o,d,w,A,_,y,E;return t===r?(r[12]=t[0]*n+t[4]*f+t[8]*c+t[12],r[13]=t[1]*n+t[5]*f+t[9]*c+t[13],r[14]=t[2]*n+t[6]*f+t[10]*c+t[14],r[15]=t[3]*n+t[7]*f+t[11]*c+t[15]):(l=t[0],m=t[1],h=t[2],b=t[3],u=t[4],o=t[5],d=t[6],w=t[7],A=t[8],_=t[9],y=t[10],E=t[11],r[0]=l,r[1]=m,r[2]=h,r[3]=b,r[4]=u,r[5]=o,r[6]=d,r[7]=w,r[8]=A,r[9]=_,r[10]=y,r[11]=E,r[12]=l*n+u*f+A*c+t[12],r[13]=m*n+o*f+_*c+t[13],r[14]=h*n+d*f+y*c+t[14],r[15]=b*n+w*f+E*c+t[15]),r}},2142:function(v){v.exports=p;function p(r,t){if(r===t){var a=t[1],n=t[2],f=t[3],c=t[6],l=t[7],m=t[11];r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=a,r[6]=t[9],r[7]=t[13],r[8]=n,r[9]=c,r[11]=t[14],r[12]=f,r[13]=l,r[14]=m}else r[0]=t[0],r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=t[1],r[5]=t[5],r[6]=t[9],r[7]=t[13],r[8]=t[2],r[9]=t[6],r[10]=t[10],r[11]=t[14],r[12]=t[3],r[13]=t[7],r[14]=t[11],r[15]=t[15];return r}},4340:function(v,p,r){var t=r(957),a=r(7309);v.exports=m;function n(h,b){for(var u=[0,0,0,0],o=0;o<4;++o)for(var d=0;d<4;++d)u[d]+=h[4*o+d]*b[o];return u}function f(h,b,u,o,d){for(var w=n(o,n(u,n(b,[h[0],h[1],h[2],1]))),A=0;A<3;++A)w[A]/=w[3];return[.5*d[0]*(1+w[0]),.5*d[1]*(1-w[1])]}function c(h,b){if(h.length===2){for(var u=0,o=0,d=0;d<2;++d)u+=Math.pow(b[d]-h[0][d],2),o+=Math.pow(b[d]-h[1][d],2);return u=Math.sqrt(u),o=Math.sqrt(o),u+o<1e-6?[1,0]:[o/(u+o),u/(o+u)]}else if(h.length===3){var w=[0,0];return a(h[0],h[1],h[2],b,w),t(h,w)}return[]}function l(h,b){for(var u=[0,0,0],o=0;o1.0001)return null;M+=L[_]}return Math.abs(M-1)>.001?null:[y,l(h,L),L]}},2056:function(v,p,r){var t=r(6832),a=t([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, normal; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model + , view + , projection + , inverseModel; +uniform vec3 eyePosition + , lightPosition; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +vec4 project(vec3 p) { + return projection * view * model * vec4(p, 1.0); +} + +void main() { + gl_Position = project(position); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * vec4(position , 1.0); + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + f_color = color; + f_data = position; + f_uv = uv; +} +`]),n=t([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness + , fresnel + , kambient + , kdiffuse + , kspecular; +uniform sampler2D texture; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (f_color.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], f_data) + ) discard; + + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d + + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * f_color.a; +} +`]),f=t([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model, view, projection; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + gl_Position = projection * view * model * vec4(position, 1.0); + f_color = color; + f_data = position; + f_uv = uv; +}`]),c=t([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard; + + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),l=t([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; +attribute float pointSize; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0); + } else { + gl_Position = projection * view * model * vec4(position, 1.0); + } + gl_PointSize = pointSize; + f_color = color; + f_uv = uv; +}`]),m=t([`precision highp float; +#define GLSLIFY 1 + +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5); + if(dot(pointR, pointR) > 0.25) { + discard; + } + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),h=t([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 id; + +uniform mat4 model, view, projection; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + gl_Position = projection * view * model * vec4(position, 1.0); + f_id = id; + f_position = position; +}`]),b=t([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]),u=t([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute float pointSize; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0, 0.0, 0.0); + } else { + gl_Position = projection * view * model * vec4(position, 1.0); + gl_PointSize = pointSize; + } + f_id = id; + f_position = position; +}`]),o=t([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; + +uniform mat4 model, view, projection; + +void main() { + gl_Position = projection * view * model * vec4(position, 1.0); +}`]),d=t([`precision highp float; +#define GLSLIFY 1 + +uniform vec3 contourColor; + +void main() { + gl_FragColor = vec4(contourColor, 1.0); +} +`]);p.meshShader={vertex:a,fragment:n,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},p.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},p.pointShader={vertex:l,fragment:m,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},p.pickShader={vertex:h,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},p.pointPickShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},p.contourShader={vertex:o,fragment:d,attributes:[{name:"position",type:"vec3"}]}},8116:function(v,p,r){var t=1e-6,a=1e-6,n=r(5158),f=r(5827),c=r(2944),l=r(8931),m=r(115),h=r(104),b=r(7437),u=r(5050),o=r(9156),d=r(7212),w=r(5306),A=r(2056),_=r(4340),y=A.meshShader,E=A.wireShader,T=A.pointShader,s=A.pickShader,L=A.pointPickShader,M=A.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function D(J,X,ee,V,Q,oe,$,Z,se,ne,ce,ge,Te,we,Re,be,Ae,me,Le,He,Ue,ke,Ve,Ie,rt,Ke,$e){this.gl=J,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=X,this.dirty=!0,this.triShader=ee,this.lineShader=V,this.pointShader=Q,this.pickShader=oe,this.pointPickShader=$,this.contourShader=Z,this.trianglePositions=se,this.triangleColors=ce,this.triangleNormals=Te,this.triangleUVs=ge,this.triangleIds=ne,this.triangleVAO=we,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Re,this.edgeColors=Ae,this.edgeUVs=me,this.edgeIds=be,this.edgeVAO=Le,this.edgeCount=0,this.pointPositions=He,this.pointColors=ke,this.pointUVs=Ve,this.pointSizes=Ie,this.pointIds=Ue,this.pointVAO=rt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Ke,this.contourVAO=$e,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var N=D.prototype;N.isOpaque=function(){return!this.hasAlpha},N.isTransparent=function(){return this.hasAlpha},N.pickSlots=1,N.setPickBase=function(J){this.pickId=J};function I(J,X){if(!X||!X.length)return 1;for(var ee=0;eeJ&&ee>0){var V=(X[ee][0]-J)/(X[ee][0]-X[ee-1][0]);return X[ee][1]*(1-V)+V*X[ee-1][1]}}return 1}function k(J,X){for(var ee=o({colormap:J,nshades:256,format:"rgba"}),V=new Uint8Array(256*4),Q=0;Q<256;++Q){for(var oe=ee[Q],$=0;$<3;++$)V[4*Q+$]=oe[$];X?V[4*Q+3]=255*I(Q/255,X):V[4*Q+3]=255*oe[3]}return u(V,[256,256,4],[4,0,1])}function B(J){for(var X=J.length,ee=new Array(X),V=0;V0){var Te=this.triShader;Te.bind(),Te.uniforms=Z,this.triangleVAO.bind(),X.drawArrays(X.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Te=this.lineShader;Te.bind(),Te.uniforms=Z,this.edgeVAO.bind(),X.lineWidth(this.lineWidth*this.pixelRatio),X.drawArrays(X.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Te=this.pointShader;Te.bind(),Te.uniforms=Z,this.pointVAO.bind(),X.drawArrays(X.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Te=this.contourShader;Te.bind(),Te.uniforms=Z,this.contourVAO.bind(),X.drawArrays(X.LINES,0,this.contourCount),this.contourVAO.unbind()}},N.drawPick=function(J){J=J||{};for(var X=this.gl,ee=J.model||z,V=J.view||z,Q=J.projection||z,oe=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],$=0;$<3;++$)oe[0][$]=Math.max(oe[0][$],this.clipBounds[0][$]),oe[1][$]=Math.min(oe[1][$],this.clipBounds[1][$]);this._model=[].slice.call(ee),this._view=[].slice.call(V),this._projection=[].slice.call(Q),this._resolution=[X.drawingBufferWidth,X.drawingBufferHeight];var Z={model:ee,view:V,projection:Q,clipBounds:oe,pickId:this.pickId/255},se=this.pickShader;if(se.bind(),se.uniforms=Z,this.triangleCount>0&&(this.triangleVAO.bind(),X.drawArrays(X.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),X.lineWidth(this.lineWidth*this.pixelRatio),X.drawArrays(X.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var se=this.pointPickShader;se.bind(),se.uniforms=Z,this.pointVAO.bind(),X.drawArrays(X.POINTS,0,this.pointCount),this.pointVAO.unbind()}},N.pick=function(J){if(!J||J.id!==this.pickId)return null;for(var X=J.value[0]+256*J.value[1]+65536*J.value[2],ee=this.cells[X],V=this.positions,Q=new Array(ee.length),oe=0;oey[te]&&(A.uniforms.dataAxis=b,A.uniforms.screenOffset=u,A.uniforms.color=N[d],A.uniforms.angle=I[d],E.drawArrays(E.TRIANGLES,y[te],y[ie]-y[te]))),k[d]&&j&&(u[d^1]-=ue*M*B[d],A.uniforms.dataAxis=o,A.uniforms.screenOffset=u,A.uniforms.color=O[d],A.uniforms.angle=H[d],E.drawArrays(E.TRIANGLES,Y,j)),u[d^1]=ue*T[2+(d^1)]-1,z[d+2]&&(u[d^1]+=ue*M*D[d+2],tey[te]&&(A.uniforms.dataAxis=b,A.uniforms.screenOffset=u,A.uniforms.color=N[d+2],A.uniforms.angle=I[d+2],E.drawArrays(E.TRIANGLES,y[te],y[ie]-y[te]))),k[d+2]&&j&&(u[d^1]+=ue*M*B[d+2],A.uniforms.dataAxis=o,A.uniforms.screenOffset=u,A.uniforms.color=O[d+2],A.uniforms.angle=H[d+2],E.drawArrays(E.TRIANGLES,Y,j))}}(),m.drawTitle=function(){var b=[0,0],u=[0,0];return function(){var o=this.plot,d=this.shader,w=o.gl,A=o.screenBox,_=o.titleCenter,y=o.titleAngle,E=o.titleColor,T=o.pixelRatio;if(this.titleCount){for(var s=0;s<2;++s)u[s]=2*(_[s]*T-A[s])/(A[2+s]-A[s])-1;d.bind(),d.uniforms.dataAxis=b,d.uniforms.screenOffset=u,d.uniforms.angle=y,d.uniforms.color=E,w.drawArrays(w.TRIANGLES,this.titleOffset,this.titleCount)}}}(),m.bind=function(){var b=[0,0],u=[0,0],o=[0,0];return function(){var d=this.plot,w=this.shader,A=d._tickBounds,_=d.dataBox,y=d.screenBox,E=d.viewBox;w.bind();for(var T=0;T<2;++T){var s=A[T],L=A[T+2],M=L-s,z=.5*(_[T+2]+_[T]),D=_[T+2]-_[T],N=E[T],I=E[T+2],k=I-N,B=y[T],O=y[T+2],H=O-B;u[T]=2*M/D*k/H,b[T]=2*(s-z)/D*k/H}o[1]=2*d.pixelRatio/(y[3]-y[1]),o[0]=o[1]*(y[3]-y[1])/(y[2]-y[0]),w.uniforms.dataScale=u,w.uniforms.dataShift=b,w.uniforms.textScale=o,this.vbo.bind(),w.attributes.textCoordinate.pointer()}}(),m.update=function(b){var u=[],o=b.ticks,d=b.bounds,w,A,_,y,E;for(E=0;E<2;++E){var T=[Math.floor(u.length/3)],s=[-1/0],L=o[E];for(w=0;w=0))){var k=d[I]-A[I]*(d[I+2]-d[I])/(A[I+2]-A[I]);I===0?E.drawLine(k,d[1],k,d[3],N[I],D[I]):E.drawLine(d[0],k,d[2],k,N[I],D[I])}}for(var I=0;I=0;--o)this.objects[o].dispose();this.objects.length=0;for(var o=this.overlays.length-1;o>=0;--o)this.overlays[o].dispose();this.overlays.length=0,this.gl=null},m.addObject=function(o){this.objects.indexOf(o)<0&&(this.objects.push(o),this.setDirty())},m.removeObject=function(o){for(var d=this.objects,w=0;wMath.abs(s))o.rotate(z,0,0,-T*L*Math.PI*y.rotateSpeed/window.innerWidth);else if(!y._ortho){var D=-y.zoomSpeed*M*s/window.innerHeight*(z-o.lastT())/20;o.pan(z,0,0,w*(Math.exp(D)-1))}}},!0)},y.enableMouseListeners(),y}},8245:function(v,p,r){var t=r(6832),a=r(5158),n=t([`precision mediump float; +#define GLSLIFY 1 +attribute vec2 position; +varying vec2 uv; +void main() { + uv = position; + gl_Position = vec4(position, 0, 1); +}`]),f=t([`precision mediump float; +#define GLSLIFY 1 + +uniform sampler2D accumBuffer; +varying vec2 uv; + +void main() { + vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); + gl_FragColor = min(vec4(1,1,1,1), accum); +}`]);v.exports=function(c){return a(c,n,f,null,[{name:"position",type:"vec2"}])}},1059:function(v,p,r){var t=r(4296),a=r(7453),n=r(2771),f=r(6496),c=r(2611),l=r(4234),m=r(8126),h=r(6145),b=r(1120),u=r(5268),o=r(8245),d=r(2321)({tablet:!0,featureDetect:!0});v.exports={createScene:E,createCamera:t};function w(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function A(s,L){var M=null;try{M=s.getContext("webgl",L),M||(M=s.getContext("experimental-webgl",L))}catch{return null}return M}function _(s){var L=Math.round(Math.log(Math.abs(s))/Math.log(10));if(L<0){var M=Math.round(Math.pow(10,-L));return Math.ceil(s*M)/M}else if(L>0){var M=Math.round(Math.pow(10,L));return Math.ceil(s/M)*M}return Math.ceil(s)}function y(s){return typeof s=="boolean"?s:!0}function E(s){s=s||{},s.camera=s.camera||{};var L=s.canvas;if(!L)if(L=document.createElement("canvas"),s.container){var M=s.container;M.appendChild(L)}else document.body.appendChild(L);var z=s.gl;if(z||(s.glOptions&&(d=!!s.glOptions.preserveDrawingBuffer),z=A(L,s.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d})),!z)throw new Error("webgl not supported");var D=s.bounds||[[-10,-10,-10],[10,10,10]],N=new w,I=l(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!d}),k=o(z),B=s.cameraObject&&s.cameraObject._ortho===!0||s.camera.projection&&s.camera.projection.type==="orthographic"||!1,O={eye:s.camera.eye||[2,0,0],center:s.camera.center||[0,0,0],up:s.camera.up||[0,1,0],zoomMin:s.camera.zoomMax||.1,zoomMax:s.camera.zoomMin||100,mode:s.camera.mode||"turntable",_ortho:B},H=s.axes||{},Y=a(z,H);Y.enable=!H.disable;var j=s.spikes||{},te=f(z,j),ie=[],ue=[],J=[],X=[],ee=!0,$=!0,V=new Array(16),Q=new Array(16),oe={view:null,projection:V,model:Q,_ortho:!1},$=!0,Z=[z.drawingBufferWidth,z.drawingBufferHeight],se=s.cameraObject||t(L,O),ne={gl:z,contextLost:!1,pixelRatio:s.pixelRatio||1,canvas:L,selection:N,camera:se,axes:Y,axesPixels:null,spikes:te,bounds:D,objects:ie,shape:Z,aspect:s.aspectRatio||[1,1,1],pickRadius:s.pickRadius||10,zNear:s.zNear||.01,zFar:s.zFar||1e3,fovy:s.fovy||Math.PI/4,clearColor:s.clearColor||[0,0,0,0],autoResize:y(s.autoResize),autoBounds:y(s.autoBounds),autoScale:!!s.autoScale,autoCenter:y(s.autoCenter),clipToBounds:y(s.clipToBounds),snapToData:!!s.snapToData,onselect:s.onselect||null,onrender:s.onrender||null,onclick:s.onclick||null,cameraParams:oe,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(He){this.aspect[0]=He.x,this.aspect[1]=He.y,this.aspect[2]=He.z,$=!0},setBounds:function(He,Ue){this.bounds[0][He]=Ue.min,this.bounds[1][He]=Ue.max},setClearColor:function(He){this.clearColor=He},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},ce=[z.drawingBufferWidth/ne.pixelRatio|0,z.drawingBufferHeight/ne.pixelRatio|0];function ge(){if(!ne._stopped&&ne.autoResize){var He=L.parentNode,Ue=1,ke=1;He&&He!==document.body?(Ue=He.clientWidth,ke=He.clientHeight):(Ue=window.innerWidth,ke=window.innerHeight);var Ve=Math.ceil(Ue*ne.pixelRatio)|0,Ie=Math.ceil(ke*ne.pixelRatio)|0;if(Ve!==L.width||Ie!==L.height){L.width=Ve,L.height=Ie;var rt=L.style;rt.position=rt.position||"absolute",rt.left="0px",rt.top="0px",rt.width=Ue+"px",rt.height=ke+"px",ee=!0}}}ne.autoResize&&ge(),window.addEventListener("resize",ge);function Te(){for(var He=ie.length,Ue=X.length,ke=0;ke0&&J[Ue-1]===0;)J.pop(),X.pop().dispose()}ne.update=function(He){ne._stopped||(ee=!0,$=!0)},ne.add=function(He){ne._stopped||(He.axes=Y,ie.push(He),ue.push(-1),ee=!0,$=!0,Te())},ne.remove=function(He){if(!ne._stopped){var Ue=ie.indexOf(He);Ue<0||(ie.splice(Ue,1),ue.pop(),ee=!0,$=!0,Te())}},ne.dispose=function(){if(!ne._stopped&&(ne._stopped=!0,window.removeEventListener("resize",ge),L.removeEventListener("webglcontextlost",we),ne.mouseListener.enabled=!1,!ne.contextLost)){Y.dispose(),te.dispose();for(var He=0;HeN.distance)continue;for(var ht=0;ht 1.0) { + discard; + } + baseColor = mix(borderColor, color, step(radius, centerFraction)); + gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a); + } +} +`]),p.pickVertex=t([`precision mediump float; +#define GLSLIFY 1 + +attribute vec2 position; +attribute vec4 pickId; + +uniform mat3 matrix; +uniform float pointSize; +uniform vec4 pickOffset; + +varying vec4 fragId; + +void main() { + vec3 hgPosition = matrix * vec3(position, 1); + gl_Position = vec4(hgPosition.xy, 0, hgPosition.z); + gl_PointSize = pointSize; + + vec4 id = pickId + pickOffset; + id.y += floor(id.x / 256.0); + id.x -= floor(id.x / 256.0) * 256.0; + + id.z += floor(id.y / 256.0); + id.y -= floor(id.y / 256.0) * 256.0; + + id.w += floor(id.z / 256.0); + id.z -= floor(id.z / 256.0) * 256.0; + + fragId = id; +} +`]),p.pickFragment=t([`precision mediump float; +#define GLSLIFY 1 + +varying vec4 fragId; + +void main() { + float radius = length(2.0 * gl_PointCoord.xy - 1.0); + if(radius > 1.0) { + discard; + } + gl_FragColor = fragId / 255.0; +} +`])},8271:function(v,p,r){var t=r(5158),a=r(5827),n=r(5306),f=r(8023);v.exports=h;function c(b,u,o,d,w){this.plot=b,this.offsetBuffer=u,this.pickBuffer=o,this.shader=d,this.pickShader=w,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}var l=c.prototype;l.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},l.update=function(b){var u;b=b||{};function o(T,s){return T in b?b[T]:s}this.sizeMin=o("sizeMin",.5),this.sizeMax=o("sizeMax",20),this.color=o("color",[1,0,0,1]).slice(),this.areaRatio=o("areaRatio",1),this.borderColor=o("borderColor",[0,0,0,1]).slice(),this.blend=o("blend",!1);var d=b.positions.length>>>1,w=b.positions instanceof Float32Array,A=b.idToIndex instanceof Int32Array&&b.idToIndex.length>=d,_=b.positions,y=w?_:n.mallocFloat32(_.length),E=A?b.idToIndex:n.mallocInt32(d);if(w||y.set(_),!A)for(y.set(_),u=0;u>>1,w;for(w=0;w=u[0]&&A<=u[2]&&_>=u[1]&&_<=u[3]&&o++}return o}l.unifiedDraw=function(){var b=[1,0,0,0,1,0,0,0,1],u=[0,0,0,0];return function(o){var d=o!==void 0,w=d?this.pickShader:this.shader,A=this.plot.gl,_=this.plot.dataBox;if(this.pointCount===0)return o;var y=_[2]-_[0],E=_[3]-_[1],T=m(this.points,_),s=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(T,.33333)));b[0]=2/y,b[4]=2/E,b[6]=-2*_[0]/y-1,b[7]=-2*_[1]/E-1,this.offsetBuffer.bind(),w.bind(),w.attributes.position.pointer(),w.uniforms.matrix=b,w.uniforms.color=this.color,w.uniforms.borderColor=this.borderColor,w.uniforms.pointCloud=s<5,w.uniforms.pointSize=s,w.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),d&&(u[0]=o&255,u[1]=o>>8&255,u[2]=o>>16&255,u[3]=o>>24&255,this.pickBuffer.bind(),w.attributes.pickId.pointer(A.UNSIGNED_BYTE),w.uniforms.pickOffset=u,this.pickOffset=o);var L=A.getParameter(A.BLEND),M=A.getParameter(A.DITHER);return L&&!this.blend&&A.disable(A.BLEND),M&&A.disable(A.DITHER),A.drawArrays(A.POINTS,0,this.pointCount),L&&!this.blend&&A.enable(A.BLEND),M&&A.enable(A.DITHER),o+this.pointCount}}(),l.draw=l.unifiedDraw,l.drawPick=l.unifiedDraw,l.pick=function(b,u,o){var d=this.pickOffset,w=this.pointCount;if(o=d+w)return null;var A=o-d,_=this.points;return{object:this,pointId:A,dataCoord:[_[2*A],_[2*A+1]]}};function h(b,u){var o=b.gl,d=a(o),w=a(o),A=t(o,f.pointVertex,f.pointFragment),_=t(o,f.pickVertex,f.pickFragment),y=new c(b,d,w,A,_);return y.update(u),b.addObject(y),y}},6093:function(v){v.exports=p;function p(r,t,a,n){var f=t[0],c=t[1],l=t[2],m=t[3],h=a[0],b=a[1],u=a[2],o=a[3],d,w,A,_,y;return w=f*h+c*b+l*u+m*o,w<0&&(w=-w,h=-h,b=-b,u=-u,o=-o),1-w>1e-6?(d=Math.acos(w),A=Math.sin(d),_=Math.sin((1-n)*d)/A,y=Math.sin(n*d)/A):(_=1-n,y=n),r[0]=_*f+y*h,r[1]=_*c+y*b,r[2]=_*l+y*u,r[3]=_*m+y*o,r}},8240:function(v){v.exports=function(p){return!p&&p!==0?"":p.toString()}},4123:function(v,p,r){var t=r(875);v.exports=n;var a={};function n(f,c,l){var m=a[c];if(m||(m=a[c]={}),f in m)return m[f];var h={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};h.triangles=!0;var b=t(f,h);h.triangles=!1;var u=t(f,h),o,d;if(l&&l!==1){for(o=0;o max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform vec4 highlightId; +uniform float highlightScale; +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = 1.0; + if(distance(highlightId, id) < 0.0001) { + scale = highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1); + vec4 viewPosition = view * worldPosition; + viewPosition = viewPosition / viewPosition.w; + vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0)); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),f=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float highlightScale, pixelRatio; +uniform vec4 highlightId; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = pixelRatio; + if(distance(highlightId.bgr, id.bgr) < 0.001) { + scale *= highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1.0); + vec4 viewPosition = view * worldPosition; + vec4 clipPosition = projection * viewPosition; + clipPosition /= clipPosition.w; + + gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0); + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),c=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform float highlightScale; +uniform vec4 highlightId; +uniform vec3 axes[2]; +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float scale, pixelRatio; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float lscale = pixelRatio * scale; + if(distance(highlightId, id) < 0.0001) { + lscale *= highlightScale; + } + + vec4 clipCenter = projection * view * model * vec4(position, 1); + vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y; + vec4 clipPosition = projection * view * model * vec4(dataPosition, 1); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = dataPosition; + } +} +`]),l=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float opacity; + +varying vec4 interpColor; +varying vec3 dataCoordinate; + +void main() { + if ( + outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) || + interpColor.a * opacity == 0. + ) discard; + gl_FragColor = interpColor * opacity; +} +`]),m=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float pickGroup; + +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard; + + gl_FragColor = vec4(pickGroup, pickId.bgr); +}`]),h=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],b={vertex:n,fragment:l,attributes:h},u={vertex:f,fragment:l,attributes:h},o={vertex:c,fragment:l,attributes:h},d={vertex:n,fragment:m,attributes:h},w={vertex:f,fragment:m,attributes:h},A={vertex:c,fragment:m,attributes:h};function _(y,E){var T=t(y,E),s=T.attributes;return s.position.location=0,s.color.location=1,s.glyph.location=2,s.id.location=3,T}p.createPerspective=function(y){return _(y,b)},p.createOrtho=function(y){return _(y,u)},p.createProject=function(y){return _(y,o)},p.createPickPerspective=function(y){return _(y,d)},p.createPickOrtho=function(y){return _(y,w)},p.createPickProject=function(y){return _(y,A)}},2182:function(v,p,r){var t=r(3596),a=r(5827),n=r(2944),f=r(5306),c=r(104),l=r(9282),m=r(4123),h=r(8240),b=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];v.exports=ue;function u(J,X){var ee=J[0],V=J[1],Q=J[2],oe=J[3];return J[0]=X[0]*ee+X[4]*V+X[8]*Q+X[12]*oe,J[1]=X[1]*ee+X[5]*V+X[9]*Q+X[13]*oe,J[2]=X[2]*ee+X[6]*V+X[10]*Q+X[14]*oe,J[3]=X[3]*ee+X[7]*V+X[11]*Q+X[15]*oe,J}function o(J,X,ee,V){return u(V,V),u(V,V),u(V,V)}function d(J,X){this.index=J,this.dataCoordinate=this.position=X}function w(J){return J===!0||J>1?1:J}function A(J,X,ee,V,Q,oe,$,Z,se,ne,ce,ge){this.gl=J,this.pixelRatio=1,this.shader=X,this.orthoShader=ee,this.projectShader=V,this.pointBuffer=Q,this.colorBuffer=oe,this.glyphBuffer=$,this.idBuffer=Z,this.vao=se,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=ne,this.pickOrthoShader=ce,this.pickProjectShader=ge,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var _=A.prototype;_.pickSlots=1,_.setPickBase=function(J){this.pickId=J},_.isTransparent=function(){if(this.hasAlpha)return!0;for(var J=0;J<3;++J)if(this.axesProject[J]&&this.projectHasAlpha)return!0;return!1},_.isOpaque=function(){if(!this.hasAlpha)return!0;for(var J=0;J<3;++J)if(this.axesProject[J]&&!this.projectHasAlpha)return!0;return!1};var y=[0,0],E=[0,0,0],T=[0,0,0],s=[0,0,0,1],L=[0,0,0,1],M=b.slice(),z=[0,0,0],D=[[0,0,0],[0,0,0]];function N(J){return J[0]=J[1]=J[2]=0,J}function I(J,X){return J[0]=X[0],J[1]=X[1],J[2]=X[2],J[3]=1,J}function k(J,X,ee,V){return J[0]=X[0],J[1]=X[1],J[2]=X[2],J[ee]=V,J}function B(J){for(var X=D,ee=0;ee<2;++ee)for(var V=0;V<3;++V)X[ee][V]=Math.max(Math.min(J[ee][V],1e8),-1e8);return X}function O(J,X,ee,V){var Q=X.axesProject,oe=X.gl,$=J.uniforms,Z=ee.model||b,se=ee.view||b,ne=ee.projection||b,ce=X.axesBounds,ge=B(X.clipBounds),Te;X.axes&&X.axes.lastCubeProps?Te=X.axes.lastCubeProps.axis:Te=[1,1,1],y[0]=2/oe.drawingBufferWidth,y[1]=2/oe.drawingBufferHeight,J.bind(),$.view=se,$.projection=ne,$.screenSize=y,$.highlightId=X.highlightId,$.highlightScale=X.highlightScale,$.clipBounds=ge,$.pickGroup=X.pickId/255,$.pixelRatio=V;for(var we=0;we<3;++we)if(Q[we]){$.scale=X.projectScale[we],$.opacity=X.projectOpacity[we];for(var Re=M,be=0;be<16;++be)Re[be]=0;for(var be=0;be<4;++be)Re[5*be]=1;Re[5*we]=0,Te[we]<0?Re[12+we]=ce[0][we]:Re[12+we]=ce[1][we],c(Re,Z,Re),$.model=Re;var Ae=(we+1)%3,me=(we+2)%3,Le=N(E),He=N(T);Le[Ae]=1,He[me]=1;var Ue=o(ne,se,Z,I(s,Le)),ke=o(ne,se,Z,I(L,He));if(Math.abs(Ue[1])>Math.abs(ke[1])){var Ve=Ue;Ue=ke,ke=Ve,Ve=Le,Le=He,He=Ve;var Ie=Ae;Ae=me,me=Ie}Ue[0]<0&&(Le[Ae]=-1),ke[1]>0&&(He[me]=-1);for(var rt=0,Ke=0,be=0;be<4;++be)rt+=Math.pow(Z[4*Ae+be],2),Ke+=Math.pow(Z[4*me+be],2);Le[Ae]/=Math.sqrt(rt),He[me]/=Math.sqrt(Ke),$.axes[0]=Le,$.axes[1]=He,$.fragClipBounds[0]=k(z,ge[0],we,-1e8),$.fragClipBounds[1]=k(z,ge[1],we,1e8),X.vao.bind(),X.vao.draw(oe.TRIANGLES,X.vertexCount),X.lineWidth>0&&(oe.lineWidth(X.lineWidth*V),X.vao.draw(oe.LINES,X.lineVertexCount,X.vertexCount)),X.vao.unbind()}}var H=[-1e8,-1e8,-1e8],Y=[1e8,1e8,1e8],j=[H,Y];function te(J,X,ee,V,Q,oe,$){var Z=ee.gl;if((oe===ee.projectHasAlpha||$)&&O(X,ee,V,Q),oe===ee.hasAlpha||$){J.bind();var se=J.uniforms;se.model=V.model||b,se.view=V.view||b,se.projection=V.projection||b,y[0]=2/Z.drawingBufferWidth,y[1]=2/Z.drawingBufferHeight,se.screenSize=y,se.highlightId=ee.highlightId,se.highlightScale=ee.highlightScale,se.fragClipBounds=j,se.clipBounds=ee.axes.bounds,se.opacity=ee.opacity,se.pickGroup=ee.pickId/255,se.pixelRatio=Q,ee.vao.bind(),ee.vao.draw(Z.TRIANGLES,ee.vertexCount),ee.lineWidth>0&&(Z.lineWidth(ee.lineWidth*Q),ee.vao.draw(Z.LINES,ee.lineVertexCount,ee.vertexCount)),ee.vao.unbind()}}_.draw=function(J){var X=this.useOrtho?this.orthoShader:this.shader;te(X,this.projectShader,this,J,this.pixelRatio,!1,!1)},_.drawTransparent=function(J){var X=this.useOrtho?this.orthoShader:this.shader;te(X,this.projectShader,this,J,this.pixelRatio,!0,!1)},_.drawPick=function(J){var X=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(X,this.pickProjectShader,this,J,1,!0,!0)},_.pick=function(J){if(!J||J.id!==this.pickId)return null;var X=J.value[2]+(J.value[1]<<8)+(J.value[0]<<16);if(X>=this.pointCount||X<0)return null;var ee=this.points[X],V=this._selectResult;V.index=X;for(var Q=0;Q<3;++Q)V.position[Q]=V.dataCoordinate[Q]=ee[Q];return V},_.highlight=function(J){if(!J)this.highlightId=[1,1,1,1];else{var X=J.index,ee=X&255,V=X>>8&255,Q=X>>16&255;this.highlightId=[ee/255,V/255,Q/255,0]}};function ie(J,X,ee,V){var Q;Array.isArray(J)?X0){var St=0,nt=me,ze=[0,0,0,1],Xe=[0,0,0,1],Je=Array.isArray(Te)&&Array.isArray(Te[0]),We=Array.isArray(be)&&Array.isArray(be[0]);e:for(var V=0;V0?1-Ke[0][0]:je<0?1+Ke[1][0]:1,it*=it>0?1-Ke[0][1]:it<0?1+Ke[1][1]:1;for(var mt=[je,it],Tt=Ie.cells||[],Bt=Ie.positions||[],ke=0;ke0){var N=b*E;w.drawBox(T-N,s-N,L+N,s+N,d),w.drawBox(T-N,M-N,L+N,M+N,d),w.drawBox(T-N,s-N,T+N,M+N,d),w.drawBox(L-N,s-N,L+N,M+N,d)}}}},c.update=function(m){m=m||{},this.innerFill=!!m.innerFill,this.outerFill=!!m.outerFill,this.innerColor=(m.innerColor||[0,0,0,.5]).slice(),this.outerColor=(m.outerColor||[0,0,0,.5]).slice(),this.borderColor=(m.borderColor||[0,0,0,1]).slice(),this.borderWidth=m.borderWidth||0,this.selectBox=(m.selectBox||this.selectBox).slice()},c.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)};function l(m,h){var b=m.gl,u=a(b,[0,0,0,1,1,0,1,1]),o=t(b,n.boxVertex,n.boxFragment),d=new f(m,u,o);return d.update(h),m.addOverlay(d),d}},2611:function(v,p,r){v.exports=b;var t=r(4234),a=r(5306),n=r(5050),f=r(2288).nextPow2,c=function(u,o,d){for(var w=1e8,A=-1,_=-1,y=u.shape[0],E=u.shape[1],T=0;Tthis.buffer.length){a.free(this.buffer);for(var w=this.buffer=a.mallocUint8(f(d*o*4)),A=0;Aw)for(o=w;od)for(o=d;o=0){for(var B=k.type.charAt(k.type.length-1)|0,O=new Array(B),H=0;H=0;)Y+=1;N[I]=Y}var j=new Array(w.length);function te(){y.program=f.program(E,y._vref,y._fref,D,N);for(var ie=0;ie=0){var s=E.charCodeAt(E.length-1)-48;if(s<2||s>4)throw new t("","Invalid data type for attribute "+y+": "+E);c(h,b,T[0],o,s,d,y)}else if(E.indexOf("mat")>=0){var s=E.charCodeAt(E.length-1)-48;if(s<2||s>4)throw new t("","Invalid data type for attribute "+y+": "+E);l(h,b,T,o,s,d,y)}else throw new t("","Unknown data type for attribute "+y+": "+E);break}}return d}},9016:function(v,p,r){var t=r(3984),a=r(9068);v.exports=c;function n(l){return function(){return l}}function f(l,m){for(var h=new Array(l),b=0;b4)throw new a("","Invalid data type");switch(Y.charAt(0)){case"b":case"i":l["uniform"+j+"iv"](b[N],I);break;case"v":l["uniform"+j+"fv"](b[N],I);break;default:throw new a("","Unrecognized data type for vector "+name+": "+Y)}}else if(Y.indexOf("mat")===0&&Y.length===4){if(j=Y.charCodeAt(Y.length-1)-48,j<2||j>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+Y);l["uniformMatrix"+j+"fv"](b[N],!1,I);break}else throw new a("","Unknown uniform data type for "+name+": "+Y)}}}}}function d(E,T){if(typeof T!="object")return[[E,T]];var s=[];for(var L in T){var M=T[L],z=E;parseInt(L)+""===L?z+="["+L+"]":z+="."+L,typeof M=="object"?s.push.apply(s,d(z,M)):s.push([z,M])}return s}function w(E){switch(E){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var T=E.indexOf("vec");if(0<=T&&T<=1&&E.length===4+T){var s=E.charCodeAt(E.length-1)-48;if(s<2||s>4)throw new a("","Invalid data type");return E.charAt(0)==="b"?f(s,!1):f(s,0)}else if(E.indexOf("mat")===0&&E.length===4){var s=E.charCodeAt(E.length-1)-48;if(s<2||s>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+E);return f(s*s,0)}else throw new a("","Unknown uniform data type for "+name+": "+E)}}function A(E,T,s){if(typeof s=="object"){var L=_(s);Object.defineProperty(E,T,{get:n(L),set:o(s),enumerable:!0,configurable:!1})}else b[s]?Object.defineProperty(E,T,{get:u(s),set:o(s),enumerable:!0,configurable:!1}):E[T]=w(h[s].type)}function _(E){var T;if(Array.isArray(E)){T=new Array(E.length);for(var s=0;s1){h[0]in l||(l[h[0]]=[]),l=l[h[0]];for(var b=1;b1)for(var d=0;d"u"?r(4037):WeakMap,f=new n,c=0;function l(A,_,y,E,T,s,L){this.id=A,this.src=_,this.type=y,this.shader=E,this.count=s,this.programs=[],this.cache=L}l.prototype.dispose=function(){if(--this.count===0){for(var A=this.cache,_=A.gl,y=this.programs,E=0,T=y.length;E 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, tubeScale; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * tubePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(tubePosition, 1.0); + vec4 t_position = view * tubePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = tubePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),n=t([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),f=t([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float tubeScale; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + gl_Position = projection * view * tubePosition; + f_id = id; + f_position = position.xyz; +} +`]),c=t([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);p.meshShader={vertex:a,fragment:n,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},p.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7307:function(v,p,r){var t=r(2858),a=r(4020),n=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(w,A,_,y){for(var E=w.points,T=w.velocities,s=w.divergences,L=[],M=[],z=[],D=[],N=[],I=[],k=0,B=0,O=a.create(),H=a.create(),Y=8,j=0;j0)for(var J=0;JA)return y-1}return y},m=function(w,A,_){return w_?_:w},h=function(w,A,_){var y=A.vectors,E=A.meshgrid,T=w[0],s=w[1],L=w[2],M=E[0].length,z=E[1].length,D=E[2].length,N=l(E[0],T),I=l(E[1],s),k=l(E[2],L),B=N+1,O=I+1,H=k+1;if(N=m(N,0,M-1),B=m(B,0,M-1),I=m(I,0,z-1),O=m(O,0,z-1),k=m(k,0,D-1),H=m(H,0,D-1),N<0||I<0||k<0||B>M-1||O>z-1||H>D-1)return t.create();var Y=E[0][N],j=E[0][B],te=E[1][I],ie=E[1][O],ue=E[2][k],J=E[2][H],X=(T-Y)/(j-Y),ee=(s-te)/(ie-te),V=(L-ue)/(J-ue);isFinite(X)||(X=.5),isFinite(ee)||(ee=.5),isFinite(V)||(V=.5);var Q,oe,$,Z,se,ne;switch(_.reversedX&&(N=M-1-N,B=M-1-B),_.reversedY&&(I=z-1-I,O=z-1-O),_.reversedZ&&(k=D-1-k,H=D-1-H),_.filled){case 5:se=k,ne=H,$=I*D,Z=O*D,Q=N*D*z,oe=B*D*z;break;case 4:se=k,ne=H,Q=N*D,oe=B*D,$=I*D*M,Z=O*D*M;break;case 3:$=I,Z=O,se=k*z,ne=H*z,Q=N*z*D,oe=B*z*D;break;case 2:$=I,Z=O,Q=N*z,oe=B*z,se=k*z*M,ne=H*z*M;break;case 1:Q=N,oe=B,se=k*M,ne=H*M,$=I*M*D,Z=O*M*D;break;default:Q=N,oe=B,$=I*M,Z=O*M,se=k*M*z,ne=H*M*z;break}var ce=y[Q+$+se],ge=y[Q+$+ne],Te=y[Q+Z+se],we=y[Q+Z+ne],Re=y[oe+$+se],be=y[oe+$+ne],Ae=y[oe+Z+se],me=y[oe+Z+ne],Le=t.create(),He=t.create(),Ue=t.create(),ke=t.create();t.lerp(Le,ce,Re,X),t.lerp(He,ge,be,X),t.lerp(Ue,Te,Ae,X),t.lerp(ke,we,me,X);var Ve=t.create(),Ie=t.create();t.lerp(Ve,Le,Ue,ee),t.lerp(Ie,He,ke,ee);var rt=t.create();return t.lerp(rt,Ve,Ie,V),rt},b=function(w){var A=1/0;w.sort(function(T,s){return T-s});for(var _=w.length,y=1;y<_;y++){var E=Math.abs(w[y]-w[y-1]);EB||meO||LeH)},j=t.distance(A[0],A[1]),te=10*j/y,ie=te*te,ue=1,J=0,X=_.length;X>1&&(ue=u(_));for(var ee=0;eeJ&&(J=ce),se.push(ce),D.push({points:Q,velocities:oe,divergences:se});for(var ge=0;geie&&t.scale(Te,Te,te/Math.sqrt(we)),t.add(Te,Te,V),$=M(Te),t.squaredDistance(Z,Te)-ie>-1e-4*ie){Q.push(Te),Z=Te,oe.push($);var ne=z(Te,$),ce=t.length(ne);isFinite(ce)&&ce>J&&(J=ce),se.push(ce)}V=Te}}var Re=c(D,w.colormap,J,ue);return T?Re.tubeScale=T:(J===0&&(J=1),Re.tubeScale=E*.5*ue/J),Re};var o=r(9578),d=r(1140).createMesh;v.exports.createTubeMesh=function(w,A){return d(w,A,{shaders:o,traceType:"streamtube"})}},9054:function(v,p,r){var t=r(5158),a=r(6832),n=a([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute vec3 f; +attribute vec3 normal; + +uniform vec3 objectOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 lightPosition, eyePosition; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 localCoordinate = vec3(uv.zw, f.x); + worldCoordinate = objectOffset + localCoordinate; + vec4 worldPosition = model * vec4(worldCoordinate, 1.0); + vec4 clipPosition = projection * view * worldPosition; + gl_Position = clipPosition; + kill = f.y; + value = f.z; + planeCoordinate = uv.xy; + + vColor = texture2D(colormap, vec2(value, value)); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * worldPosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + lightDirection = lightPosition - cameraCoordinate.xyz; + eyeDirection = eyePosition - cameraCoordinate.xyz; + surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz); +} +`]),f=a([`precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float beckmannSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness) { + return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 lowerBound, upperBound; +uniform float contourTint; +uniform vec4 contourColor; +uniform sampler2D colormap; +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform float vertexColor; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + if ( + kill > 0.0 || + vColor.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], worldCoordinate) + ) discard; + + vec3 N = normalize(surfaceNormal); + vec3 V = normalize(eyeDirection); + vec3 L = normalize(lightDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = max(beckmannSpecular(L, V, N, roughness), 0.); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + //decide how to interpolate color — in vertex or in fragment + vec4 surfaceColor = + step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + + step(.5, vertexColor) * vColor; + + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = mix(litColor, contourColor, contourTint) * opacity; +} +`]),c=a([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute float f; + +uniform vec3 objectOffset; +uniform mat3 permutation; +uniform mat4 model, view, projection; +uniform float height, zOffset; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 dataCoordinate = permutation * vec3(uv.xy, height); + worldCoordinate = objectOffset + dataCoordinate; + vec4 worldPosition = model * vec4(worldCoordinate, 1.0); + + vec4 clipPosition = projection * view * worldPosition; + clipPosition.z += zOffset; + + gl_Position = clipPosition; + value = f + objectOffset.z; + kill = -1.0; + planeCoordinate = uv.zw; + + vColor = texture2D(colormap, vec2(value, value)); + + //Don't do lighting for contours + surfaceNormal = vec3(1,0,0); + eyeDirection = vec3(0,1,0); + lightDirection = vec3(0,0,1); +} +`]),l=a([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec2 shape; +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 surfaceNormal; + +vec2 splitFloat(float v) { + float vh = 255.0 * v; + float upper = floor(vh); + float lower = fract(vh); + return vec2(upper / 255.0, floor(lower * 16.0) / 16.0); +} + +void main() { + if ((kill > 0.0) || + (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard; + + vec2 ux = splitFloat(planeCoordinate.x / shape.x); + vec2 uy = splitFloat(planeCoordinate.y / shape.y); + gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); +} +`]);p.createShader=function(m){var h=t(m,n,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h.attributes.normal.location=2,h},p.createPickShader=function(m){var h=t(m,n,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h.attributes.normal.location=2,h},p.createContourShader=function(m){var h=t(m,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h},p.createPickContourShader=function(m){var h=t(m,c,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h}},3754:function(v,p,r){v.exports=oe;var t=r(2288),a=r(5827),n=r(2944),f=r(8931),c=r(5306),l=r(9156),m=r(7498),h=r(7382),b=r(5050),u=r(4162),o=r(104),d=r(7437),w=r(5070),A=r(9144),_=r(9054),y=_.createShader,E=_.createContourShader,T=_.createPickShader,s=_.createPickContourShader,L=4*10,M=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],z=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],D=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var $=0;$<3;++$){var Z=D[$],se=($+1)%3,ne=($+2)%3;Z[se+0]=1,Z[ne+3]=1,Z[$+6]=1}})();function N($,Z,se,ne,ce){this.position=$,this.index=Z,this.uv=se,this.level=ne,this.dataCoordinate=ce}var I=256;function k($,Z,se,ne,ce,ge,Te,we,Re,be,Ae,me,Le,He,Ue){this.gl=$,this.shape=Z,this.bounds=se,this.objectOffset=Ue,this.intensityBounds=[],this._shader=ne,this._pickShader=ce,this._coordinateBuffer=ge,this._vao=Te,this._colorMap=we,this._contourShader=Re,this._contourPickShader=be,this._contourBuffer=Ae,this._contourVAO=me,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new N([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Le,this._dynamicVAO=He,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[b(c.mallocFloat(1024),[0,0]),b(c.mallocFloat(1024),[0,0]),b(c.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var B=k.prototype;B.genColormap=function($,Z){var se=!1,ne=h([l({colormap:$,nshades:I,format:"rgba"}).map(function(ce,ge){var Te=Z?O(ge/255,Z):ce[3];return Te<1&&(se=!0),[ce[0],ce[1],ce[2],255*Te]})]);return m.divseq(ne,255),this.hasAlphaScale=se,ne},B.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},B.isOpaque=function(){return!this.isTransparent()},B.pickSlots=1,B.setPickBase=function($){this.pickId=$};function O($,Z){if(!Z||!Z.length)return 1;for(var se=0;se$&&se>0){var ne=(Z[se][0]-$)/(Z[se][0]-Z[se-1][0]);return Z[se][1]*(1-ne)+ne*Z[se-1][1]}}return 1}var H=[0,0,0],Y={showSurface:!1,showContour:!1,projections:[M.slice(),M.slice(),M.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function j($,Z){var se,ne,ce,ge=Z.axes&&Z.axes.lastCubeProps.axis||H,Te=Z.showSurface,we=Z.showContour;for(se=0;se<3;++se)for(Te=Te||Z.surfaceProject[se],ne=0;ne<3;++ne)we=we||Z.contourProject[se][ne];for(se=0;se<3;++se){var Re=Y.projections[se];for(ne=0;ne<16;++ne)Re[ne]=0;for(ne=0;ne<4;++ne)Re[5*ne]=1;Re[5*se]=0,Re[12+se]=Z.axesBounds[+(ge[se]>0)][se],o(Re,$.model,Re);var be=Y.clipBounds[se];for(ce=0;ce<2;++ce)for(ne=0;ne<3;++ne)be[ce][ne]=$.clipBounds[ce][ne];be[0][se]=-1e8,be[1][se]=1e8}return Y.showSurface=Te,Y.showContour=we,Y}var te={model:M,view:M,projection:M,inverseModel:M.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},ie=M.slice(),ue=[1,0,0,0,1,0,0,0,1];function J($,Z){$=$||{};var se=this.gl;se.disable(se.CULL_FACE),this._colorMap.bind(0);var ne=te;ne.model=$.model||M,ne.view=$.view||M,ne.projection=$.projection||M,ne.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ne.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ne.objectOffset=this.objectOffset,ne.contourColor=this.contourColor[0],ne.inverseModel=d(ne.inverseModel,ne.model);for(var ce=0;ce<2;++ce)for(var ge=ne.clipBounds[ce],Te=0;Te<3;++Te)ge[Te]=Math.min(Math.max(this.clipBounds[ce][Te],-1e8),1e8);ne.kambient=this.ambientLight,ne.kdiffuse=this.diffuseLight,ne.kspecular=this.specularLight,ne.roughness=this.roughness,ne.fresnel=this.fresnel,ne.opacity=this.opacity,ne.height=0,ne.permutation=ue,ne.vertexColor=this.vertexColor;var we=ie;for(o(we,ne.view,ne.model),o(we,ne.projection,we),d(we,we),ce=0;ce<3;++ce)ne.eyePosition[ce]=we[12+ce]/we[15];var Re=we[15];for(ce=0;ce<3;++ce)Re+=this.lightPosition[ce]*we[4*ce+3];for(ce=0;ce<3;++ce){var be=we[12+ce];for(Te=0;Te<3;++Te)be+=we[4*Te+ce]*this.lightPosition[Te];ne.lightPosition[ce]=be/Re}var Ae=j(ne,this);if(Ae.showSurface){for(this._shader.bind(),this._shader.uniforms=ne,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(se.TRIANGLES,this._vertexCount),ce=0;ce<3;++ce)!this.surfaceProject[ce]||!this.vertexCount||(this._shader.uniforms.model=Ae.projections[ce],this._shader.uniforms.clipBounds=Ae.clipBounds[ce],this._vao.draw(se.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ae.showContour){var me=this._contourShader;ne.kambient=1,ne.kdiffuse=0,ne.kspecular=0,ne.opacity=1,me.bind(),me.uniforms=ne;var Le=this._contourVAO;for(Le.bind(),ce=0;ce<3;++ce)for(me.uniforms.permutation=D[ce],se.lineWidth(this.contourWidth[ce]*this.pixelRatio),Te=0;Te>4)/16)/255,ce=Math.floor(ne),ge=ne-ce,Te=Z[1]*($.value[1]+($.value[2]&15)/16)/255,we=Math.floor(Te),Re=Te-we;ce+=1,we+=1;var be=se.position;be[0]=be[1]=be[2]=0;for(var Ae=0;Ae<2;++Ae)for(var me=Ae?ge:1-ge,Le=0;Le<2;++Le)for(var He=Le?Re:1-Re,Ue=ce+Ae,ke=we+Le,Ve=me*He,Ie=0;Ie<3;++Ie)be[Ie]+=this._field[Ie].get(Ue,ke)*Ve;for(var rt=this._pickResult.level,Ke=0;Ke<3;++Ke)if(rt[Ke]=w.le(this.contourLevels[Ke],be[Ke]),rt[Ke]<0)this.contourLevels[Ke].length>0&&(rt[Ke]=0);else if(rt[Ke]Math.abs(lt-be[Ke])&&(rt[Ke]+=1)}for(se.index[0]=ge<.5?ce:ce+1,se.index[1]=Re<.5?we:we+1,se.uv[0]=ne/Z[0],se.uv[1]=Te/Z[1],Ie=0;Ie<3;++Ie)se.dataCoordinate[Ie]=this._field[Ie].get(se.index[0],se.index[1]);return se},B.padField=function($,Z){var se=Z.shape.slice(),ne=$.shape.slice();m.assign($.lo(1,1).hi(se[0],se[1]),Z),m.assign($.lo(1).hi(se[0],1),Z.hi(se[0],1)),m.assign($.lo(1,ne[1]-1).hi(se[0],1),Z.lo(0,se[1]-1).hi(se[0],1)),m.assign($.lo(0,1).hi(1,se[1]),Z.hi(1)),m.assign($.lo(ne[0]-1,1).hi(1,se[1]),Z.lo(se[0]-1)),$.set(0,0,Z.get(0,0)),$.set(0,ne[1]-1,Z.get(0,se[1]-1)),$.set(ne[0]-1,0,Z.get(se[0]-1,0)),$.set(ne[0]-1,ne[1]-1,Z.get(se[0]-1,se[1]-1))};function ee($,Z){return Array.isArray($)?[Z($[0]),Z($[1]),Z($[2])]:[Z($),Z($),Z($)]}function V($){return Array.isArray($)?$.length===3?[$[0],$[1],$[2],1]:[$[0],$[1],$[2],$[3]]:[0,0,0,1]}function Q($){if(Array.isArray($)){if(Array.isArray($))return[V($[0]),V($[1]),V($[2])];var Z=V($);return[Z.slice(),Z.slice(),Z.slice()]}}B.update=function($){$=$||{},this.objectOffset=$.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in $&&(this.contourWidth=ee($.contourWidth,Number)),"showContour"in $&&(this.showContour=ee($.showContour,Boolean)),"showSurface"in $&&(this.showSurface=!!$.showSurface),"contourTint"in $&&(this.contourTint=ee($.contourTint,Boolean)),"contourColor"in $&&(this.contourColor=Q($.contourColor)),"contourProject"in $&&(this.contourProject=ee($.contourProject,function(Ot){return ee(Ot,Boolean)})),"surfaceProject"in $&&(this.surfaceProject=$.surfaceProject),"dynamicColor"in $&&(this.dynamicColor=Q($.dynamicColor)),"dynamicTint"in $&&(this.dynamicTint=ee($.dynamicTint,Number)),"dynamicWidth"in $&&(this.dynamicWidth=ee($.dynamicWidth,Number)),"opacity"in $&&(this.opacity=$.opacity),"opacityscale"in $&&(this.opacityscale=$.opacityscale),"colorBounds"in $&&(this.colorBounds=$.colorBounds),"vertexColor"in $&&(this.vertexColor=$.vertexColor?1:0),"colormap"in $&&this._colorMap.setPixels(this.genColormap($.colormap,this.opacityscale));var Z=$.field||$.coords&&$.coords[2]||null,se=!1;if(Z||(this._field[2].shape[0]||this._field[2].shape[2]?Z=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):Z=this._field[2].hi(0,0)),"field"in $||"coords"in $){var ne=(Z.shape[0]+2)*(Z.shape[1]+2);ne>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(t.nextPow2(ne))),this._field[2]=b(this._field[2].data,[Z.shape[0]+2,Z.shape[1]+2]),this.padField(this._field[2],Z),this.shape=Z.shape.slice();for(var ce=this.shape,ge=0;ge<2;++ge)this._field[2].size>this._field[ge].data.length&&(c.freeFloat(this._field[ge].data),this._field[ge].data=c.mallocFloat(this._field[2].size)),this._field[ge]=b(this._field[ge].data,[ce[0]+2,ce[1]+2]);if($.coords){var Te=$.coords;if(!Array.isArray(Te)||Te.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ge=0;ge<2;++ge){var we=Te[ge];for(Le=0;Le<2;++Le)if(we.shape[Le]!==ce[Le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ge],we)}}else if($.ticks){var Re=$.ticks;if(!Array.isArray(Re)||Re.length!==2)throw new Error("gl-surface: invalid ticks");for(ge=0;ge<2;++ge){var be=Re[ge];if((Array.isArray(be)||be.length)&&(be=b(be)),be.shape[0]!==ce[ge])throw new Error("gl-surface: invalid tick length");var Ae=b(be.data,ce);Ae.stride[ge]=be.stride[0],Ae.stride[ge^1]=0,this.padField(this._field[ge],Ae)}}else{for(ge=0;ge<2;++ge){var me=[0,0];me[ge]=1,this._field[ge]=b(this._field[ge].data,[ce[0]+2,ce[1]+2],me,0)}this._field[0].set(0,0,0);for(var Le=0;Le0){for(var Ge=0;Ge<5;++Ge)Tt.pop();ye-=1}continue e}}}Xt.push(ye)}this._contourOffsets[Bt]=pt,this._contourCounts[Bt]=Xt}var Nt=c.mallocFloat(Tt.length);for(ge=0;geN||z<0||z>N)throw new Error("gl-texture2d: Invalid texture size");return L._shape=[M,z],L.bind(),D.texImage2D(D.TEXTURE_2D,0,L.format,M,z,0,L.format,L.type,null),L._mipLevels=[0],L}function o(L,M,z,D,N,I){this.gl=L,this.handle=M,this.format=N,this.type=I,this._shape=[z,D],this._mipLevels=[0],this._magFilter=L.NEAREST,this._minFilter=L.NEAREST,this._wrapS=L.CLAMP_TO_EDGE,this._wrapT=L.CLAMP_TO_EDGE,this._anisoSamples=1;var k=this,B=[this._wrapS,this._wrapT];Object.defineProperties(B,[{get:function(){return k._wrapS},set:function(H){return k.wrapS=H}},{get:function(){return k._wrapT},set:function(H){return k.wrapT=H}}]),this._wrapVector=B;var O=[this._shape[0],this._shape[1]];Object.defineProperties(O,[{get:function(){return k._shape[0]},set:function(H){return k.width=H}},{get:function(){return k._shape[1]},set:function(H){return k.height=H}}]),this._shapeVector=O}var d=o.prototype;Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(L){this.bind();var M=this.gl;if(this.type===M.FLOAT&&f.indexOf(L)>=0&&(M.getExtension("OES_texture_float_linear")||(L=M.NEAREST)),c.indexOf(L)<0)throw new Error("gl-texture2d: Unknown filter mode "+L);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,L),this._minFilter=L}},magFilter:{get:function(){return this._magFilter},set:function(L){this.bind();var M=this.gl;if(this.type===M.FLOAT&&f.indexOf(L)>=0&&(M.getExtension("OES_texture_float_linear")||(L=M.NEAREST)),c.indexOf(L)<0)throw new Error("gl-texture2d: Unknown filter mode "+L);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,L),this._magFilter=L}},mipSamples:{get:function(){return this._anisoSamples},set:function(L){var M=this._anisoSamples;if(this._anisoSamples=Math.max(L,1)|0,M!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(L){if(this.bind(),l.indexOf(L)<0)throw new Error("gl-texture2d: Unknown wrap mode "+L);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,L),this._wrapS=L}},wrapT:{get:function(){return this._wrapT},set:function(L){if(this.bind(),l.indexOf(L)<0)throw new Error("gl-texture2d: Unknown wrap mode "+L);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,L),this._wrapT=L}},wrap:{get:function(){return this._wrapVector},set:function(L){if(Array.isArray(L)||(L=[L,L]),L.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var M=0;M<2;++M)if(l.indexOf(L[M])<0)throw new Error("gl-texture2d: Unknown wrap mode "+L);this._wrapS=L[0],this._wrapT=L[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),L}},shape:{get:function(){return this._shapeVector},set:function(L){if(!Array.isArray(L))L=[L|0,L|0];else if(L.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return u(this,L[0]|0,L[1]|0),[L[0]|0,L[1]|0]}},width:{get:function(){return this._shape[0]},set:function(L){return L=L|0,u(this,L,this._shape[1]),L}},height:{get:function(){return this._shape[1]},set:function(L){return L=L|0,u(this,this._shape[0],L),L}}}),d.bind=function(L){var M=this.gl;return L!==void 0&&M.activeTexture(M.TEXTURE0+(L|0)),M.bindTexture(M.TEXTURE_2D,this.handle),L!==void 0?L|0:M.getParameter(M.ACTIVE_TEXTURE)-M.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var L=Math.min(this._shape[0],this._shape[1]),M=0;L>0;++M,L>>>=1)this._mipLevels.indexOf(M)<0&&this._mipLevels.push(M)},d.setPixels=function(L,M,z,D){var N=this.gl;this.bind(),Array.isArray(M)?(D=z,z=M[1]|0,M=M[0]|0):(M=M||0,z=z||0),D=D||0;var I=h(L)?L:L.raw;if(I){var k=this._mipLevels.indexOf(D)<0;k?(N.texImage2D(N.TEXTURE_2D,0,this.format,this.format,this.type,I),this._mipLevels.push(D)):N.texSubImage2D(N.TEXTURE_2D,D,M,z,this.format,this.type,I)}else if(L.shape&&L.stride&&L.data){if(L.shape.length<2||M+L.shape[1]>this._shape[1]>>>D||z+L.shape[0]>this._shape[0]>>>D||M<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(N,M,z,D,this.format,this.type,this._mipLevels,L)}else throw new Error("gl-texture2d: Unsupported data type")};function w(L,M){return L.length===3?M[2]===1&&M[1]===L[0]*L[2]&&M[0]===L[2]:M[0]===1&&M[1]===L[0]}function A(L,M,z,D,N,I,k,B){var O=B.dtype,H=B.shape.slice();if(H.length<2||H.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var Y=0,j=0,te=w(H,B.stride.slice());if(O==="float32"?Y=L.FLOAT:O==="float64"?(Y=L.FLOAT,te=!1,O="float32"):O==="uint8"?Y=L.UNSIGNED_BYTE:(Y=L.UNSIGNED_BYTE,te=!1,O="uint8"),H.length===2)j=L.LUMINANCE,H=[H[0],H[1],1],B=t(B.data,H,[B.stride[0],B.stride[1],1],B.offset);else if(H.length===3){if(H[2]===1)j=L.ALPHA;else if(H[2]===2)j=L.LUMINANCE_ALPHA;else if(H[2]===3)j=L.RGB;else if(H[2]===4)j=L.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");H[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((j===L.LUMINANCE||j===L.ALPHA)&&(N===L.LUMINANCE||N===L.ALPHA)&&(j=N),j!==N)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ie=B.size,ue=k.indexOf(D)<0;if(ue&&k.push(D),Y===I&&te)B.offset===0&&B.data.length===ie?ue?L.texImage2D(L.TEXTURE_2D,D,N,H[0],H[1],0,N,I,B.data):L.texSubImage2D(L.TEXTURE_2D,D,M,z,H[0],H[1],N,I,B.data):ue?L.texImage2D(L.TEXTURE_2D,D,N,H[0],H[1],0,N,I,B.data.subarray(B.offset,B.offset+ie)):L.texSubImage2D(L.TEXTURE_2D,D,M,z,H[0],H[1],N,I,B.data.subarray(B.offset,B.offset+ie));else{var J;I===L.FLOAT?J=n.mallocFloat32(ie):J=n.mallocUint8(ie);var X=t(J,H,[H[2],H[2]*H[0],1]);Y===L.FLOAT&&I===L.UNSIGNED_BYTE?b(X,B):a.assign(X,B),ue?L.texImage2D(L.TEXTURE_2D,D,N,H[0],H[1],0,N,I,J.subarray(0,ie)):L.texSubImage2D(L.TEXTURE_2D,D,M,z,H[0],H[1],N,I,J.subarray(0,ie)),I===L.FLOAT?n.freeFloat32(J):n.freeUint8(J)}}function _(L){var M=L.createTexture();return L.bindTexture(L.TEXTURE_2D,M),L.texParameteri(L.TEXTURE_2D,L.TEXTURE_MIN_FILTER,L.NEAREST),L.texParameteri(L.TEXTURE_2D,L.TEXTURE_MAG_FILTER,L.NEAREST),L.texParameteri(L.TEXTURE_2D,L.TEXTURE_WRAP_S,L.CLAMP_TO_EDGE),L.texParameteri(L.TEXTURE_2D,L.TEXTURE_WRAP_T,L.CLAMP_TO_EDGE),M}function y(L,M,z,D,N){var I=L.getParameter(L.MAX_TEXTURE_SIZE);if(M<0||M>I||z<0||z>I)throw new Error("gl-texture2d: Invalid texture shape");if(N===L.FLOAT&&!L.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var k=_(L);return L.texImage2D(L.TEXTURE_2D,0,D,M,z,0,D,N,null),new o(L,k,M,z,D,N)}function E(L,M,z,D,N,I){var k=_(L);return L.texImage2D(L.TEXTURE_2D,0,N,N,I,M),new o(L,k,z,D,N,I)}function T(L,M){var z=M.dtype,D=M.shape.slice(),N=L.getParameter(L.MAX_TEXTURE_SIZE);if(D[0]<0||D[0]>N||D[1]<0||D[1]>N)throw new Error("gl-texture2d: Invalid texture size");var I=w(D,M.stride.slice()),k=0;z==="float32"?k=L.FLOAT:z==="float64"?(k=L.FLOAT,I=!1,z="float32"):z==="uint8"?k=L.UNSIGNED_BYTE:(k=L.UNSIGNED_BYTE,I=!1,z="uint8");var B=0;if(D.length===2)B=L.LUMINANCE,D=[D[0],D[1],1],M=t(M.data,D,[M.stride[0],M.stride[1],1],M.offset);else if(D.length===3)if(D[2]===1)B=L.ALPHA;else if(D[2]===2)B=L.LUMINANCE_ALPHA;else if(D[2]===3)B=L.RGB;else if(D[2]===4)B=L.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");k===L.FLOAT&&!L.getExtension("OES_texture_float")&&(k=L.UNSIGNED_BYTE,I=!1);var O,H,Y=M.size;if(I)M.offset===0&&M.data.length===Y?O=M.data:O=M.data.subarray(M.offset,M.offset+Y);else{var j=[D[2],D[2]*D[0],1];H=n.malloc(Y,z);var te=t(H,D,j,0);(z==="float32"||z==="float64")&&k===L.UNSIGNED_BYTE?b(te,M):a.assign(te,M),O=H.subarray(0,Y)}var ie=_(L);return L.texImage2D(L.TEXTURE_2D,0,B,D[0],D[1],0,B,k,O),I||n.free(H),new o(L,ie,D[0],D[1],B,k)}function s(L){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||m(L),typeof arguments[1]=="number")return y(L,arguments[1],arguments[2],arguments[3]||L.RGBA,arguments[4]||L.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return y(L,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||L.RGBA,arguments[3]||L.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var M=arguments[1],z=h(M)?M:M.raw;if(z)return E(L,z,M.width|0,M.height|0,arguments[2]||L.RGBA,arguments[3]||L.UNSIGNED_BYTE);if(M.shape&&M.data&&M.stride)return T(L,M)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},3056:function(v){function p(r,t,a){t?t.bind():r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,null);var n=r.getParameter(r.MAX_VERTEX_ATTRIBS)|0;if(a){if(a.length>n)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(b)}},8827:function(v){v.exports=p;function p(r,t){return r[0]=Math.ceil(t[0]),r[1]=Math.ceil(t[1]),r[2]=Math.ceil(t[2]),r}},7622:function(v){v.exports=p;function p(r){var t=new Float32Array(3);return t[0]=r[0],t[1]=r[1],t[2]=r[2],t}},8782:function(v){v.exports=p;function p(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r}},8501:function(v){v.exports=p;function p(){var r=new Float32Array(3);return r[0]=0,r[1]=0,r[2]=0,r}},903:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2],l=a[0],m=a[1],h=a[2];return r[0]=f*h-c*m,r[1]=c*l-n*h,r[2]=n*m-f*l,r}},5981:function(v,p,r){v.exports=r(8288)},8288:function(v){v.exports=p;function p(r,t){var a=t[0]-r[0],n=t[1]-r[1],f=t[2]-r[2];return Math.sqrt(a*a+n*n+f*f)}},8629:function(v,p,r){v.exports=r(7979)},7979:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]/a[0],r[1]=t[1]/a[1],r[2]=t[2]/a[2],r}},9305:function(v){v.exports=p;function p(r,t){return r[0]*t[0]+r[1]*t[1]+r[2]*t[2]}},154:function(v){v.exports=1e-6},4932:function(v,p,r){v.exports=a;var t=r(154);function a(n,f){var c=n[0],l=n[1],m=n[2],h=f[0],b=f[1],u=f[2];return Math.abs(c-h)<=t*Math.max(1,Math.abs(c),Math.abs(h))&&Math.abs(l-b)<=t*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(m-u)<=t*Math.max(1,Math.abs(m),Math.abs(u))}},5777:function(v){v.exports=p;function p(r,t){return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]}},3306:function(v){v.exports=p;function p(r,t){return r[0]=Math.floor(t[0]),r[1]=Math.floor(t[1]),r[2]=Math.floor(t[2]),r}},7447:function(v,p,r){v.exports=a;var t=r(8501)();function a(n,f,c,l,m,h){var b,u;for(f||(f=3),c||(c=0),l?u=Math.min(l*f+c,n.length):u=n.length,b=c;b0&&(c=1/Math.sqrt(c),r[0]=t[0]*c,r[1]=t[1]*c,r[2]=t[2]*c),r}},6660:function(v){v.exports=p;function p(r,t){t=t||1;var a=Math.random()*2*Math.PI,n=Math.random()*2-1,f=Math.sqrt(1-n*n)*t;return r[0]=Math.cos(a)*f,r[1]=Math.sin(a)*f,r[2]=n*t,r}},392:function(v){v.exports=p;function p(r,t,a,n){var f=a[1],c=a[2],l=t[1]-f,m=t[2]-c,h=Math.sin(n),b=Math.cos(n);return r[0]=t[0],r[1]=f+l*b-m*h,r[2]=c+l*h+m*b,r}},3222:function(v){v.exports=p;function p(r,t,a,n){var f=a[0],c=a[2],l=t[0]-f,m=t[2]-c,h=Math.sin(n),b=Math.cos(n);return r[0]=f+m*h+l*b,r[1]=t[1],r[2]=c+m*b-l*h,r}},3388:function(v){v.exports=p;function p(r,t,a,n){var f=a[0],c=a[1],l=t[0]-f,m=t[1]-c,h=Math.sin(n),b=Math.cos(n);return r[0]=f+l*b-m*h,r[1]=c+l*h+m*b,r[2]=t[2],r}},1624:function(v){v.exports=p;function p(r,t){return r[0]=Math.round(t[0]),r[1]=Math.round(t[1]),r[2]=Math.round(t[2]),r}},5685:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]*a,r[1]=t[1]*a,r[2]=t[2]*a,r}},6722:function(v){v.exports=p;function p(r,t,a,n){return r[0]=t[0]+a[0]*n,r[1]=t[1]+a[1]*n,r[2]=t[2]+a[2]*n,r}},831:function(v){v.exports=p;function p(r,t,a,n){return r[0]=t,r[1]=a,r[2]=n,r}},5294:function(v,p,r){v.exports=r(6403)},3303:function(v,p,r){v.exports=r(4337)},6403:function(v){v.exports=p;function p(r,t){var a=t[0]-r[0],n=t[1]-r[1],f=t[2]-r[2];return a*a+n*n+f*f}},4337:function(v){v.exports=p;function p(r){var t=r[0],a=r[1],n=r[2];return t*t+a*a+n*n}},8921:function(v,p,r){v.exports=r(911)},911:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]-a[0],r[1]=t[1]-a[1],r[2]=t[2]-a[2],r}},9908:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2];return r[0]=n*a[0]+f*a[3]+c*a[6],r[1]=n*a[1]+f*a[4]+c*a[7],r[2]=n*a[2]+f*a[5]+c*a[8],r}},3255:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2],l=a[3]*n+a[7]*f+a[11]*c+a[15];return l=l||1,r[0]=(a[0]*n+a[4]*f+a[8]*c+a[12])/l,r[1]=(a[1]*n+a[5]*f+a[9]*c+a[13])/l,r[2]=(a[2]*n+a[6]*f+a[10]*c+a[14])/l,r}},6568:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2],l=a[0],m=a[1],h=a[2],b=a[3],u=b*n+m*c-h*f,o=b*f+h*n-l*c,d=b*c+l*f-m*n,w=-l*n-m*f-h*c;return r[0]=u*b+w*-l+o*-h-d*-m,r[1]=o*b+w*-m+d*-l-u*-h,r[2]=d*b+w*-h+u*-m-o*-l,r}},3433:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]+a[0],r[1]=t[1]+a[1],r[2]=t[2]+a[2],r[3]=t[3]+a[3],r}},1413:function(v){v.exports=p;function p(r){var t=new Float32Array(4);return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t}},3470:function(v){v.exports=p;function p(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}},5313:function(v){v.exports=p;function p(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},5446:function(v){v.exports=p;function p(r,t){var a=t[0]-r[0],n=t[1]-r[1],f=t[2]-r[2],c=t[3]-r[3];return Math.sqrt(a*a+n*n+f*f+c*c)}},205:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]/a[0],r[1]=t[1]/a[1],r[2]=t[2]/a[2],r[3]=t[3]/a[3],r}},4242:function(v){v.exports=p;function p(r,t){return r[0]*t[0]+r[1]*t[1]+r[2]*t[2]+r[3]*t[3]}},5680:function(v){v.exports=p;function p(r,t,a,n){var f=new Float32Array(4);return f[0]=r,f[1]=t,f[2]=a,f[3]=n,f}},4020:function(v,p,r){v.exports={create:r(5313),clone:r(1413),fromValues:r(5680),copy:r(3470),set:r(6453),add:r(3433),subtract:r(2705),multiply:r(746),divide:r(205),min:r(2170),max:r(3030),scale:r(5510),scaleAndAdd:r(4224),distance:r(5446),squaredDistance:r(1542),length:r(8177),squaredLength:r(9037),negate:r(6459),inverse:r(8057),normalize:r(381),dot:r(4242),lerp:r(8746),random:r(3770),transformMat4:r(6342),transformQuat:r(5022)}},8057:function(v){v.exports=p;function p(r,t){return r[0]=1/t[0],r[1]=1/t[1],r[2]=1/t[2],r[3]=1/t[3],r}},8177:function(v){v.exports=p;function p(r){var t=r[0],a=r[1],n=r[2],f=r[3];return Math.sqrt(t*t+a*a+n*n+f*f)}},8746:function(v){v.exports=p;function p(r,t,a,n){var f=t[0],c=t[1],l=t[2],m=t[3];return r[0]=f+n*(a[0]-f),r[1]=c+n*(a[1]-c),r[2]=l+n*(a[2]-l),r[3]=m+n*(a[3]-m),r}},3030:function(v){v.exports=p;function p(r,t,a){return r[0]=Math.max(t[0],a[0]),r[1]=Math.max(t[1],a[1]),r[2]=Math.max(t[2],a[2]),r[3]=Math.max(t[3],a[3]),r}},2170:function(v){v.exports=p;function p(r,t,a){return r[0]=Math.min(t[0],a[0]),r[1]=Math.min(t[1],a[1]),r[2]=Math.min(t[2],a[2]),r[3]=Math.min(t[3],a[3]),r}},746:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]*a[0],r[1]=t[1]*a[1],r[2]=t[2]*a[2],r[3]=t[3]*a[3],r}},6459:function(v){v.exports=p;function p(r,t){return r[0]=-t[0],r[1]=-t[1],r[2]=-t[2],r[3]=-t[3],r}},381:function(v){v.exports=p;function p(r,t){var a=t[0],n=t[1],f=t[2],c=t[3],l=a*a+n*n+f*f+c*c;return l>0&&(l=1/Math.sqrt(l),r[0]=a*l,r[1]=n*l,r[2]=f*l,r[3]=c*l),r}},3770:function(v,p,r){var t=r(381),a=r(5510);v.exports=n;function n(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),t(f,f),a(f,f,c),f}},5510:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]*a,r[1]=t[1]*a,r[2]=t[2]*a,r[3]=t[3]*a,r}},4224:function(v){v.exports=p;function p(r,t,a,n){return r[0]=t[0]+a[0]*n,r[1]=t[1]+a[1]*n,r[2]=t[2]+a[2]*n,r[3]=t[3]+a[3]*n,r}},6453:function(v){v.exports=p;function p(r,t,a,n,f){return r[0]=t,r[1]=a,r[2]=n,r[3]=f,r}},1542:function(v){v.exports=p;function p(r,t){var a=t[0]-r[0],n=t[1]-r[1],f=t[2]-r[2],c=t[3]-r[3];return a*a+n*n+f*f+c*c}},9037:function(v){v.exports=p;function p(r){var t=r[0],a=r[1],n=r[2],f=r[3];return t*t+a*a+n*n+f*f}},2705:function(v){v.exports=p;function p(r,t,a){return r[0]=t[0]-a[0],r[1]=t[1]-a[1],r[2]=t[2]-a[2],r[3]=t[3]-a[3],r}},6342:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2],l=t[3];return r[0]=a[0]*n+a[4]*f+a[8]*c+a[12]*l,r[1]=a[1]*n+a[5]*f+a[9]*c+a[13]*l,r[2]=a[2]*n+a[6]*f+a[10]*c+a[14]*l,r[3]=a[3]*n+a[7]*f+a[11]*c+a[15]*l,r}},5022:function(v){v.exports=p;function p(r,t,a){var n=t[0],f=t[1],c=t[2],l=a[0],m=a[1],h=a[2],b=a[3],u=b*n+m*c-h*f,o=b*f+h*n-l*c,d=b*c+l*f-m*n,w=-l*n-m*f-h*c;return r[0]=u*b+w*-l+o*-h-d*-m,r[1]=o*b+w*-m+d*-l-u*-h,r[2]=d*b+w*-h+u*-m-o*-l,r[3]=t[3],r}},9365:function(v,p,r){var t=r(8096),a=r(7896);v.exports=n;function n(f){for(var c=Array.isArray(f)?f:t(f),l=0;l0)continue;Ie=Ue.slice(0,1).join("")}return $(Ie),te+=Ie.length,O=O.slice(Ie.length),O.length}while(!0)}function Ae(){return/[^a-fA-F0-9]/.test(k)?($(O.join("")),I=l,D):(O.push(k),B=k,D+1)}function me(){return k==="."||/[eE]/.test(k)?(O.push(k),I=w,B=k,D+1):k==="x"&&O.length===1&&O[0]==="0"?(I=s,O.push(k),B=k,D+1):/[^\d]/.test(k)?($(O.join("")),I=l,D):(O.push(k),B=k,D+1)}function Le(){return k==="f"&&(O.push(k),B=k,D+=1),/[eE]/.test(k)||(k==="-"||k==="+")&&/[eE]/.test(B)?(O.push(k),B=k,D+1):/[^\d]/.test(k)?($(O.join("")),I=l,D):(O.push(k),B=k,D+1)}function He(){if(/[^\d\w_]/.test(k)){var Ue=O.join("");return oe[Ue]?I=y:Q[Ue]?I=_:I=A,$(O.join("")),I=l,D}return O.push(k),B=k,D+1}}},3585:function(v,p,r){var t=r(9525);t=t.slice().filter(function(a){return!/^(gl\_|texture)/.test(a)}),v.exports=t.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},9525:function(v){v.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},9458:function(v,p,r){var t=r(399);v.exports=t.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},399:function(v){v.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},9746:function(v){v.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},8096:function(v,p,r){var t=r(3193);v.exports=a;function a(n,f){var c=t(f),l=[];return l=l.concat(c(n)),l=l.concat(c(null)),l}},6832:function(v){v.exports=function(p){typeof p=="string"&&(p=[p]);for(var r=[].slice.call(arguments,1),t=[],a=0;a0;){d=T.pop();for(var s=d.adjacent,L=0;L<=A;++L){var M=s[L];if(!(!M.boundary||M.lastVisited<=-_)){for(var z=M.vertices,D=0;D<=A;++D){var N=z[D];N<0?y[D]=w:y[D]=E[N]}var I=this.orient();if(I>0)return M;M.lastVisited=-_,I===0&&T.push(M)}}}return null},u.walk=function(d,w){var A=this.vertices.length-1,_=this.dimension,y=this.vertices,E=this.tuple,T=w?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[T];e:for(;!s.boundary;){for(var L=s.vertices,M=s.adjacent,z=0;z<=_;++z)E[z]=y[L[z]];s.lastVisited=A;for(var z=0;z<=_;++z){var D=M[z];if(!(D.lastVisited>=A)){var N=E[z];E[z]=d;var I=this.orient();if(E[z]=N,I<0){s=D;continue e}else D.boundary?D.lastVisited=-A:D.lastVisited=A}}return}return s},u.addPeaks=function(d,w){var A=this.vertices.length-1,_=this.dimension,y=this.vertices,E=this.tuple,T=this.interior,s=this.simplices,L=[w];w.lastVisited=A,w.vertices[w.vertices.indexOf(-1)]=A,w.boundary=!1,T.push(w);for(var M=[];L.length>0;){var w=L.pop(),z=w.vertices,D=w.adjacent,N=z.indexOf(A);if(!(N<0)){for(var I=0;I<=_;++I)if(I!==N){var k=D[I];if(!(!k.boundary||k.lastVisited>=A)){var B=k.vertices;if(k.lastVisited!==-A){for(var O=0,H=0;H<=_;++H)B[H]<0?(O=H,E[H]=d):E[H]=y[B[H]];var Y=this.orient();if(Y>0){B[O]=A,k.boundary=!1,T.push(k),L.push(k),k.lastVisited=A;continue}else k.lastVisited=-A}var j=k.adjacent,te=z.slice(),ie=D.slice(),ue=new n(te,ie,!0);s.push(ue);var J=j.indexOf(w);if(!(J<0)){j[J]=ue,ie[N]=k,te[I]=-1,ie[I]=w,D[I]=ue,ue.flip();for(var H=0;H<=_;++H){var X=te[H];if(!(X<0||X===A)){for(var ee=new Array(_-1),V=0,Q=0;Q<=_;++Q){var oe=te[Q];oe<0||Q===H||(ee[V++]=oe)}M.push(new f(ee,ue,H))}}}}}}}M.sort(c);for(var I=0;I+1=0?T[L++]=s[z]:M=z&1;if(M===(d&1)){var D=T[0];T[0]=T[1],T[1]=D}w.push(T)}}return w};function o(d,w){var A=d.length;if(A===0)throw new Error("Must have at least d+1 points");var _=d[0].length;if(A<=_)throw new Error("Must input at least d+1 points");var y=d.slice(0,_+1),E=t.apply(void 0,y);if(E===0)throw new Error("Input not in general position");for(var T=new Array(_+1),s=0;s<=_;++s)T[s]=s;E<0&&(T[0]=1,T[1]=0);for(var L=new n(T,new Array(_+1),!1),M=L.adjacent,z=new Array(_+2),s=0;s<=_;++s){for(var D=T.slice(),N=0;N<=_;++N)N===s&&(D[N]=-1);var I=D[0];D[0]=D[1],D[1]=I;var k=new n(D,new Array(_+1),!0);M[s]=k,z[s]=k}z[_+1]=L;for(var s=0;s<=_;++s)for(var D=M[s].vertices,B=M[s].adjacent,N=0;N<=_;++N){var O=D[N];if(O<0){B[N]=L;continue}for(var H=0;H<=_;++H)M[H].vertices.indexOf(O)<0&&(B[N]=M[H])}for(var Y=new b(_,y,z),j=!!w,s=_+1;s3*(z+1)?b(this,M):this.left.insert(M):this.left=E([M]);else if(M[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?b(this,M):this.right.insert(M):this.right=E([M]);else{var D=t.ge(this.leftPoints,M,_),N=t.ge(this.rightPoints,M,y);this.leftPoints.splice(D,0,M),this.rightPoints.splice(N,0,M)}},l.remove=function(M){var z=this.count-this.leftPoints;if(M[1]3*(z-1))return u(this,M);var N=this.left.remove(M);return N===f?(this.left=null,this.count-=1,n):(N===n&&(this.count-=1),N)}else if(M[0]>this.mid){if(!this.right)return a;var I=this.left?this.left.count:0;if(4*I>3*(z-1))return u(this,M);var N=this.right.remove(M);return N===f?(this.right=null,this.count-=1,n):(N===n&&(this.count-=1),N)}else{if(this.count===1)return this.leftPoints[0]===M?f:a;if(this.leftPoints.length===1&&this.leftPoints[0]===M){if(this.left&&this.right){for(var k=this,B=this.left;B.right;)k=B,B=B.right;if(k===this)B.right=this.right;else{var O=this.left,N=this.right;k.count-=B.count,k.right=B.left,B.left=O,B.right=N}m(this,B),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?m(this,this.left):m(this,this.right);return n}for(var O=t.ge(this.leftPoints,M,_);O=0&&M[N][1]>=z;--N){var I=D(M[N]);if(I)return I}}function w(M,z){for(var D=0;Dthis.mid){if(this.right){var D=this.right.queryPoint(M,z);if(D)return D}return d(this.rightPoints,M,z)}else return w(this.leftPoints,z)},l.queryInterval=function(M,z,D){if(Mthis.mid&&this.right){var N=this.right.queryInterval(M,z,D);if(N)return N}return zthis.mid?d(this.rightPoints,M,D):w(this.leftPoints,D)};function A(M,z){return M-z}function _(M,z){var D=M[0]-z[0];return D||M[1]-z[1]}function y(M,z){var D=M[1]-z[1];return D||M[0]-z[0]}function E(M){if(M.length===0)return null;for(var z=[],D=0;D>1],I=[],k=[],B=[],D=0;D +* @license MIT +*/v.exports=function(t){return t!=null&&(p(t)||r(t)||!!t._isBuffer)};function p(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function r(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&p(t.slice(0,0))}},3596:function(v){v.exports=function(p){for(var r=p.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}},3578:function(v){function p(r,t,a){return r*(1-a)+t*a}v.exports=p},7191:function(v,p,r){var t=r(4690),a=r(9823),n=r(7332),f=r(7787),c=r(7437),l=r(2142),m={length:r(4693),normalize:r(899),dot:r(9305),cross:r(903)},h=a(),b=a(),u=[0,0,0,0],o=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];v.exports=function(E,T,s,L,M,z){if(T||(T=[0,0,0]),s||(s=[0,0,0]),L||(L=[0,0,0]),M||(M=[0,0,0,1]),z||(z=[0,0,0,1]),!t(h,E)||(n(b,h),b[3]=0,b[7]=0,b[11]=0,b[15]=1,Math.abs(f(b)<1e-8)))return!1;var D=h[3],N=h[7],I=h[11],k=h[12],B=h[13],O=h[14],H=h[15];if(D!==0||N!==0||I!==0){u[0]=D,u[1]=N,u[2]=I,u[3]=H;var Y=c(b,b);if(!Y)return!1;l(b,b),w(M,u,b)}else M[0]=M[1]=M[2]=0,M[3]=1;if(T[0]=k,T[1]=B,T[2]=O,A(o,h),s[0]=m.length(o[0]),m.normalize(o[0],o[0]),L[0]=m.dot(o[0],o[1]),_(o[1],o[1],o[0],1,-L[0]),s[1]=m.length(o[1]),m.normalize(o[1],o[1]),L[0]/=s[1],L[1]=m.dot(o[0],o[2]),_(o[2],o[2],o[0],1,-L[1]),L[2]=m.dot(o[1],o[2]),_(o[2],o[2],o[1],1,-L[2]),s[2]=m.length(o[2]),m.normalize(o[2],o[2]),L[1]/=s[2],L[2]/=s[2],m.cross(d,o[1],o[2]),m.dot(o[0],d)<0)for(var j=0;j<3;j++)s[j]*=-1,o[j][0]*=-1,o[j][1]*=-1,o[j][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+o[0][0]-o[1][1]-o[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-o[0][0]+o[1][1]-o[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-o[0][0]-o[1][1]+o[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+o[0][0]+o[1][1]+o[2][2],0)),o[2][1]>o[1][2]&&(z[0]=-z[0]),o[0][2]>o[2][0]&&(z[1]=-z[1]),o[1][0]>o[0][1]&&(z[2]=-z[2]),!0};function w(y,E,T){var s=E[0],L=E[1],M=E[2],z=E[3];return y[0]=T[0]*s+T[4]*L+T[8]*M+T[12]*z,y[1]=T[1]*s+T[5]*L+T[9]*M+T[13]*z,y[2]=T[2]*s+T[6]*L+T[10]*M+T[14]*z,y[3]=T[3]*s+T[7]*L+T[11]*M+T[15]*z,y}function A(y,E){y[0][0]=E[0],y[0][1]=E[1],y[0][2]=E[2],y[1][0]=E[4],y[1][1]=E[5],y[1][2]=E[6],y[2][0]=E[8],y[2][1]=E[9],y[2][2]=E[10]}function _(y,E,T,s,L){y[0]=E[0]*s+T[0]*L,y[1]=E[1]*s+T[1]*L,y[2]=E[2]*s+T[2]*L}},4690:function(v){v.exports=function(r,t){var a=t[15];if(a===0)return!1;for(var n=1/a,f=0;f<16;f++)r[f]=t[f]*n;return!0}},7649:function(v,p,r){var t=r(1868),a=r(1102),n=r(7191),f=r(7787),c=r(1116),l=u(),m=u(),h=u();v.exports=b;function b(w,A,_,y){if(f(A)===0||f(_)===0)return!1;var E=n(A,l.translate,l.scale,l.skew,l.perspective,l.quaternion),T=n(_,m.translate,m.scale,m.skew,m.perspective,m.quaternion);return!E||!T?!1:(t(h.translate,l.translate,m.translate,y),t(h.skew,l.skew,m.skew,y),t(h.scale,l.scale,m.scale,y),t(h.perspective,l.perspective,m.perspective,y),c(h.quaternion,l.quaternion,m.quaternion,y),a(w,h.translate,h.scale,h.skew,h.perspective,h.quaternion),!0)}function u(){return{translate:o(),scale:o(1),skew:o(),perspective:d(),quaternion:d()}}function o(w){return[w||0,w||0,w||0]}function d(){return[0,0,0,1]}},1102:function(v,p,r){var t={identity:r(9947),translate:r(998),multiply:r(104),create:r(9823),scale:r(3668),fromRotationTranslation:r(7280)};t.create();var a=t.create();v.exports=function(f,c,l,m,h,b){return t.identity(f),t.fromRotationTranslation(f,b,c),f[3]=h[0],f[7]=h[1],f[11]=h[2],f[15]=h[3],t.identity(a),m[2]!==0&&(a[9]=m[2],t.multiply(f,f,a)),m[1]!==0&&(a[9]=0,a[8]=m[1],t.multiply(f,f,a)),m[0]!==0&&(a[8]=0,a[4]=m[0],t.multiply(f,f,a)),t.scale(f,f,l),f}},9298:function(v,p,r){var t=r(5070),a=r(7649),n=r(7437),f=r(6109),c=r(7115),l=r(5240),m=r(3012),h=r(998);r(3668);var b=r(899),u=[0,0,0];v.exports=A;function o(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var d=o.prototype;d.recalcMatrix=function(_){var y=this._time,E=t.le(y,_),T=this.computedMatrix;if(!(E<0)){var s=this._components;if(E===y.length-1)for(var L=16*E,M=0;M<16;++M)T[M]=s[L++];else{for(var z=y[E+1]-y[E],L=16*E,D=this.prevMatrix,N=!0,M=0;M<16;++M)D[M]=s[L++];for(var I=this.nextMatrix,M=0;M<16;++M)I[M]=s[L++],N=N&&D[M]===I[M];if(z<1e-6||N)for(var M=0;M<16;++M)T[M]=D[M];else a(T,D,I,(_-y[E])/z)}var k=this.computedUp;k[0]=T[1],k[1]=T[5],k[2]=T[9],b(k,k);var B=this.computedInverse;n(B,T);var O=this.computedEye,H=B[15];O[0]=B[12]/H,O[1]=B[13]/H,O[2]=B[14]/H;for(var Y=this.computedCenter,j=Math.exp(this.computedRadius[0]),M=0;M<3;++M)Y[M]=O[M]-T[2+4*M]*j}},d.idle=function(_){if(!(_1&&t(n[m[o-2]],n[m[o-1]],u)<=0;)o-=1,m.pop();for(m.push(b),o=h.length;o>1&&t(n[h[o-2]],n[h[o-1]],u)>=0;)o-=1,h.pop();h.push(b)}for(var d=new Array(h.length+m.length-2),w=0,c=0,A=m.length;c0;--_)d[w++]=h[_];return d}},6145:function(v,p,r){v.exports=a;var t=r(4110);function a(n,f){f||(f=n,n=window);var c=0,l=0,m=0,h={shift:!1,alt:!1,control:!1,meta:!1},b=!1;function u(M){var z=!1;return"altKey"in M&&(z=z||M.altKey!==h.alt,h.alt=!!M.altKey),"shiftKey"in M&&(z=z||M.shiftKey!==h.shift,h.shift=!!M.shiftKey),"ctrlKey"in M&&(z=z||M.ctrlKey!==h.control,h.control=!!M.ctrlKey),"metaKey"in M&&(z=z||M.metaKey!==h.meta,h.meta=!!M.metaKey),z}function o(M,z){var D=t.x(z),N=t.y(z);"buttons"in z&&(M=z.buttons|0),(M!==c||D!==l||N!==m||u(z))&&(c=M|0,l=D||0,m=N||0,f&&f(c,l,m,h))}function d(M){o(0,M)}function w(){(c||l||m||h.shift||h.alt||h.meta||h.control)&&(l=m=0,c=0,h.shift=h.alt=h.control=h.meta=!1,f&&f(0,0,0,h))}function A(M){u(M)&&f&&f(c,l,m,h)}function _(M){t.buttons(M)===0?o(0,M):o(c,M)}function y(M){o(c|t.buttons(M),M)}function E(M){o(c&~t.buttons(M),M)}function T(){b||(b=!0,n.addEventListener("mousemove",_),n.addEventListener("mousedown",y),n.addEventListener("mouseup",E),n.addEventListener("mouseleave",d),n.addEventListener("mouseenter",d),n.addEventListener("mouseout",d),n.addEventListener("mouseover",d),n.addEventListener("blur",w),n.addEventListener("keyup",A),n.addEventListener("keydown",A),n.addEventListener("keypress",A),n!==window&&(window.addEventListener("blur",w),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function s(){b&&(b=!1,n.removeEventListener("mousemove",_),n.removeEventListener("mousedown",y),n.removeEventListener("mouseup",E),n.removeEventListener("mouseleave",d),n.removeEventListener("mouseenter",d),n.removeEventListener("mouseout",d),n.removeEventListener("mouseover",d),n.removeEventListener("blur",w),n.removeEventListener("keyup",A),n.removeEventListener("keydown",A),n.removeEventListener("keypress",A),n!==window&&(window.removeEventListener("blur",w),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}T();var L={element:n};return Object.defineProperties(L,{enabled:{get:function(){return b},set:function(M){M?T():s()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return l},enumerable:!0},y:{get:function(){return m},enumerable:!0},mods:{get:function(){return h},enumerable:!0}}),L}},2565:function(v){var p={left:0,top:0};v.exports=r;function r(a,n,f){n=n||a.currentTarget||a.srcElement,Array.isArray(f)||(f=[0,0]);var c=a.clientX||0,l=a.clientY||0,m=t(n);return f[0]=c-m.left,f[1]=l-m.top,f}function t(a){return a===window||a===document||a===document.body?p:a.getBoundingClientRect()}},4110:function(v,p){function r(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<=0)return 1<0){if(ie=1,X[V++]=h(T[z],w,A,_),z+=Y,y>0)for(te=1,D=T[z],Q=X[V]=h(D,w,A,_),Z=X[V+oe],ce=X[V+se],we=X[V+ge],(Q!==Z||Q!==ce||Q!==we)&&(I=T[z+N],B=T[z+k],H=T[z+O],l(te,ie,D,I,B,H,Q,Z,ce,we,w,A,_),Re=ee[V]=ue++),V+=1,z+=Y,te=2;te0)for(te=1,D=T[z],Q=X[V]=h(D,w,A,_),Z=X[V+oe],ce=X[V+se],we=X[V+ge],(Q!==Z||Q!==ce||Q!==we)&&(I=T[z+N],B=T[z+k],H=T[z+O],l(te,ie,D,I,B,H,Q,Z,ce,we,w,A,_),Re=ee[V]=ue++,we!==ce&&m(ee[V+se],Re,B,H,ce,we,w,A,_)),V+=1,z+=Y,te=2;te0){if(te=1,X[V++]=h(T[z],w,A,_),z+=Y,E>0)for(ie=1,D=T[z],Q=X[V]=h(D,w,A,_),ce=X[V+se],Z=X[V+oe],we=X[V+ge],(Q!==ce||Q!==Z||Q!==we)&&(I=T[z+N],B=T[z+k],H=T[z+O],l(te,ie,D,I,B,H,Q,ce,Z,we,w,A,_),Re=ee[V]=ue++),V+=1,z+=Y,ie=2;ie0)for(ie=1,D=T[z],Q=X[V]=h(D,w,A,_),ce=X[V+se],Z=X[V+oe],we=X[V+ge],(Q!==ce||Q!==Z||Q!==we)&&(I=T[z+N],B=T[z+k],H=T[z+O],l(te,ie,D,I,B,H,Q,ce,Z,we,w,A,_),Re=ee[V]=ue++,we!==ce&&m(ee[V+se],Re,H,I,we,ce,w,A,_)),V+=1,z+=Y,ie=2;ie 0"),typeof c.vertex!="function"&&l("Must specify vertex creation function"),typeof c.cell!="function"&&l("Must specify cell creation function"),typeof c.phase!="function"&&l("Must specify phase function");for(var u=c.getters||[],o=new Array(h),d=0;d=0?o[d]=!0:o[d]=!1;return n(c.vertex,c.cell,c.phase,b,m,o)}},9144:function(v,p,r){var t=r(3094),a={zero:function(A,_,y,E){var T=A[0],s=y[0];E|=0;var L=0,M=s;for(L=0;L2&&L[1]>2&&E(s.pick(-1,-1).lo(1,1).hi(L[0]-2,L[1]-2),T.pick(-1,-1,0).lo(1,1).hi(L[0]-2,L[1]-2),T.pick(-1,-1,1).lo(1,1).hi(L[0]-2,L[1]-2)),L[1]>2&&(y(s.pick(0,-1).lo(1).hi(L[1]-2),T.pick(0,-1,1).lo(1).hi(L[1]-2)),_(T.pick(0,-1,0).lo(1).hi(L[1]-2))),L[1]>2&&(y(s.pick(L[0]-1,-1).lo(1).hi(L[1]-2),T.pick(L[0]-1,-1,1).lo(1).hi(L[1]-2)),_(T.pick(L[0]-1,-1,0).lo(1).hi(L[1]-2))),L[0]>2&&(y(s.pick(-1,0).lo(1).hi(L[0]-2),T.pick(-1,0,0).lo(1).hi(L[0]-2)),_(T.pick(-1,0,1).lo(1).hi(L[0]-2))),L[0]>2&&(y(s.pick(-1,L[1]-1).lo(1).hi(L[0]-2),T.pick(-1,L[1]-1,0).lo(1).hi(L[0]-2)),_(T.pick(-1,L[1]-1,1).lo(1).hi(L[0]-2))),T.set(0,0,0,0),T.set(0,0,1,0),T.set(L[0]-1,0,0,0),T.set(L[0]-1,0,1,0),T.set(0,L[1]-1,0,0),T.set(0,L[1]-1,1,0),T.set(L[0]-1,L[1]-1,0,0),T.set(L[0]-1,L[1]-1,1,0),T}}function w(A){var _=A.join(),L=h[_];if(L)return L;for(var y=A.length,E=[b,u],T=1;T<=y;++T)E.push(o(T));var s=d,L=s.apply(void 0,E);return h[_]=L,L}v.exports=function(_,y,E){if(Array.isArray(E)||(typeof E=="string"?E=t(y.dimension,E):E=t(y.dimension,"clamp")),y.size===0)return _;if(y.dimension===0)return _.set(0),_;var T=w(E);return T(_,y)}},3581:function(v){function p(f,c){var l=Math.floor(c),m=c-l,h=0<=l&&l0;){B<64?(y=B,B=0):(y=64,B-=64);for(var O=h[1]|0;O>0;){O<64?(E=O,O=0):(E=64,O-=64),o=I+B*s+O*L,A=k+B*z+O*D;var H=0,Y=0,j=0,te=M,ie=s-T*M,ue=L-y*s,J=N,X=z-T*N,ee=D-y*z;for(j=0;j0;){D<64?(y=D,D=0):(y=64,D-=64);for(var N=h[0]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),o=M+D*T+N*E,A=z+D*L+N*s;var I=0,k=0,B=T,O=E-y*T,H=L,Y=s-y*L;for(k=0;k<_;++k){for(I=0;I0;){k<64?(E=k,k=0):(E=64,k-=64);for(var B=h[0]|0;B>0;){B<64?(_=B,B=0):(_=64,B-=64);for(var O=h[1]|0;O>0;){O<64?(y=O,O=0):(y=64,O-=64),o=N+k*L+B*T+O*s,A=I+k*D+B*M+O*z;var H=0,Y=0,j=0,te=L,ie=T-E*L,ue=s-_*T,J=D,X=M-E*D,ee=z-_*M;for(j=0;jd;){H=0,Y=I-y;t:for(B=0;Bte)break t;Y+=M,H+=z}for(H=I,Y=I-y,B=0;B>1,O=B-N,H=B+N,Y=I,j=O,te=B,ie=H,ue=k,J=w+1,X=A-1,ee=!0,V,Q,oe,$,Z,se,ne,ce,ge,Te=0,we=0,Re=0,be,Ae,me,Le,He,Ue,ke,Ve,Ie,rt,Ke,$e,lt,ht,dt,xt,St=L,nt=u(St),ze=u(St);Ae=E*Y,me=E*j,xt=y;e:for(be=0;be0){Q=Y,Y=j,j=Q;break e}if(Re<0)break e;xt+=z}Ae=E*ie,me=E*ue,xt=y;e:for(be=0;be0){Q=ie,ie=ue,ue=Q;break e}if(Re<0)break e;xt+=z}Ae=E*Y,me=E*te,xt=y;e:for(be=0;be0){Q=Y,Y=te,te=Q;break e}if(Re<0)break e;xt+=z}Ae=E*j,me=E*te,xt=y;e:for(be=0;be0){Q=j,j=te,te=Q;break e}if(Re<0)break e;xt+=z}Ae=E*Y,me=E*ie,xt=y;e:for(be=0;be0){Q=Y,Y=ie,ie=Q;break e}if(Re<0)break e;xt+=z}Ae=E*te,me=E*ie,xt=y;e:for(be=0;be0){Q=te,te=ie,ie=Q;break e}if(Re<0)break e;xt+=z}Ae=E*j,me=E*ue,xt=y;e:for(be=0;be0){Q=j,j=ue,ue=Q;break e}if(Re<0)break e;xt+=z}Ae=E*j,me=E*te,xt=y;e:for(be=0;be0){Q=j,j=te,te=Q;break e}if(Re<0)break e;xt+=z}Ae=E*ie,me=E*ue,xt=y;e:for(be=0;be0){Q=ie,ie=ue,ue=Q;break e}if(Re<0)break e;xt+=z}for(Ae=E*Y,me=E*j,Le=E*te,He=E*ie,Ue=E*ue,ke=E*I,Ve=E*B,Ie=E*k,dt=0,xt=y,be=0;be0)X--;else if(Re<0){for(Ae=E*se,me=E*J,Le=E*X,xt=y,be=0;be0)for(;;){ne=y+X*E,dt=0;e:for(be=0;be0){if(--Xk){e:for(;;){for(ne=y+J*E,dt=0,xt=y,be=0;be1&&d?A(o,d[0],d[1]):A(o)}var m={"uint32,1,0":function(b,u){return function(o){var d=o.data,w=o.offset|0,A=o.shape,_=o.stride,y=_[0]|0,E=A[0]|0,T=_[1]|0,s=A[1]|0,L=T,M=T,z=1;E<=32?b(0,E-1,d,w,y,T,E,s,L,M,z):u(0,E-1,d,w,y,T,E,s,L,M,z)}}};function h(b,u){var o=[u,b].join(","),d=m[o],w=f(b,u),A=l(b,u,w);return d(w,A)}v.exports=h},8729:function(v,p,r){var t=r(8139),a={};function n(f){var c=f.order,l=f.dtype,m=[c,l],h=m.join(":"),b=a[h];return b||(a[h]=b=t(c,l)),b(f),f}v.exports=n},5050:function(v,p,r){var t=r(4780),a=typeof Float64Array<"u";function n(u,o){return u[0]-o[0]}function f(){var u=this.stride,o=new Array(u.length),d;for(d=0;d=0&&(T=y|0,E+=L*T,s-=T),new w(this.data,s,L,E)},A.step=function(y){var E=this.shape[0],T=this.stride[0],s=this.offset,L=0,M=Math.ceil;return typeof y=="number"&&(L=y|0,L<0?(s+=T*(E-1),E=M(-E/L)):E=M(E/L),T*=L),new w(this.data,E,T,s)},A.transpose=function(y){y=y===void 0?0:y|0;var E=this.shape,T=this.stride;return new w(this.data,E[y],T[y],this.offset)},A.pick=function(y){var E=[],T=[],s=this.offset;typeof y=="number"&&y>=0?s=s+this.stride[0]*y|0:(E.push(this.shape[0]),T.push(this.stride[0]));var L=o[E.length+1];return L(this.data,E,T,s)},function(y,E,T,s){return new w(y,E[0],T[0],s)}},2:function(u,o,d){function w(_,y,E,T,s,L){this.data=_,this.shape=[y,E],this.stride=[T,s],this.offset=L|0}var A=w.prototype;return A.dtype=u,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(y,E,T){return u==="generic"?this.data.set(this.offset+this.stride[0]*y+this.stride[1]*E,T):this.data[this.offset+this.stride[0]*y+this.stride[1]*E]=T},A.get=function(y,E){return u==="generic"?this.data.get(this.offset+this.stride[0]*y+this.stride[1]*E):this.data[this.offset+this.stride[0]*y+this.stride[1]*E]},A.index=function(y,E){return this.offset+this.stride[0]*y+this.stride[1]*E},A.hi=function(y,E){return new w(this.data,typeof y!="number"||y<0?this.shape[0]:y|0,typeof E!="number"||E<0?this.shape[1]:E|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(y,E){var T=this.offset,s=0,L=this.shape[0],M=this.shape[1],z=this.stride[0],D=this.stride[1];return typeof y=="number"&&y>=0&&(s=y|0,T+=z*s,L-=s),typeof E=="number"&&E>=0&&(s=E|0,T+=D*s,M-=s),new w(this.data,L,M,z,D,T)},A.step=function(y,E){var T=this.shape[0],s=this.shape[1],L=this.stride[0],M=this.stride[1],z=this.offset,D=0,N=Math.ceil;return typeof y=="number"&&(D=y|0,D<0?(z+=L*(T-1),T=N(-T/D)):T=N(T/D),L*=D),typeof E=="number"&&(D=E|0,D<0?(z+=M*(s-1),s=N(-s/D)):s=N(s/D),M*=D),new w(this.data,T,s,L,M,z)},A.transpose=function(y,E){y=y===void 0?0:y|0,E=E===void 0?1:E|0;var T=this.shape,s=this.stride;return new w(this.data,T[y],T[E],s[y],s[E],this.offset)},A.pick=function(y,E){var T=[],s=[],L=this.offset;typeof y=="number"&&y>=0?L=L+this.stride[0]*y|0:(T.push(this.shape[0]),s.push(this.stride[0])),typeof E=="number"&&E>=0?L=L+this.stride[1]*E|0:(T.push(this.shape[1]),s.push(this.stride[1]));var M=o[T.length+1];return M(this.data,T,s,L)},function(y,E,T,s){return new w(y,E[0],E[1],T[0],T[1],s)}},3:function(u,o,d){function w(_,y,E,T,s,L,M,z){this.data=_,this.shape=[y,E,T],this.stride=[s,L,M],this.offset=z|0}var A=w.prototype;return A.dtype=u,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var y=Math.abs(this.stride[0]),E=Math.abs(this.stride[1]),T=Math.abs(this.stride[2]);return y>E?E>T?[2,1,0]:y>T?[1,2,0]:[1,0,2]:y>T?[2,0,1]:T>E?[0,1,2]:[0,2,1]}}),A.set=function(y,E,T,s){return u==="generic"?this.data.set(this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T,s):this.data[this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T]=s},A.get=function(y,E,T){return u==="generic"?this.data.get(this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T):this.data[this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T]},A.index=function(y,E,T){return this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T},A.hi=function(y,E,T){return new w(this.data,typeof y!="number"||y<0?this.shape[0]:y|0,typeof E!="number"||E<0?this.shape[1]:E|0,typeof T!="number"||T<0?this.shape[2]:T|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(y,E,T){var s=this.offset,L=0,M=this.shape[0],z=this.shape[1],D=this.shape[2],N=this.stride[0],I=this.stride[1],k=this.stride[2];return typeof y=="number"&&y>=0&&(L=y|0,s+=N*L,M-=L),typeof E=="number"&&E>=0&&(L=E|0,s+=I*L,z-=L),typeof T=="number"&&T>=0&&(L=T|0,s+=k*L,D-=L),new w(this.data,M,z,D,N,I,k,s)},A.step=function(y,E,T){var s=this.shape[0],L=this.shape[1],M=this.shape[2],z=this.stride[0],D=this.stride[1],N=this.stride[2],I=this.offset,k=0,B=Math.ceil;return typeof y=="number"&&(k=y|0,k<0?(I+=z*(s-1),s=B(-s/k)):s=B(s/k),z*=k),typeof E=="number"&&(k=E|0,k<0?(I+=D*(L-1),L=B(-L/k)):L=B(L/k),D*=k),typeof T=="number"&&(k=T|0,k<0?(I+=N*(M-1),M=B(-M/k)):M=B(M/k),N*=k),new w(this.data,s,L,M,z,D,N,I)},A.transpose=function(y,E,T){y=y===void 0?0:y|0,E=E===void 0?1:E|0,T=T===void 0?2:T|0;var s=this.shape,L=this.stride;return new w(this.data,s[y],s[E],s[T],L[y],L[E],L[T],this.offset)},A.pick=function(y,E,T){var s=[],L=[],M=this.offset;typeof y=="number"&&y>=0?M=M+this.stride[0]*y|0:(s.push(this.shape[0]),L.push(this.stride[0])),typeof E=="number"&&E>=0?M=M+this.stride[1]*E|0:(s.push(this.shape[1]),L.push(this.stride[1])),typeof T=="number"&&T>=0?M=M+this.stride[2]*T|0:(s.push(this.shape[2]),L.push(this.stride[2]));var z=o[s.length+1];return z(this.data,s,L,M)},function(y,E,T,s){return new w(y,E[0],E[1],E[2],T[0],T[1],T[2],s)}},4:function(u,o,d){function w(_,y,E,T,s,L,M,z,D,N){this.data=_,this.shape=[y,E,T,s],this.stride=[L,M,z,D],this.offset=N|0}var A=w.prototype;return A.dtype=u,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:d}),A.set=function(y,E,T,s,L){return u==="generic"?this.data.set(this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T+this.stride[3]*s,L):this.data[this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T+this.stride[3]*s]=L},A.get=function(y,E,T,s){return u==="generic"?this.data.get(this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T+this.stride[3]*s):this.data[this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T+this.stride[3]*s]},A.index=function(y,E,T,s){return this.offset+this.stride[0]*y+this.stride[1]*E+this.stride[2]*T+this.stride[3]*s},A.hi=function(y,E,T,s){return new w(this.data,typeof y!="number"||y<0?this.shape[0]:y|0,typeof E!="number"||E<0?this.shape[1]:E|0,typeof T!="number"||T<0?this.shape[2]:T|0,typeof s!="number"||s<0?this.shape[3]:s|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(y,E,T,s){var L=this.offset,M=0,z=this.shape[0],D=this.shape[1],N=this.shape[2],I=this.shape[3],k=this.stride[0],B=this.stride[1],O=this.stride[2],H=this.stride[3];return typeof y=="number"&&y>=0&&(M=y|0,L+=k*M,z-=M),typeof E=="number"&&E>=0&&(M=E|0,L+=B*M,D-=M),typeof T=="number"&&T>=0&&(M=T|0,L+=O*M,N-=M),typeof s=="number"&&s>=0&&(M=s|0,L+=H*M,I-=M),new w(this.data,z,D,N,I,k,B,O,H,L)},A.step=function(y,E,T,s){var L=this.shape[0],M=this.shape[1],z=this.shape[2],D=this.shape[3],N=this.stride[0],I=this.stride[1],k=this.stride[2],B=this.stride[3],O=this.offset,H=0,Y=Math.ceil;return typeof y=="number"&&(H=y|0,H<0?(O+=N*(L-1),L=Y(-L/H)):L=Y(L/H),N*=H),typeof E=="number"&&(H=E|0,H<0?(O+=I*(M-1),M=Y(-M/H)):M=Y(M/H),I*=H),typeof T=="number"&&(H=T|0,H<0?(O+=k*(z-1),z=Y(-z/H)):z=Y(z/H),k*=H),typeof s=="number"&&(H=s|0,H<0?(O+=B*(D-1),D=Y(-D/H)):D=Y(D/H),B*=H),new w(this.data,L,M,z,D,N,I,k,B,O)},A.transpose=function(y,E,T,s){y=y===void 0?0:y|0,E=E===void 0?1:E|0,T=T===void 0?2:T|0,s=s===void 0?3:s|0;var L=this.shape,M=this.stride;return new w(this.data,L[y],L[E],L[T],L[s],M[y],M[E],M[T],M[s],this.offset)},A.pick=function(y,E,T,s){var L=[],M=[],z=this.offset;typeof y=="number"&&y>=0?z=z+this.stride[0]*y|0:(L.push(this.shape[0]),M.push(this.stride[0])),typeof E=="number"&&E>=0?z=z+this.stride[1]*E|0:(L.push(this.shape[1]),M.push(this.stride[1])),typeof T=="number"&&T>=0?z=z+this.stride[2]*T|0:(L.push(this.shape[2]),M.push(this.stride[2])),typeof s=="number"&&s>=0?z=z+this.stride[3]*s|0:(L.push(this.shape[3]),M.push(this.stride[3]));var D=o[L.length+1];return D(this.data,L,M,z)},function(y,E,T,s){return new w(y,E[0],E[1],E[2],E[3],T[0],T[1],T[2],T[3],s)}},5:function(o,d,w){function A(y,E,T,s,L,M,z,D,N,I,k,B){this.data=y,this.shape=[E,T,s,L,M],this.stride=[z,D,N,I,k],this.offset=B|0}var _=A.prototype;return _.dtype=o,_.dimension=5,Object.defineProperty(_,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(_,"order",{get:w}),_.set=function(E,T,s,L,M,z){return o==="generic"?this.data.set(this.offset+this.stride[0]*E+this.stride[1]*T+this.stride[2]*s+this.stride[3]*L+this.stride[4]*M,z):this.data[this.offset+this.stride[0]*E+this.stride[1]*T+this.stride[2]*s+this.stride[3]*L+this.stride[4]*M]=z},_.get=function(E,T,s,L,M){return o==="generic"?this.data.get(this.offset+this.stride[0]*E+this.stride[1]*T+this.stride[2]*s+this.stride[3]*L+this.stride[4]*M):this.data[this.offset+this.stride[0]*E+this.stride[1]*T+this.stride[2]*s+this.stride[3]*L+this.stride[4]*M]},_.index=function(E,T,s,L,M){return this.offset+this.stride[0]*E+this.stride[1]*T+this.stride[2]*s+this.stride[3]*L+this.stride[4]*M},_.hi=function(E,T,s,L,M){return new A(this.data,typeof E!="number"||E<0?this.shape[0]:E|0,typeof T!="number"||T<0?this.shape[1]:T|0,typeof s!="number"||s<0?this.shape[2]:s|0,typeof L!="number"||L<0?this.shape[3]:L|0,typeof M!="number"||M<0?this.shape[4]:M|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},_.lo=function(E,T,s,L,M){var z=this.offset,D=0,N=this.shape[0],I=this.shape[1],k=this.shape[2],B=this.shape[3],O=this.shape[4],H=this.stride[0],Y=this.stride[1],j=this.stride[2],te=this.stride[3],ie=this.stride[4];return typeof E=="number"&&E>=0&&(D=E|0,z+=H*D,N-=D),typeof T=="number"&&T>=0&&(D=T|0,z+=Y*D,I-=D),typeof s=="number"&&s>=0&&(D=s|0,z+=j*D,k-=D),typeof L=="number"&&L>=0&&(D=L|0,z+=te*D,B-=D),typeof M=="number"&&M>=0&&(D=M|0,z+=ie*D,O-=D),new A(this.data,N,I,k,B,O,H,Y,j,te,ie,z)},_.step=function(E,T,s,L,M){var z=this.shape[0],D=this.shape[1],N=this.shape[2],I=this.shape[3],k=this.shape[4],B=this.stride[0],O=this.stride[1],H=this.stride[2],Y=this.stride[3],j=this.stride[4],te=this.offset,ie=0,ue=Math.ceil;return typeof E=="number"&&(ie=E|0,ie<0?(te+=B*(z-1),z=ue(-z/ie)):z=ue(z/ie),B*=ie),typeof T=="number"&&(ie=T|0,ie<0?(te+=O*(D-1),D=ue(-D/ie)):D=ue(D/ie),O*=ie),typeof s=="number"&&(ie=s|0,ie<0?(te+=H*(N-1),N=ue(-N/ie)):N=ue(N/ie),H*=ie),typeof L=="number"&&(ie=L|0,ie<0?(te+=Y*(I-1),I=ue(-I/ie)):I=ue(I/ie),Y*=ie),typeof M=="number"&&(ie=M|0,ie<0?(te+=j*(k-1),k=ue(-k/ie)):k=ue(k/ie),j*=ie),new A(this.data,z,D,N,I,k,B,O,H,Y,j,te)},_.transpose=function(E,T,s,L,M){E=E===void 0?0:E|0,T=T===void 0?1:T|0,s=s===void 0?2:s|0,L=L===void 0?3:L|0,M=M===void 0?4:M|0;var z=this.shape,D=this.stride;return new A(this.data,z[E],z[T],z[s],z[L],z[M],D[E],D[T],D[s],D[L],D[M],this.offset)},_.pick=function(E,T,s,L,M){var z=[],D=[],N=this.offset;typeof E=="number"&&E>=0?N=N+this.stride[0]*E|0:(z.push(this.shape[0]),D.push(this.stride[0])),typeof T=="number"&&T>=0?N=N+this.stride[1]*T|0:(z.push(this.shape[1]),D.push(this.stride[1])),typeof s=="number"&&s>=0?N=N+this.stride[2]*s|0:(z.push(this.shape[2]),D.push(this.stride[2])),typeof L=="number"&&L>=0?N=N+this.stride[3]*L|0:(z.push(this.shape[3]),D.push(this.stride[3])),typeof M=="number"&&M>=0?N=N+this.stride[4]*M|0:(z.push(this.shape[4]),D.push(this.stride[4]));var I=d[z.length+1];return I(this.data,z,D,N)},function(E,T,s,L){return new A(E,T[0],T[1],T[2],T[3],T[4],s[0],s[1],s[2],s[3],s[4],L)}}};function l(u,o){var d=o===-1?"T":String(o),w=c[d];return o===-1?w(u):o===0?w(u,h[u][0]):w(u,h[u],f)}function m(u){if(t(u))return"buffer";if(a)switch(Object.prototype.toString.call(u)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(u)?"array":"generic"}var h={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function b(u,o,d,w){if(u===void 0){var s=h.array[0];return s([])}else typeof u=="number"&&(u=[u]);o===void 0&&(o=[u.length]);var A=o.length;if(d===void 0){d=new Array(A);for(var _=A-1,y=1;_>=0;--_)d[_]=y,y*=o[_]}if(w===void 0){w=0;for(var _=0;_>>0;v.exports=f;function f(c,l){if(isNaN(c)||isNaN(l))return NaN;if(c===l)return c;if(c===0)return l<0?-a:a;var m=t.hi(c),h=t.lo(c);return l>c==c>0?h===n?(m+=1,h=0):h+=1:h===0?(h=n,m-=1):h-=1,t.pack(h,m)}},115:function(v,p){var r=1e-6,t=1e-6;p.vertexNormals=function(a,n,f){for(var c=n.length,l=new Array(c),m=f===void 0?r:f,h=0;hm)for(var z=l[o],D=1/Math.sqrt(T*L),M=0;M<3;++M){var N=(M+1)%3,I=(M+2)%3;z[M]+=D*(s[N]*E[I]-s[I]*E[N])}}for(var h=0;hm)for(var D=1/Math.sqrt(k),M=0;M<3;++M)z[M]*=D;else for(var M=0;M<3;++M)z[M]=0}return l},p.faceNormals=function(a,n,f){for(var c=a.length,l=new Array(c),m=f===void 0?t:f,h=0;hm?_=1/Math.sqrt(_):_=0;for(var o=0;o<3;++o)A[o]*=_;l[h]=A}return l}},567:function(v){v.exports=p;function p(r,t,a,n,f,c,l,m,h,b){var u=t+c+b;if(o>0){var o=Math.sqrt(u+1);r[0]=.5*(l-h)/o,r[1]=.5*(m-n)/o,r[2]=.5*(a-c)/o,r[3]=.5*o}else{var d=Math.max(t,c,b),o=Math.sqrt(2*d-u+1);t>=d?(r[0]=.5*o,r[1]=.5*(f+a)/o,r[2]=.5*(m+n)/o,r[3]=.5*(l-h)/o):c>=d?(r[0]=.5*(a+f)/o,r[1]=.5*o,r[2]=.5*(h+l)/o,r[3]=.5*(m-n)/o):(r[0]=.5*(n+m)/o,r[1]=.5*(l+h)/o,r[2]=.5*o,r[3]=.5*(a-f)/o)}return r}},7774:function(v,p,r){v.exports=o;var t=r(8444),a=r(3012),n=r(5950),f=r(7437),c=r(567);function l(d,w,A){return Math.sqrt(Math.pow(d,2)+Math.pow(w,2)+Math.pow(A,2))}function m(d,w,A,_){return Math.sqrt(Math.pow(d,2)+Math.pow(w,2)+Math.pow(A,2)+Math.pow(_,2))}function h(d,w){var A=w[0],_=w[1],y=w[2],E=w[3],T=m(A,_,y,E);T>1e-6?(d[0]=A/T,d[1]=_/T,d[2]=y/T,d[3]=E/T):(d[0]=d[1]=d[2]=0,d[3]=1)}function b(d,w,A){this.radius=t([A]),this.center=t(w),this.rotation=t(d),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var u=b.prototype;u.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},u.recalcMatrix=function(d){this.radius.curve(d),this.center.curve(d),this.rotation.curve(d);var w=this.computedRotation;h(w,w);var A=this.computedMatrix;n(A,w);var _=this.computedCenter,y=this.computedEye,E=this.computedUp,T=Math.exp(this.computedRadius[0]);y[0]=_[0]+T*A[2],y[1]=_[1]+T*A[6],y[2]=_[2]+T*A[10],E[0]=A[1],E[1]=A[5],E[2]=A[9];for(var s=0;s<3;++s){for(var L=0,M=0;M<3;++M)L+=A[s+4*M]*y[M];A[12+s]=-L}},u.getMatrix=function(d,w){this.recalcMatrix(d);var A=this.computedMatrix;if(w){for(var _=0;_<16;++_)w[_]=A[_];return w}return A},u.idle=function(d){this.center.idle(d),this.radius.idle(d),this.rotation.idle(d)},u.flush=function(d){this.center.flush(d),this.radius.flush(d),this.rotation.flush(d)},u.pan=function(d,w,A,_){w=w||0,A=A||0,_=_||0,this.recalcMatrix(d);var y=this.computedMatrix,E=y[1],T=y[5],s=y[9],L=l(E,T,s);E/=L,T/=L,s/=L;var M=y[0],z=y[4],D=y[8],N=M*E+z*T+D*s;M-=E*N,z-=T*N,D-=s*N;var I=l(M,z,D);M/=I,z/=I,D/=I,y[2],y[6],y[10];var k=M*w+E*A,B=z*w+T*A,O=D*w+s*A;this.center.move(d,k,B,O);var H=Math.exp(this.computedRadius[0]);H=Math.max(1e-4,H+_),this.radius.set(d,Math.log(H))},u.rotate=function(d,w,A,_){this.recalcMatrix(d),w=w||0,A=A||0;var y=this.computedMatrix,E=y[0],T=y[4],s=y[8],L=y[1],M=y[5],z=y[9],D=y[2],N=y[6],I=y[10],k=w*E+A*L,B=w*T+A*M,O=w*s+A*z,H=-(N*O-I*B),Y=-(I*k-D*O),j=-(D*B-N*k),te=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(Y,2)-Math.pow(j,2))),ie=m(H,Y,j,te);ie>1e-6?(H/=ie,Y/=ie,j/=ie,te/=ie):(H=Y=j=0,te=1);var ue=this.computedRotation,J=ue[0],X=ue[1],ee=ue[2],V=ue[3],Q=J*te+V*H+X*j-ee*Y,oe=X*te+V*Y+ee*H-J*j,$=ee*te+V*j+J*Y-X*H,Z=V*te-J*H-X*Y-ee*j;if(_){H=D,Y=N,j=I;var se=Math.sin(_)/l(H,Y,j);H*=se,Y*=se,j*=se,te=Math.cos(w),Q=Q*te+Z*H+oe*j-$*Y,oe=oe*te+Z*Y+$*H-Q*j,$=$*te+Z*j+Q*Y-oe*H,Z=Z*te-Q*H-oe*Y-$*j}var ne=m(Q,oe,$,Z);ne>1e-6?(Q/=ne,oe/=ne,$/=ne,Z/=ne):(Q=oe=$=0,Z=1),this.rotation.set(d,Q,oe,$,Z)},u.lookAt=function(d,w,A,_){this.recalcMatrix(d),A=A||this.computedCenter,w=w||this.computedEye,_=_||this.computedUp;var y=this.computedMatrix;a(y,w,A,_);var E=this.computedRotation;c(E,y[0],y[1],y[2],y[4],y[5],y[6],y[8],y[9],y[10]),h(E,E),this.rotation.set(d,E[0],E[1],E[2],E[3]);for(var T=0,s=0;s<3;++s)T+=Math.pow(A[s]-w[s],2);this.radius.set(d,.5*Math.log(Math.max(T,1e-6))),this.center.set(d,A[0],A[1],A[2])},u.translate=function(d,w,A,_){this.center.move(d,w||0,A||0,_||0)},u.setMatrix=function(d,w){var A=this.computedRotation;c(A,w[0],w[1],w[2],w[4],w[5],w[6],w[8],w[9],w[10]),h(A,A),this.rotation.set(d,A[0],A[1],A[2],A[3]);var _=this.computedMatrix;f(_,w);var y=_[15];if(Math.abs(y)>1e-6){var E=_[12]/y,T=_[13]/y,s=_[14]/y;this.recalcMatrix(d);var L=Math.exp(this.computedRadius[0]);this.center.set(d,E-_[2]*L,T-_[6]*L,s-_[10]*L),this.radius.idle(d)}else this.center.idle(d),this.radius.idle(d)},u.setDistance=function(d,w){w>0&&this.radius.set(d,Math.log(w))},u.setDistanceLimits=function(d,w){d>0?d=Math.log(d):d=-1/0,w>0?w=Math.log(w):w=1/0,w=Math.max(w,d),this.radius.bounds[0][0]=d,this.radius.bounds[1][0]=w},u.getDistanceLimits=function(d){var w=this.radius.bounds;return d?(d[0]=Math.exp(w[0][0]),d[1]=Math.exp(w[1][0]),d):[Math.exp(w[0][0]),Math.exp(w[1][0])]},u.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},u.fromJSON=function(d){var w=this.lastT(),A=d.center;A&&this.center.set(w,A[0],A[1],A[2]);var _=d.rotation;_&&this.rotation.set(w,_[0],_[1],_[2],_[3]);var y=d.distance;y&&y>0&&this.radius.set(w,Math.log(y)),this.setDistanceLimits(d.zoomMin,d.zoomMax)};function o(d){d=d||{};var w=d.center||[0,0,0],A=d.rotation||[0,0,0,1],_=d.radius||1;w=[].slice.call(w,0,3),A=[].slice.call(A,0,4),h(A,A);var y=new b(A,w,Math.log(_));return y.setDistanceLimits(d.zoomMin,d.zoomMax),("eye"in d||"up"in d)&&y.lookAt(0,d.eye,d.center,d.up),y}},4930:function(v,p,r){/*! +* pad-left +* +* Copyright (c) 2014-2015, Jon Schlinkert. +* Licensed under the MIT license. +*/var t=r(6184);v.exports=function(n,f,c){return c=typeof c<"u"?c+"":" ",t(c,f)+n}},4405:function(v){v.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}},4166:function(v,p,r){v.exports=a;var t=r(9398);function a(n,f){for(var c=f.length|0,l=n.length,m=[new Array(c),new Array(c)],h=0;h0){M=m[N][s][0],D=N;break}z=M[D^1];for(var I=0;I<2;++I)for(var k=m[I][s],B=0;B0&&(M=O,z=H,D=I)}return L||M&&o(M,D),z}function w(T,s){var L=m[s][T][0],M=[T];o(L,s);for(var z=L[s^1];;){for(;z!==T;)M.push(z),z=d(M[M.length-2],z,!1);if(m[0][T].length+m[1][T].length===0)break;var D=M[M.length-1],N=T,I=M[1],k=d(D,N,!0);if(t(f[D],f[N],f[I],f[k])<0)break;M.push(T),z=d(D,N)}return M}function A(T,s){return s[1]===s[s.length-1]}for(var h=0;h0;){m[0][h].length;var E=w(h,_);A(y,E)?y.push.apply(y,E):(y.length>0&&u.push(y),y=E)}y.length>0&&u.push(y)}return u}},3959:function(v,p,r){v.exports=a;var t=r(8348);function a(n,f){for(var c=t(n,f.length),l=new Array(f.length),m=new Array(f.length),h=[],b=0;b0;){var o=h.pop();l[o]=!1;for(var d=c[o],b=0;b0}y=y.filter(E);for(var T=y.length,s=new Array(T),L=new Array(T),_=0;_0;){var se=oe.pop(),ne=te[se];l(ne,function(Re,be){return Re-be});var ce=ne.length,ge=$[se],Te;if(ge===0){var k=y[se];Te=[k]}for(var _=0;_=0)&&($[we]=ge^1,oe.push(we),ge===0)){var k=y[we];Q(k)||(k.reverse(),Te.push(k))}}ge===0&&Z.push(Te)}return Z}},211:function(v,p,r){v.exports=d;var t=r(417)[3],a=r(4385),n=r(9014),f=r(5070);function c(){return!0}function l(w){return function(A,_){var y=w[A];return y?!!y.queryPoint(_,c):!1}}function m(w){for(var A={},_=0;_0&&A[y]===_[0])E=w[y-1];else return 1;for(var T=1;E;){var s=E.key,L=t(_,s[0],s[1]);if(s[0][0]0)T=-1,E=E.right;else return 0;else if(L>0)E=E.left;else if(L<0)T=1,E=E.right;else return 0}return T}}function b(w){return 1}function u(w){return function(_){return w(_[0],_[1])?0:1}}function o(w,A){return function(y){return w(y[0],y[1])?0:A(y)}}function d(w){for(var A=w.length,_=[],y=[],E=0;E=b?(s=1,M=b+2*d+A):(s=-d/b,M=d*s+A)):(s=0,w>=0?(L=0,M=A):-w>=o?(L=1,M=o+2*w+A):(L=-w/o,M=w*L+A));else if(L<0)L=0,d>=0?(s=0,M=A):-d>=b?(s=1,M=b+2*d+A):(s=-d/b,M=d*s+A);else{var z=1/T;s*=z,L*=z,M=s*(b*s+u*L+2*d)+L*(u*s+o*L+2*w)+A}else{var D,N,I,k;s<0?(D=u+d,N=o+w,N>D?(I=N-D,k=b-2*u+o,I>=k?(s=1,L=0,M=b+2*d+A):(s=I/k,L=1-s,M=s*(b*s+u*L+2*d)+L*(u*s+o*L+2*w)+A)):(s=0,N<=0?(L=1,M=o+2*w+A):w>=0?(L=0,M=A):(L=-w/o,M=w*L+A))):L<0?(D=u+w,N=b+d,N>D?(I=N-D,k=b-2*u+o,I>=k?(L=1,s=0,M=o+2*w+A):(L=I/k,s=1-L,M=s*(b*s+u*L+2*d)+L*(u*s+o*L+2*w)+A)):(L=0,N<=0?(s=1,M=b+2*d+A):d>=0?(s=0,M=A):(s=-d/b,M=d*s+A))):(I=o+w-u-d,I<=0?(s=0,L=1,M=o+2*w+A):(k=b-2*u+o,I>=k?(s=1,L=0,M=b+2*d+A):(s=I/k,L=1-s,M=s*(b*s+u*L+2*d)+L*(u*s+o*L+2*w)+A)))}for(var B=1-s-L,h=0;h0){var o=c[m-1];if(t(b,o)===0&&n(o)!==u){m-=1;continue}}c[m++]=b}}return c.length=m,c}},6184:function(v){/*! +* repeat-string +* +* Copyright (c) 2014-2015, Jon Schlinkert. +* Licensed under the MIT License. +*/var p="",r;v.exports=t;function t(a,n){if(typeof a!="string")throw new TypeError("expected a string");if(n===1)return a;if(n===2)return a+a;var f=a.length*n;if(r!==a||typeof r>"u")r=a,p="";else if(p.length>=f)return p.substr(0,f);for(;f>p.length&&n>1;)n&1&&(p+=a),n>>=1,a+=a;return p+=a,p=p.substr(0,f),p}},8161:function(v,p,r){v.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},402:function(v){v.exports=p;function p(r){for(var t=r.length,a=r[r.length-1],n=t,f=t-2;f>=0;--f){var c=a,l=r[f];a=c+l;var m=a-c,h=l-m;h&&(r[--n]=a,a=h)}for(var b=0,f=n;f0){if(N<=0)return I;k=D+N}else if(D<0){if(N>=0)return I;k=-(D+N)}else return I;var B=m*k;return I>=B||I<=-B?I:w(L,M,z)},function(L,M,z,D){var N=L[0]-D[0],I=M[0]-D[0],k=z[0]-D[0],B=L[1]-D[1],O=M[1]-D[1],H=z[1]-D[1],Y=L[2]-D[2],j=M[2]-D[2],te=z[2]-D[2],ie=I*H,ue=k*O,J=k*B,X=N*H,ee=N*O,V=I*B,Q=Y*(ie-ue)+j*(J-X)+te*(ee-V),oe=(Math.abs(ie)+Math.abs(ue))*Math.abs(Y)+(Math.abs(J)+Math.abs(X))*Math.abs(j)+(Math.abs(ee)+Math.abs(V))*Math.abs(te),$=h*oe;return Q>$||-Q>$?Q:A(L,M,z,D)}];function y(s){var L=_[s.length];return L||(L=_[s.length]=d(s.length)),L.apply(void 0,s)}function E(s,L,M,z,D,N,I){return function(B,O,H,Y,j){switch(arguments.length){case 0:case 1:return 0;case 2:return z(B,O);case 3:return D(B,O,H);case 4:return N(B,O,H,Y);case 5:return I(B,O,H,Y,j)}for(var te=new Array(arguments.length),ie=0;ie0&&b>0||h<0&&b<0)return!1;var u=t(l,f,c),o=t(m,f,c);return u>0&&o>0||u<0&&o<0?!1:h===0&&b===0&&u===0&&o===0?a(f,c,l,m):!0}},4078:function(v){v.exports=r;function p(t,a){var n=t+a,f=n-t,c=n-f,l=a-f,m=t-c,h=m+l;return h?[h,n]:[n]}function r(t,a){var n=t.length|0,f=a.length|0;if(n===1&&f===1)return p(t[0],-a[0]);var c=n+f,l=new Array(c),m=0,h=0,b=0,u=Math.abs,o=t[h],d=u(o),w=-a[b],A=u(w),_,y;d=f?(_=o,h+=1,h=f?(_=o,h+=1,h"u"&&(_=c(d));var y=d.length;if(y===0||_<1)return{cells:[],vertexIds:[],vertexWeights:[]};var E=l(w,+A),T=m(d,_),s=h(T,w,E,+A),L=b(T,w.length|0),M=f(_)(d,T.data,L,E),z=u(T),D=[].slice.call(s.data,0,s.shape[0]);return a.free(E),a.free(T.data),a.free(s.data),a.free(L),{cells:M,vertexIds:z,vertexWeights:D}}},1168:function(v){v.exports=r;var p=[function(){function a(n,f,c,l){for(var m=n.length,h=[],b=0;b>1,w=c[2*d+1];if(w===b)return d;b>1,w=c[2*d+1];if(w===b)return d;b>1,w=c[2*d+1];if(w===b)return d;b0)-(n<0)},p.abs=function(n){var f=n>>r-1;return(n^f)-f},p.min=function(n,f){return f^(n^f)&-(n65535)<<4,n>>>=f,c=(n>255)<<3,n>>>=c,f|=c,c=(n>15)<<2,n>>>=c,f|=c,c=(n>3)<<1,n>>>=c,f|=c,f|n>>1},p.log10=function(n){return n>=1e9?9:n>=1e8?8:n>=1e7?7:n>=1e6?6:n>=1e5?5:n>=1e4?4:n>=1e3?3:n>=100?2:n>=10?1:0},p.popCount=function(n){return n=n-(n>>>1&1431655765),n=(n&858993459)+(n>>>2&858993459),(n+(n>>>4)&252645135)*16843009>>>24};function t(n){var f=32;return n&=-n,n&&f--,n&65535&&(f-=16),n&16711935&&(f-=8),n&252645135&&(f-=4),n&858993459&&(f-=2),n&1431655765&&(f-=1),f}p.countTrailingZeros=t,p.nextPow2=function(n){return n+=n===0,--n,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n+1},p.prevPow2=function(n){return n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n-(n>>>1)},p.parity=function(n){return n^=n>>>16,n^=n>>>8,n^=n>>>4,n&=15,27030>>>n&1};var a=new Array(256);(function(n){for(var f=0;f<256;++f){var c=f,l=f,m=7;for(c>>>=1;c;c>>>=1)l<<=1,l|=c&1,--m;n[f]=l<>>8&255]<<16|a[n>>>16&255]<<8|a[n>>>24&255]},p.interleave2=function(n,f){return n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,n|f<<1},p.deinterleave2=function(n,f){return n=n>>>f&1431655765,n=(n|n>>>1)&858993459,n=(n|n>>>2)&252645135,n=(n|n>>>4)&16711935,n=(n|n>>>16)&65535,n<<16>>16},p.interleave3=function(n,f,c){return n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,n|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,n|c<<2},p.deinterleave3=function(n,f){return n=n>>>f&1227133513,n=(n|n>>>2)&3272356035,n=(n|n>>>4)&251719695,n=(n|n>>>8)&4278190335,n=(n|n>>>16)&1023,n<<22>>22},p.nextCombination=function(n){var f=n|n-1;return f+1|(~f&-~f)-1>>>t(n)+1}},6656:function(v,p,r){"use restrict";var t=r(9392),a=r(9521);function n(s){for(var L=0,M=Math.max,z=0,D=s.length;z>1,I=l(s[N],L);I<=0?(I===0&&(D=N),M=N+1):I>0&&(z=N-1)}return D}p.findCell=u;function o(s,L){for(var M=new Array(s.length),z=0,D=M.length;z=s.length||l(s[te],N)!==0););}return M}p.incidence=o;function d(s,L){if(!L)return o(b(A(s,0)),s);for(var M=new Array(L),z=0;z>>O&1&&B.push(D[O]);L.push(B)}return h(L)}p.explode=w;function A(s,L){if(L<0)return[];for(var M=[],z=(1<>1:(J>>1)-1}function z(J){for(var X=L(J);;){var ee=X,V=2*J+1,Q=2*(J+1),oe=J;if(V0;){var ee=M(J);if(ee>=0){var V=L(ee);if(X0){var J=B[0];return s(0,Y-1),Y-=1,z(0),J}return-1}function I(J,X){var ee=B[J];return d[ee]===X?J:(d[ee]=-1/0,D(J),N(),d[ee]=X,Y+=1,D(Y-1))}function k(J){if(!w[J]){w[J]=!0;var X=u[J],ee=o[J];u[ee]>=0&&(u[ee]=X),o[X]>=0&&(o[X]=ee),O[X]>=0&&I(O[X],T(X)),O[ee]>=0&&I(O[ee],T(ee))}}for(var B=[],O=new Array(h),A=0;A>1;A>=0;--A)z(A);for(;;){var j=N();if(j<0||d[j]>m)break;k(j)}for(var te=[],A=0;A=0&&ee>=0&&X!==ee){var V=O[X],Q=O[ee];V!==Q&&ue.push([V,Q])}}),a.unique(a.normalize(ue)),{positions:te,edges:ue}}},6638:function(v,p,r){v.exports=n;var t=r(417);function a(f,c){var l,m;if(c[0][0]c[1][0])l=c[1],m=c[0];else{var h=Math.min(f[0][1],f[1][1]),b=Math.max(f[0][1],f[1][1]),u=Math.min(c[0][1],c[1][1]),o=Math.max(c[0][1],c[1][1]);return bo?h-o:b-o}var d,w;f[0][1]c[1][0])l=c[1],m=c[0];else return a(c,f);var h,b;if(f[0][0]f[1][0])h=f[1],b=f[0];else return-a(f,c);var u=t(l,m,b),o=t(l,m,h);if(u<0){if(o<=0)return u}else if(u>0){if(o>=0)return u}else if(o)return o;if(u=t(b,h,m),o=t(b,h,l),u<0){if(o<=0)return u}else if(u>0){if(o>=0)return u}else if(o)return o;return m[0]-b[0]}},4385:function(v,p,r){v.exports=o;var t=r(5070),a=r(7080),n=r(417),f=r(6638);function c(d,w,A){this.slabs=d,this.coordinates=w,this.horizontal=A}var l=c.prototype;function m(d,w){return d.y-w}function h(d,w){for(var A=null;d;){var _=d.key,y,E;_[0][0]<_[1][0]?(y=_[0],E=_[1]):(y=_[1],E=_[0]);var T=n(y,E,w);if(T<0)d=d.left;else if(T>0)if(w[0]!==_[1][0])A=d,d=d.right;else{var s=h(d.right,w);if(s)return s;d=d.left}else{if(w[0]!==_[1][0])return d;var s=h(d.right,w);if(s)return s;d=d.left}}return A}l.castUp=function(d){var w=t.le(this.coordinates,d[0]);if(w<0)return-1;this.slabs[w];var A=h(this.slabs[w],d),_=-1;if(A&&(_=A.value),this.coordinates[w]===d[0]){var y=null;if(A&&(y=A.key),w>0){var E=h(this.slabs[w-1],d);E&&(y?f(E.key,y)>0&&(y=E.key,_=E.value):(_=E.value,y=E.key))}var T=this.horizontal[w];if(T.length>0){var s=t.ge(T,d[1],m);if(s=T.length)return _;L=T[s]}}if(L.start)if(y){var M=n(y[0],y[1],[d[0],L.y]);y[0][0]>y[1][0]&&(M=-M),M>0&&(_=L.index)}else _=L.index;else L.y!==d[1]&&(_=L.index)}}}return _};function b(d,w,A,_){this.y=d,this.index=w,this.start=A,this.closed=_}function u(d,w,A,_){this.x=d,this.segment=w,this.create=A,this.index=_}function o(d){for(var w=d.length,A=2*w,_=new Array(A),y=0;y1&&(w=1);for(var A=1-w,_=h.length,y=new Array(_),E=0;E<_;++E)y[E]=w*h[E]+A*u[E];return y}function c(h,b){for(var u=[],o=[],d=n(h[h.length-1],b),w=h[h.length-1],A=h[0],_=0;_0||d>0&&y<0){var E=f(w,y,A,d);u.push(E),o.push(E.slice())}y<0?o.push(A.slice()):y>0?u.push(A.slice()):(u.push(A.slice()),o.push(A.slice())),d=y}return{positive:u,negative:o}}function l(h,b){for(var u=[],o=n(h[h.length-1],b),d=h[h.length-1],w=h[0],A=0;A0||o>0&&_<0)&&u.push(f(d,_,w,o)),_>=0&&u.push(w.slice()),o=_}return u}function m(h,b){for(var u=[],o=n(h[h.length-1],b),d=h[h.length-1],w=h[0],A=0;A0||o>0&&_<0)&&u.push(f(d,_,w,o)),_<=0&&u.push(w.slice()),o=_}return u}},8974:function(v,p,r){var t;(function(){var a={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(h){return c(m(h),arguments)}function f(h,b){return n.apply(null,[h].concat(b||[]))}function c(h,b){var u=1,o=h.length,d,w="",A,_,y,E,T,s,L,M;for(A=0;A=0),y.type){case"b":d=parseInt(d,10).toString(2);break;case"c":d=String.fromCharCode(parseInt(d,10));break;case"d":case"i":d=parseInt(d,10);break;case"j":d=JSON.stringify(d,null,y.width?parseInt(y.width):0);break;case"e":d=y.precision?parseFloat(d).toExponential(y.precision):parseFloat(d).toExponential();break;case"f":d=y.precision?parseFloat(d).toFixed(y.precision):parseFloat(d);break;case"g":d=y.precision?String(Number(d.toPrecision(y.precision))):parseFloat(d);break;case"o":d=(parseInt(d,10)>>>0).toString(8);break;case"s":d=String(d),d=y.precision?d.substring(0,y.precision):d;break;case"t":d=String(!!d),d=y.precision?d.substring(0,y.precision):d;break;case"T":d=Object.prototype.toString.call(d).slice(8,-1).toLowerCase(),d=y.precision?d.substring(0,y.precision):d;break;case"u":d=parseInt(d,10)>>>0;break;case"v":d=d.valueOf(),d=y.precision?d.substring(0,y.precision):d;break;case"x":d=(parseInt(d,10)>>>0).toString(16);break;case"X":d=(parseInt(d,10)>>>0).toString(16).toUpperCase();break}a.json.test(y.type)?w+=d:(a.number.test(y.type)&&(!L||y.sign)?(M=L?"+":"-",d=d.toString().replace(a.sign,"")):M="",T=y.pad_char?y.pad_char==="0"?"0":y.pad_char.charAt(1):" ",s=y.width-(M+d).length,E=y.width&&s>0?T.repeat(s):"",w+=y.align?M+d+E:T==="0"?M+E+d:E+M+d)}return w}var l=Object.create(null);function m(h){if(l[h])return l[h];for(var b=h,u,o=[],d=0;b;){if((u=a.text.exec(b))!==null)o.push(u[0]);else if((u=a.modulo.exec(b))!==null)o.push("%");else if((u=a.placeholder.exec(b))!==null){if(u[2]){d|=1;var w=[],A=u[2],_=[];if((_=a.key.exec(A))!==null)for(w.push(_[1]);(A=A.substring(_[0].length))!=="";)if((_=a.key_access.exec(A))!==null)w.push(_[1]);else if((_=a.index_access.exec(A))!==null)w.push(_[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");u[2]=w}else d|=2;if(d===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o.push({placeholder:u[0],param_no:u[1],keys:u[2],sign:u[3],pad_char:u[4],align:u[5],width:u[6],precision:u[7],type:u[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");b=b.substring(u[0].length)}return l[h]=o}p.sprintf=n,p.vsprintf=f,typeof window<"u"&&(window.sprintf=n,window.vsprintf=f,t=(function(){return{sprintf:n,vsprintf:f}}).call(p,r,p,v),t!==void 0&&(v.exports=t))})()},4162:function(v,p,r){v.exports=m;var t=r(9284),a=r(9584),n={"2d":function(h,b,u){var o=h({order:b,scalarArguments:3,getters:u==="generic"?[0]:void 0,phase:function(w,A,_,y){return w>y|0},vertex:function(w,A,_,y,E,T,s,L,M,z,D,N,I){var k=(s<<0)+(L<<1)+(M<<2)+(z<<3)|0;if(!(k===0||k===15))switch(k){case 0:D.push([w-.5,A-.5]);break;case 1:D.push([w-.25-.25*(y+_-2*I)/(_-y),A-.25-.25*(E+_-2*I)/(_-E)]);break;case 2:D.push([w-.75-.25*(-y-_+2*I)/(y-_),A-.25-.25*(T+y-2*I)/(y-T)]);break;case 3:D.push([w-.5,A-.5-.5*(E+_+T+y-4*I)/(_-E+y-T)]);break;case 4:D.push([w-.25-.25*(T+E-2*I)/(E-T),A-.75-.25*(-E-_+2*I)/(E-_)]);break;case 5:D.push([w-.5-.5*(y+_+T+E-4*I)/(_-y+E-T),A-.5]);break;case 6:D.push([w-.5-.25*(-y-_+T+E)/(y-_+E-T),A-.5-.25*(-E-_+T+y)/(E-_+y-T)]);break;case 7:D.push([w-.75-.25*(T+E-2*I)/(E-T),A-.75-.25*(T+y-2*I)/(y-T)]);break;case 8:D.push([w-.75-.25*(-T-E+2*I)/(T-E),A-.75-.25*(-T-y+2*I)/(T-y)]);break;case 9:D.push([w-.5-.25*(y+_+-T-E)/(_-y+T-E),A-.5-.25*(E+_+-T-y)/(_-E+T-y)]);break;case 10:D.push([w-.5-.5*(-y-_+-T-E+4*I)/(y-_+T-E),A-.5]);break;case 11:D.push([w-.25-.25*(-T-E+2*I)/(T-E),A-.75-.25*(E+_-2*I)/(_-E)]);break;case 12:D.push([w-.5,A-.5-.5*(-E-_+-T-y+4*I)/(E-_+T-y)]);break;case 13:D.push([w-.75-.25*(y+_-2*I)/(_-y),A-.25-.25*(-T-y+2*I)/(T-y)]);break;case 14:D.push([w-.25-.25*(-y-_+2*I)/(y-_),A-.25-.25*(-E-_+2*I)/(E-_)]);break;case 15:D.push([w-.5,A-.5]);break}},cell:function(w,A,_,y,E,T,s,L,M){E?L.push([w,A]):L.push([A,w])}});return function(d,w){var A=[],_=[];return o(d,A,_,w),{positions:A,cells:_}}}};function f(h,b){var u=h.length+"d",o=n[u];if(o)return o(t,h,b)}function c(h,b){for(var u=a(h,b),o=u.length,d=new Array(o),w=new Array(o),A=0;A0&&(_+=.02);for(var E=new Float32Array(A),T=0,s=-.5*_,y=0;yMath.max(y,E)?T[2]=1:y>Math.max(_,E)?T[0]=1:T[1]=1;for(var s=0,L=0,M=0;M<3;++M)s+=A[M]*A[M],L+=T[M]*A[M];for(var M=0;M<3;++M)T[M]-=L/s*A[M];return c(T,T),T}function u(A,_,y,E,T,s,L,M){this.center=t(y),this.up=t(E),this.right=t(T),this.radius=t([s]),this.angle=t([L,M]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,_),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var o=u.prototype;o.setDistanceLimits=function(A,_){A>0?A=Math.log(A):A=-1/0,_>0?_=Math.log(_):_=1/0,_=Math.max(_,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=_},o.getDistanceLimits=function(A){var _=this.radius.bounds[0];return A?(A[0]=Math.exp(_[0][0]),A[1]=Math.exp(_[1][0]),A):[Math.exp(_[0][0]),Math.exp(_[1][0])]},o.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var _=this.computedUp,y=this.computedRight,E=0,T=0,s=0;s<3;++s)T+=_[s]*y[s],E+=_[s]*_[s];for(var L=Math.sqrt(E),M=0,s=0;s<3;++s)y[s]-=_[s]*T/E,M+=y[s]*y[s],_[s]/=L;for(var z=Math.sqrt(M),s=0;s<3;++s)y[s]/=z;var D=this.computedToward;f(D,_,y),c(D,D);for(var N=Math.exp(this.computedRadius[0]),I=this.computedAngle[0],k=this.computedAngle[1],B=Math.cos(I),O=Math.sin(I),H=Math.cos(k),Y=Math.sin(k),j=this.computedCenter,te=B*H,ie=O*H,ue=Y,J=-B*Y,X=-O*Y,ee=H,V=this.computedEye,Q=this.computedMatrix,s=0;s<3;++s){var oe=te*y[s]+ie*D[s]+ue*_[s];Q[4*s+1]=J*y[s]+X*D[s]+ee*_[s],Q[4*s+2]=oe,Q[4*s+3]=0}var $=Q[1],Z=Q[5],se=Q[9],ne=Q[2],ce=Q[6],ge=Q[10],Te=Z*ge-se*ce,we=se*ne-$*ge,Re=$*ce-Z*ne,be=m(Te,we,Re);Te/=be,we/=be,Re/=be,Q[0]=Te,Q[4]=we,Q[8]=Re;for(var s=0;s<3;++s)V[s]=j[s]+Q[2+4*s]*N;for(var s=0;s<3;++s){for(var M=0,Ae=0;Ae<3;++Ae)M+=Q[s+4*Ae]*V[Ae];Q[12+s]=-M}Q[15]=1},o.getMatrix=function(A,_){this.recalcMatrix(A);var y=this.computedMatrix;if(_){for(var E=0;E<16;++E)_[E]=y[E];return _}return y};var d=[0,0,0];o.rotate=function(A,_,y,E){if(this.angle.move(A,_,y),E){this.recalcMatrix(A);var T=this.computedMatrix;d[0]=T[2],d[1]=T[6],d[2]=T[10];for(var s=this.computedUp,L=this.computedRight,M=this.computedToward,z=0;z<3;++z)T[4*z]=s[z],T[4*z+1]=L[z],T[4*z+2]=M[z];n(T,T,E,d);for(var z=0;z<3;++z)s[z]=T[4*z],L[z]=T[4*z+1];this.up.set(A,s[0],s[1],s[2]),this.right.set(A,L[0],L[1],L[2])}},o.pan=function(A,_,y,E){_=_||0,y=y||0,E=E||0,this.recalcMatrix(A);var T=this.computedMatrix;Math.exp(this.computedRadius[0]);var s=T[1],L=T[5],M=T[9],z=m(s,L,M);s/=z,L/=z,M/=z;var D=T[0],N=T[4],I=T[8],k=D*s+N*L+I*M;D-=s*k,N-=L*k,I-=M*k;var B=m(D,N,I);D/=B,N/=B,I/=B;var O=D*_+s*y,H=N*_+L*y,Y=I*_+M*y;this.center.move(A,O,H,Y);var j=Math.exp(this.computedRadius[0]);j=Math.max(1e-4,j+E),this.radius.set(A,Math.log(j))},o.translate=function(A,_,y,E){this.center.move(A,_||0,y||0,E||0)},o.setMatrix=function(A,_,y,E){var T=1;typeof y=="number"&&(T=y|0),(T<0||T>3)&&(T=1);var s=(T+2)%3;_||(this.recalcMatrix(A),_=this.computedMatrix);var L=_[T],M=_[T+4],z=_[T+8];if(E){var N=Math.abs(L),I=Math.abs(M),k=Math.abs(z),B=Math.max(N,I,k);N===B?(L=L<0?-1:1,M=z=0):k===B?(z=z<0?-1:1,L=M=0):(M=M<0?-1:1,L=z=0)}else{var D=m(L,M,z);L/=D,M/=D,z/=D}var O=_[s],H=_[s+4],Y=_[s+8],j=O*L+H*M+Y*z;O-=L*j,H-=M*j,Y-=z*j;var te=m(O,H,Y);O/=te,H/=te,Y/=te;var ie=M*Y-z*H,ue=z*O-L*Y,J=L*H-M*O,X=m(ie,ue,J);ie/=X,ue/=X,J/=X,this.center.jump(A,Ue,ke,Ve),this.radius.idle(A),this.up.jump(A,L,M,z),this.right.jump(A,O,H,Y);var ee,V;if(T===2){var Q=_[1],oe=_[5],$=_[9],Z=Q*O+oe*H+$*Y,se=Q*ie+oe*ue+$*J;Te<0?ee=-Math.PI/2:ee=Math.PI/2,V=Math.atan2(se,Z)}else{var ne=_[2],ce=_[6],ge=_[10],Te=ne*L+ce*M+ge*z,we=ne*O+ce*H+ge*Y,Re=ne*ie+ce*ue+ge*J;ee=Math.asin(h(Te)),V=Math.atan2(Re,we)}this.angle.jump(A,V,ee),this.recalcMatrix(A);var be=_[2],Ae=_[6],me=_[10],Le=this.computedMatrix;a(Le,_);var He=Le[15],Ue=Le[12]/He,ke=Le[13]/He,Ve=Le[14]/He,Ie=Math.exp(this.computedRadius[0]);this.center.jump(A,Ue-be*Ie,ke-Ae*Ie,Ve-me*Ie)},o.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},o.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},o.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},o.setDistance=function(A,_){_>0&&this.radius.set(A,Math.log(_))},o.lookAt=function(A,_,y,E){this.recalcMatrix(A),_=_||this.computedEye,y=y||this.computedCenter,E=E||this.computedUp;var T=E[0],s=E[1],L=E[2],M=m(T,s,L);if(!(M<1e-6)){T/=M,s/=M,L/=M;var z=_[0]-y[0],D=_[1]-y[1],N=_[2]-y[2],I=m(z,D,N);if(!(I<1e-6)){z/=I,D/=I,N/=I;var k=this.computedRight,B=k[0],O=k[1],H=k[2],Y=T*B+s*O+L*H;B-=Y*T,O-=Y*s,H-=Y*L;var j=m(B,O,H);if(!(j<.01&&(B=s*N-L*D,O=L*z-T*N,H=T*D-s*z,j=m(B,O,H),j<1e-6))){B/=j,O/=j,H/=j,this.up.set(A,T,s,L),this.right.set(A,B,O,H),this.center.set(A,y[0],y[1],y[2]),this.radius.set(A,Math.log(I));var te=s*H-L*O,ie=L*B-T*H,ue=T*O-s*B,J=m(te,ie,ue);te/=J,ie/=J,ue/=J;var X=T*z+s*D+L*N,ee=B*z+O*D+H*N,V=te*z+ie*D+ue*N,Q=Math.asin(h(X)),oe=Math.atan2(V,ee),$=this.angle._state,Z=$[$.length-1],se=$[$.length-2];Z=Z%(2*Math.PI);var ne=Math.abs(Z+2*Math.PI-oe),ce=Math.abs(Z-oe),ge=Math.abs(Z-2*Math.PI-oe);ne0?H.pop():new ArrayBuffer(B)}p.mallocArrayBuffer=d;function w(k){return new Uint8Array(d(k),0,k)}p.mallocUint8=w;function A(k){return new Uint16Array(d(2*k),0,k)}p.mallocUint16=A;function _(k){return new Uint32Array(d(4*k),0,k)}p.mallocUint32=_;function y(k){return new Int8Array(d(k),0,k)}p.mallocInt8=y;function E(k){return new Int16Array(d(2*k),0,k)}p.mallocInt16=E;function T(k){return new Int32Array(d(4*k),0,k)}p.mallocInt32=T;function s(k){return new Float32Array(d(4*k),0,k)}p.mallocFloat32=p.mallocFloat=s;function L(k){return new Float64Array(d(8*k),0,k)}p.mallocFloat64=p.mallocDouble=L;function M(k){return f?new Uint8ClampedArray(d(k),0,k):w(k)}p.mallocUint8Clamped=M;function z(k){return c?new BigUint64Array(d(8*k),0,k):null}p.mallocBigUint64=z;function D(k){return l?new BigInt64Array(d(8*k),0,k):null}p.mallocBigInt64=D;function N(k){return new DataView(d(k),0,k)}p.mallocDataView=N;function I(k){k=t.nextPow2(k);var B=t.log2(k),O=b[B];return O.length>0?O.pop():new n(k)}p.mallocBuffer=I,p.clearCache=function(){for(var B=0;B<32;++B)m.UINT8[B].length=0,m.UINT16[B].length=0,m.UINT32[B].length=0,m.INT8[B].length=0,m.INT16[B].length=0,m.INT32[B].length=0,m.FLOAT[B].length=0,m.DOUBLE[B].length=0,m.BIGUINT64[B].length=0,m.BIGINT64[B].length=0,m.UINT8C[B].length=0,h[B].length=0,b[B].length=0}},1731:function(v){"use restrict";v.exports=p;function p(t){this.roots=new Array(t),this.ranks=new Array(t);for(var a=0;a",H="",Y=O.length,j=H.length,te=I[0]===d||I[0]===_,ie=0,ue=-j;ie>-1&&(ie=k.indexOf(O,ie),!(ie===-1||(ue=k.indexOf(H,ie+Y),ue===-1)||ue<=ie));){for(var J=ie;J=ue)B[J]=null,k=k.substr(0,J)+" "+k.substr(J+1);else if(B[J]!==null){var X=B[J].indexOf(I[0]);X===-1?B[J]+=I:te&&(B[J]=B[J].substr(0,X+1)+(1+parseInt(B[J][X+1]))+B[J].substr(X+2))}var ee=ie+Y,V=k.substr(ee,ue-ee),Q=V.indexOf(O);Q!==-1?ie=Q:ie=ue+j}return B}function T(N,I,k){for(var B=I.textAlign||"start",O=I.textBaseline||"alphabetic",H=[1<<30,1<<30],Y=[0,0],j=N.length,te=0;te/g,` +`):k=k.replace(/\/g," ");var Y="",j=[];for(Z=0;Z-1?parseInt(Ve[1+Ke]):0,ht=$e>-1?parseInt(Ie[1+$e]):0;lt!==ht&&(rt=rt.replace(Re(),"?px "),ce*=Math.pow(.75,ht-lt),rt=rt.replace("?px ",Re())),ne+=.25*X*(ht-lt)}if(H.superscripts===!0){var dt=Ve.indexOf(d),xt=Ie.indexOf(d),St=dt>-1?parseInt(Ve[1+dt]):0,nt=xt>-1?parseInt(Ie[1+xt]):0;St!==nt&&(rt=rt.replace(Re(),"?px "),ce*=Math.pow(.75,nt-St),rt=rt.replace("?px ",Re())),ne-=.25*X*(nt-St)}if(H.bolds===!0){var ze=Ve.indexOf(h)>-1,Xe=Ie.indexOf(h)>-1;!ze&&Xe&&(Je?rt=rt.replace("italic ","italic bold "):rt="bold "+rt),ze&&!Xe&&(rt=rt.replace("bold ",""))}if(H.italics===!0){var Je=Ve.indexOf(u)>-1,We=Ie.indexOf(u)>-1;!Je&&We&&(rt="italic "+rt),Je&&!We&&(rt=rt.replace("italic ",""))}I.font=rt}for($=0;$0&&(O=B.size),B.lineSpacing&&B.lineSpacing>0&&(H=B.lineSpacing),B.styletags&&B.styletags.breaklines&&(Y.breaklines=!!B.styletags.breaklines),B.styletags&&B.styletags.bolds&&(Y.bolds=!!B.styletags.bolds),B.styletags&&B.styletags.italics&&(Y.italics=!!B.styletags.italics),B.styletags&&B.styletags.subscripts&&(Y.subscripts=!!B.styletags.subscripts),B.styletags&&B.styletags.superscripts&&(Y.superscripts=!!B.styletags.superscripts)),k.font=[B.fontStyle,B.fontVariant,B.fontWeight,O+"px",B.font].filter(function(te){return te}).join(" "),k.textAlign="start",k.textBaseline="alphabetic",k.direction="ltr";var j=s(I,k,N,O,H,Y);return z(j,B,O)}},5346:function(v){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function r(L){L.permitHostObjects___&&L.permitHostObjects___(r)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=r);var t=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var n=new a,f=Object.freeze({});if(n.set(f,1),n.get(f)!==1)t=!0;else{v.exports=WeakMap;return}}}var c=Object.getOwnPropertyNames,l=Object.defineProperty,m=Object.isExtensible,h="weakmap:",b=h+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var u=new ArrayBuffer(25),o=new Uint8Array(u);crypto.getRandomValues(o),b=h+"rand:"+Array.prototype.map.call(o,function(L){return(L%36).toString(36)}).join("")+"___"}function d(L){return!(L.substr(0,h.length)==h&&L.substr(L.length-3)==="___")}if(l(Object,"getOwnPropertyNames",{value:function(M){return c(M).filter(d)}}),"getPropertyNames"in Object){var w=Object.getPropertyNames;l(Object,"getPropertyNames",{value:function(M){return w(M).filter(d)}})}function A(L){if(L!==Object(L))throw new TypeError("Not an object: "+L);var M=L[b];if(M&&M.key===L)return M;if(m(L)){M={key:L};try{return l(L,b,{value:M,writable:!1,enumerable:!1,configurable:!1}),M}catch{return}}}(function(){var L=Object.freeze;l(Object,"freeze",{value:function(N){return A(N),L(N)}});var M=Object.seal;l(Object,"seal",{value:function(N){return A(N),M(N)}});var z=Object.preventExtensions;l(Object,"preventExtensions",{value:function(N){return A(N),z(N)}})})();function _(L){return L.prototype=null,Object.freeze(L)}var y=!1;function E(){!y&&typeof console<"u"&&(y=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var T=0,s=function(){this instanceof s||E();var L=[],M=[],z=T++;function D(B,O){var H,Y=A(B);return Y?z in Y?Y[z]:O:(H=L.indexOf(B),H>=0?M[H]:O)}function N(B){var O=A(B);return O?z in O:L.indexOf(B)>=0}function I(B,O){var H,Y=A(B);return Y?Y[z]=O:(H=L.indexOf(B),H>=0?M[H]=O:(H=L.length,M[H]=O,L[H]=B)),this}function k(B){var O=A(B),H,Y;return O?z in O&&delete O[z]:(H=L.indexOf(B),H<0?!1:(Y=L.length-1,L[H]=void 0,M[H]=M[Y],L[H]=L[Y],L.length=Y,M.length=Y,!0))}return Object.create(s.prototype,{get___:{value:_(D)},has___:{value:_(N)},set___:{value:_(I)},delete___:{value:_(k)}})};s.prototype=Object.create(Object.prototype,{get:{value:function(M,z){return this.get___(M,z)},writable:!0,configurable:!0},has:{value:function(M){return this.has___(M)},writable:!0,configurable:!0},set:{value:function(M,z){return this.set___(M,z)},writable:!0,configurable:!0},delete:{value:function(M){return this.delete___(M)},writable:!0,configurable:!0}}),typeof a=="function"?function(){t&&typeof Proxy<"u"&&(Proxy=void 0);function L(){this instanceof s||E();var M=new a,z=void 0,D=!1;function N(O,H){return z?M.has(O)?M.get(O):z.get___(O,H):M.get(O,H)}function I(O){return M.has(O)||(z?z.has___(O):!1)}var k;t?k=function(O,H){return M.set(O,H),M.has(O)||(z||(z=new s),z.set(O,H)),this}:k=function(O,H){if(D)try{M.set(O,H)}catch{z||(z=new s),z.set___(O,H)}else M.set(O,H);return this};function B(O){var H=!!M.delete(O);return z&&z.delete___(O)||H}return Object.create(s.prototype,{get___:{value:_(N)},has___:{value:_(I)},set___:{value:_(k)},delete___:{value:_(B)},permitHostObjects___:{value:_(function(O){if(O===r)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}L.prototype=s.prototype,v.exports=L,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),v.exports=s)})()},9222:function(v,p,r){var t=r(7178);v.exports=a;function a(){var n={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(n);return c&&c.identity===n?c:t(f,n)}}},7178:function(v){v.exports=p;function p(r,t){var a={identity:t},n=r.valueOf;return Object.defineProperty(r,"valueOf",{value:function(f){return f!==t?n.apply(this,arguments):a},writable:!0}),a}},4037:function(v,p,r){var t=r(9222);v.exports=a;function a(){var n=t();return{get:function(f,c){var l=n(f);return l.hasOwnProperty("value")?l.value:c},set:function(f,c){return n(f).value=c,this},has:function(f){return"value"in n(f)},delete:function(f){return delete n(f).value}}}},6183:function(v){function p(){return function(c,l,m,h,b,u){var o=c[0],d=m[0],w=[0],A=d;h|=0;var _=0,y=d;for(_=0;_=0!=T>=0&&b.push(w[0]+.5+.5*(E+T)/(E-T))}h+=y,++w[0]}}}function r(){return p()}var t=r;function a(c){var l={};return function(h,b,u){var o=h.dtype,d=h.order,w=[o,d.join()].join(),A=l[w];return A||(l[w]=A=c([o,d])),A(h.shape.slice(0),h.data,h.stride,h.offset|0,b,u)}}function n(c){return a(t.bind(void 0,c))}function f(c){return n({funcName:c.funcName})}v.exports=f({funcName:"zeroCrossings"})},9584:function(v,p,r){v.exports=a;var t=r(6183);function a(n,f){var c=[];return f=+f||0,t(n.hi(n.shape[0]-1),c,f),c}},6601:function(){}},i={};function S(v){var p=i[v];if(p!==void 0)return p.exports;var r=i[v]={id:v,loaded:!1,exports:{}};return C[v].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}(function(){S.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){S.nmd=function(v){return v.paths=[],v.children||(v.children=[]),v}}();var x=S(7386);return x}()})},33576:function(G,U,e){/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function g(nt,ze){if(!(nt instanceof ze))throw new TypeError("Cannot call a class as a function")}function C(nt,ze){for(var Xe=0;Xe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return ze=r(ze),p(nt,Je()?Reflect.construct(ze,Xe||[],r(nt).constructor):ze.apply(nt,Xe))}function p(nt,ze){if(ze&&(f(ze)==="object"||typeof ze=="function"))return ze;if(ze!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(nt)}function r(nt){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Xe){return Xe.__proto__||Object.getPrototypeOf(Xe)},r(nt)}function t(nt){if(nt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt}function a(nt,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function");nt.prototype=Object.create(ze&&ze.prototype,{constructor:{value:nt,writable:!0,configurable:!0}}),Object.defineProperty(nt,"prototype",{writable:!1}),ze&&n(nt,ze)}function n(nt,ze){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Je,We){return Je.__proto__=We,Je},n(nt,ze)}function f(nt){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},f(nt)}var c=e(59968),l=e(35984),m=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=o,U.SlowBuffer=z,U.INSPECT_MAX_BYTES=50;var h=2147483647;U.kMaxLength=h,o.TYPED_ARRAY_SUPPORT=b(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{var nt=new Uint8Array(1),ze={foo:function(){return 42}};return Object.setPrototypeOf(ze,Uint8Array.prototype),Object.setPrototypeOf(nt,ze),nt.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function u(nt){if(nt>h)throw new RangeError('The value "'+nt+'" is invalid for option "size"');var ze=new Uint8Array(nt);return Object.setPrototypeOf(ze,o.prototype),ze}function o(nt,ze,Xe){if(typeof nt=="number"){if(typeof ze=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(nt)}return d(nt,ze,Xe)}o.poolSize=8192;function d(nt,ze,Xe){if(typeof nt=="string")return y(nt,ze);if(ArrayBuffer.isView(nt))return T(nt);if(nt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(nt));if(lt(nt,ArrayBuffer)||nt&<(nt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(lt(nt,SharedArrayBuffer)||nt&<(nt.buffer,SharedArrayBuffer)))return s(nt,ze,Xe);if(typeof nt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Je=nt.valueOf&&nt.valueOf();if(Je!=null&&Je!==nt)return o.from(Je,ze,Xe);var We=L(nt);if(We)return We;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof nt[Symbol.toPrimitive]=="function")return o.from(nt[Symbol.toPrimitive]("string"),ze,Xe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(nt))}o.from=function(nt,ze,Xe){return d(nt,ze,Xe)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function w(nt){if(typeof nt!="number")throw new TypeError('"size" argument must be of type number');if(nt<0)throw new RangeError('The value "'+nt+'" is invalid for option "size"')}function A(nt,ze,Xe){return w(nt),nt<=0?u(nt):ze!==void 0?typeof Xe=="string"?u(nt).fill(ze,Xe):u(nt).fill(ze):u(nt)}o.alloc=function(nt,ze,Xe){return A(nt,ze,Xe)};function _(nt){return w(nt),u(nt<0?0:M(nt)|0)}o.allocUnsafe=function(nt){return _(nt)},o.allocUnsafeSlow=function(nt){return _(nt)};function y(nt,ze){if((typeof ze!="string"||ze==="")&&(ze="utf8"),!o.isEncoding(ze))throw new TypeError("Unknown encoding: "+ze);var Xe=D(nt,ze)|0,Je=u(Xe),We=Je.write(nt,ze);return We!==Xe&&(Je=Je.slice(0,We)),Je}function E(nt){for(var ze=nt.length<0?0:M(nt.length)|0,Xe=u(ze),Je=0;Je=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return nt|0}function z(nt){return+nt!=nt&&(nt=0),o.alloc(+nt)}o.isBuffer=function(ze){return ze!=null&&ze._isBuffer===!0&&ze!==o.prototype},o.compare=function(ze,Xe){if(lt(ze,Uint8Array)&&(ze=o.from(ze,ze.offset,ze.byteLength)),lt(Xe,Uint8Array)&&(Xe=o.from(Xe,Xe.offset,Xe.byteLength)),!o.isBuffer(ze)||!o.isBuffer(Xe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ze===Xe)return 0;for(var Je=ze.length,We=Xe.length,Fe=0,xe=Math.min(Je,We);FeWe.length?(o.isBuffer(xe)||(xe=o.from(xe)),xe.copy(We,Fe)):Uint8Array.prototype.set.call(We,xe,Fe);else if(o.isBuffer(xe))xe.copy(We,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=xe.length}return We};function D(nt,ze){if(o.isBuffer(nt))return nt.length;if(ArrayBuffer.isView(nt)||lt(nt,ArrayBuffer))return nt.byteLength;if(typeof nt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(nt));var Xe=nt.length,Je=arguments.length>2&&arguments[2]===!0;if(!Je&&Xe===0)return 0;for(var We=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Xe;case"utf8":case"utf-8":return Ve(nt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xe*2;case"hex":return Xe>>>1;case"base64":return Ke(nt).length;default:if(We)return Je?-1:Ve(nt).length;ze=(""+ze).toLowerCase(),We=!0}}o.byteLength=D;function N(nt,ze,Xe){var Je=!1;if((ze===void 0||ze<0)&&(ze=0),ze>this.length||((Xe===void 0||Xe>this.length)&&(Xe=this.length),Xe<=0)||(Xe>>>=0,ze>>>=0,Xe<=ze))return"";for(nt||(nt="utf8");;)switch(nt){case"hex":return Q(this,ze,Xe);case"utf8":case"utf-8":return ue(this,ze,Xe);case"ascii":return ee(this,ze,Xe);case"latin1":case"binary":return V(this,ze,Xe);case"base64":return ie(this,ze,Xe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,ze,Xe);default:if(Je)throw new TypeError("Unknown encoding: "+nt);nt=(nt+"").toLowerCase(),Je=!0}}o.prototype._isBuffer=!0;function I(nt,ze,Xe){var Je=nt[ze];nt[ze]=nt[Xe],nt[Xe]=Je}o.prototype.swap16=function(){var ze=this.length;if(ze%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Xe=0;XeXe&&(ze+=" ... "),""},m&&(o.prototype[m]=o.prototype.inspect),o.prototype.compare=function(ze,Xe,Je,We,Fe){if(lt(ze,Uint8Array)&&(ze=o.from(ze,ze.offset,ze.byteLength)),!o.isBuffer(ze))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(ze));if(Xe===void 0&&(Xe=0),Je===void 0&&(Je=ze?ze.length:0),We===void 0&&(We=0),Fe===void 0&&(Fe=this.length),Xe<0||Je>ze.length||We<0||Fe>this.length)throw new RangeError("out of range index");if(We>=Fe&&Xe>=Je)return 0;if(We>=Fe)return-1;if(Xe>=Je)return 1;if(Xe>>>=0,Je>>>=0,We>>>=0,Fe>>>=0,this===ze)return 0;for(var xe=Fe-We,ye=Je-Xe,Ee=Math.min(xe,ye),Me=this.slice(We,Fe),Ne=ze.slice(Xe,Je),je=0;je2147483647?Xe=2147483647:Xe<-2147483648&&(Xe=-2147483648),Xe=+Xe,ht(Xe)&&(Xe=We?0:nt.length-1),Xe<0&&(Xe=nt.length+Xe),Xe>=nt.length){if(We)return-1;Xe=nt.length-1}else if(Xe<0)if(We)Xe=0;else return-1;if(typeof ze=="string"&&(ze=o.from(ze,Je)),o.isBuffer(ze))return ze.length===0?-1:B(nt,ze,Xe,Je,We);if(typeof ze=="number")return ze=ze&255,typeof Uint8Array.prototype.indexOf=="function"?We?Uint8Array.prototype.indexOf.call(nt,ze,Xe):Uint8Array.prototype.lastIndexOf.call(nt,ze,Xe):B(nt,[ze],Xe,Je,We);throw new TypeError("val must be string, number or Buffer")}function B(nt,ze,Xe,Je,We){var Fe=1,xe=nt.length,ye=ze.length;if(Je!==void 0&&(Je=String(Je).toLowerCase(),Je==="ucs2"||Je==="ucs-2"||Je==="utf16le"||Je==="utf-16le")){if(nt.length<2||ze.length<2)return-1;Fe=2,xe/=2,ye/=2,Xe/=2}function Ee(mt,bt){return Fe===1?mt[bt]:mt.readUInt16BE(bt*Fe)}var Me;if(We){var Ne=-1;for(Me=Xe;Mexe&&(Xe=xe-ye),Me=Xe;Me>=0;Me--){for(var je=!0,it=0;itWe&&(Je=We)):Je=We;var Fe=ze.length;Je>Fe/2&&(Je=Fe/2);var xe;for(xe=0;xe>>0,isFinite(Je)?(Je=Je>>>0,We===void 0&&(We="utf8")):(We=Je,Je=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-Xe;if((Je===void 0||Je>Fe)&&(Je=Fe),ze.length>0&&(Je<0||Xe<0)||Xe>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var xe=!1;;)switch(We){case"hex":return O(this,ze,Xe,Je);case"utf8":case"utf-8":return H(this,ze,Xe,Je);case"ascii":case"latin1":case"binary":return Y(this,ze,Xe,Je);case"base64":return j(this,ze,Xe,Je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,ze,Xe,Je);default:if(xe)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),xe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(nt,ze,Xe){return ze===0&&Xe===nt.length?c.fromByteArray(nt):c.fromByteArray(nt.slice(ze,Xe))}function ue(nt,ze,Xe){Xe=Math.min(nt.length,Xe);for(var Je=[],We=ze;We239?4:Fe>223?3:Fe>191?2:1;if(We+ye<=Xe){var Ee=void 0,Me=void 0,Ne=void 0,je=void 0;switch(ye){case 1:Fe<128&&(xe=Fe);break;case 2:Ee=nt[We+1],(Ee&192)===128&&(je=(Fe&31)<<6|Ee&63,je>127&&(xe=je));break;case 3:Ee=nt[We+1],Me=nt[We+2],(Ee&192)===128&&(Me&192)===128&&(je=(Fe&15)<<12|(Ee&63)<<6|Me&63,je>2047&&(je<55296||je>57343)&&(xe=je));break;case 4:Ee=nt[We+1],Me=nt[We+2],Ne=nt[We+3],(Ee&192)===128&&(Me&192)===128&&(Ne&192)===128&&(je=(Fe&15)<<18|(Ee&63)<<12|(Me&63)<<6|Ne&63,je>65535&&je<1114112&&(xe=je))}}xe===null?(xe=65533,ye=1):xe>65535&&(xe-=65536,Je.push(xe>>>10&1023|55296),xe=56320|xe&1023),Je.push(xe),We+=ye}return X(Je)}var J=4096;function X(nt){var ze=nt.length;if(ze<=J)return String.fromCharCode.apply(String,nt);for(var Xe="",Je=0;JeJe)&&(Xe=Je);for(var We="",Fe=ze;FeJe&&(ze=Je),Xe<0?(Xe+=Je,Xe<0&&(Xe=0)):Xe>Je&&(Xe=Je),XeXe)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(ze,Xe,Je){ze=ze>>>0,Xe=Xe>>>0,Je||$(ze,Xe,this.length);for(var We=this[ze],Fe=1,xe=0;++xe>>0,Xe=Xe>>>0,Je||$(ze,Xe,this.length);for(var We=this[ze+--Xe],Fe=1;Xe>0&&(Fe*=256);)We+=this[ze+--Xe]*Fe;return We},o.prototype.readUint8=o.prototype.readUInt8=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,1,this.length),this[ze]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,2,this.length),this[ze]|this[ze+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,2,this.length),this[ze]<<8|this[ze+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,4,this.length),(this[ze]|this[ze+1]<<8|this[ze+2]<<16)+this[ze+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,4,this.length),this[ze]*16777216+(this[ze+1]<<16|this[ze+2]<<8|this[ze+3])},o.prototype.readBigUInt64LE=xt(function(ze){ze=ze>>>0,Le(ze,"offset");var Xe=this[ze],Je=this[ze+7];(Xe===void 0||Je===void 0)&&He(ze,this.length-8);var We=Xe+this[++ze]*Math.pow(2,8)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,24),Fe=this[++ze]+this[++ze]*Math.pow(2,8)+this[++ze]*Math.pow(2,16)+Je*Math.pow(2,24);return BigInt(We)+(BigInt(Fe)<>>0,Le(ze,"offset");var Xe=this[ze],Je=this[ze+7];(Xe===void 0||Je===void 0)&&He(ze,this.length-8);var We=Xe*Math.pow(2,24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+this[++ze],Fe=this[++ze]*Math.pow(2,24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+Je;return(BigInt(We)<>>0,Xe=Xe>>>0,Je||$(ze,Xe,this.length);for(var We=this[ze],Fe=1,xe=0;++xe=Fe&&(We-=Math.pow(2,8*Xe)),We},o.prototype.readIntBE=function(ze,Xe,Je){ze=ze>>>0,Xe=Xe>>>0,Je||$(ze,Xe,this.length);for(var We=Xe,Fe=1,xe=this[ze+--We];We>0&&(Fe*=256);)xe+=this[ze+--We]*Fe;return Fe*=128,xe>=Fe&&(xe-=Math.pow(2,8*Xe)),xe},o.prototype.readInt8=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,1,this.length),this[ze]&128?(255-this[ze]+1)*-1:this[ze]},o.prototype.readInt16LE=function(ze,Xe){ze=ze>>>0,Xe||$(ze,2,this.length);var Je=this[ze]|this[ze+1]<<8;return Je&32768?Je|4294901760:Je},o.prototype.readInt16BE=function(ze,Xe){ze=ze>>>0,Xe||$(ze,2,this.length);var Je=this[ze+1]|this[ze]<<8;return Je&32768?Je|4294901760:Je},o.prototype.readInt32LE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,4,this.length),this[ze]|this[ze+1]<<8|this[ze+2]<<16|this[ze+3]<<24},o.prototype.readInt32BE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,4,this.length),this[ze]<<24|this[ze+1]<<16|this[ze+2]<<8|this[ze+3]},o.prototype.readBigInt64LE=xt(function(ze){ze=ze>>>0,Le(ze,"offset");var Xe=this[ze],Je=this[ze+7];(Xe===void 0||Je===void 0)&&He(ze,this.length-8);var We=this[ze+4]+this[ze+5]*Math.pow(2,8)+this[ze+6]*Math.pow(2,16)+(Je<<24);return(BigInt(We)<>>0,Le(ze,"offset");var Xe=this[ze],Je=this[ze+7];(Xe===void 0||Je===void 0)&&He(ze,this.length-8);var We=(Xe<<24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+this[++ze];return(BigInt(We)<>>0,Xe||$(ze,4,this.length),l.read(this,ze,!0,23,4)},o.prototype.readFloatBE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,4,this.length),l.read(this,ze,!1,23,4)},o.prototype.readDoubleLE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,8,this.length),l.read(this,ze,!0,52,8)},o.prototype.readDoubleBE=function(ze,Xe){return ze=ze>>>0,Xe||$(ze,8,this.length),l.read(this,ze,!1,52,8)};function Z(nt,ze,Xe,Je,We,Fe){if(!o.isBuffer(nt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>We||zent.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(ze,Xe,Je,We){if(ze=+ze,Xe=Xe>>>0,Je=Je>>>0,!We){var Fe=Math.pow(2,8*Je)-1;Z(this,ze,Xe,Je,Fe,0)}var xe=1,ye=0;for(this[Xe]=ze&255;++ye>>0,Je=Je>>>0,!We){var Fe=Math.pow(2,8*Je)-1;Z(this,ze,Xe,Je,Fe,0)}var xe=Je-1,ye=1;for(this[Xe+xe]=ze&255;--xe>=0&&(ye*=256);)this[Xe+xe]=ze/ye&255;return Xe+Je},o.prototype.writeUint8=o.prototype.writeUInt8=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,1,255,0),this[Xe]=ze&255,Xe+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,2,65535,0),this[Xe]=ze&255,this[Xe+1]=ze>>>8,Xe+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,2,65535,0),this[Xe]=ze>>>8,this[Xe+1]=ze&255,Xe+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,4,4294967295,0),this[Xe+3]=ze>>>24,this[Xe+2]=ze>>>16,this[Xe+1]=ze>>>8,this[Xe]=ze&255,Xe+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,4,4294967295,0),this[Xe]=ze>>>24,this[Xe+1]=ze>>>16,this[Xe+2]=ze>>>8,this[Xe+3]=ze&255,Xe+4};function se(nt,ze,Xe,Je,We){me(ze,Je,We,nt,Xe,7);var Fe=Number(ze&BigInt(4294967295));nt[Xe++]=Fe,Fe=Fe>>8,nt[Xe++]=Fe,Fe=Fe>>8,nt[Xe++]=Fe,Fe=Fe>>8,nt[Xe++]=Fe;var xe=Number(ze>>BigInt(32)&BigInt(4294967295));return nt[Xe++]=xe,xe=xe>>8,nt[Xe++]=xe,xe=xe>>8,nt[Xe++]=xe,xe=xe>>8,nt[Xe++]=xe,Xe}function ne(nt,ze,Xe,Je,We){me(ze,Je,We,nt,Xe,7);var Fe=Number(ze&BigInt(4294967295));nt[Xe+7]=Fe,Fe=Fe>>8,nt[Xe+6]=Fe,Fe=Fe>>8,nt[Xe+5]=Fe,Fe=Fe>>8,nt[Xe+4]=Fe;var xe=Number(ze>>BigInt(32)&BigInt(4294967295));return nt[Xe+3]=xe,xe=xe>>8,nt[Xe+2]=xe,xe=xe>>8,nt[Xe+1]=xe,xe=xe>>8,nt[Xe]=xe,Xe+8}o.prototype.writeBigUInt64LE=xt(function(ze){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return se(this,ze,Xe,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=xt(function(ze){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne(this,ze,Xe,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(ze,Xe,Je,We){if(ze=+ze,Xe=Xe>>>0,!We){var Fe=Math.pow(2,8*Je-1);Z(this,ze,Xe,Je,Fe-1,-Fe)}var xe=0,ye=1,Ee=0;for(this[Xe]=ze&255;++xe>0)-Ee&255;return Xe+Je},o.prototype.writeIntBE=function(ze,Xe,Je,We){if(ze=+ze,Xe=Xe>>>0,!We){var Fe=Math.pow(2,8*Je-1);Z(this,ze,Xe,Je,Fe-1,-Fe)}var xe=Je-1,ye=1,Ee=0;for(this[Xe+xe]=ze&255;--xe>=0&&(ye*=256);)ze<0&&Ee===0&&this[Xe+xe+1]!==0&&(Ee=1),this[Xe+xe]=(ze/ye>>0)-Ee&255;return Xe+Je},o.prototype.writeInt8=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,1,127,-128),ze<0&&(ze=255+ze+1),this[Xe]=ze&255,Xe+1},o.prototype.writeInt16LE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,2,32767,-32768),this[Xe]=ze&255,this[Xe+1]=ze>>>8,Xe+2},o.prototype.writeInt16BE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,2,32767,-32768),this[Xe]=ze>>>8,this[Xe+1]=ze&255,Xe+2},o.prototype.writeInt32LE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,4,2147483647,-2147483648),this[Xe]=ze&255,this[Xe+1]=ze>>>8,this[Xe+2]=ze>>>16,this[Xe+3]=ze>>>24,Xe+4},o.prototype.writeInt32BE=function(ze,Xe,Je){return ze=+ze,Xe=Xe>>>0,Je||Z(this,ze,Xe,4,2147483647,-2147483648),ze<0&&(ze=4294967295+ze+1),this[Xe]=ze>>>24,this[Xe+1]=ze>>>16,this[Xe+2]=ze>>>8,this[Xe+3]=ze&255,Xe+4},o.prototype.writeBigInt64LE=xt(function(ze){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return se(this,ze,Xe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=xt(function(ze){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return ne(this,ze,Xe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ce(nt,ze,Xe,Je,We,Fe){if(Xe+Je>nt.length)throw new RangeError("Index out of range");if(Xe<0)throw new RangeError("Index out of range")}function ge(nt,ze,Xe,Je,We){return ze=+ze,Xe=Xe>>>0,We||ce(nt,ze,Xe,4),l.write(nt,ze,Xe,Je,23,4),Xe+4}o.prototype.writeFloatLE=function(ze,Xe,Je){return ge(this,ze,Xe,!0,Je)},o.prototype.writeFloatBE=function(ze,Xe,Je){return ge(this,ze,Xe,!1,Je)};function Te(nt,ze,Xe,Je,We){return ze=+ze,Xe=Xe>>>0,We||ce(nt,ze,Xe,8),l.write(nt,ze,Xe,Je,52,8),Xe+8}o.prototype.writeDoubleLE=function(ze,Xe,Je){return Te(this,ze,Xe,!0,Je)},o.prototype.writeDoubleBE=function(ze,Xe,Je){return Te(this,ze,Xe,!1,Je)},o.prototype.copy=function(ze,Xe,Je,We){if(!o.isBuffer(ze))throw new TypeError("argument should be a Buffer");if(Je||(Je=0),!We&&We!==0&&(We=this.length),Xe>=ze.length&&(Xe=ze.length),Xe||(Xe=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),ze.length-Xe>>0,Je=Je===void 0?this.length:Je>>>0,ze||(ze=0);var xe;if(typeof ze=="number")for(xe=Xe;xeMath.pow(2,32)?We=be(String(Xe)):typeof Xe=="bigint"&&(We=String(Xe),(Xe>Math.pow(BigInt(2),BigInt(32))||Xe<-Math.pow(BigInt(2),BigInt(32)))&&(We=be(We)),We+="n"),Je+=" It must be ".concat(ze,". Received ").concat(We),Je},RangeError);function be(nt){for(var ze="",Xe=nt.length,Je=nt[0]==="-"?1:0;Xe>=Je+4;Xe-=3)ze="_".concat(nt.slice(Xe-3,Xe)).concat(ze);return"".concat(nt.slice(0,Xe)).concat(ze)}function Ae(nt,ze,Xe){Le(ze,"offset"),(nt[ze]===void 0||nt[ze+Xe]===void 0)&&He(ze,nt.length-(Xe+1))}function me(nt,ze,Xe,Je,We,Fe){if(nt>Xe||nt3?ze===0||ze===BigInt(0)?ye=">= 0".concat(xe," and < 2").concat(xe," ** ").concat((Fe+1)*8).concat(xe):ye=">= -(2".concat(xe," ** ").concat((Fe+1)*8-1).concat(xe,") and < 2 ** ")+"".concat((Fe+1)*8-1).concat(xe):ye=">= ".concat(ze).concat(xe," and <= ").concat(Xe).concat(xe),new we.ERR_OUT_OF_RANGE("value",ye,nt)}Ae(Je,We,Fe)}function Le(nt,ze){if(typeof nt!="number")throw new we.ERR_INVALID_ARG_TYPE(ze,"number",nt)}function He(nt,ze,Xe){throw Math.floor(nt)!==nt?(Le(nt,Xe),new we.ERR_OUT_OF_RANGE(Xe||"offset","an integer",nt)):ze<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE(Xe||"offset",">= ".concat(Xe?1:0," and <= ").concat(ze),nt)}var Ue=/[^+/0-9A-Za-z-_]/g;function ke(nt){if(nt=nt.split("=")[0],nt=nt.trim().replace(Ue,""),nt.length<2)return"";for(;nt.length%4!==0;)nt=nt+"=";return nt}function Ve(nt,ze){ze=ze||1/0;for(var Xe,Je=nt.length,We=null,Fe=[],xe=0;xe55295&&Xe<57344){if(!We){if(Xe>56319){(ze-=3)>-1&&Fe.push(239,191,189);continue}else if(xe+1===Je){(ze-=3)>-1&&Fe.push(239,191,189);continue}We=Xe;continue}if(Xe<56320){(ze-=3)>-1&&Fe.push(239,191,189),We=Xe;continue}Xe=(We-55296<<10|Xe-56320)+65536}else We&&(ze-=3)>-1&&Fe.push(239,191,189);if(We=null,Xe<128){if((ze-=1)<0)break;Fe.push(Xe)}else if(Xe<2048){if((ze-=2)<0)break;Fe.push(Xe>>6|192,Xe&63|128)}else if(Xe<65536){if((ze-=3)<0)break;Fe.push(Xe>>12|224,Xe>>6&63|128,Xe&63|128)}else if(Xe<1114112){if((ze-=4)<0)break;Fe.push(Xe>>18|240,Xe>>12&63|128,Xe>>6&63|128,Xe&63|128)}else throw new Error("Invalid code point")}return Fe}function Ie(nt){for(var ze=[],Xe=0;Xe>8,We=Xe%256,Fe.push(We),Fe.push(Je);return Fe}function Ke(nt){return c.toByteArray(ke(nt))}function $e(nt,ze,Xe,Je){var We;for(We=0;We=ze.length||We>=nt.length);++We)ze[We+Xe]=nt[We];return We}function lt(nt,ze){return nt instanceof ze||nt!=null&&nt.constructor!=null&&nt.constructor.name!=null&&nt.constructor.name===ze.name}function ht(nt){return nt!==nt}var dt=function(){for(var nt="0123456789abcdef",ze=new Array(256),Xe=0;Xe<16;++Xe)for(var Je=Xe*16,We=0;We<16;++We)ze[Je+We]=nt[Xe]+nt[We];return ze}();function xt(nt){return typeof BigInt>"u"?St:nt}function St(){throw new Error("BigInt not supported")}},25928:function(G){G.exports=C,G.exports.isMobile=C,G.exports.default=C;var U=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,g=/android|ipad|playbook|silk/i;function C(i){i||(i={});var S=i.ua;if(!S&&typeof navigator<"u"&&(S=navigator.userAgent),S&&S.headers&&typeof S.headers["user-agent"]=="string"&&(S=S.headers["user-agent"]),typeof S!="string")return!1;var x=U.test(S)&&!e.test(S)||!!i.tablet&&g.test(S);return!x&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&S.indexOf("Macintosh")!==-1&&S.indexOf("Safari")!==-1&&(x=!0),x}},48932:function(G,U,e){e.r(U),e.d(U,{sankeyCenter:function(){return a},sankeyCircular:function(){return L},sankeyJustify:function(){return t},sankeyLeft:function(){return p},sankeyRight:function(){return r}});var g=e(84706),C=e(34712),i=e(10132),S=e(6688),x=e.n(S);function v(we){return we.target.depth}function p(we){return we.depth}function r(we,Re){return Re-1-we.height}function t(we,Re){return we.sourceLinks.length?we.depth:Re-1}function a(we){return we.targetLinks.length?we.depth:we.sourceLinks.length?(0,g.SY)(we.sourceLinks,v)-1:0}function n(we){return function(){return we}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we};function c(we,Re){return m(we.source,Re.source)||we.index-Re.index}function l(we,Re){return m(we.target,Re.target)||we.index-Re.index}function m(we,Re){return we.partOfCycle===Re.partOfCycle?we.y0-Re.y0:we.circularLinkType==="top"||Re.circularLinkType==="bottom"?-1:1}function h(we){return we.value}function b(we){return(we.y0+we.y1)/2}function u(we){return b(we.source)}function o(we){return b(we.target)}function d(we){return we.index}function w(we){return we.nodes}function A(we){return we.links}function _(we,Re){var be=we.get(Re);if(!be)throw new Error("missing: "+Re);return be}function y(we,Re){return Re(we)}var E=25,T=10,s=.3;function L(){var we=0,Re=0,be=1,Ae=1,me=24,Le,He=d,Ue=t,ke=w,Ve=A,Ie=32,rt=2,Ke,$e=null;function lt(){var Je={nodes:ke.apply(null,arguments),links:Ve.apply(null,arguments)};ht(Je),M(Je,He,$e),dt(Je),nt(Je),z(Je,He),ze(Je,Ie,He),Xe(Je);for(var We=4,Fe=0;Fe"u"?"undefined":f(ye))!=="object"&&(ye=Fe.source=_(We,ye)),(typeof Ee>"u"?"undefined":f(Ee))!=="object"&&(Ee=Fe.target=_(We,Ee)),ye.sourceLinks.push(Fe),Ee.targetLinks.push(Fe)}),Je}function dt(Je){Je.nodes.forEach(function(We){We.partOfCycle=!1,We.value=Math.max((0,g.oh)(We.sourceLinks,h),(0,g.oh)(We.targetLinks,h)),We.sourceLinks.forEach(function(Fe){Fe.circular&&(We.partOfCycle=!0,We.circularLinkType=Fe.circularLinkType)}),We.targetLinks.forEach(function(Fe){Fe.circular&&(We.partOfCycle=!0,We.circularLinkType=Fe.circularLinkType)})})}function xt(Je){var We=0,Fe=0,xe=0,ye=0,Ee=(0,g.kv)(Je.nodes,function(Me){return Me.column});return Je.links.forEach(function(Me){Me.circular&&(Me.circularLinkType=="top"?We=We+Me.width:Fe=Fe+Me.width,Me.target.column==0&&(ye=ye+Me.width),Me.source.column==Ee&&(xe=xe+Me.width))}),We=We>0?We+E+T:We,Fe=Fe>0?Fe+E+T:Fe,xe=xe>0?xe+E+T:xe,ye=ye>0?ye+E+T:ye,{top:We,bottom:Fe,left:ye,right:xe}}function St(Je,We){var Fe=(0,g.kv)(Je.nodes,function(it){return it.column}),xe=be-we,ye=Ae-Re,Ee=xe+We.right+We.left,Me=ye+We.top+We.bottom,Ne=xe/Ee,je=ye/Me;return we=we*Ne+We.left,be=We.right==0?be:be*Ne,Re=Re*je+We.top,Ae=Ae*je,Je.nodes.forEach(function(it){it.x0=we+it.column*((be-we-me)/Fe),it.x1=it.x0+me}),je}function nt(Je){var We,Fe,xe;for(We=Je.nodes,Fe=[],xe=0;We.length;++xe,We=Fe,Fe=[])We.forEach(function(ye){ye.depth=xe,ye.sourceLinks.forEach(function(Ee){Fe.indexOf(Ee.target)<0&&!Ee.circular&&Fe.push(Ee.target)})});for(We=Je.nodes,Fe=[],xe=0;We.length;++xe,We=Fe,Fe=[])We.forEach(function(ye){ye.height=xe,ye.targetLinks.forEach(function(Ee){Fe.indexOf(Ee.source)<0&&!Ee.circular&&Fe.push(Ee.source)})});Je.nodes.forEach(function(ye){ye.column=Math.floor(Ue.call(null,ye,xe))})}function ze(Je,We,Fe){var xe=(0,C.UJ)().key(function(it){return it.column}).sortKeys(g.XE).entries(Je.nodes).map(function(it){return it.values});Me(Fe),je();for(var ye=1,Ee=We;Ee>0;--Ee)Ne(ye*=.99,Fe),je();function Me(it){if(Ke){var mt=1/0;xe.forEach(function(ct){var Tt=Ae*Ke/(ct.length+1);mt=Tt0))if(ct==0&&Lt==1)Bt=Tt.y1-Tt.y0,Tt.y0=Ae/2-Bt/2,Tt.y1=Ae/2+Bt/2;else if(ct==bt-1&&Lt==1)Bt=Tt.y1-Tt.y0,Tt.y0=Ae/2-Bt/2,Tt.y1=Ae/2+Bt/2;else{var ir=0,pt=(0,g.mo)(Tt.sourceLinks,o),Xt=(0,g.mo)(Tt.targetLinks,u);pt&&Xt?ir=(pt+Xt)/2:ir=pt||Xt;var Kt=(ir-b(Tt))*it;Tt.y0+=Kt,Tt.y1+=Kt}})})}function je(){xe.forEach(function(it){var mt,bt,vt=Re,Lt=it.length,ct;for(it.sort(m),ct=0;ct0&&(mt.y0+=bt,mt.y1+=bt),vt=mt.y1+Le;if(bt=vt-Le-Ae,bt>0)for(vt=mt.y0-=bt,mt.y1-=bt,ct=Lt-2;ct>=0;--ct)mt=it[ct],bt=mt.y1+Le-vt,bt>0&&(mt.y0-=bt,mt.y1-=bt),vt=mt.y0})}}function Xe(Je){Je.nodes.forEach(function(We){We.sourceLinks.sort(l),We.targetLinks.sort(c)}),Je.nodes.forEach(function(We){var Fe=We.y0,xe=Fe,ye=We.y1,Ee=ye;We.sourceLinks.forEach(function(Me){Me.circular?(Me.y0=ye-Me.width/2,ye=ye-Me.width):(Me.y0=Fe+Me.width/2,Fe+=Me.width)}),We.targetLinks.forEach(function(Me){Me.circular?(Me.y1=Ee-Me.width/2,Ee=Ee-Me.width):(Me.y1=xe+Me.width/2,xe+=Me.width)})})}return lt}function M(we,Re,be){var Ae=0;if(be===null){for(var me=[],Le=0;LeRe.source.column)}function I(we,Re){var be=0;we.sourceLinks.forEach(function(me){be=me.circular&&!ge(me,Re)?be+1:be});var Ae=0;return we.targetLinks.forEach(function(me){Ae=me.circular&&!ge(me,Re)?Ae+1:Ae}),be+Ae}function k(we){var Re=we.source.sourceLinks,be=0;Re.forEach(function(Le){be=Le.circular?be+1:be});var Ae=we.target.targetLinks,me=0;return Ae.forEach(function(Le){me=Le.circular?me+1:me}),!(be>1||me>1)}function B(we,Re,be){return we.sort(Y),we.forEach(function(Ae,me){var Le=0;if(ge(Ae,be)&&k(Ae))Ae.circularPathData.verticalBuffer=Le+Ae.width/2;else{var He=0;for(He;HeLe?Ue:Le}Ae.circularPathData.verticalBuffer=Le+Ae.width/2}}),we}function O(we,Re,be,Ae){var me=5,Le=(0,g.SY)(we.links,function(ke){return ke.source.y0});we.links.forEach(function(ke){ke.circular&&(ke.circularPathData={})});var He=we.links.filter(function(ke){return ke.circularLinkType=="top"});B(He,Re,Ae);var Ue=we.links.filter(function(ke){return ke.circularLinkType=="bottom"});B(Ue,Re,Ae),we.links.forEach(function(ke){if(ke.circular){if(ke.circularPathData.arcRadius=ke.width+T,ke.circularPathData.leftNodeBuffer=me,ke.circularPathData.rightNodeBuffer=me,ke.circularPathData.sourceWidth=ke.source.x1-ke.source.x0,ke.circularPathData.sourceX=ke.source.x0+ke.circularPathData.sourceWidth,ke.circularPathData.targetX=ke.target.x0,ke.circularPathData.sourceY=ke.y0,ke.circularPathData.targetY=ke.y1,ge(ke,Ae)&&k(ke))ke.circularPathData.leftSmallArcRadius=T+ke.width/2,ke.circularPathData.leftLargeArcRadius=T+ke.width/2,ke.circularPathData.rightSmallArcRadius=T+ke.width/2,ke.circularPathData.rightLargeArcRadius=T+ke.width/2,ke.circularLinkType=="bottom"?(ke.circularPathData.verticalFullExtent=ke.source.y1+E+ke.circularPathData.verticalBuffer,ke.circularPathData.verticalLeftInnerExtent=ke.circularPathData.verticalFullExtent-ke.circularPathData.leftLargeArcRadius,ke.circularPathData.verticalRightInnerExtent=ke.circularPathData.verticalFullExtent-ke.circularPathData.rightLargeArcRadius):(ke.circularPathData.verticalFullExtent=ke.source.y0-E-ke.circularPathData.verticalBuffer,ke.circularPathData.verticalLeftInnerExtent=ke.circularPathData.verticalFullExtent+ke.circularPathData.leftLargeArcRadius,ke.circularPathData.verticalRightInnerExtent=ke.circularPathData.verticalFullExtent+ke.circularPathData.rightLargeArcRadius);else{var Ve=ke.source.column,Ie=ke.circularLinkType,rt=we.links.filter(function(lt){return lt.source.column==Ve&<.circularLinkType==Ie});ke.circularLinkType=="bottom"?rt.sort(te):rt.sort(j);var Ke=0;rt.forEach(function(lt,ht){lt.circularLinkID==ke.circularLinkID&&(ke.circularPathData.leftSmallArcRadius=T+ke.width/2+Ke,ke.circularPathData.leftLargeArcRadius=T+ke.width/2+ht*Re+Ke),Ke=Ke+lt.width}),Ve=ke.target.column,rt=we.links.filter(function(lt){return lt.target.column==Ve&<.circularLinkType==Ie}),ke.circularLinkType=="bottom"?rt.sort(ue):rt.sort(ie),Ke=0,rt.forEach(function(lt,ht){lt.circularLinkID==ke.circularLinkID&&(ke.circularPathData.rightSmallArcRadius=T+ke.width/2+Ke,ke.circularPathData.rightLargeArcRadius=T+ke.width/2+ht*Re+Ke),Ke=Ke+lt.width}),ke.circularLinkType=="bottom"?(ke.circularPathData.verticalFullExtent=Math.max(be,ke.source.y1,ke.target.y1)+E+ke.circularPathData.verticalBuffer,ke.circularPathData.verticalLeftInnerExtent=ke.circularPathData.verticalFullExtent-ke.circularPathData.leftLargeArcRadius,ke.circularPathData.verticalRightInnerExtent=ke.circularPathData.verticalFullExtent-ke.circularPathData.rightLargeArcRadius):(ke.circularPathData.verticalFullExtent=Le-E-ke.circularPathData.verticalBuffer,ke.circularPathData.verticalLeftInnerExtent=ke.circularPathData.verticalFullExtent+ke.circularPathData.leftLargeArcRadius,ke.circularPathData.verticalRightInnerExtent=ke.circularPathData.verticalFullExtent+ke.circularPathData.rightLargeArcRadius)}ke.circularPathData.leftInnerExtent=ke.circularPathData.sourceX+ke.circularPathData.leftNodeBuffer,ke.circularPathData.rightInnerExtent=ke.circularPathData.targetX-ke.circularPathData.rightNodeBuffer,ke.circularPathData.leftFullExtent=ke.circularPathData.sourceX+ke.circularPathData.leftLargeArcRadius+ke.circularPathData.leftNodeBuffer,ke.circularPathData.rightFullExtent=ke.circularPathData.targetX-ke.circularPathData.rightLargeArcRadius-ke.circularPathData.rightNodeBuffer}if(ke.circular)ke.path=H(ke);else{var $e=(0,i.ak)().source(function(lt){var ht=lt.source.x0+(lt.source.x1-lt.source.x0),dt=lt.y0;return[ht,dt]}).target(function(lt){var ht=lt.target.x0,dt=lt.y1;return[ht,dt]});ke.path=$e(ke)}})}function H(we){var Re="";return we.circularLinkType=="top"?Re="M"+we.circularPathData.sourceX+" "+we.circularPathData.sourceY+" L"+we.circularPathData.leftInnerExtent+" "+we.circularPathData.sourceY+" A"+we.circularPathData.leftLargeArcRadius+" "+we.circularPathData.leftSmallArcRadius+" 0 0 0 "+we.circularPathData.leftFullExtent+" "+(we.circularPathData.sourceY-we.circularPathData.leftSmallArcRadius)+" L"+we.circularPathData.leftFullExtent+" "+we.circularPathData.verticalLeftInnerExtent+" A"+we.circularPathData.leftLargeArcRadius+" "+we.circularPathData.leftLargeArcRadius+" 0 0 0 "+we.circularPathData.leftInnerExtent+" "+we.circularPathData.verticalFullExtent+" L"+we.circularPathData.rightInnerExtent+" "+we.circularPathData.verticalFullExtent+" A"+we.circularPathData.rightLargeArcRadius+" "+we.circularPathData.rightLargeArcRadius+" 0 0 0 "+we.circularPathData.rightFullExtent+" "+we.circularPathData.verticalRightInnerExtent+" L"+we.circularPathData.rightFullExtent+" "+(we.circularPathData.targetY-we.circularPathData.rightSmallArcRadius)+" A"+we.circularPathData.rightLargeArcRadius+" "+we.circularPathData.rightSmallArcRadius+" 0 0 0 "+we.circularPathData.rightInnerExtent+" "+we.circularPathData.targetY+" L"+we.circularPathData.targetX+" "+we.circularPathData.targetY:Re="M"+we.circularPathData.sourceX+" "+we.circularPathData.sourceY+" L"+we.circularPathData.leftInnerExtent+" "+we.circularPathData.sourceY+" A"+we.circularPathData.leftLargeArcRadius+" "+we.circularPathData.leftSmallArcRadius+" 0 0 1 "+we.circularPathData.leftFullExtent+" "+(we.circularPathData.sourceY+we.circularPathData.leftSmallArcRadius)+" L"+we.circularPathData.leftFullExtent+" "+we.circularPathData.verticalLeftInnerExtent+" A"+we.circularPathData.leftLargeArcRadius+" "+we.circularPathData.leftLargeArcRadius+" 0 0 1 "+we.circularPathData.leftInnerExtent+" "+we.circularPathData.verticalFullExtent+" L"+we.circularPathData.rightInnerExtent+" "+we.circularPathData.verticalFullExtent+" A"+we.circularPathData.rightLargeArcRadius+" "+we.circularPathData.rightLargeArcRadius+" 0 0 1 "+we.circularPathData.rightFullExtent+" "+we.circularPathData.verticalRightInnerExtent+" L"+we.circularPathData.rightFullExtent+" "+(we.circularPathData.targetY+we.circularPathData.rightSmallArcRadius)+" A"+we.circularPathData.rightLargeArcRadius+" "+we.circularPathData.rightSmallArcRadius+" 0 0 1 "+we.circularPathData.rightInnerExtent+" "+we.circularPathData.targetY+" L"+we.circularPathData.targetX+" "+we.circularPathData.targetY,Re}function Y(we,Re){return J(we)==J(Re)?we.circularLinkType=="bottom"?te(we,Re):j(we,Re):J(Re)-J(we)}function j(we,Re){return we.y0-Re.y0}function te(we,Re){return Re.y0-we.y0}function ie(we,Re){return we.y1-Re.y1}function ue(we,Re){return Re.y1-we.y1}function J(we){return we.target.column-we.source.column}function X(we){return we.target.x0-we.source.x1}function ee(we,Re){var be=D(we),Ae=X(Re)/Math.tan(be),me=ce(we)=="up"?we.y1+Ae:we.y1-Ae;return me}function V(we,Re){var be=D(we),Ae=X(Re)/Math.tan(be),me=ce(we)=="up"?we.y1-Ae:we.y1+Ae;return me}function Q(we,Re,be,Ae){we.links.forEach(function(me){if(!me.circular&&me.target.column-me.source.column>1){var Le=me.source.column+1,He=me.target.column-1,Ue=1,ke=He-Le+1;for(Ue=1;Le<=He;Le++,Ue++)we.nodes.forEach(function(Ve){if(Ve.column==Le){var Ie=Ue/(ke+1),rt=Math.pow(1-Ie,3),Ke=3*Ie*Math.pow(1-Ie,2),$e=3*Math.pow(Ie,2)*(1-Ie),lt=Math.pow(Ie,3),ht=rt*me.y0+Ke*me.y0+$e*me.y1+lt*me.y1,dt=ht-me.width/2,xt=ht+me.width/2,St;dt>Ve.y0&&dtVe.y0&&xtVe.y1&&$(nt,St,Re,be)})):dtVe.y1&&(St=xt-Ve.y0+10,Ve=$(Ve,St,Re,be),we.nodes.forEach(function(nt){y(nt,Ae)==y(Ve,Ae)||nt.column!=Ve.column||nt.y0Ve.y1&&$(nt,St,Re,be)}))}})}})}function oe(we,Re){return we.y0>Re.y0&&we.y0Re.y0&&we.y1Re.y1}function $(we,Re,be,Ae){return we.y0+Re>=be&&we.y1+Re<=Ae&&(we.y0=we.y0+Re,we.y1=we.y1+Re,we.targetLinks.forEach(function(me){me.y1=me.y1+Re}),we.sourceLinks.forEach(function(me){me.y0=me.y0+Re})),we}function Z(we,Re,be,Ae){we.nodes.forEach(function(me){Ae&&me.y+(me.y1-me.y0)>Re&&(me.y=me.y-(me.y+(me.y1-me.y0)-Re));var Le=we.links.filter(function(ke){return y(ke.source,be)==y(me,be)}),He=Le.length;He>1&&Le.sort(function(ke,Ve){if(!ke.circular&&!Ve.circular){if(ke.target.column==Ve.target.column)return ke.y1-Ve.y1;if(ne(ke,Ve)){if(ke.target.column>Ve.target.column){var Ie=V(Ve,ke);return ke.y1-Ie}if(Ve.target.column>ke.target.column){var rt=V(ke,Ve);return rt-Ve.y1}}else return ke.y1-Ve.y1}if(ke.circular&&!Ve.circular)return ke.circularLinkType=="top"?-1:1;if(Ve.circular&&!ke.circular)return Ve.circularLinkType=="top"?1:-1;if(ke.circular&&Ve.circular)return ke.circularLinkType===Ve.circularLinkType&&ke.circularLinkType=="top"?ke.target.column===Ve.target.column?ke.target.y1-Ve.target.y1:Ve.target.column-ke.target.column:ke.circularLinkType===Ve.circularLinkType&&ke.circularLinkType=="bottom"?ke.target.column===Ve.target.column?Ve.target.y1-ke.target.y1:ke.target.column-Ve.target.column:ke.circularLinkType=="top"?-1:1});var Ue=me.y0;Le.forEach(function(ke){ke.y0=Ue+ke.width/2,Ue=Ue+ke.width}),Le.forEach(function(ke,Ve){if(ke.circularLinkType=="bottom"){var Ie=Ve+1,rt=0;for(Ie;Ie1&&me.sort(function(Ue,ke){if(!Ue.circular&&!ke.circular){if(Ue.source.column==ke.source.column)return Ue.y0-ke.y0;if(ne(Ue,ke)){if(ke.source.column0?"up":"down"}function ge(we,Re){return y(we.source,Re)==y(we.target,Re)}function Te(we,Re,be){var Ae=we.nodes,me=we.links,Le=!1,He=!1;if(me.forEach(function(Ke){Ke.circularLinkType=="top"?Le=!0:Ke.circularLinkType=="bottom"&&(He=!0)}),Le==!1||He==!1){var Ue=(0,g.SY)(Ae,function(Ke){return Ke.y0}),ke=(0,g.kv)(Ae,function(Ke){return Ke.y1}),Ve=ke-Ue,Ie=be-Re,rt=Ie/Ve;Ae.forEach(function(Ke){var $e=(Ke.y1-Ke.y0)*rt;Ke.y0=(Ke.y0-Ue)*rt,Ke.y1=Ke.y0+$e}),me.forEach(function(Ke){Ke.y0=(Ke.y0-Ue)*rt,Ke.y1=(Ke.y1-Ue)*rt,Ke.width=Ke.width*rt})}}},26800:function(G,U,e){e.r(U),e.d(U,{sankey:function(){return d},sankeyCenter:function(){return p},sankeyJustify:function(){return v},sankeyLeft:function(){return S},sankeyLinkHorizontal:function(){return y},sankeyRight:function(){return x}});var g=e(84706),C=e(34712);function i(E){return E.target.depth}function S(E){return E.depth}function x(E,T){return T-1-E.height}function v(E,T){return E.sourceLinks.length?E.depth:T-1}function p(E){return E.targetLinks.length?E.depth:E.sourceLinks.length?(0,g.SY)(E.sourceLinks,i)-1:0}function r(E){return function(){return E}}function t(E,T){return n(E.source,T.source)||E.index-T.index}function a(E,T){return n(E.target,T.target)||E.index-T.index}function n(E,T){return E.y0-T.y0}function f(E){return E.value}function c(E){return(E.y0+E.y1)/2}function l(E){return c(E.source)*E.value}function m(E){return c(E.target)*E.value}function h(E){return E.index}function b(E){return E.nodes}function u(E){return E.links}function o(E,T){var s=E.get(T);if(!s)throw new Error("missing: "+T);return s}function d(){var E=0,T=0,s=1,L=1,M=24,z=8,D=h,N=v,I=b,k=u,B=32,O=2/3;function H(){var J={nodes:I.apply(null,arguments),links:k.apply(null,arguments)};return Y(J),j(J),te(J),ie(J),ue(J),J}H.update=function(J){return ue(J),J},H.nodeId=function(J){return arguments.length?(D=typeof J=="function"?J:r(J),H):D},H.nodeAlign=function(J){return arguments.length?(N=typeof J=="function"?J:r(J),H):N},H.nodeWidth=function(J){return arguments.length?(M=+J,H):M},H.nodePadding=function(J){return arguments.length?(z=+J,H):z},H.nodes=function(J){return arguments.length?(I=typeof J=="function"?J:r(J),H):I},H.links=function(J){return arguments.length?(k=typeof J=="function"?J:r(J),H):k},H.size=function(J){return arguments.length?(E=T=0,s=+J[0],L=+J[1],H):[s-E,L-T]},H.extent=function(J){return arguments.length?(E=+J[0][0],s=+J[1][0],T=+J[0][1],L=+J[1][1],H):[[E,T],[s,L]]},H.iterations=function(J){return arguments.length?(B=+J,H):B};function Y(J){J.nodes.forEach(function(ee,V){ee.index=V,ee.sourceLinks=[],ee.targetLinks=[]});var X=(0,C.kH)(J.nodes,D);J.links.forEach(function(ee,V){ee.index=V;var Q=ee.source,oe=ee.target;typeof Q!="object"&&(Q=ee.source=o(X,Q)),typeof oe!="object"&&(oe=ee.target=o(X,oe)),Q.sourceLinks.push(ee),oe.targetLinks.push(ee)})}function j(J){J.nodes.forEach(function(X){X.value=Math.max((0,g.oh)(X.sourceLinks,f),(0,g.oh)(X.targetLinks,f))})}function te(J){var X,ee,V;for(X=J.nodes,ee=[],V=0;X.length;++V,X=ee,ee=[])X.forEach(function(oe){oe.depth=V,oe.sourceLinks.forEach(function($){ee.indexOf($.target)<0&&ee.push($.target)})});for(X=J.nodes,ee=[],V=0;X.length;++V,X=ee,ee=[])X.forEach(function(oe){oe.height=V,oe.targetLinks.forEach(function($){ee.indexOf($.source)<0&&ee.push($.source)})});var Q=(s-E-M)/(V-1);J.nodes.forEach(function(oe){oe.x1=(oe.x0=E+Math.max(0,Math.min(V-1,Math.floor(N.call(null,oe,V))))*Q)+M})}function ie(J){var X=(0,C.UJ)().key(function(se){return se.x0}).sortKeys(g.XE).entries(J.nodes).map(function(se){return se.values});Q(),Z();for(var ee=1,V=B;V>0;--V)$(ee*=.99),Z(),oe(ee),Z();function Q(){var se=(0,g.kv)(X,function(ge){return ge.length}),ne=O*(L-T)/(se-1);z>ne&&(z=ne);var ce=(0,g.SY)(X,function(ge){return(L-T-(ge.length-1)*z)/(0,g.oh)(ge,f)});X.forEach(function(ge){ge.forEach(function(Te,we){Te.y1=(Te.y0=we)+Te.value*ce})}),J.links.forEach(function(ge){ge.width=ge.value*ce})}function oe(se){X.forEach(function(ne){ne.forEach(function(ce){if(ce.targetLinks.length){var ge=((0,g.oh)(ce.targetLinks,l)/(0,g.oh)(ce.targetLinks,f)-c(ce))*se;ce.y0+=ge,ce.y1+=ge}})})}function $(se){X.slice().reverse().forEach(function(ne){ne.forEach(function(ce){if(ce.sourceLinks.length){var ge=((0,g.oh)(ce.sourceLinks,m)/(0,g.oh)(ce.sourceLinks,f)-c(ce))*se;ce.y0+=ge,ce.y1+=ge}})})}function Z(){X.forEach(function(se){var ne,ce,ge=T,Te=se.length,we;for(se.sort(n),we=0;we0&&(ne.y0+=ce,ne.y1+=ce),ge=ne.y1+z;if(ce=ge-z-L,ce>0)for(ge=ne.y0-=ce,ne.y1-=ce,we=Te-2;we>=0;--we)ne=se[we],ce=ne.y1+z-ge,ce>0&&(ne.y0-=ce,ne.y1-=ce),ge=ne.y0})}}function ue(J){J.nodes.forEach(function(X){X.sourceLinks.sort(a),X.targetLinks.sort(t)}),J.nodes.forEach(function(X){var ee=X.y0,V=ee;X.sourceLinks.forEach(function(Q){Q.y0=ee+Q.width/2,ee+=Q.width}),X.targetLinks.forEach(function(Q){Q.y1=V+Q.width/2,V+=Q.width})})}return H}var w=e(10132);function A(E){return[E.source.x1,E.y0]}function _(E){return[E.target.x0,E.y1]}function y(){return(0,w.ak)().source(A).target(_)}},33428:function(G,U,e){var g,C;(function(){var i={version:"3.8.0"},S=[].slice,x=function(fe){return S.call(fe)},v=self.document;function p(fe){return fe&&(fe.ownerDocument||fe.document||fe).documentElement}function r(fe){return fe&&(fe.ownerDocument&&fe.ownerDocument.defaultView||fe.document&&fe||fe.defaultView)}if(v)try{x(v.documentElement.childNodes)[0].nodeType}catch{x=function(Ce){for(var Be=Ce.length,tt=new Array(Be);Be--;)tt[Be]=Ce[Be];return tt}}if(Date.now||(Date.now=function(){return+new Date}),v)try{v.createElement("DIV").style.setProperty("opacity",0,"")}catch{var t=this.Element.prototype,a=t.setAttribute,n=t.setAttributeNS,f=this.CSSStyleDeclaration.prototype,c=f.setProperty;t.setAttribute=function(Ce,Be){a.call(this,Ce,Be+"")},t.setAttributeNS=function(Ce,Be,tt){n.call(this,Ce,Be,tt+"")},f.setProperty=function(Ce,Be,tt){c.call(this,Ce,Be+"",tt)}}i.ascending=l;function l(fe,Ce){return feCe?1:fe>=Ce?0:NaN}i.descending=function(fe,Ce){return Cefe?1:Ce>=fe?0:NaN},i.min=function(fe,Ce){var Be=-1,tt=fe.length,at,ft;if(arguments.length===1){for(;++Be=ft){at=ft;break}for(;++Beft&&(at=ft)}else{for(;++Be=ft){at=ft;break}for(;++Beft&&(at=ft)}return at},i.max=function(fe,Ce){var Be=-1,tt=fe.length,at,ft;if(arguments.length===1){for(;++Be=ft){at=ft;break}for(;++Beat&&(at=ft)}else{for(;++Be=ft){at=ft;break}for(;++Beat&&(at=ft)}return at},i.extent=function(fe,Ce){var Be=-1,tt=fe.length,at,ft,Dt;if(arguments.length===1){for(;++Be=ft){at=Dt=ft;break}for(;++Beft&&(at=ft),Dt=ft){at=Dt=ft;break}for(;++Beft&&(at=ft),Dt1)return Dt/(Yt-1)},i.deviation=function(){var fe=i.variance.apply(this,arguments);return fe&&Math.sqrt(fe)};function b(fe){return{left:function(Ce,Be,tt,at){for(arguments.length<3&&(tt=0),arguments.length<4&&(at=Ce.length);tt>>1;fe(Ce[ft],Be)<0?tt=ft+1:at=ft}return tt},right:function(Ce,Be,tt,at){for(arguments.length<3&&(tt=0),arguments.length<4&&(at=Ce.length);tt>>1;fe(Ce[ft],Be)>0?at=ft:tt=ft+1}return tt}}}var u=b(l);i.bisectLeft=u.left,i.bisect=i.bisectRight=u.right,i.bisector=function(fe){return b(fe.length===1?function(Ce,Be){return l(fe(Ce),Be)}:fe)},i.shuffle=function(fe,Ce,Be){(tt=arguments.length)<3&&(Be=fe.length,tt<2&&(Ce=0));for(var tt=Be-Ce,at,ft;tt;)ft=Math.random()*tt--|0,at=fe[tt+Ce],fe[tt+Ce]=fe[ft+Ce],fe[ft+Ce]=at;return fe},i.permute=function(fe,Ce){for(var Be=Ce.length,tt=new Array(Be);Be--;)tt[Be]=fe[Ce[Be]];return tt},i.pairs=function(fe){for(var Ce=0,Be=fe.length-1,tt=fe[0],at=new Array(Be<0?0:Be);Ce=0;)for(Dt=fe[Ce],Be=Dt.length;--Be>=0;)ft[--at]=Dt[Be];return ft};var d=Math.abs;i.range=function(fe,Ce,Be){if(arguments.length<3&&(Be=1,arguments.length<2&&(Ce=fe,fe=0)),(Ce-fe)/Be===1/0)throw new Error("infinite range");var tt=[],at=w(d(Be)),ft=-1,Dt;if(fe*=at,Ce*=at,Be*=at,Be<0)for(;(Dt=fe+Be*++ft)>Ce;)tt.push(Dt/at);else for(;(Dt=fe+Be*++ft)=Ce.length)return at?at.call(fe,Yt):tt?Yt.sort(tt):Yt;for(var nr=-1,_r=Yt.length,Lr=Ce[Zt++],Jr,on,Rr,Br=new _,jr;++nr<_r;)(jr=Br.get(Jr=Lr(on=Yt[nr])))?jr.push(on):Br.set(Jr,[on]);return Et?(on=Et(),Rr=function(un,vn){on.set(un,ft(Et,vn,Zt))}):(on={},Rr=function(un,vn){on[un]=ft(Et,vn,Zt)}),Br.forEach(Rr),on}function Dt(Et,Yt){if(Yt>=Ce.length)return Et;var Zt=[],nr=Be[Yt++];return Et.forEach(function(_r,Lr){Zt.push({key:_r,values:Dt(Lr,Yt)})}),nr?Zt.sort(function(_r,Lr){return nr(_r.key,Lr.key)}):Zt}return fe.map=function(Et,Yt){return ft(Yt,Et,0)},fe.entries=function(Et){return Dt(ft(i.map,Et,0),0)},fe.key=function(Et){return Ce.push(Et),fe},fe.sortKeys=function(Et){return Be[Ce.length-1]=Et,fe},fe.sortValues=function(Et){return tt=Et,fe},fe.rollup=function(Et){return at=Et,fe},fe},i.set=function(fe){var Ce=new I;if(fe)for(var Be=0,tt=fe.length;Be=0&&(tt=fe.slice(Be+1),fe=fe.slice(0,Be)),fe)return arguments.length<2?this[fe].on(tt):this[fe].on(tt,Ce);if(arguments.length===2){if(Ce==null)for(fe in this)this.hasOwnProperty(fe)&&this[fe].on(tt,null);return this}};function te(fe){var Ce=[],Be=new _;function tt(){for(var at=Ce,ft=-1,Dt=at.length,Et;++ft=0&&(Be=fe.slice(0,Ce))!=="xmlns"&&(fe=fe.slice(Ce+1)),ge.hasOwnProperty(Be)?{space:ge[Be],local:fe}:fe}},Z.attr=function(fe,Ce){if(arguments.length<2){if(typeof fe=="string"){var Be=this.node();return fe=i.ns.qualify(fe),fe.local?Be.getAttributeNS(fe.space,fe.local):Be.getAttribute(fe)}for(Ce in fe)this.each(Te(Ce,fe[Ce]));return this}return this.each(Te(fe,Ce))};function Te(fe,Ce){fe=i.ns.qualify(fe);function Be(){this.removeAttribute(fe)}function tt(){this.removeAttributeNS(fe.space,fe.local)}function at(){this.setAttribute(fe,Ce)}function ft(){this.setAttributeNS(fe.space,fe.local,Ce)}function Dt(){var Yt=Ce.apply(this,arguments);Yt==null?this.removeAttribute(fe):this.setAttribute(fe,Yt)}function Et(){var Yt=Ce.apply(this,arguments);Yt==null?this.removeAttributeNS(fe.space,fe.local):this.setAttributeNS(fe.space,fe.local,Yt)}return Ce==null?fe.local?tt:Be:typeof Ce=="function"?fe.local?Et:Dt:fe.local?ft:at}function we(fe){return fe.trim().replace(/\s+/g," ")}Z.classed=function(fe,Ce){if(arguments.length<2){if(typeof fe=="string"){var Be=this.node(),tt=(fe=be(fe)).length,at=-1;if(Ce=Be.classList){for(;++at=0;)(ft=Be[tt])&&(at&&at!==ft.nextSibling&&at.parentNode.insertBefore(ft,at),at=ft);return this},Z.sort=function(fe){fe=rt.apply(this,arguments);for(var Ce=-1,Be=this.length;++Ce=Ce&&(Ce=at+1);!(Yt=Dt[Ce])&&++Ce0&&(fe=fe.slice(0,at));var Dt=xt.get(fe);Dt&&(fe=Dt,ft=nt);function Et(){var nr=this[tt];nr&&(this.removeEventListener(fe,nr,nr.$),delete this[tt])}function Yt(){var nr=ft(Ce,x(arguments));Et.call(this),this.addEventListener(fe,this[tt]=nr,nr.$=Be),nr._=Ce}function Zt(){var nr=new RegExp("^__on([^.]+)"+i.requote(fe)+"$"),_r;for(var Lr in this)if(_r=Lr.match(nr)){var Jr=this[Lr];this.removeEventListener(_r[1],Jr,Jr.$),delete this[Lr]}}return at?Ce?Yt:Et:Ce?Y:Zt}var xt=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});v&&xt.forEach(function(fe){"on"+fe in v&&xt.remove(fe)});function St(fe,Ce){return function(Be){var tt=i.event;i.event=Be,Ce[0]=this.__data__;try{fe.apply(this,Ce)}finally{i.event=tt}}}function nt(fe,Ce){var Be=St(fe,Ce);return function(tt){var at=this,ft=tt.relatedTarget;(!ft||ft!==at&&!(ft.compareDocumentPosition(at)&8))&&Be.call(at,tt)}}var ze,Xe=0;function Je(fe){var Ce=".dragsuppress-"+ ++Xe,Be="click"+Ce,tt=i.select(r(fe)).on("touchmove"+Ce,ie).on("dragstart"+Ce,ie).on("selectstart"+Ce,ie);if(ze==null&&(ze="onselectstart"in fe?!1:O(fe.style,"userSelect")),ze){var at=p(fe).style,ft=at[ze];at[ze]="none"}return function(Dt){if(tt.on(Ce,null),ze&&(at[ze]=ft),Dt){var Et=function(){tt.on(Be,null)};tt.on(Be,function(){ie(),Et()},!0),setTimeout(Et,0)}}}i.mouse=function(fe){return Fe(fe,ue())};var We=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(fe,Ce){Ce.changedTouches&&(Ce=Ce.changedTouches[0]);var Be=fe.ownerSVGElement||fe;if(Be.createSVGPoint){var tt=Be.createSVGPoint();if(We<0){var at=r(fe);if(at.scrollX||at.scrollY){Be=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ft=Be[0][0].getScreenCTM();We=!(ft.f||ft.e),Be.remove()}}return We?(tt.x=Ce.pageX,tt.y=Ce.pageY):(tt.x=Ce.clientX,tt.y=Ce.clientY),tt=tt.matrixTransform(fe.getScreenCTM().inverse()),[tt.x,tt.y]}var Dt=fe.getBoundingClientRect();return[Ce.clientX-Dt.left-fe.clientLeft,Ce.clientY-Dt.top-fe.clientTop]}i.touch=function(fe,Ce,Be){if(arguments.length<3&&(Be=Ce,Ce=ue().changedTouches),Ce){for(var tt=0,at=Ce.length,ft;tt1?it:fe<-1?-it:Math.asin(fe)}function ct(fe){return((fe=Math.exp(fe))-1/fe)/2}function Tt(fe){return((fe=Math.exp(fe))+1/fe)/2}function Bt(fe){return((fe=Math.exp(2*fe))-1)/(fe+1)}var ir=Math.SQRT2,pt=2,Xt=4;i.interpolateZoom=function(fe,Ce){var Be=fe[0],tt=fe[1],at=fe[2],ft=Ce[0],Dt=Ce[1],Et=Ce[2],Yt=ft-Be,Zt=Dt-tt,nr=Yt*Yt+Zt*Zt,_r,Lr;if(nr0&&(Kn=Kn.transition().duration(Dt)),Kn.call(vn.event)}function ii(){Br&&Br.domain(Rr.range().map(function(Kn){return(Kn-fe.x)/fe.k}).map(Rr.invert)),un&&un.domain(jr.range().map(function(Kn){return(Kn-fe.y)/fe.k}).map(jr.invert))}function fi(Kn){Et++||Kn({type:"zoomstart"})}function Oi(Kn){ii(),Kn({type:"zoom",scale:fe.k,translate:[fe.x,fe.y]})}function Mi(Kn){--Et||(Kn({type:"zoomend"}),Be=null)}function Ii(){var Kn=this,Bi=on.of(Kn,arguments),Ti=0,Zi=i.select(r(Kn)).on(Zt,Ka).on(nr,Ja),ba=qr(i.mouse(Kn)),na=Je(Kn);Gt.call(Kn),fi(Bi);function Ka(){Ti=1,ui(i.mouse(Kn),ba),Oi(Bi)}function Ja(){Zi.on(Zt,null).on(nr,null),na(Ti),Mi(Bi)}}function ra(){var Kn=this,Bi=on.of(Kn,arguments),Ti={},Zi=0,ba,na=".zoom-"+i.event.changedTouches[0].identifier,Ka="touchmove"+na,Ja="touchend"+na,eo=[],wa=i.select(Kn),uo=Je(Kn);Ei(),fi(Bi),wa.on(Yt,null).on(Lr,Ei);function oi(){var to=i.touches(Kn);return ba=fe.k,to.forEach(function(ca){ca.identifier in Ti&&(Ti[ca.identifier]=qr(ca))}),to}function Ei(){var to=i.event.target;i.select(to).on(Ka,Ao).on(Ja,Lo),eo.push(to);for(var ca=i.event.changedTouches,Va=0,Oa=ca.length;Va1){var Ea=is[0],El=is[1],ji=Ea[0]-El[0],_a=Ea[1]-El[1];Zi=ji*ji+_a*_a}}function Ao(){var to=i.touches(Kn),ca,Va,Oa,is;Gt.call(Kn);for(var bs=0,Ea=to.length;bs1?1:Ce,Be=Be<0?0:Be>1?1:Be,at=Be<=.5?Be*(1+Ce):Be+Ce-Be*Ce,tt=2*Be-at;function ft(Et){return Et>360?Et-=360:Et<0&&(Et+=360),Et<60?tt+(at-tt)*Et/60:Et<180?at:Et<240?tt+(at-tt)*(240-Et)/60:tt}function Dt(Et){return Math.round(ft(Et)*255)}return new fr(Dt(fe+120),Dt(fe),Dt(fe-120))}i.hcl=It;function It(fe,Ce,Be){return this instanceof It?(this.h=+fe,this.c=+Ce,void(this.l=+Be)):arguments.length<2?fe instanceof It?new It(fe.h,fe.c,fe.l):fe instanceof Vt?Nt(fe.l,fe.a,fe.b):Nt((fe=Gr((fe=i.rgb(fe)).r,fe.g,fe.b)).l,fe.a,fe.b):new It(fe,Ce,Be)}var Pt=It.prototype=new gt;Pt.brighter=function(fe){return new It(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?fe:1)))},Pt.darker=function(fe){return new It(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?fe:1)))},Pt.rgb=function(){return kt(this.h,this.c,this.l).rgb()};function kt(fe,Ce,Be){return isNaN(fe)&&(fe=0),isNaN(Ce)&&(Ce=0),new Vt(Be,Math.cos(fe*=mt)*Ce,Math.sin(fe)*Ce)}i.lab=Vt;function Vt(fe,Ce,Be){return this instanceof Vt?(this.l=+fe,this.a=+Ce,void(this.b=+Be)):arguments.length<2?fe instanceof Vt?new Vt(fe.l,fe.a,fe.b):fe instanceof It?kt(fe.h,fe.c,fe.l):Gr((fe=fr(fe)).r,fe.g,fe.b):new Vt(fe,Ce,Be)}var Jt=18,ur=.95047,hr=1,vr=1.08883,Ye=Vt.prototype=new gt;Ye.brighter=function(fe){return new Vt(Math.min(100,this.l+Jt*(arguments.length?fe:1)),this.a,this.b)},Ye.darker=function(fe){return new Vt(Math.max(0,this.l-Jt*(arguments.length?fe:1)),this.a,this.b)},Ye.rgb=function(){return Ge(this.l,this.a,this.b)};function Ge(fe,Ce,Be){var tt=(fe+16)/116,at=tt+Ce/500,ft=tt-Be/200;return at=Ot(at)*ur,tt=Ot(tt)*hr,ft=Ot(ft)*vr,new fr(tr(3.2404542*at-1.5371385*tt-.4985314*ft),tr(-.969266*at+1.8760108*tt+.041556*ft),tr(.0556434*at-.2040259*tt+1.0572252*ft))}function Nt(fe,Ce,Be){return fe>0?new It(Math.atan2(Be,Ce)*bt,Math.sqrt(Ce*Ce+Be*Be),fe):new It(NaN,NaN,fe)}function Ot(fe){return fe>.206893034?fe*fe*fe:(fe-.13793103448275862)/7.787037}function Qt(fe){return fe>.008856?Math.pow(fe,.3333333333333333):7.787037*fe+.13793103448275862}function tr(fe){return Math.round(255*(fe<=.00304?12.92*fe:1.055*Math.pow(fe,.4166666666666667)-.055))}i.rgb=fr;function fr(fe,Ce,Be){return this instanceof fr?(this.r=~~fe,this.g=~~Ce,void(this.b=~~Be)):arguments.length<2?fe instanceof fr?new fr(fe.r,fe.g,fe.b):xr(""+fe,fr,Ct):new fr(fe,Ce,Be)}function rr(fe){return new fr(fe>>16,fe>>8&255,fe&255)}function Ht(fe){return rr(fe)+""}var dr=fr.prototype=new gt;dr.brighter=function(fe){fe=Math.pow(.7,arguments.length?fe:1);var Ce=this.r,Be=this.g,tt=this.b,at=30;return!Ce&&!Be&&!tt?new fr(at,at,at):(Ce&&Ce>4,tt=tt>>4|tt,at=Yt&240,at=at>>4|at,ft=Yt&15,ft=ft<<4|ft):fe.length===7&&(tt=(Yt&16711680)>>16,at=(Yt&65280)>>8,ft=Yt&255)),Ce(tt,at,ft))}function pr(fe,Ce,Be){var tt=Math.min(fe/=255,Ce/=255,Be/=255),at=Math.max(fe,Ce,Be),ft=at-tt,Dt,Et,Yt=(at+tt)/2;return ft?(Et=Yt<.5?ft/(at+tt):ft/(2-at-tt),fe==at?Dt=(Ce-Be)/ft+(Ce0&&Yt<1?0:Dt),new st(Dt,Et,Yt)}function Gr(fe,Ce,Be){fe=Pr(fe),Ce=Pr(Ce),Be=Pr(Be);var tt=Qt((.4124564*fe+.3575761*Ce+.1804375*Be)/ur),at=Qt((.2126729*fe+.7151522*Ce+.072175*Be)/hr),ft=Qt((.0193339*fe+.119192*Ce+.9503041*Be)/vr);return Vt(116*at-16,500*(tt-at),200*(at-ft))}function Pr(fe){return(fe/=255)<=.04045?fe/12.92:Math.pow((fe+.055)/1.055,2.4)}function Dr(fe){var Ce=parseFloat(fe);return fe.charAt(fe.length-1)==="%"?Math.round(Ce*2.55):Ce}var cn=i.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});cn.forEach(function(fe,Ce){cn.set(fe,rr(Ce))});function rn(fe){return typeof fe=="function"?fe:function(){return fe}}i.functor=rn,i.xhr=Cn(k);function Cn(fe){return function(Ce,Be,tt){return arguments.length===2&&typeof Be=="function"&&(tt=Be,Be=null),En(Ce,Be,fe,tt)}}function En(fe,Ce,Be,tt){var at={},ft=i.dispatch("beforesend","progress","load","error"),Dt={},Et=new XMLHttpRequest,Yt=null;self.XDomainRequest&&!("withCredentials"in Et)&&/^(http(s)?:)?\/\//.test(fe)&&(Et=new XDomainRequest),"onload"in Et?Et.onload=Et.onerror=Zt:Et.onreadystatechange=function(){Et.readyState>3&&Zt()};function Zt(){var nr=Et.status,_r;if(!nr&&Cr(Et)||nr>=200&&nr<300||nr===304){try{_r=Be.call(at,Et)}catch(Lr){ft.error.call(at,Lr);return}ft.load.call(at,_r)}else ft.error.call(at,Et)}return Et.onprogress=function(nr){var _r=i.event;i.event=nr;try{ft.progress.call(at,Et)}finally{i.event=_r}},at.header=function(nr,_r){return nr=(nr+"").toLowerCase(),arguments.length<2?Dt[nr]:(_r==null?delete Dt[nr]:Dt[nr]=_r+"",at)},at.mimeType=function(nr){return arguments.length?(Ce=nr==null?null:nr+"",at):Ce},at.responseType=function(nr){return arguments.length?(Yt=nr,at):Yt},at.response=function(nr){return Be=nr,at},["get","post"].forEach(function(nr){at[nr]=function(){return at.send.apply(at,[nr].concat(x(arguments)))}}),at.send=function(nr,_r,Lr){if(arguments.length===2&&typeof _r=="function"&&(Lr=_r,_r=null),Et.open(nr,fe,!0),Ce!=null&&!("accept"in Dt)&&(Dt.accept=Ce+",*/*"),Et.setRequestHeader)for(var Jr in Dt)Et.setRequestHeader(Jr,Dt[Jr]);return Ce!=null&&Et.overrideMimeType&&Et.overrideMimeType(Ce),Yt!=null&&(Et.responseType=Yt),Lr!=null&&at.on("error",Lr).on("load",function(on){Lr(null,on)}),ft.beforesend.call(at,Et),Et.send(_r??null),at},at.abort=function(){return Et.abort(),at},i.rebind(at,ft,"on"),tt==null?at:at.get(Tr(tt))}function Tr(fe){return fe.length===1?function(Ce,Be){fe(Ce==null?Be:null)}:fe}function Cr(fe){var Ce=fe.responseType;return Ce&&Ce!=="text"?fe.response:fe.responseText}i.dsv=function(fe,Ce){var Be=new RegExp('["'+fe+` +]`),tt=fe.charCodeAt(0);function at(Zt,nr,_r){arguments.length<3&&(_r=nr,nr=null);var Lr=En(Zt,Ce,nr==null?ft:Dt(nr),_r);return Lr.row=function(Jr){return arguments.length?Lr.response((nr=Jr)==null?ft:Dt(Jr)):nr},Lr}function ft(Zt){return at.parse(Zt.responseText)}function Dt(Zt){return function(nr){return at.parse(nr.responseText,Zt)}}at.parse=function(Zt,nr){var _r;return at.parseRows(Zt,function(Lr,Jr){if(_r)return _r(Lr,Jr-1);var on=function(Rr){for(var Br={},jr=Lr.length,un=0;un=on)return Lr;if(un)return un=!1,_r;var Hn=Rr;if(Zt.charCodeAt(Hn)===34){for(var qn=Hn;qn++24?(isFinite(Ce)&&(clearTimeout(pn),pn=setTimeout(kn,Ce)),an=0):(an=1,gn(kn))}i.timer.flush=function(){ni(),ci()};function ni(){for(var fe=Date.now(),Ce=Wr;Ce;)fe>=Ce.t&&Ce.c(fe-Ce.t)&&(Ce.c=null),Ce=Ce.n;return fe}function ci(){for(var fe,Ce=Wr,Be=1/0;Ce;)Ce.c?(Ce.t=0;--Et)Rr.push(at[Zt[_r[Et]][2]]);for(Et=+Jr;Et1&&vt(fe[Be[tt-2]],fe[Be[tt-1]],fe[at])<=0;)--tt;Be[tt++]=at}return Be.slice(0,tt)}function wr(fe,Ce){return fe[0]-Ce[0]||fe[1]-Ce[1]}i.geom.polygon=function(fe){return ee(fe,nn),fe};var nn=i.geom.polygon.prototype=[];nn.area=function(){for(var fe=-1,Ce=this.length,Be,tt=this[Ce-1],at=0;++feye)Et=Et.L;else if(Dt=Ce-sn(Et,Be),Dt>ye){if(!Et.R){tt=Et;break}Et=Et.R}else{ft>-ye?(tt=Et.P,at=Et):Dt>-ye?(tt=Et,at=Et.N):tt=at=Et;break}var Yt=Ar(fe);if(Bn.insert(tt,Yt),!(!tt&&!at)){if(tt===at){Ln(tt),at=Ar(tt.site),Bn.insert(Yt,at),Yt.edge=at.edge=ai(tt.site,Yt.site),wn(tt),wn(at);return}if(!at){Yt.edge=ai(tt.site,Yt.site);return}Ln(tt),Ln(at);var Zt=tt.site,nr=Zt.x,_r=Zt.y,Lr=fe.x-nr,Jr=fe.y-_r,on=at.site,Rr=on.x-nr,Br=on.y-_r,jr=2*(Lr*Br-Jr*Rr),un=Lr*Lr+Jr*Jr,vn=Rr*Rr+Br*Br,qr={x:(Br*un-Jr*vn)/jr+nr,y:(Lr*vn-Rr*un)/jr+_r};Ci(at.edge,Zt,on,qr),Yt.edge=ai(Zt,fe,null,qr),at.edge=ai(fe,on,null,qr),wn(tt),wn(at)}}function hn(fe,Ce){var Be=fe.site,tt=Be.x,at=Be.y,ft=at-Ce;if(!ft)return tt;var Dt=fe.P;if(!Dt)return-1/0;Be=Dt.site;var Et=Be.x,Yt=Be.y,Zt=Yt-Ce;if(!Zt)return Et;var nr=Et-tt,_r=1/ft-1/Zt,Lr=nr/Zt;return _r?(-Lr+Math.sqrt(Lr*Lr-2*_r*(nr*nr/(-2*Zt)-Yt+Zt/2+at-ft/2)))/_r+tt:(tt+Et)/2}function sn(fe,Ce){var Be=fe.N;if(Be)return hn(Be,Ce);var tt=fe.site;return tt.y===Ce?tt.x:1/0}function Er(fe){this.site=fe,this.edges=[]}Er.prototype.prepare=function(){for(var fe=this.edges,Ce=fe.length,Be;Ce--;)Be=fe[Ce].edge,(!Be.b||!Be.a)&&fe.splice(Ce,1);return fe.sort(Hr),fe.length};function Zr(fe){for(var Ce=fe[0][0],Be=fe[1][0],tt=fe[0][1],at=fe[1][1],ft,Dt,Et,Yt,Zt=An,nr=Zt.length,_r,Lr,Jr,on,Rr,Br;nr--;)if(_r=Zt[nr],!(!_r||!_r.prepare()))for(Jr=_r.edges,on=Jr.length,Lr=0;Lrye||d(Yt-Dt)>ye)&&(Jr.splice(Lr,0,new pa(pi(_r.site,Br,d(Et-Ce)ye?{x:Ce,y:d(ft-Ce)ye?{x:d(Dt-at)ye?{x:Be,y:d(ft-Be)ye?{x:d(Dt-tt)=-Ee)){var Lr=Yt*Yt+Zt*Zt,Jr=nr*nr+Br*Br,on=(Br*Lr-Zt*Jr)/_r,Rr=(Yt*Jr-nr*Lr)/_r,Br=Rr+Et,jr=Sr.pop()||new Qr;jr.arc=fe,jr.site=at,jr.x=on+Dt,jr.y=Br+Math.sqrt(on*on+Rr*Rr),jr.cy=Br,fe.circle=jr;for(var un=null,vn=Di._;vn;)if(jr.y0)){if(Rr/=Jr,Jr<0){if(Rr<_r)return;Rr0){if(Rr>Lr)return;Rr>_r&&(_r=Rr)}if(Rr=Be-Et,!(!Jr&&Rr<0)){if(Rr/=Jr,Jr<0){if(Rr>Lr)return;Rr>_r&&(_r=Rr)}else if(Jr>0){if(Rr<_r)return;Rr0)){if(Rr/=on,on<0){if(Rr<_r)return;Rr0){if(Rr>Lr)return;Rr>_r&&(_r=Rr)}if(Rr=tt-Yt,!(!on&&Rr<0)){if(Rr/=on,on<0){if(Rr>Lr)return;Rr>_r&&(_r=Rr)}else if(on>0){if(Rr<_r)return;Rr0&&(at.a={x:Et+_r*Jr,y:Yt+_r*on}),Lr<1&&(at.b={x:Et+Lr*Jr,y:Yt+Lr*on}),at}}}}}}function Un(fe){for(var Ce=Tn,Be=Pn(fe[0][0],fe[0][1],fe[1][0],fe[1][1]),tt=Ce.length,at;tt--;)at=Ce[tt],(!On(at,fe)||!Be(at)||d(at.a.x-at.b.x)=ft)return;if(nr>Lr){if(!tt)tt={x:on,y:Dt};else if(tt.y>=Et)return;Be={x:on,y:Et}}else{if(!tt)tt={x:on,y:Et};else if(tt.y1)if(nr>Lr){if(!tt)tt={x:(Dt-jr)/Br,y:Dt};else if(tt.y>=Et)return;Be={x:(Et-jr)/Br,y:Et}}else{if(!tt)tt={x:(Et-jr)/Br,y:Et};else if(tt.y=ft)return;Be={x:ft,y:Br*ft+jr}}else{if(!tt)tt={x:ft,y:Br*ft+jr};else if(tt.x=nr&&jr.x<=Lr&&jr.y>=_r&&jr.y<=Jr?[[nr,Jr],[Lr,Jr],[Lr,_r],[nr,_r]]:[];un.point=Yt[Rr]}),Zt}function Et(Yt){return Yt.map(function(Zt,nr){return{x:Math.round(tt(Zt,nr)/ye)*ye,y:Math.round(at(Zt,nr)/ye)*ye,i:nr}})}return Dt.links=function(Yt){return Nu(Et(Yt)).edges.filter(function(Zt){return Zt.l&&Zt.r}).map(function(Zt){return{source:Yt[Zt.l.i],target:Yt[Zt.r.i]}})},Dt.triangles=function(Yt){var Zt=[];return Nu(Et(Yt)).cells.forEach(function(nr,_r){for(var Lr=nr.site,Jr=nr.edges.sort(Hr),on=-1,Rr=Jr.length,Br,jr=Jr[Rr-1].edge,un=jr.l===Lr?jr.r:jr.l;++onvn&&(vn=nr.x),nr.y>qr&&(qr=nr.y),Jr.push(nr.x),on.push(nr.y);else for(Rr=0;Rrvn&&(vn=Hn),qn>qr&&(qr=qn),Jr.push(Hn),on.push(qn)}var ui=vn-jr,Qn=qr-un;ui>Qn?qr=un+ui:vn=jr+Qn;function ii(Mi,Ii,ra,ka,la,Kn,Bi,Ti){if(!(isNaN(ra)||isNaN(ka)))if(Mi.leaf){var Zi=Mi.x,ba=Mi.y;if(Zi!=null)if(d(Zi-ra)+d(ba-ka)<.01)fi(Mi,Ii,ra,ka,la,Kn,Bi,Ti);else{var na=Mi.point;Mi.x=Mi.y=Mi.point=null,fi(Mi,na,Zi,ba,la,Kn,Bi,Ti),fi(Mi,Ii,ra,ka,la,Kn,Bi,Ti)}else Mi.x=ra,Mi.y=ka,Mi.point=Ii}else fi(Mi,Ii,ra,ka,la,Kn,Bi,Ti)}function fi(Mi,Ii,ra,ka,la,Kn,Bi,Ti){var Zi=(la+Bi)*.5,ba=(Kn+Ti)*.5,na=ra>=Zi,Ka=ka>=ba,Ja=Ka<<1|na;Mi.leaf=!1,Mi=Mi.nodes[Ja]||(Mi.nodes[Ja]=ho()),na?la=Zi:Bi=Zi,Ka?Kn=ba:Ti=ba,ii(Mi,Ii,ra,ka,la,Kn,Bi,Ti)}var Oi=ho();if(Oi.add=function(Mi){ii(Oi,Mi,+_r(Mi,++Rr),+Lr(Mi,Rr),jr,un,vn,qr)},Oi.visit=function(Mi){sl(Mi,Oi,jr,un,vn,qr)},Oi.find=function(Mi){return vu(Oi,Mi[0],Mi[1],jr,un,vn,qr)},Rr=-1,Ce==null){for(;++Rrft||Lr>Dt||Jr=Hn,Qn=Be>=qn,ii=Qn<<1|ui,fi=ii+4;iiBe&&(ft=Ce.slice(Be,ft),Et[Dt]?Et[Dt]+=ft:Et[++Dt]=ft),(tt=tt[0])===(at=at[0])?Et[Dt]?Et[Dt]+=at:Et[++Dt]=at:(Et[++Dt]=null,Yt.push({i:Dt,x:za(tt,at)})),Be=$a.lastIndex;return Be=0&&!(tt=i.interpolators[Be](fe,Ce)););return tt}i.interpolators=[function(fe,Ce){var Be=typeof Ce;return(Be==="string"?cn.has(Ce.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Ce)?Ra:Ua:Ce instanceof gt?Ra:Array.isArray(Ce)?_o:Be==="object"&&isNaN(Ce)?ll:za)(fe,Ce)}],i.interpolateArray=_o;function _o(fe,Ce){var Be=[],tt=[],at=fe.length,ft=Ce.length,Dt=Math.min(fe.length,Ce.length),Et;for(Et=0;Et=0?fe.slice(0,Ce):fe,tt=Ce>=0?fe.slice(Ce+1):"in";return Be=bo.get(Be)||wf,tt=xc.get(tt)||k,es(tt(Be.apply(null,S.call(arguments,1))))};function es(fe){return function(Ce){return Ce<=0?0:Ce>=1?1:fe(Ce)}}function Za(fe){return function(Ce){return 1-fe(1-Ce)}}function Uu(fe){return function(Ce){return .5*(Ce<.5?fe(2*Ce):2-fe(2-2*Ce))}}function Cs(fe){return fe*fe}function ts(fe){return fe*fe*fe}function Hu(fe){if(fe<=0)return 0;if(fe>=1)return 1;var Ce=fe*fe,Be=Ce*fe;return 4*(fe<.5?Be:3*(fe-Ce)+Be-.75)}function Tf(fe){return function(Ce){return Math.pow(Ce,fe)}}function bc(fe){return 1-Math.cos(fe*it)}function du(fe){return Math.pow(2,10*(fe-1))}function wc(fe){return 1-Math.sqrt(1-fe*fe)}function Tc(fe,Ce){var Be;return arguments.length<2&&(Ce=.45),arguments.length?Be=Ce/Ne*Math.asin(1/fe):(fe=1,Be=Ce/4),function(tt){return 1+fe*Math.pow(2,-10*tt)*Math.sin((tt-Be)*Ne/Ce)}}function Ac(fe){return fe||(fe=1.70158),function(Ce){return Ce*Ce*((fe+1)*Ce-fe)}}function Vu(fe){return fe<.36363636363636365?7.5625*fe*fe:fe<.7272727272727273?7.5625*(fe-=.5454545454545454)*fe+.75:fe<.9090909090909091?7.5625*(fe-=.8181818181818182)*fe+.9375:7.5625*(fe-=.9545454545454546)*fe+.984375}i.interpolateHcl=Mc;function Mc(fe,Ce){fe=i.hcl(fe),Ce=i.hcl(Ce);var Be=fe.h,tt=fe.c,at=fe.l,ft=Ce.h-Be,Dt=Ce.c-tt,Et=Ce.l-at;return isNaN(Dt)&&(Dt=0,tt=isNaN(tt)?Ce.c:tt),isNaN(ft)?(ft=0,Be=isNaN(Be)?Ce.h:Be):ft>180?ft-=360:ft<-180&&(ft+=360),function(Yt){return kt(Be+ft*Yt,tt+Dt*Yt,at+Et*Yt)+""}}i.interpolateHsl=Sc;function Sc(fe,Ce){fe=i.hsl(fe),Ce=i.hsl(Ce);var Be=fe.h,tt=fe.s,at=fe.l,ft=Ce.h-Be,Dt=Ce.s-tt,Et=Ce.l-at;return isNaN(Dt)&&(Dt=0,tt=isNaN(tt)?Ce.s:tt),isNaN(ft)?(ft=0,Be=isNaN(Be)?Ce.h:Be):ft>180?ft-=360:ft<-180&&(ft+=360),function(Yt){return Ct(Be+ft*Yt,tt+Dt*Yt,at+Et*Yt)+""}}i.interpolateLab=Af;function Af(fe,Ce){fe=i.lab(fe),Ce=i.lab(Ce);var Be=fe.l,tt=fe.a,at=fe.b,ft=Ce.l-Be,Dt=Ce.a-tt,Et=Ce.b-at;return function(Yt){return Ge(Be+ft*Yt,tt+Dt*Yt,at+Et*Yt)+""}}i.interpolateRound=Mf;function Mf(fe,Ce){return Ce-=fe,function(Be){return Math.round(fe+Ce*Be)}}i.transform=function(fe){var Ce=v.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(Be){if(Be!=null){Ce.setAttribute("transform",Be);var tt=Ce.transform.baseVal.consolidate()}return new Ys(tt?tt.matrix:Sf)})(fe)};function Ys(fe){var Ce=[fe.a,fe.b],Be=[fe.c,fe.d],tt=zl(Ce),at=fl(Ce,Be),ft=zl(kl(Be,Ce,-at))||0;Ce[0]*Be[1]180?Ce+=360:Ce-fe>180&&(fe+=360),tt.push({i:Be.push(vs(Be)+"rotate(",null,")")-2,x:za(fe,Ce)})):Ce&&Be.push(vs(Be)+"rotate("+Ce+")")}function Ef(fe,Ce,Be,tt){fe!==Ce?tt.push({i:Be.push(vs(Be)+"skewX(",null,")")-2,x:za(fe,Ce)}):Ce&&Be.push(vs(Be)+"skewX("+Ce+")")}function _f(fe,Ce,Be,tt){if(fe[0]!==Ce[0]||fe[1]!==Ce[1]){var at=Be.push(vs(Be)+"scale(",null,",",null,")");tt.push({i:at-4,x:za(fe[0],Ce[0])},{i:at-2,x:za(fe[1],Ce[1])})}else(Ce[0]!==1||Ce[1]!==1)&&Be.push(vs(Be)+"scale("+Ce+")")}function gu(fe,Ce){var Be=[],tt=[];return fe=i.transform(fe),Ce=i.transform(Ce),Ec(fe.translate,Ce.translate,Be,tt),pu(fe.rotate,Ce.rotate,Be,tt),Ef(fe.skew,Ce.skew,Be,tt),_f(fe.scale,Ce.scale,Be,tt),fe=Ce=null,function(at){for(var ft=-1,Dt=tt.length,Et;++ft0?ft=qr:(Be.c=null,Be.t=NaN,Be=null,Ce.end({type:"end",alpha:ft=0})):qr>0&&(Ce.start({type:"start",alpha:ft=qr}),Be=_n(fe.tick)),fe):ft},fe.start=function(){var qr,Hn=Jr.length,qn=on.length,ui=tt[0],Qn=tt[1],ii,fi;for(qr=0;qr=0;)ft.push(nr=Zt[Yt]),nr.parent=Et,nr.depth=Et.depth+1;Be&&(Et.value=0),Et.children=Zt}else Be&&(Et.value=+Be.call(tt,Et,Et.depth)||0),delete Et.children;return wo(at,function(_r){var Lr,Jr;fe&&(Lr=_r.children)&&Lr.sort(fe),Be&&(Jr=_r.parent)&&(Jr.value+=_r.value)}),Dt}return tt.sort=function(at){return arguments.length?(fe=at,tt):fe},tt.children=function(at){return arguments.length?(Ce=at,tt):Ce},tt.value=function(at){return arguments.length?(Be=at,tt):Be},tt.revalue=function(at){return Be&&(dl(at,function(ft){ft.children&&(ft.value=0)}),wo(at,function(ft){var Dt;ft.children||(ft.value=+Be.call(tt,ft,ft.depth)||0),(Dt=ft.parent)&&(Dt.value+=ft.value)})),at},tt};function vl(fe,Ce){return i.rebind(fe,Ce,"sort","children","value"),fe.nodes=fe,fe.links=Cc,fe}function dl(fe,Ce){for(var Be=[fe];(fe=Be.pop())!=null;)if(Ce(fe),(at=fe.children)&&(tt=at.length))for(var tt,at;--tt>=0;)Be.push(at[tt])}function wo(fe,Ce){for(var Be=[fe],tt=[];(fe=Be.pop())!=null;)if(tt.push(fe),(Dt=fe.children)&&(ft=Dt.length))for(var at=-1,ft,Dt;++atat&&(at=Et),tt.push(Et)}for(Dt=0;Dttt&&(Be=Ce,tt=at);return Be}function Lf(fe){return fe.reduce(Vo,0)}function Vo(fe,Ce){return fe+Ce[1]}i.layout.histogram=function(){var fe=!0,Ce=Number,Be=Zs,tt=Pf;function at(ft,Lr){for(var Et=[],Yt=ft.map(Ce,this),Zt=Be.call(this,Yt,Lr),nr=tt.call(this,Zt,Yt,Lr),_r,Lr=-1,Jr=Yt.length,on=nr.length-1,Rr=fe?1:1/Jr,Br;++Lr0)for(Lr=-1;++Lr=Zt[0]&&Br<=Zt[1]&&(_r=Et[i.bisect(nr,Br,1,on)-1],_r.y+=Rr,_r.push(ft[Lr]));return Et}return at.value=function(ft){return arguments.length?(Ce=ft,at):Ce},at.range=function(ft){return arguments.length?(Be=rn(ft),at):Be},at.bins=function(ft){return arguments.length?(tt=typeof ft=="number"?function(Dt){return ju(Dt,ft)}:rn(ft),at):tt},at.frequency=function(ft){return arguments.length?(fe=!!ft,at):fe},at};function Pf(fe,Ce){return ju(fe,Math.ceil(Math.log(Ce.length)/Math.LN2+1))}function ju(fe,Ce){for(var Be=-1,tt=+fe[0],at=(fe[1]-tt)/Ce,ft=[];++Be<=Ce;)ft[Be]=at*Be+tt;return ft}function Zs(fe){return[i.min(fe),i.max(fe)]}i.layout.pack=function(){var fe=i.layout.hierarchy().sort(Ps),Ce=0,Be=[1,1],tt;function at(ft,Dt){var Et=fe.call(this,ft,Dt),Yt=Et[0],Zt=Be[0],nr=Be[1],_r=tt==null?Math.sqrt:typeof tt=="function"?tt:function(){return tt};if(Yt.x=Yt.y=0,wo(Yt,function(Jr){Jr.r=+_r(Jr.value)}),wo(Yt,Go),Ce){var Lr=Ce*(tt?1:Math.max(2*Yt.r/Zt,2*Yt.r/nr))/2;wo(Yt,function(Jr){Jr.r+=Lr}),wo(Yt,Go),wo(Yt,function(Jr){Jr.r-=Lr})}return Rs(Yt,Zt/2,nr/2,tt?1:1/Math.max(2*Yt.r/Zt,2*Yt.r/nr)),Et}return at.size=function(ft){return arguments.length?(Be=ft,at):Be},at.radius=function(ft){return arguments.length?(tt=ft==null||typeof ft=="function"?ft:+ft,at):tt},at.padding=function(ft){return arguments.length?(Ce=+ft,at):Ce},vl(at,fe)};function Ps(fe,Ce){return fe.value-Ce.value}function Tu(fe,Ce){var Be=fe._pack_next;fe._pack_next=Ce,Ce._pack_prev=fe,Ce._pack_next=Be,Be._pack_prev=Ce}function Da(fe,Ce){fe._pack_next=Ce,Ce._pack_prev=fe}function Bl(fe,Ce){var Be=Ce.x-fe.x,tt=Ce.y-fe.y,at=fe.r+Ce.r;return .999*at*at>Be*Be+tt*tt}function Go(fe){if(!(Ce=fe.children)||!(Lr=Ce.length))return;var Ce,Be=1/0,tt=-1/0,at=1/0,ft=-1/0,Dt,Et,Yt,Zt,nr,_r,Lr;function Jr(qr){Be=Math.min(qr.x-qr.r,Be),tt=Math.max(qr.x+qr.r,tt),at=Math.min(qr.y-qr.r,at),ft=Math.max(qr.y+qr.r,ft)}if(Ce.forEach(ds),Dt=Ce[0],Dt.x=-Dt.r,Dt.y=0,Jr(Dt),Lr>1&&(Et=Ce[1],Et.x=Et.r,Et.y=0,Jr(Et),Lr>2))for(Yt=Ce[2],Wo(Dt,Et,Yt),Jr(Yt),Tu(Dt,Yt),Dt._pack_prev=Yt,Tu(Yt,Et),Et=Dt._pack_next,Zt=3;ZtBr.x&&(Br=Hn),Hn.depth>jr.depth&&(jr=Hn)});var un=Ce(Rr,Br)/2-Rr.x,vn=Be[0]/(Br.x+Ce(Br,Rr)/2+un),qr=Be[1]/(jr.depth||1);dl(Jr,function(Hn){Hn.x=(Hn.x+un)*vn,Hn.y=Hn.depth*qr})}return Lr}function ft(nr){for(var _r={A:null,children:[nr]},Lr=[_r],Jr;(Jr=Lr.pop())!=null;)for(var on=Jr.children,Rr,Br=0,jr=on.length;Br0&&(Ul(Pc(Rr,nr,Lr),nr,Hn),jr+=Hn,un+=Hn),vn+=Rr.m,jr+=Jr.m,qr+=Br.m,un+=on.m;Rr&&!Do(on)&&(on.t=Rr,on.m+=vn-un),Jr&&!Yo(Br)&&(Br.t=Jr,Br.m+=jr-qr,Lr=nr)}return Lr}function Zt(nr){nr.x*=Be[0],nr.y=nr.depth*Be[1]}return at.separation=function(nr){return arguments.length?(Ce=nr,at):Ce},at.size=function(nr){return arguments.length?(tt=(Be=nr)==null?Zt:null,at):tt?null:Be},at.nodeSize=function(nr){return arguments.length?(tt=(Be=nr)==null?null:Zt,at):tt?Be:null},vl(at,fe)};function ps(fe,Ce){return fe.parent==Ce.parent?1:2}function Yo(fe){var Ce=fe.children;return Ce.length?Ce[0]:fe.t}function Do(fe){var Ce=fe.children,Be;return(Be=Ce.length)?Ce[Be-1]:fe.t}function Ul(fe,Ce,Be){var tt=Be/(Ce.i-fe.i);Ce.c-=tt,Ce.s+=Be,fe.c+=tt,Ce.z+=Be,Ce.m+=Be}function Lc(fe){for(var Ce=0,Be=0,tt=fe.children,at=tt.length,ft;--at>=0;)ft=tt[at],ft.z+=Ce,ft.m+=Ce,Ce+=ft.s+(Be+=ft.c)}function Pc(fe,Ce,Be){return fe.a.parent===Ce.parent?fe.a:Be}i.layout.cluster=function(){var fe=i.layout.hierarchy().sort(null).value(null),Ce=ps,Be=[1,1],tt=!1;function at(ft,Dt){var Et=fe.call(this,ft,Dt),Yt=Et[0],Zt,nr=0;wo(Yt,function(Rr){var Br=Rr.children;Br&&Br.length?(Rr.x=Dc(Br),Rr.y=Rc(Br)):(Rr.x=Zt?nr+=Ce(Rr,Zt):0,Rr.y=0,Zt=Rr)});var _r=Ku(Yt),Lr=Rf(Yt),Jr=_r.x-Ce(_r,Lr)/2,on=Lr.x+Ce(Lr,_r)/2;return wo(Yt,tt?function(Rr){Rr.x=(Rr.x-Yt.x)*Be[0],Rr.y=(Yt.y-Rr.y)*Be[1]}:function(Rr){Rr.x=(Rr.x-Jr)/(on-Jr)*Be[0],Rr.y=(1-(Yt.y?Rr.y/Yt.y:1))*Be[1]}),Et}return at.separation=function(ft){return arguments.length?(Ce=ft,at):Ce},at.size=function(ft){return arguments.length?(tt=(Be=ft)==null,at):tt?null:Be},at.nodeSize=function(ft){return arguments.length?(tt=(Be=ft)!=null,at):tt?Be:null},vl(at,fe)};function Rc(fe){return 1+i.max(fe,function(Ce){return Ce.y})}function Dc(fe){return fe.reduce(function(Ce,Be){return Ce+Be.x},0)/fe.length}function Ku(fe){var Ce=fe.children;return Ce&&Ce.length?Ku(Ce[0]):fe}function Rf(fe){var Ce=fe.children,Be;return Ce&&(Be=Ce.length)?Rf(Ce[Be-1]):fe}i.layout.treemap=function(){var fe=i.layout.hierarchy(),Ce=Math.round,Be=[1,1],tt=null,at=yl,ft=!1,Dt,Et="squarify",Yt=.5*(1+Math.sqrt(5));function Zt(Rr,Br){for(var jr=-1,un=Rr.length,vn,qr;++jr0;)un.push(qr=vn[Qn-1]),un.area+=qr.area,Et!=="squarify"||(qn=Lr(un,ui))<=Hn?(vn.pop(),Hn=qn):(un.area-=un.pop().area,Jr(un,ui,jr,!1),ui=Math.min(jr.dx,jr.dy),un.length=un.area=0,Hn=1/0);un.length&&(Jr(un,ui,jr,!0),un.length=un.area=0),Br.forEach(nr)}}function _r(Rr){var Br=Rr.children;if(Br&&Br.length){var jr=at(Rr),un=Br.slice(),vn,qr=[];for(Zt(un,jr.dx*jr.dy/Rr.value),qr.area=0;vn=un.pop();)qr.push(vn),qr.area+=vn.area,vn.z!=null&&(Jr(qr,vn.z?jr.dx:jr.dy,jr,!un.length),qr.length=qr.area=0);Br.forEach(_r)}}function Lr(Rr,Br){for(var jr=Rr.area,un,vn=0,qr=1/0,Hn=-1,qn=Rr.length;++Hnvn&&(vn=un));return jr*=jr,Br*=Br,jr?Math.max(Br*vn*Yt/jr,jr/(Br*qr*Yt)):1/0}function Jr(Rr,Br,jr,un){var vn=-1,qr=Rr.length,Hn=jr.x,qn=jr.y,ui=Br?Ce(Rr.area/Br):0,Qn;if(Br==jr.dx){for((un||ui>jr.dy)&&(ui=jr.dy);++vnjr.dx)&&(ui=jr.dx);++vn1);return fe+Ce*tt*Math.sqrt(-2*Math.log(ft)/ft)}},logNormal:function(){var fe=i.random.normal.apply(i,arguments);return function(){return Math.exp(fe())}},bates:function(fe){var Ce=i.random.irwinHall(fe);return function(){return Ce()/fe}},irwinHall:function(fe){return function(){for(var Ce=0,Be=0;Be2?If:Df,Zt=tt?cl:Uo;return at=Yt(fe,Ce,Zt,Be),ft=Yt(Ce,fe,Zt,qa),Et}function Et(Yt){return at(Yt)}return Et.invert=function(Yt){return ft(Yt)},Et.domain=function(Yt){return arguments.length?(fe=Yt.map(Number),Dt()):fe},Et.range=function(Yt){return arguments.length?(Ce=Yt,Dt()):Ce},Et.rangeRound=function(Yt){return Et.range(Yt).interpolate(Mf)},Et.clamp=function(Yt){return arguments.length?(tt=Yt,Dt()):tt},Et.interpolate=function(Yt){return arguments.length?(Be=Yt,Dt()):Be},Et.ticks=function(Yt){return Xo(fe,Yt)},Et.tickFormat=function(Yt,Zt){return d3_scale_linearTickFormat(fe,Yt,Zt)},Et.nice=function(Yt){return zf(fe,Yt),Dt()},Et.copy=function(){return Ff(fe,Ce,Be,tt)},Dt()}function Ju(fe,Ce){return i.rebind(fe,Ce,"range","rangeRound","interpolate","clamp")}function zf(fe,Ce){return Hl(fe,gs(vo(fe,Ce)[2])),Hl(fe,gs(vo(fe,Ce)[2])),fe}function vo(fe,Ce){Ce==null&&(Ce=10);var Be=Co(fe),tt=Be[1]-Be[0],at=Math.pow(10,Math.floor(Math.log(tt/Ce)/Math.LN10)),ft=Ce/tt*at;return ft<=.15?at*=10:ft<=.35?at*=5:ft<=.75&&(at*=2),Be[0]=Math.ceil(Be[0]/at)*at,Be[1]=Math.floor(Be[1]/at)*at+at*.5,Be[2]=at,Be}function Xo(fe,Ce){return i.range.apply(i,vo(fe,Ce))}i.scale.log=function(){return Ds(i.scale.linear().domain([0,1]),10,!0,[1,10])};function Ds(fe,Ce,Be,tt){function at(Et){return(Be?Math.log(Et<0?0:Et):-Math.log(Et>0?0:-Et))/Math.log(Ce)}function ft(Et){return Be?Math.pow(Ce,Et):-Math.pow(Ce,-Et)}function Dt(Et){return fe(at(Et))}return Dt.invert=function(Et){return ft(fe.invert(Et))},Dt.domain=function(Et){return arguments.length?(Be=Et[0]>=0,fe.domain((tt=Et.map(Number)).map(at)),Dt):tt},Dt.base=function(Et){return arguments.length?(Ce=+Et,fe.domain(tt.map(at)),Dt):Ce},Dt.nice=function(){var Et=Hl(tt.map(at),Be?Math:bl);return fe.domain(Et),tt=Et.map(ft),Dt},Dt.ticks=function(){var Et=Co(tt),Yt=[],Zt=Et[0],nr=Et[1],_r=Math.floor(at(Zt)),Lr=Math.ceil(at(nr)),Jr=Ce%1?2:Ce;if(isFinite(Lr-_r)){if(Be){for(;_r0;on--)Yt.push(ft(_r)*on);for(_r=0;Yt[_r]nr;Lr--);Yt=Yt.slice(_r,Lr)}return Yt},Dt.copy=function(){return Ds(fe.copy(),Ce,Be,tt)},Ju(Dt,fe)}var bl={floor:function(fe){return-Math.ceil(-fe)},ceil:function(fe){return-Math.floor(-fe)}};i.scale.pow=function(){return Au(i.scale.linear(),1,[0,1])};function Au(fe,Ce,Be){var tt=Ks(Ce),at=Ks(1/Ce);function ft(Dt){return fe(tt(Dt))}return ft.invert=function(Dt){return at(fe.invert(Dt))},ft.domain=function(Dt){return arguments.length?(fe.domain((Be=Dt.map(Number)).map(tt)),ft):Be},ft.ticks=function(Dt){return Xo(Be,Dt)},ft.tickFormat=function(Dt,Et){return d3_scale_linearTickFormat(Be,Dt,Et)},ft.nice=function(Dt){return ft.domain(zf(Be,Dt))},ft.exponent=function(Dt){return arguments.length?(tt=Ks(Ce=Dt),at=Ks(1/Ce),fe.domain(Be.map(tt)),ft):Ce},ft.copy=function(){return Au(fe.copy(),Ce,Be)},Ju(ft,fe)}function Ks(fe){return function(Ce){return Ce<0?-Math.pow(-Ce,fe):Math.pow(Ce,fe)}}i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return Js([],{t:"range",a:[[]]})};function Js(fe,Ce){var Be,tt,at;function ft(Et){return tt[((Be.get(Et)||(Ce.t==="range"?Be.set(Et,fe.push(Et)):NaN))-1)%tt.length]}function Dt(Et,Yt){return i.range(fe.length).map(function(Zt){return Et+Yt*Zt})}return ft.domain=function(Et){if(!arguments.length)return fe;fe=[],Be=new _;for(var Yt=-1,Zt=Et.length,nr;++Yt0?Be[ft-1]:fe[0],ftLr?0:1;if(nr=je)return Yt(nr,on)+(Zt?Yt(Zt,1-on):"")+"Z";var Rr,Br,jr,un,vn=0,qr=0,Hn,qn,ui,Qn,ii,fi,Oi,Mi,Ii=[];if((un=(+Dt.apply(this,arguments)||0)/2)&&(jr=tt===Mu?Math.sqrt(Zt*Zt+nr*nr):+tt.apply(this,arguments),on||(qr*=-1),nr&&(qr=Lt(jr/nr*Math.sin(un))),Zt&&(vn=Lt(jr/Zt*Math.sin(un)))),nr){Hn=nr*Math.cos(_r+qr),qn=nr*Math.sin(_r+qr),ui=nr*Math.cos(Lr-qr),Qn=nr*Math.sin(Lr-qr);var ra=Math.abs(Lr-_r-2*qr)<=Me?0:1;if(qr&&Wl(Hn,qn,ui,Qn)===on^ra){var ka=(_r+Lr)/2;Hn=nr*Math.cos(ka),qn=nr*Math.sin(ka),ui=Qn=null}}else Hn=qn=0;if(Zt){ii=Zt*Math.cos(Lr-vn),fi=Zt*Math.sin(Lr-vn),Oi=Zt*Math.cos(_r+vn),Mi=Zt*Math.sin(_r+vn);var la=Math.abs(_r-Lr+2*vn)<=Me?0:1;if(vn&&Wl(ii,fi,Oi,Mi)===1-on^la){var Kn=(_r+Lr)/2;ii=Zt*Math.cos(Kn),fi=Zt*Math.sin(Kn),Oi=Mi=null}}else ii=fi=0;if(Jr>ye&&(Rr=Math.min(Math.abs(nr-Zt)/2,+Be.apply(this,arguments)))>.001){Br=Zt0?0:1}function Yl(fe,Ce,Be,tt,at){var ft=fe[0]-Ce[0],Dt=fe[1]-Ce[1],Et=(at?tt:-tt)/Math.sqrt(ft*ft+Dt*Dt),Yt=Et*Dt,Zt=-Et*ft,nr=fe[0]+Yt,_r=fe[1]+Zt,Lr=Ce[0]+Yt,Jr=Ce[1]+Zt,on=(nr+Lr)/2,Rr=(_r+Jr)/2,Br=Lr-nr,jr=Jr-_r,un=Br*Br+jr*jr,vn=Be-tt,qr=nr*Jr-Lr*_r,Hn=(jr<0?-1:1)*Math.sqrt(Math.max(0,vn*vn*un-qr*qr)),qn=(qr*jr-Br*Hn)/un,ui=(-qr*Br-jr*Hn)/un,Qn=(qr*jr+Br*Hn)/un,ii=(-qr*Br+jr*Hn)/un,fi=qn-on,Oi=ui-Rr,Mi=Qn-on,Ii=ii-Rr;return fi*fi+Oi*Oi>Mi*Mi+Ii*Ii&&(qn=Qn,ui=ii),[[qn-Yt,ui-Zt],[qn*Be/vn,ui*Be/vn]]}function Fs(){return!0}function Xl(fe){var Ce=di,Be=li,tt=Fs,at=Ha,ft=at.key,Dt=.7;function Et(Yt){var Zt=[],nr=[],_r=-1,Lr=Yt.length,Jr,on=rn(Ce),Rr=rn(Be);function Br(){Zt.push("M",at(fe(nr),Dt))}for(;++_r1?fe.join("L"):fe+"Z"}function ns(fe){return fe.join("L")+"Z"}function $u(fe){for(var Ce=0,Be=fe.length,tt=fe[0],at=[tt[0],",",tt[1]];++Ce1&&at.push("H",tt[0]),at.join("")}function Qs(fe){for(var Ce=0,Be=fe.length,tt=fe[0],at=[tt[0],",",tt[1]];++Ce1){Et=Ce[1],ft=fe[Yt],Yt++,tt+="C"+(at[0]+Dt[0])+","+(at[1]+Dt[1])+","+(ft[0]-Et[0])+","+(ft[1]-Et[1])+","+ft[0]+","+ft[1];for(var Zt=2;Zt9&&(ft=Be*3/Math.sqrt(ft),Dt[Et]=ft*tt,Dt[Et+1]=ft*at));for(Et=-1;++Et<=Yt;)ft=(fe[Math.min(Yt,Et+1)][0]-fe[Math.max(0,Et-1)][0])/(6*(1+Dt[Et]*Dt[Et])),Ce.push([ft||0,Dt[Et]*ft||0]);return Ce}function Cu(fe){return fe.length<3?Ha(fe):fe[0]+lo(fe,Ql(fe))}i.svg.line.radial=function(){var fe=Xl(Uf);return fe.radius=fe.x,delete fe.x,fe.angle=fe.y,delete fe.y,fe};function Uf(fe){for(var Ce,Be=-1,tt=fe.length,at,ft;++BeMe)+",1 "+_r}function Zt(nr,_r,Lr,Jr){return"Q 0,0 "+Jr}return ft.radius=function(nr){return arguments.length?(Be=rn(nr),ft):Be},ft.source=function(nr){return arguments.length?(fe=rn(nr),ft):fe},ft.target=function(nr){return arguments.length?(Ce=rn(nr),ft):Ce},ft.startAngle=function(nr){return arguments.length?(tt=rn(nr),ft):tt},ft.endAngle=function(nr){return arguments.length?(at=rn(nr),ft):at},ft};function tf(fe){return fe.radius}i.svg.diagonal=function(){var fe=ef,Ce=$s,Be=ql;function tt(at,ft){var Dt=fe.call(this,at,ft),Et=Ce.call(this,at,ft),Yt=(Dt.y+Et.y)/2,Zt=[Dt,{x:Dt.x,y:Yt},{x:Et.x,y:Yt},Et];return Zt=Zt.map(Be),"M"+Zt[0]+"C"+Zt[1]+" "+Zt[2]+" "+Zt[3]}return tt.source=function(at){return arguments.length?(fe=rn(at),tt):fe},tt.target=function(at){return arguments.length?(Ce=rn(at),tt):Ce},tt.projection=function(at){return arguments.length?(Be=at,tt):Be},tt};function ql(fe){return[fe.x,fe.y]}i.svg.diagonal.radial=function(){var fe=i.svg.diagonal(),Ce=ql,Be=fe.projection;return fe.projection=function(tt){return arguments.length?Be(Hf(Ce=tt)):Ce},fe};function Hf(fe){return function(){var Ce=fe.apply(this,arguments),Be=Ce[0],tt=Ce[1]-it;return[Be*Math.cos(tt),Be*Math.sin(tt)]}}i.svg.symbol=function(){var fe=ot,Ce=qe;function Be(tt,at){return(Mt.get(fe.call(this,tt,at))||wt)(Ce.call(this,tt,at))}return Be.type=function(tt){return arguments.length?(fe=rn(tt),Be):fe},Be.size=function(tt){return arguments.length?(Ce=rn(tt),Be):Ce},Be};function qe(){return 64}function ot(){return"circle"}function wt(fe){var Ce=Math.sqrt(fe/Me);return"M0,"+Ce+"A"+Ce+","+Ce+" 0 1,1 0,"+-Ce+"A"+Ce+","+Ce+" 0 1,1 0,"+Ce+"Z"}var Mt=i.map({circle:wt,cross:function(fe){var Ce=Math.sqrt(fe/5)/2;return"M"+-3*Ce+","+-Ce+"H"+-Ce+"V"+-3*Ce+"H"+Ce+"V"+-Ce+"H"+3*Ce+"V"+Ce+"H"+Ce+"V"+3*Ce+"H"+-Ce+"V"+Ce+"H"+-3*Ce+"Z"},diamond:function(fe){var Ce=Math.sqrt(fe/(2*zt)),Be=Ce*zt;return"M0,"+-Ce+"L"+Be+",0 0,"+Ce+" "+-Be+",0Z"},square:function(fe){var Ce=Math.sqrt(fe)/2;return"M"+-Ce+","+-Ce+"L"+Ce+","+-Ce+" "+Ce+","+Ce+" "+-Ce+","+Ce+"Z"},"triangle-down":function(fe){var Ce=Math.sqrt(fe/Ut),Be=Ce*Ut/2;return"M0,"+Be+"L"+Ce+","+-Be+" "+-Ce+","+-Be+"Z"},"triangle-up":function(fe){var Ce=Math.sqrt(fe/Ut),Be=Ce*Ut/2;return"M0,"+-Be+"L"+Ce+","+Be+" "+-Ce+","+Be+"Z"}});i.svg.symbolTypes=Mt.keys();var Ut=Math.sqrt(3),zt=Math.tan(30*mt);Z.transition=function(fe){for(var Ce=Ir||++Mr,Be=Rn(fe),tt=[],at,ft,Dt=Nr||{time:Date.now(),ease:Hu,delay:0,duration:250},Et=-1,Yt=this.length;++Et0;)_r[--un].call(fe,jr);if(Br>=1)return Dt.event&&Dt.event.end.call(fe,fe.__data__,Ce),--ft.count?delete ft[tt]:delete fe[Be],1}Dt||(Et=at.time,Yt=_n(Lr,0,Et),Dt=ft[tt]={tween:new _,time:Et,timer:Yt,delay:at.delay,duration:at.duration,ease:at.ease,index:Ce},at=null,++ft.count)}i.svg.axis=function(){var fe=i.scale.linear(),Ce=Zn,Be=6,tt=6,at=3,ft=[10],Dt=null,Et;function Yt(Zt){Zt.each(function(){var nr=i.select(this),_r=this.__chart__||fe,Lr=this.__chart__=fe.copy(),Jr=Dt??(Lr.ticks?Lr.ticks.apply(Lr,ft):Lr.domain()),on=Et??(Lr.tickFormat?Lr.tickFormat.apply(Lr,ft):k),Rr=nr.selectAll(".tick").data(Jr,Lr),Br=Rr.enter().insert("g",".domain").attr("class","tick").style("opacity",ye),jr=i.transition(Rr.exit()).style("opacity",ye).remove(),un=i.transition(Rr.order()).style("opacity",1),vn=Math.max(Be,0)+at,qr,Hn=xl(Lr),qn=nr.selectAll(".domain").data([0]),ui=(qn.enter().append("path").attr("class","domain"),i.transition(qn));Br.append("line"),Br.append("text");var Qn=Br.select("line"),ii=un.select("line"),fi=Rr.select("text").text(on),Oi=Br.select("text"),Mi=un.select("text"),Ii=Ce==="top"||Ce==="left"?-1:1,ra,ka,la,Kn;if(Ce==="bottom"||Ce==="top"?(qr=Pi,ra="x",la="y",ka="x2",Kn="y2",fi.attr("dy",Ii<0?"0em":".71em").style("text-anchor","middle"),ui.attr("d","M"+Hn[0]+","+Ii*tt+"V0H"+Hn[1]+"V"+Ii*tt)):(qr=Ri,ra="y",la="x",ka="y2",Kn="x2",fi.attr("dy",".32em").style("text-anchor",Ii<0?"end":"start"),ui.attr("d","M"+Ii*tt+","+Hn[0]+"H0V"+Hn[1]+"H"+Ii*tt)),Qn.attr(Kn,Ii*Be),Oi.attr(la,Ii*vn),ii.attr(ka,0).attr(Kn,Ii*Be),Mi.attr(ra,0).attr(la,Ii*vn),Lr.rangeBand){var Bi=Lr,Ti=Bi.rangeBand()/2;_r=Lr=function(Zi){return Bi(Zi)+Ti}}else _r.rangeBand?_r=Lr:jr.call(qr,Lr,_r);Br.call(qr,_r,Lr),un.call(qr,Lr,Lr)})}return Yt.scale=function(Zt){return arguments.length?(fe=Zt,Yt):fe},Yt.orient=function(Zt){return arguments.length?(Ce=Zt in Li?Zt+"":Zn,Yt):Ce},Yt.ticks=function(){return arguments.length?(ft=x(arguments),Yt):ft},Yt.tickValues=function(Zt){return arguments.length?(Dt=Zt,Yt):Dt},Yt.tickFormat=function(Zt){return arguments.length?(Et=Zt,Yt):Et},Yt.tickSize=function(Zt){var nr=arguments.length;return nr?(Be=+Zt,tt=+arguments[nr-1],Yt):Be},Yt.innerTickSize=function(Zt){return arguments.length?(Be=+Zt,Yt):Be},Yt.outerTickSize=function(Zt){return arguments.length?(tt=+Zt,Yt):tt},Yt.tickPadding=function(Zt){return arguments.length?(at=+Zt,Yt):at},Yt.tickSubdivide=function(){return arguments.length&&Yt},Yt};var Zn="bottom",Li={top:1,right:1,bottom:1,left:1};function Pi(fe,Ce,Be){fe.attr("transform",function(tt){var at=Ce(tt);return"translate("+(isFinite(at)?at:Be(tt))+",0)"})}function Ri(fe,Ce,Be){fe.attr("transform",function(tt){var at=Ce(tt);return"translate(0,"+(isFinite(at)?at:Be(tt))+")"})}i.svg.brush=function(){var fe=J(nr,"brushstart","brush","brushend"),Ce=null,Be=null,tt=[0,0],at=[0,0],ft,Dt,Et=!0,Yt=!0,Zt=Xi[0];function nr(Rr){Rr.each(function(){var Br=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",on).on("touchstart.brush",on),jr=Br.selectAll(".background").data([0]);jr.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Br.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var un=Br.selectAll(".resize").data(Zt,k);un.exit().remove(),un.enter().append("g").attr("class",function(qn){return"resize "+qn}).style("cursor",function(qn){return zi[qn]}).append("rect").attr("x",function(qn){return/[ew]$/.test(qn)?-3:null}).attr("y",function(qn){return/^[ns]/.test(qn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),un.style("display",nr.empty()?"none":null);var vn=i.transition(Br),qr=i.transition(jr),Hn;Ce&&(Hn=xl(Ce),qr.attr("x",Hn[0]).attr("width",Hn[1]-Hn[0]),Lr(vn)),Be&&(Hn=xl(Be),qr.attr("y",Hn[0]).attr("height",Hn[1]-Hn[0]),Jr(vn)),_r(vn)})}nr.event=function(Rr){Rr.each(function(){var Br=fe.of(this,arguments),jr={x:tt,y:at,i:ft,j:Dt},un=this.__chart__||jr;this.__chart__=jr,Ir?i.select(this).transition().each("start.brush",function(){ft=un.i,Dt=un.j,tt=un.x,at=un.y,Br({type:"brushstart"})}).tween("brush:brush",function(){var vn=_o(tt,jr.x),qr=_o(at,jr.y);return ft=Dt=null,function(Hn){tt=jr.x=vn(Hn),at=jr.y=qr(Hn),Br({type:"brush",mode:"resize"})}}).each("end.brush",function(){ft=jr.i,Dt=jr.j,Br({type:"brush",mode:"resize"}),Br({type:"brushend"})}):(Br({type:"brushstart"}),Br({type:"brush",mode:"resize"}),Br({type:"brushend"}))})};function _r(Rr){Rr.selectAll(".resize").attr("transform",function(Br){return"translate("+tt[+/e$/.test(Br)]+","+at[+/^s/.test(Br)]+")"})}function Lr(Rr){Rr.select(".extent").attr("x",tt[0]),Rr.selectAll(".extent,.n>rect,.s>rect").attr("width",tt[1]-tt[0])}function Jr(Rr){Rr.select(".extent").attr("y",at[0]),Rr.selectAll(".extent,.e>rect,.w>rect").attr("height",at[1]-at[0])}function on(){var Rr=this,Br=i.select(i.event.target),jr=fe.of(Rr,arguments),un=i.select(Rr),vn=Br.datum(),qr=!/^(n|s)$/.test(vn)&&Ce,Hn=!/^(e|w)$/.test(vn)&&Be,qn=Br.classed("extent"),ui=Je(Rr),Qn,ii=i.mouse(Rr),fi,Oi=i.select(r(Rr)).on("keydown.brush",ra).on("keyup.brush",ka);if(i.event.changedTouches?Oi.on("touchmove.brush",la).on("touchend.brush",Bi):Oi.on("mousemove.brush",la).on("mouseup.brush",Bi),un.interrupt().selectAll("*").interrupt(),qn)ii[0]=tt[0]-ii[0],ii[1]=at[0]-ii[1];else if(vn){var Mi=+/w$/.test(vn),Ii=+/^n/.test(vn);fi=[tt[1-Mi]-ii[0],at[1-Ii]-ii[1]],ii[0]=tt[Mi],ii[1]=at[Ii]}else i.event.altKey&&(Qn=ii.slice());un.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",Br.style("cursor")),jr({type:"brushstart"}),la();function ra(){i.event.keyCode==32&&(qn||(Qn=null,ii[0]-=tt[1],ii[1]-=at[1],qn=2),ie())}function ka(){i.event.keyCode==32&&qn==2&&(ii[0]+=tt[1],ii[1]+=at[1],qn=0,ie())}function la(){var Ti=i.mouse(Rr),Zi=!1;fi&&(Ti[0]+=fi[0],Ti[1]+=fi[1]),qn||(i.event.altKey?(Qn||(Qn=[(tt[0]+tt[1])/2,(at[0]+at[1])/2]),ii[0]=tt[+(Ti[0]"u"&&(R=1e-6);var W,ae,ve,Se,Pe;for(ve=P,Pe=0;Pe<8;Pe++){if(Se=this.sampleCurveX(ve)-P,Math.abs(Se)ae)return ae;for(;WSe?W=ve:ae=ve,ve=(ae-W)*.5+W}return ve},p.prototype.solve=function(P,R){return this.sampleCurveY(this.solveCurveX(P,R))};var r=t;function t(P,R){this.x=P,this.y=R}t.prototype={clone:function(){return new t(this.x,this.y)},add:function(P){return this.clone()._add(P)},sub:function(P){return this.clone()._sub(P)},multByPoint:function(P){return this.clone()._multByPoint(P)},divByPoint:function(P){return this.clone()._divByPoint(P)},mult:function(P){return this.clone()._mult(P)},div:function(P){return this.clone()._div(P)},rotate:function(P){return this.clone()._rotate(P)},rotateAround:function(P,R){return this.clone()._rotateAround(P,R)},matMult:function(P){return this.clone()._matMult(P)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(P){return this.x===P.x&&this.y===P.y},dist:function(P){return Math.sqrt(this.distSqr(P))},distSqr:function(P){var R=P.x-this.x,W=P.y-this.y;return R*R+W*W},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(P){return Math.atan2(this.y-P.y,this.x-P.x)},angleWith:function(P){return this.angleWithSep(P.x,P.y)},angleWithSep:function(P,R){return Math.atan2(this.x*R-this.y*P,this.x*P+this.y*R)},_matMult:function(P){var R=P[0]*this.x+P[1]*this.y,W=P[2]*this.x+P[3]*this.y;return this.x=R,this.y=W,this},_add:function(P){return this.x+=P.x,this.y+=P.y,this},_sub:function(P){return this.x-=P.x,this.y-=P.y,this},_mult:function(P){return this.x*=P,this.y*=P,this},_div:function(P){return this.x/=P,this.y/=P,this},_multByPoint:function(P){return this.x*=P.x,this.y*=P.y,this},_divByPoint:function(P){return this.x/=P.x,this.y/=P.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var P=this.y;return this.y=this.x,this.x=-P,this},_rotate:function(P){var R=Math.cos(P),W=Math.sin(P),ae=R*this.x-W*this.y,ve=W*this.x+R*this.y;return this.x=ae,this.y=ve,this},_rotateAround:function(P,R){var W=Math.cos(P),ae=Math.sin(P),ve=R.x+W*(this.x-R.x)-ae*(this.y-R.y),Se=R.y+ae*(this.x-R.x)+W*(this.y-R.y);return this.x=ve,this.y=Se,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},t.convert=function(P){return P instanceof t?P:Array.isArray(P)?new t(P[0],P[1]):P};var a=typeof self<"u"?self:{};function n(P,R){if(Array.isArray(P)){if(!Array.isArray(R)||P.length!==R.length)return!1;for(var W=0;W=1)return 1;var R=P*P,W=R*P;return 4*(P<.5?W:3*(P-R)+W-.75)}function l(P,R,W,ae){var ve=new v(P,R,W,ae);return function(Se){return ve.solve(Se)}}var m=l(.25,.1,.25,1);function h(P,R,W){return Math.min(W,Math.max(R,P))}function b(P,R,W){var ae=W-R,ve=((P-R)%ae+ae)%ae+R;return ve===R?W:ve}function u(P,R,W){if(!P.length)return W(null,[]);var ae=P.length,ve=new Array(P.length),Se=null;P.forEach(function(Pe,et){R(Pe,function(yt,_t){yt&&(Se=yt),ve[et]=_t,--ae===0&&W(Se,ve)})})}function o(P){var R=[];for(var W in P)R.push(P[W]);return R}function d(P,R){var W=[];for(var ae in P)ae in R||W.push(ae);return W}function w(P){for(var R=[],W=arguments.length-1;W-- >0;)R[W]=arguments[W+1];for(var ae=0,ve=R;ae>R/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,P)}return P()}function T(P){return P<=1?1:Math.pow(2,Math.ceil(Math.log(P)/Math.LN2))}function s(P){return P?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(P):!1}function L(P,R){P.forEach(function(W){R[W]&&(R[W]=R[W].bind(R))})}function M(P,R){return P.indexOf(R,P.length-R.length)!==-1}function z(P,R,W){var ae={};for(var ve in P)ae[ve]=R.call(W||this,P[ve],ve,P);return ae}function D(P,R,W){var ae={};for(var ve in P)R.call(W||this,P[ve],ve,P)&&(ae[ve]=P[ve]);return ae}function N(P){return Array.isArray(P)?P.map(N):typeof P=="object"&&P?z(P,N):P}function I(P,R){for(var W=0;W=0)return!0;return!1}var k={};function B(P){k[P]||(typeof console<"u"&&console.warn(P),k[P]=!0)}function O(P,R,W){return(W.y-P.y)*(R.x-P.x)>(R.y-P.y)*(W.x-P.x)}function H(P){for(var R=0,W=0,ae=P.length,ve=ae-1,Se=void 0,Pe=void 0;W@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,W={};if(P.replace(R,function(ve,Se,Pe,et){var yt=Pe||et;return W[Se]=yt?yt.toLowerCase():!0,""}),W["max-age"]){var ae=parseInt(W["max-age"],10);isNaN(ae)?delete W["max-age"]:W["max-age"]=ae}return W}var ie=null;function ue(P){if(ie==null){var R=P.navigator?P.navigator.userAgent:null;ie=!!P.safari||!!(R&&(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return ie}function J(P){try{var R=a[P];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch{return!1}}function X(P){return a.btoa(encodeURIComponent(P).replace(/%([0-9A-F]{2})/g,function(R,W){return String.fromCharCode(+("0x"+W))}))}function ee(P){return decodeURIComponent(a.atob(P).split("").map(function(R){return"%"+("00"+R.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var V=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),Q=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,oe=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,$,Z,se={now:V,frame:function(R){var W=Q(R);return{cancel:function(){return oe(W)}}},getImageData:function(R,W){W===void 0&&(W=0);var ae=a.document.createElement("canvas"),ve=ae.getContext("2d");if(!ve)throw new Error("failed to create canvas 2d context");return ae.width=R.width,ae.height=R.height,ve.drawImage(R,0,0,R.width,R.height),ve.getImageData(-W,-W,R.width+2*W,R.height+2*W)},resolveURL:function(R){return $||($=a.document.createElement("a")),$.href=R,$.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return a.matchMedia?(Z==null&&(Z=a.matchMedia("(prefers-reduced-motion: reduce)")),Z.matches):!1}},ne={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},ce={supported:!1,testSupport:be},ge,Te=!1,we,Re=!1;a.document&&(we=a.document.createElement("img"),we.onload=function(){ge&&Ae(ge),ge=null,Re=!0},we.onerror=function(){Te=!0,ge=null},we.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function be(P){Te||!we||(Re?Ae(P):ge=P)}function Ae(P){var R=P.createTexture();P.bindTexture(P.TEXTURE_2D,R);try{if(P.texImage2D(P.TEXTURE_2D,0,P.RGBA,P.RGBA,P.UNSIGNED_BYTE,we),P.isContextLost())return;ce.supported=!0}catch{}P.deleteTexture(R),Te=!0}var me="01";function Le(){for(var P="1",R="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",W="",ae=0;ae<10;ae++)W+=R[Math.floor(Math.random()*62)];var ve=12*60*60*1e3,Se=[P,me,W].join(""),Pe=Date.now()+ve;return{token:Se,tokenExpiresAt:Pe}}var He=function(R,W){this._transformRequestFn=R,this._customAccessToken=W,this._createSkuToken()};He.prototype._createSkuToken=function(){var R=Le();this._skuToken=R.token,this._skuTokenExpiresAt=R.tokenExpiresAt},He.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},He.prototype.transformRequest=function(R,W){return this._transformRequestFn?this._transformRequestFn(R,W)||{url:R}:{url:R}},He.prototype.normalizeStyleURL=function(R,W){if(!Ue(R))return R;var ae=$e(R);return ae.path="/styles/v1"+ae.path,this._makeAPIURL(ae,this._customAccessToken||W)},He.prototype.normalizeGlyphsURL=function(R,W){if(!Ue(R))return R;var ae=$e(R);return ae.path="/fonts/v1"+ae.path,this._makeAPIURL(ae,this._customAccessToken||W)},He.prototype.normalizeSourceURL=function(R,W){if(!Ue(R))return R;var ae=$e(R);return ae.path="/v4/"+ae.authority+".json",ae.params.push("secure"),this._makeAPIURL(ae,this._customAccessToken||W)},He.prototype.normalizeSpriteURL=function(R,W,ae,ve){var Se=$e(R);return Ue(R)?(Se.path="/styles/v1"+Se.path+"/sprite"+W+ae,this._makeAPIURL(Se,this._customAccessToken||ve)):(Se.path+=""+W+ae,lt(Se))},He.prototype.normalizeTileURL=function(R,W){if(this._isSkuTokenExpired()&&this._createSkuToken(),R&&!Ue(R))return R;var ae=$e(R),ve=/(\.(png|jpg)\d*)(?=$)/,Se=/^.+\/v4\//,Pe=se.devicePixelRatio>=2||W===512?"@2x":"",et=ce.supported?".webp":"$1";ae.path=ae.path.replace(ve,""+Pe+et),ae.path=ae.path.replace(Se,"/"),ae.path="/v4"+ae.path;var yt=this._customAccessToken||rt(ae.params)||ne.ACCESS_TOKEN;return ne.REQUIRE_ACCESS_TOKEN&&yt&&this._skuToken&&ae.params.push("sku="+this._skuToken),this._makeAPIURL(ae,yt)},He.prototype.canonicalizeTileURL=function(R,W){var ae="/v4/",ve=/\.[\w]+$/,Se=$e(R);if(!Se.path.match(/(^\/v4\/)/)||!Se.path.match(ve))return R;var Pe="mapbox://tiles/";Pe+=Se.path.replace(ae,"");var et=Se.params;return W&&(et=et.filter(function(yt){return!yt.match(/^access_token=/)})),et.length&&(Pe+="?"+et.join("&")),Pe},He.prototype.canonicalizeTileset=function(R,W){for(var ae=W?Ue(W):!1,ve=[],Se=0,Pe=R.tiles||[];Se=0&&R.params.splice(Se,1)}if(ve.path!=="/"&&(R.path=""+ve.path+R.path),!ne.REQUIRE_ACCESS_TOKEN)return lt(R);if(W=W||ne.ACCESS_TOKEN,!W)throw new Error("An API access token is required to use Mapbox GL. "+ae);if(W[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ae);return R.params=R.params.filter(function(Pe){return Pe.indexOf("access_token")===-1}),R.params.push("access_token="+W),lt(R)};function Ue(P){return P.indexOf("mapbox:")===0}var ke=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ve(P){return ke.test(P)}function Ie(P){return P.indexOf("sku=")>0&&Ve(P)}function rt(P){for(var R=0,W=P;R=1&&a.localStorage.setItem(W,JSON.stringify(this.eventData))}catch{B("Unable to write to LocalStorage")}},xt.prototype.processRequests=function(R){},xt.prototype.postEvent=function(R,W,ae,ve){var Se=this;if(ne.EVENTS_URL){var Pe=$e(ne.EVENTS_URL);Pe.params.push("access_token="+(ve||ne.ACCESS_TOKEN||""));var et={event:this.type,created:new Date(R).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:x,skuId:me,userId:this.anonId},yt=W?w(et,W):et,_t={url:lt(Pe),headers:{"Content-Type":"text/plain"},body:JSON.stringify([yt])};this.pendingRequest=Vt(_t,function(Ft){Se.pendingRequest=null,ae(Ft),Se.saveEventData(),Se.processRequests(ve)})}},xt.prototype.queueRequest=function(R,W){this.queue.push(R),this.processRequests(W)};var St=function(P){function R(){P.call(this,"map.load"),this.success={},this.skuToken=""}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.postMapLoadEvent=function(ae,ve,Se,Pe){this.skuToken=Se,(ne.EVENTS_URL&&Pe||ne.ACCESS_TOKEN&&Array.isArray(ae)&&ae.some(function(et){return Ue(et)||Ve(et)}))&&this.queueRequest({id:ve,timestamp:Date.now()},Pe)},R.prototype.processRequests=function(ae){var ve=this;if(!(this.pendingRequest||this.queue.length===0)){var Se=this.queue.shift(),Pe=Se.id,et=Se.timestamp;Pe&&this.success[Pe]||(this.anonId||this.fetchEventData(),s(this.anonId)||(this.anonId=E()),this.postEvent(et,{skuToken:this.skuToken},function(yt){yt||Pe&&(ve.success[Pe]=!0)},ae))}},R}(xt),nt=function(P){function R(W){P.call(this,"appUserTurnstile"),this._customAccessToken=W}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.postTurnstileEvent=function(ae,ve){ne.EVENTS_URL&&ne.ACCESS_TOKEN&&Array.isArray(ae)&&ae.some(function(Se){return Ue(Se)||Ve(Se)})&&this.queueRequest(Date.now(),ve)},R.prototype.processRequests=function(ae){var ve=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var Se=dt(ne.ACCESS_TOKEN),Pe=Se?Se.u:ne.ACCESS_TOKEN,et=Pe!==this.eventData.tokenU;s(this.anonId)||(this.anonId=E(),et=!0);var yt=this.queue.shift();if(this.eventData.lastSuccess){var _t=new Date(this.eventData.lastSuccess),Ft=new Date(yt),jt=(yt-this.eventData.lastSuccess)/(24*60*60*1e3);et=et||jt>=1||jt<-1||_t.getDate()!==Ft.getDate()}else et=!0;if(!et)return this.processRequests();this.postEvent(yt,{"enabled.telemetry":!1},function(ar){ar||(ve.eventData.lastSuccess=yt,ve.eventData.tokenU=Pe)},ae)}},R}(xt),ze=new nt,Xe=ze.postTurnstileEvent.bind(ze),Je=new St,We=Je.postMapLoadEvent.bind(Je),Fe="mapbox-tiles",xe=500,ye=50,Ee=1e3*60*7,Me;function Ne(){a.caches&&!Me&&(Me=a.caches.open(Fe))}var je;function it(P,R){if(je===void 0)try{new Response(new ReadableStream),je=!0}catch{je=!1}je?R(P.body):P.blob().then(R)}function mt(P,R,W){if(Ne(),!!Me){var ae={status:R.status,statusText:R.statusText,headers:new a.Headers};R.headers.forEach(function(Pe,et){return ae.headers.set(et,Pe)});var ve=te(R.headers.get("Cache-Control")||"");if(!ve["no-store"]){ve["max-age"]&&ae.headers.set("Expires",new Date(W+ve["max-age"]*1e3).toUTCString());var Se=new Date(ae.headers.get("Expires")).getTime()-W;SeDate.now()&&!W["no-cache"]}var ct=1/0;function Tt(P){ct++,ct>ye&&(P.getActor().send("enforceCacheSizeLimit",xe),ct=0)}function Bt(P){Ne(),Me&&Me.then(function(R){R.keys().then(function(W){for(var ae=0;ae=200&&W.status<300||W.status===0)&&W.response!==null){var ve=W.response;if(P.type==="json")try{ve=JSON.parse(W.response)}catch(Se){return R(Se)}R(null,ve,W.getResponseHeader("Cache-Control"),W.getResponseHeader("Expires"))}else R(new $t(W.statusText,W.status,P.url))},W.send(P.body),{cancel:function(){return W.abort()}}}var It=function(P,R){if(!st(P.url)){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return At(P,R);if(j()&&self.worker&&self.worker.actor){var W=!0;return self.worker.actor.send("getResource",P,R,void 0,W)}}return Ct(P,R)},Pt=function(P,R){return It(w(P,{type:"json"}),R)},kt=function(P,R){return It(w(P,{type:"arrayBuffer"}),R)},Vt=function(P,R){return It(w(P,{method:"POST"}),R)};function Jt(P){var R=a.document.createElement("a");return R.href=P,R.protocol===a.document.location.protocol&&R.host===a.document.location.host}var ur="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function hr(P,R,W,ae){var ve=new a.Image,Se=a.URL;ve.onload=function(){R(null,ve),Se.revokeObjectURL(ve.src),ve.onload=null,a.requestAnimationFrame(function(){ve.src=ur})},ve.onerror=function(){return R(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Pe=new a.Blob([new Uint8Array(P)],{type:"image/png"});ve.cacheControl=W,ve.expires=ae,ve.src=P.byteLength?Se.createObjectURL(Pe):ur}function vr(P,R){var W=new a.Blob([new Uint8Array(P)],{type:"image/png"});a.createImageBitmap(W).then(function(ae){R(null,ae)}).catch(function(ae){R(new Error("Could not load image because of "+ae.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Ye,Ge,Nt=function(){Ye=[],Ge=0};Nt();var Ot=function(P,R){if(ce.supported&&(P.headers||(P.headers={}),P.headers.accept="image/webp,*/*"),Ge>=ne.MAX_PARALLEL_IMAGE_REQUESTS){var W={requestParameters:P,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Ye.push(W),W}Ge++;var ae=!1,ve=function(){if(!ae)for(ae=!0,Ge--;Ye.length&&Ge0||this._oneTimeListeners&&this._oneTimeListeners[R]&&this._oneTimeListeners[R].length>0||this._eventedParent&&this._eventedParent.listens(R)},dr.prototype.setEventedParent=function(R,W){return this._eventedParent=R,this._eventedParentData=W,this};var mr=8,xr={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},pr={"*":{type:"source"}},Gr=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Pr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Dr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},cn={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},rn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Cn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Tr={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Cr=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Wr={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ur={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},an={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},gn={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_n={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},kn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ni={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ci={type:"array",value:"*"},di={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},li={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},ri={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},wr={type:"array",value:"*",minimum:1},nn={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},$r=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],dn={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},Vn={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Tn={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},An={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Bn={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},Jn={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},gi={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Di={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Sr={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},kr={"*":{type:"string"}},Ar={$version:mr,$root:xr,sources:pr,source:Gr,source_vector:Pr,source_raster:Dr,source_raster_dem:cn,source_geojson:rn,source_video:Cn,source_image:En,layer:Tr,layout:Cr,layout_background:Wr,layout_fill:Ur,layout_circle:an,layout_heatmap:pn,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:gn,layout_symbol:_n,layout_raster:kn,layout_hillshade:ni,filter:ci,filter_operator:di,geometry_type:li,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:ri,expression:wr,light:nn,paint:$r,paint_fill:dn,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Vn,paint_circle:Tn,paint_heatmap:An,paint_symbol:Bn,paint_raster:Jn,paint_hillshade:gi,paint_background:Di,transition:Sr,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:kr},Or=function(R,W,ae,ve){this.message=(R?R+": ":"")+ae,ve&&(this.identifier=ve),W!=null&&W.__line__&&(this.line=W.__line__)};function xn(P){var R=P.key,W=P.value;return W?[new Or(R,W,"constants have been deprecated as of v8")]:[]}function In(P){for(var R=[],W=arguments.length-1;W-- >0;)R[W]=arguments[W+1];for(var ae=0,ve=R;ae":P.itemType.kind==="value"?"array":"array<"+R+">"}else return P.kind}var Eo=[Hr,Qr,wn,Ln,Pn,pi,Un,pa(On),Ci];function xo(P,R){if(R.kind==="error")return null;if(P.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!xo(P.itemType,R.itemType))&&(typeof P.N!="number"||P.N===R.N))return null}else{if(P.kind===R.kind)return null;if(P.kind==="value")for(var W=0,ae=Eo;W255?255:_t}function ve(_t){return _t<0?0:_t>1?1:_t}function Se(_t){return _t[_t.length-1]==="%"?ae(parseFloat(_t)/100*255):ae(parseInt(_t))}function Pe(_t){return _t[_t.length-1]==="%"?ve(parseFloat(_t)/100):ve(parseFloat(_t))}function et(_t,Ft,jt){return jt<0?jt+=1:jt>1&&(jt-=1),jt*6<1?_t+(Ft-_t)*jt*6:jt*2<1?Ft:jt*3<2?_t+(Ft-_t)*(2/3-jt)*6:_t}function yt(_t){var Ft=_t.replace(/ /g,"").toLowerCase();if(Ft in W)return W[Ft].slice();if(Ft[0]==="#"){if(Ft.length===4){var jt=parseInt(Ft.substr(1),16);return jt>=0&&jt<=4095?[(jt&3840)>>4|(jt&3840)>>8,jt&240|(jt&240)>>4,jt&15|(jt&15)<<4,1]:null}else if(Ft.length===7){var jt=parseInt(Ft.substr(1),16);return jt>=0&&jt<=16777215?[(jt&16711680)>>16,(jt&65280)>>8,jt&255,1]:null}return null}var ar=Ft.indexOf("("),er=Ft.indexOf(")");if(ar!==-1&&er+1===Ft.length){var yr=Ft.substr(0,ar),zr=Ft.substr(ar+1,er-(ar+1)).split(","),ln=1;switch(yr){case"rgba":if(zr.length!==4)return null;ln=Pe(zr.pop());case"rgb":return zr.length!==3?null:[Se(zr[0]),Se(zr[1]),Se(zr[2]),ln];case"hsla":if(zr.length!==4)return null;ln=Pe(zr.pop());case"hsl":if(zr.length!==3)return null;var en=(parseFloat(zr[0])%360+360)%360/360,Sn=Pe(zr[1]),mn=Pe(zr[2]),Mn=mn<=.5?mn*(Sn+1):mn+Sn-mn*Sn,zn=mn*2-Mn;return[ae(et(zn,Mn,en+1/3)*255),ae(et(zn,Mn,en)*255),ae(et(zn,Mn,en-1/3)*255),ln];default:return null}}return null}try{R.parseCSSColor=yt}catch{}}),bf=Nu.parseCSSColor,$i=function(R,W,ae,ve){ve===void 0&&(ve=1),this.r=R,this.g=W,this.b=ae,this.a=ve};$i.parse=function(R){if(R){if(R instanceof $i)return R;if(typeof R=="string"){var W=bf(R);if(W)return new $i(W[0]/255*W[3],W[1]/255*W[3],W[2]/255*W[3],W[3])}}},$i.prototype.toString=function(){var R=this.toArray(),W=R[0],ae=R[1],ve=R[2],Se=R[3];return"rgba("+Math.round(W)+","+Math.round(ae)+","+Math.round(ve)+","+Se+")"},$i.prototype.toArray=function(){var R=this,W=R.r,ae=R.g,ve=R.b,Se=R.a;return Se===0?[0,0,0,0]:[W*255/Se,ae*255/Se,ve*255/Se,Se]},$i.black=new $i(0,0,0,1),$i.white=new $i(1,1,1,1),$i.transparent=new $i(0,0,0,0),$i.red=new $i(1,0,0,1);var Fl=function(R,W,ae){R?this.sensitivity=W?"variant":"case":this.sensitivity=W?"accent":"base",this.locale=ae,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Fl.prototype.compare=function(R,W){return this.collator.compare(R,W)},Fl.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Bu=function(R,W,ae,ve,Se){this.text=R,this.image=W,this.scale=ae,this.fontStack=ve,this.textColor=Se},Xa=function(R){this.sections=R};Xa.fromString=function(R){return new Xa([new Bu(R,null,null,null,null)])},Xa.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(R){return R.text.length!==0||R.image&&R.image.name.length!==0})},Xa.factory=function(R){return R instanceof Xa?R:Xa.fromString(R)},Xa.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(R){return R.text}).join("")},Xa.prototype.serialize=function(){for(var R=["format"],W=0,ae=this.sections;W=0&&P<=255&&typeof R=="number"&&R>=0&&R<=255&&typeof W=="number"&&W>=0&&W<=255)){var ve=typeof ae=="number"?[P,R,W,ae]:[P,R,W];return"Invalid rgba value ["+ve.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof ae>"u"||typeof ae=="number"&&ae>=0&&ae<=1?null:"Invalid rgba value ["+[P,R,W,ae].join(", ")+"]: 'a' must be between 0 and 1."}function vu(P){if(P===null)return!0;if(typeof P=="string")return!0;if(typeof P=="boolean")return!0;if(typeof P=="number")return!0;if(P instanceof $i)return!0;if(P instanceof Fl)return!0;if(P instanceof Xa)return!0;if(P instanceof ho)return!0;if(Array.isArray(P)){for(var R=0,W=P;R2){var et=R[1];if(typeof et!="string"||!(et in ul)||et==="object")return W.error('The item type argument of "array" must be one of string, number, boolean',1);Pe=ul[et],ae++}else Pe=On;var yt;if(R.length>3){if(R[2]!==null&&(typeof R[2]!="number"||R[2]<0||R[2]!==Math.floor(R[2])))return W.error('The length argument to "array" must be a positive integer literal',2);yt=R[2],ae++}ve=pa(Pe,yt)}else ve=ul[Se];for(var _t=[];ae1)&&W.push(ve)}}return W.concat(this.args.map(function(Se){return Se.serialize()}))};var qa=function(R){this.type=pi,this.sections=R};qa.parse=function(R,W){if(R.length<2)return W.error("Expected at least one argument.");var ae=R[1];if(!Array.isArray(ae)&&typeof ae=="object")return W.error("First argument must be an image or text section.");for(var ve=[],Se=!1,Pe=1;Pe<=R.length-1;++Pe){var et=R[Pe];if(Se&&typeof et=="object"&&!Array.isArray(et)){Se=!1;var yt=null;if(et["font-scale"]&&(yt=W.parse(et["font-scale"],1,Qr),!yt))return null;var _t=null;if(et["text-font"]&&(_t=W.parse(et["text-font"],1,pa(wn)),!_t))return null;var Ft=null;if(et["text-color"]&&(Ft=W.parse(et["text-color"],1,Pn),!Ft))return null;var jt=ve[ve.length-1];jt.scale=yt,jt.font=_t,jt.textColor=Ft}else{var ar=W.parse(R[Pe],1,On);if(!ar)return null;var er=ar.type.kind;if(er!=="string"&&er!=="value"&&er!=="null"&&er!=="resolvedImage")return W.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Se=!0,ve.push({content:ar,scale:null,font:null,textColor:null})}}return new qa(ve)},qa.prototype.evaluate=function(R){var W=function(ae){var ve=ae.content.evaluate(R);return Ra(ve)===Ci?new Bu("",ve,null,null,null):new Bu(ll(ve),null,ae.scale?ae.scale.evaluate(R):null,ae.font?ae.font.evaluate(R).join(","):null,ae.textColor?ae.textColor.evaluate(R):null)};return new Xa(this.sections.map(W))},qa.prototype.eachChild=function(R){for(var W=0,ae=this.sections;W-1),ae},_o.prototype.eachChild=function(R){R(this.input)},_o.prototype.outputDefined=function(){return!1},_o.prototype.serialize=function(){return["image",this.input.serialize()]};var wf={"to-boolean":Ln,"to-color":Pn,"to-number":Qr,"to-string":wn},bo=function(R,W){this.type=R,this.args=W};bo.parse=function(R,W){if(R.length<2)return W.error("Expected at least one argument.");var ae=R[0];if((ae==="to-boolean"||ae==="to-string")&&R.length!==2)return W.error("Expected one argument.");for(var ve=wf[ae],Se=[],Pe=1;Pe4?ae="Invalid rbga value "+JSON.stringify(W)+": expected an array containing either three or four numeric values.":ae=sl(W[0],W[1],W[2],W[3]),!ae))return new $i(W[0]/255,W[1]/255,W[2]/255,W[3])}throw new Ua(ae||"Could not parse color from value '"+(typeof W=="string"?W:String(JSON.stringify(W)))+"'")}else if(this.type.kind==="number"){for(var yt=null,_t=0,Ft=this.args;_t=R[2]||P[1]<=R[1]||P[3]>=R[3])}function wc(P,R){var W=Tf(P[0]),ae=bc(P[1]),ve=Math.pow(2,R.z);return[Math.round(W*ve*ts),Math.round(ae*ve*ts)]}function Tc(P,R,W){var ae=P[0]-R[0],ve=P[1]-R[1],Se=P[0]-W[0],Pe=P[1]-W[1];return ae*Pe-Se*ve===0&&ae*Se<=0&&ve*Pe<=0}function Ac(P,R,W){return R[1]>P[1]!=W[1]>P[1]&&P[0]<(W[0]-R[0])*(P[1]-R[1])/(W[1]-R[1])+R[0]}function Vu(P,R){for(var W=!1,ae=0,ve=R.length;ae0&&jt<0||Ft<0&&jt>0}function Mf(P,R,W,ae){var ve=[R[0]-P[0],R[1]-P[1]],Se=[ae[0]-W[0],ae[1]-W[1]];return Sc(Se,ve)===0?!1:!!(Af(P,R,W,ae)&&Af(W,ae,P,R))}function Ys(P,R,W){for(var ae=0,ve=W;aeW[2]){var ve=ae*.5,Se=P[0]-W[0]>ve?-ae:W[0]-P[0]>ve?ae:0;Se===0&&(Se=P[0]-W[2]>ve?-ae:W[2]-P[0]>ve?ae:0),P[0]+=Se}Hu(R,P)}function Ec(P){P[0]=P[1]=1/0,P[2]=P[3]=-1/0}function pu(P,R,W,ae){for(var ve=Math.pow(2,ae.z)*ts,Se=[ae.x*ts,ae.y*ts],Pe=[],et=0,yt=P;et=0)return!1;var W=!0;return P.eachChild(function(ae){W&&!Ol(ae,R)&&(W=!1)}),W}var Ls=function(R,W){this.type=W.type,this.name=R,this.boundExpression=W};Ls.parse=function(R,W){if(R.length!==2||typeof R[1]!="string")return W.error("'var' expression requires exactly one string literal argument.");var ae=R[1];return W.scope.has(ae)?new Ls(ae,W.scope.get(ae)):W.error('Unknown variable "'+ae+'". Make sure "'+ae+'" has been bound in an enclosing "let" expression before using it.',1)},Ls.prototype.evaluate=function(R){return this.boundExpression.evaluate(R)},Ls.prototype.eachChild=function(){},Ls.prototype.outputDefined=function(){return!1},Ls.prototype.serialize=function(){return["var",this.name]};var rs=function(R,W,ae,ve,Se){W===void 0&&(W=[]),ve===void 0&&(ve=new Zr),Se===void 0&&(Se=[]),this.registry=R,this.path=W,this.key=W.map(function(Pe){return"["+Pe+"]"}).join(""),this.scope=ve,this.errors=Se,this.expectedType=ae};rs.prototype.parse=function(R,W,ae,ve,Se){return Se===void 0&&(Se={}),W?this.concat(W,ae,ve)._parse(R,Se):this._parse(R,Se)},rs.prototype._parse=function(R,W){(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number")&&(R=["literal",R]);function ae(Ft,jt,ar){return ar==="assert"?new $a(jt,[Ft]):ar==="coerce"?new bo(jt,[Ft]):Ft}if(Array.isArray(R)){if(R.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var ve=R[0];if(typeof ve!="string")return this.error("Expression name must be a string, but found "+typeof ve+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Se=this.registry[ve];if(Se){var Pe=Se.parse(R,this);if(!Pe)return null;if(this.expectedType){var et=this.expectedType,yt=Pe.type;if((et.kind==="string"||et.kind==="number"||et.kind==="boolean"||et.kind==="object"||et.kind==="array")&&yt.kind==="value")Pe=ae(Pe,et,W.typeAnnotation||"assert");else if((et.kind==="color"||et.kind==="formatted"||et.kind==="resolvedImage")&&(yt.kind==="value"||yt.kind==="string"))Pe=ae(Pe,et,W.typeAnnotation||"coerce");else if(this.checkSubtype(et,yt))return null}if(!(Pe instanceof za)&&Pe.type.kind!=="resolvedImage"&&Gu(Pe)){var _t=new es;try{Pe=new za(Pe.type,Pe.evaluate(_t))}catch(Ft){return this.error(Ft.message),null}}return Pe}return this.error('Unknown expression "'+ve+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof R>"u"?this.error("'undefined' value invalid. Use null instead."):typeof R=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof R+" instead.")},rs.prototype.concat=function(R,W,ae){var ve=typeof R=="number"?this.path.concat(R):this.path,Se=ae?this.scope.concat(ae):this.scope;return new rs(this.registry,ve,W||null,Se,this.errors)},rs.prototype.error=function(R){for(var W=[],ae=arguments.length-1;ae-- >0;)W[ae]=arguments[ae+1];var ve=""+this.key+W.map(function(Se){return"["+Se+"]"}).join("");this.errors.push(new Er(ve,R))},rs.prototype.checkSubtype=function(R,W){var ae=xo(R,W);return ae&&this.error(ae),ae};function Gu(P){if(P instanceof Ls)return Gu(P.boundExpression);if(P instanceof Za&&P.name==="error")return!1;if(P instanceof Cs)return!1;if(P instanceof Uo)return!1;var R=P instanceof bo||P instanceof $a,W=!0;return P.eachChild(function(ae){R?W=W&&Gu(ae):W=W&&ae instanceof za}),W?cl(P)&&Ol(P,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function hl(P,R){for(var W=P.length-1,ae=0,ve=W,Se=0,Pe,et;ae<=ve;)if(Se=Math.floor((ae+ve)/2),Pe=P[Se],et=P[Se+1],Pe<=R){if(Se===W||RR)ve=Se-1;else throw new Ua("Input is not a number.");return 0}var Ho=function(R,W,ae){this.type=R,this.input=W,this.labels=[],this.outputs=[];for(var ve=0,Se=ae;ve=et)return W.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',_t);var jt=W.parse(yt,Ft,Se);if(!jt)return null;Se=Se||jt.type,ve.push([et,jt])}return new Ho(Se,ae,ve)},Ho.prototype.evaluate=function(R){var W=this.labels,ae=this.outputs;if(W.length===1)return ae[0].evaluate(R);var ve=this.input.evaluate(R);if(ve<=W[0])return ae[0].evaluate(R);var Se=W.length;if(ve>=W[Se-1])return ae[Se-1].evaluate(R);var Pe=hl(W,ve);return ae[Pe].evaluate(R)},Ho.prototype.eachChild=function(R){R(this.input);for(var W=0,ae=this.outputs;W0&&R.push(this.labels[W]),R.push(this.outputs[W].serialize());return R};function Ca(P,R,W){return P*(1-W)+R*W}function Wu(P,R,W){return new $i(Ca(P.r,R.r,W),Ca(P.g,R.g,W),Ca(P.b,R.b,W),Ca(P.a,R.a,W))}function _c(P,R,W){return P.map(function(ae,ve){return Ca(ae,R[ve],W)})}var mu=Object.freeze({__proto__:null,number:Ca,color:Wu,array:_c}),vl=.95047,dl=1,wo=1.08883,yu=4/29,pl=6/29,xu=3*pl*pl,Cc=pl*pl*pl,Cf=Math.PI/180,Yu=180/Math.PI;function Xu(P){return P>Cc?Math.pow(P,.3333333333333333):P/xu+yu}function Zu(P){return P>pl?P*P*P:xu*(P-yu)}function ml(P){return 255*(P<=.0031308?12.92*P:1.055*Math.pow(P,.4166666666666667)-.055)}function bu(P){return P/=255,P<=.04045?P/12.92:Math.pow((P+.055)/1.055,2.4)}function Nl(P){var R=bu(P.r),W=bu(P.g),ae=bu(P.b),ve=Xu((.4124564*R+.3575761*W+.1804375*ae)/vl),Se=Xu((.2126729*R+.7151522*W+.072175*ae)/dl),Pe=Xu((.0193339*R+.119192*W+.9503041*ae)/wo);return{l:116*Se-16,a:500*(ve-Se),b:200*(Se-Pe),alpha:P.a}}function wu(P){var R=(P.l+16)/116,W=isNaN(P.a)?R:R+P.a/500,ae=isNaN(P.b)?R:R-P.b/200;return R=dl*Zu(R),W=vl*Zu(W),ae=wo*Zu(ae),new $i(ml(3.2404542*W-1.5371385*R-.4985314*ae),ml(-.969266*W+1.8760108*R+.041556*ae),ml(.0556434*W-.2040259*R+1.0572252*ae),P.alpha)}function ga(P,R,W){return{l:Ca(P.l,R.l,W),a:Ca(P.a,R.a,W),b:Ca(P.b,R.b,W),alpha:Ca(P.alpha,R.alpha,W)}}function Lf(P){var R=Nl(P),W=R.l,ae=R.a,ve=R.b,Se=Math.atan2(ve,ae)*Yu;return{h:Se<0?Se+360:Se,c:Math.sqrt(ae*ae+ve*ve),l:W,alpha:P.a}}function Vo(P){var R=P.h*Cf,W=P.c,ae=P.l;return wu({l:ae,a:Math.cos(R)*W,b:Math.sin(R)*W,alpha:P.alpha})}function Pf(P,R,W){var ae=R-P;return P+W*(ae>180||ae<-180?ae-360*Math.round(ae/360):ae)}function ju(P,R,W){return{h:Pf(P.h,R.h,W),c:Ca(P.c,R.c,W),l:Ca(P.l,R.l,W),alpha:Ca(P.alpha,R.alpha,W)}}var Zs={forward:Nl,reverse:wu,interpolate:ga},Ps={forward:Lf,reverse:Vo,interpolate:ju},Tu=Object.freeze({__proto__:null,lab:Zs,hcl:Ps}),Da=function(R,W,ae,ve,Se){this.type=R,this.operator=W,this.interpolation=ae,this.input=ve,this.labels=[],this.outputs=[];for(var Pe=0,et=Se;Pe1}))return W.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ve={name:"cubic-bezier",controlPoints:yt}}else return W.error("Unknown interpolation type "+String(ve[0]),1,0);if(R.length-1<4)return W.error("Expected at least 4 arguments, but found only "+(R.length-1)+".");if((R.length-1)%2!==0)return W.error("Expected an even number of arguments.");if(Se=W.parse(Se,2,Qr),!Se)return null;var _t=[],Ft=null;ae==="interpolate-hcl"||ae==="interpolate-lab"?Ft=Pn:W.expectedType&&W.expectedType.kind!=="value"&&(Ft=W.expectedType);for(var jt=0;jt=ar)return W.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',yr);var ln=W.parse(er,zr,Ft);if(!ln)return null;Ft=Ft||ln.type,_t.push([ar,ln])}return Ft.kind!=="number"&&Ft.kind!=="color"&&!(Ft.kind==="array"&&Ft.itemType.kind==="number"&&typeof Ft.N=="number")?W.error("Type "+ta(Ft)+" is not interpolatable."):new Da(Ft,ae,ve,Se,_t)},Da.prototype.evaluate=function(R){var W=this.labels,ae=this.outputs;if(W.length===1)return ae[0].evaluate(R);var ve=this.input.evaluate(R);if(ve<=W[0])return ae[0].evaluate(R);var Se=W.length;if(ve>=W[Se-1])return ae[Se-1].evaluate(R);var Pe=hl(W,ve),et=W[Pe],yt=W[Pe+1],_t=Da.interpolationFactor(this.interpolation,ve,et,yt),Ft=ae[Pe].evaluate(R),jt=ae[Pe+1].evaluate(R);return this.operator==="interpolate"?mu[this.type.kind.toLowerCase()](Ft,jt,_t):this.operator==="interpolate-hcl"?Ps.reverse(Ps.interpolate(Ps.forward(Ft),Ps.forward(jt),_t)):Zs.reverse(Zs.interpolate(Zs.forward(Ft),Zs.forward(jt),_t))},Da.prototype.eachChild=function(R){R(this.input);for(var W=0,ae=this.outputs;W=ae.length)throw new Ua("Array index out of bounds: "+W+" > "+(ae.length-1)+".");if(W!==Math.floor(W))throw new Ua("Array index must be an integer, but found "+W+" instead.");return ae[W]},js.prototype.eachChild=function(R){R(this.index),R(this.input)},js.prototype.outputDefined=function(){return!1},js.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Rs=function(R,W){this.type=Ln,this.needle=R,this.haystack=W};Rs.parse=function(R,W){if(R.length!==3)return W.error("Expected 2 arguments, but found "+(R.length-1)+" instead.");var ae=W.parse(R[1],1,On),ve=W.parse(R[2],2,On);return!ae||!ve?null:Qa(ae.type,[Ln,wn,Qr,Hr,On])?new Rs(ae,ve):W.error("Expected first argument to be of type boolean, string, number or null, but found "+ta(ae.type)+" instead")},Rs.prototype.evaluate=function(R){var W=this.needle.evaluate(R),ae=this.haystack.evaluate(R);if(!ae)return!1;if(!ol(W,["boolean","string","number","null"]))throw new Ua("Expected first argument to be of type boolean, string, number or null, but found "+ta(Ra(W))+" instead.");if(!ol(ae,["string","array"]))throw new Ua("Expected second argument to be of type array or string, but found "+ta(Ra(ae))+" instead.");return ae.indexOf(W)>=0},Rs.prototype.eachChild=function(R){R(this.needle),R(this.haystack)},Rs.prototype.outputDefined=function(){return!0},Rs.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Wo=function(R,W,ae){this.type=Qr,this.needle=R,this.haystack=W,this.fromIndex=ae};Wo.parse=function(R,W){if(R.length<=2||R.length>=5)return W.error("Expected 3 or 4 arguments, but found "+(R.length-1)+" instead.");var ae=W.parse(R[1],1,On),ve=W.parse(R[2],2,On);if(!ae||!ve)return null;if(!Qa(ae.type,[Ln,wn,Qr,Hr,On]))return W.error("Expected first argument to be of type boolean, string, number or null, but found "+ta(ae.type)+" instead");if(R.length===4){var Se=W.parse(R[3],3,Qr);return Se?new Wo(ae,ve,Se):null}else return new Wo(ae,ve)},Wo.prototype.evaluate=function(R){var W=this.needle.evaluate(R),ae=this.haystack.evaluate(R);if(!ol(W,["boolean","string","number","null"]))throw new Ua("Expected first argument to be of type boolean, string, number or null, but found "+ta(Ra(W))+" instead.");if(!ol(ae,["string","array"]))throw new Ua("Expected second argument to be of type array or string, but found "+ta(Ra(ae))+" instead.");if(this.fromIndex){var ve=this.fromIndex.evaluate(R);return ae.indexOf(W,ve)}return ae.indexOf(W)},Wo.prototype.eachChild=function(R){R(this.needle),R(this.haystack),this.fromIndex&&R(this.fromIndex)},Wo.prototype.outputDefined=function(){return!1},Wo.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var R=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),R]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var ps=function(R,W,ae,ve,Se,Pe){this.inputType=R,this.type=W,this.input=ae,this.cases=ve,this.outputs=Se,this.otherwise=Pe};ps.parse=function(R,W){if(R.length<5)return W.error("Expected at least 4 arguments, but found only "+(R.length-1)+".");if(R.length%2!==1)return W.error("Expected an even number of arguments.");var ae,ve;W.expectedType&&W.expectedType.kind!=="value"&&(ve=W.expectedType);for(var Se={},Pe=[],et=2;etNumber.MAX_SAFE_INTEGER)return Ft.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof er=="number"&&Math.floor(er)!==er)return Ft.error("Numeric branch labels must be integer values.");if(!ae)ae=Ra(er);else if(Ft.checkSubtype(ae,Ra(er)))return null;if(typeof Se[String(er)]<"u")return Ft.error("Branch labels must be unique.");Se[String(er)]=Pe.length}var yr=W.parse(_t,et,ve);if(!yr)return null;ve=ve||yr.type,Pe.push(yr)}var zr=W.parse(R[1],1,On);if(!zr)return null;var ln=W.parse(R[R.length-1],R.length-1,ve);return!ln||zr.type.kind!=="value"&&W.concat(1).checkSubtype(ae,zr.type)?null:new ps(ae,ve,zr,Se,Pe,ln)},ps.prototype.evaluate=function(R){var W=this.input.evaluate(R),ae=Ra(W)===this.inputType&&this.outputs[this.cases[W]]||this.otherwise;return ae.evaluate(R)},ps.prototype.eachChild=function(R){R(this.input),this.outputs.forEach(R),R(this.otherwise)},ps.prototype.outputDefined=function(){return this.outputs.every(function(R){return R.outputDefined()})&&this.otherwise.outputDefined()},ps.prototype.serialize=function(){for(var R=this,W=["match",this.input.serialize()],ae=Object.keys(this.cases).sort(),ve=[],Se={},Pe=0,et=ae;Pe=5)return W.error("Expected 3 or 4 arguments, but found "+(R.length-1)+" instead.");var ae=W.parse(R[1],1,On),ve=W.parse(R[2],2,Qr);if(!ae||!ve)return null;if(!Qa(ae.type,[pa(On),wn,On]))return W.error("Expected first argument to be of type array or string, but found "+ta(ae.type)+" instead");if(R.length===4){var Se=W.parse(R[3],3,Qr);return Se?new Do(ae.type,ae,ve,Se):null}else return new Do(ae.type,ae,ve)},Do.prototype.evaluate=function(R){var W=this.input.evaluate(R),ae=this.beginIndex.evaluate(R);if(!ol(W,["string","array"]))throw new Ua("Expected first argument to be of type array or string, but found "+ta(Ra(W))+" instead.");if(this.endIndex){var ve=this.endIndex.evaluate(R);return W.slice(ae,ve)}return W.slice(ae)},Do.prototype.eachChild=function(R){R(this.input),R(this.beginIndex),this.endIndex&&R(this.endIndex)},Do.prototype.outputDefined=function(){return!1},Do.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var R=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),R]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Ul(P,R){return P==="=="||P==="!="?R.kind==="boolean"||R.kind==="string"||R.kind==="number"||R.kind==="null"||R.kind==="value":R.kind==="string"||R.kind==="number"||R.kind==="value"}function Lc(P,R,W){return R===W}function Pc(P,R,W){return R!==W}function Rc(P,R,W){return RW}function Ku(P,R,W){return R<=W}function Rf(P,R,W){return R>=W}function yl(P,R,W,ae){return ae.compare(R,W)===0}function ja(P,R,W,ae){return!yl(P,R,W,ae)}function Co(P,R,W,ae){return ae.compare(R,W)<0}function xl(P,R,W,ae){return ae.compare(R,W)>0}function Df(P,R,W,ae){return ae.compare(R,W)<=0}function Hl(P,R,W,ae){return ae.compare(R,W)>=0}function gs(P,R,W){var ae=P!=="=="&&P!=="!=";return function(){function ve(Se,Pe,et){this.type=Ln,this.lhs=Se,this.rhs=Pe,this.collator=et,this.hasUntypedArgument=Se.type.kind==="value"||Pe.type.kind==="value"}return ve.parse=function(Pe,et){if(Pe.length!==3&&Pe.length!==4)return et.error("Expected two or three arguments.");var yt=Pe[0],_t=et.parse(Pe[1],1,On);if(!_t)return null;if(!Ul(yt,_t.type))return et.concat(1).error('"'+yt+`" comparisons are not supported for type '`+ta(_t.type)+"'.");var Ft=et.parse(Pe[2],2,On);if(!Ft)return null;if(!Ul(yt,Ft.type))return et.concat(2).error('"'+yt+`" comparisons are not supported for type '`+ta(Ft.type)+"'.");if(_t.type.kind!==Ft.type.kind&&_t.type.kind!=="value"&&Ft.type.kind!=="value")return et.error("Cannot compare types '"+ta(_t.type)+"' and '"+ta(Ft.type)+"'.");ae&&(_t.type.kind==="value"&&Ft.type.kind!=="value"?_t=new $a(Ft.type,[_t]):_t.type.kind!=="value"&&Ft.type.kind==="value"&&(Ft=new $a(_t.type,[Ft])));var jt=null;if(Pe.length===4){if(_t.type.kind!=="string"&&Ft.type.kind!=="string"&&_t.type.kind!=="value"&&Ft.type.kind!=="value")return et.error("Cannot use collator to compare non-string types.");if(jt=et.parse(Pe[3],3,ai),!jt)return null}return new ve(_t,Ft,jt)},ve.prototype.evaluate=function(Pe){var et=this.lhs.evaluate(Pe),yt=this.rhs.evaluate(Pe);if(ae&&this.hasUntypedArgument){var _t=Ra(et),Ft=Ra(yt);if(_t.kind!==Ft.kind||!(_t.kind==="string"||_t.kind==="number"))throw new Ua('Expected arguments for "'+P+'" to be (string, string) or (number, number), but found ('+_t.kind+", "+Ft.kind+") instead.")}if(this.collator&&!ae&&this.hasUntypedArgument){var jt=Ra(et),ar=Ra(yt);if(jt.kind!=="string"||ar.kind!=="string")return R(Pe,et,yt)}return this.collator?W(Pe,et,yt,this.collator.evaluate(Pe)):R(Pe,et,yt)},ve.prototype.eachChild=function(Pe){Pe(this.lhs),Pe(this.rhs),this.collator&&Pe(this.collator)},ve.prototype.outputDefined=function(){return!0},ve.prototype.serialize=function(){var Pe=[P];return this.eachChild(function(et){Pe.push(et.serialize())}),Pe},ve}()}var Ic=gs("==",Lc,yl),If=gs("!=",Pc,ja),Ff=gs("<",Rc,Co),Ju=gs(">",Dc,xl),zf=gs("<=",Ku,Df),vo=gs(">=",Rf,Hl),Xo=function(R,W,ae,ve,Se){this.type=wn,this.number=R,this.locale=W,this.currency=ae,this.minFractionDigits=ve,this.maxFractionDigits=Se};Xo.parse=function(R,W){if(R.length!==3)return W.error("Expected two arguments.");var ae=W.parse(R[1],1,Qr);if(!ae)return null;var ve=R[2];if(typeof ve!="object"||Array.isArray(ve))return W.error("NumberFormat options argument must be an object.");var Se=null;if(ve.locale&&(Se=W.parse(ve.locale,1,wn),!Se))return null;var Pe=null;if(ve.currency&&(Pe=W.parse(ve.currency,1,wn),!Pe))return null;var et=null;if(ve["min-fraction-digits"]&&(et=W.parse(ve["min-fraction-digits"],1,Qr),!et))return null;var yt=null;return ve["max-fraction-digits"]&&(yt=W.parse(ve["max-fraction-digits"],1,Qr),!yt)?null:new Xo(ae,Se,Pe,et,yt)},Xo.prototype.evaluate=function(R){return new Intl.NumberFormat(this.locale?this.locale.evaluate(R):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(R):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(R):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(R):void 0}).format(this.number.evaluate(R))},Xo.prototype.eachChild=function(R){R(this.number),this.locale&&R(this.locale),this.currency&&R(this.currency),this.minFractionDigits&&R(this.minFractionDigits),this.maxFractionDigits&&R(this.maxFractionDigits)},Xo.prototype.outputDefined=function(){return!1},Xo.prototype.serialize=function(){var R={};return this.locale&&(R.locale=this.locale.serialize()),this.currency&&(R.currency=this.currency.serialize()),this.minFractionDigits&&(R["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(R["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),R]};var Ds=function(R){this.type=Qr,this.input=R};Ds.parse=function(R,W){if(R.length!==2)return W.error("Expected 1 argument, but found "+(R.length-1)+" instead.");var ae=W.parse(R[1],1);return ae?ae.type.kind!=="array"&&ae.type.kind!=="string"&&ae.type.kind!=="value"?W.error("Expected argument of type string or array, but found "+ta(ae.type)+" instead."):new Ds(ae):null},Ds.prototype.evaluate=function(R){var W=this.input.evaluate(R);if(typeof W=="string")return W.length;if(Array.isArray(W))return W.length;throw new Ua("Expected value to be of type string or array, but found "+ta(Ra(W))+" instead.")},Ds.prototype.eachChild=function(R){R(this.input)},Ds.prototype.outputDefined=function(){return!1},Ds.prototype.serialize=function(){var R=["length"];return this.eachChild(function(W){R.push(W.serialize())}),R};var bl={"==":Ic,"!=":If,">":Ju,"<":Ff,">=":vo,"<=":zf,array:$a,at:js,boolean:$a,case:Yo,coalesce:Go,collator:Cs,format:qa,image:_o,in:Rs,"index-of":Wo,interpolate:Da,"interpolate-hcl":Da,"interpolate-lab":Da,length:Ds,let:ds,literal:za,match:ps,number:$a,"number-format":Xo,object:$a,slice:Do,step:Ho,string:$a,"to-boolean":bo,"to-color":bo,"to-number":bo,"to-string":bo,var:Ls,within:Uo};function Au(P,R){var W=R[0],ae=R[1],ve=R[2],Se=R[3];W=W.evaluate(P),ae=ae.evaluate(P),ve=ve.evaluate(P);var Pe=Se?Se.evaluate(P):1,et=sl(W,ae,ve,Pe);if(et)throw new Ua(et);return new $i(W/255*Pe,ae/255*Pe,ve/255*Pe,Pe)}function Ks(P,R){return P in R}function Js(P,R){var W=R[P];return typeof W>"u"?null:W}function kf(P,R,W,ae){for(;W<=ae;){var ve=W+ae>>1;if(R[ve]===P)return!0;R[ve]>P?ae=ve-1:W=ve+1}return!1}function ms(P){return{type:P}}Za.register(bl,{error:[mi,[wn],function(P,R){var W=R[0];throw new Ua(W.evaluate(P))}],typeof:[wn,[On],function(P,R){var W=R[0];return ta(Ra(W.evaluate(P)))}],"to-rgba":[pa(Qr,4),[Pn],function(P,R){var W=R[0];return W.evaluate(P).toArray()}],rgb:[Pn,[Qr,Qr,Qr],Au],rgba:[Pn,[Qr,Qr,Qr,Qr],Au],has:{type:Ln,overloads:[[[wn],function(P,R){var W=R[0];return Ks(W.evaluate(P),P.properties())}],[[wn,Un],function(P,R){var W=R[0],ae=R[1];return Ks(W.evaluate(P),ae.evaluate(P))}]]},get:{type:On,overloads:[[[wn],function(P,R){var W=R[0];return Js(W.evaluate(P),P.properties())}],[[wn,Un],function(P,R){var W=R[0],ae=R[1];return Js(W.evaluate(P),ae.evaluate(P))}]]},"feature-state":[On,[wn],function(P,R){var W=R[0];return Js(W.evaluate(P),P.featureState||{})}],properties:[Un,[],function(P){return P.properties()}],"geometry-type":[wn,[],function(P){return P.geometryType()}],id:[On,[],function(P){return P.id()}],zoom:[Qr,[],function(P){return P.globals.zoom}],"heatmap-density":[Qr,[],function(P){return P.globals.heatmapDensity||0}],"line-progress":[Qr,[],function(P){return P.globals.lineProgress||0}],accumulated:[On,[],function(P){return P.globals.accumulated===void 0?null:P.globals.accumulated}],"+":[Qr,ms(Qr),function(P,R){for(var W=0,ae=0,ve=R;ae":[Ln,[wn,On],function(P,R){var W=R[0],ae=R[1],ve=P.properties()[W.value],Se=ae.value;return typeof ve==typeof Se&&ve>Se}],"filter-id->":[Ln,[On],function(P,R){var W=R[0],ae=P.id(),ve=W.value;return typeof ae==typeof ve&&ae>ve}],"filter-<=":[Ln,[wn,On],function(P,R){var W=R[0],ae=R[1],ve=P.properties()[W.value],Se=ae.value;return typeof ve==typeof Se&&ve<=Se}],"filter-id-<=":[Ln,[On],function(P,R){var W=R[0],ae=P.id(),ve=W.value;return typeof ae==typeof ve&&ae<=ve}],"filter->=":[Ln,[wn,On],function(P,R){var W=R[0],ae=R[1],ve=P.properties()[W.value],Se=ae.value;return typeof ve==typeof Se&&ve>=Se}],"filter-id->=":[Ln,[On],function(P,R){var W=R[0],ae=P.id(),ve=W.value;return typeof ae==typeof ve&&ae>=ve}],"filter-has":[Ln,[On],function(P,R){var W=R[0];return W.value in P.properties()}],"filter-has-id":[Ln,[],function(P){return P.id()!==null&&P.id()!==void 0}],"filter-type-in":[Ln,[pa(wn)],function(P,R){var W=R[0];return W.value.indexOf(P.geometryType())>=0}],"filter-id-in":[Ln,[pa(On)],function(P,R){var W=R[0];return W.value.indexOf(P.id())>=0}],"filter-in-small":[Ln,[wn,pa(On)],function(P,R){var W=R[0],ae=R[1];return ae.value.indexOf(P.properties()[W.value])>=0}],"filter-in-large":[Ln,[wn,pa(On)],function(P,R){var W=R[0],ae=R[1];return kf(P.properties()[W.value],ae.value,0,ae.value.length-1)}],all:{type:Ln,overloads:[[[Ln,Ln],function(P,R){var W=R[0],ae=R[1];return W.evaluate(P)&&ae.evaluate(P)}],[ms(Ln),function(P,R){for(var W=0,ae=R;W-1}function Tl(P){return!!P.expression&&P.expression.interpolated}function ha(P){return P instanceof Number?"number":P instanceof String?"string":P instanceof Boolean?"boolean":Array.isArray(P)?"array":P===null?"null":typeof P}function Al(P){return typeof P=="object"&&P!==null&&!Array.isArray(P)}function Mu(P){return P}function Of(P,R){var W=R.type==="color",ae=P.stops&&typeof P.stops[0][0]=="object",ve=ae||P.property!==void 0,Se=ae||!ve,Pe=P.type||(Tl(R)?"exponential":"interval");if(W&&(P=In({},P),P.stops&&(P.stops=P.stops.map(function($n){return[$n[0],$i.parse($n[1])]})),P.default?P.default=$i.parse(P.default):P.default=$i.parse(R.default)),P.colorSpace&&P.colorSpace!=="rgb"&&!Tu[P.colorSpace])throw new Error("Unknown color space: "+P.colorSpace);var et,yt,_t;if(Pe==="exponential")et=Qu;else if(Pe==="interval")et=Su;else if(Pe==="categorical"){et=Gl,yt=Object.create(null);for(var Ft=0,jt=P.stops;Ft=P.stops[ae-1][0])return P.stops[ae-1][1];var ve=hl(P.stops.map(function(Se){return Se[0]}),W);return P.stops[ve][1]}function Qu(P,R,W){var ae=P.base!==void 0?P.base:1;if(ha(W)!=="number")return Ml(P.default,R.default);var ve=P.stops.length;if(ve===1||W<=P.stops[0][0])return P.stops[0][1];if(W>=P.stops[ve-1][0])return P.stops[ve-1][1];var Se=hl(P.stops.map(function(jt){return jt[0]}),W),Pe=Yl(W,ae,P.stops[Se][0],P.stops[Se+1][0]),et=P.stops[Se][1],yt=P.stops[Se+1][1],_t=mu[R.type]||Mu;if(P.colorSpace&&P.colorSpace!=="rgb"){var Ft=Tu[P.colorSpace];_t=function(jt,ar){return Ft.reverse(Ft.interpolate(Ft.forward(jt),Ft.forward(ar),Pe))}}return typeof et.evaluate=="function"?{evaluate:function(){for(var ar=[],er=arguments.length;er--;)ar[er]=arguments[er];var yr=et.evaluate.apply(void 0,ar),zr=yt.evaluate.apply(void 0,ar);if(!(yr===void 0||zr===void 0))return _t(yr,zr,Pe)}}:_t(et,yt,Pe)}function Wl(P,R,W){return R.type==="color"?W=$i.parse(W):R.type==="formatted"?W=Xa.fromString(W.toString()):R.type==="resolvedImage"?W=ho.fromString(W.toString()):ha(W)!==R.type&&(R.type!=="enum"||!R.values[W])&&(W=void 0),Ml(W,P.default,R.default)}function Yl(P,R,W,ae){var ve=ae-W,Se=P-W;return ve===0?0:R===1?Se/ve:(Math.pow(R,Se)-1)/(Math.pow(R,ve)-1)}var Fs=function(R,W){this.expression=R,this._warningHistory={},this._evaluator=new es,this._defaultValue=W?Nf(W):null,this._enumValues=W&&W.type==="enum"?W.values:null};Fs.prototype.evaluateWithoutErrorHandling=function(R,W,ae,ve,Se,Pe){return this._evaluator.globals=R,this._evaluator.feature=W,this._evaluator.featureState=ae,this._evaluator.canonical=ve,this._evaluator.availableImages=Se||null,this._evaluator.formattedSection=Pe,this.expression.evaluate(this._evaluator)},Fs.prototype.evaluate=function(R,W,ae,ve,Se,Pe){this._evaluator.globals=R,this._evaluator.feature=W||null,this._evaluator.featureState=ae||null,this._evaluator.canonical=ve,this._evaluator.availableImages=Se||null,this._evaluator.formattedSection=Pe||null;try{var et=this.expression.evaluate(this._evaluator);if(et==null||typeof et=="number"&&et!==et)return this._defaultValue;if(this._enumValues&&!(et in this._enumValues))throw new Ua("Expected value to be one of "+Object.keys(this._enumValues).map(function(yt){return JSON.stringify(yt)}).join(", ")+", but found "+JSON.stringify(et)+" instead.");return et}catch(yt){return this._warningHistory[yt.message]||(this._warningHistory[yt.message]=!0,typeof console<"u"&&console.warn(yt.message)),this._defaultValue}};function Xl(P){return Array.isArray(P)&&P.length>0&&typeof P[0]=="string"&&P[0]in bl}function zs(P,R){var W=new rs(bl,[],R?Fc(R):void 0),ae=W.parse(P,void 0,void 0,void 0,R&&R.type==="string"?{typeAnnotation:"coerce"}:void 0);return ae?wl(new Fs(ae,R)):Is(W.errors)}var Ha=function(R,W){this.kind=R,this._styleExpression=W,this.isStateDependent=R!=="constant"&&!Xs(W.expression)};Ha.prototype.evaluateWithoutErrorHandling=function(R,W,ae,ve,Se,Pe){return this._styleExpression.evaluateWithoutErrorHandling(R,W,ae,ve,Se,Pe)},Ha.prototype.evaluate=function(R,W,ae,ve,Se,Pe){return this._styleExpression.evaluate(R,W,ae,ve,Se,Pe)};var ns=function(R,W,ae,ve){this.kind=R,this.zoomStops=ae,this._styleExpression=W,this.isStateDependent=R!=="camera"&&!Xs(W.expression),this.interpolationType=ve};ns.prototype.evaluateWithoutErrorHandling=function(R,W,ae,ve,Se,Pe){return this._styleExpression.evaluateWithoutErrorHandling(R,W,ae,ve,Se,Pe)},ns.prototype.evaluate=function(R,W,ae,ve,Se,Pe){return this._styleExpression.evaluate(R,W,ae,ve,Se,Pe)},ns.prototype.interpolationFactor=function(R,W,ae){return this.interpolationType?Da.interpolationFactor(this.interpolationType,R,W,ae):0};function $u(P,R){if(P=zs(P,R),P.result==="error")return P;var W=P.value.expression,ae=cl(W);if(!ae&&!ys(R))return Is([new Er("","data expressions not supported")]);var ve=Ol(W,["zoom"]);if(!ve&&!Vl(R))return Is([new Er("","zoom expressions not supported")]);var Se=Zl(W);if(!Se&&!ve)return Is([new Er("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(Se instanceof Er)return Is([Se]);if(Se instanceof Da&&!Tl(R))return Is([new Er("",'"interpolate" expressions cannot be used with this property')]);if(!Se)return wl(ae?new Ha("constant",P.value):new Ha("source",P.value));var Pe=Se instanceof Da?Se.interpolation:void 0;return wl(ae?new ns("camera",P.value,Se.labels,Pe):new ns("composite",P.value,Se.labels,Pe))}var Qs=function(R,W){this._parameters=R,this._specification=W,In(this,Of(this._parameters,this._specification))};Qs.deserialize=function(R){return new Qs(R._parameters,R._specification)},Qs.serialize=function(R){return{_parameters:R._parameters,_specification:R._specification}};function Eu(P,R){if(Al(P))return new Qs(P,R);if(Xl(P)){var W=$u(P,R);if(W.result==="error")throw new Error(W.value.map(function(ve){return ve.key+": "+ve.message}).join(", "));return W.value}else{var ae=P;return typeof P=="string"&&R.type==="color"&&(ae=$i.parse(P)),{kind:"constant",evaluate:function(){return ae}}}}function Zl(P){var R=null;if(P instanceof ds)R=Zl(P.result);else if(P instanceof Go)for(var W=0,ae=P.args;Wae.maximum?[new Or(R,W,W+" is greater than the maximum value "+ae.maximum)]:[]}function Bf(P){var R=P.valueSpec,W=hn(P.value.type),ae,ve={},Se,Pe,et=W!=="categorical"&&P.value.property===void 0,yt=!et,_t=ha(P.value.stops)==="array"&&ha(P.value.stops[0])==="array"&&ha(P.value.stops[0][0])==="object",Ft=lo({key:P.key,value:P.value,valueSpec:P.styleSpec.function,style:P.style,styleSpec:P.styleSpec,objectElementValidators:{stops:jt,default:yr}});return W==="identity"&&et&&Ft.push(new Or(P.key,P.value,'missing required property "property"')),W!=="identity"&&!P.value.stops&&Ft.push(new Or(P.key,P.value,'missing required property "stops"')),W==="exponential"&&P.valueSpec.expression&&!Tl(P.valueSpec)&&Ft.push(new Or(P.key,P.value,"exponential functions not supported")),P.styleSpec.$version>=8&&(yt&&!ys(P.valueSpec)?Ft.push(new Or(P.key,P.value,"property functions not supported")):et&&!Vl(P.valueSpec)&&Ft.push(new Or(P.key,P.value,"zoom functions not supported"))),(W==="categorical"||_t)&&P.value.property===void 0&&Ft.push(new Or(P.key,P.value,'"property" property is required')),Ft;function jt(zr){if(W==="identity")return[new Or(zr.key,zr.value,'identity function may not have a "stops" property')];var ln=[],en=zr.value;return ln=ln.concat(jl({key:zr.key,value:en,valueSpec:zr.valueSpec,style:zr.style,styleSpec:zr.styleSpec,arrayElementValidator:ar})),ha(en)==="array"&&en.length===0&&ln.push(new Or(zr.key,en,"array must have at least one stop")),ln}function ar(zr){var ln=[],en=zr.value,Sn=zr.key;if(ha(en)!=="array")return[new Or(Sn,en,"array expected, "+ha(en)+" found")];if(en.length!==2)return[new Or(Sn,en,"array length 2 expected, length "+en.length+" found")];if(_t){if(ha(en[0])!=="object")return[new Or(Sn,en,"object expected, "+ha(en[0])+" found")];if(en[0].zoom===void 0)return[new Or(Sn,en,"object stop key must have zoom")];if(en[0].value===void 0)return[new Or(Sn,en,"object stop key must have value")];if(Pe&&Pe>hn(en[0].zoom))return[new Or(Sn,en[0].zoom,"stop zoom values must appear in ascending order")];hn(en[0].zoom)!==Pe&&(Pe=hn(en[0].zoom),Se=void 0,ve={}),ln=ln.concat(lo({key:Sn+"[0]",value:en[0],valueSpec:{zoom:{}},style:zr.style,styleSpec:zr.styleSpec,objectElementValidators:{zoom:Sl,value:er}}))}else ln=ln.concat(er({key:Sn+"[0]",value:en[0],valueSpec:{},style:zr.style,styleSpec:zr.styleSpec},en));return Xl(sn(en[1]))?ln.concat([new Or(Sn+"[1]",en[1],"expressions are not allowed in function stops.")]):ln.concat(Ir({key:Sn+"[1]",value:en[1],valueSpec:R,style:zr.style,styleSpec:zr.styleSpec}))}function er(zr,ln){var en=ha(zr.value),Sn=hn(zr.value),mn=zr.value!==null?zr.value:ln;if(!ae)ae=en;else if(en!==ae)return[new Or(zr.key,mn,en+" stop domain type must match previous stop domain type "+ae)];if(en!=="number"&&en!=="string"&&en!=="boolean")return[new Or(zr.key,mn,"stop domain value must be a number, string, or boolean")];if(en!=="number"&&W!=="categorical"){var Mn="number expected, "+en+" found";return ys(R)&&W===void 0&&(Mn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Or(zr.key,mn,Mn)]}return W==="categorical"&&en==="number"&&(!isFinite(Sn)||Math.floor(Sn)!==Sn)?[new Or(zr.key,mn,"integer expected, found "+Sn)]:W!=="categorical"&&en==="number"&&Se!==void 0&&Sn=2&&P[1]!=="$id"&&P[1]!=="$type";case"in":return P.length>=3&&(typeof P[1]!="string"||Array.isArray(P[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return P.length!==3||Array.isArray(P[1])||Array.isArray(P[2]);case"any":case"all":for(var R=0,W=P.slice(1);RR?1:0}function Jl(P){if(!Array.isArray(P))return!1;if(P[0]==="within")return!0;for(var R=1;R"||R==="<="||R===">="?Cu(P[1],P[2],R):R==="any"?Uf(P.slice(1)):R==="all"?["all"].concat(P.slice(1).map(Ql)):R==="none"?["all"].concat(P.slice(1).map(Ql).map($s)):R==="in"?$l(P[1],P.slice(2)):R==="!in"?$s($l(P[1],P.slice(2))):R==="has"?ef(P[1]):R==="!has"?$s(ef(P[1])):R==="within"?P:!0;return W}function Cu(P,R,W){switch(P){case"$type":return["filter-type-"+W,R];case"$id":return["filter-id-"+W,R];default:return["filter-"+W,P,R]}}function Uf(P){return["any"].concat(P.map(Ql))}function $l(P,R){if(R.length===0)return!1;switch(P){case"$type":return["filter-type-in",["literal",R]];case"$id":return["filter-id-in",["literal",R]];default:return R.length>200&&!R.some(function(W){return typeof W!=typeof R[0]})?["filter-in-large",P,["literal",R.sort(qu)]]:["filter-in-small",P,["literal",R]]}}function ef(P){switch(P){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",P]}}function $s(P){return["!",P]}function tf(P){return _u(sn(P.value))?ks(In({},P,{expressionContext:"filter",valueSpec:{value:"boolean"}})):ql(P)}function ql(P){var R=P.value,W=P.key;if(ha(R)!=="array")return[new Or(W,R,"array expected, "+ha(R)+" found")];var ae=P.styleSpec,ve,Se=[];if(R.length<1)return[new Or(W,R,"filter array must have at least 1 element")];switch(Se=Se.concat(Kl({key:W+"[0]",value:R[0],valueSpec:ae.filter_operator,style:P.style,styleSpec:P.styleSpec})),hn(R[0])){case"<":case"<=":case">":case">=":R.length>=2&&hn(R[1])==="$type"&&Se.push(new Or(W,R,'"$type" cannot be use with operator "'+R[0]+'"'));case"==":case"!=":R.length!==3&&Se.push(new Or(W,R,'filter array for operator "'+R[0]+'" must have 3 elements'));case"in":case"!in":R.length>=2&&(ve=ha(R[1]),ve!=="string"&&Se.push(new Or(W+"[1]",R[1],"string expected, "+ve+" found")));for(var Pe=2;Pe=Ft[er+0]&&ae>=Ft[er+1])?(Pe[ar]=!0,Se.push(_t[ar])):Pe[ar]=!1}}},va.prototype._forEachCell=function(P,R,W,ae,ve,Se,Pe,et){for(var yt=this._convertToCellCoord(P),_t=this._convertToCellCoord(R),Ft=this._convertToCellCoord(W),jt=this._convertToCellCoord(ae),ar=yt;ar<=Ft;ar++)for(var er=_t;er<=jt;er++){var yr=this.d*er+ar;if(!(et&&!et(this._convertFromCellCoord(ar),this._convertFromCellCoord(er),this._convertFromCellCoord(ar+1),this._convertFromCellCoord(er+1)))&&ve.call(this,P,R,W,ae,yr,Se,Pe,et))return}},va.prototype._convertFromCellCoord=function(P){return(P-this.padding)/this.scale},va.prototype._convertToCellCoord=function(P){return Math.max(0,Math.min(this.d-1,Math.floor(P*this.scale)+this.padding))},va.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var P=this.cells,R=Xi+this.cells.length+1+1,W=0,ae=0;ae=0)){var jt=P[Ft];_t[Ft]=Ce[yt].shallow.indexOf(Ft)>=0?jt:Dt(jt,R)}P instanceof Error&&(_t.message=P.message)}if(_t.$name)throw new Error("$name property is reserved for worker serialization logic.");return yt!=="Object"&&(_t.$name=yt),_t}throw new Error("can't serialize object of type "+typeof P)}function Et(P){if(P==null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||P instanceof Boolean||P instanceof Number||P instanceof String||P instanceof Date||P instanceof RegExp||at(P)||ft(P)||ArrayBuffer.isView(P)||P instanceof Ia)return P;if(Array.isArray(P))return P.map(Et);if(typeof P=="object"){var R=P.$name||"Object",W=Ce[R],ae=W.klass;if(!ae)throw new Error("can't deserialize unregistered class "+R);if(ae.deserialize)return ae.deserialize(P);for(var ve=Object.create(ae.prototype),Se=0,Pe=Object.keys(P);Se=0?yt:Et(yt)}}return ve}throw new Error("can't deserialize object of type "+typeof P)}var Yt=function(){this.first=!0};Yt.prototype.update=function(R,W){var ae=Math.floor(R);return this.first?(this.first=!1,this.lastIntegerZoom=ae,this.lastIntegerZoomTime=0,this.lastZoom=R,this.lastFloorZoom=ae,!0):(this.lastFloorZoom>ae?(this.lastIntegerZoom=ae+1,this.lastIntegerZoomTime=W):this.lastFloorZoom=128&&P<=255},Arabic:function(P){return P>=1536&&P<=1791},"Arabic Supplement":function(P){return P>=1872&&P<=1919},"Arabic Extended-A":function(P){return P>=2208&&P<=2303},"Hangul Jamo":function(P){return P>=4352&&P<=4607},"Unified Canadian Aboriginal Syllabics":function(P){return P>=5120&&P<=5759},Khmer:function(P){return P>=6016&&P<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(P){return P>=6320&&P<=6399},"General Punctuation":function(P){return P>=8192&&P<=8303},"Letterlike Symbols":function(P){return P>=8448&&P<=8527},"Number Forms":function(P){return P>=8528&&P<=8591},"Miscellaneous Technical":function(P){return P>=8960&&P<=9215},"Control Pictures":function(P){return P>=9216&&P<=9279},"Optical Character Recognition":function(P){return P>=9280&&P<=9311},"Enclosed Alphanumerics":function(P){return P>=9312&&P<=9471},"Geometric Shapes":function(P){return P>=9632&&P<=9727},"Miscellaneous Symbols":function(P){return P>=9728&&P<=9983},"Miscellaneous Symbols and Arrows":function(P){return P>=11008&&P<=11263},"CJK Radicals Supplement":function(P){return P>=11904&&P<=12031},"Kangxi Radicals":function(P){return P>=12032&&P<=12255},"Ideographic Description Characters":function(P){return P>=12272&&P<=12287},"CJK Symbols and Punctuation":function(P){return P>=12288&&P<=12351},Hiragana:function(P){return P>=12352&&P<=12447},Katakana:function(P){return P>=12448&&P<=12543},Bopomofo:function(P){return P>=12544&&P<=12591},"Hangul Compatibility Jamo":function(P){return P>=12592&&P<=12687},Kanbun:function(P){return P>=12688&&P<=12703},"Bopomofo Extended":function(P){return P>=12704&&P<=12735},"CJK Strokes":function(P){return P>=12736&&P<=12783},"Katakana Phonetic Extensions":function(P){return P>=12784&&P<=12799},"Enclosed CJK Letters and Months":function(P){return P>=12800&&P<=13055},"CJK Compatibility":function(P){return P>=13056&&P<=13311},"CJK Unified Ideographs Extension A":function(P){return P>=13312&&P<=19903},"Yijing Hexagram Symbols":function(P){return P>=19904&&P<=19967},"CJK Unified Ideographs":function(P){return P>=19968&&P<=40959},"Yi Syllables":function(P){return P>=40960&&P<=42127},"Yi Radicals":function(P){return P>=42128&&P<=42191},"Hangul Jamo Extended-A":function(P){return P>=43360&&P<=43391},"Hangul Syllables":function(P){return P>=44032&&P<=55215},"Hangul Jamo Extended-B":function(P){return P>=55216&&P<=55295},"Private Use Area":function(P){return P>=57344&&P<=63743},"CJK Compatibility Ideographs":function(P){return P>=63744&&P<=64255},"Arabic Presentation Forms-A":function(P){return P>=64336&&P<=65023},"Vertical Forms":function(P){return P>=65040&&P<=65055},"CJK Compatibility Forms":function(P){return P>=65072&&P<=65103},"Small Form Variants":function(P){return P>=65104&&P<=65135},"Arabic Presentation Forms-B":function(P){return P>=65136&&P<=65279},"Halfwidth and Fullwidth Forms":function(P){return P>=65280&&P<=65519}};function nr(P){for(var R=0,W=P;R=65097&&P<=65103)||Zt["CJK Compatibility Ideographs"](P)||Zt["CJK Compatibility"](P)||Zt["CJK Radicals Supplement"](P)||Zt["CJK Strokes"](P)||Zt["CJK Symbols and Punctuation"](P)&&!(P>=12296&&P<=12305)&&!(P>=12308&&P<=12319)&&P!==12336||Zt["CJK Unified Ideographs Extension A"](P)||Zt["CJK Unified Ideographs"](P)||Zt["Enclosed CJK Letters and Months"](P)||Zt["Hangul Compatibility Jamo"](P)||Zt["Hangul Jamo Extended-A"](P)||Zt["Hangul Jamo Extended-B"](P)||Zt["Hangul Jamo"](P)||Zt["Hangul Syllables"](P)||Zt.Hiragana(P)||Zt["Ideographic Description Characters"](P)||Zt.Kanbun(P)||Zt["Kangxi Radicals"](P)||Zt["Katakana Phonetic Extensions"](P)||Zt.Katakana(P)&&P!==12540||Zt["Halfwidth and Fullwidth Forms"](P)&&P!==65288&&P!==65289&&P!==65293&&!(P>=65306&&P<=65310)&&P!==65339&&P!==65341&&P!==65343&&!(P>=65371&&P<=65503)&&P!==65507&&!(P>=65512&&P<=65519)||Zt["Small Form Variants"](P)&&!(P>=65112&&P<=65118)&&!(P>=65123&&P<=65126)||Zt["Unified Canadian Aboriginal Syllabics"](P)||Zt["Unified Canadian Aboriginal Syllabics Extended"](P)||Zt["Vertical Forms"](P)||Zt["Yijing Hexagram Symbols"](P)||Zt["Yi Syllables"](P)||Zt["Yi Radicals"](P))}function Rr(P){return!!(Zt["Latin-1 Supplement"](P)&&(P===167||P===169||P===174||P===177||P===188||P===189||P===190||P===215||P===247)||Zt["General Punctuation"](P)&&(P===8214||P===8224||P===8225||P===8240||P===8241||P===8251||P===8252||P===8258||P===8263||P===8264||P===8265||P===8273)||Zt["Letterlike Symbols"](P)||Zt["Number Forms"](P)||Zt["Miscellaneous Technical"](P)&&(P>=8960&&P<=8967||P>=8972&&P<=8991||P>=8996&&P<=9e3||P===9003||P>=9085&&P<=9114||P>=9150&&P<=9165||P===9167||P>=9169&&P<=9179||P>=9186&&P<=9215)||Zt["Control Pictures"](P)&&P!==9251||Zt["Optical Character Recognition"](P)||Zt["Enclosed Alphanumerics"](P)||Zt["Geometric Shapes"](P)||Zt["Miscellaneous Symbols"](P)&&!(P>=9754&&P<=9759)||Zt["Miscellaneous Symbols and Arrows"](P)&&(P>=11026&&P<=11055||P>=11088&&P<=11097||P>=11192&&P<=11243)||Zt["CJK Symbols and Punctuation"](P)||Zt.Katakana(P)||Zt["Private Use Area"](P)||Zt["CJK Compatibility Forms"](P)||Zt["Small Form Variants"](P)||Zt["Halfwidth and Fullwidth Forms"](P)||P===8734||P===8756||P===8757||P>=9984&&P<=10087||P>=10102&&P<=10131||P===65532||P===65533)}function Br(P){return!(on(P)||Rr(P))}function jr(P){return Zt.Arabic(P)||Zt["Arabic Supplement"](P)||Zt["Arabic Extended-A"](P)||Zt["Arabic Presentation Forms-A"](P)||Zt["Arabic Presentation Forms-B"](P)}function un(P){return P>=1424&&P<=2303||Zt["Arabic Presentation Forms-A"](P)||Zt["Arabic Presentation Forms-B"](P)}function vn(P,R){return!(!R&&un(P)||P>=2304&&P<=3583||P>=3840&&P<=4255||Zt.Khmer(P))}function qr(P){for(var R=0,W=P;R-1&&(Qn=qn.error),ui&&ui(P)};function Oi(){Mi.fire(new rr("pluginStateChange",{pluginStatus:Qn,pluginURL:ii}))}var Mi=new dr,Ii=function(){return Qn},ra=function(P){return P({pluginStatus:Qn,pluginURL:ii}),Mi.on("pluginStateChange",P),P},ka=function(P,R,W){if(W===void 0&&(W=!1),Qn===qn.deferred||Qn===qn.loading||Qn===qn.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");ii=se.resolveURL(P),Qn=qn.deferred,ui=R,Oi(),W||la()},la=function(){if(Qn!==qn.deferred||!ii)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Qn=qn.loading,Oi(),ii&&kt({url:ii},function(P){P?fi(P):(Qn=qn.loaded,Oi())})},Kn={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Qn===qn.loaded||Kn.applyArabicShaping!=null},isLoading:function(){return Qn===qn.loading},setState:function(R){Qn=R.pluginStatus,ii=R.pluginURL},isParsed:function(){return Kn.applyArabicShaping!=null&&Kn.processBidirectionalText!=null&&Kn.processStyledBidirectionalText!=null},getPluginURL:function(){return ii}},Bi=function(){!Kn.isLoading()&&!Kn.isLoaded()&&Ii()==="deferred"&&la()},Ti=function(R,W){this.zoom=R,W?(this.now=W.now,this.fadeDuration=W.fadeDuration,this.zoomHistory=W.zoomHistory,this.transition=W.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yt,this.transition={})};Ti.prototype.isSupportedScript=function(R){return Hn(R,Kn.isLoaded())},Ti.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Ti.prototype.getCrossfadeParameters=function(){var R=this.zoom,W=R-Math.floor(R),ae=this.crossFadingFactor();return R>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:W+(1-W)*ae}:{fromScale:.5,toScale:1,t:1-(1-ae)*W}};var Zi=function(R,W){this.property=R,this.value=W,this.expression=Eu(W===void 0?R.specification.default:W,R.specification)};Zi.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Zi.prototype.possiblyEvaluate=function(R,W,ae){return this.property.possiblyEvaluate(this,R,W,ae)};var ba=function(R){this.property=R,this.value=new Zi(R,void 0)};ba.prototype.transitioned=function(R,W){return new Ka(this.property,this.value,W,w({},R.transition,this.transition),R.now)},ba.prototype.untransitioned=function(){return new Ka(this.property,this.value,null,{},0)};var na=function(R){this._properties=R,this._values=Object.create(R.defaultTransitionablePropertyValues)};na.prototype.getValue=function(R){return N(this._values[R].value.value)},na.prototype.setValue=function(R,W){this._values.hasOwnProperty(R)||(this._values[R]=new ba(this._values[R].property)),this._values[R].value=new Zi(this._values[R].property,W===null?void 0:N(W))},na.prototype.getTransition=function(R){return N(this._values[R].transition)},na.prototype.setTransition=function(R,W){this._values.hasOwnProperty(R)||(this._values[R]=new ba(this._values[R].property)),this._values[R].transition=N(W)||void 0},na.prototype.serialize=function(){for(var R={},W=0,ae=Object.keys(this._values);Wthis.end)return this.prior=null,Se;if(this.value.isDataDriven())return this.prior=null,Se;if(vePe.zoomHistory.lastIntegerZoom?{from:ae,to:ve}:{from:Se,to:ve}},R.prototype.interpolate=function(ae){return ae},R}(Ei),Lo=function(R){this.specification=R};Lo.prototype.possiblyEvaluate=function(R,W,ae,ve){if(R.value!==void 0)if(R.expression.kind==="constant"){var Se=R.expression.evaluate(W,null,{},ae,ve);return this._calculate(Se,Se,Se,W)}else return this._calculate(R.expression.evaluate(new Ti(Math.floor(W.zoom-1),W)),R.expression.evaluate(new Ti(Math.floor(W.zoom),W)),R.expression.evaluate(new Ti(Math.floor(W.zoom+1),W)),W)},Lo.prototype._calculate=function(R,W,ae,ve){var Se=ve.zoom;return Se>ve.zoomHistory.lastIntegerZoom?{from:R,to:W}:{from:ae,to:W}},Lo.prototype.interpolate=function(R){return R};var to=function(R){this.specification=R};to.prototype.possiblyEvaluate=function(R,W,ae,ve){return!!R.expression.evaluate(W,null,{},ae,ve)},to.prototype.interpolate=function(){return!1};var ca=function(R){this.properties=R,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var W in R){var ae=R[W];ae.specification.overridable&&this.overridableProperties.push(W);var ve=this.defaultPropertyValues[W]=new Zi(ae,void 0),Se=this.defaultTransitionablePropertyValues[W]=new ba(ae);this.defaultTransitioningPropertyValues[W]=Se.untransitioned(),this.defaultPossiblyEvaluatedValues[W]=ve.possiblyEvaluate({})}};Be("DataDrivenProperty",Ei),Be("DataConstantProperty",oi),Be("CrossFadedDataDrivenProperty",Ao),Be("CrossFadedProperty",Lo),Be("ColorRampProperty",to);var Va="-transition",Oa=function(P){function R(W,ae){if(P.call(this),this.id=W.id,this.type=W.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},W.type!=="custom"&&(W=W,this.metadata=W.metadata,this.minzoom=W.minzoom,this.maxzoom=W.maxzoom,W.type!=="background"&&(this.source=W.source,this.sourceLayer=W["source-layer"],this.filter=W.filter),ae.layout&&(this._unevaluatedLayout=new eo(ae.layout)),ae.paint)){this._transitionablePaint=new na(ae.paint);for(var ve in W.paint)this.setPaintProperty(ve,W.paint[ve],{validate:!1});for(var Se in W.layout)this.setLayoutProperty(Se,W.layout[Se],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new uo(ae.paint)}}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},R.prototype.getLayoutProperty=function(ae){return ae==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ae)},R.prototype.setLayoutProperty=function(ae,ve,Se){if(Se===void 0&&(Se={}),ve!=null){var Pe="layers."+this.id+".layout."+ae;if(this._validate(Pi,Pe,ae,ve,Se))return}if(ae==="visibility"){this.visibility=ve;return}this._unevaluatedLayout.setValue(ae,ve)},R.prototype.getPaintProperty=function(ae){return M(ae,Va)?this._transitionablePaint.getTransition(ae.slice(0,-Va.length)):this._transitionablePaint.getValue(ae)},R.prototype.setPaintProperty=function(ae,ve,Se){if(Se===void 0&&(Se={}),ve!=null){var Pe="layers."+this.id+".paint."+ae;if(this._validate(Li,Pe,ae,ve,Se))return!1}if(M(ae,Va))return this._transitionablePaint.setTransition(ae.slice(0,-Va.length),ve||void 0),!1;var et=this._transitionablePaint._values[ae],yt=et.property.specification["property-type"]==="cross-faded-data-driven",_t=et.value.isDataDriven(),Ft=et.value;this._transitionablePaint.setValue(ae,ve),this._handleSpecialPaintPropertyUpdate(ae);var jt=this._transitionablePaint._values[ae].value,ar=jt.isDataDriven();return ar||_t||yt||this._handleOverridablePaintPropertyUpdate(ae,Ft,jt)},R.prototype._handleSpecialPaintPropertyUpdate=function(ae){},R.prototype._handleOverridablePaintPropertyUpdate=function(ae,ve,Se){return!1},R.prototype.isHidden=function(ae){return this.minzoom&&ae=this.maxzoom?!0:this.visibility==="none"},R.prototype.updateTransitions=function(ae){this._transitioningPaint=this._transitionablePaint.transitioned(ae,this._transitioningPaint)},R.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},R.prototype.recalculate=function(ae,ve){ae.getCrossfadeParameters&&(this._crossfadeParameters=ae.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ae,void 0,ve)),this.paint=this._transitioningPaint.possiblyEvaluate(ae,void 0,ve)},R.prototype.serialize=function(){var ae={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(ae.layout=ae.layout||{},ae.layout.visibility=this.visibility),D(ae,function(ve,Se){return ve!==void 0&&!(Se==="layout"&&!Object.keys(ve).length)&&!(Se==="paint"&&!Object.keys(ve).length)})},R.prototype._validate=function(ae,ve,Se,Pe,et){return et===void 0&&(et={}),et&&et.validate===!1?!1:Ri(this,ae.call(Dn,{key:ve,layerType:this.type,objectKey:Se,value:Pe,styleSpec:Ar,style:{glyphs:!0,sprite:!0}}))},R.prototype.is3D=function(){return!1},R.prototype.isTileClipped=function(){return!1},R.prototype.hasOffscreenPass=function(){return!1},R.prototype.resize=function(){},R.prototype.isStateDependent=function(){for(var ae in this.paint._values){var ve=this.paint.get(ae);if(!(!(ve instanceof wa)||!ys(ve.property.specification))&&(ve.value.kind==="source"||ve.value.kind==="composite")&&ve.value.isStateDependent)return!0}return!1},R}(dr),is={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},bs=function(R,W){this._structArray=R,this._pos1=W*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ea=128,El=5,ji=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ji.serialize=function(R,W){return R._trim(),W&&(R.isTransferred=!0,W.push(R.arrayBuffer)),{length:R.length,arrayBuffer:R.arrayBuffer}},ji.deserialize=function(R){var W=Object.create(this.prototype);return W.arrayBuffer=R.arrayBuffer,W.length=R.length,W.capacity=R.arrayBuffer.byteLength/W.bytesPerElement,W._refreshViews(),W},ji.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ji.prototype.clear=function(){this.length=0},ji.prototype.resize=function(R){this.reserve(R),this.length=R},ji.prototype.reserve=function(R){if(R>this.capacity){this.capacity=Math.max(R,Math.floor(this.capacity*El),Ea),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var W=this.uint8;this._refreshViews(),W&&this.uint8.set(W)}},ji.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function _a(P,R){R===void 0&&(R=1);var W=0,ae=0,ve=P.map(function(Pe){var et=kc(Pe.type),yt=W=rd(W,Math.max(R,et)),_t=Pe.components||1;return ae=Math.max(ae,et),W+=et*_t,{name:Pe.name,type:Pe.type,components:_t,offset:yt}}),Se=rd(W,Math.max(ae,R));return{members:ve,size:Se,alignment:R}}function kc(P){return is[P].BYTES_PER_ELEMENT}function rd(P,R){return Math.ceil(P/R)*R}var rf=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var Se=this.length;return this.resize(Se+1),this.emplace(Se,ae,ve)},R.prototype.emplace=function(ae,ve,Se){var Pe=ae*2;return this.int16[Pe+0]=ve,this.int16[Pe+1]=Se,ae},R}(ji);rf.prototype.bytesPerElement=4,Be("StructArrayLayout2i4",rf);var dv=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe){var et=this.length;return this.resize(et+1),this.emplace(et,ae,ve,Se,Pe)},R.prototype.emplace=function(ae,ve,Se,Pe,et){var yt=ae*4;return this.int16[yt+0]=ve,this.int16[yt+1]=Se,this.int16[yt+2]=Pe,this.int16[yt+3]=et,ae},R}(ji);dv.prototype.bytesPerElement=8,Be("StructArrayLayout4i8",dv);var Lu=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt){var _t=this.length;return this.resize(_t+1),this.emplace(_t,ae,ve,Se,Pe,et,yt)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t){var Ft=ae*6;return this.int16[Ft+0]=ve,this.int16[Ft+1]=Se,this.int16[Ft+2]=Pe,this.int16[Ft+3]=et,this.int16[Ft+4]=yt,this.int16[Ft+5]=_t,ae},R}(ji);Lu.prototype.bytesPerElement=12,Be("StructArrayLayout2i4i12",Lu);var Vf=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt){var _t=this.length;return this.resize(_t+1),this.emplace(_t,ae,ve,Se,Pe,et,yt)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t){var Ft=ae*4,jt=ae*8;return this.int16[Ft+0]=ve,this.int16[Ft+1]=Se,this.uint8[jt+4]=Pe,this.uint8[jt+5]=et,this.uint8[jt+6]=yt,this.uint8[jt+7]=_t,ae},R}(ji);Vf.prototype.bytesPerElement=8,Be("StructArrayLayout2i4ub8",Vf);var Gf=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var Se=this.length;return this.resize(Se+1),this.emplace(Se,ae,ve)},R.prototype.emplace=function(ae,ve,Se){var Pe=ae*2;return this.float32[Pe+0]=ve,this.float32[Pe+1]=Se,ae},R}(ji);Gf.prototype.bytesPerElement=8,Be("StructArrayLayout2f8",Gf);var Zo=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar){var er=this.length;return this.resize(er+1),this.emplace(er,ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er){var yr=ae*10;return this.uint16[yr+0]=ve,this.uint16[yr+1]=Se,this.uint16[yr+2]=Pe,this.uint16[yr+3]=et,this.uint16[yr+4]=yt,this.uint16[yr+5]=_t,this.uint16[yr+6]=Ft,this.uint16[yr+7]=jt,this.uint16[yr+8]=ar,this.uint16[yr+9]=er,ae},R}(ji);Zo.prototype.bytesPerElement=20,Be("StructArrayLayout10ui20",Zo);var Pu=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr){var zr=this.length;return this.resize(zr+1),this.emplace(zr,ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr,zr){var ln=ae*12;return this.int16[ln+0]=ve,this.int16[ln+1]=Se,this.int16[ln+2]=Pe,this.int16[ln+3]=et,this.uint16[ln+4]=yt,this.uint16[ln+5]=_t,this.uint16[ln+6]=Ft,this.uint16[ln+7]=jt,this.int16[ln+8]=ar,this.int16[ln+9]=er,this.int16[ln+10]=yr,this.int16[ln+11]=zr,ae},R}(ji);Pu.prototype.bytesPerElement=24,Be("StructArrayLayout4i4ui4i24",Pu);var pv=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,ae,ve,Se)},R.prototype.emplace=function(ae,ve,Se,Pe){var et=ae*3;return this.float32[et+0]=ve,this.float32[et+1]=Se,this.float32[et+2]=Pe,ae},R}(ji);pv.prototype.bytesPerElement=12,Be("StructArrayLayout3f12",pv);var gv=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var Se=ae*1;return this.uint32[Se+0]=ve,ae},R}(ji);gv.prototype.bytesPerElement=4,Be("StructArrayLayout1ul4",gv);var Oc=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt){var ar=this.length;return this.resize(ar+1),this.emplace(ar,ae,ve,Se,Pe,et,yt,_t,Ft,jt)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar){var er=ae*10,yr=ae*5;return this.int16[er+0]=ve,this.int16[er+1]=Se,this.int16[er+2]=Pe,this.int16[er+3]=et,this.int16[er+4]=yt,this.int16[er+5]=_t,this.uint32[yr+3]=Ft,this.uint16[er+8]=jt,this.uint16[er+9]=ar,ae},R}(ji);Oc.prototype.bytesPerElement=20,Be("StructArrayLayout6i1ul2ui20",Oc);var oh=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt){var _t=this.length;return this.resize(_t+1),this.emplace(_t,ae,ve,Se,Pe,et,yt)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t){var Ft=ae*6;return this.int16[Ft+0]=ve,this.int16[Ft+1]=Se,this.int16[Ft+2]=Pe,this.int16[Ft+3]=et,this.int16[Ft+4]=yt,this.int16[Ft+5]=_t,ae},R}(ji);oh.prototype.bytesPerElement=12,Be("StructArrayLayout2i2i2i12",oh);var eu=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et){var yt=this.length;return this.resize(yt+1),this.emplace(yt,ae,ve,Se,Pe,et)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt){var _t=ae*4,Ft=ae*8;return this.float32[_t+0]=ve,this.float32[_t+1]=Se,this.float32[_t+2]=Pe,this.int16[Ft+6]=et,this.int16[Ft+7]=yt,ae},R}(ji);eu.prototype.bytesPerElement=16,Be("StructArrayLayout2f1f2i16",eu);var as=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe){var et=this.length;return this.resize(et+1),this.emplace(et,ae,ve,Se,Pe)},R.prototype.emplace=function(ae,ve,Se,Pe,et){var yt=ae*12,_t=ae*3;return this.uint8[yt+0]=ve,this.uint8[yt+1]=Se,this.float32[_t+1]=Pe,this.float32[_t+2]=et,ae},R}(ji);as.prototype.bytesPerElement=12,Be("StructArrayLayout2ub2f12",as);var tu=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,ae,ve,Se)},R.prototype.emplace=function(ae,ve,Se,Pe){var et=ae*3;return this.uint16[et+0]=ve,this.uint16[et+1]=Se,this.uint16[et+2]=Pe,ae},R}(ji);tu.prototype.bytesPerElement=6,Be("StructArrayLayout3ui6",tu);var Nc=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr,zr,ln,en,Sn,mn){var Mn=this.length;return this.resize(Mn+1),this.emplace(Mn,ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr,zr,ln,en,Sn,mn)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr,zr,ln,en,Sn,mn,Mn){var zn=ae*24,Wn=ae*12,ti=ae*48;return this.int16[zn+0]=ve,this.int16[zn+1]=Se,this.uint16[zn+2]=Pe,this.uint16[zn+3]=et,this.uint32[Wn+2]=yt,this.uint32[Wn+3]=_t,this.uint32[Wn+4]=Ft,this.uint16[zn+10]=jt,this.uint16[zn+11]=ar,this.uint16[zn+12]=er,this.float32[Wn+7]=yr,this.float32[Wn+8]=zr,this.uint8[ti+36]=ln,this.uint8[ti+37]=en,this.uint8[ti+38]=Sn,this.uint32[Wn+10]=mn,this.int16[zn+22]=Mn,ae},R}(ji);Nc.prototype.bytesPerElement=48,Be("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Nc);var sh=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr,zr,ln,en,Sn,mn,Mn,zn,Wn,ti,$n,bi,vi,xi,Ni,wi,Si){var Vi=this.length;return this.resize(Vi+1),this.emplace(Vi,ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr,zr,ln,en,Sn,mn,Mn,zn,Wn,ti,$n,bi,vi,xi,Ni,wi,Si)},R.prototype.emplace=function(ae,ve,Se,Pe,et,yt,_t,Ft,jt,ar,er,yr,zr,ln,en,Sn,mn,Mn,zn,Wn,ti,$n,bi,vi,xi,Ni,wi,Si,Vi){var ki=ae*34,aa=ae*17;return this.int16[ki+0]=ve,this.int16[ki+1]=Se,this.int16[ki+2]=Pe,this.int16[ki+3]=et,this.int16[ki+4]=yt,this.int16[ki+5]=_t,this.int16[ki+6]=Ft,this.int16[ki+7]=jt,this.uint16[ki+8]=ar,this.uint16[ki+9]=er,this.uint16[ki+10]=yr,this.uint16[ki+11]=zr,this.uint16[ki+12]=ln,this.uint16[ki+13]=en,this.uint16[ki+14]=Sn,this.uint16[ki+15]=mn,this.uint16[ki+16]=Mn,this.uint16[ki+17]=zn,this.uint16[ki+18]=Wn,this.uint16[ki+19]=ti,this.uint16[ki+20]=$n,this.uint16[ki+21]=bi,this.uint16[ki+22]=vi,this.uint32[aa+12]=xi,this.float32[aa+13]=Ni,this.float32[aa+14]=wi,this.float32[aa+15]=Si,this.float32[aa+16]=Vi,ae},R}(ji);sh.prototype.bytesPerElement=68,Be("StructArrayLayout8i15ui1ul4f68",sh);var Wf=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var Se=ae*1;return this.float32[Se+0]=ve,ae},R}(ji);Wf.prototype.bytesPerElement=4,Be("StructArrayLayout1f4",Wf);var mv=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,ae,ve,Se)},R.prototype.emplace=function(ae,ve,Se,Pe){var et=ae*3;return this.int16[et+0]=ve,this.int16[et+1]=Se,this.int16[et+2]=Pe,ae},R}(ji);mv.prototype.bytesPerElement=6,Be("StructArrayLayout3i6",mv);var Ru=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,ae,ve,Se)},R.prototype.emplace=function(ae,ve,Se,Pe){var et=ae*2,yt=ae*4;return this.uint32[et+0]=ve,this.uint16[yt+2]=Se,this.uint16[yt+3]=Pe,ae},R}(ji);Ru.prototype.bytesPerElement=8,Be("StructArrayLayout1ul2ui8",Ru);var Bc=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var Se=this.length;return this.resize(Se+1),this.emplace(Se,ae,ve)},R.prototype.emplace=function(ae,ve,Se){var Pe=ae*2;return this.uint16[Pe+0]=ve,this.uint16[Pe+1]=Se,ae},R}(ji);Bc.prototype.bytesPerElement=4,Be("StructArrayLayout2ui4",Bc);var Yf=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var Se=ae*1;return this.uint16[Se+0]=ve,ae},R}(ji);Yf.prototype.bytesPerElement=2,Be("StructArrayLayout1ui2",Yf);var nf=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,Se,Pe){var et=this.length;return this.resize(et+1),this.emplace(et,ae,ve,Se,Pe)},R.prototype.emplace=function(ae,ve,Se,Pe,et){var yt=ae*4;return this.float32[yt+0]=ve,this.float32[yt+1]=Se,this.float32[yt+2]=Pe,this.float32[yt+3]=et,ae},R}(ji);nf.prototype.bytesPerElement=16,Be("StructArrayLayout4f16",nf);var nd=function(P){function R(){P.apply(this,arguments)}P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R;var W={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return W.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},W.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},W.x1.get=function(){return this._structArray.int16[this._pos2+2]},W.y1.get=function(){return this._structArray.int16[this._pos2+3]},W.x2.get=function(){return this._structArray.int16[this._pos2+4]},W.y2.get=function(){return this._structArray.int16[this._pos2+5]},W.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},W.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},W.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},W.anchorPoint.get=function(){return new r(this.anchorPointX,this.anchorPointY)},Object.defineProperties(R.prototype,W),R}(bs);nd.prototype.size=20;var yv=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new nd(this,ae)},R}(Oc);Be("CollisionBoxArray",yv);var af=function(P){function R(){P.apply(this,arguments)}P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R;var W={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return W.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},W.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},W.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},W.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},W.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},W.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},W.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},W.segment.get=function(){return this._structArray.uint16[this._pos2+10]},W.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},W.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},W.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},W.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},W.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},W.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},W.placedOrientation.set=function(ae){this._structArray.uint8[this._pos1+37]=ae},W.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},W.hidden.set=function(ae){this._structArray.uint8[this._pos1+38]=ae},W.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},W.crossTileID.set=function(ae){this._structArray.uint32[this._pos4+10]=ae},W.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(R.prototype,W),R}(bs);af.prototype.size=48;var xv=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new af(this,ae)},R}(Nc);Be("PlacedSymbolArray",xv);var Xf=function(P){function R(){P.apply(this,arguments)}P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R;var W={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return W.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},W.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},W.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},W.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},W.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},W.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},W.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},W.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},W.key.get=function(){return this._structArray.uint16[this._pos2+8]},W.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},W.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},W.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},W.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},W.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},W.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},W.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},W.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},W.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},W.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},W.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},W.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},W.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},W.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},W.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},W.crossTileID.set=function(ae){this._structArray.uint32[this._pos4+12]=ae},W.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},W.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},W.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},W.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(R.prototype,W),R}(bs);Xf.prototype.size=68;var id=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new Xf(this,ae)},R}(sh);Be("SymbolInstanceArray",id);var ad=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.getoffsetX=function(ae){return this.float32[ae*1+0]},R}(Wf);Be("GlyphOffsetArray",ad);var qs=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.getx=function(ae){return this.int16[ae*3+0]},R.prototype.gety=function(ae){return this.int16[ae*3+1]},R.prototype.gettileUnitDistanceFromAnchor=function(ae){return this.int16[ae*3+2]},R}(mv);Be("SymbolLineVertexArray",qs);var od=function(P){function R(){P.apply(this,arguments)}P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R;var W={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return W.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},W.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},W.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(R.prototype,W),R}(bs);od.prototype.size=8;var sd=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new od(this,ae)},R}(Ru);Be("FeatureIndexArray",sd);var Ap=_a([{name:"a_pos",components:2,type:"Int16"}],4),ld=Ap.members,ro=function(R){R===void 0&&(R=[]),this.segments=R};ro.prototype.prepareSegment=function(R,W,ae,ve){var Se=this.segments[this.segments.length-1];return R>ro.MAX_VERTEX_ARRAY_LENGTH&&B("Max vertices per segment is "+ro.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+R),(!Se||Se.vertexLength+R>ro.MAX_VERTEX_ARRAY_LENGTH||Se.sortKey!==ve)&&(Se={vertexOffset:W.length,primitiveOffset:ae.length,vertexLength:0,primitiveLength:0},ve!==void 0&&(Se.sortKey=ve),this.segments.push(Se)),Se},ro.prototype.get=function(){return this.segments},ro.prototype.destroy=function(){for(var R=0,W=this.segments;R>>16)*yt&65535)<<16)&4294967295,Ft=Ft<<15|Ft>>>17,Ft=(Ft&65535)*_t+(((Ft>>>16)*_t&65535)<<16)&4294967295,Pe^=Ft,Pe=Pe<<13|Pe>>>19,et=(Pe&65535)*5+(((Pe>>>16)*5&65535)<<16)&4294967295,Pe=(et&65535)+27492+(((et>>>16)+58964&65535)<<16);switch(Ft=0,ve){case 3:Ft^=(W.charCodeAt(jt+2)&255)<<16;case 2:Ft^=(W.charCodeAt(jt+1)&255)<<8;case 1:Ft^=W.charCodeAt(jt)&255,Ft=(Ft&65535)*yt+(((Ft>>>16)*yt&65535)<<16)&4294967295,Ft=Ft<<15|Ft>>>17,Ft=(Ft&65535)*_t+(((Ft>>>16)*_t&65535)<<16)&4294967295,Pe^=Ft}return Pe^=W.length,Pe^=Pe>>>16,Pe=(Pe&65535)*2246822507+(((Pe>>>16)*2246822507&65535)<<16)&4294967295,Pe^=Pe>>>13,Pe=(Pe&65535)*3266489909+(((Pe>>>16)*3266489909&65535)<<16)&4294967295,Pe^=Pe>>>16,Pe>>>0}P.exports=R}),re=S(function(P){function R(W,ae){for(var ve=W.length,Se=ae^ve,Pe=0,et;ve>=4;)et=W.charCodeAt(Pe)&255|(W.charCodeAt(++Pe)&255)<<8|(W.charCodeAt(++Pe)&255)<<16|(W.charCodeAt(++Pe)&255)<<24,et=(et&65535)*1540483477+(((et>>>16)*1540483477&65535)<<16),et^=et>>>24,et=(et&65535)*1540483477+(((et>>>16)*1540483477&65535)<<16),Se=(Se&65535)*1540483477+(((Se>>>16)*1540483477&65535)<<16)^et,ve-=4,++Pe;switch(ve){case 3:Se^=(W.charCodeAt(Pe+2)&255)<<16;case 2:Se^=(W.charCodeAt(Pe+1)&255)<<8;case 1:Se^=W.charCodeAt(Pe)&255,Se=(Se&65535)*1540483477+(((Se>>>16)*1540483477&65535)<<16)}return Se^=Se>>>13,Se=(Se&65535)*1540483477+(((Se>>>16)*1540483477&65535)<<16),Se^=Se>>>15,Se>>>0}P.exports=R}),pe=de,Oe=de,Qe=re;pe.murmur3=Oe,pe.murmur2=Qe;var ut=function(){this.ids=[],this.positions=[],this.indexed=!1};ut.prototype.add=function(R,W,ae,ve){this.ids.push(Wt(R)),this.positions.push(W,ae,ve)},ut.prototype.getPositions=function(R){for(var W=Wt(R),ae=0,ve=this.ids.length-1;ae>1;this.ids[Se]>=W?ve=Se:ae=Se+1}for(var Pe=[];this.ids[ae]===W;){var et=this.positions[3*ae],yt=this.positions[3*ae+1],_t=this.positions[3*ae+2];Pe.push({index:et,start:yt,end:_t}),ae++}return Pe},ut.serialize=function(R,W){var ae=new Float64Array(R.ids),ve=new Uint32Array(R.positions);return qt(ae,ve,0,ae.length-1),W&&W.push(ae.buffer,ve.buffer),{ids:ae,positions:ve}},ut.deserialize=function(R){var W=new ut;return W.ids=R.ids,W.positions=R.positions,W.indexed=!0,W};var Rt=Math.pow(2,53)-1;function Wt(P){var R=+P;return!isNaN(R)&&R<=Rt?R:pe(String(P))}function qt(P,R,W,ae){for(;W>1],Se=W-1,Pe=ae+1;;){do Se++;while(P[Se]ve);if(Se>=Pe)break;cr(P,Se,Pe),cr(R,3*Se,3*Pe),cr(R,3*Se+1,3*Pe+1),cr(R,3*Se+2,3*Pe+2)}Pe-WPe.x+1||ytPe.y+1)&&B("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return W}function Ta(P,R){return{type:P.type,id:P.id,properties:P.properties,geometry:R?qi(P):[]}}function Ki(P,R,W,ae,ve){P.emplaceBack(R*2+(ae+1)/2,W*2+(ve+1)/2)}var ma=function(R){this.zoom=R.zoom,this.overscaling=R.overscaling,this.layers=R.layers,this.layerIds=this.layers.map(function(W){return W.id}),this.index=R.index,this.hasPattern=!1,this.layoutVertexArray=new rf,this.indexArray=new tu,this.segments=new ro,this.programConfigurations=new hi(R.layers,R.zoom),this.stateDependentLayerIds=this.layers.filter(function(W){return W.isStateDependent()}).map(function(W){return W.id})};ma.prototype.populate=function(R,W,ae){var ve=this.layers[0],Se=[],Pe=null;ve.type==="circle"&&(Pe=ve.layout.get("circle-sort-key"));for(var et=0,yt=R;et=Ai||ar<0||ar>=Ai)){var er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,R.sortKey),yr=er.vertexLength;Ki(this.layoutVertexArray,jt,ar,-1,-1),Ki(this.layoutVertexArray,jt,ar,1,-1),Ki(this.layoutVertexArray,jt,ar,1,1),Ki(this.layoutVertexArray,jt,ar,-1,1),this.indexArray.emplaceBack(yr,yr+1,yr+2),this.indexArray.emplaceBack(yr,yr+3,yr+2),er.vertexLength+=4,er.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,R,ae,{},ve)},Be("CircleBucket",ma,{omit:["layers"]});function Hi(P,R){for(var W=0;W=3){for(var Se=0;Se1){if(Bs(P,R))return!0;for(var ae=0;ae1?P.distSqr(W):P.distSqr(W.sub(R)._mult(ve)._add(R))}function Cl(P,R){for(var W=!1,ae,ve,Se,Pe=0;PeR.y!=Se.y>R.y&&R.x<(Se.x-ve.x)*(R.y-ve.y)/(Se.y-ve.y)+ve.x&&(W=!W)}return W}function jo(P,R){for(var W=!1,ae=0,ve=P.length-1;aeR.y!=Pe.y>R.y&&R.x<(Pe.x-Se.x)*(R.y-Se.y)/(Pe.y-Se.y)+Se.x&&(W=!W)}return W}function Ll(P,R,W,ae,ve){for(var Se=0,Pe=P;Se=et.x&&ve>=et.y)return!0}var yt=[new r(R,W),new r(R,ve),new r(ae,ve),new r(ae,W)];if(P.length>2)for(var _t=0,Ft=yt;_tve.x&&R.x>ve.x||P.yve.y&&R.y>ve.y)return!1;var Se=O(P,R,W[0]);return Se!==O(P,R,W[1])||Se!==O(P,R,W[2])||Se!==O(P,R,W[3])}function Ko(P,R,W){var ae=R.paint.get(P).value;return ae.kind==="constant"?ae.value:W.programConfigurations.get(R.id).getMaxValue(P)}function tl(P){return Math.sqrt(P[0]*P[0]+P[1]*P[1])}function ru(P,R,W,ae,ve){if(!R[0]&&!R[1])return P;var Se=r.convert(R)._mult(ve);W==="viewport"&&Se._rotate(-ae);for(var Pe=[],et=0;et0&&(Se=1/Math.sqrt(Se)),P[0]=R[0]*Se,P[1]=R[1]*Se,P[2]=R[2]*Se,P}function B1(P,R){return P[0]*R[0]+P[1]*R[1]+P[2]*R[2]}function U1(P,R,W){var ae=R[0],ve=R[1],Se=R[2],Pe=W[0],et=W[1],yt=W[2];return P[0]=ve*yt-Se*et,P[1]=Se*Pe-ae*yt,P[2]=ae*et-ve*Pe,P}function H1(P,R,W){var ae=R[0],ve=R[1],Se=R[2];return P[0]=ae*W[0]+ve*W[3]+Se*W[6],P[1]=ae*W[1]+ve*W[4]+Se*W[7],P[2]=ae*W[2]+ve*W[5]+Se*W[8],P}var V1=_p;(function(){var P=Hc();return function(R,W,ae,ve,Se,Pe){var et,yt;for(W||(W=3),ae||(ae=0),ve?yt=Math.min(ve*W+ae,R.length):yt=R.length,et=ae;etP.width||ve.height>P.height||W.x>P.width-ve.width||W.y>P.height-ve.height)throw new RangeError("out of range source coordinates for image copy");if(ve.width>R.width||ve.height>R.height||ae.x>R.width-ve.width||ae.y>R.height-ve.height)throw new RangeError("out of range destination coordinates for image copy");for(var Pe=P.data,et=R.data,yt=0;yt80*W){et=_t=P[0],yt=Ft=P[1];for(var yr=W;yr_t&&(_t=jt),ar>Ft&&(Ft=ar);er=Math.max(_t-et,Ft-yt),er=er!==0?1/er:0}return Tv(Se,Pe,W,et,yt,er),Pe}function ng(P,R,W,ae,ve){var Se,Pe;if(ve===Fp(P,R,W,ae)>0)for(Se=R;Se=R;Se-=ae)Pe=og(Se,P[Se],P[Se+1],Pe);return Pe&&cd(Pe,Pe.next)&&(Mv(Pe),Pe=Pe.next),Pe}function Qf(P,R){if(!P)return P;R||(R=P);var W=P,ae;do if(ae=!1,!W.steiner&&(cd(W,W.next)||no(W.prev,W,W.next)===0)){if(Mv(W),W=R=W.prev,W===W.next)break;ae=!0}else W=W.next;while(ae||W!==R);return R}function Tv(P,R,W,ae,ve,Se,Pe){if(P){!Pe&&Se&&px(P,ae,ve,Se);for(var et=P,yt,_t;P.prev!==P.next;){if(yt=P.prev,_t=P.next,Se?sx(P,ae,ve,Se):ox(P)){R.push(yt.i/W),R.push(P.i/W),R.push(_t.i/W),Mv(P),P=_t.next,et=_t.next;continue}if(P=_t,P===et){Pe?Pe===1?(P=lx(Qf(P),R,W),Tv(P,R,W,ae,ve,Se,2)):Pe===2&&ux(P,R,W,ae,ve,Se):Tv(Qf(P),R,W,ae,ve,Se,1);break}}}}function ox(P){var R=P.prev,W=P,ae=P.next;if(no(R,W,ae)>=0)return!1;for(var ve=P.next.next;ve!==P.prev;){if(ph(R.x,R.y,W.x,W.y,ae.x,ae.y,ve.x,ve.y)&&no(ve.prev,ve,ve.next)>=0)return!1;ve=ve.next}return!0}function sx(P,R,W,ae){var ve=P.prev,Se=P,Pe=P.next;if(no(ve,Se,Pe)>=0)return!1;for(var et=ve.xSe.x?ve.x>Pe.x?ve.x:Pe.x:Se.x>Pe.x?Se.x:Pe.x,Ft=ve.y>Se.y?ve.y>Pe.y?ve.y:Pe.y:Se.y>Pe.y?Se.y:Pe.y,jt=Dp(et,yt,R,W,ae),ar=Dp(_t,Ft,R,W,ae),er=P.prevZ,yr=P.nextZ;er&&er.z>=jt&&yr&&yr.z<=ar;){if(er!==P.prev&&er!==P.next&&ph(ve.x,ve.y,Se.x,Se.y,Pe.x,Pe.y,er.x,er.y)&&no(er.prev,er,er.next)>=0||(er=er.prevZ,yr!==P.prev&&yr!==P.next&&ph(ve.x,ve.y,Se.x,Se.y,Pe.x,Pe.y,yr.x,yr.y)&&no(yr.prev,yr,yr.next)>=0))return!1;yr=yr.nextZ}for(;er&&er.z>=jt;){if(er!==P.prev&&er!==P.next&&ph(ve.x,ve.y,Se.x,Se.y,Pe.x,Pe.y,er.x,er.y)&&no(er.prev,er,er.next)>=0)return!1;er=er.prevZ}for(;yr&&yr.z<=ar;){if(yr!==P.prev&&yr!==P.next&&ph(ve.x,ve.y,Se.x,Se.y,Pe.x,Pe.y,yr.x,yr.y)&&no(yr.prev,yr,yr.next)>=0)return!1;yr=yr.nextZ}return!0}function lx(P,R,W){var ae=P;do{var ve=ae.prev,Se=ae.next.next;!cd(ve,Se)&&ig(ve,ae,ae.next,Se)&&Av(ve,Se)&&Av(Se,ve)&&(R.push(ve.i/W),R.push(ae.i/W),R.push(Se.i/W),Mv(ae),Mv(ae.next),ae=P=Se),ae=ae.next}while(ae!==P);return Qf(ae)}function ux(P,R,W,ae,ve,Se){var Pe=P;do{for(var et=Pe.next.next;et!==Pe.prev;){if(Pe.i!==et.i&&yx(Pe,et)){var yt=ag(Pe,et);Pe=Qf(Pe,Pe.next),yt=Qf(yt,yt.next),Tv(Pe,R,W,ae,ve,Se),Tv(yt,R,W,ae,ve,Se);return}et=et.next}Pe=Pe.next}while(Pe!==P)}function fx(P,R,W,ae){var ve=[],Se,Pe,et,yt,_t;for(Se=0,Pe=R.length;Se=W.next.y&&W.next.y!==W.y){var et=W.x+(ve-W.y)*(W.next.x-W.x)/(W.next.y-W.y);if(et<=ae&&et>Se){if(Se=et,et===ae){if(ve===W.y)return W;if(ve===W.next.y)return W.next}Pe=W.x=W.x&&W.x>=_t&&ae!==W.x&&ph(vePe.x||W.x===Pe.x&&dx(Pe,W)))&&(Pe=W,jt=ar)),W=W.next;while(W!==yt);return Pe}function dx(P,R){return no(P.prev,P,R.prev)<0&&no(R.next,P,P.next)<0}function px(P,R,W,ae){var ve=P;do ve.z===null&&(ve.z=Dp(ve.x,ve.y,R,W,ae)),ve.prevZ=ve.prev,ve.nextZ=ve.next,ve=ve.next;while(ve!==P);ve.prevZ.nextZ=null,ve.prevZ=null,gx(ve)}function gx(P){var R,W,ae,ve,Se,Pe,et,yt,_t=1;do{for(W=P,P=null,Se=null,Pe=0;W;){for(Pe++,ae=W,et=0,R=0;R<_t&&(et++,ae=ae.nextZ,!!ae);R++);for(yt=_t;et>0||yt>0&&ae;)et!==0&&(yt===0||!ae||W.z<=ae.z)?(ve=W,W=W.nextZ,et--):(ve=ae,ae=ae.nextZ,yt--),Se?Se.nextZ=ve:P=ve,ve.prevZ=Se,Se=ve;W=ae}Se.nextZ=null,_t*=2}while(Pe>1);return P}function Dp(P,R,W,ae,ve){return P=32767*(P-W)*ve,R=32767*(R-ae)*ve,P=(P|P<<8)&16711935,P=(P|P<<4)&252645135,P=(P|P<<2)&858993459,P=(P|P<<1)&1431655765,R=(R|R<<8)&16711935,R=(R|R<<4)&252645135,R=(R|R<<2)&858993459,R=(R|R<<1)&1431655765,P|R<<1}function mx(P){var R=P,W=P;do(R.x=0&&(P-Pe)*(ae-et)-(W-Pe)*(R-et)>=0&&(W-Pe)*(Se-et)-(ve-Pe)*(ae-et)>=0}function yx(P,R){return P.next.i!==R.i&&P.prev.i!==R.i&&!xx(P,R)&&(Av(P,R)&&Av(R,P)&&bx(P,R)&&(no(P.prev,P,R.prev)||no(P,R.prev,R))||cd(P,R)&&no(P.prev,P,P.next)>0&&no(R.prev,R,R.next)>0)}function no(P,R,W){return(R.y-P.y)*(W.x-R.x)-(R.x-P.x)*(W.y-R.y)}function cd(P,R){return P.x===R.x&&P.y===R.y}function ig(P,R,W,ae){var ve=vd(no(P,R,W)),Se=vd(no(P,R,ae)),Pe=vd(no(W,ae,P)),et=vd(no(W,ae,R));return!!(ve!==Se&&Pe!==et||ve===0&&hd(P,W,R)||Se===0&&hd(P,ae,R)||Pe===0&&hd(W,P,ae)||et===0&&hd(W,R,ae))}function hd(P,R,W){return R.x<=Math.max(P.x,W.x)&&R.x>=Math.min(P.x,W.x)&&R.y<=Math.max(P.y,W.y)&&R.y>=Math.min(P.y,W.y)}function vd(P){return P>0?1:P<0?-1:0}function xx(P,R){var W=P;do{if(W.i!==P.i&&W.next.i!==P.i&&W.i!==R.i&&W.next.i!==R.i&&ig(W,W.next,P,R))return!0;W=W.next}while(W!==P);return!1}function Av(P,R){return no(P.prev,P,P.next)<0?no(P,R,P.next)>=0&&no(P,P.prev,R)>=0:no(P,R,P.prev)<0||no(P,P.next,R)<0}function bx(P,R){var W=P,ae=!1,ve=(P.x+R.x)/2,Se=(P.y+R.y)/2;do W.y>Se!=W.next.y>Se&&W.next.y!==W.y&&ve<(W.next.x-W.x)*(Se-W.y)/(W.next.y-W.y)+W.x&&(ae=!ae),W=W.next;while(W!==P);return ae}function ag(P,R){var W=new Ip(P.i,P.x,P.y),ae=new Ip(R.i,R.x,R.y),ve=P.next,Se=R.prev;return P.next=R,R.prev=P,W.next=ve,ve.prev=W,ae.next=W,W.prev=ae,Se.next=ae,ae.prev=Se,ae}function og(P,R,W,ae){var ve=new Ip(P,R,W);return ae?(ve.next=ae.next,ve.prev=ae,ae.next.prev=ve,ae.next=ve):(ve.prev=ve,ve.next=ve),ve}function Mv(P){P.next.prev=P.prev,P.prev.next=P.next,P.prevZ&&(P.prevZ.nextZ=P.nextZ),P.nextZ&&(P.nextZ.prevZ=P.prevZ)}function Ip(P,R,W){this.i=P,this.x=R,this.y=W,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}fd.deviation=function(P,R,W,ae){var ve=R&&R.length,Se=ve?R[0]*W:P.length,Pe=Math.abs(Fp(P,0,Se,W));if(ve)for(var et=0,yt=R.length;et0&&(ae+=P[ve-1].length,W.holes.push(ae))}return W},Rp.default=ax;function wx(P,R,W,ae,ve){sg(P,R,W||0,ae||P.length-1,ve||Tx)}function sg(P,R,W,ae,ve){for(;ae>W;){if(ae-W>600){var Se=ae-W+1,Pe=R-W+1,et=Math.log(Se),yt=.5*Math.exp(2*et/3),_t=.5*Math.sqrt(et*yt*(Se-yt)/Se)*(Pe-Se/2<0?-1:1),Ft=Math.max(W,Math.floor(R-Pe*yt/Se+_t)),jt=Math.min(ae,Math.floor(R+(Se-Pe)*yt/Se+_t));sg(P,R,Ft,jt,ve)}var ar=P[R],er=W,yr=ae;for(Sv(P,W,R),ve(P[ae],ar)>0&&Sv(P,W,ae);er0;)yr--}ve(P[W],ar)===0?Sv(P,W,yr):(yr++,Sv(P,yr,ae)),yr<=R&&(W=yr+1),R<=yr&&(ae=yr-1)}}function Sv(P,R,W){var ae=P[R];P[R]=P[W],P[W]=ae}function Tx(P,R){return PR?1:0}function zp(P,R){var W=P.length;if(W<=1)return[P];for(var ae=[],ve,Se,Pe=0;Pe1)for(var yt=0;yt>3}if(ae--,W===1||W===2)ve+=P.readSVarint(),Se+=P.readSVarint(),W===1&&(et&&Pe.push(et),et=[]),et.push(new r(ve,Se));else if(W===7)et&&et.push(et[0].clone());else throw new Error("unknown command "+W)}return et&&Pe.push(et),Pe},gh.prototype.bbox=function(){var P=this._pbf;P.pos=this._geometry;for(var R=P.readVarint()+P.pos,W=1,ae=0,ve=0,Se=0,Pe=1/0,et=-1/0,yt=1/0,_t=-1/0;P.pos>3}if(ae--,W===1||W===2)ve+=P.readSVarint(),Se+=P.readSVarint(),veet&&(et=ve),Se_t&&(_t=Se);else if(W!==7)throw new Error("unknown command "+W)}return[Pe,yt,et,_t]},gh.prototype.toGeoJSON=function(P,R,W){var ae=this.extent*Math.pow(2,W),ve=this.extent*P,Se=this.extent*R,Pe=this.loadGeometry(),et=gh.types[this.type],yt,_t;function Ft(er){for(var yr=0;yr>3;R=ae===1?P.readString():ae===2?P.readFloat():ae===3?P.readDouble():ae===4?P.readVarint64():ae===5?P.readVarint():ae===6?P.readSVarint():ae===7?P.readBoolean():null}return R}fg.prototype.feature=function(P){if(P<0||P>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[P];var R=this._pbf.readVarint()+this._pbf.pos;return new lg(this._pbf,R,this.extent,this._keys,this._values)};var Ox=Nx;function Nx(P,R){this.layers=P.readFields(Bx,{},R)}function Bx(P,R,W){if(P===3){var ae=new ug(W,W.readVarint()+W.pos);ae.length&&(R[ae.name]=ae)}}var Ux=Ox,Hx=lg,Vx=ug,mh={VectorTile:Ux,VectorTileFeature:Hx,VectorTileLayer:Vx},Gx=mh.VectorTileFeature.types,Wx=500,Np=Math.pow(2,13);function Ev(P,R,W,ae,ve,Se,Pe,et){P.emplaceBack(R,W,Math.floor(ae*Np)*2+Pe,ve*Np*2,Se*Np*2,Math.round(et))}var iu=function(R){this.zoom=R.zoom,this.overscaling=R.overscaling,this.layers=R.layers,this.layerIds=this.layers.map(function(W){return W.id}),this.index=R.index,this.hasPattern=!1,this.layoutVertexArray=new Lu,this.indexArray=new tu,this.programConfigurations=new hi(R.layers,R.zoom),this.segments=new ro,this.stateDependentLayerIds=this.layers.filter(function(W){return W.isStateDependent()}).map(function(W){return W.id})};iu.prototype.populate=function(R,W,ae){this.features=[],this.hasPattern=kp("fill-extrusion",this.layers,W);for(var ve=0,Se=R;ve=1){var Mn=ln[Sn-1];if(!Yx(mn,Mn)){er.vertexLength+4>ro.MAX_VERTEX_ARRAY_LENGTH&&(er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var zn=mn.sub(Mn)._perp()._unit(),Wn=Mn.dist(mn);en+Wn>32768&&(en=0),Ev(this.layoutVertexArray,mn.x,mn.y,zn.x,zn.y,0,0,en),Ev(this.layoutVertexArray,mn.x,mn.y,zn.x,zn.y,0,1,en),en+=Wn,Ev(this.layoutVertexArray,Mn.x,Mn.y,zn.x,zn.y,0,0,en),Ev(this.layoutVertexArray,Mn.x,Mn.y,zn.x,zn.y,0,1,en);var ti=er.vertexLength;this.indexArray.emplaceBack(ti,ti+2,ti+1),this.indexArray.emplaceBack(ti+1,ti+2,ti+3),er.vertexLength+=4,er.primitiveLength+=2}}}}if(er.vertexLength+_t>ro.MAX_VERTEX_ARRAY_LENGTH&&(er=this.segments.prepareSegment(_t,this.layoutVertexArray,this.indexArray)),Gx[R.type]==="Polygon"){for(var $n=[],bi=[],vi=er.vertexLength,xi=0,Ni=yt;xiAi)||P.y===R.y&&(P.y<0||P.y>Ai)}function Xx(P){return P.every(function(R){return R.x<0})||P.every(function(R){return R.x>Ai})||P.every(function(R){return R.y<0})||P.every(function(R){return R.y>Ai})}var Zx=new ca({"fill-extrusion-opacity":new oi(Ar["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ei(Ar["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new oi(Ar["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new oi(Ar["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ao(Ar["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ei(Ar["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ei(Ar["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new oi(Ar["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),jx={paint:Zx},Kx=function(P){function R(W){P.call(this,W,jx)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.createBucket=function(ae){return new iu(ae)},R.prototype.queryRadius=function(){return tl(this.paint.get("fill-extrusion-translate"))},R.prototype.is3D=function(){return!0},R.prototype.queryIntersectsFeature=function(ae,ve,Se,Pe,et,yt,_t,Ft){var jt=ru(ae,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),yt.angle,_t),ar=this.paint.get("fill-extrusion-height").evaluate(ve,Se),er=this.paint.get("fill-extrusion-base").evaluate(ve,Se),yr=$x(jt,Ft,yt,0),zr=Qx(Pe,er,ar,Ft),ln=zr[0],en=zr[1];return Jx(ln,en,yr)},R}(Oa);function _v(P,R){return P.x*R.x+P.y*R.y}function cg(P,R){if(P.length===1){for(var W=0,ae=R[W++],ve;!ve||ae.equals(ve);)if(ve=R[W++],!ve)return 1/0;for(;W=2&&R[_t-1].equals(R[_t-2]);)_t--;for(var Ft=0;Ft<_t-1&&R[Ft].equals(R[Ft+1]);)Ft++;if(!(_t<(yt?3:2))){ae==="bevel"&&(Se=1.05);var jt=this.overscaling<=16?ab*Ai/(512*this.overscaling):0,ar=this.segments.prepareSegment(_t*10,this.layoutVertexArray,this.indexArray),er,yr=void 0,zr=void 0,ln=void 0,en=void 0;this.e1=this.e2=-1,yt&&(er=R[_t-2],en=R[Ft].sub(er)._unit()._perp());for(var Sn=Ft;Sn<_t;Sn++)if(zr=Sn===_t-1?yt?R[Ft+1]:void 0:R[Sn+1],!(zr&&R[Sn].equals(zr))){en&&(ln=en),er&&(yr=er),er=R[Sn],en=zr?zr.sub(er)._unit()._perp():ln,ln=ln||en;var mn=ln.add(en);(mn.x!==0||mn.y!==0)&&mn._unit();var Mn=ln.x*en.x+ln.y*en.y,zn=mn.x*en.x+mn.y*en.y,Wn=zn!==0?1/zn:1/0,ti=2*Math.sqrt(2-2*zn),$n=zn0;if($n&&Sn>Ft){var vi=er.dist(yr);if(vi>2*jt){var xi=er.sub(er.sub(yr)._mult(jt/vi)._round());this.updateDistance(yr,xi),this.addCurrentVertex(xi,ln,0,0,ar),yr=xi}}var Ni=yr&&zr,wi=Ni?ae:yt?"butt":ve;if(Ni&&wi==="round"&&(WnSe&&(wi="bevel"),wi==="bevel"&&(Wn>2&&(wi="flipbevel"),Wn100)mn=en.mult(-1);else{var Si=Wn*ln.add(en).mag()/ln.sub(en).mag();mn._perp()._mult(Si*(bi?-1:1))}this.addCurrentVertex(er,mn,0,0,ar),this.addCurrentVertex(er,mn.mult(-1),0,0,ar)}else if(wi==="bevel"||wi==="fakeround"){var Vi=-Math.sqrt(Wn*Wn-1),ki=bi?Vi:0,aa=bi?0:Vi;if(yr&&this.addCurrentVertex(er,ln,ki,aa,ar),wi==="fakeround")for(var xa=Math.round(ti*180/Math.PI/ob),oa=1;oa2*jt){var oo=er.add(zr.sub(er)._mult(jt/mo)._round());this.updateDistance(er,oo),this.addCurrentVertex(oo,en,0,0,ar),er=oo}}}}},Jo.prototype.addCurrentVertex=function(R,W,ae,ve,Se,Pe){Pe===void 0&&(Pe=!1);var et=W.x+W.y*ae,yt=W.y-W.x*ae,_t=-W.x+W.y*ve,Ft=-W.y-W.x*ve;this.addHalfVertex(R,et,yt,Pe,!1,ae,Se),this.addHalfVertex(R,_t,Ft,Pe,!0,-ve,Se),this.distance>dg/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(R,W,ae,ve,Se,Pe))},Jo.prototype.addHalfVertex=function(R,W,ae,ve,Se,Pe,et){var yt=R.x,_t=R.y,Ft=this.lineClips?this.scaledDistance*(dg-1):this.scaledDistance,jt=Ft*vg;if(this.layoutVertexArray.emplaceBack((yt<<1)+(ve?1:0),(_t<<1)+(Se?1:0),Math.round(hg*W)+128,Math.round(hg*ae)+128,(Pe===0?0:Pe<0?-1:1)+1|(jt&63)<<2,jt>>6),this.lineClips){var ar=this.scaledDistance-this.lineClips.start,er=this.lineClips.end-this.lineClips.start,yr=ar/er;this.layoutVertexArray2.emplaceBack(yr,this.lineClipsArray.length)}var zr=et.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,zr),et.primitiveLength++),Se?this.e2=zr:this.e1=zr},Jo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Jo.prototype.updateDistance=function(R,W){this.distance+=R.dist(W),this.updateScaledDistance()},Be("LineBucket",Jo,{omit:["layers","patternFeatures"]});var lb=new ca({"line-cap":new oi(Ar.layout_line["line-cap"]),"line-join":new Ei(Ar.layout_line["line-join"]),"line-miter-limit":new oi(Ar.layout_line["line-miter-limit"]),"line-round-limit":new oi(Ar.layout_line["line-round-limit"]),"line-sort-key":new Ei(Ar.layout_line["line-sort-key"])}),ub=new ca({"line-opacity":new Ei(Ar.paint_line["line-opacity"]),"line-color":new Ei(Ar.paint_line["line-color"]),"line-translate":new oi(Ar.paint_line["line-translate"]),"line-translate-anchor":new oi(Ar.paint_line["line-translate-anchor"]),"line-width":new Ei(Ar.paint_line["line-width"]),"line-gap-width":new Ei(Ar.paint_line["line-gap-width"]),"line-offset":new Ei(Ar.paint_line["line-offset"]),"line-blur":new Ei(Ar.paint_line["line-blur"]),"line-dasharray":new Lo(Ar.paint_line["line-dasharray"]),"line-pattern":new Ao(Ar.paint_line["line-pattern"]),"line-gradient":new to(Ar.paint_line["line-gradient"])}),pg={paint:ub,layout:lb},fb=function(P){function R(){P.apply(this,arguments)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.possiblyEvaluate=function(ae,ve){return ve=new Ti(Math.floor(ve.zoom),{now:ve.now,fadeDuration:ve.fadeDuration,zoomHistory:ve.zoomHistory,transition:ve.transition}),P.prototype.possiblyEvaluate.call(this,ae,ve)},R.prototype.evaluate=function(ae,ve,Se,Pe){return ve=w({},ve,{zoom:Math.floor(ve.zoom)}),P.prototype.evaluate.call(this,ae,ve,Se,Pe)},R}(Ei),gg=new fb(pg.paint.properties["line-width"].specification);gg.useIntegerZoom=!0;var cb=function(P){function R(W){P.call(this,W,pg),this.gradientVersion=0}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype._handleSpecialPaintPropertyUpdate=function(ae){if(ae==="line-gradient"){var ve=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=ve._styleExpression.expression instanceof Ho,this.gradientVersion=(this.gradientVersion+1)%f}},R.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},R.prototype.recalculate=function(ae,ve){P.prototype.recalculate.call(this,ae,ve),this.paint._values["line-floorwidth"]=gg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ae)},R.prototype.createBucket=function(ae){return new Jo(ae)},R.prototype.queryRadius=function(ae){var ve=ae,Se=mg(Ko("line-width",this,ve),Ko("line-gap-width",this,ve)),Pe=Ko("line-offset",this,ve);return Se/2+Math.abs(Pe)+tl(this.paint.get("line-translate"))},R.prototype.queryIntersectsFeature=function(ae,ve,Se,Pe,et,yt,_t){var Ft=ru(ae,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),yt.angle,_t),jt=_t/2*mg(this.paint.get("line-width").evaluate(ve,Se),this.paint.get("line-gap-width").evaluate(ve,Se)),ar=this.paint.get("line-offset").evaluate(ve,Se);return ar&&(Pe=hb(Pe,ar*_t)),fo(Ft,Pe,jt)},R.prototype.isTileClipped=function(){return!0},R}(Oa);function mg(P,R){return R>0?R+2*P:P}function hb(P,R){for(var W=[],ae=new r(0,0),ve=0;ve":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function bb(P){for(var R="",W=0;W>1,Ft=-7,jt=W?ve-1:0,ar=W?-1:1,er=P[R+jt];for(jt+=ar,Se=er&(1<<-Ft)-1,er>>=-Ft,Ft+=et;Ft>0;Se=Se*256+P[R+jt],jt+=ar,Ft-=8);for(Pe=Se&(1<<-Ft)-1,Se>>=-Ft,Ft+=ae;Ft>0;Pe=Pe*256+P[R+jt],jt+=ar,Ft-=8);if(Se===0)Se=1-_t;else{if(Se===yt)return Pe?NaN:(er?-1:1)*(1/0);Pe=Pe+Math.pow(2,ae),Se=Se-_t}return(er?-1:1)*Pe*Math.pow(2,Se-ae)},Tb=function(P,R,W,ae,ve,Se){var Pe,et,yt,_t=Se*8-ve-1,Ft=(1<<_t)-1,jt=Ft>>1,ar=ve===23?Math.pow(2,-24)-Math.pow(2,-77):0,er=ae?0:Se-1,yr=ae?1:-1,zr=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(et=isNaN(R)?1:0,Pe=Ft):(Pe=Math.floor(Math.log(R)/Math.LN2),R*(yt=Math.pow(2,-Pe))<1&&(Pe--,yt*=2),Pe+jt>=1?R+=ar/yt:R+=ar*Math.pow(2,1-jt),R*yt>=2&&(Pe++,yt/=2),Pe+jt>=Ft?(et=0,Pe=Ft):Pe+jt>=1?(et=(R*yt-1)*Math.pow(2,ve),Pe=Pe+jt):(et=R*Math.pow(2,jt-1)*Math.pow(2,ve),Pe=0));ve>=8;P[W+er]=et&255,er+=yr,et/=256,ve-=8);for(Pe=Pe<0;P[W+er]=Pe&255,er+=yr,Pe/=256,_t-=8);P[W+er-yr]|=zr*128},dd={read:wb,write:Tb},pd=Ma;function Ma(P){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(P)?P:new Uint8Array(P||0),this.pos=0,this.type=0,this.length=this.buf.length}Ma.Varint=0,Ma.Fixed64=1,Ma.Bytes=2,Ma.Fixed32=5;var Bp=65536*65536,xg=1/Bp,Ab=12,bg=typeof TextDecoder>"u"?null:new TextDecoder("utf8");Ma.prototype={destroy:function(){this.buf=null},readFields:function(P,R,W){for(W=W||this.length;this.pos>3,Se=this.pos;this.type=ae&7,P(ve,R,this),this.pos===Se&&this.skip(ae)}return R},readMessage:function(P,R){return this.readFields(P,R,this.readVarint()+this.pos)},readFixed32:function(){var P=gd(this.buf,this.pos);return this.pos+=4,P},readSFixed32:function(){var P=Tg(this.buf,this.pos);return this.pos+=4,P},readFixed64:function(){var P=gd(this.buf,this.pos)+gd(this.buf,this.pos+4)*Bp;return this.pos+=8,P},readSFixed64:function(){var P=gd(this.buf,this.pos)+Tg(this.buf,this.pos+4)*Bp;return this.pos+=8,P},readFloat:function(){var P=dd.read(this.buf,this.pos,!0,23,4);return this.pos+=4,P},readDouble:function(){var P=dd.read(this.buf,this.pos,!0,52,8);return this.pos+=8,P},readVarint:function(P){var R=this.buf,W,ae;return ae=R[this.pos++],W=ae&127,ae<128||(ae=R[this.pos++],W|=(ae&127)<<7,ae<128)||(ae=R[this.pos++],W|=(ae&127)<<14,ae<128)||(ae=R[this.pos++],W|=(ae&127)<<21,ae<128)?W:(ae=R[this.pos],W|=(ae&15)<<28,Mb(W,P,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var P=this.readVarint();return P%2===1?(P+1)/-2:P/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var P=this.readVarint()+this.pos,R=this.pos;return this.pos=P,P-R>=Ab&&bg?Nb(this.buf,R,P):Ob(this.buf,R,P)},readBytes:function(){var P=this.readVarint()+this.pos,R=this.buf.subarray(this.pos,P);return this.pos=P,R},readPackedVarint:function(P,R){if(this.type!==Ma.Bytes)return P.push(this.readVarint(R));var W=sf(this);for(P=P||[];this.pos127;);else if(R===Ma.Bytes)this.pos=this.readVarint()+this.pos;else if(R===Ma.Fixed32)this.pos+=4;else if(R===Ma.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+R)},writeTag:function(P,R){this.writeVarint(P<<3|R)},realloc:function(P){for(var R=this.length||16;R268435455||P<0){Sb(P,this);return}this.realloc(4),this.buf[this.pos++]=P&127|(P>127?128:0),!(P<=127)&&(this.buf[this.pos++]=(P>>>=7)&127|(P>127?128:0),!(P<=127)&&(this.buf[this.pos++]=(P>>>=7)&127|(P>127?128:0),!(P<=127)&&(this.buf[this.pos++]=P>>>7&127)))},writeSVarint:function(P){this.writeVarint(P<0?-P*2-1:P*2)},writeBoolean:function(P){this.writeVarint(!!P)},writeString:function(P){P=String(P),this.realloc(P.length*4),this.pos++;var R=this.pos;this.pos=Bb(this.buf,P,this.pos);var W=this.pos-R;W>=128&&wg(R,W,this),this.pos=R-1,this.writeVarint(W),this.pos+=W},writeFloat:function(P){this.realloc(4),dd.write(this.buf,P,this.pos,!0,23,4),this.pos+=4},writeDouble:function(P){this.realloc(8),dd.write(this.buf,P,this.pos,!0,52,8),this.pos+=8},writeBytes:function(P){var R=P.length;this.writeVarint(R),this.realloc(R);for(var W=0;W=128&&wg(W,ae,this),this.pos=W-1,this.writeVarint(ae),this.pos+=ae},writeMessage:function(P,R,W){this.writeTag(P,Ma.Bytes),this.writeRawMessage(R,W)},writePackedVarint:function(P,R){R.length&&this.writeMessage(P,Cb,R)},writePackedSVarint:function(P,R){R.length&&this.writeMessage(P,Lb,R)},writePackedBoolean:function(P,R){R.length&&this.writeMessage(P,Db,R)},writePackedFloat:function(P,R){R.length&&this.writeMessage(P,Pb,R)},writePackedDouble:function(P,R){R.length&&this.writeMessage(P,Rb,R)},writePackedFixed32:function(P,R){R.length&&this.writeMessage(P,Ib,R)},writePackedSFixed32:function(P,R){R.length&&this.writeMessage(P,Fb,R)},writePackedFixed64:function(P,R){R.length&&this.writeMessage(P,zb,R)},writePackedSFixed64:function(P,R){R.length&&this.writeMessage(P,kb,R)},writeBytesField:function(P,R){this.writeTag(P,Ma.Bytes),this.writeBytes(R)},writeFixed32Field:function(P,R){this.writeTag(P,Ma.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(P,R){this.writeTag(P,Ma.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(P,R){this.writeTag(P,Ma.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(P,R){this.writeTag(P,Ma.Fixed64),this.writeSFixed64(R)},writeVarintField:function(P,R){this.writeTag(P,Ma.Varint),this.writeVarint(R)},writeSVarintField:function(P,R){this.writeTag(P,Ma.Varint),this.writeSVarint(R)},writeStringField:function(P,R){this.writeTag(P,Ma.Bytes),this.writeString(R)},writeFloatField:function(P,R){this.writeTag(P,Ma.Fixed32),this.writeFloat(R)},writeDoubleField:function(P,R){this.writeTag(P,Ma.Fixed64),this.writeDouble(R)},writeBooleanField:function(P,R){this.writeVarintField(P,!!R)}};function Mb(P,R,W){var ae=W.buf,ve,Se;if(Se=ae[W.pos++],ve=(Se&112)>>4,Se<128||(Se=ae[W.pos++],ve|=(Se&127)<<3,Se<128)||(Se=ae[W.pos++],ve|=(Se&127)<<10,Se<128)||(Se=ae[W.pos++],ve|=(Se&127)<<17,Se<128)||(Se=ae[W.pos++],ve|=(Se&127)<<24,Se<128)||(Se=ae[W.pos++],ve|=(Se&1)<<31,Se<128))return yh(P,ve,R);throw new Error("Expected varint not more than 10 bytes")}function sf(P){return P.type===Ma.Bytes?P.readVarint()+P.pos:P.pos+1}function yh(P,R,W){return W?R*4294967296+(P>>>0):(R>>>0)*4294967296+(P>>>0)}function Sb(P,R){var W,ae;if(P>=0?(W=P%4294967296|0,ae=P/4294967296|0):(W=~(-P%4294967296),ae=~(-P/4294967296),W^4294967295?W=W+1|0:(W=0,ae=ae+1|0)),P>=18446744073709552e3||P<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");R.realloc(10),Eb(W,ae,R),_b(ae,R)}function Eb(P,R,W){W.buf[W.pos++]=P&127|128,P>>>=7,W.buf[W.pos++]=P&127|128,P>>>=7,W.buf[W.pos++]=P&127|128,P>>>=7,W.buf[W.pos++]=P&127|128,P>>>=7,W.buf[W.pos]=P&127}function _b(P,R){var W=(P&7)<<4;R.buf[R.pos++]|=W|((P>>>=3)?128:0),P&&(R.buf[R.pos++]=P&127|((P>>>=7)?128:0),P&&(R.buf[R.pos++]=P&127|((P>>>=7)?128:0),P&&(R.buf[R.pos++]=P&127|((P>>>=7)?128:0),P&&(R.buf[R.pos++]=P&127|((P>>>=7)?128:0),P&&(R.buf[R.pos++]=P&127)))))}function wg(P,R,W){var ae=R<=16383?1:R<=2097151?2:R<=268435455?3:Math.floor(Math.log(R)/(Math.LN2*7));W.realloc(ae);for(var ve=W.pos-1;ve>=P;ve--)W.buf[ve+ae]=W.buf[ve]}function Cb(P,R){for(var W=0;W>>8,P[W+2]=R>>>16,P[W+3]=R>>>24}function Tg(P,R){return(P[R]|P[R+1]<<8|P[R+2]<<16)+(P[R+3]<<24)}function Ob(P,R,W){for(var ae="",ve=R;ve239?4:Se>223?3:Se>191?2:1;if(ve+et>W)break;var yt,_t,Ft;et===1?Se<128&&(Pe=Se):et===2?(yt=P[ve+1],(yt&192)===128&&(Pe=(Se&31)<<6|yt&63,Pe<=127&&(Pe=null))):et===3?(yt=P[ve+1],_t=P[ve+2],(yt&192)===128&&(_t&192)===128&&(Pe=(Se&15)<<12|(yt&63)<<6|_t&63,(Pe<=2047||Pe>=55296&&Pe<=57343)&&(Pe=null))):et===4&&(yt=P[ve+1],_t=P[ve+2],Ft=P[ve+3],(yt&192)===128&&(_t&192)===128&&(Ft&192)===128&&(Pe=(Se&15)<<18|(yt&63)<<12|(_t&63)<<6|Ft&63,(Pe<=65535||Pe>=1114112)&&(Pe=null))),Pe===null?(Pe=65533,et=1):Pe>65535&&(Pe-=65536,ae+=String.fromCharCode(Pe>>>10&1023|55296),Pe=56320|Pe&1023),ae+=String.fromCharCode(Pe),ve+=et}return ae}function Nb(P,R,W){return bg.decode(P.subarray(R,W))}function Bb(P,R,W){for(var ae=0,ve,Se;ae55295&&ve<57344)if(Se)if(ve<56320){P[W++]=239,P[W++]=191,P[W++]=189,Se=ve;continue}else ve=Se-55296<<10|ve-56320|65536,Se=null;else{ve>56319||ae+1===R.length?(P[W++]=239,P[W++]=191,P[W++]=189):Se=ve;continue}else Se&&(P[W++]=239,P[W++]=191,P[W++]=189,Se=null);ve<128?P[W++]=ve:(ve<2048?P[W++]=ve>>6|192:(ve<65536?P[W++]=ve>>12|224:(P[W++]=ve>>18|240,P[W++]=ve>>12&63|128),P[W++]=ve>>6&63|128),P[W++]=ve&63|128)}return W}var Up=3;function Ub(P,R,W){P===1&&W.readMessage(Hb,R)}function Hb(P,R,W){if(P===3){var ae=W.readMessage(Vb,{}),ve=ae.id,Se=ae.bitmap,Pe=ae.width,et=ae.height,yt=ae.left,_t=ae.top,Ft=ae.advance;R.push({id:ve,bitmap:new Vc({width:Pe+2*Up,height:et+2*Up},Se),metrics:{width:Pe,height:et,left:yt,top:_t,advance:Ft}})}}function Vb(P,R,W){P===1?R.id=W.readVarint():P===2?R.bitmap=W.readBytes():P===3?R.width=W.readVarint():P===4?R.height=W.readVarint():P===5?R.left=W.readSVarint():P===6?R.top=W.readSVarint():P===7&&(R.advance=W.readVarint())}function Gb(P){return new pd(P).readFields(Ub,[])}var Ag=Up;function Mg(P){for(var R=0,W=0,ae=0,ve=P;ae=0;er--){var yr=et[er];if(!(ar.w>yr.w||ar.h>yr.h)){if(ar.x=yr.x,ar.y=yr.y,_t=Math.max(_t,ar.y+ar.h),yt=Math.max(yt,ar.x+ar.w),ar.w===yr.w&&ar.h===yr.h){var zr=et.pop();er=0&&ve>=R&&Du[this.text.charCodeAt(ve)];ve--)ae--;this.text=this.text.substring(R,ae),this.sectionIndex=this.sectionIndex.slice(R,ae)},Fo.prototype.substring=function(R,W){var ae=new Fo;return ae.text=this.text.substring(R,W),ae.sectionIndex=this.sectionIndex.slice(R,W),ae.sections=this.sections,ae},Fo.prototype.toString=function(){return this.text},Fo.prototype.getMaxScale=function(){var R=this;return this.sectionIndex.reduce(function(W,ae){return Math.max(W,R.sections[ae].scale)},0)},Fo.prototype.addTextSection=function(R,W){this.text+=R.text,this.sections.push(bh.forText(R.scale,R.fontStack||W));for(var ae=this.sections.length-1,ve=0;ve=Eg?null:++this.imageSectionID:(this.imageSectionID=Sg,this.imageSectionID)};function Yb(P,R){for(var W=[],ae=P.text,ve=0,Se=0,Pe=R;Se=0,Ft=0,jt=0;jt0&&oo>bi&&(bi=oo)}else{var sa=W[xi.fontStack],ea=sa&&sa[wi];if(ea&&ea.rect)ki=ea.rect,Vi=ea.metrics;else{var Aa=R[xi.fontStack],Sa=Aa&&Aa[wi];if(!Sa)continue;Vi=Sa.metrics}Si=(zn-xi.scale)*Mo}oa?(P.verticalizable=!0,$n.push({glyph:wi,imageName:aa,x:ar,y:er+Si,vertical:oa,scale:xi.scale,fontStack:xi.fontStack,sectionIndex:Ni,metrics:Vi,rect:ki}),ar+=xa*xi.scale+_t):($n.push({glyph:wi,imageName:aa,x:ar,y:er+Si,vertical:oa,scale:xi.scale,fontStack:xi.fontStack,sectionIndex:Ni,metrics:Vi,rect:ki}),ar+=Vi.advance*xi.scale+_t)}if($n.length!==0){var zo=ar-_t;yr=Math.max(zo,yr),Kb($n,0,$n.length-1,ln,bi)}ar=0;var ko=Se*zn+bi;ti.lineOffset=Math.max(bi,Wn),er+=ko,zr=Math.max(ko,zr),++en}var yo=er-Rv,Qo=Vp(Pe),$o=Qo.horizontalAlign,co=Qo.verticalAlign;Jb(P.positionedLines,ln,$o,co,yr,zr,Se,yo,ve.length),P.top+=-co*yo,P.bottom=P.top+yo,P.left+=-$o*yr,P.right=P.left+yr}function Kb(P,R,W,ae,ve){if(!(!ae&&!ve))for(var Se=P[W],Pe=Se.metrics.advance*Se.scale,et=(P[W].x+Pe)*ae,yt=R;yt<=W;yt++)P[yt].x-=et,P[yt].y+=ve}function Jb(P,R,W,ae,ve,Se,Pe,et,yt){var _t=(R-W)*ve,Ft=0;Se!==Pe?Ft=-et*ae-Rv:Ft=(-ae*yt+.5)*Pe;for(var jt=0,ar=P;jt-W/2;){if(Pe--,Pe<0)return!1;et-=P[Pe].dist(Se),Se=P[Pe]}et+=P[Pe].dist(P[Pe+1]),Pe++;for(var yt=[],_t=0;etae;)_t-=yt.shift().angleDelta;if(_t>ve)return!1;Pe++,et+=jt.dist(ar)}return!0}function zg(P){for(var R=0,W=0;W_t){var yr=(_t-yt)/er,zr=Ca(jt.x,ar.x,yr),ln=Ca(jt.y,ar.y,yr),en=new wh(zr,ln,ar.angleTo(jt),Ft);return en._round(),!Pe||Fg(P,en,et,Pe,R)?en:void 0}yt+=er}}function e3(P,R,W,ae,ve,Se,Pe,et,yt){var _t=kg(ae,Se,Pe),Ft=Og(ae,ve),jt=Ft*Pe,ar=P[0].x===0||P[0].x===yt||P[0].y===0||P[0].y===yt;R-jt=0&&Mn=0&&zn=0&&ar+_t<=Ft){var Wn=new wh(Mn,zn,Sn,yr);Wn._round(),(!ae||Fg(P,Wn,Se,ae,ve))&&er.push(Wn)}}jt+=en}return!et&&!er.length&&!Pe&&(er=Ng(P,jt/2,W,ae,ve,Se,Pe,!0,yt)),er}function Bg(P,R,W,ae,ve){for(var Se=[],Pe=0;Pe=ae&&jt.x>=ae)&&(Ft.x>=ae?Ft=new r(ae,Ft.y+(jt.y-Ft.y)*((ae-Ft.x)/(jt.x-Ft.x)))._round():jt.x>=ae&&(jt=new r(ae,Ft.y+(jt.y-Ft.y)*((ae-Ft.x)/(jt.x-Ft.x)))._round()),!(Ft.y>=ve&&jt.y>=ve)&&(Ft.y>=ve?Ft=new r(Ft.x+(jt.x-Ft.x)*((ve-Ft.y)/(jt.y-Ft.y)),ve)._round():jt.y>=ve&&(jt=new r(Ft.x+(jt.x-Ft.x)*((ve-Ft.y)/(jt.y-Ft.y)),ve)._round()),(!yt||!Ft.equals(yt[yt.length-1]))&&(yt=[Ft],Se.push(yt)),yt.push(jt)))))}return Se}var Th=ws;function Ug(P,R,W,ae){var ve=[],Se=P.image,Pe=Se.pixelRatio,et=Se.paddedRect.w-2*Th,yt=Se.paddedRect.h-2*Th,_t=P.right-P.left,Ft=P.bottom-P.top,jt=Se.stretchX||[[0,et]],ar=Se.stretchY||[[0,yt]],er=function(sa,ea){return sa+ea[1]-ea[0]},yr=jt.reduce(er,0),zr=ar.reduce(er,0),ln=et-yr,en=yt-zr,Sn=0,mn=yr,Mn=0,zn=zr,Wn=0,ti=ln,$n=0,bi=en;if(Se.content&&ae){var vi=Se.content;Sn=xd(jt,0,vi[0]),Mn=xd(ar,0,vi[1]),mn=xd(jt,vi[0],vi[2]),zn=xd(ar,vi[1],vi[3]),Wn=vi[0]-Sn,$n=vi[1]-Mn,ti=vi[2]-vi[0]-mn,bi=vi[3]-vi[1]-zn}var xi=function(sa,ea,Aa,Sa){var Ba=bd(sa.stretch-Sn,mn,_t,P.left),Wa=wd(sa.fixed-Wn,ti,sa.stretch,yr),mo=bd(ea.stretch-Mn,zn,Ft,P.top),oo=wd(ea.fixed-$n,bi,ea.stretch,zr),zo=bd(Aa.stretch-Sn,mn,_t,P.left),ko=wd(Aa.fixed-Wn,ti,Aa.stretch,yr),yo=bd(Sa.stretch-Mn,zn,Ft,P.top),Qo=wd(Sa.fixed-$n,bi,Sa.stretch,zr),$o=new r(Ba,mo),co=new r(zo,mo),qo=new r(zo,yo),Hs=new r(Ba,yo),ff=new r(Wa/Pe,oo/Pe),ec=new r(ko/Pe,Qo/Pe),tc=R*Math.PI/180;if(tc){var rc=Math.sin(tc),Ph=Math.cos(tc),Pl=[Ph,-rc,rc,Ph];$o._matMult(Pl),co._matMult(Pl),Hs._matMult(Pl),qo._matMult(Pl)}var _d=sa.stretch+sa.fixed,Qp=Aa.stretch+Aa.fixed,Cd=ea.stretch+ea.fixed,$p=Sa.stretch+Sa.fixed,nl={x:Se.paddedRect.x+Th+_d,y:Se.paddedRect.y+Th+Cd,w:Qp-_d,h:$p-Cd},Rh=ti/Pe/_t,Ld=bi/Pe/Ft;return{tl:$o,tr:co,bl:Hs,br:qo,tex:nl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ff,pixelOffsetBR:ec,minFontScaleX:Rh,minFontScaleY:Ld,isSDF:W}};if(!ae||!Se.stretchX&&!Se.stretchY)ve.push(xi({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:et+1},{fixed:0,stretch:yt+1}));else for(var Ni=Hg(jt,ln,yr),wi=Hg(ar,en,zr),Si=0;Si0&&(yr=Math.max(10,yr),this.circleDiameter=yr)}else{var zr=Pe.top*et-yt,ln=Pe.bottom*et+yt,en=Pe.left*et-yt,Sn=Pe.right*et+yt,mn=Pe.collisionPadding;if(mn&&(en-=mn[0]*et,zr-=mn[1]*et,Sn+=mn[2]*et,ln+=mn[3]*et),Ft){var Mn=new r(en,zr),zn=new r(Sn,zr),Wn=new r(en,ln),ti=new r(Sn,ln),$n=Ft*Math.PI/180;Mn._rotate($n),zn._rotate($n),Wn._rotate($n),ti._rotate($n),en=Math.min(Mn.x,zn.x,Wn.x,ti.x),Sn=Math.max(Mn.x,zn.x,Wn.x,ti.x),zr=Math.min(Mn.y,zn.y,Wn.y,ti.y),ln=Math.max(Mn.y,zn.y,Wn.y,ti.y)}R.emplaceBack(W.x,W.y,en,zr,Sn,ln,ae,ve,Se)}this.boxEndIndex=R.length},Ah=function(R,W){if(R===void 0&&(R=[]),W===void 0&&(W=r3),this.data=R,this.length=this.data.length,this.compare=W,this.length>0)for(var ae=(this.length>>1)-1;ae>=0;ae--)this._down(ae)};Ah.prototype.push=function(R){this.data.push(R),this.length++,this._up(this.length-1)},Ah.prototype.pop=function(){if(this.length!==0){var R=this.data[0],W=this.data.pop();return this.length--,this.length>0&&(this.data[0]=W,this._down(0)),R}},Ah.prototype.peek=function(){return this.data[0]},Ah.prototype._up=function(R){for(var W=this,ae=W.data,ve=W.compare,Se=ae[R];R>0;){var Pe=R-1>>1,et=ae[Pe];if(ve(Se,et)>=0)break;ae[R]=et,R=Pe}ae[R]=Se},Ah.prototype._down=function(R){for(var W=this,ae=W.data,ve=W.compare,Se=this.length>>1,Pe=ae[R];R=0)break;ae[R]=yt,R=et}ae[R]=Pe};function r3(P,R){return PR?1:0}function n3(P,R,W){R===void 0&&(R=1),W===void 0&&(W=!1);for(var ae=1/0,ve=1/0,Se=-1/0,Pe=-1/0,et=P[0],yt=0;ytSe)&&(Se=_t.x),(!yt||_t.y>Pe)&&(Pe=_t.y)}var Ft=Se-ae,jt=Pe-ve,ar=Math.min(Ft,jt),er=ar/2,yr=new Ah([],i3);if(ar===0)return new r(ae,ve);for(var zr=ae;zren.d||!en.d)&&(en=mn,W&&console.log("found best %d after %d probes",Math.round(1e4*mn.d)/1e4,Sn)),!(mn.max-en.d<=R)&&(er=mn.h/2,yr.push(new Mh(mn.p.x-er,mn.p.y-er,er,P)),yr.push(new Mh(mn.p.x+er,mn.p.y-er,er,P)),yr.push(new Mh(mn.p.x-er,mn.p.y+er,er,P)),yr.push(new Mh(mn.p.x+er,mn.p.y+er,er,P)),Sn+=4)}return W&&(console.log("num probes: "+Sn),console.log("best distance: "+en.d)),en.p}function i3(P,R){return R.max-P.max}function Mh(P,R,W,ae){this.p=new r(P,R),this.h=W,this.d=a3(this.p,ae),this.max=this.d+this.h*Math.SQRT2}function a3(P,R){for(var W=!1,ae=1/0,ve=0;veP.y!=Ft.y>P.y&&P.x<(Ft.x-_t.x)*(P.y-_t.y)/(Ft.y-_t.y)+_t.x&&(W=!W),ae=Math.min(ae,of(P,_t,Ft))}return(W?1:-1)*Math.sqrt(ae)}function o3(P){for(var R=0,W=0,ae=0,ve=P[0],Se=0,Pe=ve.length,et=Pe-1;Se=Ai||Pl.y<0||Pl.y>=Ai||u3(P,Pl,Ph,W,ae,ve,wi,P.layers[0],P.collisionBoxArray,R.index,R.sourceLayerIndex,P.index,en,zn,$n,yt,mn,Wn,bi,er,R,Se,_t,Ft,Pe)};if(vi==="line")for(var Vi=0,ki=Bg(R.geometry,0,0,Ai,Ai);Vi1){var mo=qb(Wa,ti,W.vertical||yr,ae,zr,Sn);mo&&Si(Wa,mo)}}else if(R.type==="Polygon")for(var oo=0,zo=zp(R.geometry,0);oo$f&&B(P.layerIds[0]+': Value for "text-size" is >= '+Dv+'. Reduce your "text-size".')):ln.kind==="composite"&&(en=[au*er.compositeTextSizes[0].evaluate(Pe,{},yr),au*er.compositeTextSizes[1].evaluate(Pe,{},yr)],(en[0]>$f||en[1]>$f)&&B(P.layerIds[0]+': Value for "text-size" is >= '+Dv+'. Reduce your "text-size".')),P.addSymbols(P.text,zr,en,et,Se,Pe,_t,R,yt.lineStartIndex,yt.lineLength,ar,yr);for(var Sn=0,mn=Ft;Sn$f&&B(P.layerIds[0]+': Value for "icon-size" is >= '+Dv+'. Reduce your "icon-size".')):$o.kind==="composite"&&(co=[au*zn.compositeIconSizes[0].evaluate(Mn,{},ti),au*zn.compositeIconSizes[1].evaluate(Mn,{},ti)],(co[0]>$f||co[1]>$f)&&B(P.layerIds[0]+': Value for "icon-size" is >= '+Dv+'. Reduce your "icon-size".')),P.addSymbols(P.icon,yo,co,mn,Sn,Mn,!1,R,vi.lineStartIndex,vi.lineLength,-1,ti),oa=P.icon.placedSymbolArray.length-1,Qo&&(ki=Qo.length*4,P.addSymbols(P.icon,Qo,co,mn,Sn,Mn,Us.vertical,R,vi.lineStartIndex,vi.lineLength,-1,ti),sa=P.icon.placedSymbolArray.length-1)}for(var qo in ae.horizontal){var Hs=ae.horizontal[qo];if(!xi){Aa=pe(Hs.text);var ff=et.layout.get("text-rotate").evaluate(Mn,{},ti);xi=new Td(yt,R,_t,Ft,jt,Hs,ar,er,yr,ff)}var ec=Hs.positionedLines.length===1;if(aa+=Gg(P,R,Hs,Se,et,yr,Mn,zr,vi,ae.vertical?Us.horizontal:Us.horizontalOnly,ec?Object.keys(ae.horizontal):[qo],ea,oa,zn,ti),ec)break}ae.vertical&&(xa+=Gg(P,R,ae.vertical,Se,et,yr,Mn,zr,vi,Us.vertical,["vertical"],ea,sa,zn,ti));var tc=xi?xi.boxStartIndex:P.collisionBoxArray.length,rc=xi?xi.boxEndIndex:P.collisionBoxArray.length,Ph=wi?wi.boxStartIndex:P.collisionBoxArray.length,Pl=wi?wi.boxEndIndex:P.collisionBoxArray.length,_d=Ni?Ni.boxStartIndex:P.collisionBoxArray.length,Qp=Ni?Ni.boxEndIndex:P.collisionBoxArray.length,Cd=Si?Si.boxStartIndex:P.collisionBoxArray.length,$p=Si?Si.boxEndIndex:P.collisionBoxArray.length,nl=-1,Rh=function(zv,om){return zv&&zv.circleDiameter?Math.max(zv.circleDiameter,om):om};nl=Rh(xi,nl),nl=Rh(wi,nl),nl=Rh(Ni,nl),nl=Rh(Si,nl);var Ld=nl>-1?1:0;Ld&&(nl*=$n/Mo),P.glyphOffsetArray.length>=ya.MAX_GLYPHS&&B("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Mn.sortKey!==void 0&&P.addToSortKeyRanges(P.symbolInstances.length,Mn.sortKey),P.symbolInstances.emplaceBack(R.x,R.y,ea.right>=0?ea.right:-1,ea.center>=0?ea.center:-1,ea.left>=0?ea.left:-1,ea.vertical||-1,oa,sa,Aa,tc,rc,Ph,Pl,_d,Qp,Cd,$p,_t,aa,xa,Vi,ki,Ld,0,ar,Sa,Ba,nl)}function f3(P,R,W,ae){var ve=P.compareText;if(!(R in ve))ve[R]=[];else for(var Se=ve[R],Pe=Se.length-1;Pe>=0;Pe--)if(ae.dist(Se[Pe])0)&&(Pe.value.kind!=="constant"||Pe.value.value.length>0),Ft=yt.value.kind!=="constant"||!!yt.value.value||Object.keys(yt.parameters).length>0,jt=Se.get("symbol-sort-key");if(this.features=[],!(!_t&&!Ft)){for(var ar=W.iconDependencies,er=W.glyphDependencies,yr=W.availableImages,zr=new Ti(this.zoom),ln=0,en=R;ln=0;for(var xa=0,oa=bi.sections;xa=0;yt--)Pe[yt]={x:W[yt].x,y:W[yt].y,tileUnitDistanceFromAnchor:Se},yt>0&&(Se+=W[yt-1].dist(W[yt]));for(var _t=0;_t0},ya.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ya.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ya.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ya.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ya.prototype.addIndicesForPlacedSymbol=function(R,W){for(var ae=R.placedSymbolArray.get(W),ve=ae.vertexStartIndex+ae.numGlyphs*4,Se=ae.vertexStartIndex;Se1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(R),this.sortedAngle=R,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ae=0,ve=this.symbolInstanceIndexes;ae=0&&_t.indexOf(et)===yt&&W.addIndicesForPlacedSymbol(W.text,et)}),Pe.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Pe.verticalPlacedTextSymbolIndex),Pe.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Pe.placedIconSymbolIndex),Pe.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Pe.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Be("SymbolBucket",ya,{omit:["layers","collisionBoxArray","features","compareText"]}),ya.MAX_GLYPHS=65535,ya.addDynamicAttributes=Xp;function d3(P,R){return R.replace(/{([^{}]+)}/g,function(W,ae){return ae in P?String(P[ae]):""})}var p3=new ca({"symbol-placement":new oi(Ar.layout_symbol["symbol-placement"]),"symbol-spacing":new oi(Ar.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new oi(Ar.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ei(Ar.layout_symbol["symbol-sort-key"]),"symbol-z-order":new oi(Ar.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new oi(Ar.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new oi(Ar.layout_symbol["icon-ignore-placement"]),"icon-optional":new oi(Ar.layout_symbol["icon-optional"]),"icon-rotation-alignment":new oi(Ar.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ei(Ar.layout_symbol["icon-size"]),"icon-text-fit":new oi(Ar.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new oi(Ar.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ei(Ar.layout_symbol["icon-image"]),"icon-rotate":new Ei(Ar.layout_symbol["icon-rotate"]),"icon-padding":new oi(Ar.layout_symbol["icon-padding"]),"icon-keep-upright":new oi(Ar.layout_symbol["icon-keep-upright"]),"icon-offset":new Ei(Ar.layout_symbol["icon-offset"]),"icon-anchor":new Ei(Ar.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new oi(Ar.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new oi(Ar.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new oi(Ar.layout_symbol["text-rotation-alignment"]),"text-field":new Ei(Ar.layout_symbol["text-field"]),"text-font":new Ei(Ar.layout_symbol["text-font"]),"text-size":new Ei(Ar.layout_symbol["text-size"]),"text-max-width":new Ei(Ar.layout_symbol["text-max-width"]),"text-line-height":new oi(Ar.layout_symbol["text-line-height"]),"text-letter-spacing":new Ei(Ar.layout_symbol["text-letter-spacing"]),"text-justify":new Ei(Ar.layout_symbol["text-justify"]),"text-radial-offset":new Ei(Ar.layout_symbol["text-radial-offset"]),"text-variable-anchor":new oi(Ar.layout_symbol["text-variable-anchor"]),"text-anchor":new Ei(Ar.layout_symbol["text-anchor"]),"text-max-angle":new oi(Ar.layout_symbol["text-max-angle"]),"text-writing-mode":new oi(Ar.layout_symbol["text-writing-mode"]),"text-rotate":new Ei(Ar.layout_symbol["text-rotate"]),"text-padding":new oi(Ar.layout_symbol["text-padding"]),"text-keep-upright":new oi(Ar.layout_symbol["text-keep-upright"]),"text-transform":new Ei(Ar.layout_symbol["text-transform"]),"text-offset":new Ei(Ar.layout_symbol["text-offset"]),"text-allow-overlap":new oi(Ar.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new oi(Ar.layout_symbol["text-ignore-placement"]),"text-optional":new oi(Ar.layout_symbol["text-optional"])}),g3=new ca({"icon-opacity":new Ei(Ar.paint_symbol["icon-opacity"]),"icon-color":new Ei(Ar.paint_symbol["icon-color"]),"icon-halo-color":new Ei(Ar.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ei(Ar.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ei(Ar.paint_symbol["icon-halo-blur"]),"icon-translate":new oi(Ar.paint_symbol["icon-translate"]),"icon-translate-anchor":new oi(Ar.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ei(Ar.paint_symbol["text-opacity"]),"text-color":new Ei(Ar.paint_symbol["text-color"],{runtimeType:Pn,getOverride:function(P){return P.textColor},hasOverride:function(P){return!!P.textColor}}),"text-halo-color":new Ei(Ar.paint_symbol["text-halo-color"]),"text-halo-width":new Ei(Ar.paint_symbol["text-halo-width"]),"text-halo-blur":new Ei(Ar.paint_symbol["text-halo-blur"]),"text-translate":new oi(Ar.paint_symbol["text-translate"]),"text-translate-anchor":new oi(Ar.paint_symbol["text-translate-anchor"])}),Zp={paint:g3,layout:p3},_h=function(R){this.type=R.property.overrides?R.property.overrides.runtimeType:Hr,this.defaultValue=R};_h.prototype.evaluate=function(R){if(R.formattedSection){var W=this.defaultValue.property.overrides;if(W&&W.hasOverride(R.formattedSection))return W.getOverride(R.formattedSection)}return R.feature&&R.featureState?this.defaultValue.evaluate(R.feature,R.featureState):this.defaultValue.property.specification.default},_h.prototype.eachChild=function(R){if(!this.defaultValue.isConstant()){var W=this.defaultValue.value;R(W._styleExpression.expression)}},_h.prototype.outputDefined=function(){return!1},_h.prototype.serialize=function(){return null},Be("FormatSectionOverride",_h,{omit:["defaultValue"]});var m3=function(P){function R(W){P.call(this,W,Zp)}return P&&(R.__proto__=P),R.prototype=Object.create(P&&P.prototype),R.prototype.constructor=R,R.prototype.recalculate=function(ae,ve){if(P.prototype.recalculate.call(this,ae,ve),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Se=this.layout.get("text-writing-mode");if(Se){for(var Pe=[],et=0,yt=Se;et",targetMapId:ve,sourceMapId:Pe.mapId})}}},Ch.prototype.receive=function(R){var W=R.data,ae=W.id;if(ae&&!(W.targetMapId&&this.mapId!==W.targetMapId))if(W.type===""){delete this.tasks[ae];var ve=this.cancelCallbacks[ae];delete this.cancelCallbacks[ae],ve&&ve()}else j()||W.mustQueue?(this.tasks[ae]=W,this.taskQueue.push(ae),this.invoker.trigger()):this.processTask(ae,W)},Ch.prototype.process=function(){if(this.taskQueue.length){var R=this.taskQueue.shift(),W=this.tasks[R];delete this.tasks[R],this.taskQueue.length&&this.invoker.trigger(),W&&this.processTask(R,W)}},Ch.prototype.processTask=function(R,W){var ae=this;if(W.type===""){var ve=this.callbacks[R];delete this.callbacks[R],ve&&(W.error?ve(Et(W.error)):ve(null,Et(W.data)))}else{var Se=!1,Pe=ue(this.globalScope)?void 0:[],et=W.hasCallback?function(ar,er){Se=!0,delete ae.cancelCallbacks[R],ae.target.postMessage({id:R,type:"",sourceMapId:ae.mapId,error:ar?Dt(ar):null,data:Dt(er,Pe)},Pe)}:function(ar){Se=!0},yt=null,_t=Et(W.data);if(this.parent[W.type])yt=this.parent[W.type](W.sourceMapId,_t,et);else if(this.parent.getWorkerSource){var Ft=W.type.split("."),jt=this.parent.getWorkerSource(W.sourceMapId,Ft[0],_t.source);yt=jt[Ft[1]](_t,et)}else et(new Error("Could not find function "+W.type));!Se&&yt&&yt.cancel&&(this.cancelCallbacks[R]=yt.cancel)}},Ch.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function C3(P,R,W){R=Math.pow(2,W)-R-1;var ae=Kg(P*256,R*256,W),ve=Kg((P+1)*256,(R+1)*256,W);return ae[0]+","+ae[1]+","+ve[0]+","+ve[1]}function Kg(P,R,W){var ae=2*Math.PI*6378137/256/Math.pow(2,W),ve=P*ae-2*Math.PI*6378137/2,Se=R*ae-2*Math.PI*6378137/2;return[ve,Se]}var io=function(R,W){R&&(W?this.setSouthWest(R).setNorthEast(W):R.length===4?this.setSouthWest([R[0],R[1]]).setNorthEast([R[2],R[3]]):this.setSouthWest(R[0]).setNorthEast(R[1]))};io.prototype.setNorthEast=function(R){return this._ne=R instanceof La?new La(R.lng,R.lat):La.convert(R),this},io.prototype.setSouthWest=function(R){return this._sw=R instanceof La?new La(R.lng,R.lat):La.convert(R),this},io.prototype.extend=function(R){var W=this._sw,ae=this._ne,ve,Se;if(R instanceof La)ve=R,Se=R;else if(R instanceof io){if(ve=R._sw,Se=R._ne,!ve||!Se)return this}else{if(Array.isArray(R))if(R.length===4||R.every(Array.isArray)){var Pe=R;return this.extend(io.convert(Pe))}else{var et=R;return this.extend(La.convert(et))}return this}return!W&&!ae?(this._sw=new La(ve.lng,ve.lat),this._ne=new La(Se.lng,Se.lat)):(W.lng=Math.min(ve.lng,W.lng),W.lat=Math.min(ve.lat,W.lat),ae.lng=Math.max(Se.lng,ae.lng),ae.lat=Math.max(Se.lat,ae.lat)),this},io.prototype.getCenter=function(){return new La((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},io.prototype.getSouthWest=function(){return this._sw},io.prototype.getNorthEast=function(){return this._ne},io.prototype.getNorthWest=function(){return new La(this.getWest(),this.getNorth())},io.prototype.getSouthEast=function(){return new La(this.getEast(),this.getSouth())},io.prototype.getWest=function(){return this._sw.lng},io.prototype.getSouth=function(){return this._sw.lat},io.prototype.getEast=function(){return this._ne.lng},io.prototype.getNorth=function(){return this._ne.lat},io.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},io.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},io.prototype.isEmpty=function(){return!(this._sw&&this._ne)},io.prototype.contains=function(R){var W=La.convert(R),ae=W.lng,ve=W.lat,Se=this._sw.lat<=ve&&ve<=this._ne.lat,Pe=this._sw.lng<=ae&&ae<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Pe=this._sw.lng>=ae&&ae>=this._ne.lng),Se&&Pe},io.convert=function(R){return!R||R instanceof io?R:new io(R)};var Jg=63710088e-1,La=function(R,W){if(isNaN(R)||isNaN(W))throw new Error("Invalid LngLat object: ("+R+", "+W+")");if(this.lng=+R,this.lat=+W,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};La.prototype.wrap=function(){return new La(b(this.lng,-180,180),this.lat)},La.prototype.toArray=function(){return[this.lng,this.lat]},La.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},La.prototype.distanceTo=function(R){var W=Math.PI/180,ae=this.lat*W,ve=R.lat*W,Se=Math.sin(ae)*Math.sin(ve)+Math.cos(ae)*Math.cos(ve)*Math.cos((R.lng-this.lng)*W),Pe=Jg*Math.acos(Math.min(Se,1));return Pe},La.prototype.toBounds=function(R){R===void 0&&(R=0);var W=40075017,ae=360*R/W,ve=ae/Math.cos(Math.PI/180*this.lat);return new io(new La(this.lng-ve,this.lat-ae),new La(this.lng+ve,this.lat+ae))},La.convert=function(R){if(R instanceof La)return R;if(Array.isArray(R)&&(R.length===2||R.length===3))return new La(Number(R[0]),Number(R[1]));if(!Array.isArray(R)&&typeof R=="object"&&R!==null)return new La(Number("lng"in R?R.lng:R.lon),Number(R.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Qg=2*Math.PI*Jg;function $g(P){return Qg*Math.cos(P*Math.PI/180)}function qg(P){return(180+P)/360}function em(P){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+P*Math.PI/360)))/360}function tm(P,R){return P/$g(R)}function L3(P){return P*360-180}function Kp(P){var R=180-P*360;return 360/Math.PI*Math.atan(Math.exp(R*Math.PI/180))-90}function P3(P,R){return P*$g(Kp(R))}function R3(P){return 1/Math.cos(P*Math.PI/180)}var Wc=function(R,W,ae){ae===void 0&&(ae=0),this.x=+R,this.y=+W,this.z=+ae};Wc.fromLngLat=function(R,W){W===void 0&&(W=0);var ae=La.convert(R);return new Wc(qg(ae.lng),em(ae.lat),tm(W,ae.lat))},Wc.prototype.toLngLat=function(){return new La(L3(this.x),Kp(this.y))},Wc.prototype.toAltitude=function(){return P3(this.z,this.y)},Wc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Qg*R3(Kp(this.y))};var Yc=function(R,W,ae){this.z=R,this.x=W,this.y=ae,this.key=Fv(0,R,R,W,ae)};Yc.prototype.equals=function(R){return this.z===R.z&&this.x===R.x&&this.y===R.y},Yc.prototype.url=function(R,W){var ae=C3(this.x,this.y,this.z),ve=D3(this.z,this.x,this.y);return R[(this.x+this.y)%R.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(W==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",ve).replace("{bbox-epsg-3857}",ae)},Yc.prototype.getTilePoint=function(R){var W=Math.pow(2,this.z);return new r((R.x*W-this.x)*Ai,(R.y*W-this.y)*Ai)},Yc.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var rm=function(R,W){this.wrap=R,this.canonical=W,this.key=Fv(R,W.z,W.z,W.x,W.y)},ao=function(R,W,ae,ve,Se){this.overscaledZ=R,this.wrap=W,this.canonical=new Yc(ae,+ve,+Se),this.key=Fv(W,R,ae,ve,Se)};ao.prototype.equals=function(R){return this.overscaledZ===R.overscaledZ&&this.wrap===R.wrap&&this.canonical.equals(R.canonical)},ao.prototype.scaledTo=function(R){var W=this.canonical.z-R;return R>this.canonical.z?new ao(R,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ao(R,this.wrap,R,this.canonical.x>>W,this.canonical.y>>W)},ao.prototype.calculateScaledKey=function(R,W){var ae=this.canonical.z-R;return R>this.canonical.z?Fv(this.wrap*+W,R,this.canonical.z,this.canonical.x,this.canonical.y):Fv(this.wrap*+W,R,R,this.canonical.x>>ae,this.canonical.y>>ae)},ao.prototype.isChildOf=function(R){if(R.wrap!==this.wrap)return!1;var W=this.canonical.z-R.canonical.z;return R.overscaledZ===0||R.overscaledZ>W&&R.canonical.y===this.canonical.y>>W},ao.prototype.children=function(R){if(this.overscaledZ>=R)return[new ao(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var W=this.canonical.z+1,ae=this.canonical.x*2,ve=this.canonical.y*2;return[new ao(W,this.wrap,W,ae,ve),new ao(W,this.wrap,W,ae+1,ve),new ao(W,this.wrap,W,ae,ve+1),new ao(W,this.wrap,W,ae+1,ve+1)]},ao.prototype.isLessThan=function(R){return this.wrapR.wrap?!1:this.overscaledZR.overscaledZ?!1:this.canonical.xR.canonical.x?!1:this.canonical.y0;Se--)ve=1<=this.dim+1||W<-1||W>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(W+1)*this.stride+(R+1)},lf.prototype._unpackMapbox=function(R,W,ae){return(R*256*256+W*256+ae)/10-1e4},lf.prototype._unpackTerrarium=function(R,W,ae){return R*256+W+ae/256-32768},lf.prototype.getPixels=function(){return new us({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},lf.prototype.backfillBorder=function(R,W,ae){if(this.dim!==R.dim)throw new Error("dem dimension mismatch");var ve=W*this.dim,Se=W*this.dim+this.dim,Pe=ae*this.dim,et=ae*this.dim+this.dim;switch(W){case-1:ve=Se-1;break;case 1:Se=ve+1;break}switch(ae){case-1:Pe=et-1;break;case 1:et=Pe+1;break}for(var yt=-W*this.dim,_t=-ae*this.dim,Ft=Pe;Ft=0&&jt[3]>=0&&yt.insert(et,jt[0],jt[1],jt[2],jt[3])}},uf.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new mh.VectorTile(new pd(this.rawTileData)).layers,this.sourceLayerCoder=new Sd(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},uf.prototype.query=function(R,W,ae,ve){var Se=this;this.loadVTLayers();for(var Pe=R.params||{},et=Ai/R.tileSize/R.scale,yt=Os(Pe.filter),_t=R.queryGeometry,Ft=R.queryPadding*et,jt=im(_t),ar=this.grid.query(jt.minX-Ft,jt.minY-Ft,jt.maxX+Ft,jt.maxY+Ft),er=im(R.cameraQueryGeometry),yr=this.grid3D.query(er.minX-Ft,er.minY-Ft,er.maxX+Ft,er.maxY+Ft,function(Wn,ti,$n,bi){return Ll(R.cameraQueryGeometry,Wn-Ft,ti-Ft,$n+Ft,bi+Ft)}),zr=0,ln=yr;zrve)Se=!1;else if(!W)Se=!0;else if(this.expirationTime=mr.maxzoom)&&mr.visibility!=="none"){n(dr,this.zoom,Ct);var xr=ur[mr.id]=mr.createBucket({index:Jt.bucketLayerIDs.length,layers:dr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Nt,sourceID:this.source});xr.populate(Ot,hr,this.tileID.canonical),Jt.bucketLayerIDs.push(dr.map(function(Tr){return Tr.id}))}}}}var pr,Gr,Pr,Dr,cn=i.mapObject(hr.glyphDependencies,function(Tr){return Object.keys(Tr).map(Number)});Object.keys(cn).length?It.send("getGlyphs",{uid:this.uid,stacks:cn},function(Tr,Cr){pr||(pr=Tr,Gr=Cr,En.call(kt))}):Gr={};var rn=Object.keys(hr.iconDependencies);rn.length?It.send("getImages",{icons:rn,source:this.source,tileID:this.tileID,type:"icons"},function(Tr,Cr){pr||(pr=Tr,Pr=Cr,En.call(kt))}):Pr={};var Cn=Object.keys(hr.patternDependencies);Cn.length?It.send("getImages",{icons:Cn,source:this.source,tileID:this.tileID,type:"patterns"},function(Tr,Cr){pr||(pr=Tr,Dr=Cr,En.call(kt))}):Dr={},En.call(this);function En(){if(pr)return Pt(pr);if(Gr&&Pr&&Dr){var Tr=new t(Gr),Cr=new i.ImageAtlas(Pr,Dr);for(var Wr in ur){var Ur=ur[Wr];Ur instanceof i.SymbolBucket?(n(Ur.layers,this.zoom,Ct),i.performSymbolLayout(Ur,Gr,Tr.positions,Pr,Cr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Ur.hasPattern&&(Ur instanceof i.LineBucket||Ur instanceof i.FillBucket||Ur instanceof i.FillExtrusionBucket)&&(n(Ur.layers,this.zoom,Ct),Ur.addFeatures(hr,this.tileID.canonical,Cr.patternPositions))}this.status="done",Pt(null,{buckets:i.values(ur).filter(function(an){return!an.isEmpty()}),featureIndex:Jt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Tr.image,imageAtlas:Cr,glyphMap:this.returnDependencies?Gr:null,iconMap:this.returnDependencies?Pr:null,glyphPositions:this.returnDependencies?Tr.positions:null})}}};function n(gt,st,At){for(var Ct=new i.EvaluationParameters(st),It=0,Pt=gt;It=0!=!!st&>.reverse()}var d=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,w=function(st){this._feature=st,this.extent=i.EXTENT,this.type=st.type,this.properties=st.tags,"id"in st&&!isNaN(st.id)&&(this.id=parseInt(st.id,10))};w.prototype.loadGeometry=function(){if(this._feature.type===1){for(var st=[],At=0,Ct=this._feature.geometry;At"u"&&(Ct.push(Vt),Jt=Ct.length-1,Pt[Vt]=Jt),st.writeVarint(Jt);var ur=At.properties[Vt],hr=typeof ur;hr!=="string"&&hr!=="boolean"&&hr!=="number"&&(ur=JSON.stringify(ur));var vr=hr+":"+ur,Ye=kt[vr];typeof Ye>"u"&&(It.push(ur),Ye=It.length-1,kt[vr]=Ye),st.writeVarint(Ye)}}function H(gt,st){return(st<<3)+(gt&7)}function Y(gt){return gt<<1^gt>>31}function j(gt,st){for(var At=gt.loadGeometry(),Ct=gt.type,It=0,Pt=0,kt=At.length,Vt=0;Vt>1;ue(gt,st,kt,Ct,It,Pt%2),ie(gt,st,At,Ct,kt-1,Pt+1),ie(gt,st,At,kt+1,It,Pt+1)}}function ue(gt,st,At,Ct,It,Pt){for(;It>Ct;){if(It-Ct>600){var kt=It-Ct+1,Vt=At-Ct+1,Jt=Math.log(kt),ur=.5*Math.exp(2*Jt/3),hr=.5*Math.sqrt(Jt*ur*(kt-ur)/kt)*(Vt-kt/2<0?-1:1),vr=Math.max(Ct,Math.floor(At-Vt*ur/kt+hr)),Ye=Math.min(It,Math.floor(At+(kt-Vt)*ur/kt+hr));ue(gt,st,At,vr,Ye,Pt)}var Ge=st[2*At+Pt],Nt=Ct,Ot=It;for(J(gt,st,Ct,At),st[2*It+Pt]>Ge&&J(gt,st,Ct,It);NtGe;)Ot--}st[2*Ct+Pt]===Ge?J(gt,st,Ct,Ot):(Ot++,J(gt,st,Ot,It)),Ot<=At&&(Ct=Ot+1),At<=Ot&&(It=Ot-1)}}function J(gt,st,At,Ct){X(gt,At,Ct),X(st,2*At,2*Ct),X(st,2*At+1,2*Ct+1)}function X(gt,st,At){var Ct=gt[st];gt[st]=gt[At],gt[At]=Ct}function ee(gt,st,At,Ct,It,Pt,kt){for(var Vt=[0,gt.length-1,0],Jt=[],ur,hr;Vt.length;){var vr=Vt.pop(),Ye=Vt.pop(),Ge=Vt.pop();if(Ye-Ge<=kt){for(var Nt=Ge;Nt<=Ye;Nt++)ur=st[2*Nt],hr=st[2*Nt+1],ur>=At&&ur<=It&&hr>=Ct&&hr<=Pt&&Jt.push(gt[Nt]);continue}var Ot=Math.floor((Ge+Ye)/2);ur=st[2*Ot],hr=st[2*Ot+1],ur>=At&&ur<=It&&hr>=Ct&&hr<=Pt&&Jt.push(gt[Ot]);var Qt=(vr+1)%2;(vr===0?At<=ur:Ct<=hr)&&(Vt.push(Ge),Vt.push(Ot-1),Vt.push(Qt)),(vr===0?It>=ur:Pt>=hr)&&(Vt.push(Ot+1),Vt.push(Ye),Vt.push(Qt))}return Jt}function V(gt,st,At,Ct,It,Pt){for(var kt=[0,gt.length-1,0],Vt=[],Jt=It*It;kt.length;){var ur=kt.pop(),hr=kt.pop(),vr=kt.pop();if(hr-vr<=Pt){for(var Ye=vr;Ye<=hr;Ye++)Q(st[2*Ye],st[2*Ye+1],At,Ct)<=Jt&&Vt.push(gt[Ye]);continue}var Ge=Math.floor((vr+hr)/2),Nt=st[2*Ge],Ot=st[2*Ge+1];Q(Nt,Ot,At,Ct)<=Jt&&Vt.push(gt[Ge]);var Qt=(ur+1)%2;(ur===0?At-It<=Nt:Ct-It<=Ot)&&(kt.push(vr),kt.push(Ge-1),kt.push(Qt)),(ur===0?At+It>=Nt:Ct+It>=Ot)&&(kt.push(Ge+1),kt.push(hr),kt.push(Qt))}return Vt}function Q(gt,st,At,Ct){var It=gt-At,Pt=st-Ct;return It*It+Pt*Pt}var oe=function(gt){return gt[0]},$=function(gt){return gt[1]},Z=function(st,At,Ct,It,Pt){At===void 0&&(At=oe),Ct===void 0&&(Ct=$),It===void 0&&(It=64),Pt===void 0&&(Pt=Float64Array),this.nodeSize=It,this.points=st;for(var kt=st.length<65536?Uint16Array:Uint32Array,Vt=this.ids=new kt(st.length),Jt=this.coords=new Pt(st.length*2),ur=0;ur=It;hr--){var vr=+Date.now();Jt=this._cluster(Jt,hr),this.trees[hr]=new Z(Jt,He,Ue,kt,Float32Array),Ct&&console.log("z%d: %d clusters in %dms",hr,Jt.length,+Date.now()-vr)}return Ct&&console.timeEnd("total time"),this},ne.prototype.getClusters=function(st,At){var Ct=((st[0]+180)%360+360)%360-180,It=Math.max(-90,Math.min(90,st[1])),Pt=st[2]===180?180:((st[2]+180)%360+360)%360-180,kt=Math.max(-90,Math.min(90,st[3]));if(st[2]-st[0]>=360)Ct=-180,Pt=180;else if(Ct>Pt){var Vt=this.getClusters([Ct,It,180,kt],At),Jt=this.getClusters([-180,It,Pt,kt],At);return Vt.concat(Jt)}for(var ur=this.trees[this._limitZoom(At)],hr=ur.range(Re(Ct),be(kt),Re(Pt),be(It)),vr=[],Ye=0,Ge=hr;YeAt&&(Ot+=rr.numPoints||1)}if(Ot>=Jt){for(var Ht=vr.x*Nt,dr=vr.y*Nt,mr=Vt&&Nt>1?this._map(vr,!0):null,xr=(hr<<5)+(At+1)+this.points.length,pr=0,Gr=Ge;pr1)for(var rn=0,Cn=Ge;rn>5},ne.prototype._getOriginZoom=function(st){return(st-this.points.length)%32},ne.prototype._map=function(st,At){if(st.numPoints)return At?Le({},st.properties):st.properties;var Ct=this.points[st.index].properties,It=this.options.map(Ct);return At&&It===Ct?Le({},It):It};function ce(gt,st,At,Ct,It){return{x:gt,y:st,zoom:1/0,id:At,parentId:-1,numPoints:Ct,properties:It}}function ge(gt,st){var At=gt.geometry.coordinates,Ct=At[0],It=At[1];return{x:Re(Ct),y:be(It),zoom:1/0,index:st,parentId:-1}}function Te(gt){return{type:"Feature",id:gt.id,properties:we(gt),geometry:{type:"Point",coordinates:[Ae(gt.x),me(gt.y)]}}}function we(gt){var st=gt.numPoints,At=st>=1e4?Math.round(st/1e3)+"k":st>=1e3?Math.round(st/100)/10+"k":st;return Le(Le({},gt.properties),{cluster:!0,cluster_id:gt.id,point_count:st,point_count_abbreviated:At})}function Re(gt){return gt/360+.5}function be(gt){var st=Math.sin(gt*Math.PI/180),At=.5-.25*Math.log((1+st)/(1-st))/Math.PI;return At<0?0:At>1?1:At}function Ae(gt){return(gt-.5)*360}function me(gt){var st=(180-gt*360)*Math.PI/180;return 360*Math.atan(Math.exp(st))/Math.PI-90}function Le(gt,st){for(var At in st)gt[At]=st[At];return gt}function He(gt){return gt.x}function Ue(gt){return gt.y}function ke(gt,st,At,Ct){for(var It=Ct,Pt=At-st>>1,kt=At-st,Vt,Jt=gt[st],ur=gt[st+1],hr=gt[At],vr=gt[At+1],Ye=st+3;YeIt)Vt=Ye,It=Ge;else if(Ge===It){var Nt=Math.abs(Ye-Pt);NtCt&&(Vt-st>3&&ke(gt,st,Vt,Ct),gt[Vt+2]=It,At-Vt>3&&ke(gt,Vt,At,Ct))}function Ve(gt,st,At,Ct,It,Pt){var kt=It-At,Vt=Pt-Ct;if(kt!==0||Vt!==0){var Jt=((gt-At)*kt+(st-Ct)*Vt)/(kt*kt+Vt*Vt);Jt>1?(At=It,Ct=Pt):Jt>0&&(At+=kt*Jt,Ct+=Vt*Jt)}return kt=gt-At,Vt=st-Ct,kt*kt+Vt*Vt}function Ie(gt,st,At,Ct){var It={id:typeof gt>"u"?null:gt,type:st,geometry:At,tags:Ct,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return rt(It),It}function rt(gt){var st=gt.geometry,At=gt.type;if(At==="Point"||At==="MultiPoint"||At==="LineString")Ke(gt,st);else if(At==="Polygon"||At==="MultiLineString")for(var Ct=0;Ct0&&(Ct?kt+=(It*ur-Jt*Pt)/2:kt+=Math.sqrt(Math.pow(Jt-It,2)+Math.pow(ur-Pt,2))),It=Jt,Pt=ur}var hr=st.length-3;st[2]=1,ke(st,0,hr,At),st[hr+2]=1,st.size=Math.abs(kt),st.start=0,st.end=st.size}function xt(gt,st,At,Ct){for(var It=0;It1?1:At}function ze(gt,st,At,Ct,It,Pt,kt,Vt){if(At/=st,Ct/=st,Pt>=At&&kt=Ct)return null;for(var Jt=[],ur=0;ur=At&&Nt=Ct)continue;var Ot=[];if(Ye==="Point"||Ye==="MultiPoint")Xe(vr,Ot,At,Ct,It);else if(Ye==="LineString")Je(vr,Ot,At,Ct,It,!1,Vt.lineMetrics);else if(Ye==="MultiLineString")Fe(vr,Ot,At,Ct,It,!1);else if(Ye==="Polygon")Fe(vr,Ot,At,Ct,It,!0);else if(Ye==="MultiPolygon")for(var Qt=0;Qt=At&&kt<=Ct&&(st.push(gt[Pt]),st.push(gt[Pt+1]),st.push(gt[Pt+2]))}}function Je(gt,st,At,Ct,It,Pt,kt){for(var Vt=We(gt),Jt=It===0?ye:Ee,ur=gt.start,hr,vr,Ye=0;YeAt&&(vr=Jt(Vt,Ge,Nt,Qt,tr,At),kt&&(Vt.start=ur+hr*vr)):fr>Ct?rr=At&&(vr=Jt(Vt,Ge,Nt,Qt,tr,At),Ht=!0),rr>Ct&&fr<=Ct&&(vr=Jt(Vt,Ge,Nt,Qt,tr,Ct),Ht=!0),!Pt&&Ht&&(kt&&(Vt.end=ur+hr*vr),st.push(Vt),Vt=We(gt)),kt&&(ur+=hr)}var dr=gt.length-3;Ge=gt[dr],Nt=gt[dr+1],Ot=gt[dr+2],fr=It===0?Ge:Nt,fr>=At&&fr<=Ct&&xe(Vt,Ge,Nt,Ot),dr=Vt.length-3,Pt&&dr>=3&&(Vt[dr]!==Vt[0]||Vt[dr+1]!==Vt[1])&&xe(Vt,Vt[0],Vt[1],Vt[2]),Vt.length&&st.push(Vt)}function We(gt){var st=[];return st.size=gt.size,st.start=gt.start,st.end=gt.end,st}function Fe(gt,st,At,Ct,It,Pt){for(var kt=0;ktkt.maxX&&(kt.maxX=hr),vr>kt.maxY&&(kt.maxY=vr)}return kt}function vt(gt,st,At,Ct){var It=st.geometry,Pt=st.type,kt=[];if(Pt==="Point"||Pt==="MultiPoint")for(var Vt=0;Vt0&&st.size<(It?kt:Ct)){At.numPoints+=st.length/3;return}for(var Vt=[],Jt=0;Jtkt)&&(At.numSimplified++,Vt.push(st[Jt]),Vt.push(st[Jt+1])),At.numPoints++;It&&ct(Vt,Pt),gt.push(Vt)}function ct(gt,st){for(var At=0,Ct=0,It=gt.length,Pt=It-2;Ct0===st)for(Ct=0,It=gt.length;Ct24)throw new Error("maxZoom should be in the 0-24 range");if(st.promoteId&&st.generateId)throw new Error("promoteId and generateId cannot be used together.");var Ct=$e(gt,st);this.tiles={},this.tileCoords=[],At&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",st.indexMaxZoom,st.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Ct=Me(Ct,st),Ct.length&&this.splitTile(Ct,0,0,0),At&&(Ct.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Bt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Bt.prototype.splitTile=function(gt,st,At,Ct,It,Pt,kt){for(var Vt=[gt,st,At,Ct],Jt=this.options,ur=Jt.debug;Vt.length;){Ct=Vt.pop(),At=Vt.pop(),st=Vt.pop(),gt=Vt.pop();var hr=1<1&&console.time("creation"),Ye=this.tiles[vr]=bt(gt,st,At,Ct,Jt),this.tileCoords.push({z:st,x:At,y:Ct}),ur)){ur>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",st,At,Ct,Ye.numFeatures,Ye.numPoints,Ye.numSimplified),console.timeEnd("creation"));var Ge="z"+st;this.stats[Ge]=(this.stats[Ge]||0)+1,this.total++}if(Ye.source=gt,It){if(st===Jt.maxZoom||st===It)continue;var Nt=1<1&&console.time("clipping");var Ot=.5*Jt.buffer/Jt.extent,Qt=.5-Ot,tr=.5+Ot,fr=1+Ot,rr,Ht,dr,mr,xr,pr;rr=Ht=dr=mr=null,xr=ze(gt,hr,At-Ot,At+tr,0,Ye.minX,Ye.maxX,Jt),pr=ze(gt,hr,At+Qt,At+fr,0,Ye.minX,Ye.maxX,Jt),gt=null,xr&&(rr=ze(xr,hr,Ct-Ot,Ct+tr,1,Ye.minY,Ye.maxY,Jt),Ht=ze(xr,hr,Ct+Qt,Ct+fr,1,Ye.minY,Ye.maxY,Jt),xr=null),pr&&(dr=ze(pr,hr,Ct-Ot,Ct+tr,1,Ye.minY,Ye.maxY,Jt),mr=ze(pr,hr,Ct+Qt,Ct+fr,1,Ye.minY,Ye.maxY,Jt),pr=null),ur>1&&console.timeEnd("clipping"),Vt.push(rr||[],st+1,At*2,Ct*2),Vt.push(Ht||[],st+1,At*2,Ct*2+1),Vt.push(dr||[],st+1,At*2+1,Ct*2),Vt.push(mr||[],st+1,At*2+1,Ct*2+1)}}},Bt.prototype.getTile=function(gt,st,At){var Ct=this.options,It=Ct.extent,Pt=Ct.debug;if(gt<0||gt>24)return null;var kt=1<1&&console.log("drilling down to z%d-%d-%d",gt,st,At);for(var Jt=gt,ur=st,hr=At,vr;!vr&&Jt>0;)Jt--,ur=Math.floor(ur/2),hr=Math.floor(hr/2),vr=this.tiles[ir(Jt,ur,hr)];return!vr||!vr.source?null:(Pt>1&&console.log("found parent tile z%d-%d-%d",Jt,ur,hr),Pt>1&&console.time("drilling down"),this.splitTile(vr.source,Jt,ur,hr,gt,st,At),Pt>1&&console.timeEnd("drilling down"),this.tiles[Vt]?it(this.tiles[Vt],It):null)};function ir(gt,st,At){return((1<=0?0:he.button},x.remove=function(he){he.parentNode&&he.parentNode.removeChild(he)};function l(he,K,de){var re,pe,Oe,Qe=i.browser.devicePixelRatio>1?"@2x":"",ut=i.getJSON(K.transformRequest(K.normalizeSpriteURL(he,Qe,".json"),i.ResourceType.SpriteJSON),function(qt,cr){ut=null,Oe||(Oe=qt,re=cr,Wt())}),Rt=i.getImage(K.transformRequest(K.normalizeSpriteURL(he,Qe,".png"),i.ResourceType.SpriteImage),function(qt,cr){Rt=null,Oe||(Oe=qt,pe=cr,Wt())});function Wt(){if(Oe)de(Oe);else if(re&&pe){var qt=i.browser.getImageData(pe),cr={};for(var lr in re){var Fr=re[lr],Xr=Fr.width,Yr=Fr.height,Vr=Fr.x,Kr=Fr.y,fn=Fr.sdf,Fn=Fr.pixelRatio,Nn=Fr.stretchX,Yn=Fr.stretchY,Xn=Fr.content,Gn=new i.RGBAImage({width:Xr,height:Yr});i.RGBAImage.copy(qt,Gn,{x:Vr,y:Kr},{x:0,y:0},{width:Xr,height:Yr}),cr[lr]={data:Gn,pixelRatio:Fn,sdf:fn,stretchX:Nn,stretchY:Yn,content:Xn}}de(null,cr)}}return{cancel:function(){ut&&(ut.cancel(),ut=null),Rt&&(Rt.cancel(),Rt=null)}}}function m(he){var K=he.userImage;if(K&&K.render){var de=K.render();if(de)return he.data.replace(new Uint8Array(K.data.buffer)),!0}return!1}var h=1,b=function(he){function K(){he.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K,K.prototype.isLoaded=function(){return this.loaded},K.prototype.setLoaded=function(re){if(this.loaded!==re&&(this.loaded=re,re)){for(var pe=0,Oe=this.requestors;pe=0?1.2:1))}A.prototype.draw=function(he){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(he,this.buffer,this.middle);for(var K=this.ctx.getImageData(0,0,this.size,this.size),de=new Uint8ClampedArray(this.size*this.size),re=0;re65535){qt(new Error("glyphs > 65535 not supported"));return}if(Fr.ranges[Yr]){qt(null,{stack:cr,id:lr,glyph:Xr});return}var Vr=Fr.requests[Yr];Vr||(Vr=Fr.requests[Yr]=[],E.loadGlyphRange(cr,Yr,re.url,re.requestManager,function(Kr,fn){if(fn){for(var Fn in fn)re._doesCharSupportLocalGlyph(+Fn)||(Fr.glyphs[+Fn]=fn[+Fn]);Fr.ranges[Yr]=!0}for(var Nn=0,Yn=Vr;Nn1&&(Wt=K[++Rt]);var cr=Math.abs(qt-Wt.left),lr=Math.abs(qt-Wt.right),Fr=Math.min(cr,lr),Xr=void 0,Yr=Oe/re*(pe+1);if(Wt.isDash){var Vr=pe-Math.abs(Yr);Xr=Math.sqrt(Fr*Fr+Vr*Vr)}else Xr=pe-Math.sqrt(Fr*Fr+Yr*Yr);this.data[ut+qt]=Math.max(0,Math.min(255,Xr+128))}},z.prototype.addRegularDash=function(K){for(var de=K.length-1;de>=0;--de){var re=K[de],pe=K[de+1];re.zeroLength?K.splice(de,1):pe&&pe.isDash===re.isDash&&(pe.left=re.left,K.splice(de,1))}var Oe=K[0],Qe=K[K.length-1];Oe.isDash===Qe.isDash&&(Oe.left=Qe.left-this.width,Qe.right=Oe.right+this.width);for(var ut=this.width*this.nextRow,Rt=0,Wt=K[Rt],qt=0;qt1&&(Wt=K[++Rt]);var cr=Math.abs(qt-Wt.left),lr=Math.abs(qt-Wt.right),Fr=Math.min(cr,lr),Xr=Wt.isDash?Fr:-Fr;this.data[ut+qt]=Math.max(0,Math.min(255,Xr+128))}},z.prototype.addDash=function(K,de){var re=de?7:0,pe=2*re+1;if(this.nextRow+pe>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var Oe=0,Qe=0;Qe=re.minX&&K.x=re.minY&&K.y0&&(qt[new i.OverscaledTileID(re.overscaledZ,ut,pe.z,Qe,pe.y-1).key]={backfilled:!1},qt[new i.OverscaledTileID(re.overscaledZ,re.wrap,pe.z,pe.x,pe.y-1).key]={backfilled:!1},qt[new i.OverscaledTileID(re.overscaledZ,Wt,pe.z,Rt,pe.y-1).key]={backfilled:!1}),pe.y+10&&(Oe.resourceTiming=re._resourceTiming,re._resourceTiming=[]),re.fire(new i.Event("data",Oe))})},K.prototype.onAdd=function(re){this.map=re,this.load()},K.prototype.setData=function(re){var pe=this;return this._data=re,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Oe){if(Oe){pe.fire(new i.ErrorEvent(Oe));return}var Qe={dataType:"source",sourceDataType:"content"};pe._collectResourceTiming&&pe._resourceTiming&&pe._resourceTiming.length>0&&(Qe.resourceTiming=pe._resourceTiming,pe._resourceTiming=[]),pe.fire(new i.Event("data",Qe))}),this},K.prototype.getClusterExpansionZoom=function(re,pe){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:re,source:this.id},pe),this},K.prototype.getClusterChildren=function(re,pe){return this.actor.send("geojson.getClusterChildren",{clusterId:re,source:this.id},pe),this},K.prototype.getClusterLeaves=function(re,pe,Oe,Qe){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:re,limit:pe,offset:Oe},Qe),this},K.prototype._updateWorkerData=function(re){var pe=this;this._loaded=!1;var Oe=i.extend({},this.workerOptions),Qe=this._data;typeof Qe=="string"?(Oe.request=this.map._requestManager.transformRequest(i.browser.resolveURL(Qe),i.ResourceType.Source),Oe.request.collectResourceTiming=this._collectResourceTiming):Oe.data=JSON.stringify(Qe),this.actor.send(this.type+".loadData",Oe,function(ut,Rt){pe._removed||Rt&&Rt.abandoned||(pe._loaded=!0,Rt&&Rt.resourceTiming&&Rt.resourceTiming[pe.id]&&(pe._resourceTiming=Rt.resourceTiming[pe.id].slice(0)),pe.actor.send(pe.type+".coalesce",{source:Oe.source},null),re(ut))})},K.prototype.loaded=function(){return this._loaded},K.prototype.loadTile=function(re,pe){var Oe=this,Qe=re.actor?"reloadTile":"loadTile";re.actor=this.actor;var ut={type:this.type,uid:re.uid,tileID:re.tileID,zoom:re.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};re.request=this.actor.send(Qe,ut,function(Rt,Wt){return delete re.request,re.unloadVectorData(),re.aborted?pe(null):Rt?pe(Rt):(re.loadVectorData(Wt,Oe.map.painter,Qe==="reloadTile"),pe(null))})},K.prototype.abortTile=function(re){re.request&&(re.request.cancel(),delete re.request),re.aborted=!0},K.prototype.unloadTile=function(re){re.unloadVectorData(),this.actor.send("removeTile",{uid:re.uid,type:this.type,source:this.id})},K.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},K.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},K.prototype.hasTransition=function(){return!1},K}(i.Evented),Y=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),j=function(he){function K(de,re,pe,Oe){he.call(this),this.id=de,this.dispatcher=pe,this.coordinates=re.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Oe),this.options=re}return he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K,K.prototype.load=function(re,pe){var Oe=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(Qe,ut){Oe._loaded=!0,Qe?Oe.fire(new i.ErrorEvent(Qe)):ut&&(Oe.image=ut,re&&(Oe.coordinates=re),pe&&pe(),Oe._finishLoading())})},K.prototype.loaded=function(){return this._loaded},K.prototype.updateImage=function(re){var pe=this;return!this.image||!re.url?this:(this.options.url=re.url,this.load(re.coordinates,function(){pe.texture=null}),this)},K.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},K.prototype.onAdd=function(re){this.map=re,this.load()},K.prototype.setCoordinates=function(re){var pe=this;this.coordinates=re;var Oe=re.map(i.MercatorCoordinate.fromLngLat);this.tileID=te(Oe),this.minzoom=this.maxzoom=this.tileID.z;var Qe=Oe.map(function(ut){return pe.tileID.getTilePoint(ut)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(Qe[0].x,Qe[0].y,0,0),this._boundsArray.emplaceBack(Qe[1].x,Qe[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(Qe[3].x,Qe[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(Qe[2].x,Qe[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},K.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var re=this.map.painter.context,pe=re.gl;this.boundsBuffer||(this.boundsBuffer=re.createVertexBuffer(this._boundsArray,Y.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(re,this.image,pe.RGBA),this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE));for(var Oe in this.tiles){var Qe=this.tiles[Oe];Qe.state!=="loaded"&&(Qe.state="loaded",Qe.texture=this.texture)}}},K.prototype.loadTile=function(re,pe){this.tileID&&this.tileID.equals(re.tileID.canonical)?(this.tiles[String(re.tileID.wrap)]=re,re.buckets={},pe(null)):(re.state="errored",pe(null))},K.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},K.prototype.hasTransition=function(){return!1},K}(i.Evented);function te(he){for(var K=1/0,de=1/0,re=-1/0,pe=-1/0,Oe=0,Qe=he;Oepe.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+pe.start(0)+" and "+pe.end(0)+"-second mark."))):this.video.currentTime=re}},K.prototype.getVideo=function(){return this.video},K.prototype.onAdd=function(re){this.map||(this.map=re,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},K.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var re=this.map.painter.context,pe=re.gl;this.boundsBuffer||(this.boundsBuffer=re.createVertexBuffer(this._boundsArray,Y.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE),pe.texSubImage2D(pe.TEXTURE_2D,0,0,0,pe.RGBA,pe.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(re,this.video,pe.RGBA),this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE));for(var Oe in this.tiles){var Qe=this.tiles[Oe];Qe.state!=="loaded"&&(Qe.state="loaded",Qe.texture=this.texture)}}},K.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},K.prototype.hasTransition=function(){return this.video&&!this.video.paused},K}(j),ue=function(he){function K(de,re,pe,Oe){he.call(this,de,re,pe,Oe),re.coordinates?(!Array.isArray(re.coordinates)||re.coordinates.length!==4||re.coordinates.some(function(Qe){return!Array.isArray(Qe)||Qe.length!==2||Qe.some(function(ut){return typeof ut!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+de,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+de,null,'missing required property "coordinates"'))),re.animate&&typeof re.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+de,null,'optional "animate" property must be a boolean value'))),re.canvas?typeof re.canvas!="string"&&!(re.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+de,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+de,null,'missing required property "canvas"'))),this.options=re,this.animate=re.animate!==void 0?re.animate:!0}return he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K,K.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},K.prototype.getCanvas=function(){return this.canvas},K.prototype.onAdd=function(re){this.map=re,this.load(),this.canvas&&this.animate&&this.play()},K.prototype.onRemove=function(){this.pause()},K.prototype.prepare=function(){var re=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,re=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,re=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var pe=this.map.painter.context,Oe=pe.gl;this.boundsBuffer||(this.boundsBuffer=pe.createVertexBuffer(this._boundsArray,Y.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(re||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(pe,this.canvas,Oe.RGBA,{premultiply:!0});for(var Qe in this.tiles){var ut=this.tiles[Qe];ut.state!=="loaded"&&(ut.state="loaded",ut.texture=this.texture)}}},K.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},K.prototype.hasTransition=function(){return this._playing},K.prototype._hasInvalidDimensions=function(){for(var re=0,pe=[this.canvas.width,this.canvas.height];rethis.max){var ut=this._getAndRemoveByKey(this.order[0]);ut&&this.onRemove(ut)}return this},ge.prototype.has=function(K){return K.wrapped().key in this.data},ge.prototype.getAndRemove=function(K){return this.has(K)?this._getAndRemoveByKey(K.wrapped().key):null},ge.prototype._getAndRemoveByKey=function(K){var de=this.data[K].shift();return de.timeout&&clearTimeout(de.timeout),this.data[K].length===0&&delete this.data[K],this.order.splice(this.order.indexOf(K),1),de.value},ge.prototype.getByKey=function(K){var de=this.data[K];return de?de[0].value:null},ge.prototype.get=function(K){if(!this.has(K))return null;var de=this.data[K.wrapped().key][0];return de.value},ge.prototype.remove=function(K,de){if(!this.has(K))return this;var re=K.wrapped().key,pe=de===void 0?0:this.data[re].indexOf(de),Oe=this.data[re][pe];return this.data[re].splice(pe,1),Oe.timeout&&clearTimeout(Oe.timeout),this.data[re].length===0&&delete this.data[re],this.onRemove(Oe.value),this.order.splice(this.order.indexOf(re),1),this},ge.prototype.setMaxSize=function(K){for(this.max=K;this.order.length>this.max;){var de=this._getAndRemoveByKey(this.order[0]);de&&this.onRemove(de)}return this},ge.prototype.filter=function(K){var de=[];for(var re in this.data)for(var pe=0,Oe=this.data[re];pe1||(Math.abs(cr)>1&&(Math.abs(cr+Fr)===1?cr+=Fr:Math.abs(cr-Fr)===1&&(cr-=Fr)),!(!qt.dem||!Wt.dem)&&(Wt.dem.backfillBorder(qt.dem,cr,lr),Wt.neighboringTiles&&Wt.neighboringTiles[Xr]&&(Wt.neighboringTiles[Xr].backfilled=!0)))}},K.prototype.getTile=function(re){return this.getTileByID(re.key)},K.prototype.getTileByID=function(re){return this._tiles[re]},K.prototype._retainLoadedChildren=function(re,pe,Oe,Qe){for(var ut in this._tiles){var Rt=this._tiles[ut];if(!(Qe[ut]||!Rt.hasData()||Rt.tileID.overscaledZ<=pe||Rt.tileID.overscaledZ>Oe)){for(var Wt=Rt.tileID;Rt&&Rt.tileID.overscaledZ>pe+1;){var qt=Rt.tileID.scaledTo(Rt.tileID.overscaledZ-1);Rt=this._tiles[qt.key],Rt&&Rt.hasData()&&(Wt=qt)}for(var cr=Wt;cr.overscaledZ>pe;)if(cr=cr.scaledTo(cr.overscaledZ-1),re[cr.key]){Qe[Wt.key]=Wt;break}}}},K.prototype.findLoadedParent=function(re,pe){if(re.key in this._loadedParentTiles){var Oe=this._loadedParentTiles[re.key];return Oe&&Oe.tileID.overscaledZ>=pe?Oe:null}for(var Qe=re.overscaledZ-1;Qe>=pe;Qe--){var ut=re.scaledTo(Qe),Rt=this._getLoadedTile(ut);if(Rt)return Rt}},K.prototype._getLoadedTile=function(re){var pe=this._tiles[re.key];if(pe&&pe.hasData())return pe;var Oe=this._cache.getByKey(re.wrapped().key);return Oe},K.prototype.updateCacheSize=function(re){var pe=Math.ceil(re.width/this._source.tileSize)+1,Oe=Math.ceil(re.height/this._source.tileSize)+1,Qe=pe*Oe,ut=5,Rt=Math.floor(Qe*ut),Wt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Rt):Rt;this._cache.setMaxSize(Wt)},K.prototype.handleWrapJump=function(re){var pe=this._prevLng===void 0?re:this._prevLng,Oe=re-pe,Qe=Oe/360,ut=Math.round(Qe);if(this._prevLng=re,ut){var Rt={};for(var Wt in this._tiles){var qt=this._tiles[Wt];qt.tileID=qt.tileID.unwrapTo(qt.tileID.wrap+ut),Rt[qt.tileID.key]=qt}this._tiles=Rt;for(var cr in this._timers)clearTimeout(this._timers[cr]),delete this._timers[cr];for(var lr in this._tiles){var Fr=this._tiles[lr];this._setTileReloadTimer(lr,Fr)}}},K.prototype.update=function(re){var pe=this;if(this.transform=re,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(re),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var Oe;this.used?this._source.tileID?Oe=re.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(si){return new i.OverscaledTileID(si.canonical.z,si.wrap,si.canonical.z,si.canonical.x,si.canonical.y)}):(Oe=re.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Oe=Oe.filter(function(si){return pe._source.hasTile(si)}))):Oe=[];var Qe=re.coveringZoomLevel(this._source),ut=Math.max(Qe-K.maxOverzooming,this._source.minzoom),Rt=Math.max(Qe+K.maxUnderzooming,this._source.minzoom),Wt=this._updateRetainedTiles(Oe,Qe);if(Jt(this._source.type)){for(var qt={},cr={},lr=Object.keys(Wt),Fr=0,Xr=lr;Frthis._source.maxzoom){var fn=Vr.children(this._source.maxzoom)[0],Fn=this.getTile(fn);if(Fn&&Fn.hasData()){Oe[fn.key]=fn;continue}}else{var Nn=Vr.children(this._source.maxzoom);if(Oe[Nn[0].key]&&Oe[Nn[1].key]&&Oe[Nn[2].key]&&Oe[Nn[3].key])continue}for(var Yn=Kr.wasRequested(),Xn=Vr.overscaledZ-1;Xn>=ut;--Xn){var Gn=Vr.scaledTo(Xn);if(Qe[Gn.key]||(Qe[Gn.key]=!0,Kr=this.getTile(Gn),!Kr&&Yn&&(Kr=this._addTile(Gn)),Kr&&(Oe[Gn.key]=Gn,Yn=Kr.wasRequested(),Kr.hasData())))break}}}return Oe},K.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var re in this._tiles){for(var pe=[],Oe=void 0,Qe=this._tiles[re].tileID;Qe.overscaledZ>0;){if(Qe.key in this._loadedParentTiles){Oe=this._loadedParentTiles[Qe.key];break}pe.push(Qe.key);var ut=Qe.scaledTo(Qe.overscaledZ-1);if(Oe=this._getLoadedTile(ut),Oe)break;Qe=ut}for(var Rt=0,Wt=pe;Rt0)&&(pe.hasData()&&pe.state!=="reloading"?this._cache.add(pe.tileID,pe,pe.getExpiryTimeout()):(pe.aborted=!0,this._abortTile(pe),this._unloadTile(pe))))},K.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var re in this._tiles)this._removeTile(re);this._cache.reset()},K.prototype.tilesIn=function(re,pe,Oe){var Qe=this,ut=[],Rt=this.transform;if(!Rt)return ut;for(var Wt=Oe?Rt.getCameraQueryGeometry(re):re,qt=re.map(function(Xn){return Rt.pointCoordinate(Xn)}),cr=Wt.map(function(Xn){return Rt.pointCoordinate(Xn)}),lr=this.getIds(),Fr=1/0,Xr=1/0,Yr=-1/0,Vr=-1/0,Kr=0,fn=cr;Kr=0&&yi[1].y+si>=0){var hi=qt.map(function(Ji){return jn.getTilePoint(Ji)}),Fi=cr.map(function(Ji){return jn.getTilePoint(Ji)});ut.push({tile:Gn,tileID:jn,queryGeometry:hi,cameraQueryGeometry:Fi,scale:ei})}}},Yn=0;Yn=i.browser.now())return!0}return!1},K.prototype.setFeatureState=function(re,pe,Oe){re=re||"_geojsonTileLayer",this._state.updateState(re,pe,Oe)},K.prototype.removeFeatureState=function(re,pe,Oe){re=re||"_geojsonTileLayer",this._state.removeFeatureState(re,pe,Oe)},K.prototype.getFeatureState=function(re,pe){return re=re||"_geojsonTileLayer",this._state.getState(re,pe)},K.prototype.setDependencies=function(re,pe,Oe){var Qe=this._tiles[re];Qe&&Qe.setDependencies(pe,Oe)},K.prototype.reloadTilesForDependencies=function(re,pe){for(var Oe in this._tiles){var Qe=this._tiles[Oe];Qe.hasDependency(re,pe)&&this._reloadTile(Oe,"reloading")}this._cache.filter(function(ut){return!ut.hasDependency(re,pe)})},K}(i.Evented);kt.maxOverzooming=10,kt.maxUnderzooming=3;function Vt(he,K){var de=Math.abs(he.wrap*2)-+(he.wrap<0),re=Math.abs(K.wrap*2)-+(K.wrap<0);return he.overscaledZ-K.overscaledZ||re-de||K.canonical.y-he.canonical.y||K.canonical.x-he.canonical.x}function Jt(he){return he==="raster"||he==="image"||he==="video"}function ur(){return new i.window.Worker(ro.workerUrl)}var hr="mapboxgl_preloaded_worker_pool",vr=function(){this.active={}};vr.prototype.acquire=function(K){if(!this.workers)for(this.workers=[];this.workers.length0?(pe-Qe)/ut:0;return this.points[Oe].mult(1-Rt).add(this.points[de].mult(Rt))};var Tr=function(K,de,re){var pe=this.boxCells=[],Oe=this.circleCells=[];this.xCellCount=Math.ceil(K/re),this.yCellCount=Math.ceil(de/re);for(var Qe=0;Qethis.width||pe<0||de>this.height)return Oe?!1:[];var ut=[];if(K<=0&&de<=0&&this.width<=re&&this.height<=pe){if(Oe)return!0;for(var Rt=0;Rt0:ut}},Tr.prototype._queryCircle=function(K,de,re,pe,Oe){var Qe=K-re,ut=K+re,Rt=de-re,Wt=de+re;if(ut<0||Qe>this.width||Wt<0||Rt>this.height)return pe?!1:[];var qt=[],cr={hitTest:pe,circle:{x:K,y:de,radius:re},seenUids:{box:{},circle:{}}};return this._forEachCell(Qe,Rt,ut,Wt,this._queryCellCircle,qt,cr,Oe),pe?qt.length>0:qt},Tr.prototype.query=function(K,de,re,pe,Oe){return this._query(K,de,re,pe,!1,Oe)},Tr.prototype.hitTest=function(K,de,re,pe,Oe){return this._query(K,de,re,pe,!0,Oe)},Tr.prototype.hitTestCircle=function(K,de,re,pe){return this._queryCircle(K,de,re,!0,pe)},Tr.prototype._queryCell=function(K,de,re,pe,Oe,Qe,ut,Rt){var Wt=ut.seenUids,qt=this.boxCells[Oe];if(qt!==null)for(var cr=this.bboxes,lr=0,Fr=qt;lr=cr[Yr+0]&&pe>=cr[Yr+1]&&(!Rt||Rt(this.boxKeys[Xr]))){if(ut.hitTest)return Qe.push(!0),!0;Qe.push({key:this.boxKeys[Xr],x1:cr[Yr],y1:cr[Yr+1],x2:cr[Yr+2],y2:cr[Yr+3]})}}}var Vr=this.circleCells[Oe];if(Vr!==null)for(var Kr=this.circles,fn=0,Fn=Vr;fnut*ut+Rt*Rt},Tr.prototype._circleAndRectCollide=function(K,de,re,pe,Oe,Qe,ut){var Rt=(Qe-pe)/2,Wt=Math.abs(K-(pe+Rt));if(Wt>Rt+re)return!1;var qt=(ut-Oe)/2,cr=Math.abs(de-(Oe+qt));if(cr>qt+re)return!1;if(Wt<=Rt||cr<=qt)return!0;var lr=Wt-Rt,Fr=cr-qt;return lr*lr+Fr*Fr<=re*re};function Cr(he,K,de,re,pe){var Oe=i.create();return K?(i.scale(Oe,Oe,[1/pe,1/pe,1]),de||i.rotateZ(Oe,Oe,re.angle)):i.multiply(Oe,re.labelPlaneMatrix,he),Oe}function Wr(he,K,de,re,pe){if(K){var Oe=i.clone(he);return i.scale(Oe,Oe,[pe,pe,1]),de||i.rotateZ(Oe,Oe,-re.angle),Oe}else return re.glCoordMatrix}function Ur(he,K){var de=[he.x,he.y,0,1];wr(de,de,K);var re=de[3];return{point:new i.Point(de[0]/re,de[1]/re),signedDistanceFromCamera:re}}function an(he,K){return .5+.5*(he/K)}function pn(he,K){var de=he[0]/he[3],re=he[1]/he[3],pe=de>=-K[0]&&de<=K[0]&&re>=-K[1]&&re<=K[1];return pe}function gn(he,K,de,re,pe,Oe,Qe,ut){var Rt=re?he.textSizeData:he.iconSizeData,Wt=i.evaluateSizeForZoom(Rt,de.transform.zoom),qt=[256/de.width*2+1,256/de.height*2+1],cr=re?he.text.dynamicLayoutVertexArray:he.icon.dynamicLayoutVertexArray;cr.clear();for(var lr=he.lineVertexArray,Fr=re?he.text.placedSymbolArray:he.icon.placedSymbolArray,Xr=de.transform.width/de.transform.height,Yr=!1,Vr=0;VrOe)return{useVertical:!0}}return(he===i.WritingMode.vertical?K.yde.x)?{needsFlipping:!0}:null}function ni(he,K,de,re,pe,Oe,Qe,ut,Rt,Wt,qt,cr,lr,Fr){var Xr=K/24,Yr=he.lineOffsetX*Xr,Vr=he.lineOffsetY*Xr,Kr;if(he.numGlyphs>1){var fn=he.glyphStartIndex+he.numGlyphs,Fn=he.lineStartIndex,Nn=he.lineStartIndex+he.lineLength,Yn=_n(Xr,ut,Yr,Vr,de,qt,cr,he,Rt,Oe,lr);if(!Yn)return{notEnoughRoom:!0};var Xn=Ur(Yn.first.point,Qe).point,Gn=Ur(Yn.last.point,Qe).point;if(re&&!de){var jn=kn(he.writingMode,Xn,Gn,Fr);if(jn)return jn}Kr=[Yn.first];for(var ei=he.glyphStartIndex+1;ei0?Fi.point:ci(cr,hi,si,1,pe),Gi=kn(he.writingMode,si,Ji,Fr);if(Gi)return Gi}var Ai=di(Xr*ut.getoffsetX(he.glyphStartIndex),Yr,Vr,de,qt,cr,he.segment,he.lineStartIndex,he.lineStartIndex+he.lineLength,Rt,Oe,lr);if(!Ai)return{notEnoughRoom:!0};Kr=[Ai]}for(var Yi=0,Ui=Kr;Yi0?1:-1,Xr=0;re&&(Fr*=-1,Xr=Math.PI),Fr<0&&(Xr+=Math.PI);for(var Yr=Fr>0?ut+Qe:ut+Qe+1,Vr=pe,Kr=pe,fn=0,Fn=0,Nn=Math.abs(lr),Yn=[];fn+Fn<=Nn;){if(Yr+=Fr,Yr=Rt)return null;if(Kr=Vr,Yn.push(Vr),Vr=cr[Yr],Vr===void 0){var Xn=new i.Point(Wt.getx(Yr),Wt.gety(Yr)),Gn=Ur(Xn,qt);if(Gn.signedDistanceFromCamera>0)Vr=cr[Yr]=Gn.point;else{var jn=Yr-Fr,ei=fn===0?Oe:new i.Point(Wt.getx(jn),Wt.gety(jn));Vr=ci(ei,Xn,Kr,Nn-fn+1,qt)}}fn+=Fn,Fn=Kr.dist(Vr)}var si=(Nn-fn)/Fn,yi=Vr.sub(Kr),hi=yi.mult(si)._add(Kr);hi._add(yi._unit()._perp()._mult(de*Fr));var Fi=Xr+Math.atan2(Vr.y-Kr.y,Vr.x-Kr.x);return Yn.push(hi),{point:hi,angle:Fi,path:Yn}}var li=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ri(he,K){for(var de=0;de=1;ia--)Ui.push(Ai.path[ia]);for(var qi=1;qi0){for(var Hi=Ui[0].clone(),Qi=Ui[0].clone(),Na=1;Na=Fi.x&&Qi.x<=Ji.x&&Hi.y>=Fi.y&&Qi.y<=Ji.y?ma=[Ui]:Qi.xJi.x||Qi.yJi.y?ma=[]:ma=i.clipLine([Ui],Fi.x,Fi.y,Ji.x,Ji.y)}for(var fo=0,Ns=ma;fo=this.screenRightBoundary||pethis.screenBottomBoundary},$r.prototype.isInsideGrid=function(K,de,re,pe){return re>=0&&K=0&&de0){var Nn;return this.prevPlacement&&this.prevPlacement.variableOffsets[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID].text&&(Nn=this.prevPlacement.variableOffsets[lr.crossTileID].anchor),this.variableOffsets[lr.crossTileID]={textOffset:Vr,width:re,height:pe,anchor:K,textBoxScale:Oe,prevAnchor:Nn},this.markUsedJustification(Fr,K,lr,Xr),Fr.allowVerticalPlacement&&(this.markUsedOrientation(Fr,Xr,lr),this.placedOrientations[lr.crossTileID]=Xr),{shift:Kr,placedGlyphBoxes:fn}}},kr.prototype.placeLayerBucketPart=function(K,de,re){var pe=this,Oe=K.parameters,Qe=Oe.bucket,ut=Oe.layout,Rt=Oe.posMatrix,Wt=Oe.textLabelPlaneMatrix,qt=Oe.labelToScreenMatrix,cr=Oe.textPixelRatio,lr=Oe.holdingForFade,Fr=Oe.collisionBoxArray,Xr=Oe.partiallyEvaluatedTextSize,Yr=Oe.collisionGroup,Vr=ut.get("text-optional"),Kr=ut.get("icon-optional"),fn=ut.get("text-allow-overlap"),Fn=ut.get("icon-allow-overlap"),Nn=ut.get("text-rotation-alignment")==="map",Yn=ut.get("text-pitch-alignment")==="map",Xn=ut.get("icon-text-fit")!=="none",Gn=ut.get("symbol-z-order")==="viewport-y",jn=fn&&(Fn||!Qe.hasIconData()||Kr),ei=Fn&&(fn||!Qe.hasTextData()||Vr);!Qe.collisionArrays&&Fr&&Qe.deserializeCollisionBoxes(Fr);var si=function(Ai,Yi){if(!de[Ai.crossTileID]){if(lr){pe.placements[Ai.crossTileID]=new An(!1,!1,!1);return}var Ui=!1,ia=!1,qi=!0,Ta=null,Ki={box:null,offscreen:null},ma={box:null,offscreen:null},Hi=null,Qi=null,Na=null,fo=0,Ns=0,Bs=0;Yi.textFeatureIndex?fo=Yi.textFeatureIndex:Ai.useRuntimeCollisionCircles&&(fo=Ai.featureIndex),Yi.verticalTextFeatureIndex&&(Ns=Yi.verticalTextFeatureIndex);var el=Yi.textBox;if(el){var _l=function(Ga){var ss=i.WritingMode.horizontal;if(Qe.allowVerticalPlacement&&!Ga&&pe.prevPlacement){var ls=pe.prevPlacement.placedOrientations[Ai.crossTileID];ls&&(pe.placedOrientations[Ai.crossTileID]=ls,ss=ls,pe.markUsedOrientation(Qe,ss,Ai))}return ss},of=function(Ga,ss){if(Qe.allowVerticalPlacement&&Ai.numVerticalGlyphVertices>0&&Yi.verticalTextBox)for(var ls=0,vh=Qe.writingModes;ls0&&(os=os.filter(function(Ga){return Ga!==Ko.anchor}),os.unshift(Ko.anchor))}var tl=function(Ga,ss,ls){for(var vh=Ga.x2-Ga.x1,bv=Ga.y2-Ga.y1,Mp=Ai.textBoxScale,Sp=Xn&&!Fn?ss:null,Hc={box:[],offscreen:!1},Ep=fn?os.length*2:os.length,dh=0;dh=os.length,wv=pe.attemptAnchorPlacement(_p,Ga,vh,bv,Mp,Nn,Yn,cr,Rt,Yr,Cp,Ai,Qe,ls,Sp);if(wv&&(Hc=wv.placedGlyphBoxes,Hc&&Hc.box&&Hc.box.length)){Ui=!0,Ta=wv.shift;break}}return Hc},ru=function(){return tl(el,Yi.iconBox,i.WritingMode.horizontal)},rl=function(){var Ga=Yi.verticalTextBox,ss=Ki&&Ki.box&&Ki.box.length;return Qe.allowVerticalPlacement&&!ss&&Ai.numVerticalGlyphVertices>0&&Ga?tl(Ga,Yi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};of(ru,rl),Ki&&(Ui=Ki.box,qi=Ki.offscreen);var lh=_l(Ki&&Ki.box);if(!Ui&&pe.prevPlacement){var Zf=pe.prevPlacement.variableOffsets[Ai.crossTileID];Zf&&(pe.variableOffsets[Ai.crossTileID]=Zf,pe.markUsedJustification(Qe,Zf.anchor,Ai,lh))}}else{var Cl=function(Ga,ss){var ls=pe.collisionIndex.placeCollisionBox(Ga,fn,cr,Rt,Yr.predicate);return ls&&ls.box&&ls.box.length&&(pe.markUsedOrientation(Qe,ss,Ai),pe.placedOrientations[Ai.crossTileID]=ss),ls},jo=function(){return Cl(el,i.WritingMode.horizontal)},Ll=function(){var Ga=Yi.verticalTextBox;return Qe.allowVerticalPlacement&&Ai.numVerticalGlyphVertices>0&&Ga?Cl(Ga,i.WritingMode.vertical):{box:null,offscreen:null}};of(jo,Ll),_l(Ki&&Ki.box&&Ki.box.length)}}if(Hi=Ki,Ui=Hi&&Hi.box&&Hi.box.length>0,qi=Hi&&Hi.offscreen,Ai.useRuntimeCollisionCircles){var po=Qe.text.placedSymbolArray.get(Ai.centerJustifiedTextSymbolIndex),uh=i.evaluateSizeForFeature(Qe.textSizeData,Xr,po),Uc=ut.get("text-padding"),Io=Ai.collisionCircleDiameter;Qi=pe.collisionIndex.placeCollisionCircles(fn,po,Qe.lineVertexArray,Qe.glyphOffsetArray,uh,Rt,Wt,qt,re,Yn,Yr.predicate,Io,Uc),Ui=fn||Qi.circles.length>0&&!Qi.collisionDetected,qi=qi&&Qi.offscreen}if(Yi.iconFeatureIndex&&(Bs=Yi.iconFeatureIndex),Yi.iconBox){var jf=function(Ga){var ss=Xn&&Ta?Sr(Ga,Ta.x,Ta.y,Nn,Yn,pe.transform.angle):Ga;return pe.collisionIndex.placeCollisionBox(ss,Fn,cr,Rt,Yr.predicate)};ma&&ma.box&&ma.box.length&&Yi.verticalIconBox?(Na=jf(Yi.verticalIconBox),ia=Na.box.length>0):(Na=jf(Yi.iconBox),ia=Na.box.length>0),qi=qi&&Na.offscreen}var fh=Vr||Ai.numHorizontalGlyphVertices===0&&Ai.numVerticalGlyphVertices===0,ch=Kr||Ai.numIconVertices===0;if(!fh&&!ch?ia=Ui=ia&&Ui:ch?fh||(ia=ia&&Ui):Ui=ia&&Ui,Ui&&Hi&&Hi.box&&(ma&&ma.box&&Ns?pe.collisionIndex.insertCollisionBox(Hi.box,ut.get("text-ignore-placement"),Qe.bucketInstanceId,Ns,Yr.ID):pe.collisionIndex.insertCollisionBox(Hi.box,ut.get("text-ignore-placement"),Qe.bucketInstanceId,fo,Yr.ID)),ia&&Na&&pe.collisionIndex.insertCollisionBox(Na.box,ut.get("icon-ignore-placement"),Qe.bucketInstanceId,Bs,Yr.ID),Qi&&(Ui&&pe.collisionIndex.insertCollisionCircles(Qi.circles,ut.get("text-ignore-placement"),Qe.bucketInstanceId,fo,Yr.ID),re)){var hh=Qe.bucketInstanceId,Kf=pe.collisionCircleArrays[hh];Kf===void 0&&(Kf=pe.collisionCircleArrays[hh]=new Bn);for(var Jf=0;Jf=0;--hi){var Fi=yi[hi];si(Qe.symbolInstances.get(Fi),Qe.collisionArrays[Fi])}else for(var Ji=K.symbolInstanceStart;Ji=0&&(Qe>=0&&qt!==Qe?K.text.placedSymbolArray.get(qt).crossTileID=0:K.text.placedSymbolArray.get(qt).crossTileID=re.crossTileID)}},kr.prototype.markUsedOrientation=function(K,de,re){for(var pe=de===i.WritingMode.horizontal||de===i.WritingMode.horizontalOnly?de:0,Oe=de===i.WritingMode.vertical?de:0,Qe=[re.leftJustifiedTextSymbolIndex,re.centerJustifiedTextSymbolIndex,re.rightJustifiedTextSymbolIndex],ut=0,Rt=Qe;ut0||Yn>0,si=Fn.numIconVertices>0,yi=pe.placedOrientations[Fn.crossTileID],hi=yi===i.WritingMode.vertical,Fi=yi===i.WritingMode.horizontal||yi===i.WritingMode.horizontalOnly;if(ei){var Ji=Hr(jn.text),Gi=hi?Qr:Ji;Xr(K.text,Nn,Gi);var Ai=Fi?Qr:Ji;Xr(K.text,Yn,Ai);var Yi=jn.text.isHidden();[Fn.rightJustifiedTextSymbolIndex,Fn.centerJustifiedTextSymbolIndex,Fn.leftJustifiedTextSymbolIndex].forEach(function(Bs){Bs>=0&&(K.text.placedSymbolArray.get(Bs).hidden=Yi||hi?1:0)}),Fn.verticalPlacedTextSymbolIndex>=0&&(K.text.placedSymbolArray.get(Fn.verticalPlacedTextSymbolIndex).hidden=Yi||Fi?1:0);var Ui=pe.variableOffsets[Fn.crossTileID];Ui&&pe.markUsedJustification(K,Ui.anchor,Fn,yi);var ia=pe.placedOrientations[Fn.crossTileID];ia&&(pe.markUsedJustification(K,"left",Fn,ia),pe.markUsedOrientation(K,ia,Fn))}if(si){var qi=Hr(jn.icon),Ta=!(lr&&Fn.verticalPlacedIconSymbolIndex&&hi);if(Fn.placedIconSymbolIndex>=0){var Ki=Ta?qi:Qr;Xr(K.icon,Fn.numIconVertices,Ki),K.icon.placedSymbolArray.get(Fn.placedIconSymbolIndex).hidden=jn.icon.isHidden()}if(Fn.verticalPlacedIconSymbolIndex>=0){var ma=Ta?Qr:qi;Xr(K.icon,Fn.numVerticalIconVertices,ma),K.icon.placedSymbolArray.get(Fn.verticalPlacedIconSymbolIndex).hidden=jn.icon.isHidden()}}if(K.hasIconCollisionBoxData()||K.hasTextCollisionBoxData()){var Hi=K.collisionArrays[fn];if(Hi){var Qi=new i.Point(0,0);if(Hi.textBox||Hi.verticalTextBox){var Na=!0;if(Wt){var fo=pe.variableOffsets[Xn];fo?(Qi=Di(fo.anchor,fo.width,fo.height,fo.textOffset,fo.textBoxScale),qt&&Qi._rotate(cr?pe.transform.angle:-pe.transform.angle)):Na=!1}Hi.textBox&&Ar(K.textCollisionBox.collisionVertexArray,jn.text.placed,!Na||hi,Qi.x,Qi.y),Hi.verticalTextBox&&Ar(K.textCollisionBox.collisionVertexArray,jn.text.placed,!Na||Fi,Qi.x,Qi.y)}var Ns=!!(!Fi&&Hi.verticalIconBox);Hi.iconBox&&Ar(K.iconCollisionBox.collisionVertexArray,jn.icon.placed,Ns,lr?Qi.x:0,lr?Qi.y:0),Hi.verticalIconBox&&Ar(K.iconCollisionBox.collisionVertexArray,jn.icon.placed,!Ns,lr?Qi.x:0,lr?Qi.y:0)}}},Vr=0;VrK},kr.prototype.setStale=function(){this.stale=!0};function Ar(he,K,de,re,pe){he.emplaceBack(K?1:0,de?1:0,re||0,pe||0),he.emplaceBack(K?1:0,de?1:0,re||0,pe||0),he.emplaceBack(K?1:0,de?1:0,re||0,pe||0),he.emplaceBack(K?1:0,de?1:0,re||0,pe||0)}var Or=Math.pow(2,25),xn=Math.pow(2,24),In=Math.pow(2,17),hn=Math.pow(2,16),sn=Math.pow(2,9),Er=Math.pow(2,8),Zr=Math.pow(2,1);function Hr(he){if(he.opacity===0&&!he.placed)return 0;if(he.opacity===1&&he.placed)return 4294967295;var K=he.placed?1:0,de=Math.floor(he.opacity*127);return de*Or+K*xn+de*In+K*hn+de*sn+K*Er+de*Zr+K}var Qr=0,wn=function(K){this._sortAcrossTiles=K.layout.get("symbol-z-order")!=="viewport-y"&&K.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};wn.prototype.continuePlacement=function(K,de,re,pe,Oe){for(var Qe=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var ut=K[this._currentPlacementIndex],Rt=de[ut],Wt=this.placement.collisionIndex.transform.zoom;if(Rt.type==="symbol"&&(!Rt.minzoom||Rt.minzoom<=Wt)&&(!Rt.maxzoom||Rt.maxzoom>Wt)){this._inProgressLayer||(this._inProgressLayer=new wn(Rt));var qt=this._inProgressLayer.continuePlacement(re[Rt.source],this.placement,this._showCollisionBoxes,Rt,Qe);if(qt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ln.prototype.commit=function(K){return this.placement.commit(K),this.placement};var Pn=512/i.EXTENT/2,Un=function(K,de,re){this.tileID=K,this.indexedSymbolInstances={},this.bucketInstanceId=re;for(var pe=0;peK.overscaledZ)for(var Wt in Rt){var qt=Rt[Wt];qt.tileID.isChildOf(K)&&qt.findMatches(de.symbolInstances,K,Qe)}else{var cr=K.scaledTo(Number(ut)),lr=Rt[cr.key];lr&&lr.findMatches(de.symbolInstances,K,Qe)}}for(var Fr=0;Fr0)throw new Error("Unimplemented: "+Qe.map(function(ut){return ut.command}).join(", ")+".");return Oe.forEach(function(ut){ut.command!=="setTransition"&&pe[ut.command].apply(pe,ut.args)}),this.stylesheet=re,!0},K.prototype.addImage=function(re,pe){if(this.getImage(re))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(re,pe),this._afterImageUpdated(re)},K.prototype.updateImage=function(re,pe){this.imageManager.updateImage(re,pe)},K.prototype.getImage=function(re){return this.imageManager.getImage(re)},K.prototype.removeImage=function(re){if(!this.getImage(re))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(re),this._afterImageUpdated(re)},K.prototype._afterImageUpdated=function(re){this._availableImages=this.imageManager.listImages(),this._changedImages[re]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},K.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},K.prototype.addSource=function(re,pe,Oe){var Qe=this;if(Oe===void 0&&(Oe={}),this._checkLoaded(),this.sourceCaches[re]!==void 0)throw new Error("There is already a source with this ID");if(!pe.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(pe).join(", ")+".");var ut=["vector","raster","geojson","video","image"],Rt=ut.indexOf(pe.type)>=0;if(!(Rt&&this._validate(i.validateStyle.source,"sources."+re,pe,null,Oe))){this.map&&this.map._collectResourceTiming&&(pe.collectResourceTiming=!0);var Wt=this.sourceCaches[re]=new kt(re,pe,this.dispatcher);Wt.style=this,Wt.setEventedParent(this,function(){return{isSourceLoaded:Qe.loaded(),source:Wt.serialize(),sourceId:re}}),Wt.onAdd(this.map),this._changed=!0}},K.prototype.removeSource=function(re){if(this._checkLoaded(),this.sourceCaches[re]===void 0)throw new Error("There is no source with this ID");for(var pe in this._layers)if(this._layers[pe].source===re)return this.fire(new i.ErrorEvent(new Error('Source "'+re+'" cannot be removed while layer "'+pe+'" is using it.')));var Oe=this.sourceCaches[re];delete this.sourceCaches[re],delete this._updatedSources[re],Oe.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:re})),Oe.setEventedParent(null),Oe.clearTiles(),Oe.onRemove&&Oe.onRemove(this.map),this._changed=!0},K.prototype.setGeoJSONSourceData=function(re,pe){this._checkLoaded();var Oe=this.sourceCaches[re].getSource();Oe.setData(pe),this._changed=!0},K.prototype.getSource=function(re){return this.sourceCaches[re]&&this.sourceCaches[re].getSource()},K.prototype.addLayer=function(re,pe,Oe){Oe===void 0&&(Oe={}),this._checkLoaded();var Qe=re.id;if(this.getLayer(Qe)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+Qe+'" already exists on this map')));return}var ut;if(re.type==="custom"){if(pi(this,i.validateCustomStyleLayer(re)))return;ut=i.createStyleLayer(re)}else{if(typeof re.source=="object"&&(this.addSource(Qe,re.source),re=i.clone$1(re),re=i.extend(re,{source:Qe})),this._validate(i.validateStyle.layer,"layers."+Qe,re,{arrayIndex:-1},Oe))return;ut=i.createStyleLayer(re),this._validateLayer(ut),ut.setEventedParent(this,{layer:{id:Qe}}),this._serializedLayers[ut.id]=ut.serialize()}var Rt=pe?this._order.indexOf(pe):this._order.length;if(pe&&Rt===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+pe+'" does not exist on this map.')));return}if(this._order.splice(Rt,0,Qe),this._layerOrderChanged=!0,this._layers[Qe]=ut,this._removedLayers[Qe]&&ut.source&&ut.type!=="custom"){var Wt=this._removedLayers[Qe];delete this._removedLayers[Qe],Wt.type!==ut.type?this._updatedSources[ut.source]="clear":(this._updatedSources[ut.source]="reload",this.sourceCaches[ut.source].pause())}this._updateLayer(ut),ut.onAdd&&ut.onAdd(this.map)},K.prototype.moveLayer=function(re,pe){this._checkLoaded(),this._changed=!0;var Oe=this._layers[re];if(!Oe){this.fire(new i.ErrorEvent(new Error("The layer '"+re+"' does not exist in the map's style and cannot be moved.")));return}if(re!==pe){var Qe=this._order.indexOf(re);this._order.splice(Qe,1);var ut=pe?this._order.indexOf(pe):this._order.length;if(pe&&ut===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+pe+'" does not exist on this map.')));return}this._order.splice(ut,0,re),this._layerOrderChanged=!0}},K.prototype.removeLayer=function(re){this._checkLoaded();var pe=this._layers[re];if(!pe){this.fire(new i.ErrorEvent(new Error("The layer '"+re+"' does not exist in the map's style and cannot be removed.")));return}pe.setEventedParent(null);var Oe=this._order.indexOf(re);this._order.splice(Oe,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[re]=pe,delete this._layers[re],delete this._serializedLayers[re],delete this._updatedLayers[re],delete this._updatedPaintProps[re],pe.onRemove&&pe.onRemove(this.map)},K.prototype.getLayer=function(re){return this._layers[re]},K.prototype.hasLayer=function(re){return re in this._layers},K.prototype.setLayerZoomRange=function(re,pe,Oe){this._checkLoaded();var Qe=this.getLayer(re);if(!Qe){this.fire(new i.ErrorEvent(new Error("The layer '"+re+"' does not exist in the map's style and cannot have zoom extent.")));return}Qe.minzoom===pe&&Qe.maxzoom===Oe||(pe!=null&&(Qe.minzoom=pe),Oe!=null&&(Qe.maxzoom=Oe),this._updateLayer(Qe))},K.prototype.setFilter=function(re,pe,Oe){Oe===void 0&&(Oe={}),this._checkLoaded();var Qe=this.getLayer(re);if(!Qe){this.fire(new i.ErrorEvent(new Error("The layer '"+re+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(Qe.filter,pe)){if(pe==null){Qe.filter=void 0,this._updateLayer(Qe);return}this._validate(i.validateStyle.filter,"layers."+Qe.id+".filter",pe,null,Oe)||(Qe.filter=i.clone$1(pe),this._updateLayer(Qe))}},K.prototype.getFilter=function(re){return i.clone$1(this.getLayer(re).filter)},K.prototype.setLayoutProperty=function(re,pe,Oe,Qe){Qe===void 0&&(Qe={}),this._checkLoaded();var ut=this.getLayer(re);if(!ut){this.fire(new i.ErrorEvent(new Error("The layer '"+re+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(ut.getLayoutProperty(pe),Oe)||(ut.setLayoutProperty(pe,Oe,Qe),this._updateLayer(ut))},K.prototype.getLayoutProperty=function(re,pe){var Oe=this.getLayer(re);if(!Oe){this.fire(new i.ErrorEvent(new Error("The layer '"+re+"' does not exist in the map's style.")));return}return Oe.getLayoutProperty(pe)},K.prototype.setPaintProperty=function(re,pe,Oe,Qe){Qe===void 0&&(Qe={}),this._checkLoaded();var ut=this.getLayer(re);if(!ut){this.fire(new i.ErrorEvent(new Error("The layer '"+re+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(ut.getPaintProperty(pe),Oe)){var Rt=ut.setPaintProperty(pe,Oe,Qe);Rt&&this._updateLayer(ut),this._changed=!0,this._updatedPaintProps[re]=!0}},K.prototype.getPaintProperty=function(re,pe){return this.getLayer(re).getPaintProperty(pe)},K.prototype.setFeatureState=function(re,pe){this._checkLoaded();var Oe=re.source,Qe=re.sourceLayer,ut=this.sourceCaches[Oe];if(ut===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+Oe+"' does not exist in the map's style.")));return}var Rt=ut.getSource().type;if(Rt==="geojson"&&Qe){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Rt==="vector"&&!Qe){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}re.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ut.setFeatureState(Qe,re.id,pe)},K.prototype.removeFeatureState=function(re,pe){this._checkLoaded();var Oe=re.source,Qe=this.sourceCaches[Oe];if(Qe===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+Oe+"' does not exist in the map's style.")));return}var ut=Qe.getSource().type,Rt=ut==="vector"?re.sourceLayer:void 0;if(ut==="vector"&&!Rt){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(pe&&typeof re.id!="string"&&typeof re.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}Qe.removeFeatureState(Rt,re.id,pe)},K.prototype.getFeatureState=function(re){this._checkLoaded();var pe=re.source,Oe=re.sourceLayer,Qe=this.sourceCaches[pe];if(Qe===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+pe+"' does not exist in the map's style.")));return}var ut=Qe.getSource().type;if(ut==="vector"&&!Oe){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return re.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Qe.getFeatureState(Oe,re.id)},K.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},K.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(re){return re.serialize()}),layers:this._serializeLayers(this._order)},function(re){return re!==void 0})},K.prototype._updateLayer=function(re){this._updatedLayers[re.id]=!0,re.source&&!this._updatedSources[re.source]&&this.sourceCaches[re.source].getSource().type!=="raster"&&(this._updatedSources[re.source]="reload",this.sourceCaches[re.source].pause()),this._changed=!0},K.prototype._flattenAndSortRenderedFeatures=function(re){for(var pe=this,Oe=function(Fi){return pe._layers[Fi].type==="fill-extrusion"},Qe={},ut=[],Rt=this._order.length-1;Rt>=0;Rt--){var Wt=this._order[Rt];if(Oe(Wt)){Qe[Wt]=Rt;for(var qt=0,cr=re;qt=0;fn--){var Fn=this._order[fn];if(Oe(Fn))for(var Nn=ut.length-1;Nn>=0;Nn--){var Yn=ut[Nn].feature;if(Qe[Yn.layer.id] 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,du=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,wc=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Tc=`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Ac="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Vu=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Mc="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Sc=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Af=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Mf=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Ys=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,fl=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,zl=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`,kl=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Sf=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,vs=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Ec="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",pu=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Ef=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,_f=`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,gu=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,Uo=`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,cl=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Xs=ga(Qa,ol),Ol=ga(Nu,bf),Ls=ga($i,Fl),rs=ga(Bu,Xa),Gu=ga(ho,sl),hl=ga(vu,Ra),Ho=ga(ll,za),Ca=ga(Ua,ul),Wu=ga($a,qa),_c=ga(_o,wf),mu=ga(bo,xc),vl=ga(es,Za),dl=ga(Uu,Cs),wo=ga(ts,Hu),yu=ga(Tf,bc),pl=ga(du,wc),xu=ga(Tc,Ac),Cc=ga(Vu,Mc),Cf=ga(Sc,Af),Yu=ga(Mf,Ys),Xu=ga(fl,zl),Zu=ga(kl,Sf),ml=ga(vs,Ec),bu=ga(pu,Ef),Nl=ga(_f,gu),wu=ga(Uo,cl);function ga(he,K){var de=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,re=K.match(/attribute ([\w]+) ([\w]+)/g),pe=he.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Oe=K.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Qe=Oe?Oe.concat(pe):pe,ut={};return he=he.replace(de,function(Rt,Wt,qt,cr,lr){return ut[lr]=!0,Wt==="define"?` +#ifndef HAS_UNIFORM_u_`+lr+` +varying `+qt+" "+cr+" "+lr+`; +#else +uniform `+qt+" "+cr+" u_"+lr+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+lr+` + `+qt+" "+cr+" "+lr+" = u_"+lr+`; +#endif +`}),K=K.replace(de,function(Rt,Wt,qt,cr,lr){var Fr=cr==="float"?"vec2":"vec4",Xr=lr.match(/color/)?"color":Fr;return ut[lr]?Wt==="define"?` +#ifndef HAS_UNIFORM_u_`+lr+` +uniform lowp float u_`+lr+`_t; +attribute `+qt+" "+Fr+" a_"+lr+`; +varying `+qt+" "+cr+" "+lr+`; +#else +uniform `+qt+" "+cr+" u_"+lr+`; +#endif +`:Xr==="vec4"?` +#ifndef HAS_UNIFORM_u_`+lr+` + `+lr+" = a_"+lr+`; +#else + `+qt+" "+cr+" "+lr+" = u_"+lr+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+lr+` + `+lr+" = unpack_mix_"+Xr+"(a_"+lr+", u_"+lr+`_t); +#else + `+qt+" "+cr+" "+lr+" = u_"+lr+`; +#endif +`:Wt==="define"?` +#ifndef HAS_UNIFORM_u_`+lr+` +uniform lowp float u_`+lr+`_t; +attribute `+qt+" "+Fr+" a_"+lr+`; +#else +uniform `+qt+" "+cr+" u_"+lr+`; +#endif +`:Xr==="vec4"?` +#ifndef HAS_UNIFORM_u_`+lr+` + `+qt+" "+cr+" "+lr+" = a_"+lr+`; +#else + `+qt+" "+cr+" "+lr+" = u_"+lr+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+lr+` + `+qt+" "+cr+" "+lr+" = unpack_mix_"+Xr+"(a_"+lr+", u_"+lr+`_t); +#else + `+qt+" "+cr+" "+lr+" = u_"+lr+`; +#endif +`}),{fragmentSource:he,vertexSource:K,staticAttributes:re,staticUniforms:Qe}}var Lf=Object.freeze({__proto__:null,prelude:Xs,background:Ol,backgroundPattern:Ls,circle:rs,clippingMask:Gu,heatmap:hl,heatmapTexture:Ho,collisionBox:Ca,collisionCircle:Wu,debug:_c,fill:mu,fillOutline:vl,fillOutlinePattern:dl,fillPattern:wo,fillExtrusion:yu,fillExtrusionPattern:pl,hillshadePrepare:xu,hillshade:Cc,line:Cf,lineGradient:Yu,linePattern:Xu,lineSDF:Zu,raster:ml,symbolIcon:bu,symbolSDF:Nl,symbolTextAndIcon:wu}),Vo=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Vo.prototype.bind=function(K,de,re,pe,Oe,Qe,ut,Rt){this.context=K;for(var Wt=this.boundPaintVertexBuffers.length!==pe.length,qt=0;!Wt&&qt>16,ut>>16],u_pixel_coord_lower:[Qe&65535,ut&65535]}}function Ps(he,K,de,re){var pe=de.imageManager.getPattern(he.from.toString()),Oe=de.imageManager.getPattern(he.to.toString()),Qe=de.imageManager.getPixelSize(),ut=Qe.width,Rt=Qe.height,Wt=Math.pow(2,re.tileID.overscaledZ),qt=re.tileSize*Math.pow(2,de.transform.tileZoom)/Wt,cr=qt*(re.tileID.canonical.x+re.tileID.wrap*Wt),lr=qt*re.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:pe.tl,u_pattern_br_a:pe.br,u_pattern_tl_b:Oe.tl,u_pattern_br_b:Oe.br,u_texsize:[ut,Rt],u_mix:K.t,u_pattern_size_a:pe.displaySize,u_pattern_size_b:Oe.displaySize,u_scale_a:K.fromScale,u_scale_b:K.toScale,u_tile_units_to_pixels:1/dn(re,1,de.transform.tileZoom),u_pixel_coord_upper:[cr>>16,lr>>16],u_pixel_coord_lower:[cr&65535,lr&65535]}}var Tu=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_lightpos:new i.Uniform3f(he,K.u_lightpos),u_lightintensity:new i.Uniform1f(he,K.u_lightintensity),u_lightcolor:new i.Uniform3f(he,K.u_lightcolor),u_vertical_gradient:new i.Uniform1f(he,K.u_vertical_gradient),u_opacity:new i.Uniform1f(he,K.u_opacity)}},Da=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_lightpos:new i.Uniform3f(he,K.u_lightpos),u_lightintensity:new i.Uniform1f(he,K.u_lightintensity),u_lightcolor:new i.Uniform3f(he,K.u_lightcolor),u_vertical_gradient:new i.Uniform1f(he,K.u_vertical_gradient),u_height_factor:new i.Uniform1f(he,K.u_height_factor),u_image:new i.Uniform1i(he,K.u_image),u_texsize:new i.Uniform2f(he,K.u_texsize),u_pixel_coord_upper:new i.Uniform2f(he,K.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(he,K.u_pixel_coord_lower),u_scale:new i.Uniform3f(he,K.u_scale),u_fade:new i.Uniform1f(he,K.u_fade),u_opacity:new i.Uniform1f(he,K.u_opacity)}},Bl=function(he,K,de,re){var pe=K.style.light,Oe=pe.properties.get("position"),Qe=[Oe.x,Oe.y,Oe.z],ut=i.create$1();pe.properties.get("anchor")==="viewport"&&i.fromRotation(ut,-K.transform.angle),i.transformMat3(Qe,Qe,ut);var Rt=pe.properties.get("color");return{u_matrix:he,u_lightpos:Qe,u_lightintensity:pe.properties.get("intensity"),u_lightcolor:[Rt.r,Rt.g,Rt.b],u_vertical_gradient:+de,u_opacity:re}},Go=function(he,K,de,re,pe,Oe,Qe){return i.extend(Bl(he,K,de,re),Zs(Oe,K,Qe),{u_height_factor:-Math.pow(2,pe.overscaledZ)/Qe.tileSize/8})},ds=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix)}},js=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_image:new i.Uniform1i(he,K.u_image),u_texsize:new i.Uniform2f(he,K.u_texsize),u_pixel_coord_upper:new i.Uniform2f(he,K.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(he,K.u_pixel_coord_lower),u_scale:new i.Uniform3f(he,K.u_scale),u_fade:new i.Uniform1f(he,K.u_fade)}},Rs=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_world:new i.Uniform2f(he,K.u_world)}},Wo=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_world:new i.Uniform2f(he,K.u_world),u_image:new i.Uniform1i(he,K.u_image),u_texsize:new i.Uniform2f(he,K.u_texsize),u_pixel_coord_upper:new i.Uniform2f(he,K.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(he,K.u_pixel_coord_lower),u_scale:new i.Uniform3f(he,K.u_scale),u_fade:new i.Uniform1f(he,K.u_fade)}},ps=function(he){return{u_matrix:he}},Yo=function(he,K,de,re){return i.extend(ps(he),Zs(de,K,re))},Do=function(he,K){return{u_matrix:he,u_world:K}},Ul=function(he,K,de,re,pe){return i.extend(Yo(he,K,de,re),{u_world:pe})},Lc=function(he,K){return{u_camera_to_center_distance:new i.Uniform1f(he,K.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(he,K.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(he,K.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(he,K.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(he,K.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(he,K.u_matrix)}},Pc=function(he,K,de,re){var pe=he.transform,Oe,Qe;if(re.paint.get("circle-pitch-alignment")==="map"){var ut=dn(de,1,pe.zoom);Oe=!0,Qe=[ut,ut]}else Oe=!1,Qe=pe.pixelsToGLUnits;return{u_camera_to_center_distance:pe.cameraToCenterDistance,u_scale_with_map:+(re.paint.get("circle-pitch-scale")==="map"),u_matrix:he.translatePosMatrix(K.posMatrix,de,re.paint.get("circle-translate"),re.paint.get("circle-translate-anchor")),u_pitch_with_map:+Oe,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:Qe}},Rc=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_camera_to_center_distance:new i.Uniform1f(he,K.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(he,K.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(he,K.u_extrude_scale),u_overscale_factor:new i.Uniform1f(he,K.u_overscale_factor)}},Dc=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_inv_matrix:new i.UniformMatrix4f(he,K.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(he,K.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(he,K.u_viewport_size)}},Ku=function(he,K,de){var re=dn(de,1,K.zoom),pe=Math.pow(2,K.zoom-de.tileID.overscaledZ),Oe=de.tileID.overscaleFactor();return{u_matrix:he,u_camera_to_center_distance:K.cameraToCenterDistance,u_pixels_to_tile_units:re,u_extrude_scale:[K.pixelsToGLUnits[0]/(re*pe),K.pixelsToGLUnits[1]/(re*pe)],u_overscale_factor:Oe}},Rf=function(he,K,de){return{u_matrix:he,u_inv_matrix:K,u_camera_to_center_distance:de.cameraToCenterDistance,u_viewport_size:[de.width,de.height]}},yl=function(he,K){return{u_color:new i.UniformColor(he,K.u_color),u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_overlay:new i.Uniform1i(he,K.u_overlay),u_overlay_scale:new i.Uniform1f(he,K.u_overlay_scale)}},ja=function(he,K,de){return de===void 0&&(de=1),{u_matrix:he,u_color:K,u_overlay:0,u_overlay_scale:de}},Co=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix)}},xl=function(he){return{u_matrix:he}},Df=function(he,K){return{u_extrude_scale:new i.Uniform1f(he,K.u_extrude_scale),u_intensity:new i.Uniform1f(he,K.u_intensity),u_matrix:new i.UniformMatrix4f(he,K.u_matrix)}},Hl=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_world:new i.Uniform2f(he,K.u_world),u_image:new i.Uniform1i(he,K.u_image),u_color_ramp:new i.Uniform1i(he,K.u_color_ramp),u_opacity:new i.Uniform1f(he,K.u_opacity)}},gs=function(he,K,de,re){return{u_matrix:he,u_extrude_scale:dn(K,1,de),u_intensity:re}},Ic=function(he,K,de,re){var pe=i.create();i.ortho(pe,0,he.width,he.height,0,0,1);var Oe=he.context.gl;return{u_matrix:pe,u_world:[Oe.drawingBufferWidth,Oe.drawingBufferHeight],u_image:de,u_color_ramp:re,u_opacity:K.paint.get("heatmap-opacity")}},If=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_image:new i.Uniform1i(he,K.u_image),u_latrange:new i.Uniform2f(he,K.u_latrange),u_light:new i.Uniform2f(he,K.u_light),u_shadow:new i.UniformColor(he,K.u_shadow),u_highlight:new i.UniformColor(he,K.u_highlight),u_accent:new i.UniformColor(he,K.u_accent)}},Ff=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_image:new i.Uniform1i(he,K.u_image),u_dimension:new i.Uniform2f(he,K.u_dimension),u_zoom:new i.Uniform1f(he,K.u_zoom),u_unpack:new i.Uniform4f(he,K.u_unpack)}},Ju=function(he,K,de){var re=de.paint.get("hillshade-shadow-color"),pe=de.paint.get("hillshade-highlight-color"),Oe=de.paint.get("hillshade-accent-color"),Qe=de.paint.get("hillshade-illumination-direction")*(Math.PI/180);de.paint.get("hillshade-illumination-anchor")==="viewport"&&(Qe-=he.transform.angle);var ut=!he.options.moving;return{u_matrix:he.transform.calculatePosMatrix(K.tileID.toUnwrapped(),ut),u_image:0,u_latrange:vo(he,K.tileID),u_light:[de.paint.get("hillshade-exaggeration"),Qe],u_shadow:re,u_highlight:pe,u_accent:Oe}},zf=function(he,K){var de=K.stride,re=i.create();return i.ortho(re,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(re,re,[0,-i.EXTENT,0]),{u_matrix:re,u_image:1,u_dimension:[de,de],u_zoom:he.overscaledZ,u_unpack:K.getUnpackVector()}};function vo(he,K){var de=Math.pow(2,K.canonical.z),re=K.canonical.y;return[new i.MercatorCoordinate(0,re/de).toLngLat().lat,new i.MercatorCoordinate(0,(re+1)/de).toLngLat().lat]}var Xo=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_ratio:new i.Uniform1f(he,K.u_ratio),u_device_pixel_ratio:new i.Uniform1f(he,K.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(he,K.u_units_to_pixels)}},Ds=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_ratio:new i.Uniform1f(he,K.u_ratio),u_device_pixel_ratio:new i.Uniform1f(he,K.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(he,K.u_units_to_pixels),u_image:new i.Uniform1i(he,K.u_image),u_image_height:new i.Uniform1f(he,K.u_image_height)}},bl=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_texsize:new i.Uniform2f(he,K.u_texsize),u_ratio:new i.Uniform1f(he,K.u_ratio),u_device_pixel_ratio:new i.Uniform1f(he,K.u_device_pixel_ratio),u_image:new i.Uniform1i(he,K.u_image),u_units_to_pixels:new i.Uniform2f(he,K.u_units_to_pixels),u_scale:new i.Uniform3f(he,K.u_scale),u_fade:new i.Uniform1f(he,K.u_fade)}},Au=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_ratio:new i.Uniform1f(he,K.u_ratio),u_device_pixel_ratio:new i.Uniform1f(he,K.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(he,K.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(he,K.u_patternscale_a),u_patternscale_b:new i.Uniform2f(he,K.u_patternscale_b),u_sdfgamma:new i.Uniform1f(he,K.u_sdfgamma),u_image:new i.Uniform1i(he,K.u_image),u_tex_y_a:new i.Uniform1f(he,K.u_tex_y_a),u_tex_y_b:new i.Uniform1f(he,K.u_tex_y_b),u_mix:new i.Uniform1f(he,K.u_mix)}},Ks=function(he,K,de){var re=he.transform;return{u_matrix:Is(he,K,de),u_ratio:1/dn(K,1,re.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/re.pixelsToGLUnits[0],1/re.pixelsToGLUnits[1]]}},Js=function(he,K,de,re){return i.extend(Ks(he,K,de),{u_image:0,u_image_height:re})},kf=function(he,K,de,re){var pe=he.transform,Oe=wl(K,pe);return{u_matrix:Is(he,K,de),u_texsize:K.imageAtlasTexture.size,u_ratio:1/dn(K,1,pe.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[Oe,re.fromScale,re.toScale],u_fade:re.t,u_units_to_pixels:[1/pe.pixelsToGLUnits[0],1/pe.pixelsToGLUnits[1]]}},ms=function(he,K,de,re,pe){var Oe=he.transform,Qe=he.lineAtlas,ut=wl(K,Oe),Rt=de.layout.get("line-cap")==="round",Wt=Qe.getDash(re.from,Rt),qt=Qe.getDash(re.to,Rt),cr=Wt.width*pe.fromScale,lr=qt.width*pe.toScale;return i.extend(Ks(he,K,de),{u_patternscale_a:[ut/cr,-Wt.height/2],u_patternscale_b:[ut/lr,-qt.height/2],u_sdfgamma:Qe.width/(Math.min(cr,lr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Wt.y,u_tex_y_b:qt.y,u_mix:pe.t})};function wl(he,K){return 1/dn(he,1,K.tileZoom)}function Is(he,K,de){return he.translatePosMatrix(K.tileID.posMatrix,K,de.paint.get("line-translate"),de.paint.get("line-translate-anchor"))}var ys=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_tl_parent:new i.Uniform2f(he,K.u_tl_parent),u_scale_parent:new i.Uniform1f(he,K.u_scale_parent),u_buffer_scale:new i.Uniform1f(he,K.u_buffer_scale),u_fade_t:new i.Uniform1f(he,K.u_fade_t),u_opacity:new i.Uniform1f(he,K.u_opacity),u_image0:new i.Uniform1i(he,K.u_image0),u_image1:new i.Uniform1i(he,K.u_image1),u_brightness_low:new i.Uniform1f(he,K.u_brightness_low),u_brightness_high:new i.Uniform1f(he,K.u_brightness_high),u_saturation_factor:new i.Uniform1f(he,K.u_saturation_factor),u_contrast_factor:new i.Uniform1f(he,K.u_contrast_factor),u_spin_weights:new i.Uniform3f(he,K.u_spin_weights)}},Vl=function(he,K,de,re,pe){return{u_matrix:he,u_tl_parent:K,u_scale_parent:de,u_buffer_scale:1,u_fade_t:re.mix,u_opacity:re.opacity*pe.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:pe.paint.get("raster-brightness-min"),u_brightness_high:pe.paint.get("raster-brightness-max"),u_saturation_factor:Al(pe.paint.get("raster-saturation")),u_contrast_factor:ha(pe.paint.get("raster-contrast")),u_spin_weights:Tl(pe.paint.get("raster-hue-rotate"))}};function Tl(he){he*=Math.PI/180;var K=Math.sin(he),de=Math.cos(he);return[(2*de+1)/3,(-Math.sqrt(3)*K-de+1)/3,(Math.sqrt(3)*K-de+1)/3]}function ha(he){return he>0?1/(1-he):1+he}function Al(he){return he>0?1-1/(1.001-he):-he}var Mu=function(he,K){return{u_is_size_zoom_constant:new i.Uniform1i(he,K.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(he,K.u_is_size_feature_constant),u_size_t:new i.Uniform1f(he,K.u_size_t),u_size:new i.Uniform1f(he,K.u_size),u_camera_to_center_distance:new i.Uniform1f(he,K.u_camera_to_center_distance),u_pitch:new i.Uniform1f(he,K.u_pitch),u_rotate_symbol:new i.Uniform1i(he,K.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(he,K.u_aspect_ratio),u_fade_change:new i.Uniform1f(he,K.u_fade_change),u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(he,K.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(he,K.u_coord_matrix),u_is_text:new i.Uniform1i(he,K.u_is_text),u_pitch_with_map:new i.Uniform1i(he,K.u_pitch_with_map),u_texsize:new i.Uniform2f(he,K.u_texsize),u_texture:new i.Uniform1i(he,K.u_texture)}},Of=function(he,K){return{u_is_size_zoom_constant:new i.Uniform1i(he,K.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(he,K.u_is_size_feature_constant),u_size_t:new i.Uniform1f(he,K.u_size_t),u_size:new i.Uniform1f(he,K.u_size),u_camera_to_center_distance:new i.Uniform1f(he,K.u_camera_to_center_distance),u_pitch:new i.Uniform1f(he,K.u_pitch),u_rotate_symbol:new i.Uniform1i(he,K.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(he,K.u_aspect_ratio),u_fade_change:new i.Uniform1f(he,K.u_fade_change),u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(he,K.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(he,K.u_coord_matrix),u_is_text:new i.Uniform1i(he,K.u_is_text),u_pitch_with_map:new i.Uniform1i(he,K.u_pitch_with_map),u_texsize:new i.Uniform2f(he,K.u_texsize),u_texture:new i.Uniform1i(he,K.u_texture),u_gamma_scale:new i.Uniform1f(he,K.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(he,K.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(he,K.u_is_halo)}},Ml=function(he,K){return{u_is_size_zoom_constant:new i.Uniform1i(he,K.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(he,K.u_is_size_feature_constant),u_size_t:new i.Uniform1f(he,K.u_size_t),u_size:new i.Uniform1f(he,K.u_size),u_camera_to_center_distance:new i.Uniform1f(he,K.u_camera_to_center_distance),u_pitch:new i.Uniform1f(he,K.u_pitch),u_rotate_symbol:new i.Uniform1i(he,K.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(he,K.u_aspect_ratio),u_fade_change:new i.Uniform1f(he,K.u_fade_change),u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(he,K.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(he,K.u_coord_matrix),u_is_text:new i.Uniform1i(he,K.u_is_text),u_pitch_with_map:new i.Uniform1i(he,K.u_pitch_with_map),u_texsize:new i.Uniform2f(he,K.u_texsize),u_texsize_icon:new i.Uniform2f(he,K.u_texsize_icon),u_texture:new i.Uniform1i(he,K.u_texture),u_texture_icon:new i.Uniform1i(he,K.u_texture_icon),u_gamma_scale:new i.Uniform1f(he,K.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(he,K.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(he,K.u_is_halo)}},Gl=function(he,K,de,re,pe,Oe,Qe,ut,Rt,Wt){var qt=pe.transform;return{u_is_size_zoom_constant:+(he==="constant"||he==="source"),u_is_size_feature_constant:+(he==="constant"||he==="camera"),u_size_t:K?K.uSizeT:0,u_size:K?K.uSize:0,u_camera_to_center_distance:qt.cameraToCenterDistance,u_pitch:qt.pitch/360*2*Math.PI,u_rotate_symbol:+de,u_aspect_ratio:qt.width/qt.height,u_fade_change:pe.options.fadeDuration?pe.symbolFadeChange:1,u_matrix:Oe,u_label_plane_matrix:Qe,u_coord_matrix:ut,u_is_text:+Rt,u_pitch_with_map:+re,u_texsize:Wt,u_texture:0}},Su=function(he,K,de,re,pe,Oe,Qe,ut,Rt,Wt,qt){var cr=pe.transform;return i.extend(Gl(he,K,de,re,pe,Oe,Qe,ut,Rt,Wt),{u_gamma_scale:re?Math.cos(cr._pitch)*cr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+qt})},Qu=function(he,K,de,re,pe,Oe,Qe,ut,Rt,Wt){return i.extend(Su(he,K,de,re,pe,Oe,Qe,ut,!0,Rt,!0),{u_texsize_icon:Wt,u_texture_icon:1})},Wl=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_opacity:new i.Uniform1f(he,K.u_opacity),u_color:new i.UniformColor(he,K.u_color)}},Yl=function(he,K){return{u_matrix:new i.UniformMatrix4f(he,K.u_matrix),u_opacity:new i.Uniform1f(he,K.u_opacity),u_image:new i.Uniform1i(he,K.u_image),u_pattern_tl_a:new i.Uniform2f(he,K.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(he,K.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(he,K.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(he,K.u_pattern_br_b),u_texsize:new i.Uniform2f(he,K.u_texsize),u_mix:new i.Uniform1f(he,K.u_mix),u_pattern_size_a:new i.Uniform2f(he,K.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(he,K.u_pattern_size_b),u_scale_a:new i.Uniform1f(he,K.u_scale_a),u_scale_b:new i.Uniform1f(he,K.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(he,K.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(he,K.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(he,K.u_tile_units_to_pixels)}},Fs=function(he,K,de){return{u_matrix:he,u_opacity:K,u_color:de}},Xl=function(he,K,de,re,pe,Oe){return i.extend(Ps(re,Oe,de,pe),{u_matrix:he,u_opacity:K})},zs={fillExtrusion:Tu,fillExtrusionPattern:Da,fill:ds,fillPattern:js,fillOutline:Rs,fillOutlinePattern:Wo,circle:Lc,collisionBox:Rc,collisionCircle:Dc,debug:yl,clippingMask:Co,heatmap:Df,heatmapTexture:Hl,hillshade:If,hillshadePrepare:Ff,line:Xo,lineGradient:Ds,linePattern:bl,lineSDF:Au,raster:ys,symbolIcon:Mu,symbolSDF:Of,symbolTextAndIcon:Ml,background:Wl,backgroundPattern:Yl},Ha;function ns(he,K,de,re,pe,Oe,Qe){for(var ut=he.context,Rt=ut.gl,Wt=he.useProgram("collisionBox"),qt=[],cr=0,lr=0,Fr=0;Fr0){var Nn=i.create(),Yn=Kr;i.mul(Nn,Vr.placementInvProjMatrix,he.transform.glCoordMatrix),i.mul(Nn,Nn,Vr.placementViewportMatrix),qt.push({circleArray:Fn,circleOffset:lr,transform:Yn,invTransform:Nn}),cr+=Fn.length/4,lr=cr}fn&&Wt.draw(ut,Rt.LINES,ir.disabled,Kt.disabled,he.colorModeForRenderPass(),It.disabled,Ku(Kr,he.transform,Yr),de.id,fn.layoutVertexBuffer,fn.indexBuffer,fn.segments,null,he.transform.zoom,null,null,fn.collisionVertexBuffer)}}if(!(!Qe||!qt.length)){var Xn=he.useProgram("collisionCircle"),Gn=new i.StructArrayLayout2f1f2i16;Gn.resize(cr*4),Gn._trim();for(var jn=0,ei=0,si=qt;ei=0&&(Xr[Vr.associatedIconIndex]={shiftedAnchor:Fi,angle:Ji})}}if(qt){Fr.clear();for(var Ai=he.icon.placedSymbolArray,Yi=0;Yi0){var Qe=i.browser.now(),ut=(Qe-he.timeAdded)/Oe,Rt=K?(Qe-K.timeAdded)/Oe:-1,Wt=de.getSource(),qt=pe.coveringZoomLevel({tileSize:Wt.tileSize,roundZoom:Wt.roundZoom}),cr=!K||Math.abs(K.tileID.overscaledZ-qt)>Math.abs(he.tileID.overscaledZ-qt),lr=cr&&he.refreshedUponExpiration?1:i.clamp(cr?ut:1-Rt,0,1);return he.refreshedUponExpiration&&ut>=1&&(he.refreshedUponExpiration=!1),K?{opacity:1,mix:1-lr}:{opacity:lr,mix:0}}else return{opacity:1,mix:0}}function $s(he,K,de){var re=de.paint.get("background-color"),pe=de.paint.get("background-opacity");if(pe!==0){var Oe=he.context,Qe=Oe.gl,ut=he.transform,Rt=ut.tileSize,Wt=de.paint.get("background-pattern");if(!he.isPatternMissing(Wt)){var qt=!Wt&&re.a===1&&pe===1&&he.opaquePassEnabledForLayer()?"opaque":"translucent";if(he.renderPass===qt){var cr=Kt.disabled,lr=he.depthModeForSublayer(0,qt==="opaque"?ir.ReadWrite:ir.ReadOnly),Fr=he.colorModeForRenderPass(),Xr=he.useProgram(Wt?"backgroundPattern":"background"),Yr=ut.coveringTiles({tileSize:Rt});Wt&&(Oe.activeTexture.set(Qe.TEXTURE0),he.imageManager.bind(he.context));for(var Vr=de.getCrossfadeParameters(),Kr=0,fn=Yr;Kr "+de.overscaledZ);var Kr=Vr+" "+Fr+"kb";sr(he,Kr),Qe.draw(re,pe.TRIANGLES,ut,Rt,st.alphaBlended,It.disabled,ja(Oe,i.Color.transparent,Yr),qt,he.debugBuffer,he.quadTriangleIndexBuffer,he.debugSegments)}function sr(he,K){he.initDebugOverlayCanvas();var de=he.debugOverlayCanvas,re=he.context.gl,pe=he.debugOverlayCanvas.getContext("2d");pe.clearRect(0,0,de.width,de.height),pe.shadowColor="white",pe.shadowBlur=2,pe.lineWidth=1.5,pe.strokeStyle="white",pe.textBaseline="top",pe.font="bold 36px Open Sans, sans-serif",pe.fillText(K,5,5),pe.strokeText(K,5,5),he.debugOverlayTexture.update(de),he.debugOverlayTexture.bind(re.LINEAR,re.CLAMP_TO_EDGE)}function Mr(he,K,de){var re=he.context,pe=de.implementation;if(he.renderPass==="offscreen"){var Oe=pe.prerender;Oe&&(he.setCustomLayerDefaults(),re.setColorMode(he.colorModeForRenderPass()),Oe.call(pe,re.gl,he.transform.customLayerMatrix()),re.setDirty(),he.setBaseState())}else if(he.renderPass==="translucent"){he.setCustomLayerDefaults(),re.setColorMode(he.colorModeForRenderPass()),re.setStencilMode(Kt.disabled);var Qe=pe.renderingMode==="3d"?new ir(he.context.gl.LEQUAL,ir.ReadWrite,he.depthRangeFor3D):he.depthModeForSublayer(0,ir.ReadOnly);re.setDepthMode(Qe),pe.render(re.gl,he.transform.customLayerMatrix()),re.setDirty(),he.setBaseState(),re.bindFramebuffer.set(null)}}var Ir={symbol:Eu,circle:Bf,heatmap:ks,line:_u,fill:xs,"fill-extrusion":qu,hillshade:Ql,raster:$l,background:$s,debug:gr,custom:Mr},Nr=function(K,de){this.context=new Pt(K),this.transform=de,this._tileTextures={},this.setup(),this.numSublayers=kt.maxUnderzooming+kt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new ai,this.gpuTimers={}};Nr.prototype.resize=function(K,de){if(this.width=K*i.browser.devicePixelRatio,this.height=de*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var re=0,pe=this.style._order;re256&&this.clearStencil(),re.setColorMode(st.disabled),re.setDepthMode(ir.disabled);var Oe=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Qe=0,ut=de;Qe256&&this.clearStencil();var K=this.nextStencilID++,de=this.context.gl;return new Kt({func:de.NOTEQUAL,mask:255},K,255,de.KEEP,de.KEEP,de.REPLACE)},Nr.prototype.stencilModeForClipping=function(K){var de=this.context.gl;return new Kt({func:de.EQUAL,mask:255},this._tileClippingMaskIDs[K.key],0,de.KEEP,de.KEEP,de.REPLACE)},Nr.prototype.stencilConfigForOverlap=function(K){var de,re=this.context.gl,pe=K.sort(function(Wt,qt){return qt.overscaledZ-Wt.overscaledZ}),Oe=pe[pe.length-1].overscaledZ,Qe=pe[0].overscaledZ-Oe+1;if(Qe>1){this.currentStencilSource=void 0,this.nextStencilID+Qe>256&&this.clearStencil();for(var ut={},Rt=0;Rt=0;this.currentLayer--){var Nn=this.style._layers[pe[this.currentLayer]],Yn=Oe[Nn.source],Xn=Rt[Nn.source];this._renderTileClippingMasks(Nn,Xn),this.renderLayer(this,Yn,Nn,Xn)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?de.pop():null},Nr.prototype.isPatternMissing=function(K){if(!K)return!1;if(!K.from||!K.to)return!0;var de=this.imageManager.getPattern(K.from.toString()),re=this.imageManager.getPattern(K.to.toString());return!de||!re},Nr.prototype.useProgram=function(K,de){this.cache=this.cache||{};var re=""+K+(de?de.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[re]||(this.cache[re]=new ju(this.context,K,Lf[K],de,zs[K],this._showOverdrawInspector)),this.cache[re]},Nr.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Nr.prototype.setBaseState=function(){var K=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(K.FUNC_ADD)},Nr.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var K=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,K.RGBA)}},Nr.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var tn=function(K,de){this.points=K,this.planes=de};tn.fromInvProjectionMatrix=function(K,de,re){var pe=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],Oe=Math.pow(2,re),Qe=pe.map(function(Wt){return i.transformMat4([],Wt,K)}).map(function(Wt){return i.scale$1([],Wt,1/Wt[3]/de*Oe)}),ut=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Rt=ut.map(function(Wt){var qt=i.sub([],Qe[Wt[0]],Qe[Wt[1]]),cr=i.sub([],Qe[Wt[2]],Qe[Wt[1]]),lr=i.normalize([],i.cross([],qt,cr)),Fr=-i.dot(lr,Qe[Wt[1]]);return lr.concat(Fr)});return new tn(Qe,Rt)};var yn=function(K,de){this.min=K,this.max=de,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};yn.prototype.quadrant=function(K){for(var de=[K%2===0,K<2],re=i.clone$2(this.min),pe=i.clone$2(this.max),Oe=0;Oe=0;if(Qe===0)return 0;Qe!==de.length&&(re=!1)}if(re)return 2;for(var Rt=0;Rt<3;Rt++){for(var Wt=Number.MAX_VALUE,qt=-Number.MAX_VALUE,cr=0;crthis.max[Rt]-this.min[Rt])return 0}return 1};var Rn=function(K,de,re,pe){if(K===void 0&&(K=0),de===void 0&&(de=0),re===void 0&&(re=0),pe===void 0&&(pe=0),isNaN(K)||K<0||isNaN(de)||de<0||isNaN(re)||re<0||isNaN(pe)||pe<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=K,this.bottom=de,this.left=re,this.right=pe};Rn.prototype.interpolate=function(K,de,re){return de.top!=null&&K.top!=null&&(this.top=i.number(K.top,de.top,re)),de.bottom!=null&&K.bottom!=null&&(this.bottom=i.number(K.bottom,de.bottom,re)),de.left!=null&&K.left!=null&&(this.left=i.number(K.left,de.left,re)),de.right!=null&&K.right!=null&&(this.right=i.number(K.right,de.right,re)),this},Rn.prototype.getCenter=function(K,de){var re=i.clamp((this.left+K-this.right)/2,0,K),pe=i.clamp((this.top+de-this.bottom)/2,0,de);return new i.Point(re,pe)},Rn.prototype.equals=function(K){return this.top===K.top&&this.bottom===K.bottom&&this.left===K.left&&this.right===K.right},Rn.prototype.clone=function(){return new Rn(this.top,this.bottom,this.left,this.right)},Rn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Dn=function(K,de,re,pe,Oe){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Oe===void 0?!0:Oe,this._minZoom=K||0,this._maxZoom=de||22,this._minPitch=re??0,this._maxPitch=pe??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Rn,this._posMatrixCache={},this._alignedPosMatrixCache={}},Zn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Dn.prototype.clone=function(){var K=new Dn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return K.tileSize=this.tileSize,K.latRange=this.latRange,K.width=this.width,K.height=this.height,K._center=this._center,K.zoom=this.zoom,K.angle=this.angle,K._fov=this._fov,K._pitch=this._pitch,K._unmodified=this._unmodified,K._edgeInsets=this._edgeInsets.clone(),K._calcMatrices(),K},Zn.minZoom.get=function(){return this._minZoom},Zn.minZoom.set=function(he){this._minZoom!==he&&(this._minZoom=he,this.zoom=Math.max(this.zoom,he))},Zn.maxZoom.get=function(){return this._maxZoom},Zn.maxZoom.set=function(he){this._maxZoom!==he&&(this._maxZoom=he,this.zoom=Math.min(this.zoom,he))},Zn.minPitch.get=function(){return this._minPitch},Zn.minPitch.set=function(he){this._minPitch!==he&&(this._minPitch=he,this.pitch=Math.max(this.pitch,he))},Zn.maxPitch.get=function(){return this._maxPitch},Zn.maxPitch.set=function(he){this._maxPitch!==he&&(this._maxPitch=he,this.pitch=Math.min(this.pitch,he))},Zn.renderWorldCopies.get=function(){return this._renderWorldCopies},Zn.renderWorldCopies.set=function(he){he===void 0?he=!0:he===null&&(he=!1),this._renderWorldCopies=he},Zn.worldSize.get=function(){return this.tileSize*this.scale},Zn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Zn.size.get=function(){return new i.Point(this.width,this.height)},Zn.bearing.get=function(){return-this.angle/Math.PI*180},Zn.bearing.set=function(he){var K=-i.wrap(he,-180,180)*Math.PI/180;this.angle!==K&&(this._unmodified=!1,this.angle=K,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Zn.pitch.get=function(){return this._pitch/Math.PI*180},Zn.pitch.set=function(he){var K=i.clamp(he,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==K&&(this._unmodified=!1,this._pitch=K,this._calcMatrices())},Zn.fov.get=function(){return this._fov/Math.PI*180},Zn.fov.set=function(he){he=Math.max(.01,Math.min(60,he)),this._fov!==he&&(this._unmodified=!1,this._fov=he/180*Math.PI,this._calcMatrices())},Zn.zoom.get=function(){return this._zoom},Zn.zoom.set=function(he){var K=Math.min(Math.max(he,this.minZoom),this.maxZoom);this._zoom!==K&&(this._unmodified=!1,this._zoom=K,this.scale=this.zoomScale(K),this.tileZoom=Math.floor(K),this.zoomFraction=K-this.tileZoom,this._constrain(),this._calcMatrices())},Zn.center.get=function(){return this._center},Zn.center.set=function(he){he.lat===this._center.lat&&he.lng===this._center.lng||(this._unmodified=!1,this._center=he,this._constrain(),this._calcMatrices())},Zn.padding.get=function(){return this._edgeInsets.toJSON()},Zn.padding.set=function(he){this._edgeInsets.equals(he)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,he,1),this._calcMatrices())},Zn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Dn.prototype.isPaddingEqual=function(K){return this._edgeInsets.equals(K)},Dn.prototype.interpolatePadding=function(K,de,re){this._unmodified=!1,this._edgeInsets.interpolate(K,de,re),this._constrain(),this._calcMatrices()},Dn.prototype.coveringZoomLevel=function(K){var de=(K.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/K.tileSize));return Math.max(0,de)},Dn.prototype.getVisibleUnwrappedCoordinates=function(K){var de=[new i.UnwrappedTileID(0,K)];if(this._renderWorldCopies)for(var re=this.pointCoordinate(new i.Point(0,0)),pe=this.pointCoordinate(new i.Point(this.width,0)),Oe=this.pointCoordinate(new i.Point(this.width,this.height)),Qe=this.pointCoordinate(new i.Point(0,this.height)),ut=Math.floor(Math.min(re.x,pe.x,Oe.x,Qe.x)),Rt=Math.floor(Math.max(re.x,pe.x,Oe.x,Qe.x)),Wt=1,qt=ut-Wt;qt<=Rt+Wt;qt++)qt!==0&&de.push(new i.UnwrappedTileID(qt,K));return de},Dn.prototype.coveringTiles=function(K){var de=this.coveringZoomLevel(K),re=de;if(K.minzoom!==void 0&&deK.maxzoom&&(de=K.maxzoom);var pe=i.MercatorCoordinate.fromLngLat(this.center),Oe=Math.pow(2,de),Qe=[Oe*pe.x,Oe*pe.y,0],ut=tn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,de),Rt=K.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Rt=de);var Wt=3,qt=function(hi){return{aabb:new yn([hi*Oe,0,0],[(hi+1)*Oe,Oe,0]),zoom:0,x:0,y:0,wrap:hi,fullyVisible:!1}},cr=[],lr=[],Fr=de,Xr=K.reparseOverscaled?re:de;if(this._renderWorldCopies)for(var Yr=1;Yr<=3;Yr++)cr.push(qt(-Yr)),cr.push(qt(Yr));for(cr.push(qt(0));cr.length>0;){var Vr=cr.pop(),Kr=Vr.x,fn=Vr.y,Fn=Vr.fullyVisible;if(!Fn){var Nn=Vr.aabb.intersects(ut);if(Nn===0)continue;Fn=Nn===2}var Yn=Vr.aabb.distanceX(Qe),Xn=Vr.aabb.distanceY(Qe),Gn=Math.max(Math.abs(Yn),Math.abs(Xn)),jn=Wt+(1<jn&&Vr.zoom>=Rt){lr.push({tileID:new i.OverscaledTileID(Vr.zoom===Fr?Xr:Vr.zoom,Vr.wrap,Vr.zoom,Kr,fn),distanceSq:i.sqrLen([Qe[0]-.5-Kr,Qe[1]-.5-fn])});continue}for(var ei=0;ei<4;ei++){var si=(Kr<<1)+ei%2,yi=(fn<<1)+(ei>>1);cr.push({aabb:Vr.aabb.quadrant(ei),zoom:Vr.zoom+1,x:si,y:yi,wrap:Vr.wrap,fullyVisible:Fn})}}return lr.sort(function(hi,Fi){return hi.distanceSq-Fi.distanceSq}).map(function(hi){return hi.tileID})},Dn.prototype.resize=function(K,de){this.width=K,this.height=de,this.pixelsToGLUnits=[2/K,-2/de],this._constrain(),this._calcMatrices()},Zn.unmodified.get=function(){return this._unmodified},Dn.prototype.zoomScale=function(K){return Math.pow(2,K)},Dn.prototype.scaleZoom=function(K){return Math.log(K)/Math.LN2},Dn.prototype.project=function(K){var de=i.clamp(K.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(K.lng)*this.worldSize,i.mercatorYfromLat(de)*this.worldSize)},Dn.prototype.unproject=function(K){return new i.MercatorCoordinate(K.x/this.worldSize,K.y/this.worldSize).toLngLat()},Zn.point.get=function(){return this.project(this.center)},Dn.prototype.setLocationAtPoint=function(K,de){var re=this.pointCoordinate(de),pe=this.pointCoordinate(this.centerPoint),Oe=this.locationCoordinate(K),Qe=new i.MercatorCoordinate(Oe.x-(re.x-pe.x),Oe.y-(re.y-pe.y));this.center=this.coordinateLocation(Qe),this._renderWorldCopies&&(this.center=this.center.wrap())},Dn.prototype.locationPoint=function(K){return this.coordinatePoint(this.locationCoordinate(K))},Dn.prototype.pointLocation=function(K){return this.coordinateLocation(this.pointCoordinate(K))},Dn.prototype.locationCoordinate=function(K){return i.MercatorCoordinate.fromLngLat(K)},Dn.prototype.coordinateLocation=function(K){return K.toLngLat()},Dn.prototype.pointCoordinate=function(K){var de=0,re=[K.x,K.y,0,1],pe=[K.x,K.y,1,1];i.transformMat4(re,re,this.pixelMatrixInverse),i.transformMat4(pe,pe,this.pixelMatrixInverse);var Oe=re[3],Qe=pe[3],ut=re[0]/Oe,Rt=pe[0]/Qe,Wt=re[1]/Oe,qt=pe[1]/Qe,cr=re[2]/Oe,lr=pe[2]/Qe,Fr=cr===lr?0:(de-cr)/(lr-cr);return new i.MercatorCoordinate(i.number(ut,Rt,Fr)/this.worldSize,i.number(Wt,qt,Fr)/this.worldSize)},Dn.prototype.coordinatePoint=function(K){var de=[K.x*this.worldSize,K.y*this.worldSize,0,1];return i.transformMat4(de,de,this.pixelMatrix),new i.Point(de[0]/de[3],de[1]/de[3])},Dn.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Dn.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},Dn.prototype.setMaxBounds=function(K){K?(this.lngRange=[K.getWest(),K.getEast()],this.latRange=[K.getSouth(),K.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Dn.prototype.calculatePosMatrix=function(K,de){de===void 0&&(de=!1);var re=K.key,pe=de?this._alignedPosMatrixCache:this._posMatrixCache;if(pe[re])return pe[re];var Oe=K.canonical,Qe=this.worldSize/this.zoomScale(Oe.z),ut=Oe.x+Math.pow(2,Oe.z)*K.wrap,Rt=i.identity(new Float64Array(16));return i.translate(Rt,Rt,[ut*Qe,Oe.y*Qe,0]),i.scale(Rt,Rt,[Qe/i.EXTENT,Qe/i.EXTENT,1]),i.multiply(Rt,de?this.alignedProjMatrix:this.projMatrix,Rt),pe[re]=new Float32Array(Rt),pe[re]},Dn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Dn.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var K=-90,de=90,re=-180,pe=180,Oe,Qe,ut,Rt,Wt=this.size,qt=this._unmodified;if(this.latRange){var cr=this.latRange;K=i.mercatorYfromLat(cr[1])*this.worldSize,de=i.mercatorYfromLat(cr[0])*this.worldSize,Oe=de-Kde&&(Rt=de-Vr)}if(this.lngRange){var Kr=Fr.x,fn=Wt.x/2;Kr-fnpe&&(ut=pe-fn)}(ut!==void 0||Rt!==void 0)&&(this.center=this.unproject(new i.Point(ut!==void 0?ut:Fr.x,Rt!==void 0?Rt:Fr.y))),this._unmodified=qt,this._constraining=!1}},Dn.prototype._calcMatrices=function(){if(this.height){var K=this._fov/2,de=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(K)*this.height;var re=Math.PI/2+this._pitch,pe=this._fov*(.5+de.y/this.height),Oe=Math.sin(pe)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-re-pe,.01,Math.PI-.01)),Qe=this.point,ut=Qe.x,Rt=Qe.y,Wt=Math.cos(Math.PI/2-this._pitch)*Oe+this.cameraToCenterDistance,qt=Wt*1.01,cr=this.height/50,lr=new Float64Array(16);i.perspective(lr,this._fov,this.width/this.height,cr,qt),lr[8]=-de.x*2/this.width,lr[9]=de.y*2/this.height,i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[0,0,-this.cameraToCenterDistance]),i.rotateX(lr,lr,this._pitch),i.rotateZ(lr,lr,this.angle),i.translate(lr,lr,[-ut,-Rt,0]),this.mercatorMatrix=i.scale([],lr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(lr,lr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lr,this.invProjMatrix=i.invert([],this.projMatrix);var Fr=this.width%2/2,Xr=this.height%2/2,Yr=Math.cos(this.angle),Vr=Math.sin(this.angle),Kr=ut-Math.round(ut)+Yr*Fr+Vr*Xr,fn=Rt-Math.round(Rt)+Yr*Xr+Vr*Fr,Fn=new Float64Array(lr);if(i.translate(Fn,Fn,[Kr>.5?Kr-1:Kr,fn>.5?fn-1:fn,0]),this.alignedProjMatrix=Fn,lr=i.create(),i.scale(lr,lr,[this.width/2,-this.height/2,1]),i.translate(lr,lr,[1,-1,0]),this.labelPlaneMatrix=lr,lr=i.create(),i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[-1,-1,0]),i.scale(lr,lr,[2/this.width,2/this.height,1]),this.glCoordMatrix=lr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lr=i.invert(new Float64Array(16),this.pixelMatrix),!lr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Dn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var K=this.pointCoordinate(new i.Point(0,0)),de=[K.x*this.worldSize,K.y*this.worldSize,0,1],re=i.transformMat4(de,de,this.pixelMatrix);return re[3]/this.cameraToCenterDistance},Dn.prototype.getCameraPoint=function(){var K=this._pitch,de=Math.tan(K)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,de))},Dn.prototype.getCameraQueryGeometry=function(K){var de=this.getCameraPoint();if(K.length===1)return[K[0],de];for(var re=de.x,pe=de.y,Oe=de.x,Qe=de.y,ut=0,Rt=K;ut=3&&!K.some(function(re){return isNaN(re)})){var de=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(K[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+K[2],+K[1]],zoom:+K[0],bearing:de,pitch:+(K[4]||0)}),!0}return!1},Pi.prototype._updateHashUnthrottled=function(){var K=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,K)}catch{}};var Ri={linearity:.3,easing:i.bezier(0,0,.3,1)},zi=i.extend({deceleration:2500,maxSpeed:1400},Ri),Xi=i.extend({deceleration:20,maxSpeed:1400},Ri),va=i.extend({deceleration:1e3,maxSpeed:360},Ri),Ia=i.extend({deceleration:1e3,maxSpeed:90},Ri),fe=function(K){this._map=K,this.clear()};fe.prototype.clear=function(){this._inertiaBuffer=[]},fe.prototype.record=function(K){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:K})},fe.prototype._drainInertiaBuffer=function(){for(var K=this._inertiaBuffer,de=i.browser.now(),re=160;K.length>0&&de-K[0].time>re;)K.shift()},fe.prototype._onMoveEnd=function(K){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var de={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},re=0,pe=this._inertiaBuffer;re=this._clickTolerance||this._map.fire(new tt(K.type,this._map,K))},Dt.prototype.dblclick=function(K){return this._firePreventable(new tt(K.type,this._map,K))},Dt.prototype.mouseover=function(K){this._map.fire(new tt(K.type,this._map,K))},Dt.prototype.mouseout=function(K){this._map.fire(new tt(K.type,this._map,K))},Dt.prototype.touchstart=function(K){return this._firePreventable(new at(K.type,this._map,K))},Dt.prototype.touchmove=function(K){this._map.fire(new at(K.type,this._map,K))},Dt.prototype.touchend=function(K){this._map.fire(new at(K.type,this._map,K))},Dt.prototype.touchcancel=function(K){this._map.fire(new at(K.type,this._map,K))},Dt.prototype._firePreventable=function(K){if(this._map.fire(K),K.defaultPrevented)return{}},Dt.prototype.isEnabled=function(){return!0},Dt.prototype.isActive=function(){return!1},Dt.prototype.enable=function(){},Dt.prototype.disable=function(){};var Et=function(K){this._map=K};Et.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Et.prototype.mousemove=function(K){this._map.fire(new tt(K.type,this._map,K))},Et.prototype.mousedown=function(){this._delayContextMenu=!0},Et.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new tt("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Et.prototype.contextmenu=function(K){this._delayContextMenu?this._contextMenuEvent=K:this._map.fire(new tt(K.type,this._map,K)),this._map.listens("contextmenu")&&K.preventDefault()},Et.prototype.isEnabled=function(){return!0},Et.prototype.isActive=function(){return!1},Et.prototype.enable=function(){},Et.prototype.disable=function(){};var Yt=function(K,de){this._map=K,this._el=K.getCanvasContainer(),this._container=K.getContainer(),this._clickTolerance=de.clickTolerance||1};Yt.prototype.isEnabled=function(){return!!this._enabled},Yt.prototype.isActive=function(){return!!this._active},Yt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Yt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yt.prototype.mousedown=function(K,de){this.isEnabled()&&K.shiftKey&&K.button===0&&(x.disableDrag(),this._startPos=this._lastPos=de,this._active=!0)},Yt.prototype.mousemoveWindow=function(K,de){if(this._active){var re=de;if(!(this._lastPos.equals(re)||!this._box&&re.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=K.timeStamp),re.length===this.numTouches&&(this.centroid=nr(de),this.touches=Zt(re,de)))},on.prototype.touchmove=function(K,de,re){if(!(this.aborted||!this.centroid)){var pe=Zt(re,de);for(var Oe in this.touches){var Qe=this.touches[Oe],ut=pe[Oe];(!ut||ut.dist(Qe)>Jr)&&(this.aborted=!0)}}},on.prototype.touchend=function(K,de,re){if((!this.centroid||K.timeStamp-this.startTime>Lr)&&(this.aborted=!0),re.length===0){var pe=!this.aborted&&this.centroid;if(this.reset(),pe)return pe}};var Rr=function(K){this.singleTap=new on(K),this.numTaps=K.numTaps,this.reset()};Rr.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Rr.prototype.touchstart=function(K,de,re){this.singleTap.touchstart(K,de,re)},Rr.prototype.touchmove=function(K,de,re){this.singleTap.touchmove(K,de,re)},Rr.prototype.touchend=function(K,de,re){var pe=this.singleTap.touchend(K,de,re);if(pe){var Oe=K.timeStamp-this.lastTime<_r,Qe=!this.lastTap||this.lastTap.dist(pe)0&&(this._active=!0);var pe=Zt(re,de),Oe=new i.Point(0,0),Qe=new i.Point(0,0),ut=0;for(var Rt in pe){var Wt=pe[Rt],qt=this._touches[Rt];qt&&(Oe._add(Wt),Qe._add(Wt.sub(qt)),ut++,pe[Rt]=Wt)}if(this._touches=pe,!(utMath.abs(he.x)}var Ti=100,Zi=function(he){function K(){he.apply(this,arguments)}return he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K,K.prototype.reset=function(){he.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},K.prototype._start=function(re){this._lastPoints=re,Bi(re[0].sub(re[1]))&&(this._valid=!1)},K.prototype._move=function(re,pe,Oe){var Qe=re[0].sub(this._lastPoints[0]),ut=re[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Qe,ut,Oe.timeStamp),!!this._valid){this._lastPoints=re,this._active=!0;var Rt=(Qe.y+ut.y)/2,Wt=-.5;return{pitchDelta:Rt*Wt}}},K.prototype.gestureBeginsVertically=function(re,pe,Oe){if(this._valid!==void 0)return this._valid;var Qe=2,ut=re.mag()>=Qe,Rt=pe.mag()>=Qe;if(!(!ut&&!Rt)){if(!ut||!Rt)return this._firstMove===void 0&&(this._firstMove=Oe),Oe-this._firstMove0==pe.y>0;return Bi(re)&&Bi(pe)&&Wt}},K}(fi),ba={panStep:100,bearingStep:15,pitchStep:10},na=function(){var K=ba;this._panStep=K.panStep,this._bearingStep=K.bearingStep,this._pitchStep=K.pitchStep,this._rotationDisabled=!1};na.prototype.reset=function(){this._active=!1},na.prototype.keydown=function(K){var de=this;if(!(K.altKey||K.ctrlKey||K.metaKey)){var re=0,pe=0,Oe=0,Qe=0,ut=0;switch(K.keyCode){case 61:case 107:case 171:case 187:re=1;break;case 189:case 109:case 173:re=-1;break;case 37:K.shiftKey?pe=-1:(K.preventDefault(),Qe=-1);break;case 39:K.shiftKey?pe=1:(K.preventDefault(),Qe=1);break;case 38:K.shiftKey?Oe=1:(K.preventDefault(),ut=-1);break;case 40:K.shiftKey?Oe=-1:(K.preventDefault(),ut=1);break;default:return}return this._rotationDisabled&&(pe=0,Oe=0),{cameraAnimation:function(Rt){var Wt=Rt.getZoom();Rt.easeTo({duration:300,easeId:"keyboardHandler",easing:Ka,zoom:re?Math.round(Wt)+re*(K.shiftKey?2:1):Wt,bearing:Rt.getBearing()+pe*de._bearingStep,pitch:Rt.getPitch()+Oe*de._pitchStep,offset:[-Qe*de._panStep,-ut*de._panStep],center:Rt.getCenter()},{originalEvent:K})}}}},na.prototype.enable=function(){this._enabled=!0},na.prototype.disable=function(){this._enabled=!1,this.reset()},na.prototype.isEnabled=function(){return this._enabled},na.prototype.isActive=function(){return this._active},na.prototype.disableRotation=function(){this._rotationDisabled=!0},na.prototype.enableRotation=function(){this._rotationDisabled=!1};function Ka(he){return he*(2-he)}var Ja=4.000244140625,eo=1/100,wa=1/450,uo=2,oi=function(K,de){this._map=K,this._el=K.getCanvasContainer(),this._handler=de,this._delta=0,this._defaultZoomRate=eo,this._wheelZoomRate=wa,i.bindAll(["_onTimeout"],this)};oi.prototype.setZoomRate=function(K){this._defaultZoomRate=K},oi.prototype.setWheelZoomRate=function(K){this._wheelZoomRate=K},oi.prototype.isEnabled=function(){return!!this._enabled},oi.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},oi.prototype.isZooming=function(){return!!this._zooming},oi.prototype.enable=function(K){this.isEnabled()||(this._enabled=!0,this._aroundCenter=K&&K.around==="center")},oi.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},oi.prototype.wheel=function(K){if(this.isEnabled()){var de=K.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?K.deltaY*40:K.deltaY,re=i.browser.now(),pe=re-(this._lastWheelEventTime||0);this._lastWheelEventTime=re,de!==0&&de%Ja===0?this._type="wheel":de!==0&&Math.abs(de)<4?this._type="trackpad":pe>400?(this._type=null,this._lastValue=de,this._timeout=setTimeout(this._onTimeout,40,K)):this._type||(this._type=Math.abs(pe*de)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,de+=this._lastValue)),K.shiftKey&&de&&(de=de/4),this._type&&(this._lastWheelEvent=K,this._delta-=de,this._active||this._start(K)),K.preventDefault()}},oi.prototype._onTimeout=function(K){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(K)},oi.prototype._start=function(K){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var de=x.mousePos(this._el,K);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(de)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},oi.prototype.renderFrame=function(){var K=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var de=this._map.transform;if(this._delta!==0){var re=this._type==="wheel"&&Math.abs(this._delta)>Ja?this._wheelZoomRate:this._defaultZoomRate,pe=uo/(1+Math.exp(-Math.abs(this._delta*re)));this._delta<0&&pe!==0&&(pe=1/pe);var Oe=typeof this._targetZoom=="number"?de.zoomScale(this._targetZoom):de.scale;this._targetZoom=Math.min(de.maxZoom,Math.max(de.minZoom,de.scaleZoom(Oe*pe))),this._type==="wheel"&&(this._startZoom=de.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Qe=typeof this._targetZoom=="number"?this._targetZoom:de.zoom,ut=this._startZoom,Rt=this._easing,Wt=!1,qt;if(this._type==="wheel"&&ut&&Rt){var cr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),lr=Rt(cr);qt=i.number(ut,Qe,lr),cr<1?this._frameId||(this._frameId=!0):Wt=!0}else qt=Qe,Wt=!0;return this._active=!0,Wt&&(this._active=!1,this._finishTimeout=setTimeout(function(){K._zooming=!1,K._handler._triggerRenderFrame(),delete K._targetZoom,delete K._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Wt,zoomDelta:qt-de.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},oi.prototype._smoothOutEasing=function(K){var de=i.ease;if(this._prevEase){var re=this._prevEase,pe=(i.browser.now()-re.start)/re.duration,Oe=re.easing(pe+.01)-re.easing(pe),Qe=.27/Math.sqrt(Oe*Oe+1e-4)*.01,ut=Math.sqrt(.27*.27-Qe*Qe);de=i.bezier(Qe,ut,.25,1)}return this._prevEase={start:i.browser.now(),duration:K,easing:de},de},oi.prototype.reset=function(){this._active=!1};var Ei=function(K,de){this._clickZoom=K,this._tapZoom=de};Ei.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Ei.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Ei.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Ei.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ao=function(){this.reset()};Ao.prototype.reset=function(){this._active=!1},Ao.prototype.dblclick=function(K,de){return K.preventDefault(),{cameraAnimation:function(re){re.easeTo({duration:300,zoom:re.getZoom()+(K.shiftKey?-1:1),around:re.unproject(de)},{originalEvent:K})}}},Ao.prototype.enable=function(){this._enabled=!0},Ao.prototype.disable=function(){this._enabled=!1,this.reset()},Ao.prototype.isEnabled=function(){return this._enabled},Ao.prototype.isActive=function(){return this._active};var Lo=function(){this._tap=new Rr({numTouches:1,numTaps:1}),this.reset()};Lo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Lo.prototype.touchstart=function(K,de,re){this._swipePoint||(this._tapTime&&K.timeStamp-this._tapTime>_r&&this.reset(),this._tapTime?re.length>0&&(this._swipePoint=de[0],this._swipeTouch=re[0].identifier):this._tap.touchstart(K,de,re))},Lo.prototype.touchmove=function(K,de,re){if(!this._tapTime)this._tap.touchmove(K,de,re);else if(this._swipePoint){if(re[0].identifier!==this._swipeTouch)return;var pe=de[0],Oe=pe.y-this._swipePoint.y;return this._swipePoint=pe,K.preventDefault(),this._active=!0,{zoomDelta:Oe/128}}},Lo.prototype.touchend=function(K,de,re){if(this._tapTime)this._swipePoint&&re.length===0&&this.reset();else{var pe=this._tap.touchend(K,de,re);pe&&(this._tapTime=K.timeStamp)}},Lo.prototype.touchcancel=function(){this.reset()},Lo.prototype.enable=function(){this._enabled=!0},Lo.prototype.disable=function(){this._enabled=!1,this.reset()},Lo.prototype.isEnabled=function(){return this._enabled},Lo.prototype.isActive=function(){return this._active};var to=function(K,de,re){this._el=K,this._mousePan=de,this._touchPan=re};to.prototype.enable=function(K){this._inertiaOptions=K||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},to.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},to.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},to.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ca=function(K,de,re){this._pitchWithRotate=K.pitchWithRotate,this._mouseRotate=de,this._mousePitch=re};ca.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},ca.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ca.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},ca.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Va=function(K,de,re,pe){this._el=K,this._touchZoom=de,this._touchRotate=re,this._tapDragZoom=pe,this._rotationDisabled=!1,this._enabled=!0};Va.prototype.enable=function(K){this._touchZoom.enable(K),this._rotationDisabled||this._touchRotate.enable(K),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Va.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Va.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Va.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Va.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Va.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Oa=function(he){return he.zoom||he.drag||he.pitch||he.rotate},is=function(he){function K(){he.apply(this,arguments)}return he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K,K}(i.Event);function bs(he){return he.panDelta&&he.panDelta.mag()||he.zoomDelta||he.bearingDelta||he.pitchDelta}var Ea=function(K,de){this._map=K,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new fe(K),this._bearingSnap=de.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(de),i.bindAll(["handleEvent","handleWindowEvent"],this);var re=this._el;this._listeners=[[re,"touchstart",{passive:!0}],[re,"touchmove",{passive:!1}],[re,"touchend",void 0],[re,"touchcancel",void 0],[re,"mousedown",void 0],[re,"mousemove",void 0],[re,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[re,"mouseover",void 0],[re,"mouseout",void 0],[re,"dblclick",void 0],[re,"click",void 0],[re,"keydown",{capture:!1}],[re,"keyup",void 0],[re,"wheel",{passive:!1}],[re,"contextmenu",void 0],[i.window,"blur",void 0]];for(var pe=0,Oe=this._listeners;peut?Math.min(2,Yn):Math.max(.5,Yn),hi=Math.pow(yi,1-ei),Fi=Qe.unproject(Fn.add(Nn.mult(ei*hi)).mult(si));Qe.setLocationAtPoint(Qe.renderWorldCopies?Fi.wrap():Fi,Vr)}Oe._fireMoveEvents(pe)},function(ei){Oe._afterEase(pe,ei)},re),this},K.prototype._prepareEase=function(re,pe,Oe){Oe===void 0&&(Oe={}),this._moving=!0,!pe&&!Oe.moving&&this.fire(new i.Event("movestart",re)),this._zooming&&!Oe.zooming&&this.fire(new i.Event("zoomstart",re)),this._rotating&&!Oe.rotating&&this.fire(new i.Event("rotatestart",re)),this._pitching&&!Oe.pitching&&this.fire(new i.Event("pitchstart",re))},K.prototype._fireMoveEvents=function(re){this.fire(new i.Event("move",re)),this._zooming&&this.fire(new i.Event("zoom",re)),this._rotating&&this.fire(new i.Event("rotate",re)),this._pitching&&this.fire(new i.Event("pitch",re))},K.prototype._afterEase=function(re,pe){if(!(this._easeId&&pe&&this._easeId===pe)){delete this._easeId;var Oe=this._zooming,Qe=this._rotating,ut=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Oe&&this.fire(new i.Event("zoomend",re)),Qe&&this.fire(new i.Event("rotateend",re)),ut&&this.fire(new i.Event("pitchend",re)),this.fire(new i.Event("moveend",re))}},K.prototype.flyTo=function(re,pe){var Oe=this;if(!re.essential&&i.browser.prefersReducedMotion){var Qe=i.pick(re,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Qe,pe)}this.stop(),re=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},re);var ut=this.transform,Rt=this.getZoom(),Wt=this.getBearing(),qt=this.getPitch(),cr=this.getPadding(),lr="zoom"in re?i.clamp(+re.zoom,ut.minZoom,ut.maxZoom):Rt,Fr="bearing"in re?this._normalizeBearing(re.bearing,Wt):Wt,Xr="pitch"in re?+re.pitch:qt,Yr="padding"in re?re.padding:ut.padding,Vr=ut.zoomScale(lr-Rt),Kr=i.Point.convert(re.offset),fn=ut.centerPoint.add(Kr),Fn=ut.pointLocation(fn),Nn=i.LngLat.convert(re.center||Fn);this._normalizeCenter(Nn);var Yn=ut.project(Fn),Xn=ut.project(Nn).sub(Yn),Gn=re.curve,jn=Math.max(ut.width,ut.height),ei=jn/Vr,si=Xn.mag();if("minZoom"in re){var yi=i.clamp(Math.min(re.minZoom,Rt,lr),ut.minZoom,ut.maxZoom),hi=jn/ut.zoomScale(yi-Rt);Gn=Math.sqrt(hi/si*2)}var Fi=Gn*Gn;function Ji(Hi){var Qi=(ei*ei-jn*jn+(Hi?-1:1)*Fi*Fi*si*si)/(2*(Hi?ei:jn)*Fi*si);return Math.log(Math.sqrt(Qi*Qi+1)-Qi)}function Gi(Hi){return(Math.exp(Hi)-Math.exp(-Hi))/2}function Ai(Hi){return(Math.exp(Hi)+Math.exp(-Hi))/2}function Yi(Hi){return Gi(Hi)/Ai(Hi)}var Ui=Ji(0),ia=function(Hi){return Ai(Ui)/Ai(Ui+Gn*Hi)},qi=function(Hi){return jn*((Ai(Ui)*Yi(Ui+Gn*Hi)-Gi(Ui))/Fi)/si},Ta=(Ji(1)-Ui)/Gn;if(Math.abs(si)<1e-6||!isFinite(Ta)){if(Math.abs(jn-ei)<1e-6)return this.easeTo(re,pe);var Ki=eire.maxDuration&&(re.duration=0),this._zooming=!0,this._rotating=Wt!==Fr,this._pitching=Xr!==qt,this._padding=!ut.isPaddingEqual(Yr),this._prepareEase(pe,!1),this._ease(function(Hi){var Qi=Hi*Ta,Na=1/ia(Qi);ut.zoom=Hi===1?lr:Rt+ut.scaleZoom(Na),Oe._rotating&&(ut.bearing=i.number(Wt,Fr,Hi)),Oe._pitching&&(ut.pitch=i.number(qt,Xr,Hi)),Oe._padding&&(ut.interpolatePadding(cr,Yr,Hi),fn=ut.centerPoint.add(Kr));var fo=Hi===1?Nn:ut.unproject(Yn.add(Xn.mult(qi(Qi))).mult(Na));ut.setLocationAtPoint(ut.renderWorldCopies?fo.wrap():fo,fn),Oe._fireMoveEvents(pe)},function(){return Oe._afterEase(pe)},re),this},K.prototype.isEasing=function(){return!!this._easeFrameId},K.prototype.stop=function(){return this._stop()},K.prototype._stop=function(re,pe){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Oe=this._onEaseEnd;delete this._onEaseEnd,Oe.call(this,pe)}if(!re){var Qe=this.handlers;Qe&&Qe.stop(!1)}return this},K.prototype._ease=function(re,pe,Oe){Oe.animate===!1||Oe.duration===0?(re(1),pe()):(this._easeStart=i.browser.now(),this._easeOptions=Oe,this._onEaseFrame=re,this._onEaseEnd=pe,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},K.prototype._renderFrameCallback=function(){var re=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(re)),re<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},K.prototype._normalizeBearing=function(re,pe){re=i.wrap(re,-180,180);var Oe=Math.abs(re-pe);return Math.abs(re-360-pe)180?-360:Oe<-180?360:0}},K}(i.Evented),ji=function(K){K===void 0&&(K={}),this.options=K,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ji.prototype.getDefaultPosition=function(){return"bottom-right"},ji.prototype.onAdd=function(K){var de=this.options&&this.options.compact;return this._map=K,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=x.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=x.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),de&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),de===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ji.prototype.onRemove=function(){x.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ji.prototype._setElementTitle=function(K,de){var re=this._map._getUIString("AttributionControl."+de);K.title=re,K.setAttribute("aria-label",re)},ji.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ji.prototype._updateEditLink=function(){var K=this._editLink;K||(K=this._editLink=this._container.querySelector(".mapbox-improve-map"));var de=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(K){var re=de.reduce(function(pe,Oe,Qe){return Oe.value&&(pe+=Oe.key+"="+Oe.value+(Qe=0)return!1;return!0});var ut=K.join(" | ");ut!==this._attribHTML&&(this._attribHTML=ut,K.length?(this._innerContainer.innerHTML=ut,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ji.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var _a=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};_a.prototype.onAdd=function(K){this._map=K,this._container=x.create("div","mapboxgl-ctrl");var de=x.create("a","mapboxgl-ctrl-logo");return de.target="_blank",de.rel="noopener nofollow",de.href="https://www.mapbox.com/",de.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),de.setAttribute("rel","noopener nofollow"),this._container.appendChild(de),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},_a.prototype.onRemove=function(){x.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},_a.prototype.getDefaultPosition=function(){return"bottom-left"},_a.prototype._updateLogo=function(K){(!K||K.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},_a.prototype._logoRequired=function(){if(this._map.style){var K=this._map.style.sourceCaches;for(var de in K){var re=K[de].getSource();if(re.mapbox_logo)return!0}return!1}},_a.prototype._updateCompact=function(){var K=this._container.children;if(K.length){var de=K[0];this._map.getCanvasContainer().offsetWidth<250?de.classList.add("mapboxgl-compact"):de.classList.remove("mapboxgl-compact")}};var kc=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};kc.prototype.add=function(K){var de=++this._id,re=this._queue;return re.push({callback:K,id:de,cancelled:!1}),de},kc.prototype.remove=function(K){for(var de=this._currentlyRunning,re=de?this._queue.concat(de):this._queue,pe=0,Oe=re;pere.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(re.minPitch!=null&&re.maxPitch!=null&&re.minPitch>re.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(re.minPitch!=null&&re.minPitchPu)throw new Error("maxPitch must be less than or equal to "+Pu);var Oe=new Dn(re.minZoom,re.maxZoom,re.minPitch,re.maxPitch,re.renderWorldCopies);if(he.call(this,Oe,re),this._interactive=re.interactive,this._maxTileCacheSize=re.maxTileCacheSize,this._failIfMajorPerformanceCaveat=re.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=re.preserveDrawingBuffer,this._antialias=re.antialias,this._trackResize=re.trackResize,this._bearingSnap=re.bearingSnap,this._refreshExpiredTiles=re.refreshExpiredTiles,this._fadeDuration=re.fadeDuration,this._crossSourceCollisions=re.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=re.collectResourceTiming,this._renderTaskQueue=new kc,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},rd,re.locale),this._clickTolerance=re.clickTolerance,this._requestManager=new i.RequestManager(re.transformRequest,re.accessToken),typeof re.container=="string"){if(this._container=i.window.document.getElementById(re.container),!this._container)throw new Error("Container '"+re.container+"' not found.")}else if(re.container instanceof dv)this._container=re.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(re.maxBounds&&this.setMaxBounds(re.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return pe._update(!1)}),this.on("moveend",function(){return pe._update(!1)}),this.on("zoom",function(){return pe._update(!0)}),typeof i.window<"u"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ea(this,re);var Qe=typeof re.hash=="string"&&re.hash||void 0;this._hash=re.hash&&new Pi(Qe).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:re.center,zoom:re.zoom,bearing:re.bearing,pitch:re.pitch}),re.bounds&&(this.resize(),this.fitBounds(re.bounds,i.extend({},re.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=re.localIdeographFontFamily,re.style&&this.setStyle(re.style,{localIdeographFontFamily:re.localIdeographFontFamily}),re.attributionControl&&this.addControl(new ji({customAttribution:re.customAttribution})),this.addControl(new _a,re.logoPosition),this.on("style.load",function(){pe.transform.unmodified&&pe.jumpTo(pe.style.stylesheet)}),this.on("data",function(ut){pe._update(ut.dataType==="style"),pe.fire(new i.Event(ut.dataType+"data",ut))}),this.on("dataloading",function(ut){pe.fire(new i.Event(ut.dataType+"dataloading",ut))})}he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K;var de={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return K.prototype._getMapId=function(){return this._mapId},K.prototype.addControl=function(pe,Oe){if(Oe===void 0&&(pe.getDefaultPosition?Oe=pe.getDefaultPosition():Oe="top-right"),!pe||!pe.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Qe=pe.onAdd(this);this._controls.push(pe);var ut=this._controlPositions[Oe];return Oe.indexOf("bottom")!==-1?ut.insertBefore(Qe,ut.firstChild):ut.appendChild(Qe),this},K.prototype.removeControl=function(pe){if(!pe||!pe.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Oe=this._controls.indexOf(pe);return Oe>-1&&this._controls.splice(Oe,1),pe.onRemove(this),this},K.prototype.hasControl=function(pe){return this._controls.indexOf(pe)>-1},K.prototype.resize=function(pe){var Oe=this._containerDimensions(),Qe=Oe[0],ut=Oe[1];this._resizeCanvas(Qe,ut),this.transform.resize(Qe,ut),this.painter.resize(Qe,ut);var Rt=!this._moving;return Rt&&(this.stop(),this.fire(new i.Event("movestart",pe)).fire(new i.Event("move",pe))),this.fire(new i.Event("resize",pe)),Rt&&this.fire(new i.Event("moveend",pe)),this},K.prototype.getBounds=function(){return this.transform.getBounds()},K.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},K.prototype.setMaxBounds=function(pe){return this.transform.setMaxBounds(i.LngLatBounds.convert(pe)),this._update()},K.prototype.setMinZoom=function(pe){if(pe=pe??Vf,pe>=Vf&&pe<=this.transform.maxZoom)return this.transform.minZoom=pe,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=pe,this._update(),this.getZoom()>pe&&this.setZoom(pe),this;throw new Error("maxZoom must be greater than the current minZoom")},K.prototype.getMaxZoom=function(){return this.transform.maxZoom},K.prototype.setMinPitch=function(pe){if(pe=pe??Zo,pe=Zo&&pe<=this.transform.maxPitch)return this.transform.minPitch=pe,this._update(),this.getPitch()Pu)throw new Error("maxPitch must be less than or equal to "+Pu);if(pe>=this.transform.minPitch)return this.transform.maxPitch=pe,this._update(),this.getPitch()>pe&&this.setPitch(pe),this;throw new Error("maxPitch must be greater than the current minPitch")},K.prototype.getMaxPitch=function(){return this.transform.maxPitch},K.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},K.prototype.setRenderWorldCopies=function(pe){return this.transform.renderWorldCopies=pe,this._update()},K.prototype.project=function(pe){return this.transform.locationPoint(i.LngLat.convert(pe))},K.prototype.unproject=function(pe){return this.transform.pointLocation(i.Point.convert(pe))},K.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},K.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},K.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},K.prototype._createDelegatedListener=function(pe,Oe,Qe){var ut=this,Rt;if(pe==="mouseenter"||pe==="mouseover"){var Wt=!1,qt=function(Vr){var Kr=ut.getLayer(Oe)?ut.queryRenderedFeatures(Vr.point,{layers:[Oe]}):[];Kr.length?Wt||(Wt=!0,Qe.call(ut,new tt(pe,ut,Vr.originalEvent,{features:Kr}))):Wt=!1},cr=function(){Wt=!1};return{layer:Oe,listener:Qe,delegates:{mousemove:qt,mouseout:cr}}}else if(pe==="mouseleave"||pe==="mouseout"){var lr=!1,Fr=function(Vr){var Kr=ut.getLayer(Oe)?ut.queryRenderedFeatures(Vr.point,{layers:[Oe]}):[];Kr.length?lr=!0:lr&&(lr=!1,Qe.call(ut,new tt(pe,ut,Vr.originalEvent)))},Xr=function(Vr){lr&&(lr=!1,Qe.call(ut,new tt(pe,ut,Vr.originalEvent)))};return{layer:Oe,listener:Qe,delegates:{mousemove:Fr,mouseout:Xr}}}else{var Yr=function(Vr){var Kr=ut.getLayer(Oe)?ut.queryRenderedFeatures(Vr.point,{layers:[Oe]}):[];Kr.length&&(Vr.features=Kr,Qe.call(ut,Vr),delete Vr.features)};return{layer:Oe,listener:Qe,delegates:(Rt={},Rt[pe]=Yr,Rt)}}},K.prototype.on=function(pe,Oe,Qe){if(Qe===void 0)return he.prototype.on.call(this,pe,Oe);var ut=this._createDelegatedListener(pe,Oe,Qe);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[pe]=this._delegatedListeners[pe]||[],this._delegatedListeners[pe].push(ut);for(var Rt in ut.delegates)this.on(Rt,ut.delegates[Rt]);return this},K.prototype.once=function(pe,Oe,Qe){if(Qe===void 0)return he.prototype.once.call(this,pe,Oe);var ut=this._createDelegatedListener(pe,Oe,Qe);for(var Rt in ut.delegates)this.once(Rt,ut.delegates[Rt]);return this},K.prototype.off=function(pe,Oe,Qe){var ut=this;if(Qe===void 0)return he.prototype.off.call(this,pe,Oe);var Rt=function(Wt){for(var qt=Wt[pe],cr=0;cr180;){var Qe=de.locationPoint(he);if(Qe.x>=0&&Qe.y>=0&&Qe.x<=de.width&&Qe.y<=de.height)break;he.lng>de.center.lng?he.lng-=360:he.lng+=360}return he}var Nc={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function sh(he,K,de){var re=he.classList;for(var pe in Nc)re.remove("mapboxgl-"+de+"-anchor-"+pe);re.add("mapboxgl-"+de+"-anchor-"+K)}var Wf=function(he){function K(de,re){if(he.call(this),(de instanceof i.window.HTMLElement||re)&&(de=i.extend({element:de},re)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=de&&de.anchor||"center",this._color=de&&de.color||"#3FB1CE",this._scale=de&&de.scale||1,this._draggable=de&&de.draggable||!1,this._clickTolerance=de&&de.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=de&&de.rotation||0,this._rotationAlignment=de&&de.rotationAlignment||"auto",this._pitchAlignment=de&&de.pitchAlignment&&de.pitchAlignment!=="auto"?de.pitchAlignment:this._rotationAlignment,!de||!de.element){this._defaultMarker=!0,this._element=x.create("div"),this._element.setAttribute("aria-label","Map marker");var pe=x.createNS("http://www.w3.org/2000/svg","svg"),Oe=41,Qe=27;pe.setAttributeNS(null,"display","block"),pe.setAttributeNS(null,"height",Oe+"px"),pe.setAttributeNS(null,"width",Qe+"px"),pe.setAttributeNS(null,"viewBox","0 0 "+Qe+" "+Oe);var ut=x.createNS("http://www.w3.org/2000/svg","g");ut.setAttributeNS(null,"stroke","none"),ut.setAttributeNS(null,"stroke-width","1"),ut.setAttributeNS(null,"fill","none"),ut.setAttributeNS(null,"fill-rule","evenodd");var Rt=x.createNS("http://www.w3.org/2000/svg","g");Rt.setAttributeNS(null,"fill-rule","nonzero");var Wt=x.createNS("http://www.w3.org/2000/svg","g");Wt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Wt.setAttributeNS(null,"fill","#000000");for(var qt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],cr=0,lr=qt;cr=pe}this._isDragging&&(this._pos=re.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},K.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},K.prototype._addDragHandler=function(re){this._element.contains(re.originalEvent.target)&&(re.preventDefault(),this._positionDelta=re.point.sub(this._pos).add(this._offset),this._pointerdownPos=re.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},K.prototype.setDraggable=function(re){return this._draggable=!!re,this._map&&(re?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},K.prototype.isDraggable=function(){return this._draggable},K.prototype.setRotation=function(re){return this._rotation=re||0,this._update(),this},K.prototype.getRotation=function(){return this._rotation},K.prototype.setRotationAlignment=function(re){return this._rotationAlignment=re||"auto",this._update(),this},K.prototype.getRotationAlignment=function(){return this._rotationAlignment},K.prototype.setPitchAlignment=function(re){return this._pitchAlignment=re&&re!=="auto"?re:this._rotationAlignment,this._update(),this},K.prototype.getPitchAlignment=function(){return this._pitchAlignment},K}(i.Evented),mv={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ru;function Bc(he){Ru!==void 0?he(Ru):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(K){Ru=K.state!=="denied",he(Ru)}):(Ru=!!i.window.navigator.geolocation,he(Ru))}var Yf=0,nf=!1,nd=function(he){function K(de){he.call(this),this.options=i.extend({},mv,de),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K,K.prototype.onAdd=function(re){return this._map=re,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Bc(this._setupUI),this._container},K.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),x.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Yf=0,nf=!1},K.prototype._isOutOfMapMaxBounds=function(re){var pe=this._map.getMaxBounds(),Oe=re.coords;return pe&&(Oe.longitudepe.getEast()||Oe.latitudepe.getNorth())},K.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},K.prototype._onSuccess=function(re){if(this._map){if(this._isOutOfMapMaxBounds(re)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",re)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=re,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(re),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(re),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",re)),this._finish()}},K.prototype._updateCamera=function(re){var pe=new i.LngLat(re.coords.longitude,re.coords.latitude),Oe=re.coords.accuracy,Qe=this._map.getBearing(),ut=i.extend({bearing:Qe},this.options.fitBoundsOptions);this._map.fitBounds(pe.toBounds(Oe),ut,{geolocateSource:!0})},K.prototype._updateMarker=function(re){if(re){var pe=new i.LngLat(re.coords.longitude,re.coords.latitude);this._accuracyCircleMarker.setLngLat(pe).addTo(this._map),this._userLocationDotMarker.setLngLat(pe).addTo(this._map),this._accuracy=re.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},K.prototype._updateCircleRadius=function(){var re=this._map._container.clientHeight/2,pe=this._map.unproject([0,re]),Oe=this._map.unproject([1,re]),Qe=pe.distanceTo(Oe),ut=Math.ceil(2*this._accuracy/Qe);this._circleElement.style.width=ut+"px",this._circleElement.style.height=ut+"px"},K.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},K.prototype._onError=function(re){if(this._map){if(this.options.trackUserLocation)if(re.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var pe=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=pe,this._geolocateButton.setAttribute("aria-label",pe),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(re.code===3&&nf)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",re)),this._finish()}},K.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},K.prototype._setupUI=function(re){var pe=this;if(this._container.addEventListener("contextmenu",function(ut){return ut.preventDefault()}),this._geolocateButton=x.create("button","mapboxgl-ctrl-geolocate",this._container),x.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",re===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Oe=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Oe,this._geolocateButton.setAttribute("aria-label",Oe)}else{var Qe=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Qe,this._geolocateButton.setAttribute("aria-label",Qe)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=x.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Wf(this._dotElement),this._circleElement=x.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Wf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(ut){var Rt=ut.originalEvent&&ut.originalEvent.type==="resize";!ut.geolocateSource&&pe._watchState==="ACTIVE_LOCK"&&!Rt&&(pe._watchState="BACKGROUND",pe._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),pe._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),pe.fire(new i.Event("trackuserlocationend")))})},K.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Yf--,nf=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Yf++;var re;Yf>1?(re={maximumAge:6e5,timeout:0},nf=!0):(re=this.options.positionOptions,nf=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,re)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},K.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},K}(i.Evented),yv={maxWidth:100,unit:"metric"},af=function(K){this.options=i.extend({},yv,K),i.bindAll(["_onMove","setUnit"],this)};af.prototype.getDefaultPosition=function(){return"bottom-left"},af.prototype._onMove=function(){xv(this._map,this._container,this.options)},af.prototype.onAdd=function(K){return this._map=K,this._container=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",K.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},af.prototype.onRemove=function(){x.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},af.prototype.setUnit=function(K){this.options.unit=K,xv(this._map,this._container,this.options)};function xv(he,K,de){var re=de&&de.maxWidth||100,pe=he._container.clientHeight/2,Oe=he.unproject([0,pe]),Qe=he.unproject([re,pe]),ut=Oe.distanceTo(Qe);if(de&&de.unit==="imperial"){var Rt=3.2808*ut;if(Rt>5280){var Wt=Rt/5280;Xf(K,re,Wt,he._getUIString("ScaleControl.Miles"))}else Xf(K,re,Rt,he._getUIString("ScaleControl.Feet"))}else if(de&&de.unit==="nautical"){var qt=ut/1852;Xf(K,re,qt,he._getUIString("ScaleControl.NauticalMiles"))}else ut>=1e3?Xf(K,re,ut/1e3,he._getUIString("ScaleControl.Kilometers")):Xf(K,re,ut,he._getUIString("ScaleControl.Meters"))}function Xf(he,K,de,re){var pe=ad(de),Oe=pe/de;he.style.width=K*Oe+"px",he.innerHTML=pe+" "+re}function id(he){var K=Math.pow(10,Math.ceil(-Math.log(he)/Math.LN10));return Math.round(he*K)/K}function ad(he){var K=Math.pow(10,(""+Math.floor(he)).length-1),de=he/K;return de=de>=10?10:de>=5?5:de>=3?3:de>=2?2:de>=1?1:id(de),K*de}var qs=function(K){this._fullscreen=!1,K&&K.container&&(K.container instanceof i.window.HTMLElement?this._container=K.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};qs.prototype.onAdd=function(K){return this._map=K,this._container||(this._container=this._map.getContainer()),this._controlContainer=x.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},qs.prototype.onRemove=function(){x.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},qs.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},qs.prototype._setupUI=function(){var K=this._fullscreenButton=x.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);x.create("span","mapboxgl-ctrl-icon",K).setAttribute("aria-hidden",!0),K.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},qs.prototype._updateTitle=function(){var K=this._getTitle();this._fullscreenButton.setAttribute("aria-label",K),this._fullscreenButton.title=K},qs.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},qs.prototype._isFullscreen=function(){return this._fullscreen},qs.prototype._changeIcon=function(){var K=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;K===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},qs.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var od={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},sd=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ap=function(he){function K(de){he.call(this),this.options=i.extend(Object.create(od),de),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return he&&(K.__proto__=he),K.prototype=Object.create(he&&he.prototype),K.prototype.constructor=K,K.prototype.addTo=function(re){return this._map&&this.remove(),this._map=re,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},K.prototype.isOpen=function(){return!!this._map},K.prototype.remove=function(){return this._content&&x.remove(this._content),this._container&&(x.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},K.prototype.getLngLat=function(){return this._lngLat},K.prototype.setLngLat=function(re){return this._lngLat=i.LngLat.convert(re),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},K.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},K.prototype.getElement=function(){return this._container},K.prototype.setText=function(re){return this.setDOMContent(i.window.document.createTextNode(re))},K.prototype.setHTML=function(re){var pe=i.window.document.createDocumentFragment(),Oe=i.window.document.createElement("body"),Qe;for(Oe.innerHTML=re;Qe=Oe.firstChild,!!Qe;)pe.appendChild(Qe);return this.setDOMContent(pe)},K.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},K.prototype.setMaxWidth=function(re){return this.options.maxWidth=re,this._update(),this},K.prototype.setDOMContent=function(re){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=x.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(re),this._createCloseButton(),this._update(),this._focusFirstElement(),this},K.prototype.addClassName=function(re){this._container&&this._container.classList.add(re)},K.prototype.removeClassName=function(re){this._container&&this._container.classList.remove(re)},K.prototype.setOffset=function(re){return this.options.offset=re,this._update(),this},K.prototype.toggleClassName=function(re){if(this._container)return this._container.classList.toggle(re)},K.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=x.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},K.prototype._onMouseUp=function(re){this._update(re.point)},K.prototype._onMouseMove=function(re){this._update(re.point)},K.prototype._onDrag=function(re){this._update(re.point)},K.prototype._update=function(re){var pe=this,Oe=this._lngLat||this._trackPointer;if(!(!this._map||!Oe||!this._content)&&(this._container||(this._container=x.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=x.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Fr){return pe._container.classList.add(Fr)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=tu(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!re))){var Qe=this._pos=this._trackPointer&&re?re:this._map.project(this._lngLat),ut=this.options.anchor,Rt=ld(this.options.offset);if(!ut){var Wt=this._container.offsetWidth,qt=this._container.offsetHeight,cr;Qe.y+Rt.bottom.ythis._map.transform.height-qt?cr=["bottom"]:cr=[],Qe.xthis._map.transform.width-Wt/2&&cr.push("right"),cr.length===0?ut="bottom":ut=cr.join("-")}var lr=Qe.add(Rt[ut]).round();x.setTransform(this._container,Nc[ut]+" translate("+lr.x+"px,"+lr.y+"px)"),sh(this._container,ut,"popup")}},K.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var re=this._container.querySelector(sd);re&&re.focus()}},K.prototype._onClose=function(){this.remove()},K}(i.Evented);function ld(he){if(he)if(typeof he=="number"){var K=Math.round(Math.sqrt(.5*Math.pow(he,2)));return{center:new i.Point(0,0),top:new i.Point(0,he),"top-left":new i.Point(K,K),"top-right":new i.Point(-K,K),bottom:new i.Point(0,-he),"bottom-left":new i.Point(K,-K),"bottom-right":new i.Point(-K,-K),left:new i.Point(he,0),right:new i.Point(-he,0)}}else if(he instanceof i.Point||Array.isArray(he)){var de=i.Point.convert(he);return{center:de,top:de,"top-left":de,"top-right":de,bottom:de,"bottom-left":de,"bottom-right":de,left:de,right:de}}else return{center:i.Point.convert(he.center||[0,0]),top:i.Point.convert(he.top||[0,0]),"top-left":i.Point.convert(he["top-left"]||[0,0]),"top-right":i.Point.convert(he["top-right"]||[0,0]),bottom:i.Point.convert(he.bottom||[0,0]),"bottom-left":i.Point.convert(he["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(he["bottom-right"]||[0,0]),left:i.Point.convert(he.left||[0,0]),right:i.Point.convert(he.right||[0,0])};else return ld(new i.Point(0,0))}var ro={version:i.version,supported:S,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:gv,NavigationControl:eu,GeolocateControl:nd,AttributionControl:ji,ScaleControl:af,FullscreenControl:qs,Popup:Ap,Marker:Wf,Style:Eo,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Ot,clearPrewarmedResources:Qt,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(he){i.config.ACCESS_TOKEN=he},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(he){i.config.API_URL=he},get workerCount(){return vr.workerCount},set workerCount(he){vr.workerCount=he},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(he){i.config.MAX_PARALLEL_IMAGE_REQUESTS=he},clearStorage:function(K){i.clearTileCache(K)},workerUrl:""};return ro}),g})},3108:function(G,U,e){G.exports=e(26099)},26099:function(G,U,e){var g=e(64928),C=e(32420),i=e(51160),S=e(76752),x=e(55616),v=e(31264),p=e(47520),r=e(18400),t=e(72512),a=e(76244),n=1073741824;G.exports=function(l,m){m||(m={}),l=p(l,"float64"),m=x(m,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var h=v(m.maxDepth,255),b=v(m.bounds,S(l,2));b[0]===b[2]&&b[2]++,b[1]===b[3]&&b[3]++;var u=f(l,b),o=l.length>>>1,d;m.dtype||(m.dtype="array"),typeof m.dtype=="string"?d=new(t(m.dtype))(o):m.dtype&&(d=m.dtype,Array.isArray(d)&&(d.length=o));for(var w=0;wh||ie>n){for(var V=0;VHe||oe>Ue||$=se)&&me!==Le){var ke=A[Ae];Le===void 0&&(Le=ke.length);for(var Ve=me;Ve=ue&&rt<=X&&Ke>=J&&Ke<=ee&&ce.push(Ie)}var $e=_[Ae],lt=$e[me*4+0],ht=$e[me*4+1],dt=$e[me*4+2],xt=$e[me*4+3],St=Te($e,me+1),nt=be*.5,ze=Ae+1;ge(we,Re,nt,ze,lt,ht||dt||xt||St),ge(we,Re+nt,nt,ze,ht,dt||xt||St),ge(we+nt,Re,nt,ze,dt,xt||St),ge(we+nt,Re+nt,nt,ze,xt,St)}}}function Te(we,Re){for(var be=null,Ae=0;be===null;)if(be=we[Re*4+Ae],Ae++,Ae>we.length)return null;return be}return ce}function k(O,H,Y,j,te){for(var ie=[],ue=0;ue0){t+=Math.abs(v(r[0]));for(var a=1;a2){for(m=0;m=0))throw new Error("precision must be a positive number");var L=Math.pow(10,s||0);return Math.round(T*L)/L}U.round=c;function l(T,s){s===void 0&&(s="kilometers");var L=U.factors[s];if(!L)throw new Error(s+" units is invalid");return T*L}U.radiansToLength=l;function m(T,s){s===void 0&&(s="kilometers");var L=U.factors[s];if(!L)throw new Error(s+" units is invalid");return T/L}U.lengthToRadians=m;function h(T,s){return u(m(T,s))}U.lengthToDegrees=h;function b(T){var s=T%360;return s<0&&(s+=360),s}U.bearingToAzimuth=b;function u(T){var s=T%(2*Math.PI);return s*180/Math.PI}U.radiansToDegrees=u;function o(T){var s=T%360;return s*Math.PI/180}U.degreesToRadians=o;function d(T,s,L){if(s===void 0&&(s="kilometers"),L===void 0&&(L="kilometers"),!(T>=0))throw new Error("length must be a positive number");return l(m(T,s),L)}U.convertLength=d;function w(T,s,L){if(s===void 0&&(s="meters"),L===void 0&&(L="kilometers"),!(T>=0))throw new Error("area must be a positive number");var M=U.areaFactors[s];if(!M)throw new Error("invalid original units");var z=U.areaFactors[L];if(!z)throw new Error("invalid final units");return T/M*z}U.convertArea=w;function A(T){return!isNaN(T)&&T!==null&&!Array.isArray(T)}U.isNumber=A;function _(T){return!!T&&T.constructor===Object}U.isObject=_;function y(T){if(!T)throw new Error("bbox is required");if(!Array.isArray(T))throw new Error("bbox must be an Array");if(T.length!==4&&T.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");T.forEach(function(s){if(!A(s))throw new Error("bbox must only contain numbers")})}U.validateBBox=y;function E(T){if(!T)throw new Error("id is required");if(["string","number"].indexOf(typeof T)===-1)throw new Error("id must be a number or a string")}U.validateId=E},3256:function(G,U,e){Object.defineProperty(U,"__esModule",{value:!0});var g=e(46284);function C(o,d,w){if(o!==null)for(var A,_,y,E,T,s,L,M=0,z=0,D,N=o.type,I=N==="FeatureCollection",k=N==="Feature",B=I?o.features.length:1,O=0;Os||I>L||k>M){T=z,s=A,L=I,M=k,y=0;return}var B=g.lineString([T,z],w.properties);if(d(B,A,_,k,y)===!1)return!1;y++,T=z})===!1)return!1}}})}function l(o,d,w){var A=w,_=!1;return c(o,function(y,E,T,s,L){_===!1&&w===void 0?A=y:A=d(A,y,E,T,s,L),_=!0}),A}function m(o,d){if(!o)throw new Error("geojson is required");n(o,function(w,A,_){if(w.geometry!==null){var y=w.geometry.type,E=w.geometry.coordinates;switch(y){case"LineString":if(d(w,A,_,0,0)===!1)return!1;break;case"Polygon":for(var T=0;Tx[0]&&(S[0]=x[0]),S[1]>x[1]&&(S[1]=x[1]),S[2]=0))throw new Error("precision must be a positive number");var L=Math.pow(10,s||0);return Math.round(T*L)/L}U.round=c;function l(T,s){s===void 0&&(s="kilometers");var L=U.factors[s];if(!L)throw new Error(s+" units is invalid");return T*L}U.radiansToLength=l;function m(T,s){s===void 0&&(s="kilometers");var L=U.factors[s];if(!L)throw new Error(s+" units is invalid");return T/L}U.lengthToRadians=m;function h(T,s){return u(m(T,s))}U.lengthToDegrees=h;function b(T){var s=T%360;return s<0&&(s+=360),s}U.bearingToAzimuth=b;function u(T){var s=T%(2*Math.PI);return s*180/Math.PI}U.radiansToDegrees=u;function o(T){var s=T%360;return s*Math.PI/180}U.degreesToRadians=o;function d(T,s,L){if(s===void 0&&(s="kilometers"),L===void 0&&(L="kilometers"),!(T>=0))throw new Error("length must be a positive number");return l(m(T,s),L)}U.convertLength=d;function w(T,s,L){if(s===void 0&&(s="meters"),L===void 0&&(L="kilometers"),!(T>=0))throw new Error("area must be a positive number");var M=U.areaFactors[s];if(!M)throw new Error("invalid original units");var z=U.areaFactors[L];if(!z)throw new Error("invalid final units");return T/M*z}U.convertArea=w;function A(T){return!isNaN(T)&&T!==null&&!Array.isArray(T)}U.isNumber=A;function _(T){return!!T&&T.constructor===Object}U.isObject=_;function y(T){if(!T)throw new Error("bbox is required");if(!Array.isArray(T))throw new Error("bbox must be an Array");if(T.length!==4&&T.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");T.forEach(function(s){if(!A(s))throw new Error("bbox must only contain numbers")})}U.validateBBox=y;function E(T){if(!T)throw new Error("id is required");if(["string","number"].indexOf(typeof T)===-1)throw new Error("id must be a number or a string")}U.validateId=E},84880:function(G,U,e){Object.defineProperty(U,"__esModule",{value:!0});var g=e(76796);function C(o,d,w){if(o!==null)for(var A,_,y,E,T,s,L,M=0,z=0,D,N=o.type,I=N==="FeatureCollection",k=N==="Feature",B=I?o.features.length:1,O=0;Os||I>L||k>M){T=z,s=A,L=I,M=k,y=0;return}var B=g.lineString([T,z],w.properties);if(d(B,A,_,k,y)===!1)return!1;y++,T=z})===!1)return!1}}})}function l(o,d,w){var A=w,_=!1;return c(o,function(y,E,T,s,L){_===!1&&w===void 0?A=y:A=d(A,y,E,T,s,L),_=!0}),A}function m(o,d){if(!o)throw new Error("geojson is required");n(o,function(w,A,_){if(w.geometry!==null){var y=w.geometry.type,E=w.geometry.coordinates;switch(y){case"LineString":if(d(w,A,_,0,0)===!1)return!1;break;case"Polygon":for(var T=0;T=0))throw new Error("precision must be a positive number");var B=Math.pow(10,k||0);return Math.round(I*B)/B}U.round=c;function l(I,k){k===void 0&&(k="kilometers");var B=U.factors[k];if(!B)throw new Error(k+" units is invalid");return I*B}U.radiansToLength=l;function m(I,k){k===void 0&&(k="kilometers");var B=U.factors[k];if(!B)throw new Error(k+" units is invalid");return I/B}U.lengthToRadians=m;function h(I,k){return u(m(I,k))}U.lengthToDegrees=h;function b(I){var k=I%360;return k<0&&(k+=360),k}U.bearingToAzimuth=b;function u(I){var k=I%(2*Math.PI);return k*180/Math.PI}U.radiansToDegrees=u;function o(I){var k=I%360;return k*Math.PI/180}U.degreesToRadians=o;function d(I,k,B){if(k===void 0&&(k="kilometers"),B===void 0&&(B="kilometers"),!(I>=0))throw new Error("length must be a positive number");return l(m(I,k),B)}U.convertLength=d;function w(I,k,B){if(k===void 0&&(k="meters"),B===void 0&&(B="kilometers"),!(I>=0))throw new Error("area must be a positive number");var O=U.areaFactors[k];if(!O)throw new Error("invalid original units");var H=U.areaFactors[B];if(!H)throw new Error("invalid final units");return I/O*H}U.convertArea=w;function A(I){return!isNaN(I)&&I!==null&&!Array.isArray(I)&&!/^\s*$/.test(I)}U.isNumber=A;function _(I){return!!I&&I.constructor===Object}U.isObject=_;function y(I){if(!I)throw new Error("bbox is required");if(!Array.isArray(I))throw new Error("bbox must be an Array");if(I.length!==4&&I.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");I.forEach(function(k){if(!A(k))throw new Error("bbox must only contain numbers")})}U.validateBBox=y;function E(I){if(!I)throw new Error("id is required");if(["string","number"].indexOf(typeof I)===-1)throw new Error("id must be a number or a string")}U.validateId=E;function T(){throw new Error("method has been renamed to `radiansToDegrees`")}U.radians2degrees=T;function s(){throw new Error("method has been renamed to `degreesToRadians`")}U.degrees2radians=s;function L(){throw new Error("method has been renamed to `lengthToDegrees`")}U.distanceToDegrees=L;function M(){throw new Error("method has been renamed to `lengthToRadians`")}U.distanceToRadians=M;function z(){throw new Error("method has been renamed to `radiansToLength`")}U.radiansToDistance=z;function D(){throw new Error("method has been renamed to `bearingToAzimuth`")}U.bearingToAngle=D;function N(){throw new Error("method has been renamed to `convertLength`")}U.convertDistance=N},43752:function(G,U,e){Object.defineProperty(U,"__esModule",{value:!0});var g=e(49840);function C(o,d,w){if(o!==null)for(var A,_,y,E,T,s,L,M=0,z=0,D,N=o.type,I=N==="FeatureCollection",k=N==="Feature",B=I?o.features.length:1,O=0;Os||I>L||k>M){T=z,s=A,L=I,M=k,y=0;return}var B=g.lineString([T,z],w.properties);if(d(B,A,_,k,y)===!1)return!1;y++,T=z})===!1)return!1}}})}function l(o,d,w){var A=w,_=!1;return c(o,function(y,E,T,s,L){_===!1&&w===void 0?A=y:A=d(A,y,E,T,s,L),_=!0}),A}function m(o,d){if(!o)throw new Error("geojson is required");n(o,function(w,A,_){if(w.geometry!==null){var y=w.geometry.type,E=w.geometry.coordinates;switch(y){case"LineString":if(d(w,A,_,0,0)===!1)return!1;break;case"Polygon":for(var T=0;TS&&(S=e[v]),e[v]1?ie-1:0),J=1;J1?ie-1:0),J=1;J1?ie-1:0),J=1;J1?ie-1:0),J=1;J"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(I,k,B){return n()?f=Reflect.construct:f=function(H,Y,j){var te=[null];te.push.apply(te,Y);var ie=Function.bind.apply(H,te),ue=new ie;return j&&l(ue,j.prototype),ue},f.apply(null,arguments)}function c(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function l(I,k){return l=Object.setPrototypeOf||function(O,H){return O.__proto__=H,O},l(I,k)}function m(I){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},m(I)}function h(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(B){return typeof B}:h=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},h(I)}var b=e(35840),u=b.inspect,o=e(86832),d=o.codes.ERR_INVALID_ARG_TYPE;function w(I,k,B){return(B===void 0||B>I.length)&&(B=I.length),I.substring(B-k.length,B)===k}function A(I,k){if(k=Math.floor(k),I.length==0||k==0)return"";var B=I.length*k;for(k=Math.floor(Math.log(k)/Math.log(2));k;)I+=I,k--;return I+=I.substring(0,B-I.length),I}var _="",y="",E="",T="",s={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},L=10;function M(I){var k=Object.keys(I),B=Object.create(Object.getPrototypeOf(I));return k.forEach(function(O){B[O]=I[O]}),Object.defineProperty(B,"message",{value:I.message}),B}function z(I){return u(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function D(I,k,B){var O="",H="",Y=0,j="",te=!1,ie=z(I),ue=ie.split(` +`),J=z(k).split(` +`),X=0,ee="";if(B==="strictEqual"&&h(I)==="object"&&h(k)==="object"&&I!==null&&k!==null&&(B="strictEqualObject"),ue.length===1&&J.length===1&&ue[0]!==J[0]){var V=ue[0].length+J[0].length;if(V<=L){if((h(I)!=="object"||I===null)&&(h(k)!=="object"||k===null)&&(I!==0||k!==0))return"".concat(s[B],` + +`)+"".concat(ue[0]," !== ").concat(J[0],` +`)}else if(B!=="strictEqualObject"){var Q=g.stderr&&g.stderr.isTTY?g.stderr.columns:80;if(V2&&(ee=` + `.concat(A(" ",X),"^"),X=0)}}}for(var oe=ue[ue.length-1],$=J[J.length-1];oe===$&&(X++<2?j=` + `.concat(oe).concat(j):O=oe,ue.pop(),J.pop(),!(ue.length===0||J.length===0));)oe=ue[ue.length-1],$=J[J.length-1];var Z=Math.max(ue.length,J.length);if(Z===0){var se=ie.split(` +`);if(se.length>30)for(se[26]="".concat(_,"...").concat(T);se.length>27;)se.pop();return"".concat(s.notIdentical,` + +`).concat(se.join(` +`),` +`)}X>3&&(j=` +`.concat(_,"...").concat(T).concat(j),te=!0),O!==""&&(j=` + `.concat(O).concat(j),O="");var ne=0,ce=s[B]+` +`.concat(y,"+ actual").concat(T," ").concat(E,"- expected").concat(T),ge=" ".concat(_,"...").concat(T," Lines skipped");for(X=0;X1&&X>2&&(Te>4?(H+=` +`.concat(_,"...").concat(T),te=!0):Te>3&&(H+=` + `.concat(J[X-2]),ne++),H+=` + `.concat(J[X-1]),ne++),Y=X,O+=` +`.concat(E,"-").concat(T," ").concat(J[X]),ne++;else if(J.length1&&X>2&&(Te>4?(H+=` +`.concat(_,"...").concat(T),te=!0):Te>3&&(H+=` + `.concat(ue[X-2]),ne++),H+=` + `.concat(ue[X-1]),ne++),Y=X,H+=` +`.concat(y,"+").concat(T," ").concat(ue[X]),ne++;else{var we=J[X],Re=ue[X],be=Re!==we&&(!w(Re,",")||Re.slice(0,-1)!==we);be&&w(we,",")&&we.slice(0,-1)===Re&&(be=!1,Re+=","),be?(Te>1&&X>2&&(Te>4?(H+=` +`.concat(_,"...").concat(T),te=!0):Te>3&&(H+=` + `.concat(ue[X-2]),ne++),H+=` + `.concat(ue[X-1]),ne++),Y=X,H+=` +`.concat(y,"+").concat(T," ").concat(Re),O+=` +`.concat(E,"-").concat(T," ").concat(we),ne+=2):(H+=O,O="",(Te===1||X===0)&&(H+=` + `.concat(Re),ne++))}if(ne>20&&X30)for(X[26]="".concat(_,"...").concat(T);X.length>27;)X.pop();X.length===1?O=p(this,m(k).call(this,"".concat(J," ").concat(X[0]))):O=p(this,m(k).call(this,"".concat(J,` + +`).concat(X.join(` +`),` +`)))}else{var ee=z(te),V="",Q=s[Y];Y==="notDeepEqual"||Y==="notEqual"?(ee="".concat(s[Y],` + +`).concat(ee),ee.length>1024&&(ee="".concat(ee.slice(0,1021),"..."))):(V="".concat(z(ie)),ee.length>512&&(ee="".concat(ee.slice(0,509),"...")),V.length>512&&(V="".concat(V.slice(0,509),"...")),Y==="deepEqual"||Y==="equal"?ee="".concat(Q,` + +`).concat(ee,` + +should equal + +`):V=" ".concat(Y," ").concat(V)),O=p(this,m(k).call(this,"".concat(ee).concat(V)))}return Error.stackTraceLimit=ue,O.generatedMessage=!H,Object.defineProperty(r(O),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),O.code="ERR_ASSERTION",O.actual=te,O.expected=ie,O.operator=Y,Error.captureStackTrace&&Error.captureStackTrace(r(O),j),O.stack,O.name="AssertionError",p(O)}return v(k,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:u.custom,value:function(O,H){return u(this,C({},H,{customInspect:!1,depth:0}))}}]),k}(a(Error));G.exports=N},86832:function(G,U,e){function g(h){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(u){return typeof u}:g=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},g(h)}function C(h,b){if(!(h instanceof b))throw new TypeError("Cannot call a class as a function")}function i(h,b){return b&&(g(b)==="object"||typeof b=="function")?b:S(h)}function S(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function x(h){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},x(h)}function v(h,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(b&&b.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),b&&p(h,b)}function p(h,b){return p=Object.setPrototypeOf||function(o,d){return o.__proto__=d,o},p(h,b)}var r={},t,a;function n(h,b,u){u||(u=Error);function o(w,A,_){return typeof b=="string"?b:b(w,A,_)}var d=function(w){v(A,w);function A(_,y,E){var T;return C(this,A),T=i(this,x(A).call(this,o(_,y,E))),T.code=h,T}return A}(u);r[h]=d}function f(h,b){if(Array.isArray(h)){var u=h.length;return h=h.map(function(o){return String(o)}),u>2?"one of ".concat(b," ").concat(h.slice(0,u-1).join(", "),", or ")+h[u-1]:u===2?"one of ".concat(b," ").concat(h[0]," or ").concat(h[1]):"of ".concat(b," ").concat(h[0])}else return"of ".concat(b," ").concat(String(h))}function c(h,b,u){return h.substr(!u||u<0?0:+u,b.length)===b}function l(h,b,u){return(u===void 0||u>h.length)&&(u=h.length),h.substring(u-b.length,u)===b}function m(h,b,u){return typeof u!="number"&&(u=0),u+b.length>h.length?!1:h.indexOf(b,u)!==-1}n("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),n("ERR_INVALID_ARG_TYPE",function(h,b,u){t===void 0&&(t=e(45408)),t(typeof h=="string","'name' must be a string");var o;typeof b=="string"&&c(b,"not ")?(o="must not be",b=b.replace(/^not /,"")):o="must be";var d;if(l(h," argument"))d="The ".concat(h," ").concat(o," ").concat(f(b,"type"));else{var w=m(h,".")?"property":"argument";d='The "'.concat(h,'" ').concat(w," ").concat(o," ").concat(f(b,"type"))}return d+=". Received type ".concat(g(u)),d},TypeError),n("ERR_INVALID_ARG_VALUE",function(h,b){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=e(35840));var o=a.inspect(b);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(h,"' ").concat(u,". Received ").concat(o)},TypeError),n("ERR_INVALID_RETURN_VALUE",function(h,b,u){var o;return u&&u.constructor&&u.constructor.name?o="instance of ".concat(u.constructor.name):o="type ".concat(g(u)),"Expected ".concat(h,' to be returned from the "').concat(b,'"')+" function but got ".concat(o,".")},TypeError),n("ERR_MISSING_ARGS",function(){for(var h=arguments.length,b=new Array(h),u=0;u0,"At least one arg needs to be specified");var o="The ",d=b.length;switch(b=b.map(function(w){return'"'.concat(w,'"')}),d){case 1:o+="".concat(b[0]," argument");break;case 2:o+="".concat(b[0]," and ").concat(b[1]," arguments");break;default:o+=b.slice(0,d-1).join(", "),o+=", and ".concat(b[d-1]," arguments");break}return"".concat(o," must be specified")},TypeError),G.exports.codes=r},25116:function(G,U,e){function g(Ae,me){return S(Ae)||i(Ae,me)||C()}function C(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(Ae,me){var Le=[],He=!0,Ue=!1,ke=void 0;try{for(var Ve=Ae[Symbol.iterator](),Ie;!(He=(Ie=Ve.next()).done)&&(Le.push(Ie.value),!(me&&Le.length===me));He=!0);}catch(rt){Ue=!0,ke=rt}finally{try{!He&&Ve.return!=null&&Ve.return()}finally{if(Ue)throw ke}}return Le}function S(Ae){if(Array.isArray(Ae))return Ae}function x(Ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(Le){return typeof Le}:x=function(Le){return Le&&typeof Symbol=="function"&&Le.constructor===Symbol&&Le!==Symbol.prototype?"symbol":typeof Le},x(Ae)}var v=/a/g.flags!==void 0,p=function(me){var Le=[];return me.forEach(function(He){return Le.push(He)}),Le},r=function(me){var Le=[];return me.forEach(function(He,Ue){return Le.push([Ue,He])}),Le},t=Object.is?Object.is:e(39896),a=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},n=Number.isNaN?Number.isNaN:e(1560);function f(Ae){return Ae.call.bind(Ae)}var c=f(Object.prototype.hasOwnProperty),l=f(Object.prototype.propertyIsEnumerable),m=f(Object.prototype.toString),h=e(35840).types,b=h.isAnyArrayBuffer,u=h.isArrayBufferView,o=h.isDate,d=h.isMap,w=h.isRegExp,A=h.isSet,_=h.isNativeError,y=h.isBoxedPrimitive,E=h.isNumberObject,T=h.isStringObject,s=h.isBooleanObject,L=h.isBigIntObject,M=h.isSymbolObject,z=h.isFloat32Array,D=h.isFloat64Array;function N(Ae){if(Ae.length===0||Ae.length>10)return!0;for(var me=0;me57)return!0}return Ae.length===10&&Ae>=Math.pow(2,32)}function I(Ae){return Object.keys(Ae).filter(N).concat(a(Ae).filter(Object.prototype.propertyIsEnumerable.bind(Ae)))}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function k(Ae,me){if(Ae===me)return 0;for(var Le=Ae.length,He=me.length,Ue=0,ke=Math.min(Le,He);Ue"u"?[]:new Uint8Array(256),i=0;i>2],a+=g[(p[r]&3)<<4|p[r+1]>>4],a+=g[(p[r+1]&15)<<2|p[r+2]>>6],a+=g[p[r+2]&63];return t%3===2?a=a.substring(0,a.length-1)+"=":t%3===1&&(a=a.substring(0,a.length-2)+"=="),a},x=function(v){var p=v.length*.75,r=v.length,t,a=0,n,f,c,l;v[v.length-1]==="="&&(p--,v[v.length-2]==="="&&p--);var m=new ArrayBuffer(p),h=new Uint8Array(m);for(t=0;t>4,h[a++]=(f&15)<<4|c>>2,h[a++]=(c&3)<<6|l&63;return m}},59968:function(G,U){U.byteLength=p,U.toByteArray=t,U.fromByteArray=f;for(var e=[],g=[],C=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,x=i.length;S0)throw new Error("Invalid string. Length must be a multiple of 4");var m=c.indexOf("=");m===-1&&(m=l);var h=m===l?0:4-m%4;return[m,h]}function p(c){var l=v(c),m=l[0],h=l[1];return(m+h)*3/4-h}function r(c,l,m){return(l+m)*3/4-m}function t(c){var l,m=v(c),h=m[0],b=m[1],u=new C(r(c,h,b)),o=0,d=b>0?h-4:h,w;for(w=0;w>16&255,u[o++]=l>>8&255,u[o++]=l&255;return b===2&&(l=g[c.charCodeAt(w)]<<2|g[c.charCodeAt(w+1)]>>4,u[o++]=l&255),b===1&&(l=g[c.charCodeAt(w)]<<10|g[c.charCodeAt(w+1)]<<4|g[c.charCodeAt(w+2)]>>2,u[o++]=l>>8&255,u[o++]=l&255),u}function a(c){return e[c>>18&63]+e[c>>12&63]+e[c>>6&63]+e[c&63]}function n(c,l,m){for(var h,b=[],u=l;ud?d:o+u));return h===1?(l=c[m-1],b.push(e[l>>2]+e[l<<4&63]+"==")):h===2&&(l=(c[m-2]<<8)+c[m-1],b.push(e[l>>10]+e[l>>4&63]+e[l<<2&63]+"=")),b.join("")}},64928:function(G){function U(x,v,p,r,t){for(var a=t+1;r<=t;){var n=r+t>>>1,f=x[n],c=p!==void 0?p(f,v):f-v;c>=0?(a=n,t=n-1):r=n+1}return a}function e(x,v,p,r,t){for(var a=t+1;r<=t;){var n=r+t>>>1,f=x[n],c=p!==void 0?p(f,v):f-v;c>0?(a=n,t=n-1):r=n+1}return a}function g(x,v,p,r,t){for(var a=r-1;r<=t;){var n=r+t>>>1,f=x[n],c=p!==void 0?p(f,v):f-v;c<0?(a=n,r=n+1):t=n-1}return a}function C(x,v,p,r,t){for(var a=r-1;r<=t;){var n=r+t>>>1,f=x[n],c=p!==void 0?p(f,v):f-v;c<=0?(a=n,r=n+1):t=n-1}return a}function i(x,v,p,r,t){for(;r<=t;){var a=r+t>>>1,n=x[a],f=p!==void 0?p(n,v):n-v;if(f===0)return a;f<=0?r=a+1:t=a-1}return-1}function S(x,v,p,r,t,a){return typeof p=="function"?a(x,v,p,r===void 0?0:r|0,t===void 0?x.length-1:t|0):a(x,v,void 0,p===void 0?0:p|0,r===void 0?x.length-1:r|0)}G.exports={ge:function(x,v,p,r,t){return S(x,v,p,r,t,U)},gt:function(x,v,p,r,t){return S(x,v,p,r,t,e)},lt:function(x,v,p,r,t){return S(x,v,p,r,t,g)},le:function(x,v,p,r,t){return S(x,v,p,r,t,C)},eq:function(x,v,p,r,t){return S(x,v,p,r,t,i)}}},308:function(G,U){"use restrict";var e=32;U.INT_BITS=e,U.INT_MAX=2147483647,U.INT_MIN=-1<0)-(i<0)},U.abs=function(i){var S=i>>e-1;return(i^S)-S},U.min=function(i,S){return S^(i^S)&-(i65535)<<4,i>>>=S,x=(i>255)<<3,i>>>=x,S|=x,x=(i>15)<<2,i>>>=x,S|=x,x=(i>3)<<1,i>>>=x,S|=x,S|i>>1},U.log10=function(i){return i>=1e9?9:i>=1e8?8:i>=1e7?7:i>=1e6?6:i>=1e5?5:i>=1e4?4:i>=1e3?3:i>=100?2:i>=10?1:0},U.popCount=function(i){return i=i-(i>>>1&1431655765),i=(i&858993459)+(i>>>2&858993459),(i+(i>>>4)&252645135)*16843009>>>24};function g(i){var S=32;return i&=-i,i&&S--,i&65535&&(S-=16),i&16711935&&(S-=8),i&252645135&&(S-=4),i&858993459&&(S-=2),i&1431655765&&(S-=1),S}U.countTrailingZeros=g,U.nextPow2=function(i){return i+=i===0,--i,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i+1},U.prevPow2=function(i){return i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i-(i>>>1)},U.parity=function(i){return i^=i>>>16,i^=i>>>8,i^=i>>>4,i&=15,27030>>>i&1};var C=new Array(256);(function(i){for(var S=0;S<256;++S){var x=S,v=S,p=7;for(x>>>=1;x;x>>>=1)v<<=1,v|=x&1,--p;i[S]=v<>>8&255]<<16|C[i>>>16&255]<<8|C[i>>>24&255]},U.interleave2=function(i,S){return i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,S&=65535,S=(S|S<<8)&16711935,S=(S|S<<4)&252645135,S=(S|S<<2)&858993459,S=(S|S<<1)&1431655765,i|S<<1},U.deinterleave2=function(i,S){return i=i>>>S&1431655765,i=(i|i>>>1)&858993459,i=(i|i>>>2)&252645135,i=(i|i>>>4)&16711935,i=(i|i>>>16)&65535,i<<16>>16},U.interleave3=function(i,S,x){return i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,S&=1023,S=(S|S<<16)&4278190335,S=(S|S<<8)&251719695,S=(S|S<<4)&3272356035,S=(S|S<<2)&1227133513,i|=S<<1,x&=1023,x=(x|x<<16)&4278190335,x=(x|x<<8)&251719695,x=(x|x<<4)&3272356035,x=(x|x<<2)&1227133513,i|x<<2},U.deinterleave3=function(i,S){return i=i>>>S&1227133513,i=(i|i>>>2)&3272356035,i=(i|i>>>4)&251719695,i=(i|i>>>8)&4278190335,i=(i|i>>>16)&1023,i<<22>>22},U.nextCombination=function(i){var S=i|i-1;return S+1|(~S&-~S)-1>>>g(i)+1}},29620:function(G,U,e){var g=e(32420);G.exports=i;var C=1e20;function i(v,p){p||(p={});var r=p.cutoff==null?.25:p.cutoff,t=p.radius==null?8:p.radius,a=p.channel||0,n,f,c,l,m,h,b,u,o,d,w;if(ArrayBuffer.isView(v)||Array.isArray(v)){if(!p.width||!p.height)throw Error("For raw data width and height should be provided by options");n=p.width,f=p.height,l=v,p.stride?h=p.stride:h=Math.floor(v.length/n/f)}else window.HTMLCanvasElement&&v instanceof window.HTMLCanvasElement?(u=v,b=u.getContext("2d"),n=u.width,f=u.height,o=b.getImageData(0,0,n,f),l=o.data,h=4):window.CanvasRenderingContext2D&&v instanceof window.CanvasRenderingContext2D?(u=v.canvas,b=v,n=u.width,f=u.height,o=b.getImageData(0,0,n,f),l=o.data,h=4):window.ImageData&&v instanceof window.ImageData&&(o=v,n=v.width,f=v.height,l=o.data,h=4);if(c=Math.max(n,f),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(m=l,l=Array(n*f),d=0,w=m.length;d-1?C(p):p}},57916:function(G,U,e){var g=e(8844),C=e(53664),i=e(14500),S=C("%TypeError%"),x=C("%Function.prototype.apply%"),v=C("%Function.prototype.call%"),p=C("%Reflect.apply%",!0)||g.call(v,x),r=C("%Object.defineProperty%",!0),t=C("%Math.max%");if(r)try{r({},"a",{value:1})}catch{r=null}G.exports=function(f){if(typeof f!="function")throw new S("a function is required");var c=p(g,v,arguments);return i(c,1+t(0,f.length-(arguments.length-1)),!0)};var a=function(){return p(g,x,arguments)};r?r(G.exports,"apply",{value:a}):G.exports.apply=a},32420:function(G){G.exports=U;function U(e,g,C){return gC?C:e:eg?g:e}},3808:function(G,U,e){var g=e(32420);G.exports=C,G.exports.to=C,G.exports.from=i;function C(S,x){x==null&&(x=!0);var v=S[0],p=S[1],r=S[2],t=S[3];t==null&&(t=x?1:255),x&&(v*=255,p*=255,r*=255,t*=255),v=g(v,0,255)&255,p=g(p,0,255)&255,r=g(r,0,255)&255,t=g(t,0,255)&255;var a=v*16777216+(p<<16)+(r<<8)+t;return a}function i(S,x){S=+S;var v=S>>>24,p=(S&16711680)>>>16,r=(S&65280)>>>8,t=S&255;return x===!1?[v,p,r,t]:[v/255,p/255,r/255,t/255]}},17592:function(G){G.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(G,U,e){var g=e(96824),C=e(32420),i=e(72512);G.exports=function(v,p){(p==="float"||!p)&&(p="array"),p==="uint"&&(p="uint8"),p==="uint_clamped"&&(p="uint8_clamped");var r=i(p),t=new r(4),a=p!=="uint8"&&p!=="uint8_clamped";return(!v.length||typeof v=="string")&&(v=g(v),v[0]/=255,v[1]/=255,v[2]/=255),S(v)?(t[0]=v[0],t[1]=v[1],t[2]=v[2],t[3]=v[3]!=null?v[3]:255,a&&(t[0]/=255,t[1]/=255,t[2]/=255,t[3]/=255),t):(a?(t[0]=v[0],t[1]=v[1],t[2]=v[2],t[3]=v[3]!=null?v[3]:1):(t[0]=C(Math.floor(v[0]*255),0,255),t[1]=C(Math.floor(v[1]*255),0,255),t[2]=C(Math.floor(v[2]*255),0,255),t[3]=v[3]==null?255:C(Math.floor(v[3]*255),0,255)),t)};function S(x){return!!(x instanceof Uint8Array||x instanceof Uint8ClampedArray||Array.isArray(x)&&(x[0]>1||x[0]===0)&&(x[1]>1||x[1]===0)&&(x[2]>1||x[2]===0)&&(!x[3]||x[3]>1))}},96824:function(G,U,e){var g=e(95532),C=e(53576),i=e(32420);G.exports=function(x){var v,p=g(x);return p.space?(v=Array(3),v[0]=i(p.values[0],0,255),v[1]=i(p.values[1],0,255),v[2]=i(p.values[2],0,255),p.space[0]==="h"&&(v=C.rgb(v)),v.push(i(p.alpha,0,1)),v):[]}},95532:function(G,U,e){var g=e(17592);G.exports=i;var C={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function i(S){var x,v=[],p=1,r;if(typeof S=="string")if(S=S.toLowerCase(),g[S])v=g[S].slice(),r="rgb";else if(S==="transparent")p=0,r="rgb",v=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(S)){var t=S.slice(1),a=t.length,n=a<=4;p=1,n?(v=[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)],a===4&&(p=parseInt(t[3]+t[3],16)/255)):(v=[parseInt(t[0]+t[1],16),parseInt(t[2]+t[3],16),parseInt(t[4]+t[5],16)],a===8&&(p=parseInt(t[6]+t[7],16)/255)),v[0]||(v[0]=0),v[1]||(v[1]=0),v[2]||(v[2]=0),r="rgb"}else if(x=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(S)){var f=x[1],c=f==="rgb",t=f.replace(/a$/,"");r=t;var a=t==="cmyk"?4:t==="gray"?1:3;v=x[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,b){if(/%$/.test(h))return b===a?parseFloat(h)/100:t==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(t[b]==="h"){if(/deg$/.test(h))return parseFloat(h);if(C[h]!==void 0)return C[h]}return parseFloat(h)}),f===t&&v.push(1),p=c||v[a]===void 0?1:v[a],v=v.slice(0,a)}else S.length>10&&/[0-9](?:\s|\/)/.test(S)&&(v=S.match(/([0-9]+)/g).map(function(l){return parseFloat(l)}),r=S.match(/([a-z])/ig).join("").toLowerCase());else isNaN(S)?Array.isArray(S)||S.length?(v=[S[0],S[1],S[2]],r="rgb",p=S.length===4?S[3]:1):S instanceof Object&&(S.r!=null||S.red!=null||S.R!=null?(r="rgb",v=[S.r||S.red||S.R||0,S.g||S.green||S.G||0,S.b||S.blue||S.B||0]):(r="hsl",v=[S.h||S.hue||S.H||0,S.s||S.saturation||S.S||0,S.l||S.lightness||S.L||S.b||S.brightness]),p=S.a||S.alpha||S.opacity||1,S.opacity!=null&&(p/=100)):(r="rgb",v=[S>>>16,(S&65280)>>>8,S&255]);return{space:r,values:v,alpha:p}}},53576:function(G,U,e){var g=e(19336);G.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(C){var i=C[0]/360,S=C[1]/100,x=C[2]/100,v,p,r,t,a;if(S===0)return a=x*255,[a,a,a];x<.5?p=x*(1+S):p=x+S-x*S,v=2*x-p,t=[0,0,0];for(var n=0;n<3;n++)r=i+.3333333333333333*-(n-1),r<0?r++:r>1&&r--,6*r<1?a=v+(p-v)*6*r:2*r<1?a=p:3*r<2?a=v+(p-v)*(.6666666666666666-r)*6:a=v,t[n]=a*255;return t}},g.hsl=function(C){var i=C[0]/255,S=C[1]/255,x=C[2]/255,v=Math.min(i,S,x),p=Math.max(i,S,x),r=p-v,t,a,n;return p===v?t=0:i===p?t=(S-x)/r:S===p?t=2+(x-i)/r:x===p&&(t=4+(i-S)/r),t=Math.min(t*60,360),t<0&&(t+=360),n=(v+p)/2,p===v?a=0:n<=.5?a=r/(p+v):a=r/(2-p-v),[t,a*100,n*100]}},19336:function(G){G.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(G){G.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(G,U,e){G.exports={parse:e(46416),stringify:e(49395)}},8744:function(G,U,e){var g=e(30584);G.exports={isSize:function(i){return/^[\d\.]/.test(i)||i.indexOf("/")!==-1||g.indexOf(i)!==-1}}},46416:function(G,U,e){var g=e(92384),C=e(68194),i=e(3748),S=e(2904),x=e(47916),v=e(7294),p=e(39956),r=e(8744).isSize;G.exports=a;var t=a.cache={};function a(f){if(typeof f!="string")throw new Error("Font argument must be a string.");if(t[f])return t[f];if(f==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(f)!==-1)return t[f]={system:f};for(var c={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},l=p(f,/\s+/),m;m=l.shift();){if(C.indexOf(m)!==-1)return["style","variant","weight","stretch"].forEach(function(b){c[b]=m}),t[f]=c;if(x.indexOf(m)!==-1){c.style=m;continue}if(m==="normal"||m==="small-caps"){c.variant=m;continue}if(v.indexOf(m)!==-1){c.stretch=m;continue}if(S.indexOf(m)!==-1){c.weight=m;continue}if(r(m)){var h=p(m,"/");if(c.size=h[0],h[1]!=null?c.lineHeight=n(h[1]):l[0]==="/"&&(l.shift(),c.lineHeight=n(l.shift())),!l.length)throw new Error("Missing required font-family.");return c.family=p(l.join(" "),/\s*,\s*/).map(g),t[f]=c}throw new Error("Unknown or unsupported font token: "+m)}throw new Error("Missing required font-size.")}function n(f){var c=parseFloat(f);return c.toString()===f?c:f}},49395:function(G,U,e){var g=e(55616),C=e(8744).isSize,i=f(e(68194)),S=f(e(3748)),x=f(e(2904)),v=f(e(47916)),p=f(e(7294)),r={normal:1,"small-caps":1},t={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},a={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};G.exports=function(l){if(l=g(l,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),l.system)return l.system&&n(l.system,S),l.system;if(n(l.style,v),n(l.variant,r),n(l.weight,x),n(l.stretch,p),l.size==null&&(l.size=a.size),typeof l.size=="number"&&(l.size+="px"),!C)throw Error("Bad size value `"+l.size+"`");l.family||(l.family=a.family),Array.isArray(l.family)&&(l.family.length||(l.family=[a.family]),l.family=l.family.map(function(h){return t[h]?h:'"'+h+'"'}).join(", "));var m=[];return m.push(l.style),l.variant!==l.style&&m.push(l.variant),l.weight!==l.variant&&l.weight!==l.style&&m.push(l.weight),l.stretch!==l.weight&&l.stretch!==l.variant&&l.stretch!==l.style&&m.push(l.stretch),m.push(l.size+(l.lineHeight==null||l.lineHeight==="normal"||l.lineHeight+""=="1"?"":"/"+l.lineHeight)),m.push(l.family),m.filter(Boolean).join(" ")};function n(c,l){if(c&&!l[c]&&!i[c])throw Error("Unknown keyword `"+c+"`");return c}function f(c){for(var l={},m=0;mf?1:n>=f?0:NaN}function C(n){return n.length===1&&(n=i(n)),{left:function(f,c,l,m){for(l==null&&(l=0),m==null&&(m=f.length);l>>1;n(f[h],c)<0?l=h+1:m=h}return l},right:function(f,c,l,m){for(l==null&&(l=0),m==null&&(m=f.length);l>>1;n(f[h],c)>0?m=h:l=h+1}return l}}}function i(n){return function(f,c){return g(n(f),c)}}C(g);function S(n,f){var c=n.length,l=-1,m,h;if(f==null){for(;++l=m)for(h=m;++lh&&(h=m)}else for(;++l=m)for(h=m;++lh&&(h=m);return h}function x(n){return n===null?NaN:+n}function v(n,f){var c=n.length,l=c,m=-1,h,b=0;if(f==null)for(;++m=0;)for(b=n[f],c=b.length;--c>=0;)h[--m]=b[c];return h}function r(n,f){var c=n.length,l=-1,m,h;if(f==null){for(;++l=m)for(h=m;++lm&&(h=m)}else for(;++l=m)for(h=m;++lm&&(h=m);return h}function t(n,f,c){n=+n,f=+f,c=(m=arguments.length)<2?(f=n,n=0,1):m<3?1:+c;for(var l=-1,m=Math.max(0,Math.ceil((f-n)/c))|0,h=new Array(m);++l=f.length)return l!=null&&o.sort(l),m!=null?m(o):o;for(var _=-1,y=o.length,E=f[d++],T,s,L=S(),M,z=w();++_f.length)return o;var w,A=c[d-1];return m!=null&&d>=f.length?w=o.entries():(w=[],o.each(function(_,y){w.push({key:y,values:u(_,d)})})),A!=null?w.sort(function(_,y){return A(_.key,y.key)}):w}return h={object:function(o){return b(o,0,v,p)},map:function(o){return b(o,0,r,t)},entries:function(o){return u(b(o,0,r,t),0)},key:function(o){return f.push(o),h},sortKeys:function(o){return c[f.length-1]=o,h},sortValues:function(o){return l=o,h},rollup:function(o){return m=o,h}}}function v(){return{}}function p(f,c,l){f[c]=l}function r(){return S()}function t(f,c,l){f.set(c,l)}function a(){}var n=S.prototype;a.prototype={constructor:a,has:n.has,add:function(f){return f+="",this[g+f]=f,this},remove:n.remove,clear:n.clear,values:n.keys,size:n.size,empty:n.empty,each:n.each}},49812:function(G,U,e){e.r(U),e.d(U,{forceCenter:function(){return g},forceCollide:function(){return L},forceLink:function(){return N},forceManyBody:function(){return Ve},forceRadial:function(){return Ie},forceSimulation:function(){return ke},forceX:function(){return rt},forceY:function(){return Ke}});function g($e,lt){var ht;$e==null&&($e=0),lt==null&&(lt=0);function dt(){var xt,St=ht.length,nt,ze=0,Xe=0;for(xt=0;xt=(Fe=(ze+Je)/2))?ze=Fe:Je=Fe,(Ne=ht>=(xe=(Xe+We)/2))?Xe=xe:We=xe,xt=St,!(St=St[je=Ne<<1|Me]))return xt[je]=nt,$e;if(ye=+$e._x.call(null,St.data),Ee=+$e._y.call(null,St.data),lt===ye&&ht===Ee)return nt.next=St,xt?xt[je]=nt:$e._root=nt,$e;do xt=xt?xt[je]=new Array(4):$e._root=new Array(4),(Me=lt>=(Fe=(ze+Je)/2))?ze=Fe:Je=Fe,(Ne=ht>=(xe=(Xe+We)/2))?Xe=xe:We=xe;while((je=Ne<<1|Me)===(it=(Ee>=xe)<<1|ye>=Fe));return xt[it]=St,xt[je]=nt,$e}function v($e){var lt,ht,dt=$e.length,xt,St,nt=new Array(dt),ze=new Array(dt),Xe=1/0,Je=1/0,We=-1/0,Fe=-1/0;for(ht=0;htWe&&(We=xt),StFe&&(Fe=St));if(Xe>We||Je>Fe)return this;for(this.cover(Xe,Je).cover(We,Fe),ht=0;ht$e||$e>=xt||dt>lt||lt>=St;)switch(Je=(ltWe||(ze=Ee.y0)>Fe||(Xe=Ee.x1)=je)<<1|$e>=Ne)&&(Ee=xe[xe.length-1],xe[xe.length-1]=xe[xe.length-1-Me],xe[xe.length-1-Me]=Ee)}else{var it=$e-+this._x.call(null,ye.data),mt=lt-+this._y.call(null,ye.data),bt=it*it+mt*mt;if(bt=(xe=(nt+Xe)/2))?nt=xe:Xe=xe,(Me=Fe>=(ye=(ze+Je)/2))?ze=ye:Je=ye,lt=ht,!(ht=ht[Ne=Me<<1|Ee]))return this;if(!ht.length)break;(lt[Ne+1&3]||lt[Ne+2&3]||lt[Ne+3&3])&&(dt=lt,je=Ne)}for(;ht.data!==$e;)if(xt=ht,!(ht=ht.next))return this;return(St=ht.next)&&delete ht.next,xt?(St?xt.next=St:delete xt.next,this):lt?(St?lt[Ne]=St:delete lt[Ne],(ht=lt[0]||lt[1]||lt[2]||lt[3])&&ht===(lt[3]||lt[2]||lt[1]||lt[0])&&!ht.length&&(dt?dt[je]=ht:this._root=ht),this):(this._root=St,this)}function c($e){for(var lt=0,ht=$e.length;ltFe.index){var ir=xe-ct.x-ct.vx,pt=ye-ct.y-ct.vy,Xt=ir*ir+pt*pt;Xtxe+Bt||vtye+Bt||LtXe.r&&(Xe.r=Xe[Je].r)}function ze(){if(lt){var Xe,Je=lt.length,We;for(ht=new Array(Je),Xe=0;Xe=0&&(dt=ht.slice(xt+1),ht=ht.slice(0,xt)),ht&&!lt.hasOwnProperty(ht))throw new Error("unknown type: "+ht);return{type:ht,name:dt}})}B.prototype=k.prototype={constructor:B,on:function($e,lt){var ht=this._,dt=O($e+"",ht),xt,St=-1,nt=dt.length;if(arguments.length<2){for(;++St0)for(var ht=new Array(xt),dt=0,xt,St;dt=0&&$e._call.call(null,lt),$e=$e._next;--te}function we(){Q=(V=$.now())+oe,te=ie=0;try{Te()}finally{te=0,be(),Q=0}}function Re(){var $e=$.now(),lt=$e-V;lt>J&&(oe-=lt,V=$e)}function be(){for(var $e,lt=X,ht,dt=1/0;lt;)lt._call?(dt>lt._time&&(dt=lt._time),$e=lt,lt=lt._next):(ht=lt._next,lt._next=null,lt=$e?$e._next=ht:X=ht);ee=$e,Ae(dt)}function Ae($e){if(!te){ie&&(ie=clearTimeout(ie));var lt=$e-Q;lt>24?($e<1/0&&(ie=setTimeout(we,$e-$.now()-oe)),ue&&(ue=clearInterval(ue))):(ue||(V=$.now(),ue=setInterval(Re,J)),te=1,Z(we))}}function me($e){return $e.x}function Le($e){return $e.y}var He=10,Ue=Math.PI*(3-Math.sqrt(5));function ke($e){var lt,ht=1,dt=.001,xt=1-Math.pow(dt,1/300),St=0,nt=.6,ze=(0,M.kH)(),Xe=ge(We),Je=j("tick","end");$e==null&&($e=[]);function We(){Fe(),Je.call("tick",lt),ht1?(Me==null?ze.remove(Ee):ze.set(Ee,ye(Me)),lt):ze.get(Ee)},find:function(Ee,Me,Ne){var je=0,it=$e.length,mt,bt,vt,Lt,ct;for(Ne==null?Ne=1/0:Ne*=Ne,je=0;je1?(Je.on(Ee,Me),lt):Je.on(Ee)}}}function Ve(){var $e,lt,ht,dt=C(-30),xt,St=1,nt=1/0,ze=.81;function Xe(xe){var ye,Ee=$e.length,Me=A($e,me,Le).visitAfter(We);for(ht=xe,ye=0;ye=nt)return;(xe.data!==lt||xe.next)&&(Ne===0&&(Ne=i(),mt+=Ne*Ne),je===0&&(je=i(),mt+=je*je),mt=1e21?w.toLocaleString("en").replace(/,/g,""):w.toString(10)}function C(w,A){if((_=(w=A?w.toExponential(A-1):w.toExponential()).indexOf("e"))<0)return null;var _,y=w.slice(0,_);return[y.length>1?y[0]+y.slice(2):y,+w.slice(_+1)]}function i(w){return w=C(Math.abs(w)),w?w[1]:NaN}function S(w,A){return function(_,y){for(var E=_.length,T=[],s=0,L=w[0],M=0;E>0&&L>0&&(M+L+1>y&&(L=Math.max(1,y-M)),T.push(_.substring(E-=L,E+L)),!((M+=L+1)>y));)L=w[s=(s+1)%w.length];return T.reverse().join(A)}}function x(w){return function(A){return A.replace(/[0-9]/g,function(_){return w[+_]})}}var v=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p(w){if(!(A=v.exec(w)))throw new Error("invalid format: "+w);var A;return new r({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}p.prototype=r.prototype;function r(w){this.fill=w.fill===void 0?" ":w.fill+"",this.align=w.align===void 0?">":w.align+"",this.sign=w.sign===void 0?"-":w.sign+"",this.symbol=w.symbol===void 0?"":w.symbol+"",this.zero=!!w.zero,this.width=w.width===void 0?void 0:+w.width,this.comma=!!w.comma,this.precision=w.precision===void 0?void 0:+w.precision,this.trim=!!w.trim,this.type=w.type===void 0?"":w.type+""}r.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function t(w){e:for(var A=w.length,_=1,y=-1,E;_0&&(y=0);break}return y>0?w.slice(0,y)+w.slice(E+1):w}var a;function n(w,A){var _=C(w,A);if(!_)return w+"";var y=_[0],E=_[1],T=E-(a=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1,s=y.length;return T===s?y:T>s?y+new Array(T-s+1).join("0"):T>0?y.slice(0,T)+"."+y.slice(T):"0."+new Array(1-T).join("0")+C(w,Math.max(0,A+T-1))[0]}function f(w,A){var _=C(w,A);if(!_)return w+"";var y=_[0],E=_[1];return E<0?"0."+new Array(-E).join("0")+y:y.length>E+1?y.slice(0,E+1)+"."+y.slice(E+1):y+new Array(E-y.length+2).join("0")}var c={"%":function(w,A){return(w*100).toFixed(A)},b:function(w){return Math.round(w).toString(2)},c:function(w){return w+""},d:g,e:function(w,A){return w.toExponential(A)},f:function(w,A){return w.toFixed(A)},g:function(w,A){return w.toPrecision(A)},o:function(w){return Math.round(w).toString(8)},p:function(w,A){return f(w*100,A)},r:f,s:n,X:function(w){return Math.round(w).toString(16).toUpperCase()},x:function(w){return Math.round(w).toString(16)}};function l(w){return w}var m=Array.prototype.map,h=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function b(w){var A=w.grouping===void 0||w.thousands===void 0?l:S(m.call(w.grouping,Number),w.thousands+""),_=w.currency===void 0?"":w.currency[0]+"",y=w.currency===void 0?"":w.currency[1]+"",E=w.decimal===void 0?".":w.decimal+"",T=w.numerals===void 0?l:x(m.call(w.numerals,String)),s=w.percent===void 0?"%":w.percent+"",L=w.minus===void 0?"-":w.minus+"",M=w.nan===void 0?"NaN":w.nan+"";function z(N){N=p(N);var I=N.fill,k=N.align,B=N.sign,O=N.symbol,H=N.zero,Y=N.width,j=N.comma,te=N.precision,ie=N.trim,ue=N.type;ue==="n"?(j=!0,ue="g"):c[ue]||(te===void 0&&(te=12),ie=!0,ue="g"),(H||I==="0"&&k==="=")&&(H=!0,I="0",k="=");var J=O==="$"?_:O==="#"&&/[boxX]/.test(ue)?"0"+ue.toLowerCase():"",X=O==="$"?y:/[%p]/.test(ue)?s:"",ee=c[ue],V=/[defgprs%]/.test(ue);te=te===void 0?6:/[gprs]/.test(ue)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Q(oe){var $=J,Z=X,se,ne,ce;if(ue==="c")Z=ee(oe)+Z,oe="";else{oe=+oe;var ge=oe<0||1/oe<0;if(oe=isNaN(oe)?M:ee(Math.abs(oe),te),ie&&(oe=t(oe)),ge&&+oe==0&&B!=="+"&&(ge=!1),$=(ge?B==="("?B:L:B==="-"||B==="("?"":B)+$,Z=(ue==="s"?h[8+a/3]:"")+Z+(ge&&B==="("?")":""),V){for(se=-1,ne=oe.length;++sece||ce>57){Z=(ce===46?E+oe.slice(se+1):oe.slice(se))+Z,oe=oe.slice(0,se);break}}}j&&!H&&(oe=A(oe,1/0));var Te=$.length+oe.length+Z.length,we=Te>1)+$+oe+Z+we.slice(Te);break;default:oe=we+$+oe+Z;break}return T(oe)}return Q.toString=function(){return N+""},Q}function D(N,I){var k=z((N=p(N),N.type="f",N)),B=Math.max(-8,Math.min(8,Math.floor(i(I)/3)))*3,O=Math.pow(10,-B),H=h[8+B/3];return function(Y){return k(O*Y)+H}}return{format:z,formatPrefix:D}}var u,o;d({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function d(w){return u=b(w),o=u.format,u.formatPrefix,u}},87108:function(G,U,e){e.r(U),e.d(U,{geoAiry:function(){return H},geoAiryRaw:function(){return O},geoAitoff:function(){return j},geoAitoffRaw:function(){return Y},geoArmadillo:function(){return ie},geoArmadilloRaw:function(){return te},geoAugust:function(){return J},geoAugustRaw:function(){return ue},geoBaker:function(){return Q},geoBakerRaw:function(){return V},geoBerghaus:function(){return Z},geoBerghausRaw:function(){return $},geoBertin1953:function(){return be},geoBertin1953Raw:function(){return Re},geoBoggs:function(){return Ie},geoBoggsRaw:function(){return Ve},geoBonne:function(){return ht},geoBonneRaw:function(){return lt},geoBottomley:function(){return xt},geoBottomleyRaw:function(){return dt},geoBromley:function(){return nt},geoBromleyRaw:function(){return St},geoChamberlin:function(){return Me},geoChamberlinAfrica:function(){return Ee},geoChamberlinRaw:function(){return xe},geoCollignon:function(){return je},geoCollignonRaw:function(){return Ne},geoCraig:function(){return mt},geoCraigRaw:function(){return it},geoCraster:function(){return Lt},geoCrasterRaw:function(){return vt},geoCylindricalEqualArea:function(){return Tt},geoCylindricalEqualAreaRaw:function(){return ct},geoCylindricalStereographic:function(){return ir},geoCylindricalStereographicRaw:function(){return Bt},geoEckert1:function(){return Xt},geoEckert1Raw:function(){return pt},geoEckert2:function(){return or},geoEckert2Raw:function(){return Kt},geoEckert3:function(){return gt},geoEckert3Raw:function(){return $t},geoEckert4:function(){return At},geoEckert4Raw:function(){return st},geoEckert5:function(){return It},geoEckert5Raw:function(){return Ct},geoEckert6:function(){return kt},geoEckert6Raw:function(){return Pt},geoEisenlohr:function(){return ur},geoEisenlohrRaw:function(){return Jt},geoFahey:function(){return Ye},geoFaheyRaw:function(){return vr},geoFoucaut:function(){return Nt},geoFoucautRaw:function(){return Ge},geoFoucautSinusoidal:function(){return Qt},geoFoucautSinusoidalRaw:function(){return Ot},geoGilbert:function(){return dr},geoGingery:function(){return Gr},geoGingeryRaw:function(){return mr},geoGinzburg4:function(){return cn},geoGinzburg4Raw:function(){return Dr},geoGinzburg5:function(){return Cn},geoGinzburg5Raw:function(){return rn},geoGinzburg6:function(){return Tr},geoGinzburg6Raw:function(){return En},geoGinzburg8:function(){return Wr},geoGinzburg8Raw:function(){return Cr},geoGinzburg9:function(){return an},geoGinzburg9Raw:function(){return Ur},geoGringorten:function(){return ni},geoGringortenQuincuncial:function(){return Ic},geoGringortenRaw:function(){return gn},geoGuyou:function(){return dn},geoGuyouRaw:function(){return wr},geoHammer:function(){return ge},geoHammerRaw:function(){return ne},geoHammerRetroazimuthal:function(){return Bn},geoHammerRetroazimuthalRaw:function(){return Tn},geoHealpix:function(){return sn},geoHealpixRaw:function(){return Ar},geoHill:function(){return Zr},geoHillRaw:function(){return Er},geoHomolosine:function(){return Un},geoHomolosineRaw:function(){return Pn},geoHufnagel:function(){return mi},geoHufnagelRaw:function(){return On},geoHyperelliptical:function(){return pa},geoHyperellipticalRaw:function(){return Ci},geoInterrupt:function(){return Qa},geoInterruptedBoggs:function(){return Nu},geoInterruptedHomolosine:function(){return $i},geoInterruptedMollweide:function(){return Bu},geoInterruptedMollweideHemispheres:function(){return ho},geoInterruptedQuarticAuthalic:function(){return Ls},geoInterruptedSinuMollweide:function(){return vu},geoInterruptedSinusoidal:function(){return ll},geoKavrayskiy7:function(){return Ua},geoKavrayskiy7Raw:function(){return za},geoLagrange:function(){return $a},geoLagrangeRaw:function(){return ul},geoLarrivee:function(){return wf},geoLarriveeRaw:function(){return _o},geoLaskowski:function(){return xc},geoLaskowskiRaw:function(){return bo},geoLittrow:function(){return Za},geoLittrowRaw:function(){return es},geoLoximuthal:function(){return Cs},geoLoximuthalRaw:function(){return Uu},geoMiller:function(){return Hu},geoMillerRaw:function(){return ts},geoModifiedStereographic:function(){return Ys},geoModifiedStereographicAlaska:function(){return Vu},geoModifiedStereographicGs48:function(){return Mc},geoModifiedStereographicGs50:function(){return Sc},geoModifiedStereographicLee:function(){return Mf},geoModifiedStereographicMiller:function(){return Af},geoModifiedStereographicRaw:function(){return Tf},geoMollweide:function(){return He},geoMollweideRaw:function(){return Le},geoMtFlatPolarParabolic:function(){return Sf},geoMtFlatPolarParabolicRaw:function(){return kl},geoMtFlatPolarQuartic:function(){return Ec},geoMtFlatPolarQuarticRaw:function(){return vs},geoMtFlatPolarSinusoidal:function(){return Ef},geoMtFlatPolarSinusoidalRaw:function(){return pu},geoNaturalEarth:function(){return _f.c},geoNaturalEarth2:function(){return Uo},geoNaturalEarth2Raw:function(){return gu},geoNaturalEarthRaw:function(){return _f.g},geoNellHammer:function(){return Xs},geoNellHammerRaw:function(){return cl},geoNicolosi:function(){return Gu},geoNicolosiRaw:function(){return rs},geoPatterson:function(){return pl},geoPattersonRaw:function(){return yu},geoPeirceQuincuncial:function(){return If},geoPierceQuincuncial:function(){return If},geoPolyconic:function(){return Cc},geoPolyconicRaw:function(){return xu},geoPolyhedral:function(){return ga},geoPolyhedralButterfly:function(){return Bl},geoPolyhedralCollignon:function(){return js},geoPolyhedralWaterman:function(){return Rs},geoProject:function(){return Rc},geoQuantize:function(){return Ff},geoQuincuncial:function(){return gs},geoRectangularPolyconic:function(){return zf},geoRectangularPolyconicRaw:function(){return Ju},geoRobinson:function(){return Ds},geoRobinsonRaw:function(){return Xo},geoSatellite:function(){return Ks},geoSatelliteRaw:function(){return Au},geoSinuMollweide:function(){return Ln},geoSinuMollweideRaw:function(){return wn},geoSinusoidal:function(){return $e},geoSinusoidalRaw:function(){return Ke},geoStitch:function(){return Xl},geoTimes:function(){return Ha},geoTimesRaw:function(){return zs},geoTwoPointAzimuthal:function(){return Eu},geoTwoPointAzimuthalRaw:function(){return $u},geoTwoPointAzimuthalUsa:function(){return Qs},geoTwoPointEquidistant:function(){return Nf},geoTwoPointEquidistantRaw:function(){return Zl},geoTwoPointEquidistantUsa:function(){return Fc},geoVanDerGrinten:function(){return jl},geoVanDerGrinten2:function(){return Bf},geoVanDerGrinten2Raw:function(){return Sl},geoVanDerGrinten3:function(){return zc},geoVanDerGrinten3Raw:function(){return ks},geoVanDerGrinten4:function(){return Kl},geoVanDerGrinten4Raw:function(){return To},geoVanDerGrintenRaw:function(){return lo},geoWagner:function(){return Os},geoWagner4:function(){return Uf},geoWagner4Raw:function(){return Cu},geoWagner6:function(){return ef},geoWagner6Raw:function(){return $l},geoWagner7:function(){return qu},geoWagnerRaw:function(){return xs},geoWiechel:function(){return tf},geoWiechelRaw:function(){return $s},geoWinkel3:function(){return Hf},geoWinkel3Raw:function(){return ql}});var g=e(87952),C=Math.abs,i=Math.atan,S=Math.atan2,x=Math.cos,v=Math.exp,p=Math.floor,r=Math.log,t=Math.max,a=Math.min,n=Math.pow,f=Math.round,c=Math.sign||function(qe){return qe>0?1:qe<0?-1:0},l=Math.sin,m=Math.tan,h=1e-6,b=1e-12,u=Math.PI,o=u/2,d=u/4,w=Math.SQRT1_2,A=z(2),_=z(u),y=u*2,E=180/u,T=u/180;function s(qe){return qe?qe/Math.sin(qe):1}function L(qe){return qe>1?o:qe<-1?-o:Math.asin(qe)}function M(qe){return qe>1?0:qe<-1?u:Math.acos(qe)}function z(qe){return qe>0?Math.sqrt(qe):0}function D(qe){return qe=v(2*qe),(qe-1)/(qe+1)}function N(qe){return(v(qe)-v(-qe))/2}function I(qe){return(v(qe)+v(-qe))/2}function k(qe){return r(qe+z(qe*qe+1))}function B(qe){return r(qe+z(qe*qe-1))}function O(qe){var ot=m(qe/2),wt=2*r(x(qe/2))/(ot*ot);function Mt(Ut,zt){var Gt=x(Ut),gr=x(zt),br=l(zt),sr=gr*Gt,Mr=-((1-sr?r((1+sr)/2)/(1-sr):-.5)+wt/(1+sr));return[Mr*gr*l(Ut),Mr*br]}return Mt.invert=function(Ut,zt){var Gt=z(Ut*Ut+zt*zt),gr=-qe/2,br=50,sr;if(!Gt)return[0,0];do{var Mr=gr/2,Ir=x(Mr),Nr=l(Mr),tn=Nr/Ir,yn=-r(C(Ir));gr-=sr=(2/tn*yn-wt*tn-Gt)/(-yn/(Nr*Nr)+1-wt/(2*Ir*Ir))*(Ir<0?.7:1)}while(C(sr)>h&&--br>0);var Rn=l(gr);return[S(Ut*Rn,Gt*x(gr)),L(zt*Rn/Gt)]},Mt}function H(){var qe=o,ot=(0,g.U)(O),wt=ot(qe);return wt.radius=function(Mt){return arguments.length?ot(qe=Mt*T):qe*E},wt.scale(179.976).clipAngle(147)}function Y(qe,ot){var wt=x(ot),Mt=s(M(wt*x(qe/=2)));return[2*wt*l(qe)*Mt,l(ot)*Mt]}Y.invert=function(qe,ot){if(!(qe*qe+4*ot*ot>u*u+h)){var wt=qe,Mt=ot,Ut=25;do{var zt=l(wt),Gt=l(wt/2),gr=x(wt/2),br=l(Mt),sr=x(Mt),Mr=l(2*Mt),Ir=br*br,Nr=sr*sr,tn=Gt*Gt,yn=1-Nr*gr*gr,Rn=yn?M(sr*gr)*z(Dn=1/yn):Dn=0,Dn,Zn=2*Rn*sr*Gt-qe,Li=Rn*br-ot,Pi=Dn*(Nr*tn+Rn*sr*gr*Ir),Ri=Dn*(.5*zt*Mr-Rn*2*br*Gt),zi=Dn*.25*(Mr*Gt-Rn*br*Nr*zt),Xi=Dn*(Ir*gr+Rn*tn*sr),va=Ri*zi-Xi*Pi;if(!va)break;var Ia=(Li*Ri-Zn*Xi)/va,fe=(Zn*zi-Li*Pi)/va;wt-=Ia,Mt-=fe}while((C(Ia)>h||C(fe)>h)&&--Ut>0);return[wt,Mt]}};function j(){return(0,g.c)(Y).scale(152.63)}function te(qe){var ot=l(qe),wt=x(qe),Mt=qe>=0?1:-1,Ut=m(Mt*qe),zt=(1+ot-wt)/2;function Gt(gr,br){var sr=x(br),Mr=x(gr/=2);return[(1+sr)*l(gr),(Mt*br>-S(Mr,Ut)-.001?0:-Mt*10)+zt+l(br)*wt-(1+sr)*ot*Mr]}return Gt.invert=function(gr,br){var sr=0,Mr=0,Ir=50;do{var Nr=x(sr),tn=l(sr),yn=x(Mr),Rn=l(Mr),Dn=1+yn,Zn=Dn*tn-gr,Li=zt+Rn*wt-Dn*ot*Nr-br,Pi=Dn*Nr/2,Ri=-tn*Rn,zi=ot*Dn*tn/2,Xi=wt*yn+ot*Nr*Rn,va=Ri*zi-Xi*Pi,Ia=(Li*Ri-Zn*Xi)/va/2,fe=(Zn*zi-Li*Pi)/va;C(fe)>2&&(fe/=2),sr-=Ia,Mr-=fe}while((C(Ia)>h||C(fe)>h)&&--Ir>0);return Mt*Mr>-S(x(sr),Ut)-.001?[sr*2,Mr]:null},Gt}function ie(){var qe=20*T,ot=qe>=0?1:-1,wt=m(ot*qe),Mt=(0,g.U)(te),Ut=Mt(qe),zt=Ut.stream;return Ut.parallel=function(Gt){return arguments.length?(wt=m((ot=(qe=Gt*T)>=0?1:-1)*qe),Mt(qe)):qe*E},Ut.stream=function(Gt){var gr=Ut.rotate(),br=zt(Gt),sr=(Ut.rotate([0,0]),zt(Gt)),Mr=Ut.precision();return Ut.rotate(gr),br.sphere=function(){sr.polygonStart(),sr.lineStart();for(var Ir=ot*-180;ot*Ir<180;Ir+=ot*90)sr.point(Ir,ot*90);if(qe)for(;ot*(Ir-=3*ot*Mr)>=-180;)sr.point(Ir,ot*-S(x(Ir*T/2),wt)*E);sr.lineEnd(),sr.polygonEnd()},br},Ut.scale(218.695).center([0,28.0974])}function ue(qe,ot){var wt=m(ot/2),Mt=z(1-wt*wt),Ut=1+Mt*x(qe/=2),zt=l(qe)*Mt/Ut,Gt=wt/Ut,gr=zt*zt,br=Gt*Gt;return[1.3333333333333333*zt*(3+gr-3*br),1.3333333333333333*Gt*(3+3*gr-br)]}ue.invert=function(qe,ot){if(qe*=.375,ot*=.375,!qe&&C(ot)>1)return null;var wt=qe*qe,Mt=ot*ot,Ut=1+wt+Mt,zt=z((Ut-z(Ut*Ut-4*ot*ot))/2),Gt=L(zt)/3,gr=zt?B(C(ot/zt))/3:k(C(qe))/3,br=x(Gt),sr=I(gr),Mr=sr*sr-br*br;return[c(qe)*2*S(N(gr)*br,.25-Mr),c(ot)*2*S(sr*l(Gt),.25+Mr)]};function J(){return(0,g.c)(ue).scale(66.1603)}var X=z(8),ee=r(1+A);function V(qe,ot){var wt=C(ot);return wtb&&--Mt>0);return[qe/(x(wt)*(X-1/l(wt))),c(ot)*wt]};function Q(){return(0,g.c)(V).scale(112.314)}var oe=e(69020);function $(qe){var ot=2*u/qe;function wt(Mt,Ut){var zt=(0,oe.O)(Mt,Ut);if(C(Mt)>o){var Gt=S(zt[1],zt[0]),gr=z(zt[0]*zt[0]+zt[1]*zt[1]),br=ot*f((Gt-o)/ot)+o,sr=S(l(Gt-=br),2-x(Gt));Gt=br+L(u/gr*l(sr))-sr,zt[0]=gr*x(Gt),zt[1]=gr*l(Gt)}return zt}return wt.invert=function(Mt,Ut){var zt=z(Mt*Mt+Ut*Ut);if(zt>o){var Gt=S(Ut,Mt),gr=ot*f((Gt-o)/ot)+o,br=Gt>gr?-1:1,sr=zt*x(gr-Gt),Mr=1/m(br*M((sr-u)/z(u*(u-2*sr)+zt*zt)));Gt=gr+2*i((Mr+br*z(Mr*Mr-3))/3),Mt=zt*x(Gt),Ut=zt*l(Gt)}return oe.O.invert(Mt,Ut)},wt}function Z(){var qe=5,ot=(0,g.U)($),wt=ot(qe),Mt=wt.stream,Ut=.01,zt=-x(Ut*T),Gt=l(Ut*T);return wt.lobes=function(gr){return arguments.length?ot(qe=+gr):qe},wt.stream=function(gr){var br=wt.rotate(),sr=Mt(gr),Mr=(wt.rotate([0,0]),Mt(gr));return wt.rotate(br),sr.sphere=function(){Mr.polygonStart(),Mr.lineStart();for(var Ir=0,Nr=360/qe,tn=2*u/qe,yn=90-180/qe,Rn=o;Ir0&&C(Ut)>h);return Mt<0?NaN:wt}function we(qe,ot,wt){return ot===void 0&&(ot=40),wt===void 0&&(wt=b),function(Mt,Ut,zt,Gt){var gr,br,sr;zt=zt===void 0?0:+zt,Gt=Gt===void 0?0:+Gt;for(var Mr=0;Mrgr){zt-=br/=2,Gt-=sr/=2;continue}gr=yn;var Rn=(zt>0?-1:1)*wt,Dn=(Gt>0?-1:1)*wt,Zn=qe(zt+Rn,Gt),Li=qe(zt,Gt+Dn),Pi=(Zn[0]-Ir[0])/Rn,Ri=(Zn[1]-Ir[1])/Rn,zi=(Li[0]-Ir[0])/Dn,Xi=(Li[1]-Ir[1])/Dn,va=Xi*Pi-Ri*zi,Ia=(C(va)<.5?.5:1)/va;if(br=(tn*zi-Nr*Xi)*Ia,sr=(Nr*Ri-tn*Pi)*Ia,zt+=br,Gt+=sr,C(br)0&&(gr[1]*=1+br/1.5*gr[0]*gr[0]),gr}return Mt.invert=we(Mt),Mt}function be(){return(0,g.c)(Re()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ae(qe,ot){var wt=qe*l(ot),Mt=30,Ut;do ot-=Ut=(ot+l(ot)-wt)/(1+x(ot));while(C(Ut)>h&&--Mt>0);return ot/2}function me(qe,ot,wt){function Mt(Ut,zt){return[qe*Ut*x(zt=Ae(wt,zt)),ot*l(zt)]}return Mt.invert=function(Ut,zt){return zt=L(zt/ot),[Ut/(qe*x(zt)),L((2*zt+l(2*zt))/wt)]},Mt}var Le=me(A/o,A,u);function He(){return(0,g.c)(Le).scale(169.529)}var Ue=2.00276,ke=1.11072;function Ve(qe,ot){var wt=Ae(u,ot);return[Ue*qe/(1/x(ot)+ke/x(wt)),(ot+A*l(wt))/Ue]}Ve.invert=function(qe,ot){var wt=Ue*ot,Mt=ot<0?-d:d,Ut=25,zt,Gt;do Gt=wt-A*l(Mt),Mt-=zt=(l(2*Mt)+2*Mt-u*l(Gt))/(2*x(2*Mt)+2+u*x(Gt)*A*x(Mt));while(C(zt)>h&&--Ut>0);return Gt=wt-A*l(Mt),[qe*(1/x(Gt)+ke/x(Mt))/Ue,Gt]};function Ie(){return(0,g.c)(Ve).scale(160.857)}function rt(qe){var ot=0,wt=(0,g.U)(qe),Mt=wt(ot);return Mt.parallel=function(Ut){return arguments.length?wt(ot=Ut*T):ot*E},Mt}function Ke(qe,ot){return[qe*x(ot),ot]}Ke.invert=function(qe,ot){return[qe/x(ot),ot]};function $e(){return(0,g.c)(Ke).scale(152.63)}function lt(qe){if(!qe)return Ke;var ot=1/m(qe);function wt(Mt,Ut){var zt=ot+qe-Ut,Gt=zt&&Mt*x(Ut)/zt;return[zt*l(Gt),ot-zt*x(Gt)]}return wt.invert=function(Mt,Ut){var zt=z(Mt*Mt+(Ut=ot-Ut)*Ut),Gt=ot+qe-zt;return[zt/x(Gt)*S(Mt,Ut),Gt]},wt}function ht(){return rt(lt).scale(123.082).center([0,26.1441]).parallel(45)}function dt(qe){function ot(wt,Mt){var Ut=o-Mt,zt=Ut&&wt*qe*l(Ut)/Ut;return[Ut*l(zt)/qe,o-Ut*x(zt)]}return ot.invert=function(wt,Mt){var Ut=wt*qe,zt=o-Mt,Gt=z(Ut*Ut+zt*zt),gr=S(Ut,zt);return[(Gt?Gt/l(Gt):1)*gr/qe,o-Gt]},ot}function xt(){var qe=.5,ot=(0,g.U)(dt),wt=ot(qe);return wt.fraction=function(Mt){return arguments.length?ot(qe=+Mt):qe},wt.scale(158.837)}var St=me(1,4/u,u);function nt(){return(0,g.c)(St).scale(152.63)}var ze=e(24052),Xe=e(92992);function Je(qe,ot,wt,Mt,Ut,zt){var Gt=x(zt),gr;if(C(qe)>1||C(zt)>1)gr=M(wt*Ut+ot*Mt*Gt);else{var br=l(qe/2),sr=l(zt/2);gr=2*L(z(br*br+ot*Mt*sr*sr))}return C(gr)>h?[gr,S(Mt*l(zt),ot*Ut-wt*Mt*Gt)]:[0,0]}function We(qe,ot,wt){return M((qe*qe+ot*ot-wt*wt)/(2*qe*ot))}function Fe(qe){return qe-2*u*p((qe+u)/(2*u))}function xe(qe,ot,wt){for(var Mt=[[qe[0],qe[1],l(qe[1]),x(qe[1])],[ot[0],ot[1],l(ot[1]),x(ot[1])],[wt[0],wt[1],l(wt[1]),x(wt[1])]],Ut=Mt[2],zt,Gt=0;Gt<3;++Gt,Ut=zt)zt=Mt[Gt],Ut.v=Je(zt[1]-Ut[1],Ut[3],Ut[2],zt[3],zt[2],zt[0]-Ut[0]),Ut.point=[0,0];var gr=We(Mt[0].v[0],Mt[2].v[0],Mt[1].v[0]),br=We(Mt[0].v[0],Mt[1].v[0],Mt[2].v[0]),sr=u-gr;Mt[2].point[1]=0,Mt[0].point[0]=-(Mt[1].point[0]=Mt[0].v[0]/2);var Mr=[Mt[2].point[0]=Mt[0].point[0]+Mt[2].v[0]*x(gr),2*(Mt[0].point[1]=Mt[1].point[1]=Mt[2].v[0]*l(gr))];function Ir(Nr,tn){var yn=l(tn),Rn=x(tn),Dn=new Array(3),Zn;for(Zn=0;Zn<3;++Zn){var Li=Mt[Zn];if(Dn[Zn]=Je(tn-Li[1],Li[3],Li[2],Rn,yn,Nr-Li[0]),!Dn[Zn][0])return Li.point;Dn[Zn][1]=Fe(Dn[Zn][1]-Li.v[1])}var Pi=Mr.slice();for(Zn=0;Zn<3;++Zn){var Ri=Zn==2?0:Zn+1,zi=We(Mt[Zn].v[0],Dn[Zn][0],Dn[Ri][0]);Dn[Zn][1]<0&&(zi=-zi),Zn?Zn==1?(zi=br-zi,Pi[0]-=Dn[Zn][0]*x(zi),Pi[1]-=Dn[Zn][0]*l(zi)):(zi=sr-zi,Pi[0]+=Dn[Zn][0]*x(zi),Pi[1]+=Dn[Zn][0]*l(zi)):(Pi[0]+=Dn[Zn][0]*x(zi),Pi[1]-=Dn[Zn][0]*l(zi))}return Pi[0]/=3,Pi[1]/=3,Pi}return Ir}function ye(qe){return qe[0]*=T,qe[1]*=T,qe}function Ee(){return Me([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Me(qe,ot,wt){var Mt=(0,ze.c)({type:"MultiPoint",coordinates:[qe,ot,wt]}),Ut=[-Mt[0],-Mt[1]],zt=(0,Xe.c)(Ut),Gt=xe(ye(zt(qe)),ye(zt(ot)),ye(zt(wt)));Gt.invert=we(Gt);var gr=(0,g.c)(Gt).rotate(Ut),br=gr.center;return delete gr.rotate,gr.center=function(sr){return arguments.length?br(zt(sr)):zt.invert(br())},gr.clipAngle(90)}function Ne(qe,ot){var wt=z(1-l(ot));return[2/_*qe*wt,_*(1-wt)]}Ne.invert=function(qe,ot){var wt=(wt=ot/_-1)*wt;return[wt>0?qe*z(u/wt)/2:0,L(1-wt)]};function je(){return(0,g.c)(Ne).scale(95.6464).center([0,30])}function it(qe){var ot=m(qe);function wt(Mt,Ut){return[Mt,(Mt?Mt/l(Mt):1)*(l(Ut)*x(Mt)-ot*x(Ut))]}return wt.invert=ot?function(Mt,Ut){Mt&&(Ut*=l(Mt)/Mt);var zt=x(Mt);return[Mt,2*S(z(zt*zt+ot*ot-Ut*Ut)-zt,ot-Ut)]}:function(Mt,Ut){return[Mt,L(Mt?Ut*m(Mt)/Mt:Ut)]},wt}function mt(){return rt(it).scale(249.828).clipAngle(90)}var bt=z(3);function vt(qe,ot){return[bt*qe*(2*x(2*ot/3)-1)/_,bt*_*l(ot/3)]}vt.invert=function(qe,ot){var wt=3*L(ot/(bt*_));return[_*qe/(bt*(2*x(2*wt/3)-1)),wt]};function Lt(){return(0,g.c)(vt).scale(156.19)}function ct(qe){var ot=x(qe);function wt(Mt,Ut){return[Mt*ot,l(Ut)/ot]}return wt.invert=function(Mt,Ut){return[Mt/ot,L(Ut*ot)]},wt}function Tt(){return rt(ct).parallel(38.58).scale(195.044)}function Bt(qe){var ot=x(qe);function wt(Mt,Ut){return[Mt*ot,(1+ot)*m(Ut/2)]}return wt.invert=function(Mt,Ut){return[Mt/ot,i(Ut/(1+ot))*2]},wt}function ir(){return rt(Bt).scale(124.75)}function pt(qe,ot){var wt=z(8/(3*u));return[wt*qe*(1-C(ot)/u),wt*ot]}pt.invert=function(qe,ot){var wt=z(8/(3*u)),Mt=ot/wt;return[qe/(wt*(1-C(Mt)/u)),Mt]};function Xt(){return(0,g.c)(pt).scale(165.664)}function Kt(qe,ot){var wt=z(4-3*l(C(ot)));return[2/z(6*u)*qe*wt,c(ot)*z(2*u/3)*(2-wt)]}Kt.invert=function(qe,ot){var wt=2-C(ot)/z(2*u/3);return[qe*z(6*u)/(2*wt),c(ot)*L((4-wt*wt)/3)]};function or(){return(0,g.c)(Kt).scale(165.664)}function $t(qe,ot){var wt=z(u*(4+u));return[2/wt*qe*(1+z(1-4*ot*ot/(u*u))),4/wt*ot]}$t.invert=function(qe,ot){var wt=z(u*(4+u))/2;return[qe*wt/(1+z(1-ot*ot*(4+u)/(4*u))),ot*wt/2]};function gt(){return(0,g.c)($t).scale(180.739)}function st(qe,ot){var wt=(2+o)*l(ot);ot/=2;for(var Mt=0,Ut=1/0;Mt<10&&C(Ut)>h;Mt++){var zt=x(ot);ot-=Ut=(ot+l(ot)*(zt+2)-wt)/(2*zt*(1+zt))}return[2/z(u*(4+u))*qe*(1+x(ot)),2*z(u/(4+u))*l(ot)]}st.invert=function(qe,ot){var wt=ot*z((4+u)/u)/2,Mt=L(wt),Ut=x(Mt);return[qe/(2/z(u*(4+u))*(1+Ut)),L((Mt+wt*(Ut+2))/(2+o))]};function At(){return(0,g.c)(st).scale(180.739)}function Ct(qe,ot){return[qe*(1+x(ot))/z(2+u),2*ot/z(2+u)]}Ct.invert=function(qe,ot){var wt=z(2+u),Mt=ot*wt/2;return[wt*qe/(1+x(Mt)),Mt]};function It(){return(0,g.c)(Ct).scale(173.044)}function Pt(qe,ot){for(var wt=(1+o)*l(ot),Mt=0,Ut=1/0;Mt<10&&C(Ut)>h;Mt++)ot-=Ut=(ot+l(ot)-wt)/(1+x(ot));return wt=z(2+u),[qe*(1+x(ot))/wt,2*ot/wt]}Pt.invert=function(qe,ot){var wt=1+o,Mt=z(wt/2);return[qe*2*Mt/(1+x(ot*=Mt)),L((ot+l(ot))/wt)]};function kt(){return(0,g.c)(Pt).scale(173.044)}var Vt=3+2*A;function Jt(qe,ot){var wt=l(qe/=2),Mt=x(qe),Ut=z(x(ot)),zt=x(ot/=2),Gt=l(ot)/(zt+A*Mt*Ut),gr=z(2/(1+Gt*Gt)),br=z((A*zt+(Mt+wt)*Ut)/(A*zt+(Mt-wt)*Ut));return[Vt*(gr*(br-1/br)-2*r(br)),Vt*(gr*Gt*(br+1/br)-2*i(Gt))]}Jt.invert=function(qe,ot){if(!(zt=ue.invert(qe/1.2,ot*1.065)))return null;var wt=zt[0],Mt=zt[1],Ut=20,zt;qe/=Vt,ot/=Vt;do{var Gt=wt/2,gr=Mt/2,br=l(Gt),sr=x(Gt),Mr=l(gr),Ir=x(gr),Nr=x(Mt),tn=z(Nr),yn=Mr/(Ir+A*sr*tn),Rn=yn*yn,Dn=z(2/(1+Rn)),Zn=A*Ir+(sr+br)*tn,Li=A*Ir+(sr-br)*tn,Pi=Zn/Li,Ri=z(Pi),zi=Ri-1/Ri,Xi=Ri+1/Ri,va=Dn*zi-2*r(Ri)-qe,Ia=Dn*yn*Xi-2*i(yn)-ot,fe=Mr&&w*tn*br*Rn/Mr,Ce=(A*sr*Ir+tn)/(2*(Ir+A*sr*tn)*(Ir+A*sr*tn)*tn),Be=-.5*yn*Dn*Dn*Dn,tt=Be*fe,at=Be*Ce,ft=(ft=2*Ir+A*tn*(sr-br))*ft*Ri,Dt=(A*sr*Ir*tn+Nr)/ft,Et=-(A*br*Mr)/(tn*ft),Yt=zi*tt-2*Dt/Ri+Dn*(Dt+Dt/Pi),Zt=zi*at-2*Et/Ri+Dn*(Et+Et/Pi),nr=yn*Xi*tt-2*fe/(1+Rn)+Dn*Xi*fe+Dn*yn*(Dt-Dt/Pi),_r=yn*Xi*at-2*Ce/(1+Rn)+Dn*Xi*Ce+Dn*yn*(Et-Et/Pi),Lr=Zt*nr-_r*Yt;if(!Lr)break;var Jr=(Ia*Zt-va*_r)/Lr,on=(va*nr-Ia*Yt)/Lr;wt-=Jr,Mt=t(-o,a(o,Mt-on))}while((C(Jr)>h||C(on)>h)&&--Ut>0);return C(C(Mt)-o)Mt){var Ir=z(Mr),Nr=S(sr,br),tn=wt*f(Nr/wt),yn=Nr-tn,Rn=qe*x(yn),Dn=(qe*l(yn)-yn*l(Rn))/(o-Rn),Zn=xr(yn,Dn),Li=(u-qe)/pr(Zn,Rn,u);br=Ir;var Pi=50,Ri;do br-=Ri=(qe+pr(Zn,Rn,br)*Li-Ir)/(Zn(br)*Li);while(C(Ri)>h&&--Pi>0);sr=yn*l(br),brMt){var br=z(gr),sr=S(Gt,zt),Mr=wt*f(sr/wt),Ir=sr-Mr;zt=br*x(Ir),Gt=br*l(Ir);for(var Nr=zt-o,tn=l(zt),yn=Gt/tn,Rn=zth||C(yn)>h)&&--Rn>0);return[Ir,Nr]},br}var Dr=Pr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function cn(){return(0,g.c)(Dr).scale(149.995)}var rn=Pr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Cn(){return(0,g.c)(rn).scale(153.93)}var En=Pr(5/6*u,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Tr(){return(0,g.c)(En).scale(130.945)}function Cr(qe,ot){var wt=qe*qe,Mt=ot*ot;return[qe*(1-.162388*Mt)*(.87-952426e-9*wt*wt),ot*(1+Mt/12)]}Cr.invert=function(qe,ot){var wt=qe,Mt=ot,Ut=50,zt;do{var Gt=Mt*Mt;Mt-=zt=(Mt*(1+Gt/12)-ot)/(1+Gt/4)}while(C(zt)>h&&--Ut>0);Ut=50,qe/=1-.162388*Gt;do{var gr=(gr=wt*wt)*gr;wt-=zt=(wt*(.87-952426e-9*gr)-qe)/(.87-.00476213*gr)}while(C(zt)>h&&--Ut>0);return[wt,Mt]};function Wr(){return(0,g.c)(Cr).scale(131.747)}var Ur=Pr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function an(){return(0,g.c)(Ur).scale(131.087)}function pn(qe){var ot=qe(o,0)[0]-qe(-o,0)[0];function wt(Mt,Ut){var zt=Mt>0?-.5:.5,Gt=qe(Mt+zt*u,Ut);return Gt[0]-=zt*ot,Gt}return qe.invert&&(wt.invert=function(Mt,Ut){var zt=Mt>0?-.5:.5,Gt=qe.invert(Mt+zt*ot,Ut),gr=Gt[0]-zt*u;return gr<-u?gr+=2*u:gr>u&&(gr-=2*u),Gt[0]=gr,Gt}),wt}function gn(qe,ot){var wt=c(qe),Mt=c(ot),Ut=x(ot),zt=x(qe)*Ut,Gt=l(qe)*Ut,gr=l(Mt*ot);qe=C(S(Gt,gr)),ot=L(zt),C(qe-o)>h&&(qe%=o);var br=_n(qe>u/4?o-qe:qe,ot);return qe>u/4&&(gr=br[0],br[0]=-br[1],br[1]=-gr),br[0]*=wt,br[1]*=-Mt,br}gn.invert=function(qe,ot){C(qe)>1&&(qe=c(qe)*2-qe),C(ot)>1&&(ot=c(ot)*2-ot);var wt=c(qe),Mt=c(ot),Ut=-wt*qe,zt=-Mt*ot,Gt=zt/Ut<1,gr=kn(Gt?zt:Ut,Gt?Ut:zt),br=gr[0],sr=gr[1],Mr=x(sr);return Gt&&(br=-o-br),[wt*(S(l(br)*Mr,-l(sr))+u),Mt*L(x(br)*Mr)]};function _n(qe,ot){if(ot===o)return[0,0];var wt=l(ot),Mt=wt*wt,Ut=Mt*Mt,zt=1+Ut,Gt=1+3*Ut,gr=1-Ut,br=L(1/z(zt)),sr=gr+Mt*zt*br,Mr=(1-wt)/sr,Ir=z(Mr),Nr=Mr*zt,tn=z(Nr),yn=Ir*gr,Rn,Dn;if(qe===0)return[0,-(yn+Mt*tn)];var Zn=x(ot),Li=1/Zn,Pi=2*wt*Zn,Ri=(-3*Mt+br*Gt)*Pi,zi=(-sr*Zn-(1-wt)*Ri)/(sr*sr),Xi=.5*zi/Ir,va=gr*Xi-2*Mt*Ir*Pi,Ia=Mt*zt*zi+Mr*Gt*Pi,fe=-Li*Pi,Ce=-Li*Ia,Be=-2*Li*va,tt=4*qe/u,at;if(qe>.222*u||ot.175*u){if(Rn=(yn+Mt*z(Nr*(1+Ut)-yn*yn))/(1+Ut),qe>u/4)return[Rn,Rn];var ft=Rn,Dt=.5*Rn;Rn=.5*(Dt+ft),Dn=50;do{var Et=z(Nr-Rn*Rn),Yt=Rn*(Be+fe*Et)+Ce*L(Rn/tn)-tt;if(!Yt)break;Yt<0?Dt=Rn:ft=Rn,Rn=.5*(Dt+ft)}while(C(ft-Dt)>h&&--Dn>0)}else{Rn=h,Dn=25;do{var Zt=Rn*Rn,nr=z(Nr-Zt),_r=Be+fe*nr,Lr=Rn*_r+Ce*L(Rn/tn)-tt,Jr=_r+(Ce-fe*Zt)/nr;Rn-=at=nr?Lr/Jr:0}while(C(at)>h&&--Dn>0)}return[Rn,-yn-Mt*z(Nr-Rn*Rn)]}function kn(qe,ot){for(var wt=0,Mt=1,Ut=.5,zt=50;;){var Gt=Ut*Ut,gr=z(Ut),br=L(1/z(1+Gt)),sr=1-Gt+Ut*(1+Gt)*br,Mr=(1-gr)/sr,Ir=z(Mr),Nr=Mr*(1+Gt),tn=Ir*(1-Gt),yn=Nr-qe*qe,Rn=z(yn),Dn=ot+tn+Ut*Rn;if(C(Mt-wt)0?wt=Ut:Mt=Ut,Ut=.5*(wt+Mt)}if(!zt)return null;var Zn=L(gr),Li=x(Zn),Pi=1/Li,Ri=2*gr*Li,zi=(-3*Ut+br*(1+3*Gt))*Ri,Xi=(-sr*Li-(1-gr)*zi)/(sr*sr),va=.5*Xi/Ir,Ia=(1-Gt)*va-2*Ut*Ir*Ri,fe=-2*Pi*Ia,Ce=-Pi*Ri,Be=-Pi*(Ut*(1+Gt)*Xi+Mr*(1+3*Gt)*Ri);return[u/4*(qe*(fe+Ce*Rn)+Be*L(qe/z(Nr))),Zn]}function ni(){return(0,g.c)(pn(gn)).scale(239.75)}function ci(qe,ot,wt){var Mt,Ut,zt;return qe?(Mt=di(qe,wt),ot?(Ut=di(ot,1-wt),zt=Ut[1]*Ut[1]+wt*Mt[0]*Mt[0]*Ut[0]*Ut[0],[[Mt[0]*Ut[2]/zt,Mt[1]*Mt[2]*Ut[0]*Ut[1]/zt],[Mt[1]*Ut[1]/zt,-Mt[0]*Mt[2]*Ut[0]*Ut[2]/zt],[Mt[2]*Ut[1]*Ut[2]/zt,-wt*Mt[0]*Mt[1]*Ut[0]/zt]]):[[Mt[0],0],[Mt[1],0],[Mt[2],0]]):(Ut=di(ot,1-wt),[[0,Ut[0]/Ut[1]],[1/Ut[1],0],[Ut[2]/Ut[1],0]])}function di(qe,ot){var wt,Mt,Ut,zt,Gt;if(ot=1-h)return wt=(1-ot)/4,Mt=I(qe),zt=D(qe),Ut=1/Mt,Gt=Mt*N(qe),[zt+wt*(Gt-qe)/(Mt*Mt),Ut-wt*zt*Ut*(Gt-qe),Ut+wt*zt*Ut*(Gt+qe),2*i(v(qe))-o+wt*(Gt-qe)/Mt];var gr=[1,0,0,0,0,0,0,0,0],br=[z(ot),0,0,0,0,0,0,0,0],sr=0;for(Mt=z(1-ot),Gt=1;C(br[sr]/gr[sr])>h&&sr<8;)wt=gr[sr++],br[sr]=(wt-Mt)/2,gr[sr]=(wt+Mt)/2,Mt=z(wt*Mt),Gt*=2;Ut=Gt*gr[sr]*qe;do zt=br[sr]*l(Mt=Ut)/gr[sr],Ut=(L(zt)+Ut)/2;while(--sr);return[l(Ut),zt=x(Ut),zt/x(Ut-Mt),Ut]}function li(qe,ot,wt){var Mt=C(qe),Ut=C(ot),zt=N(Ut);if(Mt){var Gt=1/l(Mt),gr=1/(m(Mt)*m(Mt)),br=-(gr+wt*(zt*zt*Gt*Gt)-1+wt),sr=(wt-1)*gr,Mr=(-br+z(br*br-4*sr))/2;return[ri(i(1/z(Mr)),wt)*c(qe),ri(i(z((Mr/gr-1)/wt)),1-wt)*c(ot)]}return[0,ri(i(zt),1-wt)*c(ot)]}function ri(qe,ot){if(!ot)return qe;if(ot===1)return r(m(qe/2+d));for(var wt=1,Mt=z(1-ot),Ut=z(ot),zt=0;C(Ut)>h;zt++){if(qe%u){var Gt=i(Mt*m(qe)/wt);Gt<0&&(Gt+=u),qe+=Gt+~~(qe/u)*u}else qe+=qe;Ut=(wt+Mt)/2,Mt=z(wt*Mt),Ut=((wt=Ut)-Mt)/2}return qe/(n(2,zt)*wt)}function wr(qe,ot){var wt=(A-1)/(A+1),Mt=z(1-wt*wt),Ut=ri(o,Mt*Mt),zt=-1,Gt=r(m(u/4+C(ot)/2)),gr=v(zt*Gt)/z(wt),br=nn(gr*x(zt*qe),gr*l(zt*qe)),sr=li(br[0],br[1],Mt*Mt);return[-sr[1],(ot>=0?1:-1)*(.5*Ut-sr[0])]}function nn(qe,ot){var wt=qe*qe,Mt=ot+1,Ut=1-wt-ot*ot;return[.5*((qe>=0?o:-o)-S(Ut,2*qe)),-.25*r(Ut*Ut+4*wt)+.5*r(Mt*Mt+wt)]}function $r(qe,ot){var wt=ot[0]*ot[0]+ot[1]*ot[1];return[(qe[0]*ot[0]+qe[1]*ot[1])/wt,(qe[1]*ot[0]-qe[0]*ot[1])/wt]}wr.invert=function(qe,ot){var wt=(A-1)/(A+1),Mt=z(1-wt*wt),Ut=ri(o,Mt*Mt),zt=-1,Gt=ci(.5*Ut-ot,-qe,Mt*Mt),gr=$r(Gt[0],Gt[1]),br=S(gr[1],gr[0])/zt;return[br,2*i(v(.5/zt*r(wt*gr[0]*gr[0]+wt*gr[1]*gr[1])))-o]};function dn(){return(0,g.c)(pn(wr)).scale(151.496)}var Vn=e(61780);function Tn(qe){var ot=l(qe),wt=x(qe),Mt=An(qe);Mt.invert=An(-qe);function Ut(zt,Gt){var gr=Mt(zt,Gt);zt=gr[0],Gt=gr[1];var br=l(Gt),sr=x(Gt),Mr=x(zt),Ir=M(ot*br+wt*sr*Mr),Nr=l(Ir),tn=C(Nr)>h?Ir/Nr:1;return[tn*wt*l(zt),(C(zt)>o?tn:-tn)*(ot*sr-wt*br*Mr)]}return Ut.invert=function(zt,Gt){var gr=z(zt*zt+Gt*Gt),br=-l(gr),sr=x(gr),Mr=gr*sr,Ir=-Gt*br,Nr=gr*ot,tn=z(Mr*Mr+Ir*Ir-Nr*Nr),yn=S(Mr*Nr+Ir*tn,Ir*Nr-Mr*tn),Rn=(gr>o?-1:1)*S(zt*br,gr*x(yn)*sr+Gt*l(yn)*br);return Mt.invert(Rn,yn)},Ut}function An(qe){var ot=l(qe),wt=x(qe);return function(Mt,Ut){var zt=x(Ut),Gt=x(Mt)*zt,gr=l(Mt)*zt,br=l(Ut);return[S(gr,Gt*wt-br*ot),L(br*wt+Gt*ot)]}}function Bn(){var qe=0,ot=(0,g.U)(Tn),wt=ot(qe),Mt=wt.rotate,Ut=wt.stream,zt=(0,Vn.c)();return wt.parallel=function(Gt){if(!arguments.length)return qe*E;var gr=wt.rotate();return ot(qe=Gt*T).rotate(gr)},wt.rotate=function(Gt){return arguments.length?(Mt.call(wt,[Gt[0],Gt[1]-qe*E]),zt.center([-Gt[0],-Gt[1]]),wt):(Gt=Mt.call(wt),Gt[1]+=qe*E,Gt)},wt.stream=function(Gt){return Gt=Ut(Gt),Gt.sphere=function(){Gt.polygonStart();var gr=.01,br=zt.radius(90-gr)().coordinates[0],sr=br.length-1,Mr=-1,Ir;for(Gt.lineStart();++Mr=0;)Gt.point((Ir=br[Mr])[0],Ir[1]);Gt.lineEnd(),Gt.polygonEnd()},Gt},wt.scale(79.4187).parallel(45).clipAngle(179.999)}var Jn=e(84706),gi=e(16016),Di=3,Sr=L(1-1/Di)*E,kr=ct(0);function Ar(qe){var ot=Sr*T,wt=Ne(u,ot)[0]-Ne(-u,ot)[0],Mt=kr(0,ot)[1],Ut=Ne(0,ot)[1],zt=_-Ut,Gt=y/qe,gr=4/y,br=Mt+zt*zt*4/y;function sr(Mr,Ir){var Nr,tn=C(Ir);if(tn>ot){var yn=a(qe-1,t(0,p((Mr+u)/Gt)));Mr+=u*(qe-1)/qe-yn*Gt,Nr=Ne(Mr,tn),Nr[0]=Nr[0]*y/wt-y*(qe-1)/(2*qe)+yn*y/qe,Nr[1]=Mt+(Nr[1]-Ut)*4*zt/y,Ir<0&&(Nr[1]=-Nr[1])}else Nr=kr(Mr,Ir);return Nr[0]*=gr,Nr[1]/=br,Nr}return sr.invert=function(Mr,Ir){Mr/=gr,Ir*=br;var Nr=C(Ir);if(Nr>Mt){var tn=a(qe-1,t(0,p((Mr+u)/Gt)));Mr=(Mr+u*(qe-1)/qe-tn*Gt)*wt/y;var yn=Ne.invert(Mr,.25*(Nr-Mt)*y/zt+Ut);return yn[0]-=u*(qe-1)/qe-tn*Gt,Ir<0&&(yn[1]=-yn[1]),yn}return kr.invert(Mr,Ir)},sr}function Or(qe,ot){return[qe,ot&1?90-h:Sr]}function xn(qe,ot){return[qe,ot&1?-90+h:-Sr]}function In(qe){return[qe[0]*(1-h),qe[1]]}function hn(qe){var ot=[].concat((0,Jn.ik)(-180,180+qe/2,qe).map(Or),(0,Jn.ik)(180,-180-qe/2,-qe).map(xn));return{type:"Polygon",coordinates:[qe===180?ot.map(In):ot]}}function sn(){var qe=4,ot=(0,g.U)(Ar),wt=ot(qe),Mt=wt.stream;return wt.lobes=function(Ut){return arguments.length?ot(qe=+Ut):qe},wt.stream=function(Ut){var zt=wt.rotate(),Gt=Mt(Ut),gr=(wt.rotate([0,0]),Mt(Ut));return wt.rotate(zt),Gt.sphere=function(){(0,gi.c)(hn(180/qe),gr)},Gt},wt.scale(239.75)}function Er(qe){var ot=1+qe,wt=l(1/ot),Mt=L(wt),Ut=2*z(u/(zt=u+4*Mt*ot)),zt,Gt=.5*Ut*(ot+z(qe*(2+qe))),gr=qe*qe,br=ot*ot;function sr(Mr,Ir){var Nr=1-l(Ir),tn,yn;if(Nr&&Nr<2){var Rn=o-Ir,Dn=25,Zn;do{var Li=l(Rn),Pi=x(Rn),Ri=Mt+S(Li,ot-Pi),zi=1+br-2*ot*Pi;Rn-=Zn=(Rn-gr*Mt-ot*Li+zi*Ri-.5*Nr*zt)/(2*ot*Li*Ri)}while(C(Zn)>b&&--Dn>0);tn=Ut*z(zi),yn=Mr*Ri/u}else tn=Ut*(qe+Nr),yn=Mr*Mt/u;return[tn*l(yn),Gt-tn*x(yn)]}return sr.invert=function(Mr,Ir){var Nr=Mr*Mr+(Ir-=Gt)*Ir,tn=(1+br-Nr/(Ut*Ut))/(2*ot),yn=M(tn),Rn=l(yn),Dn=Mt+S(Rn,ot-tn);return[L(Mr/z(Nr))*u/Dn,L(1-2*(yn-gr*Mt-ot*Rn+(1+br-2*ot*tn)*Dn)/zt)]},sr}function Zr(){var qe=1,ot=(0,g.U)(Er),wt=ot(qe);return wt.ratio=function(Mt){return arguments.length?ot(qe=+Mt):qe},wt.scale(167.774).center([0,18.67])}var Hr=.7109889596207567,Qr=.0528035274542;function wn(qe,ot){return ot>-Hr?(qe=Le(qe,ot),qe[1]+=Qr,qe):Ke(qe,ot)}wn.invert=function(qe,ot){return ot>-Hr?Le.invert(qe,ot-Qr):Ke.invert(qe,ot)};function Ln(){return(0,g.c)(wn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Pn(qe,ot){return C(ot)>Hr?(qe=Le(qe,ot),qe[1]-=ot>0?Qr:-Qr,qe):Ke(qe,ot)}Pn.invert=function(qe,ot){return C(ot)>Hr?Le.invert(qe,ot+(ot>0?Qr:-Qr)):Ke.invert(qe,ot)};function Un(){return(0,g.c)(Pn).scale(152.63)}function On(qe,ot,wt,Mt){var Ut=z(4*u/(2*wt+(1+qe-ot/2)*l(2*wt)+(qe+ot)/2*l(4*wt)+ot/2*l(6*wt))),zt=z(Mt*l(wt)*z((1+qe*x(2*wt)+ot*x(4*wt))/(1+qe+ot))),Gt=wt*br(1);function gr(Ir){return z(1+qe*x(2*Ir)+ot*x(4*Ir))}function br(Ir){var Nr=Ir*wt;return(2*Nr+(1+qe-ot/2)*l(2*Nr)+(qe+ot)/2*l(4*Nr)+ot/2*l(6*Nr))/wt}function sr(Ir){return gr(Ir)*l(Ir)}var Mr=function(Ir,Nr){var tn=wt*Te(br,Gt*l(Nr)/wt,Nr/u);isNaN(tn)&&(tn=wt*c(Nr));var yn=Ut*gr(tn);return[yn*zt*Ir/u*x(tn),yn/zt*l(tn)]};return Mr.invert=function(Ir,Nr){var tn=Te(sr,Nr*zt/Ut);return[Ir*u/(x(tn)*Ut*zt*gr(tn)),L(wt*br(tn/wt)/Gt)]},wt===0&&(Ut=z(Mt/u),Mr=function(Ir,Nr){return[Ir*Ut,l(Nr)/Ut]},Mr.invert=function(Ir,Nr){return[Ir/Ut,L(Nr*Ut)]}),Mr}function mi(){var qe=1,ot=0,wt=45*T,Mt=2,Ut=(0,g.U)(On),zt=Ut(qe,ot,wt,Mt);return zt.a=function(Gt){return arguments.length?Ut(qe=+Gt,ot,wt,Mt):qe},zt.b=function(Gt){return arguments.length?Ut(qe,ot=+Gt,wt,Mt):ot},zt.psiMax=function(Gt){return arguments.length?Ut(qe,ot,wt=+Gt*T,Mt):wt*E},zt.ratio=function(Gt){return arguments.length?Ut(qe,ot,wt,Mt=+Gt):Mt},zt.scale(180.739)}function ai(qe,ot,wt,Mt,Ut,zt,Gt,gr,br,sr,Mr){if(Mr.nanEncountered)return NaN;var Ir,Nr,tn,yn,Rn,Dn,Zn,Li,Pi,Ri;if(Ir=wt-ot,Nr=qe(ot+Ir*.25),tn=qe(wt-Ir*.25),isNaN(Nr)){Mr.nanEncountered=!0;return}if(isNaN(tn)){Mr.nanEncountered=!0;return}return yn=Ir*(Mt+4*Nr+Ut)/12,Rn=Ir*(Ut+4*tn+zt)/12,Dn=yn+Rn,Ri=(Dn-Gt)/15,sr>br?(Mr.maxDepthCount++,Dn+Ri):Math.abs(Ri)>1;do br[Dn]>tn?Rn=Dn:yn=Dn,Dn=yn+Rn>>1;while(Dn>yn);var Zn=br[Dn+1]-br[Dn];return Zn&&(Zn=(tn-br[Dn+1])/Zn),(Dn+1+Zn)/Gt}var Ir=2*Mr(1)/u*zt/wt,Nr=function(tn,yn){var Rn=Mr(C(l(yn))),Dn=Mt(Rn)*tn;return Rn/=Ir,[Dn,yn>=0?Rn:-Rn]};return Nr.invert=function(tn,yn){var Rn;return yn*=Ir,C(yn)<1&&(Rn=c(yn)*L(Ut(C(yn))*zt)),[tn/Mt(C(yn)),Rn]},Nr}function pa(){var qe=0,ot=2.5,wt=1.183136,Mt=(0,g.U)(Ci),Ut=Mt(qe,ot,wt);return Ut.alpha=function(zt){return arguments.length?Mt(qe=+zt,ot,wt):qe},Ut.k=function(zt){return arguments.length?Mt(qe,ot=+zt,wt):ot},Ut.gamma=function(zt){return arguments.length?Mt(qe,ot,wt=+zt):wt},Ut.scale(152.63)}function ta(qe,ot){return C(qe[0]-ot[0])=0;--br)wt=qe[1][br],Mt=wt[0][0],Ut=wt[0][1],zt=wt[1][1],Gt=wt[2][0],gr=wt[2][1],ot.push(Eo([[Gt-h,gr-h],[Gt-h,zt+h],[Mt+h,zt+h],[Mt+h,Ut-h]],30));return{type:"Polygon",coordinates:[(0,Jn.Uf)(ot)]}}function Qa(qe,ot,wt){var Mt,Ut;function zt(br,sr){for(var Mr=sr<0?-1:1,Ir=ot[+(sr<0)],Nr=0,tn=Ir.length-1;NrIr[Nr][2][0];++Nr);var yn=qe(br-Ir[Nr][1][0],sr);return yn[0]+=qe(Ir[Nr][1][0],Mr*sr>Mr*Ir[Nr][0][1]?Ir[Nr][0][1]:sr)[0],yn}wt?zt.invert=wt(zt):qe.invert&&(zt.invert=function(br,sr){for(var Mr=Ut[+(sr<0)],Ir=ot[+(sr<0)],Nr=0,tn=Mr.length;Nryn&&(Rn=tn,tn=yn,yn=Rn),[[Ir,tn],[Nr,yn]]})}),Gt):ot.map(function(sr){return sr.map(function(Mr){return[[Mr[0][0]*E,Mr[0][1]*E],[Mr[1][0]*E,Mr[1][1]*E],[Mr[2][0]*E,Mr[2][1]*E]]})})},ot!=null&&Gt.lobes(ot),Gt}var ol=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Nu(){return Qa(Ve,ol).scale(160.857)}var bf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function $i(){return Qa(Pn,bf).scale(152.63)}var Fl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Bu(){return Qa(Le,Fl).scale(169.529)}var Xa=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ho(){return Qa(Le,Xa).scale(169.529).rotate([20,0])}var sl=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function vu(){return Qa(wn,sl,we).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ra=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function ll(){return Qa(Ke,Ra).scale(152.63).rotate([-20,0])}function za(qe,ot){return[3/y*qe*z(u*u/3-ot*ot),ot]}za.invert=function(qe,ot){return[y/3*qe/z(u*u/3-ot*ot),ot]};function Ua(){return(0,g.c)(za).scale(158.837)}function ul(qe){function ot(wt,Mt){if(C(C(Mt)-o)2)return null;wt/=2,Mt/=2;var zt=wt*wt,Gt=Mt*Mt,gr=2*Mt/(1+zt+Gt);return gr=n((1+gr)/(1-gr),1/qe),[S(2*wt,1-zt-Gt)/qe,L((gr-1)/(gr+1))]},ot}function $a(){var qe=.5,ot=(0,g.U)(ul),wt=ot(qe);return wt.spacing=function(Mt){return arguments.length?ot(qe=+Mt):qe},wt.scale(124.75)}var qa=u/A;function _o(qe,ot){return[qe*(1+z(x(ot)))/2,ot/(x(ot/2)*x(qe/6))]}_o.invert=function(qe,ot){var wt=C(qe),Mt=C(ot),Ut=h,zt=o;Mth||C(Dn)>h)&&--Ut>0);return Ut&&[wt,Mt]};function xc(){return(0,g.c)(bo).scale(139.98)}function es(qe,ot){return[l(qe)/x(ot),m(ot)*x(qe)]}es.invert=function(qe,ot){var wt=qe*qe,Mt=ot*ot,Ut=Mt+1,zt=wt+Ut,Gt=qe?w*z((zt-z(zt*zt-4*wt))/wt):1/z(Ut);return[L(qe*Gt),c(ot)*M(Gt)]};function Za(){return(0,g.c)(es).scale(144.049).clipAngle(89.999)}function Uu(qe){var ot=x(qe),wt=m(d+qe/2);function Mt(Ut,zt){var Gt=zt-qe,gr=C(Gt)=0;)Mr=qe[sr],Ir=Mr[0]+gr*(tn=Ir)-br*Nr,Nr=Mr[1]+gr*Nr+br*tn;return Ir=gr*(tn=Ir)-br*Nr,Nr=gr*Nr+br*tn,[Ir,Nr]}return wt.invert=function(Mt,Ut){var zt=20,Gt=Mt,gr=Ut;do{for(var br=ot,sr=qe[br],Mr=sr[0],Ir=sr[1],Nr=0,tn=0,yn;--br>=0;)sr=qe[br],Nr=Mr+Gt*(yn=Nr)-gr*tn,tn=Ir+Gt*tn+gr*yn,Mr=sr[0]+Gt*(yn=Mr)-gr*Ir,Ir=sr[1]+Gt*Ir+gr*yn;Nr=Mr+Gt*(yn=Nr)-gr*tn,tn=Ir+Gt*tn+gr*yn,Mr=Gt*(yn=Mr)-gr*Ir-Mt,Ir=Gt*Ir+gr*yn-Ut;var Rn=Nr*Nr+tn*tn,Dn,Zn;Gt-=Dn=(Mr*Nr+Ir*tn)/Rn,gr-=Zn=(Ir*Nr-Mr*tn)/Rn}while(C(Dn)+C(Zn)>h*h&&--zt>0);if(zt){var Li=z(Gt*Gt+gr*gr),Pi=2*i(Li*.5),Ri=l(Pi);return[S(Gt*Ri,Li*x(Pi)),Li?L(gr*Ri/Li):0]}},wt}var bc=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],du=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],wc=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Tc=[[.9245,0],[0,0],[.01943,0]],Ac=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Vu(){return Ys(bc,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Mc(){return Ys(du,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Sc(){return Ys(wc,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Af(){return Ys(Tc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Mf(){return Ys(Ac,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Ys(qe,ot){var wt=(0,g.c)(Tf(qe)).rotate(ot).clipAngle(90),Mt=(0,Xe.c)(ot),Ut=wt.center;return delete wt.rotate,wt.center=function(zt){return arguments.length?Ut(Mt(zt)):Mt.invert(Ut())},wt}var fl=z(6),zl=z(7);function kl(qe,ot){var wt=L(7*l(ot)/(3*fl));return[fl*qe*(2*x(2*wt/3)-1)/zl,9*l(wt/3)/zl]}kl.invert=function(qe,ot){var wt=3*L(ot*zl/9);return[qe*zl/(fl*(2*x(2*wt/3)-1)),L(l(wt)*3*fl/7)]};function Sf(){return(0,g.c)(kl).scale(164.859)}function vs(qe,ot){for(var wt=(1+w)*l(ot),Mt=ot,Ut=0,zt;Ut<25&&(Mt-=zt=(l(Mt/2)+l(Mt)-wt)/(.5*x(Mt/2)+x(Mt)),!(C(zt)b&&--Mt>0);return zt=wt*wt,Gt=zt*zt,gr=zt*Gt,[qe/(.84719-.13063*zt+gr*gr*(-.04515+.05494*zt-.02326*Gt+.00331*gr)),wt]};function Uo(){return(0,g.c)(gu).scale(175.295)}function cl(qe,ot){return[qe*(1+x(ot))/2,2*(ot-m(ot/2))]}cl.invert=function(qe,ot){for(var wt=ot/2,Mt=0,Ut=1/0;Mt<10&&C(Ut)>h;++Mt){var zt=x(ot/2);ot-=Ut=(ot-m(ot/2)-wt)/(1-.5/(zt*zt))}return[2*qe/(1+x(ot)),ot]};function Xs(){return(0,g.c)(cl).scale(152.63)}var Ol=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ls(){return Qa(ne(1/0),Ol).rotate([20,0]).scale(152.63)}function rs(qe,ot){var wt=l(ot),Mt=x(ot),Ut=c(qe);if(qe===0||C(ot)===o)return[0,ot];if(ot===0)return[qe,0];if(C(qe)===o)return[qe*Mt,o*wt];var zt=u/(2*qe)-2*qe/u,Gt=2*ot/u,gr=(1-Gt*Gt)/(wt-Gt),br=zt*zt,sr=gr*gr,Mr=1+br/sr,Ir=1+sr/br,Nr=(zt*wt/gr-zt/2)/Mr,tn=(sr*wt/br+gr/2)/Ir,yn=Nr*Nr+Mt*Mt/Mr,Rn=tn*tn-(sr*wt*wt/br+gr*wt-1)/Ir;return[o*(Nr+z(yn)*Ut),o*(tn+z(Rn<0?0:Rn)*c(-ot*zt)*Ut)]}rs.invert=function(qe,ot){qe/=o,ot/=o;var wt=qe*qe,Mt=ot*ot,Ut=wt+Mt,zt=u*u;return[qe?(Ut-1+z((1-Ut)*(1-Ut)+4*wt))/(2*qe)*o:0,Te(function(Gt){return Ut*(u*l(Gt)-2*Gt)*u+4*Gt*Gt*(ot-l(Gt))+2*u*Gt-zt*ot},0)]};function Gu(){return(0,g.c)(rs).scale(127.267)}var hl=1.0148,Ho=.23185,Ca=-.14499,Wu=.02406,_c=hl,mu=5*Ho,vl=7*Ca,dl=9*Wu,wo=1.790857183;function yu(qe,ot){var wt=ot*ot;return[qe,ot*(hl+wt*wt*(Ho+wt*(Ca+Wu*wt)))]}yu.invert=function(qe,ot){ot>wo?ot=wo:ot<-wo&&(ot=-wo);var wt=ot,Mt;do{var Ut=wt*wt;wt-=Mt=(wt*(hl+Ut*Ut*(Ho+Ut*(Ca+Wu*Ut)))-ot)/(_c+Ut*Ut*(mu+Ut*(vl+dl*Ut)))}while(C(Mt)>h);return[qe,wt]};function pl(){return(0,g.c)(yu).scale(139.319)}function xu(qe,ot){if(C(ot)h&&--Ut>0);return Gt=m(Mt),[(C(ot)=0;)if(Mt=ot[gr],wt[0]===Mt[0]&&wt[1]===Mt[1]){if(zt)return[zt,wt];zt=wt}}}function ju(qe){for(var ot=qe.length,wt=[],Mt=qe[ot-1],Ut=0;Ut0?[-Mt[0],0]:[180-Mt[0],180])};var ot=Da.map(function(wt){return{face:wt,project:qe(wt)}});return[-1,0,0,1,0,1,4,5].forEach(function(wt,Mt){var Ut=ot[wt];Ut&&(Ut.children||(Ut.children=[])).push(ot[Mt])}),ga(ot[0],function(wt,Mt){return ot[wt<-u/2?Mt<0?6:4:wt<0?Mt<0?2:0:wtMt^tn>Mt&&wt<(Nr-sr)*(Mt-Mr)/(tn-Mr)+sr&&(Ut=!Ut)}return Ut}function Rc(qe,ot){var wt=ot.stream,Mt;if(!wt)throw new Error("invalid projection");switch(qe&&qe.type){case"Feature":Mt=Ku;break;case"FeatureCollection":Mt=Dc;break;default:Mt=yl;break}return Mt(qe,wt)}function Dc(qe,ot){return{type:"FeatureCollection",features:qe.features.map(function(wt){return Ku(wt,ot)})}}function Ku(qe,ot){return{type:"Feature",id:qe.id,properties:qe.properties,geometry:yl(qe.geometry,ot)}}function Rf(qe,ot){return{type:"GeometryCollection",geometries:qe.geometries.map(function(wt){return yl(wt,ot)})}}function yl(qe,ot){if(!qe)return null;if(qe.type==="GeometryCollection")return Rf(qe,ot);var wt;switch(qe.type){case"Point":wt=xl;break;case"MultiPoint":wt=xl;break;case"LineString":wt=Df;break;case"MultiLineString":wt=Df;break;case"Polygon":wt=Hl;break;case"MultiPolygon":wt=Hl;break;case"Sphere":wt=Hl;break;default:return null}return(0,gi.c)(qe,ot(wt)),wt.result()}var ja=[],Co=[],xl={point:function(qe,ot){ja.push([qe,ot])},result:function(){var qe=ja.length?ja.length<2?{type:"Point",coordinates:ja[0]}:{type:"MultiPoint",coordinates:ja}:null;return ja=[],qe}},Df={lineStart:Ul,point:function(qe,ot){ja.push([qe,ot])},lineEnd:function(){ja.length&&(Co.push(ja),ja=[])},result:function(){var qe=Co.length?Co.length<2?{type:"LineString",coordinates:Co[0]}:{type:"MultiLineString",coordinates:Co}:null;return Co=[],qe}},Hl={polygonStart:Ul,lineStart:Ul,point:function(qe,ot){ja.push([qe,ot])},lineEnd:function(){var qe=ja.length;if(qe){do ja.push(ja[0].slice());while(++qe<4);Co.push(ja),ja=[]}},polygonEnd:Ul,result:function(){if(!Co.length)return null;var qe=[],ot=[];return Co.forEach(function(wt){Lc(wt)?qe.push([wt]):ot.push(wt)}),ot.forEach(function(wt){var Mt=wt[0];qe.some(function(Ut){if(Pc(Ut[0],Mt))return Ut.push(wt),!0})||qe.push([wt])}),Co=[],qe.length?qe.length>1?{type:"MultiPolygon",coordinates:qe}:{type:"Polygon",coordinates:qe[0]}:null}};function gs(qe){var ot=qe(o,0)[0]-qe(-o,0)[0];function wt(Mt,Ut){var zt=C(Mt)0?Mt-u:Mt+u,Ut),gr=(Gt[0]-Gt[1])*w,br=(Gt[0]+Gt[1])*w;if(zt)return[gr,br];var sr=ot*w,Mr=gr>0^br>0?-1:1;return[Mr*gr-c(br)*sr,Mr*br-c(gr)*sr]}return qe.invert&&(wt.invert=function(Mt,Ut){var zt=(Mt+Ut)*w,Gt=(Ut-Mt)*w,gr=C(zt)<.5*ot&&C(Gt)<.5*ot;if(!gr){var br=ot*w,sr=zt>0^Gt>0?-1:1,Mr=-sr*Mt+(Gt>0?1:-1)*br,Ir=-sr*Ut+(zt>0?1:-1)*br;zt=(-Mr-Ir)*w,Gt=(Mr-Ir)*w}var Nr=qe.invert(zt,Gt);return gr||(Nr[0]+=zt>0?u:-u),Nr}),(0,g.c)(wt).rotate([-90,-90,45]).clipAngle(179.999)}function Ic(){return gs(gn).scale(176.423)}function If(){return gs(wr).scale(111.48)}function Ff(qe,ot){if(!(0<=(ot=+ot)&&ot<=20))throw new Error("invalid digits");function wt(sr){var Mr=sr.length,Ir=2,Nr=new Array(Mr);for(Nr[0]=+sr[0].toFixed(ot),Nr[1]=+sr[1].toFixed(ot);Ir2||tn[0]!=Mr[0]||tn[1]!=Mr[1])&&(Ir.push(tn),Mr=tn)}return Ir.length===1&&sr.length>1&&Ir.push(wt(sr[sr.length-1])),Ir}function zt(sr){return sr.map(Ut)}function Gt(sr){if(sr==null)return sr;var Mr;switch(sr.type){case"GeometryCollection":Mr={type:"GeometryCollection",geometries:sr.geometries.map(Gt)};break;case"Point":Mr={type:"Point",coordinates:wt(sr.coordinates)};break;case"MultiPoint":Mr={type:sr.type,coordinates:Mt(sr.coordinates)};break;case"LineString":Mr={type:sr.type,coordinates:Ut(sr.coordinates)};break;case"MultiLineString":case"Polygon":Mr={type:sr.type,coordinates:zt(sr.coordinates)};break;case"MultiPolygon":Mr={type:"MultiPolygon",coordinates:sr.coordinates.map(zt)};break;default:return sr}return sr.bbox!=null&&(Mr.bbox=sr.bbox),Mr}function gr(sr){var Mr={type:"Feature",properties:sr.properties,geometry:Gt(sr.geometry)};return sr.id!=null&&(Mr.id=sr.id),sr.bbox!=null&&(Mr.bbox=sr.bbox),Mr}if(qe!=null)switch(qe.type){case"Feature":return gr(qe);case"FeatureCollection":{var br={type:"FeatureCollection",features:qe.features.map(gr)};return qe.bbox!=null&&(br.bbox=qe.bbox),br}default:return Gt(qe)}return qe}function Ju(qe){var ot=l(qe);function wt(Mt,Ut){var zt=ot?m(Mt*ot/2)/ot:Mt/2;if(!Ut)return[2*zt,-qe];var Gt=2*i(zt*l(Ut)),gr=1/m(Ut);return[l(Gt)*gr,Ut+(1-x(Gt))*gr-qe]}return wt.invert=function(Mt,Ut){if(C(Ut+=qe)h&&--gr>0);var Nr=Mt*(sr=m(Gt)),tn=m(C(Ut)0?o:-o)*(br+Ut*(Mr-Gt)/2+Ut*Ut*(Mr-2*br+Gt)/2)]}Xo.invert=function(qe,ot){var wt=ot/o,Mt=wt*90,Ut=a(18,C(Mt/5)),zt=t(0,p(Ut));do{var Gt=vo[zt][1],gr=vo[zt+1][1],br=vo[a(19,zt+2)][1],sr=br-Gt,Mr=br-2*gr+Gt,Ir=2*(C(wt)-gr)/sr,Nr=Mr/sr,tn=Ir*(1-Nr*Ir*(1-2*Nr*Ir));if(tn>=0||zt===1){Mt=(ot>=0?5:-5)*(tn+Ut);var yn=50,Rn;do Ut=a(18,C(Mt)/5),zt=p(Ut),tn=Ut-zt,Gt=vo[zt][1],gr=vo[zt+1][1],br=vo[a(19,zt+2)][1],Mt-=(Rn=(ot>=0?o:-o)*(gr+tn*(br-Gt)/2+tn*tn*(br-2*gr+Gt)/2)-ot)*E;while(C(Rn)>b&&--yn>0);break}}while(--zt>=0);var Dn=vo[zt][0],Zn=vo[zt+1][0],Li=vo[a(19,zt+2)][0];return[qe/(Zn+tn*(Li-Dn)/2+tn*tn*(Li-2*Zn+Dn)/2),Mt*T]};function Ds(){return(0,g.c)(Xo).scale(152.63)}function bl(qe){function ot(wt,Mt){var Ut=x(Mt),zt=(qe-1)/(qe-Ut*x(wt));return[zt*Ut*l(wt),zt*l(Mt)]}return ot.invert=function(wt,Mt){var Ut=wt*wt+Mt*Mt,zt=z(Ut),Gt=(qe-z(1-Ut*(qe+1)/(qe-1)))/((qe-1)/zt+zt/(qe-1));return[S(wt*Gt,zt*z(1-Gt*Gt)),zt?L(Mt*Gt/zt):0]},ot}function Au(qe,ot){var wt=bl(qe);if(!ot)return wt;var Mt=x(ot),Ut=l(ot);function zt(Gt,gr){var br=wt(Gt,gr),sr=br[1],Mr=sr*Ut/(qe-1)+Mt;return[br[0]*Mt/Mr,sr/Mr]}return zt.invert=function(Gt,gr){var br=(qe-1)/(qe-1-gr*Ut);return wt.invert(br*Gt,br*gr*Mt)},zt}function Ks(){var qe=2,ot=0,wt=(0,g.U)(Au),Mt=wt(qe,ot);return Mt.distance=function(Ut){return arguments.length?wt(qe=+Ut,ot):qe},Mt.tilt=function(Ut){return arguments.length?wt(qe,ot=Ut*T):ot*E},Mt.scale(432.147).clipAngle(M(1/qe)*E-1e-6)}var Js=1e-4,kf=1e4,ms=-180,wl=ms+Js,Is=180,ys=Is-Js,Vl=-90,Tl=Vl+Js,ha=90,Al=ha-Js;function Mu(qe){return qe.length>0}function Of(qe){return Math.floor(qe*kf)/kf}function Ml(qe){return qe===Vl||qe===ha?[0,qe]:[ms,Of(qe)]}function Gl(qe){var ot=qe[0],wt=qe[1],Mt=!1;return ot<=wl?(ot=ms,Mt=!0):ot>=ys&&(ot=Is,Mt=!0),wt<=Tl?(wt=Vl,Mt=!0):wt>=Al&&(wt=ha,Mt=!0),Mt?[ot,wt]:qe}function Su(qe){return qe.map(Gl)}function Qu(qe,ot,wt){for(var Mt=0,Ut=qe.length;Mt=ys||Mr<=Tl||Mr>=Al){zt[Gt]=Gl(br);for(var Ir=Gt+1;Irwl&&tnTl&&yn=gr)break;wt.push({index:-1,polygon:ot,ring:zt=zt.slice(Ir-1)}),zt[0]=Ml(zt[0][1]),Gt=-1,gr=zt.length}}}}function Wl(qe){var ot,wt=qe.length,Mt={},Ut={},zt,Gt,gr,br,sr;for(ot=0;ot0?u-gr:gr)*E],sr=(0,g.c)(qe(Gt)).rotate(br),Mr=(0,Xe.c)(br),Ir=sr.center;return delete sr.rotate,sr.center=function(Nr){return arguments.length?Ir(Mr(Nr)):Mr.invert(Ir())},sr.clipAngle(90)}function $u(qe){var ot=x(qe);function wt(Mt,Ut){var zt=(0,Ps.Y)(Mt,Ut);return zt[0]*=ot,zt}return wt.invert=function(Mt,Ut){return Ps.Y.invert(Mt/ot,Ut)},wt}function Qs(){return Eu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Eu(qe,ot){return ns($u,qe,ot)}function Zl(qe){if(!(qe*=2))return oe.O;var ot=-qe/2,wt=-ot,Mt=qe*qe,Ut=m(wt),zt=.5/l(wt);function Gt(gr,br){var sr=M(x(br)*x(gr-ot)),Mr=M(x(br)*x(gr-wt)),Ir=br<0?-1:1;return sr*=sr,Mr*=Mr,[(sr-Mr)/(2*qe),Ir*z(4*Mt*Mr-(Mt-sr+Mr)*(Mt-sr+Mr))/(2*qe)]}return Gt.invert=function(gr,br){var sr=br*br,Mr=x(z(sr+(Nr=gr+ot)*Nr)),Ir=x(z(sr+(Nr=gr+wt)*Nr)),Nr,tn;return[S(tn=Mr-Ir,Nr=(Mr+Ir)*Ut),(br<0?-1:1)*M(z(Nr*Nr+tn*tn)*zt)]},Gt}function Fc(){return Nf([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Nf(qe,ot){return ns(Zl,qe,ot)}function lo(qe,ot){if(C(ot)h&&--gr>0);return[c(qe)*(z(Ut*Ut+4)+Ut)*u/4,o*Gt]};function Kl(){return(0,g.c)(To).scale(127.16)}function _u(qe,ot,wt,Mt,Ut){function zt(Gt,gr){var br=wt*l(Mt*gr),sr=z(1-br*br),Mr=z(2/(1+sr*x(Gt*=Ut)));return[qe*sr*Mr*l(Gt),ot*br*Mr]}return zt.invert=function(Gt,gr){var br=Gt/qe,sr=gr/ot,Mr=z(br*br+sr*sr),Ir=2*L(Mr/2);return[S(Gt*m(Ir),qe*Mr)/Ut,Mr&&L(gr*l(Ir)/(ot*wt*Mr))/Mt]},zt}function xs(qe,ot,wt,Mt){var Ut=u/3;qe=t(qe,h),ot=t(ot,h),qe=a(qe,o),ot=a(ot,u-h),wt=t(wt,0),wt=a(wt,100-h),Mt=t(Mt,h);var zt=wt/100+1,Gt=Mt/100,gr=M(zt*x(Ut))/Ut,br=l(qe)/l(gr*o),sr=ot/u,Mr=z(Gt*l(qe/2)/l(ot/2)),Ir=Mr/z(sr*br*gr),Nr=1/(Mr*z(sr*br*gr));return _u(Ir,Nr,br,gr,sr)}function Os(){var qe=65*T,ot=60*T,wt=20,Mt=200,Ut=(0,g.U)(xs),zt=Ut(qe,ot,wt,Mt);return zt.poleline=function(Gt){return arguments.length?Ut(qe=+Gt*T,ot,wt,Mt):qe*E},zt.parallels=function(Gt){return arguments.length?Ut(qe,ot=+Gt*T,wt,Mt):ot*E},zt.inflation=function(Gt){return arguments.length?Ut(qe,ot,wt=+Gt,Mt):wt},zt.ratio=function(Gt){return arguments.length?Ut(qe,ot,wt,Mt=+Gt):Mt},zt.scale(163.775)}function qu(){return Os().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Jl=4*u+3*z(3),Ql=2*z(2*u*z(3)/Jl),Cu=me(Ql*z(3)/u,Ql,Jl/6);function Uf(){return(0,g.c)(Cu).scale(176.84)}function $l(qe,ot){return[qe*z(1-3*ot*ot/(u*u)),ot]}$l.invert=function(qe,ot){return[qe/z(1-3*ot*ot/(u*u)),ot]};function ef(){return(0,g.c)($l).scale(152.63)}function $s(qe,ot){var wt=x(ot),Mt=x(qe)*wt,Ut=1-Mt,zt=x(qe=S(l(qe)*wt,-l(ot))),Gt=l(qe);return wt=z(1-Mt*Mt),[Gt*wt-zt*Ut,-zt*wt-Gt*Ut]}$s.invert=function(qe,ot){var wt=(qe*qe+ot*ot)/-2,Mt=z(-wt*(2+wt)),Ut=ot*wt+qe*Mt,zt=qe*wt-ot*Mt,Gt=z(zt*zt+Ut*Ut);return[S(Mt*Ut,Gt*(1+wt)),Gt?-L(Mt*zt/Gt):0]};function tf(){return(0,g.c)($s).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function ql(qe,ot){var wt=Y(qe,ot);return[(wt[0]+qe/o)/2,(wt[1]+ot)/2]}ql.invert=function(qe,ot){var wt=qe,Mt=ot,Ut=25;do{var zt=x(Mt),Gt=l(Mt),gr=l(2*Mt),br=Gt*Gt,sr=zt*zt,Mr=l(wt),Ir=x(wt/2),Nr=l(wt/2),tn=Nr*Nr,yn=1-sr*Ir*Ir,Rn=yn?M(zt*Ir)*z(Dn=1/yn):Dn=0,Dn,Zn=.5*(2*Rn*zt*Nr+wt/o)-qe,Li=.5*(Rn*Gt+Mt)-ot,Pi=.5*Dn*(sr*tn+Rn*zt*Ir*br)+.5/o,Ri=Dn*(Mr*gr/4-Rn*Gt*Nr),zi=.125*Dn*(gr*Nr-Rn*Gt*sr*Mr),Xi=.5*Dn*(br*Ir+Rn*tn*zt)+.5,va=Ri*zi-Xi*Pi,Ia=(Li*Ri-Zn*Xi)/va,fe=(Zn*zi-Li*Pi)/va;wt-=Ia,Mt-=fe}while((C(Ia)>h||C(fe)>h)&&--Ut>0);return[wt,Mt]};function Hf(){return(0,g.c)(ql).scale(158.837)}},88728:function(G,U,e){e.d(U,{c:function(){return g}});function g(){return new C}function C(){this.reset()}C.prototype={constructor:C,reset:function(){this.s=this.t=0},add:function(x){S(i,x,this.t),S(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new C;function S(x,v,p){var r=x.s=v+p,t=r-v,a=r-t;x.t=v-a+(p-t)}},95384:function(G,U,e){e.d(U,{cp:function(){return b},mQ:function(){return x},oB:function(){return f}});var g=e(88728),C=e(64528),i=e(70932),S=e(16016),x=(0,g.c)(),v=(0,g.c)(),p,r,t,a,n,f={point:i.c,lineStart:i.c,lineEnd:i.c,polygonStart:function(){x.reset(),f.lineStart=c,f.lineEnd=l},polygonEnd:function(){var u=+x;v.add(u<0?C.kD+u:u),this.lineStart=this.lineEnd=this.point=i.c},sphere:function(){v.add(C.kD)}};function c(){f.point=m}function l(){h(p,r)}function m(u,o){f.point=h,p=u,r=o,u*=C.qw,o*=C.qw,t=u,a=(0,C.W8)(o=o/2+C.wL),n=(0,C.g$)(o)}function h(u,o){u*=C.qw,o*=C.qw,o=o/2+C.wL;var d=u-t,w=d>=0?1:-1,A=w*d,_=(0,C.W8)(o),y=(0,C.g$)(o),E=n*y,T=a*_+E*(0,C.W8)(A),s=E*w*(0,C.g$)(A);x.add((0,C.WE)(s,T)),t=u,a=_,n=y}function b(u){return v.reset(),(0,S.c)(u,f),v*2}},13696:function(G,U,e){e.d(U,{c:function(){return L}});var g=e(88728),C=e(95384),i=e(84220),S=e(64528),x=e(16016),v,p,r,t,a,n,f,c,l=(0,g.c)(),m,h,b={point:u,lineStart:d,lineEnd:w,polygonStart:function(){b.point=A,b.lineStart=_,b.lineEnd=y,l.reset(),C.oB.polygonStart()},polygonEnd:function(){C.oB.polygonEnd(),b.point=u,b.lineStart=d,b.lineEnd=w,C.mQ<0?(v=-(r=180),p=-(t=90)):l>S.Gg?t=90:l<-S.Gg&&(p=-90),h[0]=v,h[1]=r},sphere:function(){v=-(r=180),p=-(t=90)}};function u(M,z){m.push(h=[v=M,r=M]),zt&&(t=z)}function o(M,z){var D=(0,i.ux)([M*S.qw,z*S.qw]);if(c){var N=(0,i.CW)(c,D),I=[N[1],-N[0],0],k=(0,i.CW)(I,N);(0,i.cJ)(k),k=(0,i.G)(k);var B=M-a,O=B>0?1:-1,H=k[0]*S.oh*O,Y,j=(0,S.a2)(B)>180;j^(O*at&&(t=Y)):(H=(H+360)%360-180,j^(O*at&&(t=z))),j?ME(v,r)&&(r=M):E(M,r)>E(v,r)&&(v=M):r>=v?(Mr&&(r=M)):M>a?E(v,M)>E(v,r)&&(r=M):E(M,r)>E(v,r)&&(v=M)}else m.push(h=[v=M,r=M]);zt&&(t=z),c=D,a=M}function d(){b.point=o}function w(){h[0]=v,h[1]=r,b.point=u,c=null}function A(M,z){if(c){var D=M-a;l.add((0,S.a2)(D)>180?D+(D>0?360:-360):D)}else n=M,f=z;C.oB.point(M,z),o(M,z)}function _(){C.oB.lineStart()}function y(){A(n,f),C.oB.lineEnd(),(0,S.a2)(l)>S.Gg&&(v=-(r=180)),h[0]=v,h[1]=r,c=null}function E(M,z){return(z-=M)<0?z+360:z}function T(M,z){return M[0]-z[0]}function s(M,z){return M[0]<=M[1]?M[0]<=z&&z<=M[1]:zE(N[0],N[1])&&(N[1]=I[1]),E(I[0],N[1])>E(N[0],N[1])&&(N[0]=I[0])):k.push(N=I);for(B=-1/0,D=k.length-1,z=0,N=k[D];z<=D;N=I,++z)I=k[z],(O=E(N[1],I[0]))>B&&(B=O,v=I[0],r=N[1])}return m=h=null,v===1/0||p===1/0?[[NaN,NaN],[NaN,NaN]]:[[v,p],[r,t]]}},84220:function(G,U,e){e.d(U,{CW:function(){return x},Ez:function(){return S},G:function(){return C},cJ:function(){return r},mg:function(){return v},ux:function(){return i},wx:function(){return p}});var g=e(64528);function C(t){return[(0,g.WE)(t[1],t[0]),(0,g.qR)(t[2])]}function i(t){var a=t[0],n=t[1],f=(0,g.W8)(n);return[f*(0,g.W8)(a),f*(0,g.g$)(a),(0,g.g$)(n)]}function S(t,a){return t[0]*a[0]+t[1]*a[1]+t[2]*a[2]}function x(t,a){return[t[1]*a[2]-t[2]*a[1],t[2]*a[0]-t[0]*a[2],t[0]*a[1]-t[1]*a[0]]}function v(t,a){t[0]+=a[0],t[1]+=a[1],t[2]+=a[2]}function p(t,a){return[t[0]*a,t[1]*a,t[2]*a]}function r(t){var a=(0,g._I)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=a,t[1]/=a,t[2]/=a}},24052:function(G,U,e){e.d(U,{c:function(){return D}});var g=e(64528),C=e(70932),i=e(16016),S,x,v,p,r,t,a,n,f,c,l,m,h,b,u,o,d={sphere:C.c,point:w,lineStart:_,lineEnd:T,polygonStart:function(){d.lineStart=s,d.lineEnd=L},polygonEnd:function(){d.lineStart=_,d.lineEnd=T}};function w(N,I){N*=g.qw,I*=g.qw;var k=(0,g.W8)(I);A(k*(0,g.W8)(N),k*(0,g.g$)(N),(0,g.g$)(I))}function A(N,I,k){++S,v+=(N-v)/S,p+=(I-p)/S,r+=(k-r)/S}function _(){d.point=y}function y(N,I){N*=g.qw,I*=g.qw;var k=(0,g.W8)(I);b=k*(0,g.W8)(N),u=k*(0,g.g$)(N),o=(0,g.g$)(I),d.point=E,A(b,u,o)}function E(N,I){N*=g.qw,I*=g.qw;var k=(0,g.W8)(I),B=k*(0,g.W8)(N),O=k*(0,g.g$)(N),H=(0,g.g$)(I),Y=(0,g.WE)((0,g._I)((Y=u*H-o*O)*Y+(Y=o*B-b*H)*Y+(Y=b*O-u*B)*Y),b*B+u*O+o*H);x+=Y,t+=Y*(b+(b=B)),a+=Y*(u+(u=O)),n+=Y*(o+(o=H)),A(b,u,o)}function T(){d.point=w}function s(){d.point=M}function L(){z(m,h),d.point=w}function M(N,I){m=N,h=I,N*=g.qw,I*=g.qw,d.point=z;var k=(0,g.W8)(I);b=k*(0,g.W8)(N),u=k*(0,g.g$)(N),o=(0,g.g$)(I),A(b,u,o)}function z(N,I){N*=g.qw,I*=g.qw;var k=(0,g.W8)(I),B=k*(0,g.W8)(N),O=k*(0,g.g$)(N),H=(0,g.g$)(I),Y=u*H-o*O,j=o*B-b*H,te=b*O-u*B,ie=(0,g._I)(Y*Y+j*j+te*te),ue=(0,g.qR)(ie),J=ie&&-ue/ie;f+=J*Y,c+=J*j,l+=J*te,x+=ue,t+=ue*(b+(b=B)),a+=ue*(u+(u=O)),n+=ue*(o+(o=H)),A(b,u,o)}function D(N){S=x=v=p=r=t=a=n=f=c=l=0,(0,i.c)(N,d);var I=f,k=c,B=l,O=I*I+k*k+B*B;return O0?fc)&&(f+=n*i.kD));for(var b,u=f;n>0?u>c:u0?C.pi:-C.pi,l=(0,C.a2)(n-p);(0,C.a2)(l-C.pi)0?C.or:-C.or),v.point(t,r),v.lineEnd(),v.lineStart(),v.point(c,r),v.point(n,r),a=0):t!==c&&l>=C.pi&&((0,C.a2)(p-t)C.Gg?(0,C.MQ)(((0,C.g$)(p)*(n=(0,C.W8)(t))*(0,C.g$)(r)-(0,C.g$)(t)*(a=(0,C.W8)(p))*(0,C.g$)(v))/(a*n*f)):(p+t)/2}function x(v,p,r,t){var a;if(v==null)a=r*C.or,t.point(-C.pi,a),t.point(0,a),t.point(C.pi,a),t.point(C.pi,0),t.point(C.pi,-a),t.point(0,-a),t.point(-C.pi,-a),t.point(-C.pi,0),t.point(-C.pi,a);else if((0,C.a2)(v[0]-p[0])>C.Gg){var n=v[0]1&&i.push(i.pop().concat(i.shift()))},result:function(){var x=i;return i=[],S=null,x}}}},2728:function(G,U,e){e.d(U,{c:function(){return v}});var g=e(84220),C=e(61780),i=e(64528),S=e(41860),x=e(14229);function v(p){var r=(0,i.W8)(p),t=6*i.qw,a=r>0,n=(0,i.a2)(r)>i.Gg;function f(b,u,o,d){(0,C.Q)(d,p,t,o,b,u)}function c(b,u){return(0,i.W8)(b)*(0,i.W8)(u)>r}function l(b){var u,o,d,w,A;return{lineStart:function(){w=d=!1,A=1},point:function(_,y){var E=[_,y],T,s=c(_,y),L=a?s?0:h(_,y):s?h(_+(_<0?i.pi:-i.pi),y):0;if(!u&&(w=d=s)&&b.lineStart(),s!==d&&(T=m(u,E),(!T||(0,S.c)(u,T)||(0,S.c)(E,T))&&(E[2]=1)),s!==d)A=0,s?(b.lineStart(),T=m(E,u),b.point(T[0],T[1])):(T=m(u,E),b.point(T[0],T[1],2),b.lineEnd()),u=T;else if(n&&u&&a^s){var M;!(L&o)&&(M=m(E,u,!0))&&(A=0,a?(b.lineStart(),b.point(M[0][0],M[0][1]),b.point(M[1][0],M[1][1]),b.lineEnd()):(b.point(M[1][0],M[1][1]),b.lineEnd(),b.lineStart(),b.point(M[0][0],M[0][1],3)))}s&&(!u||!(0,S.c)(u,E))&&b.point(E[0],E[1]),u=E,d=s,o=L},lineEnd:function(){d&&b.lineEnd(),u=null},clean:function(){return A|(w&&d)<<1}}}function m(b,u,o){var d=(0,g.ux)(b),w=(0,g.ux)(u),A=[1,0,0],_=(0,g.CW)(d,w),y=(0,g.Ez)(_,_),E=_[0],T=y-E*E;if(!T)return!o&&b;var s=r*y/T,L=-r*E/T,M=(0,g.CW)(A,_),z=(0,g.wx)(A,s),D=(0,g.wx)(_,L);(0,g.mg)(z,D);var N=M,I=(0,g.Ez)(z,N),k=(0,g.Ez)(N,N),B=I*I-k*((0,g.Ez)(z,z)-1);if(!(B<0)){var O=(0,i._I)(B),H=(0,g.wx)(N,(-I-O)/k);if((0,g.mg)(H,z),H=(0,g.G)(H),!o)return H;var Y=b[0],j=u[0],te=b[1],ie=u[1],ue;j0^H[1]<((0,i.a2)(H[0]-Y)i.pi^(Y<=H[0]&&H[0]<=j)){var V=(0,g.wx)(N,(-I+O)/k);return(0,g.mg)(V,z),[H,(0,g.G)(V)]}}}function h(b,u){var o=a?p:i.pi-p,d=0;return b<-o?d|=1:b>o&&(d|=2),u<-o?d|=4:u>o&&(d|=8),d}return(0,x.c)(c,l,f,a?[0,-p]:[-i.pi,p-i.pi])}},14229:function(G,U,e){e.d(U,{c:function(){return v}});var g=e(97208),C=e(32232),i=e(64528),S=e(58196),x=e(84706);function v(t,a,n,f){return function(c){var l=a(c),m=(0,g.c)(),h=a(m),b=!1,u,o,d,w={point:A,lineStart:y,lineEnd:E,polygonStart:function(){w.point=T,w.lineStart=s,w.lineEnd=L,o=[],u=[]},polygonEnd:function(){w.point=A,w.lineStart=y,w.lineEnd=E,o=(0,x.Uf)(o);var M=(0,S.c)(u,f);o.length?(b||(c.polygonStart(),b=!0),(0,C.c)(o,r,M,n,c)):M&&(b||(c.polygonStart(),b=!0),c.lineStart(),n(null,null,1,c),c.lineEnd()),b&&(c.polygonEnd(),b=!1),o=u=null},sphere:function(){c.polygonStart(),c.lineStart(),n(null,null,1,c),c.lineEnd(),c.polygonEnd()}};function A(M,z){t(M,z)&&c.point(M,z)}function _(M,z){l.point(M,z)}function y(){w.point=_,l.lineStart()}function E(){w.point=A,l.lineEnd()}function T(M,z){d.push([M,z]),h.point(M,z)}function s(){h.lineStart(),d=[]}function L(){T(d[0][0],d[0][1]),h.lineEnd();var M=h.clean(),z=m.result(),D,N=z.length,I,k,B;if(d.pop(),u.push(d),d=null,!!N){if(M&1){if(k=z[0],(I=k.length-1)>0){for(b||(c.polygonStart(),b=!0),c.lineStart(),D=0;D1&&M&2&&z.push(z.pop().concat(z.shift())),o.push(z.filter(p))}}return w}}function p(t){return t.length>1}function r(t,a){return((t=t.x)[0]<0?t[1]-i.or-i.Gg:i.or-t[1])-((a=a.x)[0]<0?a[1]-i.or-i.Gg:i.or-a[1])}},21676:function(G,U,e){e.d(U,{c:function(){return r}});var g=e(64528),C=e(97208);function i(t,a,n,f,c,l){var m=t[0],h=t[1],b=a[0],u=a[1],o=0,d=1,w=b-m,A=u-h,_;if(_=n-m,!(!w&&_>0)){if(_/=w,w<0){if(_0){if(_>d)return;_>o&&(o=_)}if(_=c-m,!(!w&&_<0)){if(_/=w,w<0){if(_>d)return;_>o&&(o=_)}else if(w>0){if(_0)){if(_/=A,A<0){if(_0){if(_>d)return;_>o&&(o=_)}if(_=l-h,!(!A&&_<0)){if(_/=A,A<0){if(_>d)return;_>o&&(o=_)}else if(A>0){if(_0&&(t[0]=m+o*w,t[1]=h+o*A),d<1&&(a[0]=m+d*w,a[1]=h+d*A),!0}}}}}var S=e(32232),x=e(84706),v=1e9,p=-v;function r(t,a,n,f){function c(u,o){return t<=u&&u<=n&&a<=o&&o<=f}function l(u,o,d,w){var A=0,_=0;if(u==null||(A=m(u,d))!==(_=m(o,d))||b(u,o)<0^d>0)do w.point(A===0||A===3?t:n,A>1?f:a);while((A=(A+d+4)%4)!==_);else w.point(o[0],o[1])}function m(u,o){return(0,g.a2)(u[0]-t)0?0:3:(0,g.a2)(u[0]-n)0?2:1:(0,g.a2)(u[1]-a)0?1:0:o>0?3:2}function h(u,o){return b(u.x,o.x)}function b(u,o){var d=m(u,1),w=m(o,1);return d!==w?d-w:d===0?o[1]-u[1]:d===1?u[0]-o[0]:d===2?u[1]-o[1]:o[0]-u[0]}return function(u){var o=u,d=(0,C.c)(),w,A,_,y,E,T,s,L,M,z,D,N={point:I,lineStart:H,lineEnd:Y,polygonStart:B,polygonEnd:O};function I(te,ie){c(te,ie)&&o.point(te,ie)}function k(){for(var te=0,ie=0,ue=A.length;ief&&($-Q)*(f-oe)>(Z-oe)*(t-Q)&&++te:Z<=f&&($-Q)*(f-oe)<(Z-oe)*(t-Q)&&--te;return te}function B(){o=d,w=[],A=[],D=!0}function O(){var te=k(),ie=D&&te,ue=(w=(0,x.Uf)(w)).length;(ie||ue)&&(u.polygonStart(),ie&&(u.lineStart(),l(null,null,1,u),u.lineEnd()),ue&&(0,S.c)(w,h,te,l,u),u.polygonEnd()),o=u,w=A=_=null}function H(){N.point=j,A&&A.push(_=[]),z=!0,M=!1,s=L=NaN}function Y(){w&&(j(y,E),T&&M&&d.rejoin(),w.push(d.result())),N.point=I,M&&o.lineEnd()}function j(te,ie){var ue=c(te,ie);if(A&&_.push([te,ie]),z)y=te,E=ie,T=ue,z=!1,ue&&(o.lineStart(),o.point(te,ie));else if(ue&&M)o.point(te,ie);else{var J=[s=Math.max(p,Math.min(v,s)),L=Math.max(p,Math.min(v,L))],X=[te=Math.max(p,Math.min(v,te)),ie=Math.max(p,Math.min(v,ie))];i(J,X,t,a,n,f)?(M||(o.lineStart(),o.point(J[0],J[1])),o.point(X[0],X[1]),ue||o.lineEnd(),D=!1):ue&&(o.lineStart(),o.point(te,ie),D=!1)}s=te,L=ie,M=ue}return N}}},32232:function(G,U,e){e.d(U,{c:function(){return S}});var g=e(41860),C=e(64528);function i(v,p,r,t){this.x=v,this.z=p,this.o=r,this.e=t,this.v=!1,this.n=this.p=null}function S(v,p,r,t,a){var n=[],f=[],c,l;if(v.forEach(function(d){if(!((w=d.length-1)<=0)){var w,A=d[0],_=d[w],y;if((0,g.c)(A,_)){if(!A[2]&&!_[2]){for(a.lineStart(),c=0;c=0;--c)a.point((b=h[c])[0],b[1]);else t(u.x,u.p.x,-1,a);u=u.p}u=u.o,h=u.z,o=!o}while(!u.v);a.lineEnd()}}}function x(v){if(p=v.length){for(var p,r=0,t=v[0],a;++r0&&(an=T(Tr[pn],Tr[pn-1]),an>0&&Wr<=an&&Ur<=an&&(Wr+Ur-an)*(1-Math.pow((Wr-Ur)/an,2))n.Gg}).map(li)).concat((0,O.ik)((0,n.Km)(pn/ni)*ni,an,ni).filter(function(Tn){return(0,n.a2)(Tn%di)>n.Gg}).map(ri))}return dn.lines=function(){return Vn().map(function(Tn){return{type:"LineString",coordinates:Tn}})},dn.outline=function(){return{type:"Polygon",coordinates:[wr(Ur).concat(nn(gn).slice(1),wr(Wr).reverse().slice(1),nn(_n).reverse().slice(1))]}},dn.extent=function(Tn){return arguments.length?dn.extentMajor(Tn).extentMinor(Tn):dn.extentMinor()},dn.extentMajor=function(Tn){return arguments.length?(Ur=+Tn[0][0],Wr=+Tn[1][0],_n=+Tn[0][1],gn=+Tn[1][1],Ur>Wr&&(Tn=Ur,Ur=Wr,Wr=Tn),_n>gn&&(Tn=_n,_n=gn,gn=Tn),dn.precision($r)):[[Ur,_n],[Wr,gn]]},dn.extentMinor=function(Tn){return arguments.length?(Cr=+Tn[0][0],Tr=+Tn[1][0],pn=+Tn[0][1],an=+Tn[1][1],Cr>Tr&&(Tn=Cr,Cr=Tr,Tr=Tn),pn>an&&(Tn=pn,pn=an,an=Tn),dn.precision($r)):[[Cr,pn],[Tr,an]]},dn.step=function(Tn){return arguments.length?dn.stepMajor(Tn).stepMinor(Tn):dn.stepMinor()},dn.stepMajor=function(Tn){return arguments.length?(ci=+Tn[0],di=+Tn[1],dn):[ci,di]},dn.stepMinor=function(Tn){return arguments.length?(kn=+Tn[0],ni=+Tn[1],dn):[kn,ni]},dn.precision=function(Tn){return arguments.length?($r=+Tn,li=H(pn,an,90),ri=Y(Cr,Tr,$r),wr=H(_n,gn,90),nn=Y(Ur,Wr,$r),dn):$r},dn.extentMajor([[-180,-90+n.Gg],[180,90-n.Gg]]).extentMinor([[-180,-80-n.Gg],[180,80+n.Gg]])}function te(){return j()()}var ie=e(27284),ue=e(7376),J=(0,a.c)(),X=(0,a.c)(),ee,V,Q,oe,$={point:f.c,lineStart:f.c,lineEnd:f.c,polygonStart:function(){$.lineStart=Z,$.lineEnd=ce},polygonEnd:function(){$.lineStart=$.lineEnd=$.point=f.c,J.add((0,n.a2)(X)),X.reset()},result:function(){var Tr=J/2;return J.reset(),Tr}};function Z(){$.point=se}function se(Tr,Cr){$.point=ne,ee=Q=Tr,V=oe=Cr}function ne(Tr,Cr){X.add(oe*Tr-Q*Cr),Q=Tr,oe=Cr}function ce(){ne(ee,V)}var ge=$,Te=e(73784),we=0,Re=0,be=0,Ae=0,me=0,Le=0,He=0,Ue=0,ke=0,Ve,Ie,rt,Ke,$e={point:lt,lineStart:ht,lineEnd:St,polygonStart:function(){$e.lineStart=nt,$e.lineEnd=ze},polygonEnd:function(){$e.point=lt,$e.lineStart=ht,$e.lineEnd=St},result:function(){var Tr=ke?[He/ke,Ue/ke]:Le?[Ae/Le,me/Le]:be?[we/be,Re/be]:[NaN,NaN];return we=Re=be=Ae=me=Le=He=Ue=ke=0,Tr}};function lt(Tr,Cr){we+=Tr,Re+=Cr,++be}function ht(){$e.point=dt}function dt(Tr,Cr){$e.point=xt,lt(rt=Tr,Ke=Cr)}function xt(Tr,Cr){var Wr=Tr-rt,Ur=Cr-Ke,an=(0,n._I)(Wr*Wr+Ur*Ur);Ae+=an*(rt+Tr)/2,me+=an*(Ke+Cr)/2,Le+=an,lt(rt=Tr,Ke=Cr)}function St(){$e.point=lt}function nt(){$e.point=Xe}function ze(){Je(Ve,Ie)}function Xe(Tr,Cr){$e.point=Je,lt(Ve=rt=Tr,Ie=Ke=Cr)}function Je(Tr,Cr){var Wr=Tr-rt,Ur=Cr-Ke,an=(0,n._I)(Wr*Wr+Ur*Ur);Ae+=an*(rt+Tr)/2,me+=an*(Ke+Cr)/2,Le+=an,an=Ke*Tr-rt*Cr,He+=an*(rt+Tr),Ue+=an*(Ke+Cr),ke+=an*3,lt(rt=Tr,Ke=Cr)}var We=$e;function Fe(Tr){this._context=Tr}Fe.prototype={_radius:4.5,pointRadius:function(Tr){return this._radius=Tr,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Tr,Cr){switch(this._point){case 0:{this._context.moveTo(Tr,Cr),this._point=1;break}case 1:{this._context.lineTo(Tr,Cr);break}default:{this._context.moveTo(Tr+this._radius,Cr),this._context.arc(Tr,Cr,this._radius,0,n.kD);break}}},result:f.c};var xe=(0,a.c)(),ye,Ee,Me,Ne,je,it={point:f.c,lineStart:function(){it.point=mt},lineEnd:function(){ye&&bt(Ee,Me),it.point=f.c},polygonStart:function(){ye=!0},polygonEnd:function(){ye=null},result:function(){var Tr=+xe;return xe.reset(),Tr}};function mt(Tr,Cr){it.point=bt,Ee=Ne=Tr,Me=je=Cr}function bt(Tr,Cr){Ne-=Tr,je-=Cr,xe.add((0,n._I)(Ne*Ne+je*je)),Ne=Tr,je=Cr}var vt=it;function Lt(){this._string=[]}Lt.prototype={_radius:4.5,_circle:ct(4.5),pointRadius:function(Tr){return(Tr=+Tr)!==this._radius&&(this._radius=Tr,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Tr,Cr){switch(this._point){case 0:{this._string.push("M",Tr,",",Cr),this._point=1;break}case 1:{this._string.push("L",Tr,",",Cr);break}default:{this._circle==null&&(this._circle=ct(this._radius)),this._string.push("M",Tr,",",Cr,this._circle);break}}},result:function(){if(this._string.length){var Tr=this._string.join("");return this._string=[],Tr}else return null}};function ct(Tr){return"m0,"+Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+-2*Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+2*Tr+"z"}function Tt(Tr,Cr){var Wr=4.5,Ur,an;function pn(gn){return gn&&(typeof Wr=="function"&&an.pointRadius(+Wr.apply(this,arguments)),(0,c.c)(gn,Ur(an))),an.result()}return pn.area=function(gn){return(0,c.c)(gn,Ur(ge)),ge.result()},pn.measure=function(gn){return(0,c.c)(gn,Ur(vt)),vt.result()},pn.bounds=function(gn){return(0,c.c)(gn,Ur(Te.c)),Te.c.result()},pn.centroid=function(gn){return(0,c.c)(gn,Ur(We)),We.result()},pn.projection=function(gn){return arguments.length?(Ur=gn==null?(Tr=null,ue.c):(Tr=gn).stream,pn):Tr},pn.context=function(gn){return arguments.length?(an=gn==null?(Cr=null,new Lt):new Fe(Cr=gn),typeof Wr!="function"&&an.pointRadius(Wr),pn):Cr},pn.pointRadius=function(gn){return arguments.length?(Wr=typeof gn=="function"?gn:(an.pointRadius(+gn),+gn),pn):Wr},pn.projection(Tr).context(Cr)}var Bt=e(87952);function ir(Tr){var Cr=0,Wr=n.pi/3,Ur=(0,Bt.U)(Tr),an=Ur(Cr,Wr);return an.parallels=function(pn){return arguments.length?Ur(Cr=pn[0]*n.qw,Wr=pn[1]*n.qw):[Cr*n.oh,Wr*n.oh]},an}function pt(Tr){var Cr=(0,n.W8)(Tr);function Wr(Ur,an){return[Ur*Cr,(0,n.g$)(an)/Cr]}return Wr.invert=function(Ur,an){return[Ur/Cr,(0,n.qR)(an*Cr)]},Wr}function Xt(Tr,Cr){var Wr=(0,n.g$)(Tr),Ur=(Wr+(0,n.g$)(Cr))/2;if((0,n.a2)(Ur)=.12&&$r<.234&&nn>=-.425&&nn<-.214?an:$r>=.166&&$r<.234&&nn>=-.214&&nn<-.115?gn:Wr).invert(li)},ci.stream=function(li){return Tr&&Cr===li?Tr:Tr=gt([Wr.stream(Cr=li),an.stream(li),gn.stream(li)])},ci.precision=function(li){return arguments.length?(Wr.precision(li),an.precision(li),gn.precision(li),di()):Wr.precision()},ci.scale=function(li){return arguments.length?(Wr.scale(li),an.scale(li*.35),gn.scale(li),ci.translate(Wr.translate())):Wr.scale()},ci.translate=function(li){if(!arguments.length)return Wr.translate();var ri=Wr.scale(),wr=+li[0],nn=+li[1];return Ur=Wr.translate(li).clipExtent([[wr-.455*ri,nn-.238*ri],[wr+.455*ri,nn+.238*ri]]).stream(ni),pn=an.translate([wr-.307*ri,nn+.201*ri]).clipExtent([[wr-.425*ri+n.Gg,nn+.12*ri+n.Gg],[wr-.214*ri-n.Gg,nn+.234*ri-n.Gg]]).stream(ni),_n=gn.translate([wr-.205*ri,nn+.212*ri]).clipExtent([[wr-.214*ri+n.Gg,nn+.166*ri+n.Gg],[wr-.115*ri-n.Gg,nn+.234*ri-n.Gg]]).stream(ni),di()},ci.fitExtent=function(li,ri){return(0,$t.QX)(ci,li,ri)},ci.fitSize=function(li,ri){return(0,$t.UV)(ci,li,ri)},ci.fitWidth=function(li,ri){return(0,$t.Qx)(ci,li,ri)},ci.fitHeight=function(li,ri){return(0,$t.OW)(ci,li,ri)};function di(){return Tr=Cr=null,ci}return ci.scale(1070)}var At=e(54724),Ct=e(69020),It=e(92992);function Pt(Tr,Cr){return[Tr,(0,n.Yz)((0,n.a6)((n.or+Cr)/2))]}Pt.invert=function(Tr,Cr){return[Tr,2*(0,n.MQ)((0,n.oN)(Cr))-n.or]};function kt(){return Vt(Pt).scale(961/n.kD)}function Vt(Tr){var Cr=(0,Bt.c)(Tr),Wr=Cr.center,Ur=Cr.scale,an=Cr.translate,pn=Cr.clipExtent,gn=null,_n,kn,ni;Cr.scale=function(di){return arguments.length?(Ur(di),ci()):Ur()},Cr.translate=function(di){return arguments.length?(an(di),ci()):an()},Cr.center=function(di){return arguments.length?(Wr(di),ci()):Wr()},Cr.clipExtent=function(di){return arguments.length?(di==null?gn=_n=kn=ni=null:(gn=+di[0][0],_n=+di[0][1],kn=+di[1][0],ni=+di[1][1]),ci()):gn==null?null:[[gn,_n],[kn,ni]]};function ci(){var di=n.pi*Ur(),li=Cr((0,It.c)(Cr.rotate()).invert([0,0]));return pn(gn==null?[[li[0]-di,li[1]-di],[li[0]+di,li[1]+di]]:Tr===Pt?[[Math.max(li[0]-di,gn),_n],[Math.min(li[0]+di,kn),ni]]:[[gn,Math.max(li[1]-di,_n)],[kn,Math.min(li[1]+di,ni)]])}return ci()}function Jt(Tr){return(0,n.a6)((n.or+Tr)/2)}function ur(Tr,Cr){var Wr=(0,n.W8)(Tr),Ur=Tr===Cr?(0,n.g$)(Tr):(0,n.Yz)(Wr/(0,n.W8)(Cr))/(0,n.Yz)(Jt(Cr)/Jt(Tr)),an=Wr*(0,n.g3)(Jt(Tr),Ur)/Ur;if(!Ur)return Pt;function pn(gn,_n){an>0?_n<-n.or+n.Gg&&(_n=-n.or+n.Gg):_n>n.or-n.Gg&&(_n=n.or-n.Gg);var kn=an/(0,n.g3)(Jt(_n),Ur);return[kn*(0,n.g$)(Ur*gn),an-kn*(0,n.W8)(Ur*gn)]}return pn.invert=function(gn,_n){var kn=an-_n,ni=(0,n.kq)(Ur)*(0,n._I)(gn*gn+kn*kn),ci=(0,n.WE)(gn,(0,n.a2)(kn))*(0,n.kq)(kn);return kn*Ur<0&&(ci-=n.pi*(0,n.kq)(gn)*(0,n.kq)(kn)),[ci/Ur,2*(0,n.MQ)((0,n.g3)(an/ni,1/Ur))-n.or]},pn}function hr(){return ir(ur).scale(109.5).parallels([30,30])}var vr=e(69604);function Ye(Tr,Cr){var Wr=(0,n.W8)(Tr),Ur=Tr===Cr?(0,n.g$)(Tr):(Wr-(0,n.W8)(Cr))/(Cr-Tr),an=Wr/Ur+Tr;if((0,n.a2)(Ur)2?Ur[2]+90:90]):(Ur=Wr(),[Ur[0],Ur[1],Ur[2]-90])},Wr([0,0,90]).scale(159.155)}},27284:function(G,U,e){e.d(U,{c:function(){return C}});var g=e(64528);function C(i,S){var x=i[0]*g.qw,v=i[1]*g.qw,p=S[0]*g.qw,r=S[1]*g.qw,t=(0,g.W8)(v),a=(0,g.g$)(v),n=(0,g.W8)(r),f=(0,g.g$)(r),c=t*(0,g.W8)(x),l=t*(0,g.g$)(x),m=n*(0,g.W8)(p),h=n*(0,g.g$)(p),b=2*(0,g.qR)((0,g._I)((0,g.SD)(r-v)+t*n*(0,g.SD)(p-x))),u=(0,g.g$)(b),o=b?function(d){var w=(0,g.g$)(d*=b)/u,A=(0,g.g$)(b-d)/u,_=A*c+w*m,y=A*l+w*h,E=A*a+w*f;return[(0,g.WE)(y,_)*g.oh,(0,g.WE)(E,(0,g._I)(_*_+y*y))*g.oh]}:function(){return[x*g.oh,v*g.oh]};return o.distance=b,o}},64528:function(G,U,e){e.d(U,{Gg:function(){return g},Km:function(){return c},MQ:function(){return a},SD:function(){return _},W8:function(){return f},WE:function(){return n},Yz:function(){return m},_I:function(){return o},a2:function(){return t},a6:function(){return d},a8:function(){return C},g$:function(){return b},g3:function(){return h},kD:function(){return v},kq:function(){return u},mE:function(){return w},oN:function(){return l},oh:function(){return p},or:function(){return S},pi:function(){return i},qR:function(){return A},qw:function(){return r},wL:function(){return x}});var g=1e-6,C=1e-12,i=Math.PI,S=i/2,x=i/4,v=i*2,p=180/i,r=i/180,t=Math.abs,a=Math.atan,n=Math.atan2,f=Math.cos,c=Math.ceil,l=Math.exp,m=Math.log,h=Math.pow,b=Math.sin,u=Math.sign||function(y){return y>0?1:y<0?-1:0},o=Math.sqrt,d=Math.tan;function w(y){return y>1?0:y<-1?i:Math.acos(y)}function A(y){return y>1?S:y<-1?-S:Math.asin(y)}function _(y){return(y=b(y/2))*y}},70932:function(G,U,e){e.d(U,{c:function(){return g}});function g(){}},73784:function(G,U,e){var g=e(70932),C=1/0,i=C,S=-C,x=S,v={point:p,lineStart:g.c,lineEnd:g.c,polygonStart:g.c,polygonEnd:g.c,result:function(){var r=[[C,i],[S,x]];return S=x=-(i=C=1/0),r}};function p(r,t){rS&&(S=r),tx&&(x=t)}U.c=v},41860:function(G,U,e){e.d(U,{c:function(){return C}});var g=e(64528);function C(i,S){return(0,g.a2)(i[0]-S[0])=0?1:-1,N=D*z,I=N>i.pi,k=A*L;if(S.add((0,i.WE)(k*D*(0,i.g$)(N),_*M+k*(0,i.W8)(N))),c+=I?z+D*i.kD:z,I^d>=t^T>=t){var B=(0,C.CW)((0,C.ux)(o),(0,C.ux)(E));(0,C.cJ)(B);var O=(0,C.CW)(f,B);(0,C.cJ)(O);var H=(I^z>=0?-1:1)*(0,i.qR)(O[2]);(a>H||a===H&&(B[0]||B[1]))&&(l+=I^z>=0?1:-1)}}return(c<-i.Gg||c4*_&&H--){var ue=L+k,J=M+B,X=z+O,ee=(0,v._I)(ue*ue+J*J+X*X),V=(0,v.qR)(X/=ee),Q=(0,v.a2)((0,v.a2)(X)-1)_||(0,v.a2)((j*se+te*ne)/ie-.5)>.3||L*k+M*B+z*O2?ce[2]%360*v.qw:0,se()):[M*v.oh,z*v.oh,D*v.oh]},$.angle=function(ce){return arguments.length?(I=ce%360*v.qw,se()):I*v.oh},$.reflectX=function(ce){return arguments.length?(k=ce?-1:1,se()):k<0},$.reflectY=function(ce){return arguments.length?(B=ce?-1:1,se()):B<0},$.precision=function(ce){return arguments.length?(X=c(ee,J=ce*ce),ne()):(0,v._I)(J)},$.fitExtent=function(ce,ge){return(0,t.QX)($,ce,ge)},$.fitSize=function(ce,ge){return(0,t.UV)($,ce,ge)},$.fitWidth=function(ce,ge){return(0,t.Qx)($,ce,ge)},$.fitHeight=function(ce,ge){return(0,t.OW)($,ce,ge)};function se(){var ce=o(y,0,0,k,B,I).apply(null,_(s,L)),ge=(I?o:u)(y,E-ce[0],T-ce[1],k,B,I);return N=(0,p.O)(M,z,D),ee=(0,S.c)(_,ge),V=(0,S.c)(N,ee),X=c(ee,J),ne()}function ne(){return Q=oe=null,$}return function(){return _=A.apply(this,arguments),$.invert=_.invert&&Z,se()}}},47984:function(G,U,e){e.d(U,{c:function(){return S},g:function(){return i}});var g=e(87952),C=e(64528);function i(x,v){var p=v*v,r=p*p;return[x*(.8707-.131979*p+r*(-.013791+r*(.003971*p-.001529*r))),v*(1.007226+p*(.015085+r*(-.044475+.028874*p-.005916*r)))]}i.invert=function(x,v){var p=v,r=25,t;do{var a=p*p,n=a*a;p-=t=(p*(1.007226+a*(.015085+n*(-.044475+.028874*a-.005916*n)))-v)/(1.007226+a*(.045255+n*(-.311325+.259866*a-.06507600000000001*n)))}while((0,C.a2)(t)>C.Gg&&--r>0);return[x/(.8707+(a=p*p)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),p]};function S(){return(0,g.c)(i).scale(175.295)}},4888:function(G,U,e){e.d(U,{c:function(){return x},t:function(){return S}});var g=e(64528),C=e(62280),i=e(87952);function S(v,p){return[(0,g.W8)(p)*(0,g.g$)(v),(0,g.g$)(p)]}S.invert=(0,C.g)(g.qR);function x(){return(0,i.c)(S).scale(249.5).clipAngle(90+g.Gg)}},92992:function(G,U,e){e.d(U,{O:function(){return S},c:function(){return r}});var g=e(68120),C=e(64528);function i(t,a){return[(0,C.a2)(t)>C.pi?t+Math.round(-t/C.kD)*C.kD:t,a]}i.invert=i;function S(t,a,n){return(t%=C.kD)?a||n?(0,g.c)(v(t),p(a,n)):v(t):a||n?p(a,n):i}function x(t){return function(a,n){return a+=t,[a>C.pi?a-C.kD:a<-C.pi?a+C.kD:a,n]}}function v(t){var a=x(t);return a.invert=x(-t),a}function p(t,a){var n=(0,C.W8)(t),f=(0,C.g$)(t),c=(0,C.W8)(a),l=(0,C.g$)(a);function m(h,b){var u=(0,C.W8)(b),o=(0,C.W8)(h)*u,d=(0,C.g$)(h)*u,w=(0,C.g$)(b),A=w*n+o*f;return[(0,C.WE)(d*c-A*l,o*n-w*f),(0,C.qR)(A*c+d*l)]}return m.invert=function(h,b){var u=(0,C.W8)(b),o=(0,C.W8)(h)*u,d=(0,C.g$)(h)*u,w=(0,C.g$)(b),A=w*c-d*l;return[(0,C.WE)(d*c+w*l,o*n+A*f),(0,C.qR)(A*n-o*f)]},m}function r(t){t=S(t[0]*C.qw,t[1]*C.qw,t.length>2?t[2]*C.qw:0);function a(n){return n=t(n[0]*C.qw,n[1]*C.qw),n[0]*=C.oh,n[1]*=C.oh,n}return a.invert=function(n){return n=t.invert(n[0]*C.qw,n[1]*C.qw),n[0]*=C.oh,n[1]*=C.oh,n},a}},16016:function(G,U,e){e.d(U,{c:function(){return v}});function g(p,r){p&&i.hasOwnProperty(p.type)&&i[p.type](p,r)}var C={Feature:function(p,r){g(p.geometry,r)},FeatureCollection:function(p,r){for(var t=p.features,a=-1,n=t.length;++a=0;)xe+=ye[Ee].value;Fe.value=xe}function a(){return this.eachAfter(t)}function n(Fe){var xe=this,ye,Ee=[xe],Me,Ne,je;do for(ye=Ee.reverse(),Ee=[];xe=ye.pop();)if(Fe(xe),Me=xe.children,Me)for(Ne=0,je=Me.length;Ne=0;--Me)ye.push(Ee[Me]);return this}function c(Fe){for(var xe=this,ye=[xe],Ee=[],Me,Ne,je;xe=ye.pop();)if(Ee.push(xe),Me=xe.children,Me)for(Ne=0,je=Me.length;Ne=0;)ye+=Ee[Me].value;xe.value=ye})}function m(Fe){return this.eachBefore(function(xe){xe.children&&xe.children.sort(Fe)})}function h(Fe){for(var xe=this,ye=b(xe,Fe),Ee=[xe];xe!==ye;)xe=xe.parent,Ee.push(xe);for(var Me=Ee.length;Fe!==ye;)Ee.splice(Me,0,Fe),Fe=Fe.parent;return Ee}function b(Fe,xe){if(Fe===xe)return Fe;var ye=Fe.ancestors(),Ee=xe.ancestors(),Me=null;for(Fe=ye.pop(),xe=Ee.pop();Fe===xe;)Me=Fe,Fe=ye.pop(),xe=Ee.pop();return Me}function u(){for(var Fe=this,xe=[Fe];Fe=Fe.parent;)xe.push(Fe);return xe}function o(){var Fe=[];return this.each(function(xe){Fe.push(xe)}),Fe}function d(){var Fe=[];return this.eachBefore(function(xe){xe.children||Fe.push(xe)}),Fe}function w(){var Fe=this,xe=[];return Fe.each(function(ye){ye!==Fe&&xe.push({source:ye.parent,target:ye})}),xe}function A(Fe,xe){var ye=new s(Fe),Ee=+Fe.value&&(ye.value=Fe.value),Me,Ne=[ye],je,it,mt,bt;for(xe==null&&(xe=y);Me=Ne.pop();)if(Ee&&(Me.value=+Me.data.value),(it=xe(Me.data))&&(bt=it.length))for(Me.children=new Array(bt),mt=bt-1;mt>=0;--mt)Ne.push(je=Me.children[mt]=new s(it[mt])),je.parent=Me,je.depth=Me.depth+1;return ye.eachBefore(T)}function _(){return A(this).eachBefore(E)}function y(Fe){return Fe.children}function E(Fe){Fe.data=Fe.data.data}function T(Fe){var xe=0;do Fe.height=xe;while((Fe=Fe.parent)&&Fe.height<++xe)}function s(Fe){this.data=Fe,this.depth=this.height=0,this.parent=null}s.prototype=A.prototype={constructor:s,count:a,each:n,eachAfter:c,eachBefore:f,sum:l,sort:m,path:h,ancestors:u,descendants:o,leaves:d,links:w,copy:_};var L=Array.prototype.slice;function M(Fe){for(var xe=Fe.length,ye,Ee;xe;)Ee=Math.random()*xe--|0,ye=Fe[xe],Fe[xe]=Fe[Ee],Fe[Ee]=ye;return Fe}function z(Fe){for(var xe=0,ye=(Fe=M(L.call(Fe))).length,Ee=[],Me,Ne;xe0&&ye*ye>Ee*Ee+Me*Me}function k(Fe,xe){for(var ye=0;yemt?(Me=(bt+mt-Ne)/(2*bt),it=Math.sqrt(Math.max(0,mt/bt-Me*Me)),ye.x=Fe.x-Me*Ee-it*je,ye.y=Fe.y-Me*je+it*Ee):(Me=(bt+Ne-mt)/(2*bt),it=Math.sqrt(Math.max(0,Ne/bt-Me*Me)),ye.x=xe.x+Me*Ee-it*je,ye.y=xe.y+Me*je+it*Ee)):(ye.x=xe.x+ye.r,ye.y=xe.y)}function te(Fe,xe){var ye=Fe.r+xe.r-1e-6,Ee=xe.x-Fe.x,Me=xe.y-Fe.y;return ye>0&&ye*ye>Ee*Ee+Me*Me}function ie(Fe){var xe=Fe._,ye=Fe.next._,Ee=xe.r+ye.r,Me=(xe.x*ye.r+ye.x*xe.r)/Ee,Ne=(xe.y*ye.r+ye.y*xe.r)/Ee;return Me*Me+Ne*Ne}function ue(Fe){this._=Fe,this.next=null,this.previous=null}function J(Fe){if(!(Me=Fe.length))return 0;var xe,ye,Ee,Me,Ne,je,it,mt,bt,vt,Lt;if(xe=Fe[0],xe.x=0,xe.y=0,!(Me>1))return xe.r;if(ye=Fe[1],xe.x=-ye.r,ye.x=xe.r,ye.y=0,!(Me>2))return xe.r+ye.r;j(ye,xe,Ee=Fe[2]),xe=new ue(xe),ye=new ue(ye),Ee=new ue(Ee),xe.next=Ee.previous=ye,ye.next=xe.previous=Ee,Ee.next=ye.previous=xe;e:for(it=3;it0)throw new Error("cycle");return it}return ye.id=function(Ee){return arguments.length?(Fe=V(Ee),ye):Fe},ye.parentId=function(Ee){return arguments.length?(xe=V(Ee),ye):xe},ye}function Ue(Fe,xe){return Fe.parent===xe.parent?1:2}function ke(Fe){var xe=Fe.children;return xe?xe[0]:Fe.t}function Ve(Fe){var xe=Fe.children;return xe?xe[xe.length-1]:Fe.t}function Ie(Fe,xe,ye){var Ee=ye/(xe.i-Fe.i);xe.c-=Ee,xe.s+=ye,Fe.c+=Ee,xe.z+=ye,xe.m+=ye}function rt(Fe){for(var xe=0,ye=0,Ee=Fe.children,Me=Ee.length,Ne;--Me>=0;)Ne=Ee[Me],Ne.z+=xe,Ne.m+=xe,xe+=Ne.s+(ye+=Ne.c)}function Ke(Fe,xe,ye){return Fe.a.parent===xe.parent?Fe.a:ye}function $e(Fe,xe){this._=Fe,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=xe}$e.prototype=Object.create(s.prototype);function lt(Fe){for(var xe=new $e(Fe,0),ye,Ee=[xe],Me,Ne,je,it;ye=Ee.pop();)if(Ne=ye._.children)for(ye.children=new Array(it=Ne.length),je=it-1;je>=0;--je)Ee.push(Me=ye.children[je]=new $e(Ne[je],je)),Me.parent=ye;return(xe.parent=new $e(null,0)).children=[xe],xe}function ht(){var Fe=Ue,xe=1,ye=1,Ee=null;function Me(bt){var vt=lt(bt);if(vt.eachAfter(Ne),vt.parent.m=-vt.z,vt.eachBefore(je),Ee)bt.eachBefore(mt);else{var Lt=bt,ct=bt,Tt=bt;bt.eachBefore(function(Kt){Kt.xct.x&&(ct=Kt),Kt.depth>Tt.depth&&(Tt=Kt)});var Bt=Lt===ct?1:Fe(Lt,ct)/2,ir=Bt-Lt.x,pt=xe/(ct.x+Bt+ir),Xt=ye/(Tt.depth||1);bt.eachBefore(function(Kt){Kt.x=(Kt.x+ir)*pt,Kt.y=Kt.depth*Xt})}return bt}function Ne(bt){var vt=bt.children,Lt=bt.parent.children,ct=bt.i?Lt[bt.i-1]:null;if(vt){rt(bt);var Tt=(vt[0].z+vt[vt.length-1].z)/2;ct?(bt.z=ct.z+Fe(bt._,ct._),bt.m=bt.z-Tt):bt.z=Tt}else ct&&(bt.z=ct.z+Fe(bt._,ct._));bt.parent.A=it(bt,ct,bt.parent.A||Lt[0])}function je(bt){bt._.x=bt.z+bt.parent.m,bt.m+=bt.parent.m}function it(bt,vt,Lt){if(vt){for(var ct=bt,Tt=bt,Bt=vt,ir=ct.parent.children[0],pt=ct.m,Xt=Tt.m,Kt=Bt.m,or=ir.m,$t;Bt=Ve(Bt),ct=ke(ct),Bt&&ct;)ir=ke(ir),Tt=Ve(Tt),Tt.a=bt,$t=Bt.z+Kt-ct.z-pt+Fe(Bt._,ct._),$t>0&&(Ie(Ke(Bt,bt,Lt),bt,$t),pt+=$t,Xt+=$t),Kt+=Bt.m,pt+=ct.m,or+=ir.m,Xt+=Tt.m;Bt&&!Ve(Tt)&&(Tt.t=Bt,Tt.m+=Kt-Xt),ct&&!ke(ir)&&(ir.t=ct,ir.m+=pt-or,Lt=bt)}return Lt}function mt(bt){bt.x*=xe,bt.y=bt.depth*ye}return Me.separation=function(bt){return arguments.length?(Fe=bt,Me):Fe},Me.size=function(bt){return arguments.length?(Ee=!1,xe=+bt[0],ye=+bt[1],Me):Ee?null:[xe,ye]},Me.nodeSize=function(bt){return arguments.length?(Ee=!0,xe=+bt[0],ye=+bt[1],Me):Ee?[xe,ye]:null},Me}function dt(Fe,xe,ye,Ee,Me){for(var Ne=Fe.children,je,it=-1,mt=Ne.length,bt=Fe.value&&(Me-ye)/Fe.value;++itKt&&(Kt=bt),st=pt*pt*gt,or=Math.max(Kt/st,st/Xt),or>$t){pt-=bt;break}$t=or}je.push(mt={value:pt,dice:Tt1?Ee:1)},ye}(xt);function ze(){var Fe=nt,xe=!1,ye=1,Ee=1,Me=[0],Ne=Q,je=Q,it=Q,mt=Q,bt=Q;function vt(ct){return ct.x0=ct.y0=0,ct.x1=ye,ct.y1=Ee,ct.eachBefore(Lt),Me=[0],xe&&ct.eachBefore(ge),ct}function Lt(ct){var Tt=Me[ct.depth],Bt=ct.x0+Tt,ir=ct.y0+Tt,pt=ct.x1-Tt,Xt=ct.y1-Tt;pt=ct-1){var Kt=Ne[Lt];Kt.x0=Bt,Kt.y0=ir,Kt.x1=pt,Kt.y1=Xt;return}for(var or=bt[Lt],$t=Tt/2+or,gt=Lt+1,st=ct-1;gt>>1;bt[At]<$t?gt=At+1:st=At}$t-bt[gt-1]Xt-ir){var Pt=(Bt*It+pt*Ct)/Tt;vt(Lt,gt,Ct,Bt,ir,Pt,Xt),vt(gt,ct,It,Pt,ir,pt,Xt)}else{var kt=(ir*It+Xt*Ct)/Tt;vt(Lt,gt,Ct,Bt,ir,pt,kt),vt(gt,ct,It,Bt,kt,pt,Xt)}}}function Je(Fe,xe,ye,Ee,Me){(Fe.depth&1?dt:Te)(Fe,xe,ye,Ee,Me)}var We=function Fe(xe){function ye(Ee,Me,Ne,je,it){if((mt=Ee._squarify)&&mt.ratio===xe)for(var mt,bt,vt,Lt,ct=-1,Tt,Bt=mt.length,ir=Ee.value;++ct1?Ee:1)},ye}(xt)},10132:function(G,U,e){e.d(U,{ak:function(){return h}});var g=Math.PI,C=2*g,i=1e-6,S=C-i;function x(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function v(){return new x}x.prototype=v.prototype={constructor:x,moveTo:function(b,u){this._+="M"+(this._x0=this._x1=+b)+","+(this._y0=this._y1=+u)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(b,u){this._+="L"+(this._x1=+b)+","+(this._y1=+u)},quadraticCurveTo:function(b,u,o,d){this._+="Q"+ +b+","+ +u+","+(this._x1=+o)+","+(this._y1=+d)},bezierCurveTo:function(b,u,o,d,w,A){this._+="C"+ +b+","+ +u+","+ +o+","+ +d+","+(this._x1=+w)+","+(this._y1=+A)},arcTo:function(b,u,o,d,w){b=+b,u=+u,o=+o,d=+d,w=+w;var A=this._x1,_=this._y1,y=o-b,E=d-u,T=A-b,s=_-u,L=T*T+s*s;if(w<0)throw new Error("negative radius: "+w);if(this._x1===null)this._+="M"+(this._x1=b)+","+(this._y1=u);else if(L>i)if(!(Math.abs(s*y-E*T)>i)||!w)this._+="L"+(this._x1=b)+","+(this._y1=u);else{var M=o-A,z=d-_,D=y*y+E*E,N=M*M+z*z,I=Math.sqrt(D),k=Math.sqrt(L),B=w*Math.tan((g-Math.acos((D+L-N)/(2*I*k)))/2),O=B/k,H=B/I;Math.abs(O-1)>i&&(this._+="L"+(b+O*T)+","+(u+O*s)),this._+="A"+w+","+w+",0,0,"+ +(s*M>T*z)+","+(this._x1=b+H*y)+","+(this._y1=u+H*E)}},arc:function(b,u,o,d,w,A){b=+b,u=+u,o=+o,A=!!A;var _=o*Math.cos(d),y=o*Math.sin(d),E=b+_,T=u+y,s=1^A,L=A?d-w:w-d;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+E+","+T:(Math.abs(this._x1-E)>i||Math.abs(this._y1-T)>i)&&(this._+="L"+E+","+T),o&&(L<0&&(L=L%C+C),L>S?this._+="A"+o+","+o+",0,1,"+s+","+(b-_)+","+(u-y)+"A"+o+","+o+",0,1,"+s+","+(this._x1=E)+","+(this._y1=T):L>i&&(this._+="A"+o+","+o+",0,"+ +(L>=g)+","+s+","+(this._x1=b+o*Math.cos(w))+","+(this._y1=u+o*Math.sin(w))))},rect:function(b,u,o,d){this._+="M"+(this._x0=this._x1=+b)+","+(this._y0=this._y1=+u)+"h"+ +o+"v"+ +d+"h"+-o+"Z"},toString:function(){return this._}};var p=v,r=Array.prototype.slice;function t(b){return function(){return b}}function a(b){return b[0]}function n(b){return b[1]}function f(b){return b.source}function c(b){return b.target}function l(b){var u=f,o=c,d=a,w=n,A=null;function _(){var y,E=r.call(arguments),T=u.apply(this,E),s=o.apply(this,E);if(A||(A=y=p()),b(A,+d.apply(this,(E[0]=T,E)),+w.apply(this,E),+d.apply(this,(E[0]=s,E)),+w.apply(this,E)),y)return A=null,y+""||null}return _.source=function(y){return arguments.length?(u=y,_):u},_.target=function(y){return arguments.length?(o=y,_):o},_.x=function(y){return arguments.length?(d=typeof y=="function"?y:t(+y),_):d},_.y=function(y){return arguments.length?(w=typeof y=="function"?y:t(+y),_):w},_.context=function(y){return arguments.length?(A=y??null,_):A},_}function m(b,u,o,d,w){b.moveTo(u,o),b.bezierCurveTo(u=(u+d)/2,o,u,w,d,w)}function h(){return l(m)}},94336:function(G,U,e){e.d(U,{Yn:function(){return Xe},m_:function(){return a},E9:function(){return Je}});var g=e(8208),C=e(58931),i=e(46192),S=e(68936),x=e(32171),v=e(53528);function p(Fe){if(0<=Fe.y&&Fe.y<100){var xe=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return xe.setFullYear(Fe.y),xe}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function r(Fe){if(0<=Fe.y&&Fe.y<100){var xe=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return xe.setUTCFullYear(Fe.y),xe}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function t(Fe,xe,ye){return{y:Fe,m:xe,d:ye,H:0,M:0,S:0,L:0}}function a(Fe){var xe=Fe.dateTime,ye=Fe.date,Ee=Fe.time,Me=Fe.periods,Ne=Fe.days,je=Fe.shortDays,it=Fe.months,mt=Fe.shortMonths,bt=b(Me),vt=u(Me),Lt=b(Ne),ct=u(Ne),Tt=b(je),Bt=u(je),ir=b(it),pt=u(it),Xt=b(mt),Kt=u(mt),or={a:Ye,A:Ge,b:Nt,B:Ot,c:null,d:j,e:j,f:X,H:te,I:ie,j:ue,L:J,m:ee,M:V,p:Qt,q:tr,Q:St,s:nt,S:Q,u:oe,U:$,V:Z,w:se,W:ne,x:null,X:null,y:ce,Y:ge,Z:Te,"%":xt},$t={a:fr,A:rr,b:Ht,B:dr,c:null,d:we,e:we,f:Le,H:Re,I:be,j:Ae,L:me,m:He,M:Ue,p:mr,q:xr,Q:St,s:nt,S:ke,u:Ve,U:Ie,V:rt,w:Ke,W:$e,x:null,X:null,y:lt,Y:ht,Z:dt,"%":xt},gt={a:Pt,A:kt,b:Vt,B:Jt,c:ur,d:M,e:M,f:B,H:D,I:D,j:z,L:k,m:L,M:N,p:It,q:s,Q:H,s:Y,S:I,u:d,U:w,V:A,w:o,W:_,x:hr,X:vr,y:E,Y:y,Z:T,"%":O};or.x=st(ye,or),or.X=st(Ee,or),or.c=st(xe,or),$t.x=st(ye,$t),$t.X=st(Ee,$t),$t.c=st(xe,$t);function st(pr,Gr){return function(Pr){var Dr=[],cn=-1,rn=0,Cn=pr.length,En,Tr,Cr;for(Pr instanceof Date||(Pr=new Date(+Pr));++cn53)return null;"w"in Dr||(Dr.w=1),"Z"in Dr?(rn=r(t(Dr.y,0,1)),Cn=rn.getUTCDay(),rn=Cn>4||Cn===0?g.ot.ceil(rn):(0,g.ot)(rn),rn=C.c.offset(rn,(Dr.V-1)*7),Dr.y=rn.getUTCFullYear(),Dr.m=rn.getUTCMonth(),Dr.d=rn.getUTCDate()+(Dr.w+6)%7):(rn=p(t(Dr.y,0,1)),Cn=rn.getDay(),rn=Cn>4||Cn===0?i.qT.ceil(rn):(0,i.qT)(rn),rn=S.c.offset(rn,(Dr.V-1)*7),Dr.y=rn.getFullYear(),Dr.m=rn.getMonth(),Dr.d=rn.getDate()+(Dr.w+6)%7)}else("W"in Dr||"U"in Dr)&&("w"in Dr||(Dr.w="u"in Dr?Dr.u%7:"W"in Dr?1:0),Cn="Z"in Dr?r(t(Dr.y,0,1)).getUTCDay():p(t(Dr.y,0,1)).getDay(),Dr.m=0,Dr.d="W"in Dr?(Dr.w+6)%7+Dr.W*7-(Cn+5)%7:Dr.w+Dr.U*7-(Cn+6)%7);return"Z"in Dr?(Dr.H+=Dr.Z/100|0,Dr.M+=Dr.Z%100,r(Dr)):p(Dr)}}function Ct(pr,Gr,Pr,Dr){for(var cn=0,rn=Gr.length,Cn=Pr.length,En,Tr;cn=Cn)return-1;if(En=Gr.charCodeAt(cn++),En===37){if(En=Gr.charAt(cn++),Tr=gt[En in n?Gr.charAt(cn++):En],!Tr||(Dr=Tr(pr,Pr,Dr))<0)return-1}else if(En!=Pr.charCodeAt(Dr++))return-1}return Dr}function It(pr,Gr,Pr){var Dr=bt.exec(Gr.slice(Pr));return Dr?(pr.p=vt[Dr[0].toLowerCase()],Pr+Dr[0].length):-1}function Pt(pr,Gr,Pr){var Dr=Tt.exec(Gr.slice(Pr));return Dr?(pr.w=Bt[Dr[0].toLowerCase()],Pr+Dr[0].length):-1}function kt(pr,Gr,Pr){var Dr=Lt.exec(Gr.slice(Pr));return Dr?(pr.w=ct[Dr[0].toLowerCase()],Pr+Dr[0].length):-1}function Vt(pr,Gr,Pr){var Dr=Xt.exec(Gr.slice(Pr));return Dr?(pr.m=Kt[Dr[0].toLowerCase()],Pr+Dr[0].length):-1}function Jt(pr,Gr,Pr){var Dr=ir.exec(Gr.slice(Pr));return Dr?(pr.m=pt[Dr[0].toLowerCase()],Pr+Dr[0].length):-1}function ur(pr,Gr,Pr){return Ct(pr,xe,Gr,Pr)}function hr(pr,Gr,Pr){return Ct(pr,ye,Gr,Pr)}function vr(pr,Gr,Pr){return Ct(pr,Ee,Gr,Pr)}function Ye(pr){return je[pr.getDay()]}function Ge(pr){return Ne[pr.getDay()]}function Nt(pr){return mt[pr.getMonth()]}function Ot(pr){return it[pr.getMonth()]}function Qt(pr){return Me[+(pr.getHours()>=12)]}function tr(pr){return 1+~~(pr.getMonth()/3)}function fr(pr){return je[pr.getUTCDay()]}function rr(pr){return Ne[pr.getUTCDay()]}function Ht(pr){return mt[pr.getUTCMonth()]}function dr(pr){return it[pr.getUTCMonth()]}function mr(pr){return Me[+(pr.getUTCHours()>=12)]}function xr(pr){return 1+~~(pr.getUTCMonth()/3)}return{format:function(pr){var Gr=st(pr+="",or);return Gr.toString=function(){return pr},Gr},parse:function(pr){var Gr=At(pr+="",!1);return Gr.toString=function(){return pr},Gr},utcFormat:function(pr){var Gr=st(pr+="",$t);return Gr.toString=function(){return pr},Gr},utcParse:function(pr){var Gr=At(pr+="",!0);return Gr.toString=function(){return pr},Gr}}}var n={"-":"",_:" ",0:"0"},f=/^\s*\d+/,c=/^%/,l=/[\\^$*+?|[\]().{}]/g;function m(Fe,xe,ye){var Ee=Fe<0?"-":"",Me=(Ee?-Fe:Fe)+"",Ne=Me.length;return Ee+(Ne68?1900:2e3),ye+Ee[0].length):-1}function T(Fe,xe,ye){var Ee=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(xe.slice(ye,ye+6));return Ee?(Fe.Z=Ee[1]?0:-(Ee[2]+(Ee[3]||"00")),ye+Ee[0].length):-1}function s(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+1));return Ee?(Fe.q=Ee[0]*3-3,ye+Ee[0].length):-1}function L(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+2));return Ee?(Fe.m=Ee[0]-1,ye+Ee[0].length):-1}function M(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+2));return Ee?(Fe.d=+Ee[0],ye+Ee[0].length):-1}function z(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+3));return Ee?(Fe.m=0,Fe.d=+Ee[0],ye+Ee[0].length):-1}function D(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+2));return Ee?(Fe.H=+Ee[0],ye+Ee[0].length):-1}function N(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+2));return Ee?(Fe.M=+Ee[0],ye+Ee[0].length):-1}function I(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+2));return Ee?(Fe.S=+Ee[0],ye+Ee[0].length):-1}function k(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+3));return Ee?(Fe.L=+Ee[0],ye+Ee[0].length):-1}function B(Fe,xe,ye){var Ee=f.exec(xe.slice(ye,ye+6));return Ee?(Fe.L=Math.floor(Ee[0]/1e3),ye+Ee[0].length):-1}function O(Fe,xe,ye){var Ee=c.exec(xe.slice(ye,ye+1));return Ee?ye+Ee[0].length:-1}function H(Fe,xe,ye){var Ee=f.exec(xe.slice(ye));return Ee?(Fe.Q=+Ee[0],ye+Ee[0].length):-1}function Y(Fe,xe,ye){var Ee=f.exec(xe.slice(ye));return Ee?(Fe.s=+Ee[0],ye+Ee[0].length):-1}function j(Fe,xe){return m(Fe.getDate(),xe,2)}function te(Fe,xe){return m(Fe.getHours(),xe,2)}function ie(Fe,xe){return m(Fe.getHours()%12||12,xe,2)}function ue(Fe,xe){return m(1+S.c.count((0,x.c)(Fe),Fe),xe,3)}function J(Fe,xe){return m(Fe.getMilliseconds(),xe,3)}function X(Fe,xe){return J(Fe,xe)+"000"}function ee(Fe,xe){return m(Fe.getMonth()+1,xe,2)}function V(Fe,xe){return m(Fe.getMinutes(),xe,2)}function Q(Fe,xe){return m(Fe.getSeconds(),xe,2)}function oe(Fe){var xe=Fe.getDay();return xe===0?7:xe}function $(Fe,xe){return m(i.uU.count((0,x.c)(Fe)-1,Fe),xe,2)}function Z(Fe,xe){var ye=Fe.getDay();return Fe=ye>=4||ye===0?(0,i.kD)(Fe):i.kD.ceil(Fe),m(i.kD.count((0,x.c)(Fe),Fe)+((0,x.c)(Fe).getDay()===4),xe,2)}function se(Fe){return Fe.getDay()}function ne(Fe,xe){return m(i.qT.count((0,x.c)(Fe)-1,Fe),xe,2)}function ce(Fe,xe){return m(Fe.getFullYear()%100,xe,2)}function ge(Fe,xe){return m(Fe.getFullYear()%1e4,xe,4)}function Te(Fe){var xe=Fe.getTimezoneOffset();return(xe>0?"-":(xe*=-1,"+"))+m(xe/60|0,"0",2)+m(xe%60,"0",2)}function we(Fe,xe){return m(Fe.getUTCDate(),xe,2)}function Re(Fe,xe){return m(Fe.getUTCHours(),xe,2)}function be(Fe,xe){return m(Fe.getUTCHours()%12||12,xe,2)}function Ae(Fe,xe){return m(1+C.c.count((0,v.c)(Fe),Fe),xe,3)}function me(Fe,xe){return m(Fe.getUTCMilliseconds(),xe,3)}function Le(Fe,xe){return me(Fe,xe)+"000"}function He(Fe,xe){return m(Fe.getUTCMonth()+1,xe,2)}function Ue(Fe,xe){return m(Fe.getUTCMinutes(),xe,2)}function ke(Fe,xe){return m(Fe.getUTCSeconds(),xe,2)}function Ve(Fe){var xe=Fe.getUTCDay();return xe===0?7:xe}function Ie(Fe,xe){return m(g.EV.count((0,v.c)(Fe)-1,Fe),xe,2)}function rt(Fe,xe){var ye=Fe.getUTCDay();return Fe=ye>=4||ye===0?(0,g.yA)(Fe):g.yA.ceil(Fe),m(g.yA.count((0,v.c)(Fe),Fe)+((0,v.c)(Fe).getUTCDay()===4),xe,2)}function Ke(Fe){return Fe.getUTCDay()}function $e(Fe,xe){return m(g.ot.count((0,v.c)(Fe)-1,Fe),xe,2)}function lt(Fe,xe){return m(Fe.getUTCFullYear()%100,xe,2)}function ht(Fe,xe){return m(Fe.getUTCFullYear()%1e4,xe,4)}function dt(){return"+0000"}function xt(){return"%"}function St(Fe){return+Fe}function nt(Fe){return Math.floor(+Fe/1e3)}var ze,Xe,Je;We({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function We(Fe){return ze=a(Fe),Xe=ze.format,ze.parse,Je=ze.utcFormat,ze.utcParse,ze}},68936:function(G,U,e){e.d(U,{m:function(){return S}});var g=e(81628),C=e(69792),i=(0,g.c)(function(x){x.setHours(0,0,0,0)},function(x,v){x.setDate(x.getDate()+v)},function(x,v){return(v-x-(v.getTimezoneOffset()-x.getTimezoneOffset())*C.iy)/C.SK},function(x){return x.getDate()-1});U.c=i;var S=i.range},69792:function(G,U,e){e.d(U,{KK:function(){return x},SK:function(){return S},cg:function(){return i},iy:function(){return C},yc:function(){return g}});var g=1e3,C=6e4,i=36e5,S=864e5,x=6048e5},73220:function(G,U,e){e.r(U),e.d(U,{timeDay:function(){return m.c},timeDays:function(){return m.m},timeFriday:function(){return h.iB},timeFridays:function(){return h.sJ},timeHour:function(){return c},timeHours:function(){return l},timeInterval:function(){return g.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return S},timeMinute:function(){return a},timeMinutes:function(){return n},timeMonday:function(){return h.qT},timeMondays:function(){return h.QP},timeMonth:function(){return u},timeMonths:function(){return o},timeSaturday:function(){return h.Wc},timeSaturdays:function(){return h.aI},timeSecond:function(){return p},timeSeconds:function(){return r},timeSunday:function(){return h.uU},timeSundays:function(){return h.Ab},timeThursday:function(){return h.kD},timeThursdays:function(){return h.eC},timeTuesday:function(){return h.Mf},timeTuesdays:function(){return h.Oc},timeWednesday:function(){return h.eg},timeWednesdays:function(){return h.sn},timeWeek:function(){return h.uU},timeWeeks:function(){return h.Ab},timeYear:function(){return d.c},timeYears:function(){return d.Q},utcDay:function(){return s.c},utcDays:function(){return s.o},utcFriday:function(){return L.od},utcFridays:function(){return L.iG},utcHour:function(){return E},utcHours:function(){return T},utcMillisecond:function(){return i},utcMilliseconds:function(){return S},utcMinute:function(){return A},utcMinutes:function(){return _},utcMonday:function(){return L.ot},utcMondays:function(){return L.iO},utcMonth:function(){return z},utcMonths:function(){return D},utcSaturday:function(){return L.Ad},utcSaturdays:function(){return L.K8},utcSecond:function(){return p},utcSeconds:function(){return r},utcSunday:function(){return L.EV},utcSundays:function(){return L.Wq},utcThursday:function(){return L.yA},utcThursdays:function(){return L.ob},utcTuesday:function(){return L.sG},utcTuesdays:function(){return L.kl},utcWednesday:function(){return L._6},utcWednesdays:function(){return L.W_},utcWeek:function(){return L.EV},utcWeeks:function(){return L.Wq},utcYear:function(){return N.c},utcYears:function(){return N.i}});var g=e(81628),C=(0,g.c)(function(){},function(I,k){I.setTime(+I+k)},function(I,k){return k-I});C.every=function(I){return I=Math.floor(I),!isFinite(I)||!(I>0)?null:I>1?(0,g.c)(function(k){k.setTime(Math.floor(k/I)*I)},function(k,B){k.setTime(+k+B*I)},function(k,B){return(B-k)/I}):C};var i=C,S=C.range,x=e(69792),v=(0,g.c)(function(I){I.setTime(I-I.getMilliseconds())},function(I,k){I.setTime(+I+k*x.yc)},function(I,k){return(k-I)/x.yc},function(I){return I.getUTCSeconds()}),p=v,r=v.range,t=(0,g.c)(function(I){I.setTime(I-I.getMilliseconds()-I.getSeconds()*x.yc)},function(I,k){I.setTime(+I+k*x.iy)},function(I,k){return(k-I)/x.iy},function(I){return I.getMinutes()}),a=t,n=t.range,f=(0,g.c)(function(I){I.setTime(I-I.getMilliseconds()-I.getSeconds()*x.yc-I.getMinutes()*x.iy)},function(I,k){I.setTime(+I+k*x.cg)},function(I,k){return(k-I)/x.cg},function(I){return I.getHours()}),c=f,l=f.range,m=e(68936),h=e(46192),b=(0,g.c)(function(I){I.setDate(1),I.setHours(0,0,0,0)},function(I,k){I.setMonth(I.getMonth()+k)},function(I,k){return k.getMonth()-I.getMonth()+(k.getFullYear()-I.getFullYear())*12},function(I){return I.getMonth()}),u=b,o=b.range,d=e(32171),w=(0,g.c)(function(I){I.setUTCSeconds(0,0)},function(I,k){I.setTime(+I+k*x.iy)},function(I,k){return(k-I)/x.iy},function(I){return I.getUTCMinutes()}),A=w,_=w.range,y=(0,g.c)(function(I){I.setUTCMinutes(0,0,0)},function(I,k){I.setTime(+I+k*x.cg)},function(I,k){return(k-I)/x.cg},function(I){return I.getUTCHours()}),E=y,T=y.range,s=e(58931),L=e(8208),M=(0,g.c)(function(I){I.setUTCDate(1),I.setUTCHours(0,0,0,0)},function(I,k){I.setUTCMonth(I.getUTCMonth()+k)},function(I,k){return k.getUTCMonth()-I.getUTCMonth()+(k.getUTCFullYear()-I.getUTCFullYear())*12},function(I){return I.getUTCMonth()}),z=M,D=M.range,N=e(53528)},81628:function(G,U,e){e.d(U,{c:function(){return i}});var g=new Date,C=new Date;function i(S,x,v,p){function r(t){return S(t=arguments.length===0?new Date:new Date(+t)),t}return r.floor=function(t){return S(t=new Date(+t)),t},r.ceil=function(t){return S(t=new Date(t-1)),x(t,1),S(t),t},r.round=function(t){var a=r(t),n=r.ceil(t);return t-a0))return f;do f.push(c=new Date(+t)),x(t,n),S(t);while(c=a)for(;S(a),!t(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;x(a,-1),!t(a););else for(;--n>=0;)for(;x(a,1),!t(a););})},v&&(r.count=function(t,a){return g.setTime(+t),C.setTime(+a),S(g),S(C),Math.floor(v(g,C))},r.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?r.filter(p?function(a){return p(a)%t===0}:function(a){return r.count(0,a)%t===0}):r}),r}},58931:function(G,U,e){e.d(U,{o:function(){return S}});var g=e(81628),C=e(69792),i=(0,g.c)(function(x){x.setUTCHours(0,0,0,0)},function(x,v){x.setUTCDate(x.getUTCDate()+v)},function(x,v){return(v-x)/C.SK},function(x){return x.getUTCDate()-1});U.c=i;var S=i.range},8208:function(G,U,e){e.d(U,{Ad:function(){return a},EV:function(){return S},K8:function(){return b},W_:function(){return l},Wq:function(){return n},_6:function(){return p},iG:function(){return h},iO:function(){return f},kl:function(){return c},ob:function(){return m},od:function(){return t},ot:function(){return x},sG:function(){return v},yA:function(){return r}});var g=e(81628),C=e(69792);function i(u){return(0,g.c)(function(o){o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+7-u)%7),o.setUTCHours(0,0,0,0)},function(o,d){o.setUTCDate(o.getUTCDate()+d*7)},function(o,d){return(d-o)/C.KK})}var S=i(0),x=i(1),v=i(2),p=i(3),r=i(4),t=i(5),a=i(6),n=S.range,f=x.range,c=v.range,l=p.range,m=r.range,h=t.range,b=a.range},53528:function(G,U,e){e.d(U,{i:function(){return i}});var g=e(81628),C=(0,g.c)(function(S){S.setUTCMonth(0,1),S.setUTCHours(0,0,0,0)},function(S,x){S.setUTCFullYear(S.getUTCFullYear()+x)},function(S,x){return x.getUTCFullYear()-S.getUTCFullYear()},function(S){return S.getUTCFullYear()});C.every=function(S){return!isFinite(S=Math.floor(S))||!(S>0)?null:(0,g.c)(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/S)*S),x.setUTCMonth(0,1),x.setUTCHours(0,0,0,0)},function(x,v){x.setUTCFullYear(x.getUTCFullYear()+v*S)})},U.c=C;var i=C.range},46192:function(G,U,e){e.d(U,{Ab:function(){return n},Mf:function(){return v},Oc:function(){return c},QP:function(){return f},Wc:function(){return a},aI:function(){return b},eC:function(){return m},eg:function(){return p},iB:function(){return t},kD:function(){return r},qT:function(){return x},sJ:function(){return h},sn:function(){return l},uU:function(){return S}});var g=e(81628),C=e(69792);function i(u){return(0,g.c)(function(o){o.setDate(o.getDate()-(o.getDay()+7-u)%7),o.setHours(0,0,0,0)},function(o,d){o.setDate(o.getDate()+d*7)},function(o,d){return(d-o-(d.getTimezoneOffset()-o.getTimezoneOffset())*C.iy)/C.KK})}var S=i(0),x=i(1),v=i(2),p=i(3),r=i(4),t=i(5),a=i(6),n=S.range,f=x.range,c=v.range,l=p.range,m=r.range,h=t.range,b=a.range},32171:function(G,U,e){e.d(U,{Q:function(){return i}});var g=e(81628),C=(0,g.c)(function(S){S.setMonth(0,1),S.setHours(0,0,0,0)},function(S,x){S.setFullYear(S.getFullYear()+x)},function(S,x){return x.getFullYear()-S.getFullYear()},function(S){return S.getFullYear()});C.every=function(S){return!isFinite(S=Math.floor(S))||!(S>0)?null:(0,g.c)(function(x){x.setFullYear(Math.floor(x.getFullYear()/S)*S),x.setMonth(0,1),x.setHours(0,0,0,0)},function(x,v){x.setFullYear(x.getFullYear()+v*S)})},U.c=C;var i=C.range},64348:function(G,U,e){var g=e(39640)(),C=e(53664),i=g&&C("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var S=C("%SyntaxError%"),x=C("%TypeError%"),v=e(2304);G.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new x("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new x("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new x("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new x("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new x("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new x("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,m=!!v&&v(r,t);if(i)i(r,t,{configurable:c===null&&m?m.configurable:!c,enumerable:n===null&&m?m.enumerable:!n,value:a,writable:f===null&&m?m.writable:!f});else if(l||!n&&!f&&!c)r[t]=a;else throw new S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},81288:function(G,U,e){var g=e(41820),C=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,S=Array.prototype.concat,x=Object.defineProperty,v=function(n){return typeof n=="function"&&i.call(n)==="[object Function]"},p=e(39640)(),r=x&&p,t=function(n,f,c,l){if(f in n){if(l===!0){if(n[f]===c)return}else if(!v(l)||!l())return}r?x(n,f,{configurable:!0,enumerable:!1,value:c,writable:!0}):n[f]=c},a=function(n,f){var c=arguments.length>2?arguments[2]:{},l=g(f);C&&(l=S.call(l,Object.getOwnPropertySymbols(f)));for(var m=0;mr*t){var l=(c-f)/r;v[n]=l*1e3}}return v}function i(S){for(var x=[],v=S[0];v<=S[1];v++)for(var p=String.fromCharCode(v),r=S[0];r"u"&&(i=0),typeof C){case"number":if(C>0)return e(C|0,i);break;case"object":if(typeof C.length=="number")return U(C,i,0);break}return[]}G.exports=g},28912:function(G){G.exports=U,G.exports.default=U;function U(D,N,I){I=I||2;var k=N&&N.length,B=k?N[0]*I:D.length,O=e(D,0,B,I,!0),H=[];if(!O||O.next===O.prev)return H;var Y,j,te,ie,ue,J,X;if(k&&(O=p(D,N,O,I)),D.length>80*I){Y=te=D[0],j=ie=D[1];for(var ee=I;eete&&(te=ue),J>ie&&(ie=J);X=Math.max(te-Y,ie-j),X=X!==0?1/X:0}return C(O,H,I,Y,j,X),H}function e(D,N,I,k,B){var O,H;if(B===z(D,N,I,k)>0)for(O=N;O=N;O-=k)H=s(O,D[O],D[O+1],H);return H&&o(H,H.next)&&(L(H),H=H.next),H}function g(D,N){if(!D)return D;N||(N=D);var I=D,k;do if(k=!1,!I.steiner&&(o(I,I.next)||u(I.prev,I,I.next)===0)){if(L(I),I=N=I.prev,I===I.next)break;k=!0}else I=I.next;while(k||I!==N);return N}function C(D,N,I,k,B,O,H){if(D){!H&&O&&f(D,k,B,O);for(var Y=D,j,te;D.prev!==D.next;){if(j=D.prev,te=D.next,O?S(D,k,B,O):i(D)){N.push(j.i/I),N.push(D.i/I),N.push(te.i/I),L(D),D=te.next,Y=te.next;continue}if(D=te,D===Y){H?H===1?(D=x(g(D),N,I),C(D,N,I,k,B,O,2)):H===2&&v(D,N,I,k,B,O):C(g(D),N,I,k,B,O,1);break}}}}function i(D){var N=D.prev,I=D,k=D.next;if(u(N,I,k)>=0)return!1;for(var B=D.next.next;B!==D.prev;){if(h(N.x,N.y,I.x,I.y,k.x,k.y,B.x,B.y)&&u(B.prev,B,B.next)>=0)return!1;B=B.next}return!0}function S(D,N,I,k){var B=D.prev,O=D,H=D.next;if(u(B,O,H)>=0)return!1;for(var Y=B.xO.x?B.x>H.x?B.x:H.x:O.x>H.x?O.x:H.x,ie=B.y>O.y?B.y>H.y?B.y:H.y:O.y>H.y?O.y:H.y,ue=l(Y,j,N,I,k),J=l(te,ie,N,I,k),X=D.prevZ,ee=D.nextZ;X&&X.z>=ue&&ee&&ee.z<=J;){if(X!==D.prev&&X!==D.next&&h(B.x,B.y,O.x,O.y,H.x,H.y,X.x,X.y)&&u(X.prev,X,X.next)>=0||(X=X.prevZ,ee!==D.prev&&ee!==D.next&&h(B.x,B.y,O.x,O.y,H.x,H.y,ee.x,ee.y)&&u(ee.prev,ee,ee.next)>=0))return!1;ee=ee.nextZ}for(;X&&X.z>=ue;){if(X!==D.prev&&X!==D.next&&h(B.x,B.y,O.x,O.y,H.x,H.y,X.x,X.y)&&u(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;ee&&ee.z<=J;){if(ee!==D.prev&&ee!==D.next&&h(B.x,B.y,O.x,O.y,H.x,H.y,ee.x,ee.y)&&u(ee.prev,ee,ee.next)>=0)return!1;ee=ee.nextZ}return!0}function x(D,N,I){var k=D;do{var B=k.prev,O=k.next.next;!o(B,O)&&d(B,k,k.next,O)&&y(B,O)&&y(O,B)&&(N.push(B.i/I),N.push(k.i/I),N.push(O.i/I),L(k),L(k.next),k=D=O),k=k.next}while(k!==D);return g(k)}function v(D,N,I,k,B,O){var H=D;do{for(var Y=H.next.next;Y!==H.prev;){if(H.i!==Y.i&&b(H,Y)){var j=T(H,Y);H=g(H,H.next),j=g(j,j.next),C(H,N,I,k,B,O),C(j,N,I,k,B,O);return}Y=Y.next}H=H.next}while(H!==D)}function p(D,N,I,k){var B=[],O,H,Y,j,te;for(O=0,H=N.length;O=I.next.y&&I.next.y!==I.y){var Y=I.x+(B-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Y<=k&&Y>O){if(O=Y,Y===k){if(B===I.y)return I;if(B===I.next.y)return I.next}H=I.x=I.x&&I.x>=te&&k!==I.x&&h(BH.x||I.x===H.x&&n(H,I)))&&(H=I,ue=J)),I=I.next;while(I!==j);return H}function n(D,N){return u(D.prev,D,N.prev)<0&&u(N.next,D,D.next)<0}function f(D,N,I,k){var B=D;do B.z===null&&(B.z=l(B.x,B.y,N,I,k)),B.prevZ=B.prev,B.nextZ=B.next,B=B.next;while(B!==D);B.prevZ.nextZ=null,B.prevZ=null,c(B)}function c(D){var N,I,k,B,O,H,Y,j,te=1;do{for(I=D,D=null,O=null,H=0;I;){for(H++,k=I,Y=0,N=0;N0||j>0&&k;)Y!==0&&(j===0||!k||I.z<=k.z)?(B=I,I=I.nextZ,Y--):(B=k,k=k.nextZ,j--),O?O.nextZ=B:D=B,B.prevZ=O,O=B;I=k}O.nextZ=null,te*=2}while(H>1);return D}function l(D,N,I,k,B){return D=32767*(D-I)*B,N=32767*(N-k)*B,D=(D|D<<8)&16711935,D=(D|D<<4)&252645135,D=(D|D<<2)&858993459,D=(D|D<<1)&1431655765,N=(N|N<<8)&16711935,N=(N|N<<4)&252645135,N=(N|N<<2)&858993459,N=(N|N<<1)&1431655765,D|N<<1}function m(D){var N=D,I=D;do(N.x=0&&(D-H)*(k-Y)-(I-H)*(N-Y)>=0&&(I-H)*(O-Y)-(B-H)*(k-Y)>=0}function b(D,N){return D.next.i!==N.i&&D.prev.i!==N.i&&!_(D,N)&&(y(D,N)&&y(N,D)&&E(D,N)&&(u(D.prev,D,N.prev)||u(D,N.prev,N))||o(D,N)&&u(D.prev,D,D.next)>0&&u(N.prev,N,N.next)>0)}function u(D,N,I){return(N.y-D.y)*(I.x-N.x)-(N.x-D.x)*(I.y-N.y)}function o(D,N){return D.x===N.x&&D.y===N.y}function d(D,N,I,k){var B=A(u(D,N,I)),O=A(u(D,N,k)),H=A(u(I,k,D)),Y=A(u(I,k,N));return!!(B!==O&&H!==Y||B===0&&w(D,I,N)||O===0&&w(D,k,N)||H===0&&w(I,D,k)||Y===0&&w(I,N,k))}function w(D,N,I){return N.x<=Math.max(D.x,I.x)&&N.x>=Math.min(D.x,I.x)&&N.y<=Math.max(D.y,I.y)&&N.y>=Math.min(D.y,I.y)}function A(D){return D>0?1:D<0?-1:0}function _(D,N){var I=D;do{if(I.i!==D.i&&I.next.i!==D.i&&I.i!==N.i&&I.next.i!==N.i&&d(I,I.next,D,N))return!0;I=I.next}while(I!==D);return!1}function y(D,N){return u(D.prev,D,D.next)<0?u(D,N,D.next)>=0&&u(D,D.prev,N)>=0:u(D,N,D.prev)<0||u(D,D.next,N)<0}function E(D,N){var I=D,k=!1,B=(D.x+N.x)/2,O=(D.y+N.y)/2;do I.y>O!=I.next.y>O&&I.next.y!==I.y&&B<(I.next.x-I.x)*(O-I.y)/(I.next.y-I.y)+I.x&&(k=!k),I=I.next;while(I!==D);return k}function T(D,N){var I=new M(D.i,D.x,D.y),k=new M(N.i,N.x,N.y),B=D.next,O=N.prev;return D.next=N,N.prev=D,I.next=B,B.prev=I,k.next=I,I.prev=k,O.next=k,k.prev=O,k}function s(D,N,I,k){var B=new M(D,N,I);return k?(B.next=k.next,B.prev=k,k.next.prev=B,k.next=B):(B.prev=B,B.next=B),B}function L(D){D.next.prev=D.prev,D.prev.next=D.next,D.prevZ&&(D.prevZ.nextZ=D.nextZ),D.nextZ&&(D.nextZ.prevZ=D.prevZ)}function M(D,N,I){this.i=D,this.x=N,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}U.deviation=function(D,N,I,k){var B=N&&N.length,O=B?N[0]*I:D.length,H=Math.abs(z(D,0,O,I));if(B)for(var Y=0,j=N.length;Y0&&(k+=D[B-1].length,I.holes.push(k))}return I}},6688:function(G,U,e){var g=e(78484);G.exports=function(i,S){var x=[],v=[],p=[],r={},t=[],a;function n(w){p[w]=!1,r.hasOwnProperty(w)&&Object.keys(r[w]).forEach(function(A){delete r[w][A],p[A]&&n(A)})}function f(w){var A=!1;v.push(w),p[w]=!0;var _,y;for(_=0;_=w})}function m(w){l(w);for(var A=i,_=g(A),y=_.components.filter(function(D){return D.length>1}),E=1/0,T,s=0;s=55296&&w<=56319&&(E+=c[++b])),E=l?a.call(l,m,E,u):E,h?(n.value=E,f(o,u,n)):o[u]=E,++u;d=u}}if(d===void 0)for(d=S(c.length),h&&(o=new h(d)),b=0;b0?1:-1}},96936:function(G,U,e){var g=e(85608),C=Math.abs,i=Math.floor;G.exports=function(S){return isNaN(S)?0:(S=Number(S),S===0||!isFinite(S)?S:g(S)*i(C(S)))}},81304:function(G,U,e){var g=e(96936),C=Math.max;G.exports=function(i){return C(0,g(i))}},14428:function(G,U,e){var g=e(34044),C=e(9252),i=Function.prototype.bind,S=Function.prototype.call,x=Object.keys,v=Object.prototype.propertyIsEnumerable;G.exports=function(p,r){return function(t,a){var n,f=arguments[2],c=arguments[3];return t=Object(C(t)),g(a),n=x(t),c&&n.sort(typeof c=="function"?i.call(c,t):void 0),typeof p!="function"&&(p=n[p]),S.call(p,n,function(l,m){return v.call(t,l)?S.call(a,f,t[l],l,t,m):r})}}},38452:function(G,U,e){G.exports=e(96276)()?Object.assign:e(81892)},96276:function(G){G.exports=function(){var U=Object.assign,e;return typeof U!="function"?!1:(e={foo:"raz"},U(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},81892:function(G,U,e){var g=e(54768),C=e(9252),i=Math.max;G.exports=function(S,x){var v,p,r=i(arguments.length,2),t;for(S=Object(C(S)),t=function(a){try{S[a]=x[a]}catch(n){v||(v=n)}},p=1;p-1}},29768:function(G){var U=Object.prototype.toString,e=U.call("");G.exports=function(g){return typeof g=="string"||g&&typeof g=="object"&&(g instanceof String||U.call(g)===e)||!1}},82252:function(G){var U=Object.create(null),e=Math.random;G.exports=function(){var g;do g=e().toString(36).slice(2);while(U[g]);return g}},52104:function(G,U,e){var g=e(69932),C=e(71056),i=e(21092),S=e(92664),x=e(85512),v=Object.defineProperty,p;p=G.exports=function(r,t){if(!(this instanceof p))throw new TypeError("Constructor requires 'new'");x.call(this,r),t?C.call(t,"key+value")?t="key+value":C.call(t,"key")?t="key":t="value":t="value",v(this,"__kind__",i("",t))},g&&g(p,x),delete p.prototype.constructor,p.prototype=Object.create(x.prototype,{_resolve:i(function(r){return this.__kind__==="value"?this.__list__[r]:this.__kind__==="key+value"?[r,this.__list__[r]]:r})}),v(p.prototype,S.toStringTag,i("c","Array Iterator"))},76024:function(G,U,e){var g=e(60948),C=e(34044),i=e(29768),S=e(76252),x=Array.isArray,v=Function.prototype.call,p=Array.prototype.some;G.exports=function(r,t){var a,n=arguments[2],f,c,l,m,h,b,u;if(x(r)||g(r)?a="array":i(r)?a="string":r=S(r),C(t),c=function(){l=!0},a==="array"){p.call(r,function(o){return v.call(t,n,o,c),l});return}if(a==="string"){for(h=r.length,m=0;m=55296&&u<=56319&&(b+=r[++m])),v.call(t,n,b,c),!l);++m);return}for(f=r.next();!f.done;){if(v.call(t,n,f.value,c),l)return;f=r.next()}}},76252:function(G,U,e){var g=e(60948),C=e(29768),i=e(52104),S=e(80940),x=e(52891),v=e(92664).iterator;G.exports=function(p){return typeof x(p)[v]=="function"?p[v]():g(p)?new i(p):C(p)?new S(p):new i(p)}},85512:function(G,U,e){var g=e(41476),C=e(38452),i=e(34044),S=e(9252),x=e(21092),v=e(27940),p=e(92664),r=Object.defineProperty,t=Object.defineProperties,a;G.exports=a=function(n,f){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");t(this,{__list__:x("w",S(n)),__context__:x("w",f),__nextIndex__:x("w",0)}),f&&(i(f.on),f.on("_add",this._onAdd),f.on("_delete",this._onDelete),f.on("_clear",this._onClear))},delete a.prototype.constructor,t(a.prototype,C({_next:x(function(){var n;if(this.__list__){if(this.__redo__&&(n=this.__redo__.shift(),n!==void 0))return n;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){r(this,"__redo__",x("c",[n]));return}this.__redo__.forEach(function(f,c){f>=n&&(this.__redo__[c]=++f)},this),this.__redo__.push(n)}}),_onDelete:x(function(n){var f;n>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(f=this.__redo__.indexOf(n),f!==-1&&this.__redo__.splice(f,1),this.__redo__.forEach(function(c,l){c>n&&(this.__redo__[l]=--c)},this)))}),_onClear:x(function(){this.__redo__&&g.call(this.__redo__),this.__nextIndex__=0})}))),r(a.prototype,p.iterator,x(function(){return this}))},76368:function(G,U,e){var g=e(60948),C=e(42584),i=e(29768),S=e(92664).iterator,x=Array.isArray;G.exports=function(v){return C(v)?x(v)||i(v)||g(v)?!0:typeof v[S]=="function":!1}},80940:function(G,U,e){var g=e(69932),C=e(21092),i=e(92664),S=e(85512),x=Object.defineProperty,v;v=G.exports=function(p){if(!(this instanceof v))throw new TypeError("Constructor requires 'new'");p=String(p),S.call(this,p),x(this,"__length__",C("",p.length))},g&&g(v,S),delete v.prototype.constructor,v.prototype=Object.create(S.prototype,{_next:C(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})}),x(v.prototype,i.toStringTag,C("c","String Iterator"))},52891:function(G,U,e){var g=e(76368);G.exports=function(C){if(!g(C))throw new TypeError(C+" is not iterable");return C}},60964:function(G){function U(g,C){if(g==null)throw new TypeError("Cannot convert first argument to object");for(var i=Object(g),S=1;S0&&(E=w[0]),E instanceof Error)throw E;var T=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw T.context=E,T}var s=y[d];if(s===void 0)return!1;if(typeof s=="function")e(s,this,w);else for(var L=s.length,M=c(s,L),A=0;A0&&E.length>_&&!E.warned){E.warned=!0;var T=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(d)+" listeners added. Use emitter.setMaxListeners() to increase limit");T.name="MaxListenersExceededWarning",T.emitter=o,T.type=d,T.count=E.length,C(T)}return o}S.prototype.addListener=function(d,w){return r(this,d,w,!1)},S.prototype.on=S.prototype.addListener,S.prototype.prependListener=function(d,w){return r(this,d,w,!0)};function t(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function a(o,d,w){var A={fired:!1,wrapFn:void 0,target:o,type:d,listener:w},_=t.bind(A);return _.listener=w,A.wrapFn=_,_}S.prototype.once=function(d,w){return v(w),this.on(d,a(this,d,w)),this},S.prototype.prependOnceListener=function(d,w){return v(w),this.prependListener(d,a(this,d,w)),this},S.prototype.removeListener=function(d,w){var A,_,y,E,T;if(v(w),_=this._events,_===void 0)return this;if(A=_[d],A===void 0)return this;if(A===w||A.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete _[d],_.removeListener&&this.emit("removeListener",d,A.listener||w));else if(typeof A!="function"){for(y=-1,E=A.length-1;E>=0;E--)if(A[E]===w||A[E].listener===w){T=A[E].listener,y=E;break}if(y<0)return this;y===0?A.shift():l(A,y),A.length===1&&(_[d]=A[0]),_.removeListener!==void 0&&this.emit("removeListener",d,T||w)}return this},S.prototype.off=S.prototype.removeListener,S.prototype.removeAllListeners=function(d){var w,A,_;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[d]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[d]),this;if(arguments.length===0){var y=Object.keys(A),E;for(_=0;_=0;_--)this.removeListener(d,w[_]);return this};function n(o,d,w){var A=o._events;if(A===void 0)return[];var _=A[d];return _===void 0?[]:typeof _=="function"?w?[_.listener||_]:[_]:w?m(_):c(_,_.length)}S.prototype.listeners=function(d){return n(this,d,!0)},S.prototype.rawListeners=function(d){return n(this,d,!1)},S.listenerCount=function(o,d){return typeof o.listenerCount=="function"?o.listenerCount(d):f.call(o,d)},S.prototype.listenerCount=f;function f(o){var d=this._events;if(d!==void 0){var w=d[o];if(typeof w=="function")return 1;if(w!==void 0)return w.length}return 0}S.prototype.eventNames=function(){return this._eventsCount>0?g(this._events):[]};function c(o,d){for(var w=new Array(d),A=0;Ax[0]-r[0]/2&&(l=r[0]/2,m+=r[1]);return v}},71920:function(G){G.exports=U,U.canvas=document.createElement("canvas"),U.cache={};function U(t,S){S||(S={}),(typeof t=="string"||Array.isArray(t))&&(S.family=t);var x=Array.isArray(S.family)?S.family.join(", "):S.family;if(!x)throw Error("`family` must be defined");var v=S.size||S.fontSize||S.em||48,p=S.weight||S.fontWeight||"",r=S.style||S.fontStyle||"",t=[r,p,v].join(" ")+"px "+x,a=S.origin||"top";if(U.cache[x]&&v<=U.cache[x].em)return e(U.cache[x],a);var n=S.canvas||U.canvas,f=n.getContext("2d"),c={upper:S.upper!==void 0?S.upper:"H",lower:S.lower!==void 0?S.lower:"x",descent:S.descent!==void 0?S.descent:"p",ascent:S.ascent!==void 0?S.ascent:"h",tittle:S.tittle!==void 0?S.tittle:"i",overshoot:S.overshoot!==void 0?S.overshoot:"O"},l=Math.ceil(v*1.5);n.height=l,n.width=l*.5,f.font=t;var m="H",h={top:0};f.clearRect(0,0,l,l),f.textBaseline="top",f.fillStyle="black",f.fillText(m,0,0);var b=g(f.getImageData(0,0,l,l));f.clearRect(0,0,l,l),f.textBaseline="bottom",f.fillText(m,0,l);var u=g(f.getImageData(0,0,l,l));h.lineHeight=h.bottom=l-u+b,f.clearRect(0,0,l,l),f.textBaseline="alphabetic",f.fillText(m,0,l);var o=g(f.getImageData(0,0,l,l)),d=l-o-1+b;h.baseline=h.alphabetic=d,f.clearRect(0,0,l,l),f.textBaseline="middle",f.fillText(m,0,l*.5);var w=g(f.getImageData(0,0,l,l));h.median=h.middle=l-w-1+b-l*.5,f.clearRect(0,0,l,l),f.textBaseline="hanging",f.fillText(m,0,l*.5);var A=g(f.getImageData(0,0,l,l));h.hanging=l-A-1+b-l*.5,f.clearRect(0,0,l,l),f.textBaseline="ideographic",f.fillText(m,0,l);var _=g(f.getImageData(0,0,l,l));if(h.ideographic=l-_-1+b,c.upper&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(c.upper,0,0),h.upper=g(f.getImageData(0,0,l,l)),h.capHeight=h.baseline-h.upper),c.lower&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(c.lower,0,0),h.lower=g(f.getImageData(0,0,l,l)),h.xHeight=h.baseline-h.lower),c.tittle&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(c.tittle,0,0),h.tittle=g(f.getImageData(0,0,l,l))),c.ascent&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(c.ascent,0,0),h.ascent=g(f.getImageData(0,0,l,l))),c.descent&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(c.descent,0,0),h.descent=C(f.getImageData(0,0,l,l))),c.overshoot){f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(c.overshoot,0,0);var y=C(f.getImageData(0,0,l,l));h.overshoot=y-d}for(var E in h)h[E]/=v;return h.em=v,U.cache[x]=h,e(h,a)}function e(i,S){var x={};typeof S=="string"&&(S=i[S]);for(var v in i)v!=="em"&&(x[v]=i[v]-S);return x}function g(i){for(var S=i.height,x=i.data,v=3;v0;v-=4)if(x[v]!==0)return Math.floor((v-3)*.25/S)}},46492:function(G,U,e){var g=e(90720),C=Object.prototype.toString,i=Object.prototype.hasOwnProperty,S=function(t,a,n){for(var f=0,c=t.length;f=3&&(f=n),C.call(t)==="[object Array]"?S(t,a,f):typeof t=="string"?x(t,a,f):v(t,a,f)};G.exports=p},74336:function(G){var U="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,g=Math.max,C="[object Function]",i=function(p,r){for(var t=[],a=0;a"u"&&!g.canvas)return null;var C=g.canvas||document.createElement("canvas");typeof g.width=="number"&&(C.width=g.width),typeof g.height=="number"&&(C.height=g.height);var i=g,S;try{var x=[e];e.indexOf("webgl")===0&&x.push("experimental-"+e);for(var v=0;v"u"||!n?g:n(Uint8Array),l={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":t&&n?n([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":t&&n?n(n([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!t||!n?g:n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!t||!n?g:n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":t&&n?n(""[Symbol.iterator]()):g,"%Symbol%":t?Symbol:g,"%SyntaxError%":C,"%ThrowTypeError%":r,"%TypedArray%":c,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(n)try{null.error}catch(M){var m=n(n(M));l["%Error.prototype%"]=m}var h=function M(z){var D;if(z==="%AsyncFunction%")D=x("async function () {}");else if(z==="%GeneratorFunction%")D=x("function* () {}");else if(z==="%AsyncGeneratorFunction%")D=x("async function* () {}");else if(z==="%AsyncGenerator%"){var N=M("%AsyncGeneratorFunction%");N&&(D=N.prototype)}else if(z==="%AsyncIteratorPrototype%"){var I=M("%AsyncGenerator%");I&&n&&(D=n(I.prototype))}return l[z]=D,D},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},u=e(8844),o=e(92064),d=u.call(Function.call,Array.prototype.concat),w=u.call(Function.apply,Array.prototype.splice),A=u.call(Function.call,String.prototype.replace),_=u.call(Function.call,String.prototype.slice),y=u.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,s=function(z){var D=_(z,0,1),N=_(z,-1);if(D==="%"&&N!=="%")throw new C("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&D!=="%")throw new C("invalid intrinsic syntax, expected opening `%`");var I=[];return A(z,E,function(k,B,O,H){I[I.length]=O?A(H,T,"$1"):B||k}),I},L=function(z,D){var N=z,I;if(o(b,N)&&(I=b[N],N="%"+I[0]+"%"),o(l,N)){var k=l[N];if(k===f&&(k=h(N)),typeof k>"u"&&!D)throw new S("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:I,name:N,value:k}}throw new C("intrinsic "+z+" does not exist!")};G.exports=function(z,D){if(typeof z!="string"||z.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof D!="boolean")throw new S('"allowMissing" argument must be a boolean');if(y(/^%?[^%]*%?$/,z)===null)throw new C("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=s(z),I=N.length>0?N[0]:"",k=L("%"+I+"%",D),B=k.name,O=k.value,H=!1,Y=k.alias;Y&&(I=Y[0],w(N,d([0,1],Y)));for(var j=1,te=!0;j=N.length){var X=v(O,ie);te=!!X,te&&"get"in X&&!("originalValue"in X.get)?O=X.get:O=O[ie]}else te=o(O,ie),O=O[ie];te&&!H&&(l[B]=O)}}return O}},12408:function(G){G.exports=U;function U(e,g){var C=g[0],i=g[1],S=g[2],x=g[3],v=g[4],p=g[5],r=g[6],t=g[7],a=g[8],n=g[9],f=g[10],c=g[11],l=g[12],m=g[13],h=g[14],b=g[15];return e[0]=p*(f*b-c*h)-n*(r*b-t*h)+m*(r*c-t*f),e[1]=-(i*(f*b-c*h)-n*(S*b-x*h)+m*(S*c-x*f)),e[2]=i*(r*b-t*h)-p*(S*b-x*h)+m*(S*t-x*r),e[3]=-(i*(r*c-t*f)-p*(S*c-x*f)+n*(S*t-x*r)),e[4]=-(v*(f*b-c*h)-a*(r*b-t*h)+l*(r*c-t*f)),e[5]=C*(f*b-c*h)-a*(S*b-x*h)+l*(S*c-x*f),e[6]=-(C*(r*b-t*h)-v*(S*b-x*h)+l*(S*t-x*r)),e[7]=C*(r*c-t*f)-v*(S*c-x*f)+a*(S*t-x*r),e[8]=v*(n*b-c*m)-a*(p*b-t*m)+l*(p*c-t*n),e[9]=-(C*(n*b-c*m)-a*(i*b-x*m)+l*(i*c-x*n)),e[10]=C*(p*b-t*m)-v*(i*b-x*m)+l*(i*t-x*p),e[11]=-(C*(p*c-t*n)-v*(i*c-x*n)+a*(i*t-x*p)),e[12]=-(v*(n*h-f*m)-a*(p*h-r*m)+l*(p*f-r*n)),e[13]=C*(n*h-f*m)-a*(i*h-S*m)+l*(i*f-S*n),e[14]=-(C*(p*h-r*m)-v*(i*h-S*m)+l*(i*r-S*p)),e[15]=C*(p*f-r*n)-v*(i*f-S*n)+a*(i*r-S*p),e}},76860:function(G){G.exports=U;function U(e){var g=new Float32Array(16);return g[0]=e[0],g[1]=e[1],g[2]=e[2],g[3]=e[3],g[4]=e[4],g[5]=e[5],g[6]=e[6],g[7]=e[7],g[8]=e[8],g[9]=e[9],g[10]=e[10],g[11]=e[11],g[12]=e[12],g[13]=e[13],g[14]=e[14],g[15]=e[15],g}},64492:function(G){G.exports=U;function U(e,g){return e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[4]=g[4],e[5]=g[5],e[6]=g[6],e[7]=g[7],e[8]=g[8],e[9]=g[9],e[10]=g[10],e[11]=g[11],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15],e}},54212:function(G){G.exports=U;function U(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},70800:function(G){G.exports=U;function U(e){var g=e[0],C=e[1],i=e[2],S=e[3],x=e[4],v=e[5],p=e[6],r=e[7],t=e[8],a=e[9],n=e[10],f=e[11],c=e[12],l=e[13],m=e[14],h=e[15],b=g*v-C*x,u=g*p-i*x,o=g*r-S*x,d=C*p-i*v,w=C*r-S*v,A=i*r-S*p,_=t*l-a*c,y=t*m-n*c,E=t*h-f*c,T=a*m-n*l,s=a*h-f*l,L=n*h-f*m;return b*L-u*s+o*T+d*E-w*y+A*_}},61784:function(G){G.exports=U;function U(e,g){var C=g[0],i=g[1],S=g[2],x=g[3],v=C+C,p=i+i,r=S+S,t=C*v,a=i*v,n=i*p,f=S*v,c=S*p,l=S*r,m=x*v,h=x*p,b=x*r;return e[0]=1-n-l,e[1]=a+b,e[2]=f-h,e[3]=0,e[4]=a-b,e[5]=1-t-l,e[6]=c+m,e[7]=0,e[8]=f+h,e[9]=c-m,e[10]=1-t-n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},91616:function(G){G.exports=U;function U(e,g,C){var i,S,x,v=C[0],p=C[1],r=C[2],t=Math.sqrt(v*v+p*p+r*r);return Math.abs(t)<1e-6?null:(t=1/t,v*=t,p*=t,r*=t,i=Math.sin(g),S=Math.cos(g),x=1-S,e[0]=v*v*x+S,e[1]=p*v*x+r*i,e[2]=r*v*x-p*i,e[3]=0,e[4]=v*p*x-r*i,e[5]=p*p*x+S,e[6]=r*p*x+v*i,e[7]=0,e[8]=v*r*x+p*i,e[9]=p*r*x-v*i,e[10]=r*r*x+S,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}},51944:function(G){G.exports=U;function U(e,g,C){var i=g[0],S=g[1],x=g[2],v=g[3],p=i+i,r=S+S,t=x+x,a=i*p,n=i*r,f=i*t,c=S*r,l=S*t,m=x*t,h=v*p,b=v*r,u=v*t;return e[0]=1-(c+m),e[1]=n+u,e[2]=f-b,e[3]=0,e[4]=n-u,e[5]=1-(a+m),e[6]=l+h,e[7]=0,e[8]=f+b,e[9]=l-h,e[10]=1-(a+c),e[11]=0,e[12]=C[0],e[13]=C[1],e[14]=C[2],e[15]=1,e}},69444:function(G){G.exports=U;function U(e,g){return e[0]=g[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=g[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=g[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},48268:function(G){G.exports=U;function U(e,g){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=g[0],e[13]=g[1],e[14]=g[2],e[15]=1,e}},21856:function(G){G.exports=U;function U(e,g){var C=Math.sin(g),i=Math.cos(g);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=C,e[7]=0,e[8]=0,e[9]=-C,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},79216:function(G){G.exports=U;function U(e,g){var C=Math.sin(g),i=Math.cos(g);return e[0]=i,e[1]=0,e[2]=-C,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=C,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},57736:function(G){G.exports=U;function U(e,g){var C=Math.sin(g),i=Math.cos(g);return e[0]=i,e[1]=C,e[2]=0,e[3]=0,e[4]=-C,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},38848:function(G){G.exports=U;function U(e,g,C,i,S,x,v){var p=1/(C-g),r=1/(S-i),t=1/(x-v);return e[0]=x*2*p,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=x*2*r,e[6]=0,e[7]=0,e[8]=(C+g)*p,e[9]=(S+i)*r,e[10]=(v+x)*t,e[11]=-1,e[12]=0,e[13]=0,e[14]=v*x*2*t,e[15]=0,e}},36635:function(G){G.exports=U;function U(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},36524:function(G,U,e){G.exports={create:e(54212),clone:e(76860),copy:e(64492),identity:e(36635),transpose:e(86520),invert:e(4308),adjoint:e(12408),determinant:e(70800),multiply:e(80944),translate:e(35176),scale:e(68152),rotate:e(30016),rotateX:e(15456),rotateY:e(64840),rotateZ:e(4192),fromRotation:e(91616),fromRotationTranslation:e(51944),fromScaling:e(69444),fromTranslation:e(48268),fromXRotation:e(21856),fromYRotation:e(79216),fromZRotation:e(57736),fromQuat:e(61784),frustum:e(38848),perspective:e(51296),perspectiveFromFieldOfView:e(63688),ortho:e(97688),lookAt:e(56508),str:e(89412)}},4308:function(G){G.exports=U;function U(e,g){var C=g[0],i=g[1],S=g[2],x=g[3],v=g[4],p=g[5],r=g[6],t=g[7],a=g[8],n=g[9],f=g[10],c=g[11],l=g[12],m=g[13],h=g[14],b=g[15],u=C*p-i*v,o=C*r-S*v,d=C*t-x*v,w=i*r-S*p,A=i*t-x*p,_=S*t-x*r,y=a*m-n*l,E=a*h-f*l,T=a*b-c*l,s=n*h-f*m,L=n*b-c*m,M=f*b-c*h,z=u*M-o*L+d*s+w*T-A*E+_*y;return z?(z=1/z,e[0]=(p*M-r*L+t*s)*z,e[1]=(S*L-i*M-x*s)*z,e[2]=(m*_-h*A+b*w)*z,e[3]=(f*A-n*_-c*w)*z,e[4]=(r*T-v*M-t*E)*z,e[5]=(C*M-S*T+x*E)*z,e[6]=(h*d-l*_-b*o)*z,e[7]=(a*_-f*d+c*o)*z,e[8]=(v*L-p*T+t*y)*z,e[9]=(i*T-C*L-x*y)*z,e[10]=(l*A-m*d+b*u)*z,e[11]=(n*d-a*A-c*u)*z,e[12]=(p*E-v*s-r*y)*z,e[13]=(C*s-i*E+S*y)*z,e[14]=(m*o-l*w-h*u)*z,e[15]=(a*w-n*o+f*u)*z,e):null}},56508:function(G,U,e){var g=e(36635);G.exports=C;function C(i,S,x,v){var p,r,t,a,n,f,c,l,m,h,b=S[0],u=S[1],o=S[2],d=v[0],w=v[1],A=v[2],_=x[0],y=x[1],E=x[2];return Math.abs(b-_)<1e-6&&Math.abs(u-y)<1e-6&&Math.abs(o-E)<1e-6?g(i):(c=b-_,l=u-y,m=o-E,h=1/Math.sqrt(c*c+l*l+m*m),c*=h,l*=h,m*=h,p=w*m-A*l,r=A*c-d*m,t=d*l-w*c,h=Math.sqrt(p*p+r*r+t*t),h?(h=1/h,p*=h,r*=h,t*=h):(p=0,r=0,t=0),a=l*t-m*r,n=m*p-c*t,f=c*r-l*p,h=Math.sqrt(a*a+n*n+f*f),h?(h=1/h,a*=h,n*=h,f*=h):(a=0,n=0,f=0),i[0]=p,i[1]=a,i[2]=c,i[3]=0,i[4]=r,i[5]=n,i[6]=l,i[7]=0,i[8]=t,i[9]=f,i[10]=m,i[11]=0,i[12]=-(p*b+r*u+t*o),i[13]=-(a*b+n*u+f*o),i[14]=-(c*b+l*u+m*o),i[15]=1,i)}},80944:function(G){G.exports=U;function U(e,g,C){var i=g[0],S=g[1],x=g[2],v=g[3],p=g[4],r=g[5],t=g[6],a=g[7],n=g[8],f=g[9],c=g[10],l=g[11],m=g[12],h=g[13],b=g[14],u=g[15],o=C[0],d=C[1],w=C[2],A=C[3];return e[0]=o*i+d*p+w*n+A*m,e[1]=o*S+d*r+w*f+A*h,e[2]=o*x+d*t+w*c+A*b,e[3]=o*v+d*a+w*l+A*u,o=C[4],d=C[5],w=C[6],A=C[7],e[4]=o*i+d*p+w*n+A*m,e[5]=o*S+d*r+w*f+A*h,e[6]=o*x+d*t+w*c+A*b,e[7]=o*v+d*a+w*l+A*u,o=C[8],d=C[9],w=C[10],A=C[11],e[8]=o*i+d*p+w*n+A*m,e[9]=o*S+d*r+w*f+A*h,e[10]=o*x+d*t+w*c+A*b,e[11]=o*v+d*a+w*l+A*u,o=C[12],d=C[13],w=C[14],A=C[15],e[12]=o*i+d*p+w*n+A*m,e[13]=o*S+d*r+w*f+A*h,e[14]=o*x+d*t+w*c+A*b,e[15]=o*v+d*a+w*l+A*u,e}},97688:function(G){G.exports=U;function U(e,g,C,i,S,x,v){var p=1/(g-C),r=1/(i-S),t=1/(x-v);return e[0]=-2*p,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*t,e[11]=0,e[12]=(g+C)*p,e[13]=(S+i)*r,e[14]=(v+x)*t,e[15]=1,e}},51296:function(G){G.exports=U;function U(e,g,C,i,S){var x=1/Math.tan(g/2),v=1/(i-S);return e[0]=x/C,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=x,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(S+i)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*S*i*v,e[15]=0,e}},63688:function(G){G.exports=U;function U(e,g,C,i){var S=Math.tan(g.upDegrees*Math.PI/180),x=Math.tan(g.downDegrees*Math.PI/180),v=Math.tan(g.leftDegrees*Math.PI/180),p=Math.tan(g.rightDegrees*Math.PI/180),r=2/(v+p),t=2/(S+x);return e[0]=r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t,e[6]=0,e[7]=0,e[8]=-((v-p)*r*.5),e[9]=(S-x)*t*.5,e[10]=i/(C-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*C/(C-i),e[15]=0,e}},30016:function(G){G.exports=U;function U(e,g,C,i){var S=i[0],x=i[1],v=i[2],p=Math.sqrt(S*S+x*x+v*v),r,t,a,n,f,c,l,m,h,b,u,o,d,w,A,_,y,E,T,s,L,M,z,D;return Math.abs(p)<1e-6?null:(p=1/p,S*=p,x*=p,v*=p,r=Math.sin(C),t=Math.cos(C),a=1-t,n=g[0],f=g[1],c=g[2],l=g[3],m=g[4],h=g[5],b=g[6],u=g[7],o=g[8],d=g[9],w=g[10],A=g[11],_=S*S*a+t,y=x*S*a+v*r,E=v*S*a-x*r,T=S*x*a-v*r,s=x*x*a+t,L=v*x*a+S*r,M=S*v*a+x*r,z=x*v*a-S*r,D=v*v*a+t,e[0]=n*_+m*y+o*E,e[1]=f*_+h*y+d*E,e[2]=c*_+b*y+w*E,e[3]=l*_+u*y+A*E,e[4]=n*T+m*s+o*L,e[5]=f*T+h*s+d*L,e[6]=c*T+b*s+w*L,e[7]=l*T+u*s+A*L,e[8]=n*M+m*z+o*D,e[9]=f*M+h*z+d*D,e[10]=c*M+b*z+w*D,e[11]=l*M+u*z+A*D,g!==e&&(e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e)}},15456:function(G){G.exports=U;function U(e,g,C){var i=Math.sin(C),S=Math.cos(C),x=g[4],v=g[5],p=g[6],r=g[7],t=g[8],a=g[9],n=g[10],f=g[11];return g!==e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=x*S+t*i,e[5]=v*S+a*i,e[6]=p*S+n*i,e[7]=r*S+f*i,e[8]=t*S-x*i,e[9]=a*S-v*i,e[10]=n*S-p*i,e[11]=f*S-r*i,e}},64840:function(G){G.exports=U;function U(e,g,C){var i=Math.sin(C),S=Math.cos(C),x=g[0],v=g[1],p=g[2],r=g[3],t=g[8],a=g[9],n=g[10],f=g[11];return g!==e&&(e[4]=g[4],e[5]=g[5],e[6]=g[6],e[7]=g[7],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[0]=x*S-t*i,e[1]=v*S-a*i,e[2]=p*S-n*i,e[3]=r*S-f*i,e[8]=x*i+t*S,e[9]=v*i+a*S,e[10]=p*i+n*S,e[11]=r*i+f*S,e}},4192:function(G){G.exports=U;function U(e,g,C){var i=Math.sin(C),S=Math.cos(C),x=g[0],v=g[1],p=g[2],r=g[3],t=g[4],a=g[5],n=g[6],f=g[7];return g!==e&&(e[8]=g[8],e[9]=g[9],e[10]=g[10],e[11]=g[11],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[0]=x*S+t*i,e[1]=v*S+a*i,e[2]=p*S+n*i,e[3]=r*S+f*i,e[4]=t*S-x*i,e[5]=a*S-v*i,e[6]=n*S-p*i,e[7]=f*S-r*i,e}},68152:function(G){G.exports=U;function U(e,g,C){var i=C[0],S=C[1],x=C[2];return e[0]=g[0]*i,e[1]=g[1]*i,e[2]=g[2]*i,e[3]=g[3]*i,e[4]=g[4]*S,e[5]=g[5]*S,e[6]=g[6]*S,e[7]=g[7]*S,e[8]=g[8]*x,e[9]=g[9]*x,e[10]=g[10]*x,e[11]=g[11]*x,e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15],e}},89412:function(G){G.exports=U;function U(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},35176:function(G){G.exports=U;function U(e,g,C){var i=C[0],S=C[1],x=C[2],v,p,r,t,a,n,f,c,l,m,h,b;return g===e?(e[12]=g[0]*i+g[4]*S+g[8]*x+g[12],e[13]=g[1]*i+g[5]*S+g[9]*x+g[13],e[14]=g[2]*i+g[6]*S+g[10]*x+g[14],e[15]=g[3]*i+g[7]*S+g[11]*x+g[15]):(v=g[0],p=g[1],r=g[2],t=g[3],a=g[4],n=g[5],f=g[6],c=g[7],l=g[8],m=g[9],h=g[10],b=g[11],e[0]=v,e[1]=p,e[2]=r,e[3]=t,e[4]=a,e[5]=n,e[6]=f,e[7]=c,e[8]=l,e[9]=m,e[10]=h,e[11]=b,e[12]=v*i+a*S+l*x+g[12],e[13]=p*i+n*S+m*x+g[13],e[14]=r*i+f*S+h*x+g[14],e[15]=t*i+c*S+b*x+g[15]),e}},86520:function(G){G.exports=U;function U(e,g){if(e===g){var C=g[1],i=g[2],S=g[3],x=g[6],v=g[7],p=g[11];e[1]=g[4],e[2]=g[8],e[3]=g[12],e[4]=C,e[6]=g[9],e[7]=g[13],e[8]=i,e[9]=x,e[11]=g[14],e[12]=S,e[13]=v,e[14]=p}else e[0]=g[0],e[1]=g[4],e[2]=g[8],e[3]=g[12],e[4]=g[1],e[5]=g[5],e[6]=g[9],e[7]=g[13],e[8]=g[2],e[9]=g[6],e[10]=g[10],e[11]=g[14],e[12]=g[3],e[13]=g[7],e[14]=g[11],e[15]=g[15];return e}},23352:function(G,U,e){var g=e(42771),C=e(55616),i=e(28624),S=e(55212),x=e(60463),v=e(72160),p=e(33888),r=e(14144),t=e(51160),a=e(58908),n=e(65819),f=e(23464),c=e(63768),l=e(50896),m=e(71920),h=e(47520),b=e(308),u=b.nextPow2,o=new x,d=!1;if(document.body){var w=document.body.appendChild(document.createElement("div"));w.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(w).fontStretch&&(d=!0),document.body.removeChild(w)}var A=function(E){_(E)?(E={regl:E},this.gl=E.regl._gl):this.gl=S(E),this.shader=o.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=E.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),o.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(a(E)?E:{})};A.prototype.createShader=function(){var E=this.regl,T=E({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:E.prop("count"),offset:E.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:E.this("sizeBuffer")},width:{offset:0,stride:8,buffer:E.this("sizeBuffer")},char:E.this("charBuffer"),position:E.this("position")},uniforms:{atlasSize:function(L,M){return[M.atlas.width,M.atlas.height]},atlasDim:function(L,M){return[M.atlas.cols,M.atlas.rows]},atlas:function(L,M){return M.atlas.texture},charStep:function(L,M){return M.atlas.step},em:function(L,M){return M.atlas.em},color:E.prop("color"),opacity:E.prop("opacity"),viewport:E.this("viewportArray"),scale:E.this("scale"),align:E.prop("align"),baseline:E.prop("baseline"),translate:E.this("translate"),positionOffset:E.prop("positionOffset")},primitive:"points",viewport:E.this("viewport"),vert:` + precision highp float; + attribute float width, charOffset, char; + attribute vec2 position; + uniform float fontSize, charStep, em, align, baseline; + uniform vec4 viewport; + uniform vec4 color; + uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset; + varying vec2 charCoord, charId; + varying float charWidth; + varying vec4 fontColor; + void main () { + vec2 offset = floor(em * (vec2(align + charOffset, baseline) + + vec2(positionOffset.x, -positionOffset.y))) + / (viewport.zw * scale.xy); + + vec2 position = (position + translate) * scale; + position += offset * scale; + + charCoord = position * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2. - 1., 0, 1); + + gl_PointSize = charStep; + + charId.x = mod(char, atlasDim.x); + charId.y = floor(char / atlasDim.x); + + charWidth = width * em; + + fontColor = color / 255.; + }`,frag:` + precision highp float; + uniform float fontSize, charStep, opacity; + uniform vec2 atlasSize; + uniform vec4 viewport; + uniform sampler2D atlas; + varying vec4 fontColor; + varying vec2 charCoord, charId; + varying float charWidth; + + float lightness(vec4 color) { + return color.r * 0.299 + color.g * 0.587 + color.b * 0.114; + } + + void main () { + vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5; + float halfCharStep = floor(charStep * .5 + .5); + + // invert y and shift by 1px (FF expecially needs that) + uv.y = charStep - uv.y; + + // ignore points outside of character bounding box + float halfCharWidth = ceil(charWidth * .5); + if (floor(uv.x) > halfCharStep + halfCharWidth || + floor(uv.x) < halfCharStep - halfCharWidth) return; + + uv += charId * charStep; + uv = uv / atlasSize; + + vec4 color = fontColor; + vec4 mask = texture2D(atlas, uv); + + float maskY = lightness(mask); + // float colorY = lightness(color); + color.a *= maskY; + color.a *= opacity; + + // color.a += .1; + + // antialiasing, see yiq color space y-channel formula + // color.rgb += (1. - color.rgb) * (1. - mask.rgb); + + gl_FragColor = color; + }`}),s={};return{regl:E,draw:T,atlas:s}},A.prototype.update=function(E){var T=this;if(typeof E=="string")E={text:E};else if(!E)return;E=C(E,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),E.opacity!=null&&(Array.isArray(E.opacity)?this.opacity=E.opacity.map(function(ke){return parseFloat(ke)}):this.opacity=parseFloat(E.opacity)),E.viewport!=null&&(this.viewport=t(E.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),E.kerning!=null&&(this.kerning=E.kerning),E.offset!=null&&(typeof E.offset=="number"&&(E.offset=[E.offset,0]),this.positionOffset=h(E.offset)),E.direction&&(this.direction=E.direction),E.range&&(this.range=E.range,this.scale=[1/(E.range[2]-E.range[0]),1/(E.range[3]-E.range[1])],this.translate=[-E.range[0],-E.range[1]]),E.scale&&(this.scale=E.scale),E.translate&&(this.translate=E.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!E.font&&(E.font=A.baseFontSize+"px sans-serif");var s=!1,L=!1;if(E.font&&(Array.isArray(E.font)?E.font:[E.font]).forEach(function(ke,Ve){if(typeof ke=="string")try{ke=g.parse(ke)}catch{ke=g.parse(A.baseFontSize+"px "+ke)}else ke=g.parse(g.stringify(ke));var Ie=g.stringify({size:A.baseFontSize,family:ke.family,stretch:d?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style}),rt=n(ke.size),Ke=Math.round(rt[0]*f(rt[1]));if(Ke!==T.fontSize[Ve]&&(L=!0,T.fontSize[Ve]=Ke),(!T.font[Ve]||Ie!=T.font[Ve].baseString)&&(s=!0,T.font[Ve]=A.fonts[Ie],!T.font[Ve])){var $e=ke.family.join(", "),lt=[ke.style];ke.style!=ke.variant&<.push(ke.variant),ke.variant!=ke.weight&<.push(ke.weight),d&&ke.weight!=ke.stretch&<.push(ke.stretch),T.font[Ve]={baseString:Ie,family:$e,weight:ke.weight,stretch:ke.stretch,style:ke.style,variant:ke.variant,width:{},kerning:{},metrics:m($e,{origin:"top",fontSize:A.baseFontSize,fontStyle:lt.join(" ")})},A.fonts[Ie]=T.font[Ve]}}),(s||L)&&this.font.forEach(function(ke,Ve){var Ie=g.stringify({size:T.fontSize[Ve],family:ke.family,stretch:d?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style});if(T.fontAtlas[Ve]=T.shader.atlas[Ie],!T.fontAtlas[Ve]){var rt=ke.metrics;T.shader.atlas[Ie]=T.fontAtlas[Ve]={fontString:Ie,step:Math.ceil(T.fontSize[Ve]*rt.bottom*.5)*2,em:T.fontSize[Ve],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:T.regl.texture()}}E.text==null&&(E.text=T.text)}),typeof E.text=="string"&&E.position&&E.position.length>2){for(var M=Array(E.position.length*.5),z=0;z2){for(var I=!E.position[0].length,k=r.mallocFloat(this.count*2),B=0,O=0;B1?T.align[Ve]:T.align[0]:T.align;if(typeof Ie=="number")return Ie;switch(Ie){case"right":case"end":return-ke;case"center":case"centre":case"middle":return-ke*.5}return 0})),this.baseline==null&&E.baseline==null&&(E.baseline=0),E.baseline!=null&&(this.baseline=E.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ke,Ve){var Ie=(T.font[Ve]||T.font[0]).metrics,rt=0;return rt+=Ie.bottom*.5,typeof ke=="number"?rt+=ke-Ie.baseline:rt+=-Ie[ke],rt*=-1,rt})),E.color!=null)if(E.color||(E.color="transparent"),typeof E.color=="string"||!isNaN(E.color))this.color=v(E.color,"uint8");else{var Te;if(typeof E.color[0]=="number"&&E.color.length>this.counts.length){var we=E.color.length;Te=r.mallocUint8(we);for(var Re=(E.color.subarray||E.color.slice).bind(E.color),be=0;be4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Le){var He=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(He);for(var Ue=0;Ue1?this.counts[Ue]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ue]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ue*4,Ue*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ue]:this.opacity,baseline:this.baselineOffset[Ue]!=null?this.baselineOffset[Ue]:this.baselineOffset[0],align:this.align?this.alignOffset[Ue]!=null?this.alignOffset[Ue]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ue]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ue*2,Ue*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}},A.prototype.destroy=function(){},A.prototype.kerning=!0,A.prototype.position={constant:new Float32Array(2)},A.prototype.translate=null,A.prototype.scale=null,A.prototype.font=null,A.prototype.text="",A.prototype.positionOffset=[0,0],A.prototype.opacity=1,A.prototype.color=new Uint8Array([0,0,0,255]),A.prototype.alignOffset=[0,0],A.maxAtlasSize=1024,A.atlasCanvas=document.createElement("canvas"),A.atlasContext=A.atlasCanvas.getContext("2d",{alpha:!1}),A.baseFontSize=64,A.fonts={};function _(y){return typeof y=="function"&&y._gl&&y.prop&&y.texture&&y.buffer}G.exports=A},55212:function(G,U,e){var g=e(55616);G.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},i(r)?r={container:r}:S(r)?r={container:r}:x(r)?r={gl:r}:r=g(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=e.g.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}i(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=v(),r.container.appendChild(r.canvas),C(r))}else if(!r.canvas)if(typeof document<"u")r.container=document.body||document.documentElement,r.canvas=v(),r.container.appendChild(r.canvas),C(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch{}return r.gl}),r.gl};function C(p){if(p.container)if(p.container==document.body)document.body.style.width||(p.canvas.width=p.width||p.pixelRatio*e.g.innerWidth),document.body.style.height||(p.canvas.height=p.height||p.pixelRatio*e.g.innerHeight);else{var r=p.container.getBoundingClientRect();p.canvas.width=p.width||r.right-r.left,p.canvas.height=p.height||r.bottom-r.top}}function i(p){return typeof p.getContext=="function"&&"width"in p&&"height"in p}function S(p){return typeof p.nodeName=="string"&&typeof p.appendChild=="function"&&typeof p.getBoundingClientRect=="function"}function x(p){return typeof p.drawArrays=="function"||typeof p.drawElements=="function"}function v(){var p=document.createElement("canvas");return p.style.position="absolute",p.style.top=0,p.style.left=0,p}},26444:function(G){G.exports=function(U){typeof U=="string"&&(U=[U]);for(var e=[].slice.call(arguments,1),g=[],C=0;C */U.read=function(e,g,C,i,S){var x,v,p=S*8-i-1,r=(1<>1,a=-7,n=C?S-1:0,f=C?-1:1,c=e[g+n];for(n+=f,x=c&(1<<-a)-1,c>>=-a,a+=p;a>0;x=x*256+e[g+n],n+=f,a-=8);for(v=x&(1<<-a)-1,x>>=-a,a+=i;a>0;v=v*256+e[g+n],n+=f,a-=8);if(x===0)x=1-t;else{if(x===r)return v?NaN:(c?-1:1)*(1/0);v=v+Math.pow(2,i),x=x-t}return(c?-1:1)*v*Math.pow(2,x-i)},U.write=function(e,g,C,i,S,x){var v,p,r,t=x*8-S-1,a=(1<>1,f=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=i?0:x-1,l=i?1:-1,m=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(p=isNaN(g)?1:0,v=a):(v=Math.floor(Math.log(g)/Math.LN2),g*(r=Math.pow(2,-v))<1&&(v--,r*=2),v+n>=1?g+=f/r:g+=f*Math.pow(2,1-n),g*r>=2&&(v++,r/=2),v+n>=a?(p=0,v=a):v+n>=1?(p=(g*r-1)*Math.pow(2,S),v=v+n):(p=g*Math.pow(2,n-1)*Math.pow(2,S),v=0));S>=8;e[C+c]=p&255,c+=l,p/=256,S-=8);for(v=v<0;e[C+c]=v&255,c+=l,v/=256,t-=8);e[C+c-l]|=m*128}},6768:function(G){typeof Object.create=="function"?G.exports=function(e,g){g&&(e.super_=g,e.prototype=Object.create(g.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:G.exports=function(e,g){if(g){e.super_=g;var C=function(){};C.prototype=g.prototype,e.prototype=new C,e.prototype.constructor=e}}},91148:function(G,U,e){var g=e(46672)(),C=e(99676),i=C("Object.prototype.toString"),S=function(r){return g&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:i(r)==="[object Arguments]"},x=function(r){return S(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&i(r)!=="[object Array]"&&i(r.callee)==="[object Function]"},v=function(){return S(arguments)}();S.isLegacyArguments=x,G.exports=v?S:x},24200:function(G){G.exports=!0},90720:function(G){var U=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,g,C;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{g=Object.defineProperty({},"length",{get:function(){throw C}}),C={},e(function(){throw 42},null,g)}catch(b){b!==C&&(e=null)}else e=null;var i=/^\s*class\b/,S=function(u){try{var o=U.call(u);return i.test(o)}catch{return!1}},x=function(u){try{return S(u)?!1:(U.call(u),!0)}catch{return!1}},v=Object.prototype.toString,p="[object Object]",r="[object Function]",t="[object GeneratorFunction]",a="[object HTMLAllCollection]",n="[object HTML document.all class]",f="[object HTMLCollection]",c=typeof Symbol=="function"&&!!Symbol.toStringTag,l=!(0 in[,]),m=function(){return!1};if(typeof document=="object"){var h=document.all;v.call(h)===v.call(document.all)&&(m=function(u){if((l||!u)&&(typeof u>"u"||typeof u=="object"))try{var o=v.call(u);return(o===a||o===n||o===f||o===p)&&u("")==null}catch{}return!1})}G.exports=e?function(u){if(m(u))return!0;if(!u||typeof u!="function"&&typeof u!="object")return!1;try{e(u,null,g)}catch(o){if(o!==C)return!1}return!S(u)&&x(u)}:function(u){if(m(u))return!0;if(!u||typeof u!="function"&&typeof u!="object")return!1;if(c)return x(u);if(S(u))return!1;var o=v.call(u);return o!==r&&o!==t&&!/^\[object HTML/.test(o)?!1:x(u)}},84420:function(G,U,e){var g=Object.prototype.toString,C=Function.prototype.toString,i=/^\s*(?:function)?\*/,S=e(46672)(),x=Object.getPrototypeOf,v=function(){if(!S)return!1;try{return Function("return function*() {}")()}catch{}},p;G.exports=function(t){if(typeof t!="function")return!1;if(i.test(C.call(t)))return!0;if(!S){var a=g.call(t);return a==="[object GeneratorFunction]"}if(!x)return!1;if(typeof p>"u"){var n=v();p=n?x(n):!1}return x(t)===p}},96604:function(G){G.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},85992:function(G){G.exports=function(e){return e!==e}},1560:function(G,U,e){var g=e(57916),C=e(81288),i=e(85992),S=e(57740),x=e(59736),v=g(S(),Number);C(v,{getPolyfill:S,implementation:i,shim:x}),G.exports=v},57740:function(G,U,e){var g=e(85992);G.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:g}},59736:function(G,U,e){var g=e(81288),C=e(57740);G.exports=function(){var S=C();return g(Number,{isNaN:S},{isNaN:function(){return Number.isNaN!==S}}),S}},18400:function(G){G.exports=function(U){var e=typeof U;return U!==null&&(e==="object"||e==="function")}},58908:function(G){var U=Object.prototype.toString;G.exports=function(e){var g;return U.call(e)==="[object Object]"&&(g=Object.getPrototypeOf(e),g===null||g===Object.getPrototypeOf({}))}},94576:function(G){G.exports=function(U){for(var e=U.length,g,C=0;C13)&&g!==32&&g!==133&&g!==160&&g!==5760&&g!==6158&&(g<8192||g>8205)&&g!==8232&&g!==8233&&g!==8239&&g!==8287&&g!==8288&&g!==12288&&g!==65279)return!1;return!0}},53520:function(G){G.exports=function(e){return typeof e!="string"?!1:(e=e.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4))}},7728:function(G,U,e){var g=e(46492),C=e(63436),i=e(99676),S=i("Object.prototype.toString"),x=e(46672)(),v=e(2304),p=typeof globalThis>"u"?e.g:globalThis,r=C(),t=i("Array.prototype.indexOf",!0)||function(m,h){for(var b=0;b-1}return v?c(m):!1}},76244:function(G){G.exports=Math.log2||function(U){return Math.log(U)*Math.LOG2E}},62644:function(G,U,e){G.exports=C;var g=e(93784);function C(i,S){S||(S=i,i=window);var x=0,v=0,p=0,r={shift:!1,alt:!1,control:!1,meta:!1},t=!1;function a(w){var A=!1;return"altKey"in w&&(A=A||w.altKey!==r.alt,r.alt=!!w.altKey),"shiftKey"in w&&(A=A||w.shiftKey!==r.shift,r.shift=!!w.shiftKey),"ctrlKey"in w&&(A=A||w.ctrlKey!==r.control,r.control=!!w.ctrlKey),"metaKey"in w&&(A=A||w.metaKey!==r.meta,r.meta=!!w.metaKey),A}function n(w,A){var _=g.x(A),y=g.y(A);"buttons"in A&&(w=A.buttons|0),(w!==x||_!==v||y!==p||a(A))&&(x=w|0,v=_||0,p=y||0,S&&S(x,v,p,r))}function f(w){n(0,w)}function c(){(x||v||p||r.shift||r.alt||r.meta||r.control)&&(v=p=0,x=0,r.shift=r.alt=r.control=r.meta=!1,S&&S(0,0,0,r))}function l(w){a(w)&&S&&S(x,v,p,r)}function m(w){g.buttons(w)===0?n(0,w):n(x,w)}function h(w){n(x|g.buttons(w),w)}function b(w){n(x&~g.buttons(w),w)}function u(){t||(t=!0,i.addEventListener("mousemove",m),i.addEventListener("mousedown",h),i.addEventListener("mouseup",b),i.addEventListener("mouseleave",f),i.addEventListener("mouseenter",f),i.addEventListener("mouseout",f),i.addEventListener("mouseover",f),i.addEventListener("blur",c),i.addEventListener("keyup",l),i.addEventListener("keydown",l),i.addEventListener("keypress",l),i!==window&&(window.addEventListener("blur",c),window.addEventListener("keyup",l),window.addEventListener("keydown",l),window.addEventListener("keypress",l)))}function o(){t&&(t=!1,i.removeEventListener("mousemove",m),i.removeEventListener("mousedown",h),i.removeEventListener("mouseup",b),i.removeEventListener("mouseleave",f),i.removeEventListener("mouseenter",f),i.removeEventListener("mouseout",f),i.removeEventListener("mouseover",f),i.removeEventListener("blur",c),i.removeEventListener("keyup",l),i.removeEventListener("keydown",l),i.removeEventListener("keypress",l),i!==window&&(window.removeEventListener("blur",c),window.removeEventListener("keyup",l),window.removeEventListener("keydown",l),window.removeEventListener("keypress",l)))}u();var d={element:i};return Object.defineProperties(d,{enabled:{get:function(){return t},set:function(w){w?u():o()},enumerable:!0},buttons:{get:function(){return x},enumerable:!0},x:{get:function(){return v},enumerable:!0},y:{get:function(){return p},enumerable:!0},mods:{get:function(){return r},enumerable:!0}}),d}},29128:function(G){var U={left:0,top:0};G.exports=e;function e(C,i,S){i=i||C.currentTarget||C.srcElement,Array.isArray(S)||(S=[0,0]);var x=C.clientX||0,v=C.clientY||0,p=g(i);return S[0]=x-p.left,S[1]=v-p.top,S}function g(C){return C===window||C===document||C===document.body?U:C.getBoundingClientRect()}},93784:function(G,U){function e(S){if(typeof S=="object"){if("buttons"in S)return S.buttons;if("which"in S){var x=S.which;if(x===2)return 4;if(x===3)return 2;if(x>0)return 1<=0)return 1<0&&r(a,w))}catch(A){c.call(new m(w),A)}}}function c(o){var d=this;d.triggered||(d.triggered=!0,d.def&&(d=d.def),d.msg=o,d.state=2,d.chain.length>0&&r(a,d))}function l(o,d,w,A){for(var _=0;_7&&(t.push(d.splice(0,7)),d.unshift("C"));break;case"S":var A=h,_=b;(r=="C"||r=="S")&&(A+=A-a,_+=_-n),d=["C",A,_,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=h*2-l,m=b*2-m):(l=h,m=b),d=i(h,b,l,m,d[1],d[2]);break;case"Q":l=d[1],m=d[2],d=i(h,b,d[1],d[2],d[3],d[4]);break;case"L":d=C(h,b,d[1],d[2]);break;case"H":d=C(h,b,d[1],b);break;case"V":d=C(h,b,h,d[1]);break;case"Z":d=C(h,b,f,c);break}r=w,h=d[d.length-2],b=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=h,n=b),t.push(d)}return t}function C(p,r,t,a){return["C",p,r,t,a,t,a]}function i(p,r,t,a,n,f){return["C",p/3+.6666666666666666*t,r/3+.6666666666666666*a,n/3+.6666666666666666*t,f/3+.6666666666666666*a,n,f]}function S(p,r,t,a,n,f,c,l,m,h){if(h)T=h[0],s=h[1],y=h[2],E=h[3];else{var b=x(p,r,-n);p=b.x,r=b.y,b=x(l,m,-n),l=b.x,m=b.y;var u=(p-l)/2,o=(r-m)/2,d=u*u/(t*t)+o*o/(a*a);d>1&&(d=Math.sqrt(d),t=d*t,a=d*a);var w=t*t,A=a*a,_=(f==c?-1:1)*Math.sqrt(Math.abs((w*A-w*o*o-A*u*u)/(w*o*o+A*u*u)));_==1/0&&(_=1);var y=_*t*o/a+(p+l)/2,E=_*-a*u/t+(r+m)/2,T=Math.asin(((r-E)/a).toFixed(9)),s=Math.asin(((m-E)/a).toFixed(9));T=ps&&(T=T-U*2),!c&&s>T&&(s=s-U*2)}if(Math.abs(s-T)>e){var L=s,M=l,z=m;s=T+e*(c&&s>T?1:-1),l=y+t*Math.cos(s),m=E+a*Math.sin(s);var D=S(l,m,t,a,n,0,c,M,z,[s,L,y,E])}var N=Math.tan((s-T)/4),I=4/3*t*N,k=4/3*a*N,B=[2*p-(p+I*Math.sin(T)),2*r-(r-k*Math.cos(T)),l+I*Math.sin(s),m-k*Math.cos(s),l,m];if(h)return B;D&&(B=B.concat(D));for(var O=0;O"u")return!1;for(var c in window)try{if(!a["$"+c]&&C.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{t(window[c])}catch{return!0}}catch{return!0}return!1}(),f=function(c){if(typeof window>"u"||!n)return t(c);try{return t(c)}catch{return!1}};g=function(l){var m=l!==null&&typeof l=="object",h=i.call(l)==="[object Function]",b=S(l),u=m&&i.call(l)==="[object String]",o=[];if(!m&&!h&&!b)throw new TypeError("Object.keys called on a non-object");var d=p&&h;if(u&&l.length>0&&!C.call(l,0))for(var w=0;w0)for(var A=0;A=0&&U.call(g.callee)==="[object Function]"),i}},32868:function(G){function U(C,i){if(typeof C!="string")return[C];var S=[C];typeof i=="string"||Array.isArray(i)?i={brackets:i}:i||(i={});var x=i.brackets?Array.isArray(i.brackets)?i.brackets:[i.brackets]:["{}","[]","()"],v=i.escape||"___",p=!!i.flat;x.forEach(function(a){var n=new RegExp(["\\",a[0],"[^\\",a[0],"\\",a[1],"]*\\",a[1]].join("")),f=[];function c(l,m,h){var b=S.push(l.slice(a[0].length,-a[1].length))-1;return f.push(b),v+b+v}S.forEach(function(l,m){for(var h,b=0;l!=h;)if(h=l,l=l.replace(n,c),b++>1e4)throw Error("References have circular dependency. Please, check them.");S[m]=l}),f=f.reverse(),S=S.map(function(l){return f.forEach(function(m){l=l.replace(new RegExp("(\\"+v+m+"\\"+v+")","g"),a[0]+"$1"+a[1])}),l})});var r=new RegExp("\\"+v+"([0-9]+)\\"+v);function t(a,n,f){for(var c=[],l,m=0;l=r.exec(a);){if(m++>1e4)throw Error("Circular references in parenthesis");c.push(a.slice(0,l.index)),c.push(t(n[l[1]],n)),a=a.slice(l.index+l[0].length)}return c.push(a),c}return p?S:t(S[0],S)}function e(C,i){if(i&&i.flat){var S=i&&i.escape||"___",x=C[0],v;if(!x)return"";for(var p=new RegExp("\\"+S+"([0-9]+)\\"+S),r=0;x!=v;){if(r++>1e4)throw Error("Circular references in "+C);v=x,x=x.replace(p,t)}return x}return C.reduce(function a(n,f){return Array.isArray(f)&&(f=f.reduce(a,"")),n+f},"");function t(a,n){if(C[n]==null)throw Error("Reference "+n+"is undefined");return C[n]}}function g(C,i){return Array.isArray(C)?e(C,i):U(C,i)}g.parse=U,g.stringify=e,G.exports=g},51160:function(G,U,e){var g=e(55616);G.exports=C;function C(i){var S;return arguments.length>1&&(i=arguments),typeof i=="string"?i=i.split(/\s/).map(parseFloat):typeof i=="number"&&(i=[i]),i.length&&typeof i[0]=="number"?i.length===1?S={width:i[0],height:i[0],x:0,y:0}:i.length===2?S={width:i[0],height:i[1],x:0,y:0}:S={x:i[0],y:i[1],width:i[2]-i[0]||0,height:i[3]-i[1]||0}:i&&(i=g(i,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),S={x:i.left||0,y:i.top||0},i.width==null?i.right?S.width=i.right-S.x:S.width=0:S.width=i.width,i.height==null?i.bottom?S.height=i.bottom-S.y:S.height=0:S.height=i.height),S}},21984:function(G){G.exports=g;var U={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function g(S){var x=[];return S.replace(e,function(v,p,r){var t=p.toLowerCase();for(r=i(r),t=="m"&&r.length>2&&(x.push([p].concat(r.splice(0,2))),t="l",p=p=="m"?"l":"L");;){if(r.length==U[t])return r.unshift(p),x.push(r);if(r.lengthx!=c>x&&S<(f-a)*(x-n)/(c-n)+a;l&&(v=!v)}return v}},14756:function(G,U,e){/* + * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc + * @license MIT + * @preserve Project Home: https://github.com/voidqk/polybooljs + */var g=e(7688),C=e(28648),i=e(72200),S=e(11403),x=e(82368),v=e(17792),p=!1,r=C(),t;t={buildLog:function(n){return n===!0?p=g():n===!1&&(p=!1),p===!1?!1:p.list},epsilon:function(n){return r.epsilon(n)},segments:function(n){var f=i(!0,r,p);return n.regions.forEach(f.addRegion),{segments:f.calculate(n.inverted),inverted:n.inverted}},combine:function(n,f){var c=i(!1,r,p);return{combined:c.calculate(n.segments,n.inverted,f.segments,f.inverted),inverted1:n.inverted,inverted2:f.inverted}},selectUnion:function(n){return{segments:x.union(n.combined,p),inverted:n.inverted1||n.inverted2}},selectIntersect:function(n){return{segments:x.intersect(n.combined,p),inverted:n.inverted1&&n.inverted2}},selectDifference:function(n){return{segments:x.difference(n.combined,p),inverted:n.inverted1&&!n.inverted2}},selectDifferenceRev:function(n){return{segments:x.differenceRev(n.combined,p),inverted:!n.inverted1&&n.inverted2}},selectXor:function(n){return{segments:x.xor(n.combined,p),inverted:n.inverted1!==n.inverted2}},polygon:function(n){return{regions:S(n.segments,r,p),inverted:n.inverted}},polygonFromGeoJSON:function(n){return v.toPolygon(t,n)},polygonToGeoJSON:function(n){return v.fromPolygon(t,r,n)},union:function(n,f){return a(n,f,t.selectUnion)},intersect:function(n,f){return a(n,f,t.selectIntersect)},difference:function(n,f){return a(n,f,t.selectDifference)},differenceRev:function(n,f){return a(n,f,t.selectDifferenceRev)},xor:function(n,f){return a(n,f,t.selectXor)}};function a(n,f,c){var l=t.segments(n),m=t.segments(f),h=t.combine(l,m),b=c(h);return t.polygon(b)}typeof window=="object"&&(window.PolyBool=t),G.exports=t},7688:function(G){function U(){var e,g=0,C=!1;function i(S,x){return e.list.push({type:S,data:x?JSON.parse(JSON.stringify(x)):void 0}),e}return e={list:[],segmentId:function(){return g++},checkIntersection:function(S,x){return i("check",{seg1:S,seg2:x})},segmentChop:function(S,x){return i("div_seg",{seg:S,pt:x}),i("chop",{seg:S,pt:x})},statusRemove:function(S){return i("pop_seg",{seg:S})},segmentUpdate:function(S){return i("seg_update",{seg:S})},segmentNew:function(S,x){return i("new_seg",{seg:S,primary:x})},segmentRemove:function(S){return i("rem_seg",{seg:S})},tempStatus:function(S,x,v){return i("temp_status",{seg:S,above:x,below:v})},rewind:function(S){return i("rewind",{seg:S})},status:function(S,x,v){return i("status",{seg:S,above:x,below:v})},vert:function(S){return S===C?e:(C=S,i("vert",{x:S}))},log:function(S){return typeof S!="string"&&(S=JSON.stringify(S,!1," ")),i("log",{txt:S})},reset:function(){return i("reset")},selected:function(S){return i("selected",{segs:S})},chainStart:function(S){return i("chain_start",{seg:S})},chainRemoveHead:function(S,x){return i("chain_rem_head",{index:S,pt:x})},chainRemoveTail:function(S,x){return i("chain_rem_tail",{index:S,pt:x})},chainNew:function(S,x){return i("chain_new",{pt1:S,pt2:x})},chainMatch:function(S){return i("chain_match",{index:S})},chainClose:function(S){return i("chain_close",{index:S})},chainAddHead:function(S,x){return i("chain_add_head",{index:S,pt:x})},chainAddTail:function(S,x){return i("chain_add_tail",{index:S,pt:x})},chainConnect:function(S,x){return i("chain_con",{index1:S,index2:x})},chainReverse:function(S){return i("chain_rev",{index:S})},chainJoin:function(S,x){return i("chain_join",{index1:S,index2:x})},done:function(){return i("done")}},e}G.exports=U},28648:function(G){function U(e){typeof e!="number"&&(e=1e-10);var g={epsilon:function(C){return typeof C=="number"&&(e=C),e},pointAboveOrOnLine:function(C,i,S){var x=i[0],v=i[1],p=S[0],r=S[1],t=C[0],a=C[1];return(p-x)*(a-v)-(r-v)*(t-x)>=-e},pointBetween:function(C,i,S){var x=C[1]-i[1],v=S[0]-i[0],p=C[0]-i[0],r=S[1]-i[1],t=p*v+x*r;if(t-e)},pointsSameX:function(C,i){return Math.abs(C[0]-i[0])e!=p-x>e&&(v-a)*(x-n)/(p-n)+a-S>e&&(r=!r),v=a,p=n}return r}};return g}G.exports=U},17792:function(G){var U={toPolygon:function(e,g){function C(x){if(x.length<=0)return e.segments({inverted:!1,regions:[]});function v(t){var a=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[a]})}for(var p=v(x[0]),r=1;r0})}function A(I,k){var B=I.seg,O=k.seg,H=B.start,Y=B.end,j=O.start,te=O.end;x&&x.checkIntersection(B,O);var ie=S.linesIntersect(H,Y,j,te);if(ie===!1){if(!S.pointsCollinear(H,Y,j)||S.pointsSame(H,te)||S.pointsSame(Y,j))return!1;var ue=S.pointsSame(H,j),J=S.pointsSame(Y,te);if(ue&&J)return k;var X=!ue&&S.pointBetween(H,j,te),ee=!J&&S.pointBetween(Y,j,te);if(ue)return ee?m(k,Y):m(I,te),k;X&&(J||(ee?m(k,Y):m(I,te)),m(k,H))}else ie.alongA===0&&(ie.alongB===-1?m(I,j):ie.alongB===0?m(I,ie.pt):ie.alongB===1&&m(I,te)),ie.alongB===0&&(ie.alongA===-1?m(k,H):ie.alongA===0?m(k,ie.pt):ie.alongA===1&&m(k,Y));return!1}for(var _=[];!r.isEmpty();){var y=r.getHead();if(x&&x.vert(y.pt[0]),y.isStart){let I=function(){if(T){var k=A(y,T);if(k)return k}return s?A(y,s):!1};x&&x.segmentNew(y.seg,y.primary);var E=w(y),T=E.before?E.before.ev:null,s=E.after?E.after.ev:null;x&&x.tempStatus(y.seg,T?T.seg:!1,s?s.seg:!1);var L=I();if(L){if(i){var M;y.seg.myFill.below===null?M=!0:M=y.seg.myFill.above!==y.seg.myFill.below,M&&(L.seg.myFill.above=!L.seg.myFill.above)}else L.seg.otherFill=y.seg.myFill;x&&x.segmentUpdate(L.seg),y.other.remove(),y.remove()}if(r.getHead()!==y){x&&x.rewind(y.seg);continue}if(i){var M;y.seg.myFill.below===null?M=!0:M=y.seg.myFill.above!==y.seg.myFill.below,s?y.seg.myFill.below=s.seg.myFill.above:y.seg.myFill.below=b,M?y.seg.myFill.above=!y.seg.myFill.below:y.seg.myFill.above=y.seg.myFill.below}else if(y.seg.otherFill===null){var z;s?y.primary===s.primary?z=s.seg.otherFill.above:z=s.seg.myFill.above:z=y.primary?u:b,y.seg.otherFill={above:z,below:z}}x&&x.status(y.seg,T?T.seg:!1,s?s.seg:!1),y.other.status=E.insert(g.node({ev:y}))}else{var D=y.status;if(D===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(o.exists(D.prev)&&o.exists(D.next)&&A(D.prev.ev,D.next.ev),x&&x.statusRemove(D.ev.seg),D.remove(),!y.primary){var N=y.seg.myFill;y.seg.myFill=y.seg.otherFill,y.seg.otherFill=N}_.push(y.seg)}r.getHead().remove()}return x&&x.done(),_}return i?{addRegion:function(b){for(var u,o=b[b.length-1],d=0;d0&&!this.aborted;){var S=this.ifds_to_read.shift();S.offset&&this.scan_ifd(S.id,S.offset,C)}},g.prototype.read_uint16=function(C){var i=this.input;if(C+2>i.length)throw U("unexpected EOF","EBADDATA");return this.big_endian?i[C]*256+i[C+1]:i[C]+i[C+1]*256},g.prototype.read_uint32=function(C){var i=this.input;if(C+4>i.length)throw U("unexpected EOF","EBADDATA");return this.big_endian?i[C]*16777216+i[C+1]*65536+i[C+2]*256+i[C+3]:i[C]+i[C+1]*256+i[C+2]*65536+i[C+3]*16777216},g.prototype.is_subifd_link=function(C,i){return C===0&&i===34665||C===0&&i===34853||C===34665&&i===40965},g.prototype.exif_format_length=function(C){switch(C){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},g.prototype.exif_format_read=function(C,i){var S;switch(C){case 1:case 2:return S=this.input[i],S;case 6:return S=this.input[i],S|(S&128)*33554430;case 3:return S=this.read_uint16(i),S;case 8:return S=this.read_uint16(i),S|(S&32768)*131070;case 4:return S=this.read_uint32(i),S;case 9:return S=this.read_uint32(i),S|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},g.prototype.scan_ifd=function(C,i,S){var x=this.read_uint16(i);i+=2;for(var v=0;vthis.input.length)throw U("unexpected EOF","EBADDATA");for(var l=[],m=f,h=0;h0&&(this.ifds_to_read.push({id:p,offset:l[0]}),c=!0);var u={is_big_endian:this.big_endian,ifd:C,tag:p,format:r,count:t,entry_offset:i+this.start,data_length:n,data_offset:f+this.start,value:l,is_subifd_link:c};if(S(u)===!1){this.aborted=!0;return}i+=12}C===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(i)})},G.exports.ExifParser=g,G.exports.get_orientation=function(C){var i=0;try{return new g(C,0,C.length).each(function(S){if(S.ifd===0&&S.tag===274&&Array.isArray(S.value))return i=S.value[0],!1}),i}catch{return-1}}},44600:function(G,U,e){var g=e(9696).eW,C=e(9696).eI;function i(n,f){if(n.length<4+f)return null;var c=C(n,f);return n.length>4&15,l=n[4]&15,m=n[5]>>4&15,h=g(n,6),b=8,u=0;uh.width||m.width===h.width&&m.height>h.height?m:h}),c=n.reduce(function(m,h){return m.height>h.height||m.height===h.height&&m.width>h.width?m:h}),l;return f.width>c.height||f.width===c.height&&f.height>c.width?l=f:l=c,l}G.exports.readSizeFromMeta=function(n){var f={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(t(n,f),!!f.sizes.length){var c=a(f.sizes),l=1;f.transforms.forEach(function(h){var b={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},u={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(h.type==="imir"&&(h.value===0?l=u[l]:(l=u[l],l=b[l],l=b[l])),h.type==="irot")for(var o=0;o1&&(l.variants=c.variants),c.orientation&&(l.orientation=c.orientation),c.exif_location&&c.exif_location.offset+c.exif_location.length<=p.length){var m=i(p,c.exif_location.offset),h=p.slice(c.exif_location.offset+m+4,c.exif_location.offset+c.exif_location.length),b=x.get_orientation(h);b>0&&(l.orientation=b)}return l}}}}}}},38728:function(G,U,e){var g=e(9696).wR,C=e(9696).gS,i=e(9696).Bz,S=g("BM");G.exports=function(x){if(!(x.length<26)&&C(x,0,S))return{width:i(x,18),height:i(x,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},5588:function(G,U,e){var g=e(9696).wR,C=e(9696).gS,i=e(9696).Bz,S=g("GIF87a"),x=g("GIF89a");G.exports=function(v){if(!(v.length<10)&&!(!C(v,0,S)&&!C(v,0,x)))return{width:i(v,6),height:i(v,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},41924:function(G,U,e){var g=e(9696).Bz,C=0,i=1,S=16;G.exports=function(x){var v=g(x,0),p=g(x,2),r=g(x,4);if(!(v!==C||p!==i||!r)){for(var t=[],a={width:0,height:0},n=0;na.width||c>a.height)&&(a=l)}return{width:a.width,height:a.height,variants:t,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},87968:function(G,U,e){var g=e(9696).eW,C=e(9696).wR,i=e(9696).gS,S=e(11688),x=C("Exif\0\0");G.exports=function(v){if(!(v.length<2)&&!(v[0]!==255||v[1]!==216||v[2]!==255))for(var p=2;;){for(;;){if(v.length-p<2)return;if(v[p++]===255)break}for(var r=v[p++],t;r===255;)r=v[p++];if(208<=r&&r<=217||r===1)t=0;else if(192<=r&&r<=254){if(v.length-p<2)return;t=g(v,p)-2,p+=2}else return;if(r===217||r===218)return;var a;if(r===225&&t>=10&&i(v,p,x)&&(a=S.get_orientation(v.slice(p+6,p+t))),t>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(v.length-p0&&(n.orientation=a),n}p+=t}}},37276:function(G,U,e){var g=e(9696).wR,C=e(9696).gS,i=e(9696).eI,S=g(`‰PNG\r + +`),x=g("IHDR");G.exports=function(v){if(!(v.length<24)&&C(v,0,S)&&C(v,12,x))return{width:i(v,16),height:i(v,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},90328:function(G,U,e){var g=e(9696).wR,C=e(9696).gS,i=e(9696).eI,S=g("8BPS\0");G.exports=function(x){if(!(x.length<22)&&C(x,0,S))return{width:i(x,18),height:i(x,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},16024:function(G){function U(a){return a===32||a===9||a===13||a===10}function e(a){return typeof a=="number"&&isFinite(a)&&a>0}function g(a){var n=0,f=a.length;for(a[0]===239&&a[1]===187&&a[2]===191&&(n=3);n]*>/,i=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,S=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,x=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,v=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,p=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function r(a){var n=a.match(S),f=a.match(x),c=a.match(v);return{width:n&&(n[1]||n[2]),height:f&&(f[1]||f[2]),viewbox:c&&(c[1]||c[2])}}function t(a){return p.test(a)?a.match(p)[0]:"px"}G.exports=function(a){if(g(a)){for(var n="",f=0;f>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function a(n,f){return{width:(n[f+6]<<16|n[f+5]<<8|n[f+4])+1,height:(n[f+9]<n.length)){for(;f+8=10?c=c||r(n,f+8):h==="VP8L"&&b>=9?c=c||t(n,f+8):h==="VP8X"&&b>=10?c=c||a(n,f+8):h==="EXIF"&&(l=x.get_orientation(n.slice(f+8,f+8+b)),f=1/0),f+=8+b}if(c)return l>0&&(c.orientation=l),c}}}},87480:function(G,U,e){G.exports={avif:e(40528),bmp:e(38728),gif:e(5588),ico:e(41924),jpeg:e(87968),png:e(37276),psd:e(90328),svg:e(16024),tiff:e(98792),webp:e(20704)}},19480:function(G,U,e){var g=e(87480);function C(i){for(var S=Object.keys(g),x=0;x1)for(var h=1;h"u"?e.g:window,i=["moz","webkit"],S="AnimationFrame",x=C["request"+S],v=C["cancel"+S]||C["cancelRequest"+S],p=0;!x&&p1&&(L.scaleRatio=[L.scale[0]*L.viewport.width,L.scale[1]*L.viewport.height],m(L),L.after&&L.after(L))}function T(L){if(L){L.length!=null?typeof L[0]=="number"&&(L=[{positions:L}]):Array.isArray(L)||(L=[L]);var M=0,z=0;if(_.groups=A=L.map(function(H,Y){var j=A[Y];if(H)typeof H=="function"?H={after:H}:typeof H[0]=="number"&&(H={positions:H});else return j;return H=S(H,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),j||(A[Y]=j={id:Y,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},H=x({},w,H)),i(j,H,[{lineWidth:function(te){return+te*.5},capSize:function(te){return+te*.5},opacity:parseFloat,errors:function(te){return te=v(te),z+=te.length,te},positions:function(te,ie){return te=v(te,"float64"),ie.count=Math.floor(te.length/2),ie.bounds=g(te,2),ie.offset=M,M+=ie.count,te}},{color:function(te,ie){var ue=ie.count;if(te||(te="transparent"),!Array.isArray(te)||typeof te[0]=="number"){var J=te;te=Array(ue);for(var X=0;X 0. && baClipping < length(normalWidth * endBotJoin)) { + //handle miter clipping + bTopCoord -= normalWidth * endTopJoin; + bTopCoord += normalize(endTopJoin * normalWidth) * baClipping; + } + + if (nextReverse) { + //make join rectangular + vec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5; + float normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.); + bBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; + bTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; + } + else if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) { + //handle miter clipping + aBotCoord -= normalWidth * startBotJoin; + aBotCoord += normalize(startBotJoin * normalWidth) * abClipping; + } + + vec2 aTopPosition = (aTopCoord) * adjustedScale + translate; + vec2 aBotPosition = (aBotCoord) * adjustedScale + translate; + + vec2 bTopPosition = (bTopCoord) * adjustedScale + translate; + vec2 bBotPosition = (bBotCoord) * adjustedScale + translate; + + //position is normalized 0..1 coord on the screen + vec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd; + + startCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy; + endCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + enableStartMiter = step(dot(currTangent, prevTangent), .5); + enableEndMiter = step(dot(currTangent, nextTangent), .5); + + //bevel miter cutoffs + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } + + //round miter cutoffs + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } +} +`,o=` +precision highp float; + +uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; +uniform sampler2D dashTexture; + +varying vec4 fragColor; +varying vec2 tangent; +varying vec4 startCutoff, endCutoff; +varying vec2 startCoord, endCoord; +varying float enableStartMiter, enableEndMiter; + +float distToLine(vec2 p, vec2 a, vec2 b) { + vec2 diff = b - a; + vec2 perp = normalize(vec2(-diff.y, diff.x)); + return dot(p - a, perp); +} + +void main() { + float alpha = 1., distToStart, distToEnd; + float cutoff = thickness * .5; + + //bevel miter + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < -1.) { + discard; + return; + } + alpha *= min(max(distToStart + 1., 0.), 1.); + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < -1.) { + discard; + return; + } + alpha *= min(max(distToEnd + 1., 0.), 1.); + } + } + + // round miter + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < 0.) { + float radius = length(gl_FragCoord.xy - startCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < 0.) { + float radius = length(gl_FragCoord.xy - endCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + } + + float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; + float dash = texture2D(dashTexture, vec2(t, .5)).r; + + gl_FragColor = fragColor; + gl_FragColor.a *= alpha * opacity * dash; +} +`;G.exports=d;function d(w,A){if(!(this instanceof d))return new d(w,A);if(typeof w=="function"?(A||(A={}),A.regl=w):A=w,A.length&&(A.positions=A),w=A.regl,!w.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=w._gl,this.regl=w,this.passes=[],this.shaders=d.shaders.has(w)?d.shaders.get(w):d.shaders.set(w,d.createShaders(w)).get(w),this.update(A)}d.dashMult=2,d.maxPatternLength=256,d.precisionThreshold=3e6,d.maxPoints=1e4,d.maxLines=2048,d.shaders=new n,d.createShaders=function(w){var A=w.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),_={primitive:"triangle strip",instances:w.prop("count"),count:4,offset:0,uniforms:{miterMode:function(s,L){return L.join==="round"?2:1},miterLimit:w.prop("miterLimit"),scale:w.prop("scale"),scaleFract:w.prop("scaleFract"),translateFract:w.prop("translateFract"),translate:w.prop("translate"),thickness:w.prop("thickness"),dashTexture:w.prop("dashTexture"),opacity:w.prop("opacity"),pixelRatio:w.context("pixelRatio"),id:w.prop("id"),dashLength:w.prop("dashLength"),viewport:function(s,L){return[L.viewport.x,L.viewport.y,s.viewportWidth,s.viewportHeight]},depth:w.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:function(s,L){return!L.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:w.prop("viewport")},viewport:w.prop("viewport")},y=w(i({vert:l,frag:m,attributes:{lineEnd:{buffer:A,divisor:0,stride:8,offset:0},lineTop:{buffer:A,divisor:0,stride:8,offset:4},aCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:w.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},_)),E;try{E=w(i({cull:{enable:!0,face:"back"},vert:u,frag:o,attributes:{lineEnd:{buffer:A,divisor:0,stride:8,offset:0},lineTop:{buffer:A,divisor:0,stride:8,offset:4},aColor:{buffer:w.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:w.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},_))}catch{E=y}var T=w({primitive:"triangle",elements:function(s,L){return L.triangles},offset:0,vert:h,frag:b,uniforms:{scale:w.prop("scale"),color:w.prop("fill"),scaleFract:w.prop("scaleFract"),translateFract:w.prop("translateFract"),translate:w.prop("translate"),opacity:w.prop("opacity"),pixelRatio:w.context("pixelRatio"),id:w.prop("id"),viewport:function(s,L){return[L.viewport.x,L.viewport.y,s.viewportWidth,s.viewportHeight]}},attributes:{position:{buffer:w.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:8}},blend:_.blend,depth:{enable:!1},scissor:_.scissor,stencil:_.stencil,viewport:_.viewport});return{fill:T,rect:y,miter:E}},d.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},d.prototype.render=function(){for(var w,A=[],_=arguments.length;_--;)A[_]=arguments[_];A.length&&(w=this).update.apply(w,A),this.draw()},d.prototype.draw=function(){for(var w=this,A=[],_=arguments.length;_--;)A[_]=arguments[_];return(A.length?A:this.passes).forEach(function(y,E){var T;if(y&&Array.isArray(y))return(T=w).draw.apply(T,y);typeof y=="number"&&(y=w.passes[y]),y&&y.count>1&&y.opacity&&(w.regl._refresh(),y.fill&&y.triangles&&y.triangles.length>2&&w.shaders.fill(y),y.thickness&&(y.scale[0]*y.viewport.width>d.precisionThreshold||y.scale[1]*y.viewport.height>d.precisionThreshold||y.join==="rect"||!y.join&&(y.thickness<=2||y.count>=d.maxPoints)?w.shaders.rect(y):w.shaders.miter(y)))}),this},d.prototype.update=function(w){var A=this;if(w){w.length!=null?typeof w[0]=="number"&&(w=[{positions:w}]):Array.isArray(w)||(w=[w]);var _=this,y=_.regl,E=_.gl;if(w.forEach(function(z,D){var N=A.passes[D];if(z!==void 0){if(z===null){A.passes[D]=null;return}if(typeof z[0]=="number"&&(z={positions:z}),z=S(z,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),N||(A.passes[D]=N={id:D,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:y.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:y.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:y.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:y.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},z=i({},d.defaults,z)),z.thickness!=null&&(N.thickness=parseFloat(z.thickness)),z.opacity!=null&&(N.opacity=parseFloat(z.opacity)),z.miterLimit!=null&&(N.miterLimit=parseFloat(z.miterLimit)),z.overlay!=null&&(N.overlay=!!z.overlay,D=Z});Q=Q.slice(0,se),Q.push(Z)}for(var ne=function(Me){var Ne=j.slice($*2,Q[Me]*2).concat(Z?j.slice(Z*2):[]),je=(N.hole||[]).map(function(mt){return mt-Z+(Q[Me]-$)}),it=v(Ne,je);it=it.map(function(mt){return mt+$+(mt+$s.length)&&(L=s.length);for(var M=0,z=new Array(L);M 1.0 + delta) { + discard; + } + + alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius); + + float borderRadius = fragBorderRadius; + float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius); + vec4 color = mix(fragColor, fragBorderColor, ratio); + color.a *= alpha * opacity; + gl_FragColor = color; +} +`]),ie.vert=h([`precision highp float; +#define GLSLIFY 1 + +attribute float x, y, xFract, yFract; +attribute float size, borderSize; +attribute vec4 colorId, borderColorId; +attribute float isActive; + +// \`invariant\` effectively turns off optimizations for the position. +// We need this because -fast-math on M1 Macs is re-ordering +// floating point operations in a way that causes floating point +// precision limits to put points in the wrong locations. +invariant gl_Position; + +uniform bool constPointSize; +uniform float pixelRatio; +uniform vec2 paletteSize, scale, scaleFract, translate, translateFract; +uniform sampler2D paletteTexture; + +const float maxSize = 100.; + +varying vec4 fragColor, fragBorderColor; +varying float fragBorderRadius, fragWidth; + +float pointSizeScale = (constPointSize) ? 2. : pixelRatio; + +bool isDirect = (paletteSize.x < 1.); + +vec4 getColor(vec4 id) { + return isDirect ? id / 255. : texture2D(paletteTexture, + vec2( + (id.x + .5) / paletteSize.x, + (id.y + .5) / paletteSize.y + ) + ); +} + +void main() { + // ignore inactive points + if (isActive == 0.) return; + + vec2 position = vec2(x, y); + vec2 positionFract = vec2(xFract, yFract); + + vec4 color = getColor(colorId); + vec4 borderColor = getColor(borderColorId); + + float size = size * maxSize / 255.; + float borderSize = borderSize * maxSize / 255.; + + gl_PointSize = (size + borderSize) * pointSizeScale; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + gl_Position = vec4(pos * 2. - 1., 0., 1.); + + fragBorderRadius = 1. - 2. * borderSize / (size + borderSize); + fragColor = color; + fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; + fragWidth = 1. / gl_PointSize; +} +`]),d&&(ie.frag=ie.frag.replace("smoothstep","smoothStep"),te.frag=te.frag.replace("smoothstep","smoothStep")),this.drawCircle=s(ie)}y.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},y.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},y.prototype.draw=function(){for(var s=this,L=arguments.length,M=new Array(L),z=0;zUe)?Le.tree=l(me,{bounds:Ke}):Ue&&Ue.length&&(Le.tree=Ue),Le.tree){var $e={primitive:"points",usage:"static",data:Le.tree,type:"uint32"};Le.elements?Le.elements($e):Le.elements=I.elements($e)}var lt=w.float32(me);ke({data:lt,usage:"dynamic"});var ht=w.fract32(me,lt);return Ve({data:ht,usage:"dynamic"}),Ie({data:new Uint8Array(rt),type:"uint8",usage:"stream"}),me}},{marker:function(me,Le,He){var Ue=Le.activation;if(Ue.forEach(function(ht){return ht&&ht.destroy&&ht.destroy()}),Ue.length=0,!me||typeof me[0]=="number"){var ke=s.addMarker(me);Ue[ke]=!0}else{for(var Ve=[],Ie=0,rt=Math.min(me.length,Le.count);Ie=0)return D;var N;if(s instanceof Uint8Array||s instanceof Uint8ClampedArray)N=s;else{N=new Uint8Array(s.length);for(var I=0,k=s.length;Iz*4&&(this.tooManyColors=!0),this.updatePalette(M),D.length===1?D[0]:D},y.prototype.updatePalette=function(s){if(!this.tooManyColors){var L=this.maxColors,M=this.paletteTexture,z=Math.ceil(s.length*.25/L);if(z>1){s=s.slice();for(var D=s.length*.25%L;Dz)&&!(!b.lower&&M2?(o[0],o[2],m=o[1],h=o[3]):o.length?(m=o[0],h=o[1]):(o.x,m=o.y,o.x+o.width,h=o.y+o.height),d.length>2?(b=d[0],u=d[2],d[1],d[3]):d.length?(b=d[0],u=d[1]):(b=d.x,d.y,u=d.x+d.width,d.y+d.height),[b,m,u,h]}function n(f){if(typeof f=="number")return[f,f,f,f];if(f.length===2)return[f[0],f[1],f[0],f[1]];var c=v(f);return[c.x,c.y,c.x+c.width,c.y+c.height]}},28624:function(G){(function(U,e){G.exports=e()})(this,function(){function U(pt,Xt){this.id=ce++,this.type=pt,this.data=Xt}function e(pt){if(pt.length===0)return[];var Xt=pt.charAt(0),Kt=pt.charAt(pt.length-1);if(1"u"?1:window.devicePixelRatio,It=!1,Pt={},kt=function(Jt){},Vt=function(){};if(typeof Xt=="string"?Kt=document.querySelector(Xt):typeof Xt=="object"&&(typeof Xt.nodeName=="string"&&typeof Xt.appendChild=="function"&&typeof Xt.getBoundingClientRect=="function"?Kt=Xt:typeof Xt.drawArrays=="function"||typeof Xt.drawElements=="function"?(gt=Xt,$t=gt.canvas):("gl"in Xt?gt=Xt.gl:"canvas"in Xt?$t=p(Xt.canvas):"container"in Xt&&(or=p(Xt.container)),"attributes"in Xt&&(pt=Xt.attributes),"extensions"in Xt&&(st=v(Xt.extensions)),"optionalExtensions"in Xt&&(At=v(Xt.optionalExtensions)),"onDone"in Xt&&(kt=Xt.onDone),"profile"in Xt&&(It=!!Xt.profile),"pixelRatio"in Xt&&(Ct=+Xt.pixelRatio),"cachedCode"in Xt&&(Pt=Xt.cachedCode))),Kt&&(Kt.nodeName.toLowerCase()==="canvas"?$t=Kt:or=Kt),!gt){if(!$t){if(Kt=S(or||document.body,kt,Ct),!Kt)return null;$t=Kt.canvas,Vt=Kt.onDestroy}pt.premultipliedAlpha===void 0&&(pt.premultipliedAlpha=!0),gt=x($t,pt)}return gt?{gl:gt,canvas:$t,container:or,extensions:st,optionalExtensions:At,pixelRatio:Ct,profile:It,cachedCode:Pt,onDone:kt,onDestroy:Vt}:(Vt(),kt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function t(pt,Xt){function Kt(st){st=st.toLowerCase();var At;try{At=or[st]=pt.getExtension(st)}catch{}return!!At}for(var or={},$t=0;$t>>=Xt,Kt=(255>>=Kt,Xt|=Kt,Kt=(15>>=Kt,Xt|=Kt,Kt=(3>>Kt>>1}function f(){function pt(or){e:{for(var $t=16;268435456>=$t;$t*=16)if(or<=$t){or=$t;break e}or=0}return $t=Kt[n(or)>>2],0<$t.length?$t.pop():new ArrayBuffer(or)}function Xt(or){Kt[n(or.byteLength)>>2].push(or)}var Kt=a(8,function(){return[]});return{alloc:pt,free:Xt,allocType:function(or,$t){var gt=null;switch(or){case 5120:gt=new Int8Array(pt($t),0,$t);break;case 5121:gt=new Uint8Array(pt($t),0,$t);break;case 5122:gt=new Int16Array(pt(2*$t),0,$t);break;case 5123:gt=new Uint16Array(pt(2*$t),0,$t);break;case 5124:gt=new Int32Array(pt(4*$t),0,$t);break;case 5125:gt=new Uint32Array(pt(4*$t),0,$t);break;case 5126:gt=new Float32Array(pt(4*$t),0,$t);break;default:return null}return gt.length!==$t?gt.subarray(0,$t):gt},freeType:function(or){Xt(or.buffer)}}}function c(pt){return!!pt&&typeof pt=="object"&&Array.isArray(pt.shape)&&Array.isArray(pt.stride)&&typeof pt.offset=="number"&&pt.shape.length===pt.stride.length&&(Array.isArray(pt.data)||Ae(pt.data))}function l(pt,Xt,Kt,or,$t,gt){for(var st=0;stVt&&(Vt=kt.buffer.byteLength,Ge===5123?Vt>>=1:Ge===5125&&(Vt>>=2)),kt.vertCount=Vt,Vt=ur,0>ur&&(Vt=4,ur=kt.buffer.dimension,ur===1&&(Vt=0),ur===2&&(Vt=1),ur===3&&(Vt=4)),kt.primType=Vt}function st(kt){or.elementsCount--,delete At[kt.id],kt.buffer.destroy(),kt.buffer=null}var At={},Ct=0,It={uint8:5121,uint16:5123};Xt.oes_element_index_uint&&(It.uint32=5125),$t.prototype.bind=function(){this.buffer.bind()};var Pt=[];return{create:function(kt,Vt){function Jt(vr){if(vr)if(typeof vr=="number")ur(vr),hr.primType=4,hr.vertCount=vr|0,hr.type=5121;else{var Ye=null,Ge=35044,Nt=-1,Ot=-1,Qt=0,tr=0;Array.isArray(vr)||Ae(vr)||c(vr)?Ye=vr:("data"in vr&&(Ye=vr.data),"usage"in vr&&(Ge=ke[vr.usage]),"primitive"in vr&&(Nt=Ke[vr.primitive]),"count"in vr&&(Ot=vr.count|0),"type"in vr&&(tr=It[vr.type]),"length"in vr?Qt=vr.length|0:(Qt=Ot,tr===5123||tr===5122?Qt*=2:(tr===5125||tr===5124)&&(Qt*=4))),gt(hr,Ye,Ge,Nt,Ot,Qt,tr)}else ur(),hr.primType=4,hr.vertCount=0,hr.type=5121;return Jt}var ur=Kt.create(null,34963,!0),hr=new $t(ur._buffer);return or.elementsCount++,Jt(kt),Jt._reglType="elements",Jt._elements=hr,Jt.subdata=function(vr,Ye){return ur.subdata(vr,Ye),Jt},Jt.destroy=function(){st(hr)},Jt},createStream:function(kt){var Vt=Pt.pop();return Vt||(Vt=new $t(Kt.create(null,34963,!0,!1)._buffer)),gt(Vt,kt,35040,-1,-1,0,0),Vt},destroyStream:function(kt){Pt.push(kt)},getElements:function(kt){return typeof kt=="function"&&kt._elements instanceof $t?kt._elements:null},clear:function(){me(At).forEach(st)}}}function w(pt){for(var Xt=Re.allocType(5123,pt.length),Kt=0;Kt>>31<<15,$t=(gt<<1>>>24)-127,gt=gt>>13&1023;Xt[Kt]=-24>$t?or:-14>$t?or+(gt+1024>>-14-$t):15<$t?or+31744:or+($t+15<<10)+gt}return Xt}function A(pt){return Array.isArray(pt)||Ae(pt)}function _(pt){return"[object "+pt+"]"}function y(pt){return Array.isArray(pt)&&(pt.length===0||typeof pt[0]=="number")}function E(pt){return!!(Array.isArray(pt)&&pt.length!==0&&A(pt[0]))}function T(pt){return Object.prototype.toString.call(pt)}function s(pt){if(!pt)return!1;var Xt=T(pt);return 0<=Fe.indexOf(Xt)?!0:y(pt)||E(pt)||c(pt)}function L(pt,Xt){pt.type===36193?(pt.data=w(Xt),Re.freeType(Xt)):pt.data=Xt}function M(pt,Xt,Kt,or,$t,gt){if(pt=typeof ye[pt]<"u"?ye[pt]:xt[pt]*xe[Xt],gt&&(pt*=6),$t){for(or=0;1<=Kt;)or+=pt*Kt*Kt,Kt/=2;return or}return pt*Kt*or}function z(pt,Xt,Kt,or,$t,gt,st){function At(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function Ct(wr,nn){wr.internalformat=nn.internalformat,wr.format=nn.format,wr.type=nn.type,wr.compressed=nn.compressed,wr.premultiplyAlpha=nn.premultiplyAlpha,wr.flipY=nn.flipY,wr.unpackAlignment=nn.unpackAlignment,wr.colorSpace=nn.colorSpace,wr.width=nn.width,wr.height=nn.height,wr.channels=nn.channels}function It(wr,nn){if(typeof nn=="object"&&nn){"premultiplyAlpha"in nn&&(wr.premultiplyAlpha=nn.premultiplyAlpha),"flipY"in nn&&(wr.flipY=nn.flipY),"alignment"in nn&&(wr.unpackAlignment=nn.alignment),"colorSpace"in nn&&(wr.colorSpace=cn[nn.colorSpace]),"type"in nn&&(wr.type=rn[nn.type]);var $r=wr.width,dn=wr.height,Vn=wr.channels,Tn=!1;"shape"in nn?($r=nn.shape[0],dn=nn.shape[1],nn.shape.length===3&&(Vn=nn.shape[2],Tn=!0)):("radius"in nn&&($r=dn=nn.radius),"width"in nn&&($r=nn.width),"height"in nn&&(dn=nn.height),"channels"in nn&&(Vn=nn.channels,Tn=!0)),wr.width=$r|0,wr.height=dn|0,wr.channels=Vn|0,$r=!1,"format"in nn&&($r=nn.format,dn=wr.internalformat=Cn[$r],wr.format=_n[dn],$r in rn&&!("type"in nn)&&(wr.type=rn[$r]),$r in En&&(wr.compressed=!0),$r=!0),!Tn&&$r?wr.channels=xt[wr.format]:Tn&&!$r&&wr.channels!==dt[wr.format]&&(wr.format=wr.internalformat=dt[wr.channels])}}function Pt(wr){pt.pixelStorei(37440,wr.flipY),pt.pixelStorei(37441,wr.premultiplyAlpha),pt.pixelStorei(37443,wr.colorSpace),pt.pixelStorei(3317,wr.unpackAlignment)}function kt(){At.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Vt(wr,nn){var $r=null;if(s(nn)?$r=nn:nn&&(It(wr,nn),"x"in nn&&(wr.xOffset=nn.x|0),"y"in nn&&(wr.yOffset=nn.y|0),s(nn.data)&&($r=nn.data)),nn.copy){var dn=$t.viewportWidth,Vn=$t.viewportHeight;wr.width=wr.width||dn-wr.xOffset,wr.height=wr.height||Vn-wr.yOffset,wr.needsCopy=!0}else if(!$r)wr.width=wr.width||1,wr.height=wr.height||1,wr.channels=wr.channels||4;else if(Ae($r))wr.channels=wr.channels||4,wr.data=$r,"type"in nn||wr.type!==5121||(wr.type=He[Object.prototype.toString.call($r)]|0);else if(y($r)){switch(wr.channels=wr.channels||4,dn=$r,Vn=dn.length,wr.type){case 5121:case 5123:case 5125:case 5126:Vn=Re.allocType(wr.type,Vn),Vn.set(dn),wr.data=Vn;break;case 36193:wr.data=w(dn)}wr.alignment=1,wr.needsFree=!0}else if(c($r)){dn=$r.data,Array.isArray(dn)||wr.type!==5121||(wr.type=He[Object.prototype.toString.call(dn)]|0);var Vn=$r.shape,Tn=$r.stride,An,Bn,Jn,gi;Vn.length===3?(Jn=Vn[2],gi=Tn[2]):gi=Jn=1,An=Vn[0],Bn=Vn[1],Vn=Tn[0],Tn=Tn[1],wr.alignment=1,wr.width=An,wr.height=Bn,wr.channels=Jn,wr.format=wr.internalformat=dt[Jn],wr.needsFree=!0,An=gi,$r=$r.offset,Jn=wr.width,gi=wr.height,Bn=wr.channels;for(var Di=Re.allocType(wr.type===36193?5126:wr.type,Jn*gi*Bn),Sr=0,kr=0;kr>=Vn,$r.height>>=Vn,Vt($r,dn[Vn]),wr.mipmask|=1<nn;++nn)wr.images[nn]=null;return wr}function Qt(wr){for(var nn=wr.images,$r=0;$rwr){for(var nn=0;nn=--this.refCount&&xr(this)}}),st.profile&&(gt.getTotalTextureSize=function(){var wr=0;return Object.keys(di).forEach(function(nn){wr+=di[nn].stats.size}),wr}),{create2D:function(wr,nn){function $r(Vn,Tn){var An=dn.texInfo;tr.call(An);var Bn=Ot();return typeof Vn=="number"?typeof Tn=="number"?Ye(Bn,Vn|0,Tn|0):Ye(Bn,Vn|0,Vn|0):Vn?(fr(An,Vn),Ge(Bn,Vn)):Ye(Bn,1,1),An.genMipmaps&&(Bn.mipmask=(Bn.width<<1)-1),dn.mipmask=Bn.mipmask,Ct(dn,Bn),dn.internalformat=Bn.internalformat,$r.width=Bn.width,$r.height=Bn.height,dr(dn),Nt(Bn,3553),rr(An,3553),mr(),Qt(Bn),st.profile&&(dn.stats.size=M(dn.internalformat,dn.type,Bn.width,Bn.height,An.genMipmaps,!1)),$r.format=Wr[dn.internalformat],$r.type=Ur[dn.type],$r.mag=an[An.magFilter],$r.min=pn[An.minFilter],$r.wrapS=gn[An.wrapS],$r.wrapT=gn[An.wrapT],$r}var dn=new Ht(3553);return di[dn.id]=dn,gt.textureCount++,$r(wr,nn),$r.subimage=function(Vn,Tn,An,Bn){Tn|=0,An|=0,Bn|=0;var Jn=ur();return Ct(Jn,dn),Jn.width=0,Jn.height=0,Vt(Jn,Vn),Jn.width=Jn.width||(dn.width>>Bn)-Tn,Jn.height=Jn.height||(dn.height>>Bn)-An,dr(dn),Jt(Jn,3553,Tn,An,Bn),mr(),hr(Jn),$r},$r.resize=function(Vn,Tn){var An=Vn|0,Bn=Tn|0||An;if(An===dn.width&&Bn===dn.height)return $r;$r.width=dn.width=An,$r.height=dn.height=Bn,dr(dn);for(var Jn=0;dn.mipmask>>Jn;++Jn){var gi=An>>Jn,Di=Bn>>Jn;if(!gi||!Di)break;pt.texImage2D(3553,Jn,dn.format,gi,Di,0,dn.format,dn.type,null)}return mr(),st.profile&&(dn.stats.size=M(dn.internalformat,dn.type,An,Bn,!1,!1)),$r},$r._reglType="texture2d",$r._texture=dn,st.profile&&($r.stats=dn.stats),$r.destroy=function(){dn.decRef()},$r},createCube:function(wr,nn,$r,dn,Vn,Tn){function An(gi,Di,Sr,kr,Ar,Or){var xn,In=Bn.texInfo;for(tr.call(In),xn=0;6>xn;++xn)Jn[xn]=Ot();if(typeof gi=="number"||!gi)for(gi=gi|0||1,xn=0;6>xn;++xn)Ye(Jn[xn],gi,gi);else if(typeof gi=="object")if(Di)Ge(Jn[0],gi),Ge(Jn[1],Di),Ge(Jn[2],Sr),Ge(Jn[3],kr),Ge(Jn[4],Ar),Ge(Jn[5],Or);else if(fr(In,gi),It(Bn,gi),"faces"in gi)for(gi=gi.faces,xn=0;6>xn;++xn)Ct(Jn[xn],Bn),Ge(Jn[xn],gi[xn]);else for(xn=0;6>xn;++xn)Ge(Jn[xn],gi);for(Ct(Bn,Jn[0]),Bn.mipmask=In.genMipmaps?(Jn[0].width<<1)-1:Jn[0].mipmask,Bn.internalformat=Jn[0].internalformat,An.width=Jn[0].width,An.height=Jn[0].height,dr(Bn),xn=0;6>xn;++xn)Nt(Jn[xn],34069+xn);for(rr(In,34067),mr(),st.profile&&(Bn.stats.size=M(Bn.internalformat,Bn.type,An.width,An.height,In.genMipmaps,!0)),An.format=Wr[Bn.internalformat],An.type=Ur[Bn.type],An.mag=an[In.magFilter],An.min=pn[In.minFilter],An.wrapS=gn[In.wrapS],An.wrapT=gn[In.wrapT],xn=0;6>xn;++xn)Qt(Jn[xn]);return An}var Bn=new Ht(34067);di[Bn.id]=Bn,gt.cubeCount++;var Jn=Array(6);return An(wr,nn,$r,dn,Vn,Tn),An.subimage=function(gi,Di,Sr,kr,Ar){Sr|=0,kr|=0,Ar|=0;var Or=ur();return Ct(Or,Bn),Or.width=0,Or.height=0,Vt(Or,Di),Or.width=Or.width||(Bn.width>>Ar)-Sr,Or.height=Or.height||(Bn.height>>Ar)-kr,dr(Bn),Jt(Or,34069+gi,Sr,kr,Ar),mr(),hr(Or),An},An.resize=function(gi){if(gi|=0,gi!==Bn.width){An.width=Bn.width=gi,An.height=Bn.height=gi,dr(Bn);for(var Di=0;6>Di;++Di)for(var Sr=0;Bn.mipmask>>Sr;++Sr)pt.texImage2D(34069+Di,Sr,Bn.format,gi>>Sr,gi>>Sr,0,Bn.format,Bn.type,null);return mr(),st.profile&&(Bn.stats.size=M(Bn.internalformat,Bn.type,An.width,An.height,!1,!0)),An}},An._reglType="textureCube",An._texture=Bn,st.profile&&(An.stats=Bn.stats),An.destroy=function(){Bn.decRef()},An},clear:function(){for(var wr=0;wrdn;++dn)if($r.mipmask&1<>dn,$r.height>>dn,0,$r.internalformat,$r.type,null);else for(var Vn=0;6>Vn;++Vn)pt.texImage2D(34069+Vn,dn,$r.internalformat,$r.width>>dn,$r.height>>dn,0,$r.internalformat,$r.type,null);rr($r.texInfo,$r.target)})},refresh:function(){for(var wr=0;wrpr;++pr){for(rn=0;rnxr;++xr)mr[xr].resize(pr);return dr.width=dr.height=pr,dr},_reglType:"framebufferCube",destroy:function(){mr.forEach(function(xr){xr.destroy()})}})},clear:function(){me(rr).forEach(vr)},restore:function(){Nt.cur=null,Nt.next=null,Nt.dirty=!0,me(rr).forEach(function(Ht){Ht.framebuffer=pt.createFramebuffer(),Ye(Ht)})}})}function N(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function I(pt,Xt,Kt,or,$t,gt,st){function At(Ye){if(Ye!==vr.currentVAO){var Ge=Xt.oes_vertex_array_object;Ye?Ge.bindVertexArrayOES(Ye.vao):Ge.bindVertexArrayOES(null),vr.currentVAO=Ye}}function Ct(Ye){if(Ye!==vr.currentVAO){if(Ye)Ye.bindAttrs();else{for(var Ge=Xt.angle_instanced_arrays,Nt=0;Nt=dr.byteLength?mr.subdata(dr):(mr.destroy(),Nt.buffers[fr]=null)),Nt.buffers[fr]||(mr=Nt.buffers[fr]=$t.create(rr,34962,!1,!0)),Ht.buffer=$t.getBuffer(mr),Ht.size=Ht.buffer.dimension|0,Ht.normalized=!1,Ht.type=Ht.buffer.dtype,Ht.offset=0,Ht.stride=0,Ht.divisor=0,Ht.state=1,Ot[fr]=1}else $t.getBuffer(rr)?(Ht.buffer=$t.getBuffer(rr),Ht.size=Ht.buffer.dimension|0,Ht.normalized=!1,Ht.type=Ht.buffer.dtype,Ht.offset=0,Ht.stride=0,Ht.divisor=0,Ht.state=1):$t.getBuffer(rr.buffer)?(Ht.buffer=$t.getBuffer(rr.buffer),Ht.size=(+rr.size||Ht.buffer.dimension)|0,Ht.normalized=!!rr.normalized||!1,Ht.type="type"in rr?Ue[rr.type]:Ht.buffer.dtype,Ht.offset=(rr.offset||0)|0,Ht.stride=(rr.stride||0)|0,Ht.divisor=(rr.divisor||0)|0,Ht.state=1):"x"in rr&&(Ht.x=+rr.x||0,Ht.y=+rr.y||0,Ht.z=+rr.z||0,Ht.w=+rr.w||0,Ht.state=2)}for(mr=0;mrur&&(ur=hr.stats.uniformsCount)}),ur},Kt.getMaxAttributesCount=function(){var ur=0;return Vt.forEach(function(hr){hr.stats.attributesCount>ur&&(ur=hr.stats.attributesCount)}),ur}),{clear:function(){var ur=pt.deleteShader.bind(pt);me(It).forEach(ur),It={},me(Pt).forEach(ur),Pt={},Vt.forEach(function(hr){pt.deleteProgram(hr.program)}),Vt.length=0,kt={},Kt.shaderCount=0},program:function(ur,hr,vr,Ye){var Ge=kt[hr];Ge||(Ge=kt[hr]={});var Nt=Ge[ur];if(Nt&&(Nt.refCount++,!Ye))return Nt;var Ot=new At(hr,ur);return Kt.shaderCount++,Ct(Ot,vr,Ye),Nt||(Ge[ur]=Ot),Vt.push(Ot),ne(Ot,{destroy:function(){if(Ot.refCount--,0>=Ot.refCount){pt.deleteProgram(Ot.program);var Qt=Vt.indexOf(Ot);Vt.splice(Qt,1),Kt.shaderCount--}0>=Ge[Ot.vertId].refCount&&(pt.deleteShader(Pt[Ot.vertId]),delete Pt[Ot.vertId],delete kt[Ot.fragId][Ot.vertId]),Object.keys(kt[Ot.fragId]).length||(pt.deleteShader(It[Ot.fragId]),delete It[Ot.fragId],delete kt[Ot.fragId])}})},restore:function(){It={},Pt={};for(var ur=0;ur>2),or=0;or>5]|=(pt.charCodeAt(or/8)&255)<<24-or%32;var Kt=8*pt.length;pt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var or=Array(64),$t,gt,st,At,Ct,It,Pt,kt,Vt,Jt,ur;for(Xt[Kt>>5]|=128<<24-Kt%32,Xt[(Kt+64>>9<<4)+15]=Kt,kt=0;ktVt;Vt++){if(16>Vt)or[Vt]=Xt[Vt+kt];else{Jt=Vt,ur=or[Vt-2],ur=j(ur,17)^j(ur,19)^ur>>>10,ur=te(ur,or[Vt-7]);var hr;hr=or[Vt-15],hr=j(hr,7)^j(hr,18)^hr>>>3,or[Jt]=te(te(ur,hr),or[Vt-16])}Jt=At,Jt=j(Jt,6)^j(Jt,11)^j(Jt,25),Jt=te(te(te(te(Pt,Jt),At&Ct^~At&It),it[Vt]),or[Vt]),Pt=Kt,Pt=j(Pt,2)^j(Pt,13)^j(Pt,22),ur=te(Pt,Kt&$t^Kt>^$t>),Pt=It,It=Ct,Ct=At,At=te(st,Jt),st=gt,gt=$t,$t=Kt,Kt=te(Jt,ur)}pt[0]=te(Kt,pt[0]),pt[1]=te($t,pt[1]),pt[2]=te(gt,pt[2]),pt[3]=te(st,pt[3]),pt[4]=te(At,pt[4]),pt[5]=te(Ct,pt[5]),pt[6]=te(It,pt[6]),pt[7]=te(Pt,pt[7])}for(Xt="",or=0;or<32*pt.length;or+=8)Xt+=String.fromCharCode(pt[or>>5]>>>24-or%32&255);return Xt}function H(pt){for(var Xt="",Kt,or=0;or>>4&15)+"0123456789abcdef".charAt(Kt&15);return Xt}function Y(pt){for(var Xt="",Kt=-1,or,$t;++Kt=or&&56320<=$t&&57343>=$t&&(or=65536+((or&1023)<<10)+($t&1023),Kt++),127>=or?Xt+=String.fromCharCode(or):2047>=or?Xt+=String.fromCharCode(192|or>>>6&31,128|or&63):65535>=or?Xt+=String.fromCharCode(224|or>>>12&15,128|or>>>6&63,128|or&63):2097151>=or&&(Xt+=String.fromCharCode(240|or>>>18&7,128|or>>>12&63,128|or>>>6&63,128|or&63));return Xt}function j(pt,Xt){return pt>>>Xt|pt<<32-Xt}function te(pt,Xt){var Kt=(pt&65535)+(Xt&65535);return(pt>>16)+(Xt>>16)+(Kt>>16)<<16|Kt&65535}function ie(pt){return Array.prototype.slice.call(pt)}function ue(pt){return ie(pt).join("")}function J(pt){function Xt(){var Pt=[],kt=[];return ne(function(){Pt.push.apply(Pt,ie(arguments))},{def:function(){var Vt="v"+$t++;return kt.push(Vt),0"+pi+"?"+Hr+".constant["+pi+"]:0;"}).join(""),"}}else{","if(",wn,"(",Hr,".buffer)){",On,"=",Ln,".createStream(",34962,",",Hr,".buffer);","}else{",On,"=",Ln,".getBuffer(",Hr,".buffer);","}",mi,'="type" in ',Hr,"?",Qr.glTypes,"[",Hr,".type]:",On,".dtype;",Pn.normalized,"=!!",Hr,".normalized;"),Zr("size"),Zr("offset"),Zr("stride"),Zr("divisor"),Er("}}"),Er.exit("if(",Pn.isStream,"){",Ln,".destroyStream(",On,");","}"),Pn})}),xn}function pr(Sr){var kr=Sr.static,Ar=Sr.dynamic,Or={};return Object.keys(kr).forEach(function(xn){var In=kr[xn];Or[xn]=oe(function(hn,sn){return typeof In=="number"||typeof In=="boolean"?""+In:hn.link(In)})}),Object.keys(Ar).forEach(function(xn){var In=Ar[xn];Or[xn]=$(In,function(hn,sn){return hn.invoke(sn,In)})}),Or}function Gr(Sr,kr,Ar,Or,xn){function In(Un){var On=sn[Un];On&&(Zr[Un]=On)}var hn=fr(Sr,kr),wn=Qt(Sr),sn=tr(Sr,wn),Er=Ht(Sr),Zr=dr(Sr),Hr=rr(Sr,xn,hn);In("viewport"),In(vr("scissor.box"));var Qr=0"u"?"Date.now()":"performance.now()"}function hn(Un){Ln=kr.def(),Un(Ln,"=",In(),";"),typeof xn=="string"?Un(Hr,".count+=",xn,";"):Un(Hr,".count++;"),Jt&&(Or?(Pn=kr.def(),Un(Pn,"=",wn,".getNumPendingQueries();")):Un(wn,".beginQuery(",Hr,");"))}function sn(Un){Un(Hr,".cpuTime+=",In(),"-",Ln,";"),Jt&&(Or?Un(wn,".pushScopeStats(",Pn,",",wn,".getNumPendingQueries(),",Hr,");"):Un(wn,".endQuery();"))}function Er(Un){var On=kr.def(Qr,".profile");kr(Qr,".profile=",Un,";"),kr.exit(Qr,".profile=",On,";")}var Zr=Sr.shared,Hr=Sr.stats,Qr=Zr.current,wn=Zr.timer;Ar=Ar.profile;var Ln,Pn;if(Ar){if(Q(Ar)){Ar.enable?(hn(kr),sn(kr.exit),Er("true")):Er("false");return}Ar=Ar.append(Sr,kr),Er(Ar)}else Ar=kr.def(Qr,".profile");Zr=Sr.block(),hn(Zr),kr("if(",Ar,"){",Zr,"}"),Sr=Sr.block(),sn(Sr),kr.exit("if(",Ar,"){",Sr,"}")}function Tr(Sr,kr,Ar,Or,xn){function In(Er){switch(Er){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function hn(Er,Zr,Hr){function Qr(){kr("if(!",Un,".buffer){",Ln,".enableVertexAttribArray(",Pn,");}");var pi=Hr.type,Ci;Ci=Hr.size?kr.def(Hr.size,"||",Zr):Zr,kr("if(",Un,".type!==",pi,"||",Un,".size!==",Ci,"||",ai.map(function(pa){return Un+"."+pa+"!=="+Hr[pa]}).join("||"),"){",Ln,".bindBuffer(",34962,",",On,".buffer);",Ln,".vertexAttribPointer(",[Pn,Ci,pi,Hr.normalized,Hr.stride,Hr.offset],");",Un,".type=",pi,";",Un,".size=",Ci,";",ai.map(function(pa){return Un+"."+pa+"="+Hr[pa]+";"}).join(""),"}"),wr&&(pi=Hr.divisor,kr("if(",Un,".divisor!==",pi,"){",Sr.instancing,".vertexAttribDivisorANGLE(",[Pn,pi],");",Un,".divisor=",pi,";}"))}function wn(){kr("if(",Un,".buffer){",Ln,".disableVertexAttribArray(",Pn,");",Un,".buffer=null;","}if(",mt.map(function(pi,Ci){return Un+"."+pi+"!=="+mi[Ci]}).join("||"),"){",Ln,".vertexAttrib4f(",Pn,",",mi,");",mt.map(function(pi,Ci){return Un+"."+pi+"="+mi[Ci]+";"}).join(""),"}")}var Ln=sn.gl,Pn=kr.def(Er,".location"),Un=kr.def(sn.attributes,"[",Pn,"]");Er=Hr.state;var On=Hr.buffer,mi=[Hr.x,Hr.y,Hr.z,Hr.w],ai=["buffer","normalized","offset","stride"];Er===1?Qr():Er===2?wn():(kr("if(",Er,"===",1,"){"),Qr(),kr("}else{"),wn(),kr("}"))}var sn=Sr.shared;Or.forEach(function(Er){var Zr=Er.name,Hr=Ar.attributes[Zr],Qr;if(Hr){if(!xn(Hr))return;Qr=Hr.append(Sr,kr)}else{if(!xn(Bt))return;var wn=Sr.scopeAttrib(Zr);Qr={},Object.keys(new li).forEach(function(Ln){Qr[Ln]=kr.def(wn,".",Ln)})}hn(Sr.link(Er),In(Er.info.type),Qr)})}function Cr(Sr,kr,Ar,Or,xn,In){for(var hn=Sr.shared,sn=hn.gl,Er,Zr=0;Zr>1)",Un],");")}function Ci(){Ar(On,".drawArraysInstancedANGLE(",[wn,Ln,Pn,Un],");")}Qr&&Qr!=="null"?ai?pi():(Ar("if(",Qr,"){"),pi(),Ar("}else{"),Ci(),Ar("}")):Ci()}function hn(){function pi(){Ar(Er+".drawElements("+[wn,Pn,mi,Ln+"<<(("+mi+"-5121)>>1)"]+");")}function Ci(){Ar(Er+".drawArrays("+[wn,Ln,Pn]+");")}Qr&&Qr!=="null"?ai?pi():(Ar("if(",Qr,"){"),pi(),Ar("}else{"),Ci(),Ar("}")):Ci()}var sn=Sr.shared,Er=sn.gl,Zr=sn.draw,Hr=Or.draw,Qr=function(){var pi=Hr.elements,Ci=kr;return pi?((pi.contextDep&&Or.contextDynamic||pi.propDep)&&(Ci=Ar),pi=pi.append(Sr,Ci),Hr.elementsActive&&Ci("if("+pi+")"+Er+".bindBuffer(34963,"+pi+".buffer.buffer);")):(pi=Ci.def(),Ci(pi,"=",Zr,".","elements",";","if(",pi,"){",Er,".bindBuffer(",34963,",",pi,".buffer.buffer);}","else if(",sn.vao,".currentVAO){",pi,"=",Sr.shared.elements+".getElements("+sn.vao,".currentVAO.elements);",$r?"":"if("+pi+")"+Er+".bindBuffer(34963,"+pi+".buffer.buffer);","}")),pi}(),wn=xn("primitive"),Ln=xn("offset"),Pn=function(){var pi=Hr.count,Ci=kr;return pi?((pi.contextDep&&Or.contextDynamic||pi.propDep)&&(Ci=Ar),pi=pi.append(Sr,Ci)):pi=Ci.def(Zr,".","count"),pi}();if(typeof Pn=="number"){if(Pn===0)return}else Ar("if(",Pn,"){"),Ar.exit("}");var Un,On;wr&&(Un=xn("instances"),On=Sr.instancing);var mi=Qr+".type",ai=Hr.elements&&Q(Hr.elements)&&!Hr.vaoActive;wr&&(typeof Un!="number"||0<=Un)?typeof Un=="string"?(Ar("if(",Un,">0){"),In(),Ar("}else if(",Un,"<0){"),hn(),Ar("}")):In():hn()}function Ur(Sr,kr,Ar,Or,xn){return kr=Nt(),xn=kr.proc("body",xn),wr&&(kr.instancing=xn.def(kr.shared.extensions,".angle_instanced_arrays")),Sr(kr,xn,Ar,Or),kr.compile().body}function an(Sr,kr,Ar,Or){Cn(Sr,kr),Ar.useVAO?Ar.drawVAO?kr(Sr.shared.vao,".setVAO(",Ar.drawVAO.append(Sr,kr),");"):kr(Sr.shared.vao,".setVAO(",Sr.shared.vao,".targetVAO);"):(kr(Sr.shared.vao,".setVAO(null);"),Tr(Sr,kr,Ar,Or.attributes,function(){return!0})),Cr(Sr,kr,Ar,Or.uniforms,function(){return!0},!1),Wr(Sr,kr,kr,Ar)}function pn(Sr,kr){var Ar=Sr.proc("draw",1);Cn(Sr,Ar),Pr(Sr,Ar,kr.context),Dr(Sr,Ar,kr.framebuffer),cn(Sr,Ar,kr),rn(Sr,Ar,kr.state),En(Sr,Ar,kr,!1,!0);var Or=kr.shader.progVar.append(Sr,Ar);if(Ar(Sr.shared.gl,".useProgram(",Or,".program);"),kr.shader.program)an(Sr,Ar,kr,kr.shader.program);else{Ar(Sr.shared.vao,".setVAO(null);");var xn=Sr.global.def("{}"),In=Ar.def(Or,".id"),hn=Ar.def(xn,"[",In,"]");Ar(Sr.cond(hn).then(hn,".call(this,a0);").else(hn,"=",xn,"[",In,"]=",Sr.link(function(sn){return Ur(an,Sr,kr,sn,1)}),"(",Or,");",hn,".call(this,a0);"))}0=--this.refCount&&st(this)},$t.profile&&(or.getTotalRenderbufferSize=function(){var kt=0;return Object.keys(Pt).forEach(function(Vt){kt+=Pt[Vt].stats.size}),kt}),{create:function(kt,Vt){function Jt(hr,vr){var Ye=0,Ge=0,Nt=32854;if(typeof hr=="object"&&hr?("shape"in hr?(Ge=hr.shape,Ye=Ge[0]|0,Ge=Ge[1]|0):("radius"in hr&&(Ye=Ge=hr.radius|0),"width"in hr&&(Ye=hr.width|0),"height"in hr&&(Ge=hr.height|0)),"format"in hr&&(Nt=At[hr.format])):typeof hr=="number"?(Ye=hr|0,Ge=typeof vr=="number"?vr|0:Ye):hr||(Ye=Ge=1),Ye!==ur.width||Ge!==ur.height||Nt!==ur.format)return Jt.width=ur.width=Ye,Jt.height=ur.height=Ge,ur.format=Nt,pt.bindRenderbuffer(36161,ur.renderbuffer),pt.renderbufferStorage(36161,Nt,Ye,Ge),$t.profile&&(ur.stats.size=Ee[ur.format]*ur.width*ur.height),Jt.format=Ct[ur.format],Jt}var ur=new gt(pt.createRenderbuffer());return Pt[ur.id]=ur,or.renderbufferCount++,Jt(kt,Vt),Jt.resize=function(hr,vr){var Ye=hr|0,Ge=vr|0||Ye;return Ye===ur.width&&Ge===ur.height||(Jt.width=ur.width=Ye,Jt.height=ur.height=Ge,pt.bindRenderbuffer(36161,ur.renderbuffer),pt.renderbufferStorage(36161,ur.format,Ye,Ge),$t.profile&&(ur.stats.size=Ee[ur.format]*ur.width*ur.height)),Jt},Jt._reglType="renderbuffer",Jt._renderbuffer=ur,$t.profile&&(Jt.stats=ur.stats),Jt.destroy=function(){ur.decRef()},Jt},clear:function(){me(Pt).forEach(st)},restore:function(){me(Pt).forEach(function(kt){kt.renderbuffer=pt.createRenderbuffer(),pt.bindRenderbuffer(36161,kt.renderbuffer),pt.renderbufferStorage(36161,kt.format,kt.width,kt.height)}),pt.bindRenderbuffer(36161,null)}}},Ne=[];Ne[6408]=4,Ne[6407]=3;var je=[];je[5121]=1,je[5126]=4,je[36193]=2;var it=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],mt=["x","y","z","w"],bt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),vt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Lt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ct={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Tt={cw:2304,ccw:2305},Bt=new V(!1,!1,!1,function(){}),ir=function(pt,Xt){function Kt(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function or(Pt,kt,Vt){var Jt=st.pop()||new Kt;Jt.startQueryIndex=Pt,Jt.endQueryIndex=kt,Jt.sum=0,Jt.stats=Vt,At.push(Jt)}if(!Xt.ext_disjoint_timer_query)return null;var $t=[],gt=[],st=[],At=[],Ct=[],It=[];return{beginQuery:function(Pt){var kt=$t.pop()||Xt.ext_disjoint_timer_query.createQueryEXT();Xt.ext_disjoint_timer_query.beginQueryEXT(35007,kt),gt.push(kt),or(gt.length-1,gt.length,Pt)},endQuery:function(){Xt.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:or,update:function(){var Pt,kt;if(Pt=gt.length,Pt!==0){It.length=Math.max(It.length,Pt+1),Ct.length=Math.max(Ct.length,Pt+1),Ct[0]=0;var Vt=It[0]=0;for(kt=Pt=0;kt=En.length&&or()}var _n=se(En,pn);En[_n]=gn}}}function It(){var pn=rn.viewport,gn=rn.scissor_box;pn[0]=pn[1]=gn[0]=gn[1]=0,tr.viewportWidth=tr.framebufferWidth=tr.drawingBufferWidth=pn[2]=gn[2]=Jt.drawingBufferWidth,tr.viewportHeight=tr.framebufferHeight=tr.drawingBufferHeight=pn[3]=gn[3]=Jt.drawingBufferHeight}function Pt(){tr.tick+=1,tr.time=Vt(),It(),Dr.procs.poll()}function kt(){pr.refresh(),It(),Dr.procs.refresh(),Nt&&Nt.update()}function Vt(){return(we()-Ot)/1e3}if(pt=r(pt),!pt)return null;var Jt=pt.gl,ur=Jt.getContextAttributes();Jt.isContextLost();var hr=t(Jt,pt);if(!hr)return null;var cn=i(),vr={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Ye=pt.cachedCode||{},Ge=hr.extensions,Nt=ir(Jt,Ge),Ot=we(),fr=Jt.drawingBufferWidth,Qt=Jt.drawingBufferHeight,tr={tick:0,time:0,viewportWidth:fr,viewportHeight:Qt,framebufferWidth:fr,framebufferHeight:Qt,drawingBufferWidth:fr,drawingBufferHeight:Qt,pixelRatio:pt.pixelRatio},fr={elements:null,primitive:4,count:-1,offset:0,instances:-1},rr=be(Jt,Ge),Ht=o(Jt,vr,pt,function(pn){return mr.destroyBuffer(pn)}),dr=d(Jt,Ge,Ht,vr),mr=I(Jt,Ge,rr,vr,Ht,dr,fr),xr=k(Jt,cn,vr,pt),pr=z(Jt,Ge,rr,function(){Dr.procs.poll()},tr,vr,pt),Gr=Me(Jt,Ge,rr,vr,pt),Pr=D(Jt,Ge,rr,pr,Gr,vr),Dr=Z(Jt,cn,Ge,rr,Ht,dr,pr,Pr,{},mr,xr,fr,tr,Nt,Ye,pt),cn=B(Jt,Pr,Dr.procs.poll,tr),rn=Dr.next,Cn=Jt.canvas,En=[],Tr=[],Cr=[],Wr=[pt.onDestroy],Ur=null;Cn&&(Cn.addEventListener("webglcontextlost",$t,!1),Cn.addEventListener("webglcontextrestored",gt,!1));var an=Pr.setFBO=st({framebuffer:ge.define.call(null,1,"framebuffer")});return kt(),ur=ne(st,{clear:function(pn){if("framebuffer"in pn)if(pn.framebuffer&&pn.framebuffer_reglType==="framebufferCube")for(var gn=0;6>gn;++gn)an(ne({framebuffer:pn.framebuffer.faces[gn]},pn),At);else an(pn,At);else At(null,pn)},prop:ge.define.bind(null,1),context:ge.define.bind(null,2),this:ge.define.bind(null,3),draw:st({}),buffer:function(pn){return Ht.create(pn,34962,!1,!1)},elements:function(pn){return dr.create(pn,!1)},texture:pr.create2D,cube:pr.createCube,renderbuffer:Gr.create,framebuffer:Pr.create,framebufferCube:Pr.createCube,vao:mr.createVAO,attributes:ur,frame:Ct,on:function(pn,gn){var _n;switch(pn){case"frame":return Ct(gn);case"lost":_n=Tr;break;case"restore":_n=Cr;break;case"destroy":_n=Wr}return _n.push(gn),{cancel:function(){for(var kn=0;kn<_n.length;++kn)if(_n[kn]===gn){_n[kn]=_n[_n.length-1],_n.pop();break}}}},limits:rr,hasExtension:function(pn){return 0<=rr.extensions.indexOf(pn.toLowerCase())},read:cn,destroy:function(){En.length=0,or(),Cn&&(Cn.removeEventListener("webglcontextlost",$t),Cn.removeEventListener("webglcontextrestored",gt)),xr.clear(),Pr.clear(),Gr.clear(),mr.clear(),pr.clear(),dr.clear(),Ht.clear(),Nt&&Nt.clear(),Wr.forEach(function(pn){pn()})},_gl:Jt,_refresh:kt,poll:function(){Pt(),Nt&&Nt.update()},now:Vt,stats:vr,getCachedCode:function(){return Ye},preloadCachedCode:function(pn){Object.entries(pn).forEach(function(gn){Ye[gn[0]]=gn[1]})}}),pt.onDone(null,ur),ur}})},30456:function(G,U,e){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var g=e(33576),C=g.Buffer;function i(x,v){for(var p in x)v[p]=x[p]}C.from&&C.alloc&&C.allocUnsafe&&C.allocUnsafeSlow?G.exports=g:(i(g,U),U.Buffer=S);function S(x,v,p){return C(x,v,p)}S.prototype=Object.create(C.prototype),i(C,S),S.from=function(x,v,p){if(typeof x=="number")throw new TypeError("Argument must not be a number");return C(x,v,p)},S.alloc=function(x,v,p){if(typeof x!="number")throw new TypeError("Argument must be a number");var r=C(x);return v!==void 0?typeof p=="string"?r.fill(v,p):r.fill(v):r.fill(0),r},S.allocUnsafe=function(x){if(typeof x!="number")throw new TypeError("Argument must be a number");return C(x)},S.allocUnsafeSlow=function(x){if(typeof x!="number")throw new TypeError("Argument must be a number");return g.SlowBuffer(x)}},14500:function(G,U,e){var g=e(53664),C=e(64348),i=e(39640)(),S=e(2304),x=g("%TypeError%"),v=g("%Math.floor%");G.exports=function(r,t){if(typeof r!="function")throw new x("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||v(t)!==t)throw new x("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,f=!0;if("length"in r&&S){var c=S(r,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(f=!1)}return(n||f||!a)&&(i?C(r,"length",t,!0,!0):C(r,"length",t)),r}},29936:function(G,U,e){G.exports=i;var g=e(61252).EventEmitter,C=e(6768);C(i,g),i.Readable=e(12348),i.Writable=e(11288),i.Duplex=e(15316),i.Transform=e(22477),i.PassThrough=e(27136),i.finished=e(15932),i.pipeline=e(38180),i.Stream=i;function i(){g.call(this)}i.prototype.pipe=function(S,x){var v=this;function p(l){S.writable&&S.write(l)===!1&&v.pause&&v.pause()}v.on("data",p);function r(){v.readable&&v.resume&&v.resume()}S.on("drain",r),!S._isStdio&&(!x||x.end!==!1)&&(v.on("end",a),v.on("close",n));var t=!1;function a(){t||(t=!0,S.end())}function n(){t||(t=!0,typeof S.destroy=="function"&&S.destroy())}function f(l){if(c(),g.listenerCount(this,"error")===0)throw l}v.on("error",f),S.on("error",f);function c(){v.removeListener("data",p),S.removeListener("drain",r),v.removeListener("end",a),v.removeListener("close",n),v.removeListener("error",f),S.removeListener("error",f),v.removeListener("end",c),v.removeListener("close",c),S.removeListener("close",c)}return v.on("end",c),v.on("close",c),S.on("close",c),S.emit("pipe",v),S}},92784:function(G){function U(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,v.__proto__=p}var e={};function g(v,p,r){r||(r=Error);function t(n,f,c){return typeof p=="string"?p:p(n,f,c)}var a=function(n){U(f,n);function f(c,l,m){return n.call(this,t(c,l,m))||this}return f}(r);a.prototype.name=r.name,a.prototype.code=v,e[v]=a}function C(v,p){if(Array.isArray(v)){var r=v.length;return v=v.map(function(t){return String(t)}),r>2?"one of ".concat(p," ").concat(v.slice(0,r-1).join(", "),", or ")+v[r-1]:r===2?"one of ".concat(p," ").concat(v[0]," or ").concat(v[1]):"of ".concat(p," ").concat(v[0])}else return"of ".concat(p," ").concat(String(v))}function i(v,p,r){return v.substr(!r||r<0?0:+r,p.length)===p}function S(v,p,r){return(r===void 0||r>v.length)&&(r=v.length),v.substring(r-p.length,r)===p}function x(v,p,r){return typeof r!="number"&&(r=0),r+p.length>v.length?!1:v.indexOf(p,r)!==-1}g("ERR_INVALID_OPT_VALUE",function(v,p){return'The value "'+p+'" is invalid for option "'+v+'"'},TypeError),g("ERR_INVALID_ARG_TYPE",function(v,p,r){var t;typeof p=="string"&&i(p,"not ")?(t="must not be",p=p.replace(/^not /,"")):t="must be";var a;if(S(v," argument"))a="The ".concat(v," ").concat(t," ").concat(C(p,"type"));else{var n=x(v,".")?"property":"argument";a='The "'.concat(v,'" ').concat(n," ").concat(t," ").concat(C(p,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError),g("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),g("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),g("ERR_STREAM_PREMATURE_CLOSE","Premature close"),g("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),g("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),g("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),g("ERR_STREAM_WRITE_AFTER_END","write after end"),g("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),g("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),g("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),G.exports.i=e},15316:function(G,U,e){var g=e(4168),C=Object.keys||function(n){var f=[];for(var c in n)f.push(c);return f};G.exports=r;var i=e(12348),S=e(11288);e(6768)(r,i);for(var x=C(S.prototype),v=0;v0)if(typeof Z!="string"&&!ge.objectMode&&Object.getPrototypeOf(Z)!==x.prototype&&(Z=p(Z)),ne)ge.endEmitted?_($,new o):M($,ge,Z,!0);else if(ge.ended)_($,new b);else{if(ge.destroyed)return!1;ge.reading=!1,ge.decoder&&!se?(Z=ge.decoder.write(Z),ge.objectMode||Z.length!==0?M($,ge,Z,!1):H($,ge)):M($,ge,Z,!1)}else ne||(ge.reading=!1,H($,ge))}return!ge.ended&&(ge.length=D?$=D:($--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++),$}function I($,Z){return $<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:$!==$?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:($>Z.highWaterMark&&(Z.highWaterMark=N($)),$<=Z.length?$:Z.ended?Z.length:(Z.needReadable=!0,0))}s.prototype.read=function($){a("read",$),$=parseInt($,10);var Z=this._readableState,se=$;if($!==0&&(Z.emittedReadable=!1),$===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return a("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?V(this):B(this),null;if($=I($,Z),$===0&&Z.ended)return Z.length===0&&V(this),null;var ne=Z.needReadable;a("need readable",ne),(Z.length===0||Z.length-$0?ce=ee($,Z):ce=null,ce===null?(Z.needReadable=Z.length<=Z.highWaterMark,$=0):(Z.length-=$,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),se!==$&&Z.ended&&V(this)),ce!==null&&this.emit("data",ce),ce};function k($,Z){if(a("onEofChunk"),!Z.ended){if(Z.decoder){var se=Z.decoder.end();se&&se.length&&(Z.buffer.push(se),Z.length+=Z.objectMode?1:se.length)}Z.ended=!0,Z.sync?B($):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,O($)))}}function B($){var Z=$._readableState;a("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(a("emitReadable",Z.flowing),Z.emittedReadable=!0,g.nextTick(O,$))}function O($){var Z=$._readableState;a("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&($.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,X($)}function H($,Z){Z.readingMore||(Z.readingMore=!0,g.nextTick(Y,$,Z))}function Y($,Z){for(;!Z.reading&&!Z.ended&&(Z.length1&&oe(ne.pipes,$)!==-1)&&!be&&(a("false write response, pause",ne.awaitDrain),ne.awaitDrain++),se.pause())}function Le(Ve){a("onerror",Ve),ke(),$.removeListener("error",Le),i($,"error")===0&&_($,Ve)}E($,"error",Le);function He(){$.removeListener("finish",Ue),ke()}$.once("close",He);function Ue(){a("onfinish"),$.removeListener("close",He),ke()}$.once("finish",Ue);function ke(){a("unpipe"),se.unpipe($)}return $.emit("pipe",se),ne.flowing||(a("pipe resume"),se.resume()),$};function j($){return function(){var se=$._readableState;a("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&i($,"data")&&(se.flowing=!0,X($))}}s.prototype.unpipe=function($){var Z=this._readableState,se={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return $&&$!==Z.pipes?this:($||($=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,$&&$.emit("unpipe",this,se),this);if(!$){var ne=Z.pipes,ce=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ge=0;ge0,ne.flowing!==!1&&this.resume()):$==="readable"&&!ne.endEmitted&&!ne.readableListening&&(ne.readableListening=ne.needReadable=!0,ne.flowing=!1,ne.emittedReadable=!1,a("on readable",ne.length,ne.reading),ne.length?B(this):ne.reading||g.nextTick(ie,this)),se},s.prototype.addListener=s.prototype.on,s.prototype.removeListener=function($,Z){var se=S.prototype.removeListener.call(this,$,Z);return $==="readable"&&g.nextTick(te,this),se},s.prototype.removeAllListeners=function($){var Z=S.prototype.removeAllListeners.apply(this,arguments);return($==="readable"||$===void 0)&&g.nextTick(te,this),Z};function te($){var Z=$._readableState;Z.readableListening=$.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:$.listenerCount("data")>0&&$.resume()}function ie($){a("readable nexttick read 0"),$.read(0)}s.prototype.resume=function(){var $=this._readableState;return $.flowing||(a("resume"),$.flowing=!$.readableListening,ue(this,$)),$.paused=!1,this};function ue($,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,g.nextTick(J,$,Z))}function J($,Z){a("resume",Z.reading),Z.reading||$.read(0),Z.resumeScheduled=!1,$.emit("resume"),X($),Z.flowing&&!Z.reading&&$.read(0)}s.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function X($){var Z=$._readableState;for(a("flow",Z.flowing);Z.flowing&&$.read()!==null;);}s.prototype.wrap=function($){var Z=this,se=this._readableState,ne=!1;$.on("end",function(){if(a("wrapped end"),se.decoder&&!se.ended){var Te=se.decoder.end();Te&&Te.length&&Z.push(Te)}Z.push(null)}),$.on("data",function(Te){if(a("wrapped data"),se.decoder&&(Te=se.decoder.write(Te)),!(se.objectMode&&Te==null)&&!(!se.objectMode&&(!Te||!Te.length))){var we=Z.push(Te);we||(ne=!0,$.pause())}});for(var ce in $)this[ce]===void 0&&typeof $[ce]=="function"&&(this[ce]=function(we){return function(){return $[we].apply($,arguments)}}(ce));for(var ge=0;ge=Z.length?(Z.decoder?se=Z.buffer.join(""):Z.buffer.length===1?se=Z.buffer.first():se=Z.buffer.concat(Z.length),Z.buffer.clear()):se=Z.buffer.consume($,Z.decoder),se}function V($){var Z=$._readableState;a("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,g.nextTick(Q,Z,$))}function Q($,Z){if(a("endReadableNT",$.endEmitted,$.length),!$.endEmitted&&$.length===0&&($.endEmitted=!0,Z.readable=!1,Z.emit("end"),$.autoDestroy)){var se=Z._writableState;(!se||se.autoDestroy&&se.finished)&&Z.destroy()}}typeof Symbol=="function"&&(s.from=function($,Z){return A===void 0&&(A=e(90555)),A(s,$,Z)});function oe($,Z){for(var se=0,ne=$.length;se-1))throw new w(ee);return this._writableState.defaultEncoding=ee,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function M(X,ee,V){return!X.objectMode&&X.decodeStrings!==!1&&typeof ee=="string"&&(ee=v.from(ee,V)),ee}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(X,ee,V,Q,oe,$){if(!V){var Z=M(ee,Q,oe);Q!==Z&&(V=!0,oe="buffer",Q=Z)}var se=ee.objectMode?1:Q.length;ee.length+=se;var ne=ee.length0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(m){var h={data:m,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(m){if(this.length===0)return"";for(var h=this.head,b=""+h.data;h=h.next;)b+=m+h.data;return b}},{key:"concat",value:function(m){if(this.length===0)return r.alloc(0);for(var h=r.allocUnsafe(m>>>0),b=this.head,u=0;b;)f(b.data,h,u),u+=b.data.length,b=b.next;return h}},{key:"consume",value:function(m,h){var b;return mo.length?o.length:m;if(d===o.length?u+=o:u+=o.slice(0,m),m-=d,m===0){d===o.length?(++b,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=o.slice(d));break}++b}return this.length-=b,u}},{key:"_getBuffer",value:function(m){var h=r.allocUnsafe(m),b=this.head,u=1;for(b.data.copy(h),m-=b.data.length;b=b.next;){var o=b.data,d=m>o.length?o.length:m;if(o.copy(h,h.length-m,0,d),m-=d,m===0){d===o.length?(++u,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=o.slice(d));break}++u}return this.length-=u,h}},{key:n,value:function(m,h){return a(this,C({},h,{depth:0,customInspect:!1}))}}]),c}()},55324:function(G,U,e){var g=e(4168);function C(r,t){var a=this,n=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return n||f?(t?t(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(v,this,r)):g.nextTick(v,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(c){!t&&c?a._writableState?a._writableState.errorEmitted?g.nextTick(S,a):(a._writableState.errorEmitted=!0,g.nextTick(i,a,c)):g.nextTick(i,a,c):t?(g.nextTick(S,a),t(c)):g.nextTick(S,a)}),this)}function i(r,t){v(r,t),S(r)}function S(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function x(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(r,t){r.emit("error",t)}function p(r,t){var a=r._readableState,n=r._writableState;a&&a.autoDestroy||n&&n.autoDestroy?r.destroy(t):r.emit("error",t)}G.exports={destroy:C,undestroy:x,errorOrDestroy:p}},15932:function(G,U,e){var g=e(92784).i.ERR_STREAM_PREMATURE_CLOSE;function C(v){var p=!1;return function(){if(!p){p=!0;for(var r=arguments.length,t=new Array(r),a=0;a0;return r(o,w,A,function(_){b||(b=_),_&&u.forEach(t),!w&&(u.forEach(t),h(b))})});return l.reduce(a)}G.exports=f},24888:function(G,U,e){var g=e(92784).i.ERR_INVALID_OPT_VALUE;function C(S,x,v){return S.highWaterMark!=null?S.highWaterMark:x?S[v]:null}function i(S,x,v,p){var r=C(x,p,v);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var t=p?v:"highWaterMark";throw new g(t,r)}return Math.floor(r)}return S.objectMode?16:16384}G.exports={getHighWaterMark:i}},4776:function(G,U,e){G.exports=e(61252).EventEmitter},86032:function(G,U,e){var g=e(30456).Buffer,C=g.isEncoding||function(u){switch(u=""+u,u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(u){if(!u)return"utf8";for(var o;;)switch(u){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return u;default:if(o)return;u=(""+u).toLowerCase(),o=!0}}function S(u){var o=i(u);if(typeof o!="string"&&(g.isEncoding===C||!C(u)))throw new Error("Unknown encoding: "+u);return o||u}U.o=x;function x(u){this.encoding=S(u);var o;switch(this.encoding){case"utf16le":this.text=f,this.end=c,o=4;break;case"utf8":this.fillLast=t,o=4;break;case"base64":this.text=l,this.end=m,o=3;break;default:this.write=h,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(o)}x.prototype.write=function(u){if(u.length===0)return"";var o,d;if(this.lastNeed){if(o=this.fillLast(u),o===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function p(u,o,d){var w=o.length-1;if(w=0?(A>0&&(u.lastNeed=A-1),A):--w=0?(A>0&&(u.lastNeed=A-2),A):--w=0?(A>0&&(A===2?A=0:u.lastNeed=A-3),A):0))}function r(u,o,d){if((o[0]&192)!==128)return u.lastNeed=0,"�";if(u.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return u.lastNeed=1,"�";if(u.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return u.lastNeed=2,"�"}}function t(u){var o=this.lastTotal-this.lastNeed,d=r(this,u);if(d!==void 0)return d;if(this.lastNeed<=u.length)return u.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,o,0,u.length),this.lastNeed-=u.length}function a(u,o){var d=p(this,u,o);if(!this.lastNeed)return u.toString("utf8",o);this.lastTotal=d;var w=u.length-(d-this.lastNeed);return u.copy(this.lastChar,0,w),u.toString("utf8",o,w)}function n(u){var o=u&&u.length?this.write(u):"";return this.lastNeed?o+"�":o}function f(u,o){if((u.length-o)%2===0){var d=u.toString("utf16le",o);if(d){var w=d.charCodeAt(d.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",o,u.length-1)}function c(u){var o=u&&u.length?this.write(u):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,d)}return o}function l(u,o){var d=(u.length-o)%3;return d===0?u.toString("base64",o):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",o,u.length-d))}function m(u){var o=u&&u.length?this.write(u):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function h(u){return u.toString(this.encoding)}function b(u){return u&&u.length?this.write(u):""}},55619:function(G,U,e){var g=e(45408),C=e(86844)("stream-parser");G.exports=p;var i=-1,S=0,x=1,v=2;function p(u){var o=u&&typeof u._transform=="function",d=u&&typeof u._write=="function";if(!o&&!d)throw new Error("must pass a Writable or Transform stream in");C("extending Parser into stream"),u._bytes=t,u._skipBytes=a,o&&(u._passthrough=n),o?u._transform=c:u._write=f}function r(u){C("initializing parser stream"),u._parserBytesLeft=0,u._parserBuffers=[],u._parserBuffered=0,u._parserState=i,u._parserCallback=null,typeof u.push=="function"&&(u._parserOutput=u.push.bind(u)),u._parserInit=!0}function t(u,o){g(!this._parserCallback,'there is already a "callback" set!'),g(isFinite(u)&&u>0,'can only buffer a finite number of bytes > 0, got "'+u+'"'),this._parserInit||r(this),C("buffering %o bytes",u),this._parserBytesLeft=u,this._parserCallback=o,this._parserState=S}function a(u,o){g(!this._parserCallback,'there is already a "callback" set!'),g(u>0,'can only skip > 0 bytes, got "'+u+'"'),this._parserInit||r(this),C("skipping %o bytes",u),this._parserBytesLeft=u,this._parserCallback=o,this._parserState=x}function n(u,o){g(!this._parserCallback,'There is already a "callback" set!'),g(u>0,'can only pass through > 0 bytes, got "'+u+'"'),this._parserInit||r(this),C("passing through %o bytes",u),this._parserBytesLeft=u,this._parserCallback=o,this._parserState=v}function f(u,o,d){this._parserInit||r(this),C("write(%o bytes)",u.length),typeof o=="function"&&(d=o),h(this,u,null,d)}function c(u,o,d){this._parserInit||r(this),C("transform(%o bytes)",u.length),typeof o!="function"&&(o=this._parserOutput),h(this,u,o,d)}function l(u,o,d,w){return u._parserBytesLeft<=0?w(new Error("got data but not currently parsing anything")):o.length<=u._parserBytesLeft?function(){return m(u,o,d,w)}:function(){var A=o.slice(0,u._parserBytesLeft);return m(u,A,d,function(_){if(_)return w(_);if(o.length>A.length)return function(){return l(u,o.slice(A.length),d,w)}})}}function m(u,o,d,w){if(u._parserBytesLeft-=o.length,C("%o bytes left for stream piece",u._parserBytesLeft),u._parserState===S?(u._parserBuffers.push(o),u._parserBuffered+=o.length):u._parserState===v&&d(o),u._parserBytesLeft===0){var A=u._parserCallback;if(A&&u._parserState===S&&u._parserBuffers.length>1&&(o=Buffer.concat(u._parserBuffers,u._parserBuffered)),u._parserState!==S&&(o=null),u._parserCallback=null,u._parserBuffered=0,u._parserState=i,u._parserBuffers.splice(0),A){var _=[];o&&_.push(o),d&&_.push(d);var y=A.length>_.length;y&&_.push(b(w));var E=A.apply(u,_);if(!y||w===E)return w}}else return w}var h=b(l);function b(u){return function(){for(var o=u.apply(this,arguments);typeof o=="function";)o=o();return o}}},86844:function(G,U,e){var g=e(4168);U=G.exports=e(89416),U.log=S,U.formatArgs=i,U.save=x,U.load=v,U.useColors=C,U.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:p(),U.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function C(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}U.formatters.j=function(r){try{return JSON.stringify(r)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function i(r){var t=this.useColors;if(r[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+r[0]+(t?"%c ":" ")+"+"+U.humanize(this.diff),!!t){var a="color: "+this.color;r.splice(1,0,a,"color: inherit");var n=0,f=0;r[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(n++,c==="%c"&&(f=n))}),r.splice(f,0,a)}}function S(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function x(r){try{r==null?U.storage.removeItem("debug"):U.storage.debug=r}catch{}}function v(){var r;try{r=U.storage.debug}catch{}return!r&&typeof g<"u"&&"env"in g&&(r=g.env.DEBUG),r}U.enable(v());function p(){try{return window.localStorage}catch{}}},89416:function(G,U,e){U=G.exports=i.debug=i.default=i,U.coerce=p,U.disable=x,U.enable=S,U.enabled=v,U.humanize=e(93744),U.names=[],U.skips=[],U.formatters={};var g;function C(r){var t=0,a;for(a in r)t=(t<<5)-t+r.charCodeAt(a),t|=0;return U.colors[Math.abs(t)%U.colors.length]}function i(r){function t(){if(t.enabled){var a=t,n=+new Date,f=n-(g||n);a.diff=f,a.prev=g,a.curr=n,g=n;for(var c=new Array(arguments.length),l=0;l0)return S(r);if(a==="number"&&isNaN(r)===!1)return t.long?v(r):x(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function S(r){if(r=String(r),!(r.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(r);if(t){var a=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"days":case"day":case"d":return a*C;case"hours":case"hour":case"hrs":case"hr":case"h":return a*g;case"minutes":case"minute":case"mins":case"min":case"m":return a*e;case"seconds":case"second":case"secs":case"sec":case"s":return a*U;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function x(r){return r>=C?Math.round(r/C)+"d":r>=g?Math.round(r/g)+"h":r>=e?Math.round(r/e)+"m":r>=U?Math.round(r/U)+"s":r+"ms"}function v(r){return p(r,C,"day")||p(r,g,"hour")||p(r,e,"minute")||p(r,U,"second")||r+" ms"}function p(r,t,a){if(!(r",'""',"''","``","“”","«»"]:(typeof x.ignore=="string"&&(x.ignore=[x.ignore]),x.ignore=x.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var v=g.parse(i,{flat:!0,brackets:x.ignore}),p=v[0],r=p.split(S);if(x.escape){for(var t=[],a=0;a0;){h=u[u.length-1];var o=e[h];if(x[h]=0&&p[h].push(v[w])}x[h]=d}else{if(i[h]===C[h]){for(var A=[],_=[],y=0,d=b.length-1;d>=0;--d){var E=b[d];if(S[E]=!1,A.push(E),_.push(p[E]),y+=p[E].length,v[E]=a.length,E===h){b.length=d;break}}a.push(A);for(var T=new Array(y),d=0;d<_.length;d++)for(var s=0;s<_[d].length;s++)T[--y]=_[d][s];n.push(T)}u.pop()}}}for(var r=0;r1&&(l=1),l<-1&&(l=-1),c*Math.acos(l)},v=function(t,a,n,f,c,l,m,h,b,u,o,d){var w=Math.pow(c,2),A=Math.pow(l,2),_=Math.pow(o,2),y=Math.pow(d,2),E=w*A-w*y-A*_;E<0&&(E=0),E/=w*y+A*_,E=Math.sqrt(E)*(m===h?-1:1);var T=E*c/l*d,s=E*-l/c*o,L=u*T-b*s+(t+n)/2,M=b*T+u*s+(a+f)/2,z=(o-T)/c,D=(d-s)/l,N=(-o-T)/c,I=(-d-s)/l,k=x(1,0,z,D),B=x(z,D,N,I);return h===0&&B>0&&(B-=C),h===1&&B<0&&(B+=C),[L,M,k,B]},p=function(t){var a=t.px,n=t.py,f=t.cx,c=t.cy,l=t.rx,m=t.ry,h=t.xAxisRotation,b=h===void 0?0:h,u=t.largeArcFlag,o=u===void 0?0:u,d=t.sweepFlag,w=d===void 0?0:d,A=[];if(l===0||m===0)return[];var _=Math.sin(b*C/360),y=Math.cos(b*C/360),E=y*(a-f)/2+_*(n-c)/2,T=-_*(a-f)/2+y*(n-c)/2;if(E===0&&T===0)return[];l=Math.abs(l),m=Math.abs(m);var s=Math.pow(E,2)/Math.pow(l,2)+Math.pow(T,2)/Math.pow(m,2);s>1&&(l*=Math.sqrt(s),m*=Math.sqrt(s));var L=v(a,n,f,c,l,m,o,w,_,y,E,T),M=g(L,4),z=M[0],D=M[1],N=M[2],I=M[3],k=Math.abs(I)/(C/4);Math.abs(1-k)<1e-7&&(k=1);var B=Math.max(Math.ceil(k),1);I/=B;for(var O=0;Or[2]&&(r[2]=n[f+0]),n[f+1]>r[3]&&(r[3]=n[f+1]);return r}},41976:function(G,U,e){G.exports=C;var g=e(92848);function C(x){for(var v,p=[],r=0,t=0,a=0,n=0,f=null,c=null,l=0,m=0,h=0,b=x.length;h4?(r=u[u.length-4],t=u[u.length-3]):(r=l,t=m),p.push(u)}return p}function i(x,v,p,r){return["C",x,v,p,r,p,r]}function S(x,v,p,r,t,a){return["C",x/3+.6666666666666666*p,v/3+.6666666666666666*r,t/3+.6666666666666666*p,a/3+.6666666666666666*r,t,a]}},20472:function(G,U,e){var g=e(74840),C=e(21984),i=e(22235),S=e(53520),x=e(29620),v=document.createElement("canvas"),p=v.getContext("2d");G.exports=r;function r(n,f){if(!S(n))throw Error("Argument should be valid svg path string");f||(f={});var c,l;f.shape?(c=f.shape[0],l=f.shape[1]):(c=v.width=f.w||f.width||200,l=v.height=f.h||f.height||200);var m=Math.min(c,l),h=f.stroke||0,b=f.viewbox||f.viewBox||g(n),u=[c/(b[2]-b[0]),l/(b[3]-b[1])],o=Math.min(u[0]||0,u[1]||0)/2;if(p.fillStyle="black",p.fillRect(0,0,c,l),p.fillStyle="white",h&&(typeof h!="number"&&(h=1),h>0?p.strokeStyle="white":p.strokeStyle="black",p.lineWidth=Math.abs(h)),p.translate(c*.5,l*.5),p.scale(o,o),a()){var d=new Path2D(n);p.fill(d),h&&p.stroke(d)}else{var w=C(n);i(p,w),p.fill(),h&&p.stroke()}p.setTransform(1,0,0,1,0,0);var A=x(p,{cutoff:f.cutoff!=null?f.cutoff:.5,radius:f.radius!=null?f.radius:m*.5});return A}var t;function a(){if(t!=null)return t;var n=document.createElement("canvas").getContext("2d");if(n.canvas.width=n.canvas.height=1,!window.Path2D)return t=!1;var f=new Path2D("M0,0h1v1h-1v-1Z");n.fillStyle="black",n.fill(f);var c=n.getImageData(0,0,1,1);return t=c&&c.data&&c.data[3]===255}},49760:function(G,U,e){var g;(function(C){var i=/^\s+/,S=/\s+$/,x=0,v=C.round,p=C.min,r=C.max,t=C.random;function a(Z,se){if(Z=Z||"",se=se||{},Z instanceof a)return Z;if(!(this instanceof a))return new a(Z,se);var ne=n(Z);this._originalInput=Z,this._r=ne.r,this._g=ne.g,this._b=ne.b,this._a=ne.a,this._roundA=v(100*this._a)/100,this._format=se.format||ne.format,this._gradientType=se.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=ne.ok,this._tc_id=x++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Z=this.toRgb();return(Z.r*299+Z.g*587+Z.b*114)/1e3},getLuminance:function(){var Z=this.toRgb(),se,ne,ce,ge,Te,we;return se=Z.r/255,ne=Z.g/255,ce=Z.b/255,se<=.03928?ge=se/12.92:ge=C.pow((se+.055)/1.055,2.4),ne<=.03928?Te=ne/12.92:Te=C.pow((ne+.055)/1.055,2.4),ce<=.03928?we=ce/12.92:we=C.pow((ce+.055)/1.055,2.4),.2126*ge+.7152*Te+.0722*we},setAlpha:function(Z){return this._a=O(Z),this._roundA=v(100*this._a)/100,this},toHsv:function(){var Z=m(this._r,this._g,this._b);return{h:Z.h*360,s:Z.s,v:Z.v,a:this._a}},toHsvString:function(){var Z=m(this._r,this._g,this._b),se=v(Z.h*360),ne=v(Z.s*100),ce=v(Z.v*100);return this._a==1?"hsv("+se+", "+ne+"%, "+ce+"%)":"hsva("+se+", "+ne+"%, "+ce+"%, "+this._roundA+")"},toHsl:function(){var Z=c(this._r,this._g,this._b);return{h:Z.h*360,s:Z.s,l:Z.l,a:this._a}},toHslString:function(){var Z=c(this._r,this._g,this._b),se=v(Z.h*360),ne=v(Z.s*100),ce=v(Z.l*100);return this._a==1?"hsl("+se+", "+ne+"%, "+ce+"%)":"hsla("+se+", "+ne+"%, "+ce+"%, "+this._roundA+")"},toHex:function(Z){return b(this._r,this._g,this._b,Z)},toHexString:function(Z){return"#"+this.toHex(Z)},toHex8:function(Z){return u(this._r,this._g,this._b,this._a,Z)},toHex8String:function(Z){return"#"+this.toHex8(Z)},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v(H(this._r,255)*100)+"%",g:v(H(this._g,255)*100)+"%",b:v(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v(H(this._r,255)*100)+"%, "+v(H(this._g,255)*100)+"%, "+v(H(this._b,255)*100)+"%)":"rgba("+v(H(this._r,255)*100)+"%, "+v(H(this._g,255)*100)+"%, "+v(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(Z){var se="#"+o(this._r,this._g,this._b,this._a),ne=se,ce=this._gradientType?"GradientType = 1, ":"";if(Z){var ge=a(Z);ne="#"+o(ge._r,ge._g,ge._b,ge._a)}return"progid:DXImageTransform.Microsoft.gradient("+ce+"startColorstr="+se+",endColorstr="+ne+")"},toString:function(Z){var se=!!Z;Z=Z||this._format;var ne=!1,ce=this._a<1&&this._a>=0,ge=!se&&ce&&(Z==="hex"||Z==="hex6"||Z==="hex3"||Z==="hex4"||Z==="hex8"||Z==="name");return ge?Z==="name"&&this._a===0?this.toName():this.toRgbString():(Z==="rgb"&&(ne=this.toRgbString()),Z==="prgb"&&(ne=this.toPercentageRgbString()),(Z==="hex"||Z==="hex6")&&(ne=this.toHexString()),Z==="hex3"&&(ne=this.toHexString(!0)),Z==="hex4"&&(ne=this.toHex8String(!0)),Z==="hex8"&&(ne=this.toHex8String()),Z==="name"&&(ne=this.toName()),Z==="hsl"&&(ne=this.toHslString()),Z==="hsv"&&(ne=this.toHsvString()),ne||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(Z,se){var ne=Z.apply(null,[this].concat([].slice.call(se)));return this._r=ne._r,this._g=ne._g,this._b=ne._b,this.setAlpha(ne._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(Z,se){return Z.apply(null,[this].concat([].slice.call(se)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(s,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(L,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},a.fromRatio=function(Z,se){if(typeof Z=="object"){var ne={};for(var ce in Z)Z.hasOwnProperty(ce)&&(ce==="a"?ne[ce]=Z[ce]:ne[ce]=J(Z[ce]));Z=ne}return a(Z,se)};function n(Z){var se={r:0,g:0,b:0},ne=1,ce=null,ge=null,Te=null,we=!1,Re=!1;return typeof Z=="string"&&(Z=oe(Z)),typeof Z=="object"&&(Q(Z.r)&&Q(Z.g)&&Q(Z.b)?(se=f(Z.r,Z.g,Z.b),we=!0,Re=String(Z.r).substr(-1)==="%"?"prgb":"rgb"):Q(Z.h)&&Q(Z.s)&&Q(Z.v)?(ce=J(Z.s),ge=J(Z.v),se=h(Z.h,ce,ge),we=!0,Re="hsv"):Q(Z.h)&&Q(Z.s)&&Q(Z.l)&&(ce=J(Z.s),Te=J(Z.l),se=l(Z.h,ce,Te),we=!0,Re="hsl"),Z.hasOwnProperty("a")&&(ne=Z.a)),ne=O(ne),{ok:we,format:Z.format||Re,r:p(255,r(se.r,0)),g:p(255,r(se.g,0)),b:p(255,r(se.b,0)),a:ne}}function f(Z,se,ne){return{r:H(Z,255)*255,g:H(se,255)*255,b:H(ne,255)*255}}function c(Z,se,ne){Z=H(Z,255),se=H(se,255),ne=H(ne,255);var ce=r(Z,se,ne),ge=p(Z,se,ne),Te,we,Re=(ce+ge)/2;if(ce==ge)Te=we=0;else{var be=ce-ge;switch(we=Re>.5?be/(2-ce-ge):be/(ce+ge),ce){case Z:Te=(se-ne)/be+(se1&&(Le-=1),Le<.16666666666666666?Ae+(me-Ae)*6*Le:Le<.5?me:Le<.6666666666666666?Ae+(me-Ae)*(.6666666666666666-Le)*6:Ae}if(se===0)ce=ge=Te=ne;else{var Re=ne<.5?ne*(1+se):ne+se-ne*se,be=2*ne-Re;ce=we(be,Re,Z+.3333333333333333),ge=we(be,Re,Z),Te=we(be,Re,Z-.3333333333333333)}return{r:ce*255,g:ge*255,b:Te*255}}function m(Z,se,ne){Z=H(Z,255),se=H(se,255),ne=H(ne,255);var ce=r(Z,se,ne),ge=p(Z,se,ne),Te,we,Re=ce,be=ce-ge;if(we=ce===0?0:be/ce,ce==ge)Te=0;else{switch(ce){case Z:Te=(se-ne)/be+(se>1)+720)%360;--se;)ce.h=(ce.h+ge)%360,Te.push(a(ce));return Te}function N(Z,se){se=se||6;for(var ne=a(Z).toHsv(),ce=ne.h,ge=ne.s,Te=ne.v,we=[],Re=1/se;se--;)we.push(a({h:ce,s:ge,v:Te})),Te=(Te+Re)%1;return we}a.mix=function(Z,se,ne){ne=ne===0?0:ne||50;var ce=a(Z).toRgb(),ge=a(se).toRgb(),Te=ne/100,we={r:(ge.r-ce.r)*Te+ce.r,g:(ge.g-ce.g)*Te+ce.g,b:(ge.b-ce.b)*Te+ce.b,a:(ge.a-ce.a)*Te+ce.a};return a(we)},a.readability=function(Z,se){var ne=a(Z),ce=a(se);return(C.max(ne.getLuminance(),ce.getLuminance())+.05)/(C.min(ne.getLuminance(),ce.getLuminance())+.05)},a.isReadable=function(Z,se,ne){var ce=a.readability(Z,se),ge,Te;switch(Te=!1,ge=$(ne),ge.level+ge.size){case"AAsmall":case"AAAlarge":Te=ce>=4.5;break;case"AAlarge":Te=ce>=3;break;case"AAAsmall":Te=ce>=7;break}return Te},a.mostReadable=function(Z,se,ne){var ce=null,ge=0,Te,we,Re,be;ne=ne||{},we=ne.includeFallbackColors,Re=ne.level,be=ne.size;for(var Ae=0;Aege&&(ge=Te,ce=a(se[Ae]));return a.isReadable(Z,ce,{level:Re,size:be})||!we?ce:(ne.includeFallbackColors=!1,a.mostReadable(Z,["#fff","#000"],ne))};var I=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=a.hexNames=B(I);function B(Z){var se={};for(var ne in Z)Z.hasOwnProperty(ne)&&(se[Z[ne]]=ne);return se}function O(Z){return Z=parseFloat(Z),(isNaN(Z)||Z<0||Z>1)&&(Z=1),Z}function H(Z,se){te(Z)&&(Z="100%");var ne=ie(Z);return Z=p(se,r(0,parseFloat(Z))),ne&&(Z=parseInt(Z*se,10)/100),C.abs(Z-se)<1e-6?1:Z%se/parseFloat(se)}function Y(Z){return p(1,r(0,Z))}function j(Z){return parseInt(Z,16)}function te(Z){return typeof Z=="string"&&Z.indexOf(".")!=-1&&parseFloat(Z)===1}function ie(Z){return typeof Z=="string"&&Z.indexOf("%")!=-1}function ue(Z){return Z.length==1?"0"+Z:""+Z}function J(Z){return Z<=1&&(Z=Z*100+"%"),Z}function X(Z){return C.round(parseFloat(Z)*255).toString(16)}function ee(Z){return j(Z)/255}var V=function(){var Z="[-\\+]?\\d+%?",se="[-\\+]?\\d*\\.\\d+%?",ne="(?:"+se+")|(?:"+Z+")",ce="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?",ge="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?";return{CSS_UNIT:new RegExp(ne),rgb:new RegExp("rgb"+ce),rgba:new RegExp("rgba"+ge),hsl:new RegExp("hsl"+ce),hsla:new RegExp("hsla"+ge),hsv:new RegExp("hsv"+ce),hsva:new RegExp("hsva"+ge),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(Z){return!!V.CSS_UNIT.exec(Z)}function oe(Z){Z=Z.replace(i,"").replace(S,"").toLowerCase();var se=!1;if(I[Z])Z=I[Z],se=!0;else if(Z=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ne;return(ne=V.rgb.exec(Z))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=V.rgba.exec(Z))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=V.hsl.exec(Z))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=V.hsla.exec(Z))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=V.hsv.exec(Z))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=V.hsva.exec(Z))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=V.hex8.exec(Z))?{r:j(ne[1]),g:j(ne[2]),b:j(ne[3]),a:ee(ne[4]),format:se?"name":"hex8"}:(ne=V.hex6.exec(Z))?{r:j(ne[1]),g:j(ne[2]),b:j(ne[3]),format:se?"name":"hex"}:(ne=V.hex4.exec(Z))?{r:j(ne[1]+""+ne[1]),g:j(ne[2]+""+ne[2]),b:j(ne[3]+""+ne[3]),a:ee(ne[4]+""+ne[4]),format:se?"name":"hex8"}:(ne=V.hex3.exec(Z))?{r:j(ne[1]+""+ne[1]),g:j(ne[2]+""+ne[2]),b:j(ne[3]+""+ne[3]),format:se?"name":"hex"}:!1}function $(Z){var se,ne;return Z=Z||{level:"AA",size:"small"},se=(Z.level||"AA").toUpperCase(),ne=(Z.size||"small").toLowerCase(),se!=="AA"&&se!=="AAA"&&(se="AA"),ne!=="small"&&ne!=="large"&&(ne="small"),{level:se,size:ne}}G.exports?G.exports=a:(g=(function(){return a}).call(U,e,U,G),g!==void 0&&(G.exports=g))})(Math)},37816:function(G){G.exports=g,G.exports.float32=G.exports.float=g,G.exports.fract32=G.exports.fract=e;var U=new Float32Array(1);function e(C,i){if(C.length){if(C instanceof Float32Array)return new Float32Array(C.length);i instanceof Float32Array||(i=g(C));for(var S=0,x=i.length;S":(S.length>100&&(S=S.slice(0,99)+"…"),S=S.replace(C,function(x){switch(x){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),S)}},7328:function(G,U,e){var g=e(81680),C={object:!0,function:!0,undefined:!0};G.exports=function(i){return g(i)?hasOwnProperty.call(C,typeof i):!1}},87396:function(G,U,e){var g=e(57980),C=e(85488);G.exports=function(i){return C(i)?i:g(i,"%v is not a plain function",arguments[1])}},85488:function(G,U,e){var g=e(73384),C=/^\s*class[\s{/}]/,i=Function.prototype.toString;G.exports=function(S){return!(!g(S)||C.test(i.call(S)))}},54612:function(G,U,e){var g=e(7328);G.exports=function(C){if(!g(C))return!1;try{return C.constructor?C.constructor.prototype===C:!1}catch{return!1}}},33940:function(G,U,e){var g=e(81680),C=e(7328),i=Object.prototype.toString;G.exports=function(S){if(!g(S))return null;if(C(S)){var x=S.toString;if(typeof x!="function"||x===i)return null}try{return""+S}catch{return null}}},18496:function(G,U,e){var g=e(57980),C=e(81680);G.exports=function(i){return C(i)?i:g(i,"Cannot use %v",arguments[1])}},81680:function(G){var U=void 0;G.exports=function(e){return e!==U&&e!==null}},14144:function(G,U,e){var g=e(308),C=e(10352),i=e(33576).Buffer;e.g.__TYPEDARRAY_POOL||(e.g.__TYPEDARRAY_POOL={UINT8:C([32,0]),UINT16:C([32,0]),UINT32:C([32,0]),BIGUINT64:C([32,0]),INT8:C([32,0]),INT16:C([32,0]),INT32:C([32,0]),BIGINT64:C([32,0]),FLOAT:C([32,0]),DOUBLE:C([32,0]),DATA:C([32,0]),UINT8C:C([32,0]),BUFFER:C([32,0])});var S=typeof Uint8ClampedArray<"u",x=typeof BigUint64Array<"u",v=typeof BigInt64Array<"u",p=e.g.__TYPEDARRAY_POOL;p.UINT8C||(p.UINT8C=C([32,0])),p.BIGUINT64||(p.BIGUINT64=C([32,0])),p.BIGINT64||(p.BIGINT64=C([32,0])),p.BUFFER||(p.BUFFER=C([32,0]));var r=p.DATA,t=p.BUFFER;U.free=function(s){if(i.isBuffer(s))t[g.log2(s.length)].push(s);else{if(Object.prototype.toString.call(s)!=="[object ArrayBuffer]"&&(s=s.buffer),!s)return;var L=s.length||s.byteLength,M=g.log2(L)|0;r[M].push(s)}};function a(T){if(T){var s=T.length||T.byteLength,L=g.log2(s);r[L].push(T)}}function n(T){a(T.buffer)}U.freeUint8=U.freeUint16=U.freeUint32=U.freeBigUint64=U.freeInt8=U.freeInt16=U.freeInt32=U.freeBigInt64=U.freeFloat32=U.freeFloat=U.freeFloat64=U.freeDouble=U.freeUint8Clamped=U.freeDataView=n,U.freeArrayBuffer=a,U.freeBuffer=function(s){t[g.log2(s.length)].push(s)},U.malloc=function(s,L){if(L===void 0||L==="arraybuffer")return f(s);switch(L){case"uint8":return c(s);case"uint16":return l(s);case"uint32":return m(s);case"int8":return h(s);case"int16":return b(s);case"int32":return u(s);case"float":case"float32":return o(s);case"double":case"float64":return d(s);case"uint8_clamped":return w(s);case"bigint64":return _(s);case"biguint64":return A(s);case"buffer":return E(s);case"data":case"dataview":return y(s);default:return null}return null};function f(s){var s=g.nextPow2(s),L=g.log2(s),M=r[L];return M.length>0?M.pop():new ArrayBuffer(s)}U.mallocArrayBuffer=f;function c(T){return new Uint8Array(f(T),0,T)}U.mallocUint8=c;function l(T){return new Uint16Array(f(2*T),0,T)}U.mallocUint16=l;function m(T){return new Uint32Array(f(4*T),0,T)}U.mallocUint32=m;function h(T){return new Int8Array(f(T),0,T)}U.mallocInt8=h;function b(T){return new Int16Array(f(2*T),0,T)}U.mallocInt16=b;function u(T){return new Int32Array(f(4*T),0,T)}U.mallocInt32=u;function o(T){return new Float32Array(f(4*T),0,T)}U.mallocFloat32=U.mallocFloat=o;function d(T){return new Float64Array(f(8*T),0,T)}U.mallocFloat64=U.mallocDouble=d;function w(T){return S?new Uint8ClampedArray(f(T),0,T):c(T)}U.mallocUint8Clamped=w;function A(T){return x?new BigUint64Array(f(8*T),0,T):null}U.mallocBigUint64=A;function _(T){return v?new BigInt64Array(f(8*T),0,T):null}U.mallocBigInt64=_;function y(T){return new DataView(f(T),0,T)}U.mallocDataView=y;function E(T){T=g.nextPow2(T);var s=g.log2(T),L=t[s];return L.length>0?L.pop():new i(T)}U.mallocBuffer=E,U.clearCache=function(){for(var s=0;s<32;++s)p.UINT8[s].length=0,p.UINT16[s].length=0,p.UINT32[s].length=0,p.INT8[s].length=0,p.INT16[s].length=0,p.INT32[s].length=0,p.FLOAT[s].length=0,p.DOUBLE[s].length=0,p.BIGUINT64[s].length=0,p.BIGINT64[s].length=0,p.UINT8C[s].length=0,r[s].length=0,t[s].length=0}},92384:function(G){var U=/[\'\"]/;G.exports=function(g){return g?(U.test(g.charAt(0))&&(g=g.substr(1)),U.test(g.charAt(g.length-1))&&(g=g.substr(0,g.length-1)),g):""}},45223:function(G){G.exports=function(e,g,C){Array.isArray(C)||(C=[].slice.call(arguments,2));for(var i=0,S=C.length;i"u"?!1:L.working?L(Te):Te instanceof Map}U.isMap=M;function z(Te){return r(Te)==="[object Set]"}z.working=typeof Set<"u"&&z(new Set);function D(Te){return typeof Set>"u"?!1:z.working?z(Te):Te instanceof Set}U.isSet=D;function N(Te){return r(Te)==="[object WeakMap]"}N.working=typeof WeakMap<"u"&&N(new WeakMap);function I(Te){return typeof WeakMap>"u"?!1:N.working?N(Te):Te instanceof WeakMap}U.isWeakMap=I;function k(Te){return r(Te)==="[object WeakSet]"}k.working=typeof WeakSet<"u"&&k(new WeakSet);function B(Te){return k(Te)}U.isWeakSet=B;function O(Te){return r(Te)==="[object ArrayBuffer]"}O.working=typeof ArrayBuffer<"u"&&O(new ArrayBuffer);function H(Te){return typeof ArrayBuffer>"u"?!1:O.working?O(Te):Te instanceof ArrayBuffer}U.isArrayBuffer=H;function Y(Te){return r(Te)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function j(Te){return typeof DataView>"u"?!1:Y.working?Y(Te):Te instanceof DataView}U.isDataView=j;var te=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ie(Te){return r(Te)==="[object SharedArrayBuffer]"}function ue(Te){return typeof te>"u"?!1:(typeof ie.working>"u"&&(ie.working=ie(new te)),ie.working?ie(Te):Te instanceof te)}U.isSharedArrayBuffer=ue;function J(Te){return r(Te)==="[object AsyncFunction]"}U.isAsyncFunction=J;function X(Te){return r(Te)==="[object Map Iterator]"}U.isMapIterator=X;function ee(Te){return r(Te)==="[object Set Iterator]"}U.isSetIterator=ee;function V(Te){return r(Te)==="[object Generator]"}U.isGeneratorObject=V;function Q(Te){return r(Te)==="[object WebAssembly.Module]"}U.isWebAssemblyCompiledModule=Q;function oe(Te){return l(Te,t)}U.isNumberObject=oe;function $(Te){return l(Te,a)}U.isStringObject=$;function Z(Te){return l(Te,n)}U.isBooleanObject=Z;function se(Te){return v&&l(Te,f)}U.isBigIntObject=se;function ne(Te){return p&&l(Te,c)}U.isSymbolObject=ne;function ce(Te){return oe(Te)||$(Te)||Z(Te)||se(Te)||ne(Te)}U.isBoxedPrimitive=ce;function ge(Te){return typeof Uint8Array<"u"&&(H(Te)||ue(Te))}U.isAnyArrayBuffer=ge,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Te){Object.defineProperty(U,Te,{enumerable:!1,value:function(){throw new Error(Te+" is not supported in userland")}})})},35840:function(G,U,e){var g=e(4168),C=Object.getOwnPropertyDescriptors||function(te){for(var ie=Object.keys(te),ue={},J=0;J=J)return V;switch(V){case"%s":return String(ue[ie++]);case"%d":return Number(ue[ie++]);case"%j":try{return JSON.stringify(ue[ie++])}catch{return"[Circular]"}default:return V}}),ee=ue[ie];ie"u")return function(){return U.deprecate(j,te).apply(this,arguments)};var ie=!1;function ue(){if(!ie){if(g.throwDeprecation)throw new Error(te);g.traceDeprecation?console.trace(te):console.error(te),ie=!0}return j.apply(this,arguments)}return ue};var S={},x=/^$/;if(g.env.NODE_DEBUG){var v=g.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),x=new RegExp("^"+v+"$","i")}U.debuglog=function(j){if(j=j.toUpperCase(),!S[j])if(x.test(j)){var te=g.pid;S[j]=function(){var ie=U.format.apply(U,arguments);console.error("%s %d: %s",j,te,ie)}}else S[j]=function(){};return S[j]};function p(j,te){var ie={seen:[],stylize:t};return arguments.length>=3&&(ie.depth=arguments[2]),arguments.length>=4&&(ie.colors=arguments[3]),u(te)?ie.showHidden=te:te&&U._extend(ie,te),y(ie.showHidden)&&(ie.showHidden=!1),y(ie.depth)&&(ie.depth=2),y(ie.colors)&&(ie.colors=!1),y(ie.customInspect)&&(ie.customInspect=!0),ie.colors&&(ie.stylize=r),n(ie,j,ie.depth)}U.inspect=p,p.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]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(j,te){var ie=p.styles[te];return ie?"\x1B["+p.colors[ie][0]+"m"+j+"\x1B["+p.colors[ie][1]+"m":j}function t(j,te){return j}function a(j){var te={};return j.forEach(function(ie,ue){te[ie]=!0}),te}function n(j,te,ie){if(j.customInspect&&te&&M(te.inspect)&&te.inspect!==U.inspect&&!(te.constructor&&te.constructor.prototype===te)){var ue=te.inspect(ie,j);return A(ue)||(ue=n(j,ue,ie)),ue}var J=f(j,te);if(J)return J;var X=Object.keys(te),ee=a(X);if(j.showHidden&&(X=Object.getOwnPropertyNames(te)),L(te)&&(X.indexOf("message")>=0||X.indexOf("description")>=0))return c(te);if(X.length===0){if(M(te)){var V=te.name?": "+te.name:"";return j.stylize("[Function"+V+"]","special")}if(E(te))return j.stylize(RegExp.prototype.toString.call(te),"regexp");if(s(te))return j.stylize(Date.prototype.toString.call(te),"date");if(L(te))return c(te)}var Q="",oe=!1,$=["{","}"];if(b(te)&&(oe=!0,$=["[","]"]),M(te)){var Z=te.name?": "+te.name:"";Q=" [Function"+Z+"]"}if(E(te)&&(Q=" "+RegExp.prototype.toString.call(te)),s(te)&&(Q=" "+Date.prototype.toUTCString.call(te)),L(te)&&(Q=" "+c(te)),X.length===0&&(!oe||te.length==0))return $[0]+Q+$[1];if(ie<0)return E(te)?j.stylize(RegExp.prototype.toString.call(te),"regexp"):j.stylize("[Object]","special");j.seen.push(te);var se;return oe?se=l(j,te,ie,ee,X):se=X.map(function(ne){return m(j,te,ie,ee,ne,oe)}),j.seen.pop(),h(se,Q,$)}function f(j,te){if(y(te))return j.stylize("undefined","undefined");if(A(te)){var ie="'"+JSON.stringify(te).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(ie,"string")}if(w(te))return j.stylize(""+te,"number");if(u(te))return j.stylize(""+te,"boolean");if(o(te))return j.stylize("null","null")}function c(j){return"["+Error.prototype.toString.call(j)+"]"}function l(j,te,ie,ue,J){for(var X=[],ee=0,V=te.length;ee-1&&(X?V=V.split(` +`).map(function(oe){return" "+oe}).join(` +`).slice(2):V=` +`+V.split(` +`).map(function(oe){return" "+oe}).join(` +`))):V=j.stylize("[Circular]","special")),y(ee)){if(X&&J.match(/^\d+$/))return V;ee=JSON.stringify(""+J),ee.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.slice(1,-1),ee=j.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=j.stylize(ee,"string"))}return ee+": "+V}function h(j,te,ie){var ue=j.reduce(function(J,X){return X.indexOf(` +`)>=0,J+X.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?ie[0]+(te===""?"":te+` + `)+" "+j.join(`, + `)+" "+ie[1]:ie[0]+te+" "+j.join(", ")+" "+ie[1]}U.types=e(41088);function b(j){return Array.isArray(j)}U.isArray=b;function u(j){return typeof j=="boolean"}U.isBoolean=u;function o(j){return j===null}U.isNull=o;function d(j){return j==null}U.isNullOrUndefined=d;function w(j){return typeof j=="number"}U.isNumber=w;function A(j){return typeof j=="string"}U.isString=A;function _(j){return typeof j=="symbol"}U.isSymbol=_;function y(j){return j===void 0}U.isUndefined=y;function E(j){return T(j)&&D(j)==="[object RegExp]"}U.isRegExp=E,U.types.isRegExp=E;function T(j){return typeof j=="object"&&j!==null}U.isObject=T;function s(j){return T(j)&&D(j)==="[object Date]"}U.isDate=s,U.types.isDate=s;function L(j){return T(j)&&(D(j)==="[object Error]"||j instanceof Error)}U.isError=L,U.types.isNativeError=L;function M(j){return typeof j=="function"}U.isFunction=M;function z(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}U.isPrimitive=z,U.isBuffer=e(75272);function D(j){return Object.prototype.toString.call(j)}function N(j){return j<10?"0"+j.toString(10):j.toString(10)}var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var j=new Date,te=[N(j.getHours()),N(j.getMinutes()),N(j.getSeconds())].join(":");return[j.getDate(),I[j.getMonth()],te].join(" ")}U.log=function(){console.log("%s - %s",k(),U.format.apply(U,arguments))},U.inherits=e(6768),U._extend=function(j,te){if(!te||!T(te))return j;for(var ie=Object.keys(te),ue=ie.length;ue--;)j[ie[ue]]=te[ie[ue]];return j};function B(j,te){return Object.prototype.hasOwnProperty.call(j,te)}var O=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;U.promisify=function(te){if(typeof te!="function")throw new TypeError('The "original" argument must be of type Function');if(O&&te[O]){var ie=te[O];if(typeof ie!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ie,O,{value:ie,enumerable:!1,writable:!1,configurable:!0}),ie}function ie(){for(var ue,J,X=new Promise(function(Q,oe){ue=Q,J=oe}),ee=[],V=0;V"u"?e.g:globalThis,t=C(),a=S("String.prototype.slice"),n=Object.getPrototypeOf,f=S("Array.prototype.indexOf",!0)||function(b,u){for(var o=0;o-1?u:u!=="Object"?!1:m(b)}return x?l(b):null}},67020:function(G,U,e){var g=e(38700),C=e(50896),i=g.instance();function S(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}S.prototype=new g.baseCalendar,C(S.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(c,l){if(typeof c=="string"){var m=c.match(v);return m?m[0]:""}var h=this._validateYear(c),b=c.month(),u=""+this.toChineseMonth(h,b);return l&&u.length<2&&(u="0"+u),this.isIntercalaryMonth(h,b)&&(u+="i"),u},monthNames:function(c){if(typeof c=="string"){var l=c.match(p);return l?l[0]:""}var m=this._validateYear(c),h=c.month(),b=this.toChineseMonth(m,h),u=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][b-1];return this.isIntercalaryMonth(m,h)&&(u="闰"+u),u},monthNamesShort:function(c){if(typeof c=="string"){var l=c.match(r);return l?l[0]:""}var m=this._validateYear(c),h=c.month(),b=this.toChineseMonth(m,h),u=["一","二","三","四","五","六","七","八","九","十","十一","十二"][b-1];return this.isIntercalaryMonth(m,h)&&(u="闰"+u),u},parseMonth:function(c,l){c=this._validateYear(c);var m=parseInt(l),h;if(isNaN(m))l[0]==="闰"&&(h=!0,l=l.substring(1)),l[l.length-1]==="月"&&(l=l.substring(0,l.length-1)),m=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(l);else{var b=l[l.length-1];h=b==="i"||b==="I"}var u=this.toMonthIndex(c,m,h);return u},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(c,l){if(c.year&&(c=c.year()),typeof c!="number"||c<1888||c>2111)throw l.replace(/\{0\}/,this.local.name);return c},toMonthIndex:function(c,l,m){var h=this.intercalaryMonth(c),b=m&&l!==h;if(b||l<1||l>12)throw g.local.invalidMonth.replace(/\{0\}/,this.local.name);var u;return h?!m&&l<=h?u=l-1:u=l:u=l-1,u},toChineseMonth:function(c,l){c.year&&(c=c.year(),l=c.month());var m=this.intercalaryMonth(c),h=m?12:11;if(l<0||l>h)throw g.local.invalidMonth.replace(/\{0\}/,this.local.name);var b;return m?l>13;return m},isIntercalaryMonth:function(c,l){c.year&&(c=c.year(),l=c.month());var m=this.intercalaryMonth(c);return!!m&&m===l},leapYear:function(c){return this.intercalaryMonth(c)!==0},weekOfYear:function(c,l,m){var h=this._validateYear(c,g.local.invalidyear),b=a[h-a[0]],u=b>>9&4095,o=b>>5&15,d=b&31,w;w=i.newDate(u,o,d),w.add(4-(w.dayOfWeek()||7),"d");var A=this.toJD(c,l,m)-w.toJD();return 1+Math.floor(A/7)},monthsInYear:function(c){return this.leapYear(c)?13:12},daysInMonth:function(c,l){c.year&&(l=c.month(),c=c.year()),c=this._validateYear(c);var m=t[c-t[0]],h=m>>13,b=h?12:11;if(l>b)throw g.local.invalidMonth.replace(/\{0\}/,this.local.name);var u=m&1<<12-l?30:29;return u},weekDay:function(c,l,m){return(this.dayOfWeek(c,l,m)||7)<6},toJD:function(c,l,m){var h=this._validate(c,u,m,g.local.invalidDate);c=this._validateYear(h.year()),l=h.month(),m=h.day();var b=this.isIntercalaryMonth(c,l),u=this.toChineseMonth(c,l),o=f(c,u,m,b);return i.toJD(o.year,o.month,o.day)},fromJD:function(c){var l=i.fromJD(c),m=n(l.year(),l.month(),l.day()),h=this.toMonthIndex(m.year,m.month,m.isIntercalary);return this.newDate(m.year,h,m.day)},fromString:function(c){var l=c.match(x),m=this._validateYear(+l[1]),h=+l[2],b=!!l[3],u=this.toMonthIndex(m,h,b),o=+l[4];return this.newDate(m,u,o)},add:function(c,l,m){var h=c.year(),b=c.month(),u=this.isIntercalaryMonth(h,b),o=this.toChineseMonth(h,b),d=Object.getPrototypeOf(S.prototype).add.call(this,c,l,m);if(m==="y"){var w=d.year(),A=d.month(),_=this.isIntercalaryMonth(w,o),y=u&&_?this.toMonthIndex(w,o,!0):this.toMonthIndex(w,o,!1);y!==A&&d.month(y)}return d}});var x=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,v=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,r=/^闰?十?[一二三四五六七八九]?/m;g.calendars.chinese=S;var t=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],a=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function n(c,l,m,h){var b,u;if(typeof c=="object")b=c,u=l||{};else{var o=typeof c=="number"&&c>=1888&&c<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var d=typeof l=="number"&&l>=1&&l<=12;if(!d)throw new Error("Solar month outside range 1 - 12");var w=typeof m=="number"&&m>=1&&m<=31;if(!w)throw new Error("Solar day outside range 1 - 31");b={year:c,month:l,day:m},u=h||{}}var A=a[b.year-a[0]],_=b.year<<9|b.month<<5|b.day;u.year=_>=A?b.year:b.year-1,A=a[u.year-a[0]];var y=A>>9&4095,E=A>>5&15,T=A&31,s,L=new Date(y,E-1,T),M=new Date(b.year,b.month-1,b.day);s=Math.round((M-L)/864e5);var z=t[u.year-t[0]],D;for(D=0;D<13;D++){var N=z&1<<12-D?30:29;if(s>13;return!I||D=1888&&c<=2111;if(!d)throw new Error("Lunar year outside range 1888-2111");var w=typeof l=="number"&&l>=1&&l<=12;if(!w)throw new Error("Lunar month outside range 1 - 12");var A=typeof m=="number"&&m>=1&&m<=30;if(!A)throw new Error("Lunar day outside range 1 - 30");var _;typeof h=="object"?(_=!1,u=h):(_=!!h,u=b||{}),o={year:c,month:l,day:m,isIntercalary:_}}var y;y=o.day-1;var E=t[o.year-t[0]],T=E>>13,s;T&&(o.month>T||o.isIntercalary)?s=o.month:s=o.month-1;for(var L=0;L>9&4095,N=z>>5&15,I=z&31,k=new Date(D,N-1,I+y);return u.year=k.getFullYear(),u.month=1+k.getMonth(),u.day=k.getDate(),u}},89792:function(G,U,e){var g=e(38700),C=e(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var x=this._validate(v,this.minMonth,this.minDay,g.local.invalidYear),v=x.year()+(x.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,g.local.invalidYear||g.regionalOptions[""].invalidYear),13},weekOfYear:function(S,x,v){var p=this.newDate(S,x,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(S,x){var v=this._validate(S,x,this.minDay,g.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(S,x,v){return(this.dayOfWeek(S,x,v)||7)<6},toJD:function(S,x,v){var p=this._validate(S,x,v,g.local.invalidDate);return S=p.year(),S<0&&S++,p.day()+(p.month()-1)*30+(S-1)*365+Math.floor(S/4)+this.jdEpoch-1},fromJD:function(S){var x=Math.floor(S)+.5-this.jdEpoch,v=Math.floor((x-Math.floor((x+366)/1461))/365)+1;v<=0&&v--,x=Math.floor(S)+.5-this.newDate(v,1,1).toJD();var p=Math.floor(x/30)+1,r=x-(p-1)*30+1;return this.newDate(v,p,r)}}),g.calendars.coptic=i},55668:function(G,U,e){var g=e(38700),C=e(50896);function i(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(x){return this._validate(x,this.minMonth,this.minDay,g.local.invalidYear),!1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,g.local.invalidYear),13},daysInYear:function(x){return this._validate(x,this.minMonth,this.minDay,g.local.invalidYear),400},weekOfYear:function(x,v,p){var r=this.newDate(x,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/8)+1},daysInMonth:function(x,v){var p=this._validate(x,v,this.minDay,g.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(x,v,p){var r=this._validate(x,v,p,g.local.invalidDate);return(r.day()+1)%8},weekDay:function(x,v,p){var r=this.dayOfWeek(x,v,p);return r>=2&&r<=6},extraInfo:function(x,v,p){var r=this._validate(x,v,p,g.local.invalidDate);return{century:S[Math.floor((r.year()-1)/100)+1]||""}},toJD:function(x,v,p){var r=this._validate(x,v,p,g.local.invalidDate);return x=r.year()+(r.year()<0?1:0),v=r.month(),p=r.day(),p+(v>1?16:0)+(v>2?(v-2)*32:0)+(x-1)*400+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x+.5)-Math.floor(this.jdEpoch)-1;var v=Math.floor(x/400)+1;x-=(v-1)*400,x+=x>15?16:0;var p=Math.floor(x/32)+1,r=x-(p-1)*32+1;return this.newDate(v<=0?v-1:v,p,r)}});var S={20:"Fruitbat",21:"Anchovy"};g.calendars.discworld=i},65168:function(G,U,e){var g=e(38700),C=e(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var x=this._validate(v,this.minMonth,this.minDay,g.local.invalidYear),v=x.year()+(x.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,g.local.invalidYear||g.regionalOptions[""].invalidYear),13},weekOfYear:function(S,x,v){var p=this.newDate(S,x,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(S,x){var v=this._validate(S,x,this.minDay,g.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(S,x,v){return(this.dayOfWeek(S,x,v)||7)<6},toJD:function(S,x,v){var p=this._validate(S,x,v,g.local.invalidDate);return S=p.year(),S<0&&S++,p.day()+(p.month()-1)*30+(S-1)*365+Math.floor(S/4)+this.jdEpoch-1},fromJD:function(S){var x=Math.floor(S)+.5-this.jdEpoch,v=Math.floor((x-Math.floor((x+366)/1461))/365)+1;v<=0&&v--,x=Math.floor(S)+.5-this.newDate(v,1,1).toJD();var p=Math.floor(x/30)+1,r=x-(p-1)*30+1;return this.newDate(v,p,r)}}),g.calendars.ethiopian=i},2084:function(G,U,e){var g=e(38700),C=e(50896);function i(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var v=this._validate(x,this.minMonth,this.minDay,g.local.invalidYear);return this._leapYear(v.year())},_leapYear:function(x){return x=x<0?x+1:x,S(x*7+1,19)<7},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,g.local.invalidYear),this._leapYear(x.year?x.year():x)?13:12},weekOfYear:function(x,v,p){var r=this.newDate(x,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(x){var v=this._validate(x,this.minMonth,this.minDay,g.local.invalidYear);return x=v.year(),this.toJD(x===-1?1:x+1,7,1)-this.toJD(x,7,1)},daysInMonth:function(x,v){return x.year&&(v=x.month(),x=x.year()),this._validate(x,v,this.minDay,g.local.invalidMonth),v===12&&this.leapYear(x)||v===8&&S(this.daysInYear(x),10)===5?30:v===9&&S(this.daysInYear(x),10)===3?29:this.daysPerMonth[v-1]},weekDay:function(x,v,p){return this.dayOfWeek(x,v,p)!==6},extraInfo:function(x,v,p){var r=this._validate(x,v,p,g.local.invalidDate);return{yearType:(this.leapYear(r)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(r)%10-3]}},toJD:function(x,v,p){var r=this._validate(x,v,p,g.local.invalidDate);x=r.year(),v=r.month(),p=r.day();var t=x<=0?x+1:x,a=this.jdEpoch+this._delay1(t)+this._delay2(t)+p+1;if(v<7){for(var n=7;n<=this.monthsInYear(x);n++)a+=this.daysInMonth(x,n);for(var n=1;n=this.toJD(v===-1?1:v+1,7,1);)v++;for(var p=xthis.toJD(v,p,this.daysInMonth(v,p));)p++;var r=x-this.toJD(v,p,1)+1;return this.newDate(v,p,r)}});function S(x,v){return x-v*Math.floor(x/v)}g.calendars.hebrew=i},26368:function(G,U,e){var g=e(38700),C=e(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(S){var x=this._validate(S,this.minMonth,this.minDay,g.local.invalidYear);return(x.year()*11+14)%30<11},weekOfYear:function(S,x,v){var p=this.newDate(S,x,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(S){return this.leapYear(S)?355:354},daysInMonth:function(S,x){var v=this._validate(S,x,this.minDay,g.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===12&&this.leapYear(v.year())?1:0)},weekDay:function(S,x,v){return this.dayOfWeek(S,x,v)!==5},toJD:function(S,x,v){var p=this._validate(S,x,v,g.local.invalidDate);return S=p.year(),x=p.month(),v=p.day(),S=S<=0?S+1:S,v+Math.ceil(29.5*(x-1))+(S-1)*354+Math.floor((3+11*S)/30)+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S)+.5;var x=Math.floor((30*(S-this.jdEpoch)+10646)/10631);x=x<=0?x-1:x;var v=Math.min(12,Math.ceil((S-29-this.toJD(x,1,1))/29.5)+1),p=S-this.toJD(x,v,1)+1;return this.newDate(x,v,p)}}),g.calendars.islamic=i},24747:function(G,U,e){var g=e(38700),C=e(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var x=this._validate(v,this.minMonth,this.minDay,g.local.invalidYear),v=x.year()<0?x.year()+1:x.year();return v%4===0},weekOfYear:function(S,x,v){var p=this.newDate(S,x,v);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(S,x){var v=this._validate(S,x,this.minDay,g.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(S,x,v){return(this.dayOfWeek(S,x,v)||7)<6},toJD:function(S,x,v){var p=this._validate(S,x,v,g.local.invalidDate);return S=p.year(),x=p.month(),v=p.day(),S<0&&S++,x<=2&&(S--,x+=12),Math.floor(365.25*(S+4716))+Math.floor(30.6001*(x+1))+v-1524.5},fromJD:function(S){var x=Math.floor(S+.5),v=x+1524,p=Math.floor((v-122.1)/365.25),r=Math.floor(365.25*p),t=Math.floor((v-r)/30.6001),a=t-Math.floor(t<14?1:13),n=p-Math.floor(a>2?4716:4715),f=v-r-Math.floor(30.6001*t);return n<=0&&n--,this.newDate(n,a,f)}}),g.calendars.julian=i},65616:function(G,U,e){var g=e(38700),C=e(50896);function i(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(v){return this._validate(v,this.minMonth,this.minDay,g.local.invalidYear),!1},formatYear:function(v){var p=this._validate(v,this.minMonth,this.minDay,g.local.invalidYear);v=p.year();var r=Math.floor(v/400);v=v%400,v+=v<0?400:0;var t=Math.floor(v/20);return r+"."+t+"."+v%20},forYear:function(v){if(v=v.split("."),v.length<3)throw"Invalid Mayan year";for(var p=0,r=0;r19||r>0&&t<0)throw"Invalid Mayan year";p=p*20+t}return p},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,g.local.invalidYear),18},weekOfYear:function(v,p,r){return this._validate(v,p,r,g.local.invalidDate),0},daysInYear:function(v){return this._validate(v,this.minMonth,this.minDay,g.local.invalidYear),360},daysInMonth:function(v,p){return this._validate(v,p,this.minDay,g.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(v,p,r){var t=this._validate(v,p,r,g.local.invalidDate);return t.day()},weekDay:function(v,p,r){return this._validate(v,p,r,g.local.invalidDate),!0},extraInfo:function(v,p,r){var t=this._validate(v,p,r,g.local.invalidDate),a=t.toJD(),n=this._toHaab(a),f=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[n[0]-1],haabMonth:n[0],haabDay:n[1],tzolkinDayName:this.local.tzolkinMonths[f[0]-1],tzolkinDay:f[0],tzolkinTrecena:f[1]}},_toHaab:function(v){v-=this.jdEpoch;var p=S(v+8+17*20,365);return[Math.floor(p/20)+1,S(p,20)]},_toTzolkin:function(v){return v-=this.jdEpoch,[x(v+20,20),x(v+4,13)]},toJD:function(v,p,r){var t=this._validate(v,p,r,g.local.invalidDate);return t.day()+t.month()*20+t.year()*360+this.jdEpoch},fromJD:function(v){v=Math.floor(v)+.5-this.jdEpoch;var p=Math.floor(v/360);v=v%360,v+=v<0?360:0;var r=Math.floor(v/20),t=v%20;return this.newDate(p,r,t)}});function S(v,p){return v-p*Math.floor(v/p)}function x(v,p){return S(v-1,p)+1}g.calendars.mayan=i},30632:function(G,U,e){var g=e(38700),C=e(50896);function i(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar;var S=g.instance("gregorian");C(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var v=this._validate(x,this.minMonth,this.minDay,g.local.invalidYear||g.regionalOptions[""].invalidYear);return S.leapYear(v.year()+(v.year()<1?1:0)+1469)},weekOfYear:function(x,v,p){var r=this.newDate(x,v,p);return r.add(1-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(x,v){var p=this._validate(x,v,this.minDay,g.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(x,v,p){return(this.dayOfWeek(x,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,g.local.invalidMonth),t=r.year();t<0&&t++;for(var a=r.day(),n=1;n=this.toJD(v+1,1,1);)v++;for(var p=x-Math.floor(this.toJD(v,1,1)+.5)+1,r=1;p>this.daysInMonth(v,r);)p-=this.daysInMonth(v,r),r++;return this.newDate(v,r,p)}}),g.calendars.nanakshahi=i},73040:function(G,U,e){var g=e(38700),C=e(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(S){return this.daysInYear(S)!==this.daysPerYear},weekOfYear:function(S,x,v){var p=this.newDate(S,x,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(S){var x=this._validate(S,this.minMonth,this.minDay,g.local.invalidYear);if(S=x.year(),typeof this.NEPALI_CALENDAR_DATA[S]>"u")return this.daysPerYear;for(var v=0,p=this.minMonth;p<=12;p++)v+=this.NEPALI_CALENDAR_DATA[S][p];return v},daysInMonth:function(S,x){return S.year&&(x=S.month(),S=S.year()),this._validate(S,x,this.minDay,g.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[S]>"u"?this.daysPerMonth[x-1]:this.NEPALI_CALENDAR_DATA[S][x]},weekDay:function(S,x,v){return this.dayOfWeek(S,x,v)!==6},toJD:function(S,x,v){var p=this._validate(S,x,v,g.local.invalidDate);S=p.year(),x=p.month(),v=p.day();var r=g.instance(),t=0,a=x,n=S;this._createMissingCalendarData(S);var f=S-(a>9||a===9&&v>=this.NEPALI_CALENDAR_DATA[n][0]?56:57);for(x!==9&&(t=v,a--);a!==9;)a<=0&&(a=12,n--),t+=this.NEPALI_CALENDAR_DATA[n][a],a--;return x===9?(t+=v-this.NEPALI_CALENDAR_DATA[n][0],t<0&&(t+=r.daysInYear(f))):t+=this.NEPALI_CALENDAR_DATA[n][9]-this.NEPALI_CALENDAR_DATA[n][0],r.newDate(f,1,1).add(t,"d").toJD()},fromJD:function(S){var x=g.instance(),v=x.fromJD(S),p=v.year(),r=v.dayOfYear(),t=p+56;this._createMissingCalendarData(t);for(var a=9,n=this.NEPALI_CALENDAR_DATA[t][0],f=this.NEPALI_CALENDAR_DATA[t][a]-n+1;r>f;)a++,a>12&&(a=1,t++),f+=this.NEPALI_CALENDAR_DATA[t][a];var c=this.NEPALI_CALENDAR_DATA[t][a]-(f-r);return this.newDate(t,a,c)},_createMissingCalendarData:function(S){var x=this.daysPerMonth.slice(0);x.unshift(17);for(var v=S-1;v"u"&&(this.NEPALI_CALENDAR_DATA[v]=x)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),g.calendars.nepali=i},1104:function(G,U,e){var g=e(38700),C=e(50896);function i(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var v=this._validate(x,this.minMonth,this.minDay,g.local.invalidYear);return((v.year()-(v.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(x,v,p){var r=this.newDate(x,v,p);return r.add(-((r.dayOfWeek()+1)%7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(x,v){var p=this._validate(x,v,this.minDay,g.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(x,v,p){return this.dayOfWeek(x,v,p)!==5},toJD:function(x,v,p){var r=this._validate(x,v,p,g.local.invalidDate);x=r.year(),v=r.month(),p=r.day();var t=x-(x>=0?474:473),a=474+S(t,2820);return p+(v<=7?(v-1)*31:(v-1)*30+6)+Math.floor((a*682-110)/2816)+(a-1)*365+Math.floor(t/2820)*1029983+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x)+.5;var v=x-this.toJD(475,1,1),p=Math.floor(v/1029983),r=S(v,1029983),t=2820;if(r!==1029982){var a=Math.floor(r/366),n=S(r,366);t=Math.floor((2134*a+2816*n+2815)/1028522)+a+1}var f=t+2820*p+474;f=f<=0?f-1:f;var c=x-this.toJD(f,1,1)+1,l=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),m=x-this.toJD(f,l,1)+1;return this.newDate(f,l,m)}});function S(x,v){return x-v*Math.floor(x/v)}g.calendars.persian=i,g.calendars.jalali=i},51456:function(G,U,e){var g=e(38700),C=e(50896),i=g.instance();function S(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}S.prototype=new g.baseCalendar,C(S.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(p){var v=this._validate(p,this.minMonth,this.minDay,g.local.invalidYear),p=this._t2gYear(v.year());return i.leapYear(p)},weekOfYear:function(t,v,p){var r=this._validate(t,this.minMonth,this.minDay,g.local.invalidYear),t=this._t2gYear(r.year());return i.weekOfYear(t,r.month(),r.day())},daysInMonth:function(x,v){var p=this._validate(x,v,this.minDay,g.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(x,v,p){return(this.dayOfWeek(x,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,g.local.invalidDate),t=this._t2gYear(r.year());return i.toJD(t,r.month(),r.day())},fromJD:function(x){var v=i.fromJD(x),p=this._g2tYear(v.year());return this.newDate(p,v.month(),v.day())},_t2gYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)},_g2tYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)}}),g.calendars.taiwan=S},4592:function(G,U,e){var g=e(38700),C=e(50896),i=g.instance();function S(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}S.prototype=new g.baseCalendar,C(S.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(p){var v=this._validate(p,this.minMonth,this.minDay,g.local.invalidYear),p=this._t2gYear(v.year());return i.leapYear(p)},weekOfYear:function(t,v,p){var r=this._validate(t,this.minMonth,this.minDay,g.local.invalidYear),t=this._t2gYear(r.year());return i.weekOfYear(t,r.month(),r.day())},daysInMonth:function(x,v){var p=this._validate(x,v,this.minDay,g.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(x,v,p){return(this.dayOfWeek(x,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,g.local.invalidDate),t=this._t2gYear(r.year());return i.toJD(t,r.month(),r.day())},fromJD:function(x){var v=i.fromJD(x),p=this._g2tYear(v.year());return this.newDate(p,v.month(),v.day())},_t2gYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)},_g2tYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)}}),g.calendars.thai=S},45348:function(G,U,e){var g=e(38700),C=e(50896);function i(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}i.prototype=new g.baseCalendar,C(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(x){var v=this._validate(x,this.minMonth,this.minDay,g.local.invalidYear);return this.daysInYear(v.year())===355},weekOfYear:function(x,v,p){var r=this.newDate(x,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(x){for(var v=0,p=1;p<=12;p++)v+=this.daysInMonth(x,p);return v},daysInMonth:function(x,v){for(var p=this._validate(x,v,this.minDay,g.local.invalidMonth),r=p.toJD()-24e5+.5,t=0,a=0;ar)return S[t]-S[t-1];t++}return 30},weekDay:function(x,v,p){return this.dayOfWeek(x,v,p)!==5},toJD:function(x,v,p){var r=this._validate(x,v,p,g.local.invalidDate),t=12*(r.year()-1)+r.month()-15292,a=r.day()+S[t-1]-1;return a+24e5-.5},fromJD:function(x){for(var v=x-24e5+.5,p=0,r=0;rv);r++)p++;var t=p+15292,a=Math.floor((t-1)/12),n=a+1,f=t-12*a,c=v-S[p-1]+1;return this.newDate(n,f,c)},isValid:function(x,v,p){var r=g.baseCalendar.prototype.isValid.apply(this,arguments);return r&&(x=x.year!=null?x.year:x,r=x>=1276&&x<=1500),r},_validate:function(x,v,p,r){var t=g.baseCalendar.prototype._validate.apply(this,arguments);if(t.year<1276||t.year>1500)throw r.replace(/\{0\}/,this.local.name);return t}}),g.calendars.ummalqura=i;var S=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(G,U,e){var g=e(50896);function C(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}g(C.prototype,{instance:function(r,t){r=(r||"gregorian").toLowerCase(),t=t||"";var a=this._localCals[r+"-"+t];if(!a&&this.calendars[r]&&(a=new this.calendars[r](t),this._localCals[r+"-"+t]=a),!a)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,r);return a},newDate:function(r,t,a,n,f){return n=(r!=null&&r.year?r.calendar():typeof n=="string"?this.instance(n,f):n)||this.instance(),n.newDate(r,t,a)},substituteDigits:function(r){return function(t){return(t+"").replace(/[0-9]/g,function(a){return r[a]})}},substituteChineseDigits:function(r,t){return function(a){for(var n="",f=0;a>0;){var c=a%10;n=(c===0?"":r[c]+t[f])+n,f++,a=Math.floor(a/10)}return n.indexOf(r[1]+t[1])===0&&(n=n.substr(1)),n||r[0]}}});function i(r,t,a,n){if(this._calendar=r,this._year=t,this._month=a,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S(r,t){return r=""+r,"000000".substring(0,t-r.length)+r}g(i.prototype,{newDate:function(r,t,a){return this._calendar.newDate(r??this,t,a)},year:function(r){return arguments.length===0?this._year:this.set(r,"y")},month:function(r){return arguments.length===0?this._month:this.set(r,"m")},day:function(r){return arguments.length===0?this._day:this.set(r,"d")},date:function(r,t,a){if(!this._calendar.isValid(r,t,a))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=r,this._month=t,this._day=a,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(r,t){return this._calendar.add(this,r,t)},set:function(r,t){return this._calendar.set(this,r,t)},compareTo:function(r){if(this._calendar.name!==r._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,r._calendar.local.name);var t=this._year!==r._year?this._year-r._year:this._month!==r._month?this.monthOfYear()-r.monthOfYear():this._day-r._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(r){return this._calendar.fromJD(r)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(r){return this._calendar.fromJSDate(r)},toString:function(){return(this.year()<0?"-":"")+S(Math.abs(this.year()),4)+"-"+S(this.month(),2)+"-"+S(this.day(),2)}});function x(){this.shortYearCutoff="+10"}g(x.prototype,{_validateLevel:0,newDate:function(r,t,a){return r==null?this.today():(r.year&&(this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),a=r.day(),t=r.month(),r=r.year()),new i(this,r,t,a))},today:function(){return this.fromJSDate(new Date)},epoch:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+S(Math.abs(t.year()),4)},monthsInYear:function(r){return this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(r,t){var a=this._validate(r,t,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(a.month()+this.monthsInYear(a)-this.firstMonth)%this.monthsInYear(a)+this.minMonth},fromMonthOfYear:function(r,t){var a=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(r)+this.minMonth;return this._validate(r,a,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),a},daysInYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(r,t,a){return this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(r,t,a){return this._validate(r,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(r,this._add(r,t,a),t,a)},_add:function(r,t,a){if(this._validateLevel++,a==="d"||a==="w"){var n=r.toJD()+t*(a==="w"?this.daysInWeek():1),f=r.calendar().fromJD(n);return this._validateLevel--,[f.year(),f.month(),f.day()]}try{var c=r.year()+(a==="y"?t:0),l=r.monthOfYear()+(a==="m"?t:0),f=r.day(),m=function(u){for(;lo-1+u.minMonth;)c++,l-=o,o=u.monthsInYear(c)};a==="y"?(r.month()!==this.fromMonthOfYear(c,l)&&(l=this.newDate(c,r.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(c)),f=Math.min(f,this.daysInMonth(c,this.fromMonthOfYear(c,l)))):a==="m"&&(m(this),f=Math.min(f,this.daysInMonth(c,this.fromMonthOfYear(c,l))));var h=[c,this.fromMonthOfYear(c,l),f];return this._validateLevel--,h}catch(b){throw this._validateLevel--,b}},_correctAdd:function(r,t,a,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||r.year()>0!=t[0]>0)){var f={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],c=a<0?-1:1;t=this._add(r,a*f[0]+c*f[1],f[2])}return r.date(t[0],t[1],t[2])},set:function(r,t,a){this._validate(r,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var n=a==="y"?t:r.year(),f=a==="m"?t:r.month(),c=a==="d"?t:r.day();return(a==="y"||a==="m")&&(c=Math.min(c,this.daysInMonth(n,f))),r.date(n,f,c)},isValid:function(r,t,a){this._validateLevel++;var n=this.hasYearZero||r!==0;if(n){var f=this.newDate(r,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&a-this.minDay13.5?13:1),b=f-(h>2.5?4716:4715);return b<=0&&b--,this.newDate(b,h,m)},toJSDate:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),f=new Date(n.year(),n.month()-1,n.day());return f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0),f.setHours(f.getHours()>12?f.getHours()+2:0),f},fromJSDate:function(r){return this.newDate(r.getFullYear(),r.getMonth()+1,r.getDate())}});var p=G.exports=new C;p.cdate=i,p.baseCalendar=x,p.calendars.gregorian=v},15168:function(G,U,e){var g=e(50896),C=e(38700);g(C.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),C.local=C.regionalOptions[""],g(C.cdate.prototype,{formatDate:function(i,S){return typeof i!="string"&&(S=i,i=""),this._calendar.formatDate(i||"",this,S)}}),g(C.baseCalendar.prototype,{UNIX_EPOCH:C.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:C.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,S,x){if(typeof i!="string"&&(x=S,S=i,i=""),!S)return"";if(S.calendar()!==this)throw C.local.invalidFormat||C.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat,x=x||{};var v=x.dayNamesShort||this.local.dayNamesShort,p=x.dayNames||this.local.dayNames,r=x.monthNumbers||this.local.monthNumbers,t=x.monthNamesShort||this.local.monthNamesShort,a=x.monthNames||this.local.monthNames;x.calculateWeek||this.local.calculateWeek;for(var n=function(A,_){for(var y=1;w+y1},f=function(A,_,y,E){var T=""+_;if(n(A,E))for(;T.length1},w=function(D,N){var I=d(D,N),k=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],B=new RegExp("^-?\\d{1,"+k+"}"),O=S.substring(s).match(B);if(!O)throw(C.local.missingNumberAt||C.regionalOptions[""].missingNumberAt).replace(/\{0\}/,s);return s+=O[0].length,parseInt(O[0],10)},A=this,_=function(){if(typeof a=="function"){d("m");var D=a.call(A,S.substring(s));return s+=D.length,D}return w("m")},y=function(D,N,I,k){for(var B=d(D,k)?I:N,O=0;O-1){m=1,h=b;for(var z=this.daysInMonth(l,m);h>z;z=this.daysInMonth(l,m))m++,h-=z}return c>-1?this.fromJD(c):this.newDate(l,m,h)},determineDate:function(i,S,x,v,p){x&&typeof x!="object"&&(p=v,v=x,x=null),typeof v!="string"&&(p=v,v="");var r=this,t=function(a){try{return r.parseDate(v,a,p)}catch{}a=a.toLowerCase();for(var n=(a.match(/^c/)&&x?x.newDate():null)||r.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=f.exec(a);c;)n.add(parseInt(c[1],10),c[2]||"d"),c=f.exec(a);return n};return S=S?S.newDate():null,i=i==null?S:typeof i=="string"?t(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?S:r.today().add(i,"d"):r.newDate(i),i}})},21576:function(){},19768:function(){},63436:function(G,U,e){var g=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],C=typeof globalThis>"u"?e.g:globalThis;G.exports=function(){for(var S=[],x=0;x>8&15|Le>>4&240,Le>>4&15|Le&240,(Le&15)<<4|Le&15,1):He===8?_(Le>>24&255,Le>>16&255,Le>>8&255,(Le&255)/255):He===4?_(Le>>12&15|Le>>8&240,Le>>8&15|Le>>4&240,Le>>4&15|Le&240,((Le&15)<<4|Le&15)/255):null):(Le=a.exec(me))?new T(Le[1],Le[2],Le[3],1):(Le=n.exec(me))?new T(Le[1]*255/100,Le[2]*255/100,Le[3]*255/100,1):(Le=f.exec(me))?_(Le[1],Le[2],Le[3],Le[4]):(Le=c.exec(me))?_(Le[1]*255/100,Le[2]*255/100,Le[3]*255/100,Le[4]):(Le=l.exec(me))?I(Le[1],Le[2]/100,Le[3]/100,1):(Le=m.exec(me))?I(Le[1],Le[2]/100,Le[3]/100,Le[4]):h.hasOwnProperty(me)?A(h[me]):me==="transparent"?new T(NaN,NaN,NaN,0):null}function A(me){return new T(me>>16&255,me>>8&255,me&255,1)}function _(me,Le,He,Ue){return Ue<=0&&(me=Le=He=NaN),new T(me,Le,He,Ue)}function y(me){return me instanceof i||(me=w(me)),me?(me=me.rgb(),new T(me.r,me.g,me.b,me.opacity)):new T}function E(me,Le,He,Ue){return arguments.length===1?y(me):new T(me,Le,He,Ue??1)}function T(me,Le,He,Ue){this.r=+me,this.g=+Le,this.b=+He,this.opacity=+Ue}g(T,E,C(i,{brighter:function(Le){return Le=Le==null?x:Math.pow(x,Le),new T(this.r*Le,this.g*Le,this.b*Le,this.opacity)},darker:function(Le){return Le=Le==null?S:Math.pow(S,Le),new T(this.r*Le,this.g*Le,this.b*Le,this.opacity)},rgb:function(){return this},clamp:function(){return new T(D(this.r),D(this.g),D(this.b),z(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:s,formatHex:s,formatHex8:L,formatRgb:M,toString:M}));function s(){return"#".concat(N(this.r)).concat(N(this.g)).concat(N(this.b))}function L(){return"#".concat(N(this.r)).concat(N(this.g)).concat(N(this.b)).concat(N((isNaN(this.opacity)?1:this.opacity)*255))}function M(){var me=z(this.opacity);return"".concat(me===1?"rgb(":"rgba(").concat(D(this.r),", ").concat(D(this.g),", ").concat(D(this.b)).concat(me===1?")":", ".concat(me,")"))}function z(me){return isNaN(me)?1:Math.max(0,Math.min(1,me))}function D(me){return Math.max(0,Math.min(255,Math.round(me)||0))}function N(me){return me=D(me),(me<16?"0":"")+me.toString(16)}function I(me,Le,He,Ue){return Ue<=0?me=Le=He=NaN:He<=0||He>=1?me=Le=NaN:Le<=0&&(me=NaN),new O(me,Le,He,Ue)}function k(me){if(me instanceof O)return new O(me.h,me.s,me.l,me.opacity);if(me instanceof i||(me=w(me)),!me)return new O;if(me instanceof O)return me;me=me.rgb();var Le=me.r/255,He=me.g/255,Ue=me.b/255,ke=Math.min(Le,He,Ue),Ve=Math.max(Le,He,Ue),Ie=NaN,rt=Ve-ke,Ke=(Ve+ke)/2;return rt?(Le===Ve?Ie=(He-Ue)/rt+(He0&&Ke<1?0:Ie,new O(Ie,rt,Ke,me.opacity)}function B(me,Le,He,Ue){return arguments.length===1?k(me):new O(me,Le,He,Ue??1)}function O(me,Le,He,Ue){this.h=+me,this.s=+Le,this.l=+He,this.opacity=+Ue}g(O,B,C(i,{brighter:function(Le){return Le=Le==null?x:Math.pow(x,Le),new O(this.h,this.s,this.l*Le,this.opacity)},darker:function(Le){return Le=Le==null?S:Math.pow(S,Le),new O(this.h,this.s,this.l*Le,this.opacity)},rgb:function(){var Le=this.h%360+(this.h<0)*360,He=isNaN(Le)||isNaN(this.s)?0:this.s,Ue=this.l,ke=Ue+(Ue<.5?Ue:1-Ue)*He,Ve=2*Ue-ke;return new T(j(Le>=240?Le-240:Le+120,Ve,ke),j(Le,Ve,ke),j(Le<120?Le+240:Le-120,Ve,ke),this.opacity)},clamp:function(){return new O(H(this.h),Y(this.s),Y(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Le=z(this.opacity);return"".concat(Le===1?"hsl(":"hsla(").concat(H(this.h),", ").concat(Y(this.s)*100,"%, ").concat(Y(this.l)*100,"%").concat(Le===1?")":", ".concat(Le,")"))}}));function H(me){return me=(me||0)%360,me<0?me+360:me}function Y(me){return Math.max(0,Math.min(1,me||0))}function j(me,Le,He){return(me<60?Le+(He-Le)*me/60:me<180?He:me<240?Le+(He-Le)*(240-me)/60:Le)*255}var te=function(me){return function(){return me}};function ie(me,Le){return function(He){return me+He*Le}}function ue(me,Le,He){return me=Math.pow(me,He),Le=Math.pow(Le,He)-me,He=1/He,function(Ue){return Math.pow(me+Ue*Le,He)}}function J(me){return(me=+me)==1?X:function(Le,He){return He-Le?ue(Le,He,me):te(isNaN(Le)?He:Le)}}function X(me,Le){var He=Le-me;return He?ie(me,He):te(isNaN(me)?Le:me)}var ee=function me(Le){var He=J(Le);function Ue(ke,Ve){var Ie=He((ke=E(ke)).r,(Ve=E(Ve)).r),rt=He(ke.g,Ve.g),Ke=He(ke.b,Ve.b),$e=X(ke.opacity,Ve.opacity);return function(lt){return ke.r=Ie(lt),ke.g=rt(lt),ke.b=Ke(lt),ke.opacity=$e(lt),ke+""}}return Ue.gamma=me,Ue}(1);function V(me,Le){var He=Le?Le.length:0,Ue=me?Math.min(He,me.length):0,ke=new Array(Ue),Ve=new Array(He),Ie;for(Ie=0;IeHe&&(Ve=Le.slice(He,Ve),rt[Ie]?rt[Ie]+=Ve:rt[++Ie]=Ve),(Ue=Ue[0])===(ke=ke[0])?rt[Ie]?rt[Ie]+=ke:rt[++Ie]=ke:(rt[++Ie]=null,Ke.push({i:Ie,x:oe(Ue,ke)})),He=ne.lastIndex;return HeMath.PI&&(ze-=dt),Xe<-Math.PI?Xe+=dt:Xe>Math.PI&&(Xe-=dt),ze<=Xe?U.theta=Math.max(ze,Math.min(Xe,U.theta)):U.theta=U.theta>(ze+Xe)/2?Math.max(ze,U.theta):Math.min(Xe,U.theta)),U.phi=Math.max(le.minPolarAngle,Math.min(le.maxPolarAngle,U.phi)),U.makeSafe(),le.enableDamping===!0?le.target.addScaledVector(C,le.dampingFactor):le.target.add(C),le.target.sub(le.cursor),le.target.clampLength(le.minTargetRadius,le.maxTargetRadius),le.target.add(le.cursor);let Je=!1;if(le.zoomToCursor&&l||le.object.isOrthographicCamera)U.radius=L(U.radius);else{const We=U.radius;U.radius=L(U.radius*g),Je=We!=U.radius}if(Ie.setFromSpherical(U),Ie.applyQuaternion(Ke),nt.copy(le.target).add(Ie),le.object.lookAt(le.target),le.enableDamping===!0?(e.theta*=1-le.dampingFactor,e.phi*=1-le.dampingFactor,C.multiplyScalar(1-le.dampingFactor)):(e.set(0,0,0),C.set(0,0,0)),le.zoomToCursor&&l){let We=null;if(le.object.isPerspectiveCamera){const Fe=Ie.length();We=L(Fe*g);const xe=Fe-We;le.object.position.addScaledVector(f,xe),le.object.updateMatrixWorld(),Je=!!xe}else if(le.object.isOrthographicCamera){const Fe=new bn(c.x,c.y,0);Fe.unproject(le.object);const xe=le.object.zoom;le.object.zoom=Math.max(le.minZoom,Math.min(le.maxZoom,le.object.zoom/g)),le.object.updateProjectionMatrix(),Je=xe!==le.object.zoom;const ye=new bn(c.x,c.y,0);ye.unproject(le.object),le.object.position.sub(ye).add(Fe),le.object.updateMatrixWorld(),We=Ie.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),le.zoomToCursor=!1;We!==null&&(this.screenSpacePanning?le.target.set(0,0,-1).transformDirection(le.object.matrix).multiplyScalar(We).add(le.object.position):(ap.origin.copy(le.object.position),ap.direction.set(0,0,-1).transformDirection(le.object.matrix),Math.abs(le.object.up.dot(ap.direction))G||8*(1-lt.dot(le.object.quaternion))>G||ht.distanceToSquared(le.target)>G?(le.dispatchEvent(Uy),$e.copy(le.object.position),lt.copy(le.object.quaternion),ht.copy(le.target),!0):!1}}(),this.dispose=function(){le.domElement.removeEventListener("contextmenu",Ae),le.domElement.removeEventListener("pointerdown",Q),le.domElement.removeEventListener("pointercancel",$),le.domElement.removeEventListener("wheel",ne),le.domElement.removeEventListener("pointermove",oe),le.domElement.removeEventListener("pointerup",$),le.domElement.getRootNode().removeEventListener("keydown",ge,{capture:!0}),le._domElementKeyEvents!==null&&(le._domElementKeyEvents.removeEventListener("keydown",we),le._domElementKeyEvents=null)};const le=this,De={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let Ze=De.NONE;const G=1e-6,U=new Ny,e=new Ny;let g=1;const C=new bn,i=new Wi,S=new Wi,x=new Wi,v=new Wi,p=new Wi,r=new Wi,t=new Wi,a=new Wi,n=new Wi,f=new bn,c=new Wi;let l=!1;const m=[],h={};let b=!1;function u(Ie){return Ie!==null?2*Math.PI/60*le.autoRotateSpeed*Ie:2*Math.PI/60/60*le.autoRotateSpeed}function o(Ie){const rt=Math.abs(Ie*.01);return Math.pow(.95,le.zoomSpeed*rt)}function d(Ie){e.theta-=Ie}function w(Ie){e.phi-=Ie}const A=function(){const Ie=new bn;return function(Ke,$e){Ie.setFromMatrixColumn($e,0),Ie.multiplyScalar(-Ke),C.add(Ie)}}(),_=function(){const Ie=new bn;return function(Ke,$e){le.screenSpacePanning===!0?Ie.setFromMatrixColumn($e,1):(Ie.setFromMatrixColumn($e,0),Ie.crossVectors(le.object.up,Ie)),Ie.multiplyScalar(Ke),C.add(Ie)}}(),y=function(){const Ie=new bn;return function(Ke,$e){const lt=le.domElement;if(le.object.isPerspectiveCamera){const ht=le.object.position;Ie.copy(ht).sub(le.target);let dt=Ie.length();dt*=Math.tan(le.object.fov/2*Math.PI/180),A(2*Ke*dt/lt.clientHeight,le.object.matrix),_(2*$e*dt/lt.clientHeight,le.object.matrix)}else le.object.isOrthographicCamera?(A(Ke*(le.object.right-le.object.left)/le.object.zoom/lt.clientWidth,le.object.matrix),_($e*(le.object.top-le.object.bottom)/le.object.zoom/lt.clientHeight,le.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),le.enablePan=!1)}}();function E(Ie){le.object.isPerspectiveCamera||le.object.isOrthographicCamera?g/=Ie:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),le.enableZoom=!1)}function T(Ie){le.object.isPerspectiveCamera||le.object.isOrthographicCamera?g*=Ie:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),le.enableZoom=!1)}function s(Ie,rt){if(!le.zoomToCursor)return;l=!0;const Ke=le.domElement.getBoundingClientRect(),$e=Ie-Ke.left,lt=rt-Ke.top,ht=Ke.width,dt=Ke.height;c.x=$e/ht*2-1,c.y=-(lt/dt)*2+1,f.set(c.x,c.y,1).unproject(le.object).sub(le.object.position).normalize()}function L(Ie){return Math.max(le.minDistance,Math.min(le.maxDistance,Ie))}function M(Ie){i.set(Ie.clientX,Ie.clientY)}function z(Ie){s(Ie.clientX,Ie.clientX),t.set(Ie.clientX,Ie.clientY)}function D(Ie){v.set(Ie.clientX,Ie.clientY)}function N(Ie){S.set(Ie.clientX,Ie.clientY),x.subVectors(S,i).multiplyScalar(le.rotateSpeed);const rt=le.domElement;d(2*Math.PI*x.x/rt.clientHeight),w(2*Math.PI*x.y/rt.clientHeight),i.copy(S),le.update()}function I(Ie){a.set(Ie.clientX,Ie.clientY),n.subVectors(a,t),n.y>0?E(o(n.y)):n.y<0&&T(o(n.y)),t.copy(a),le.update()}function k(Ie){p.set(Ie.clientX,Ie.clientY),r.subVectors(p,v).multiplyScalar(le.panSpeed),y(r.x,r.y),v.copy(p),le.update()}function B(Ie){s(Ie.clientX,Ie.clientY),Ie.deltaY<0?T(o(Ie.deltaY)):Ie.deltaY>0&&E(o(Ie.deltaY)),le.update()}function O(Ie){let rt=!1;switch(Ie.code){case le.keys.UP:Ie.ctrlKey||Ie.metaKey||Ie.shiftKey?w(2*Math.PI*le.rotateSpeed/le.domElement.clientHeight):y(0,le.keyPanSpeed),rt=!0;break;case le.keys.BOTTOM:Ie.ctrlKey||Ie.metaKey||Ie.shiftKey?w(-2*Math.PI*le.rotateSpeed/le.domElement.clientHeight):y(0,-le.keyPanSpeed),rt=!0;break;case le.keys.LEFT:Ie.ctrlKey||Ie.metaKey||Ie.shiftKey?d(2*Math.PI*le.rotateSpeed/le.domElement.clientHeight):y(le.keyPanSpeed,0),rt=!0;break;case le.keys.RIGHT:Ie.ctrlKey||Ie.metaKey||Ie.shiftKey?d(-2*Math.PI*le.rotateSpeed/le.domElement.clientHeight):y(-le.keyPanSpeed,0),rt=!0;break}rt&&(Ie.preventDefault(),le.update())}function H(Ie){if(m.length===1)i.set(Ie.pageX,Ie.pageY);else{const rt=ke(Ie),Ke=.5*(Ie.pageX+rt.x),$e=.5*(Ie.pageY+rt.y);i.set(Ke,$e)}}function Y(Ie){if(m.length===1)v.set(Ie.pageX,Ie.pageY);else{const rt=ke(Ie),Ke=.5*(Ie.pageX+rt.x),$e=.5*(Ie.pageY+rt.y);v.set(Ke,$e)}}function j(Ie){const rt=ke(Ie),Ke=Ie.pageX-rt.x,$e=Ie.pageY-rt.y,lt=Math.sqrt(Ke*Ke+$e*$e);t.set(0,lt)}function te(Ie){le.enableZoom&&j(Ie),le.enablePan&&Y(Ie)}function ie(Ie){le.enableZoom&&j(Ie),le.enableRotate&&H(Ie)}function ue(Ie){if(m.length==1)S.set(Ie.pageX,Ie.pageY);else{const Ke=ke(Ie),$e=.5*(Ie.pageX+Ke.x),lt=.5*(Ie.pageY+Ke.y);S.set($e,lt)}x.subVectors(S,i).multiplyScalar(le.rotateSpeed);const rt=le.domElement;d(2*Math.PI*x.x/rt.clientHeight),w(2*Math.PI*x.y/rt.clientHeight),i.copy(S)}function J(Ie){if(m.length===1)p.set(Ie.pageX,Ie.pageY);else{const rt=ke(Ie),Ke=.5*(Ie.pageX+rt.x),$e=.5*(Ie.pageY+rt.y);p.set(Ke,$e)}r.subVectors(p,v).multiplyScalar(le.panSpeed),y(r.x,r.y),v.copy(p)}function X(Ie){const rt=ke(Ie),Ke=Ie.pageX-rt.x,$e=Ie.pageY-rt.y,lt=Math.sqrt(Ke*Ke+$e*$e);a.set(0,lt),n.set(0,Math.pow(a.y/t.y,le.zoomSpeed)),E(n.y),t.copy(a);const ht=(Ie.pageX+rt.x)*.5,dt=(Ie.pageY+rt.y)*.5;s(ht,dt)}function ee(Ie){le.enableZoom&&X(Ie),le.enablePan&&J(Ie)}function V(Ie){le.enableZoom&&X(Ie),le.enableRotate&&ue(Ie)}function Q(Ie){le.enabled!==!1&&(m.length===0&&(le.domElement.setPointerCapture(Ie.pointerId),le.domElement.addEventListener("pointermove",oe),le.domElement.addEventListener("pointerup",$)),!He(Ie)&&(me(Ie),Ie.pointerType==="touch"?Re(Ie):Z(Ie)))}function oe(Ie){le.enabled!==!1&&(Ie.pointerType==="touch"?be(Ie):se(Ie))}function $(Ie){switch(Le(Ie),m.length){case 0:le.domElement.releasePointerCapture(Ie.pointerId),le.domElement.removeEventListener("pointermove",oe),le.domElement.removeEventListener("pointerup",$),le.dispatchEvent(Hy),Ze=De.NONE;break;case 1:const rt=m[0],Ke=h[rt];Re({pointerId:rt,pageX:Ke.x,pageY:Ke.y});break}}function Z(Ie){let rt;switch(Ie.button){case 0:rt=le.mouseButtons.LEFT;break;case 1:rt=le.mouseButtons.MIDDLE;break;case 2:rt=le.mouseButtons.RIGHT;break;default:rt=-1}switch(rt){case Dh.DOLLY:if(le.enableZoom===!1)return;z(Ie),Ze=De.DOLLY;break;case Dh.ROTATE:if(Ie.ctrlKey||Ie.metaKey||Ie.shiftKey){if(le.enablePan===!1)return;D(Ie),Ze=De.PAN}else{if(le.enableRotate===!1)return;M(Ie),Ze=De.ROTATE}break;case Dh.PAN:if(Ie.ctrlKey||Ie.metaKey||Ie.shiftKey){if(le.enableRotate===!1)return;M(Ie),Ze=De.ROTATE}else{if(le.enablePan===!1)return;D(Ie),Ze=De.PAN}break;default:Ze=De.NONE}Ze!==De.NONE&&le.dispatchEvent(I0)}function se(Ie){switch(Ze){case De.ROTATE:if(le.enableRotate===!1)return;N(Ie);break;case De.DOLLY:if(le.enableZoom===!1)return;I(Ie);break;case De.PAN:if(le.enablePan===!1)return;k(Ie);break}}function ne(Ie){le.enabled===!1||le.enableZoom===!1||Ze!==De.NONE||(Ie.preventDefault(),le.dispatchEvent(I0),B(ce(Ie)),le.dispatchEvent(Hy))}function ce(Ie){const rt=Ie.deltaMode,Ke={clientX:Ie.clientX,clientY:Ie.clientY,deltaY:Ie.deltaY};switch(rt){case 1:Ke.deltaY*=16;break;case 2:Ke.deltaY*=100;break}return Ie.ctrlKey&&!b&&(Ke.deltaY*=10),Ke}function ge(Ie){Ie.key==="Control"&&(b=!0,le.domElement.getRootNode().addEventListener("keyup",Te,{passive:!0,capture:!0}))}function Te(Ie){Ie.key==="Control"&&(b=!1,le.domElement.getRootNode().removeEventListener("keyup",Te,{passive:!0,capture:!0}))}function we(Ie){le.enabled===!1||le.enablePan===!1||O(Ie)}function Re(Ie){switch(Ue(Ie),m.length){case 1:switch(le.touches.ONE){case Ih.ROTATE:if(le.enableRotate===!1)return;H(Ie),Ze=De.TOUCH_ROTATE;break;case Ih.PAN:if(le.enablePan===!1)return;Y(Ie),Ze=De.TOUCH_PAN;break;default:Ze=De.NONE}break;case 2:switch(le.touches.TWO){case Ih.DOLLY_PAN:if(le.enableZoom===!1&&le.enablePan===!1)return;te(Ie),Ze=De.TOUCH_DOLLY_PAN;break;case Ih.DOLLY_ROTATE:if(le.enableZoom===!1&&le.enableRotate===!1)return;ie(Ie),Ze=De.TOUCH_DOLLY_ROTATE;break;default:Ze=De.NONE}break;default:Ze=De.NONE}Ze!==De.NONE&&le.dispatchEvent(I0)}function be(Ie){switch(Ue(Ie),Ze){case De.TOUCH_ROTATE:if(le.enableRotate===!1)return;ue(Ie),le.update();break;case De.TOUCH_PAN:if(le.enablePan===!1)return;J(Ie),le.update();break;case De.TOUCH_DOLLY_PAN:if(le.enableZoom===!1&&le.enablePan===!1)return;ee(Ie),le.update();break;case De.TOUCH_DOLLY_ROTATE:if(le.enableZoom===!1&&le.enableRotate===!1)return;V(Ie),le.update();break;default:Ze=De.NONE}}function Ae(Ie){le.enabled!==!1&&Ie.preventDefault()}function me(Ie){m.push(Ie.pointerId)}function Le(Ie){delete h[Ie.pointerId];for(let rt=0;rt=0?(p.material.opacity=1,a.material.opacity=.5):(p.material.opacity=.5,a.material.opacity=1),c.y>=0?(r.material.opacity=1,n.material.opacity=.5):(r.material.opacity=.5,n.material.opacity=1),c.z>=0?(t.material.opacity=1,f.material.opacity=.5):(t.material.opacity=.5,f.material.opacity=1);const T=q.offsetWidth-l;E.clearDepth(),E.getViewport(d),E.setViewport(T,0,l,l),E.render(this,C),E.setViewport(d.x,d.y,d.z,d.w)};const h=new bn,b=new ku,u=new ku,o=new ku,d=new No;let w=0;this.handleClick=function(E){if(this.animating===!0)return!1;const T=q.getBoundingClientRect(),s=T.left+(q.offsetWidth-l),L=T.top+(q.offsetHeight-l);e.x=(E.clientX-s)/(T.right-s)*2-1,e.y=-((E.clientY-L)/(T.bottom-L))*2+1,U.setFromCamera(e,C);const M=U.intersectObjects(G);if(M.length>0){const D=M[0].object;return A(D,this.center),this.animating=!0,!0}else return!1},this.update=function(E){const T=E*m;u.rotateTowards(o,T),F.position.set(0,0,1).applyQuaternion(u).multiplyScalar(w).add(this.center),F.quaternion.rotateTowards(b,T),u.angleTo(o)===0&&(this.animating=!1)},this.dispose=function(){i.dispose(),S.material.dispose(),x.material.dispose(),v.material.dispose(),p.material.map.dispose(),r.material.map.dispose(),t.material.map.dispose(),a.material.map.dispose(),n.material.map.dispose(),f.material.map.dispose(),p.material.dispose(),r.material.dispose(),t.material.dispose(),a.material.dispose(),n.material.dispose(),f.material.dispose()};function A(E,T){switch(E.userData.type){case"posX":h.set(1,0,0),b.setFromEuler(new Ss(0,Math.PI*.5,0));break;case"posY":h.set(0,1,0),b.setFromEuler(new Ss(-Math.PI*.5,0,0));break;case"posZ":h.set(0,0,1),b.setFromEuler(new Ss);break;case"negX":h.set(-1,0,0),b.setFromEuler(new Ss(0,-Math.PI*.5,0));break;case"negY":h.set(0,-1,0),b.setFromEuler(new Ss(Math.PI*.5,0,0));break;case"negZ":h.set(0,0,-1),b.setFromEuler(new Ss(0,Math.PI,0));break;default:console.error("ViewHelper: Invalid axis.")}w=F.position.distanceTo(T),h.multiplyScalar(w).add(T),g.position.copy(T),g.lookAt(F.position),u.copy(g.quaternion),g.lookAt(h),o.copy(g.quaternion)}function _(E){return new K0({color:E,toneMapped:!1})}function y(E,T=null){const s=document.createElement("canvas");s.width=64,s.height=64;const L=s.getContext("2d");L.beginPath(),L.arc(32,32,16,0,2*Math.PI),L.closePath(),L.fillStyle=E.getStyle(),L.fill(),T!==null&&(L.font="24px Arial",L.textAlign="center",L.fillStyle="#000000",L.fillText(T,32,41));const M=new yS(s);return new _1({map:M,toneMapped:!1})}}}var pc=function(){var _e=0,F=document.createElement("div");F.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",F.addEventListener("click",function(C){C.preventDefault(),le(++_e%F.children.length)},!1);function q(C){return F.appendChild(C.dom),C}function le(C){for(var i=0;i=Ze+1e3&&(U.update(G*1e3/(C-Ze),100),Ze=C,G=0,g)){var i=performance.memory;g.update(i.usedJSHeapSize/1048576,i.jsHeapSizeLimit/1048576)}return C},update:function(){De=this.end()},domElement:F,setMode:le}};pc.Panel=function(_e,F,q){var le=1/0,De=0,Ze=Math.round,G=Ze(window.devicePixelRatio||1),U=80*G,e=48*G,g=3*G,C=2*G,i=3*G,S=15*G,x=74*G,v=30*G,p=document.createElement("canvas");p.width=U,p.height=e,p.style.cssText="width:80px;height:48px";var r=p.getContext("2d");return r.font="bold "+9*G+"px Helvetica,Arial,sans-serif",r.textBaseline="top",r.fillStyle=q,r.fillRect(0,0,U,e),r.fillStyle=F,r.fillText(_e,g,C),r.fillRect(i,S,x,v),r.fillStyle=q,r.globalAlpha=.9,r.fillRect(i,S,x,v),{dom:p,update:function(t,a){le=Math.min(le,t),De=Math.max(De,t),r.fillStyle=q,r.globalAlpha=1,r.fillRect(0,0,U,S),r.fillStyle=F,r.fillText(Ze(t)+" "+_e+" ("+Ze(le)+"-"+Ze(De)+")",g,C),r.drawImage(p,i+G,S,x-G,v,i,S,x-G,v),r.fillRect(i+x-G,S,G,v),r.fillStyle=q,r.globalAlpha=.9,r.fillRect(i+x-G,S,G,Ze((1-t/a)*v))}}};function z1(_e,F,q){return _eq?q:_e}class k1{constructor(F,q){this.data={x:[],y:[],mode:"markers",marker:{size:1,color:"white"}},this.data.marker.color=q,this.trailLength=0,this.maxTrailLength=F,this.trailInd=0}addTrail(F,q){this.trailLength{Ze===!1&&this.universeTrails.forEach(G=>G.popAllTrails()),le.showTrails=Ze});const De=q.addFolder("Show Universe");De.open(!1),this.simulation.universes.forEach((Ze,G)=>{De.add(le.showUniverse,Ze.label).onChange(U=>{U===!1&&this.universeTrails[G].popAllTrails(),le.showUniverse[Ze.label]=U})})}start(F,q,le){if(this.divId!==""){console.error(F,"Simulation already playing. Stop the current playtime before initiating a new one.");return}this.divId=F;let De=document.getElementById(F);if(De===null)return;let Ze=0,G=0;this.simulation.universes.forEach(r=>r.currState.bodies.forEach(t=>{Ze=Math.max(Ze,Math.abs(t.position.x)),G=Math.max(G,Math.abs(t.position.y))}));const U=.5*Math.min(le/G,q/Ze),e={paper_bgcolor:"#000000",plot_bgcolor:"#000000",font:{color:"#bfbfbf"},xaxis:{autorange:!1,range:[-(q/2)/U,q/2/U]},yaxis:{autorange:!1,range:[-(le/2)/U,le/2/U]},showlegend:!1,width:q,height:le};this.simulation.controller==="ui"&&this.addControls(De);let g;this.simulation.showDebugInfo&&(g=new pc,g.dom.style.position="absolute",g.dom.style.bottom="0px",g.dom.style.removeProperty("top"),De.appendChild(g.dom));const C=this.simulation.universes.flatMap(r=>{const t=new k1(this.simulation.getMaxTrailLength(),typeof r.color=="string"?r.color:r.color[0]);this.universeTrails.push(t);const a={x:r.currState.bodies.map(n=>n.position.x),y:r.currState.bodies.map(n=>n.position.y),type:"scatter",mode:"markers",marker:{color:r.color,sizemin:6,size:r.currState.bodies.map(n=>Math.min(10,n.mass))}};return this.simulation.getShowTrails()?(r.currState.bodies.forEach(n=>{t.addTrail(n.position.x,n.position.y)}),[a,t.data]):[a,{x:[],y:[]}]});ov.newPlot(F,C,e,{scrollZoom:!0,modeBarButtonsToRemove:["lasso2d","select2d","toImage","resetScale2d"]});const i=1e3/this.simulation.maxFrameRate;let S=0,x=0;const v=r=>{this.simulation.simulateStep(this.simulation.controls.speed*Math.min(r-x,33.33)/1e3),x=r},p=r=>{if(this.simulation.controls.speed===0||this.simulation.controls.paused){this.animationId=requestAnimationFrame(p);return}if(v(r),i>0&&r-S{if(!this.simulation.getShowUniverse(a.label))return[{x:[],y:[]},{}];const f={x:a.currState.bodies.map(l=>l.position.x),y:a.currState.bodies.map(l=>l.position.y),hovertext:a.currState.bodies.map(l=>l.label),marker:{size:a.currState.bodies.map(l=>Math.min(10,l.mass)),color:a.color,sizemin:6},mode:"markers"};let c={};if(this.simulation.getShowTrails()){const l=this.universeTrails[n];a.currState.bodies.forEach(m=>{l.addTrail(m.position.x,m.position.y)}),c=l.data}return[f,c]});ov.react(F,t,e),this.simulation.showDebugInfo&&g&&g.update(),this.animationId=requestAnimationFrame(p)};this.animationId=requestAnimationFrame(p)}stop(){console.log("stopping in viz"),this.animationId!==null&&(cancelAnimationFrame(this.animationId),ov.purge(this.divId),this.divId="",this.universeTrails.forEach(F=>{F.popAllTrails()}),this.universeTrails=[])}}class O1{constructor(F,q,le,De){const Ze=new Ws;Ze.setAttribute("position",new Gs(new Float32Array(0),3)),this.trails=new mS(Ze,new L1({color:q,size:.005*De})),le.add(this.trails),this.trailInd=0,this.trailLength=0,this.maxTrailLength=F}addTrail(F){if(this.trailLength{Ze===!1&&this.universeTrails.forEach(G=>{G.popAllTrails()}),le.showTrails=Ze});const De=q.addFolder("Show Universe");De.open(!1),this.simulation.universes.forEach((Ze,G)=>{De.add(le.showUniverse,Ze.label).onChange(U=>{U===!1&&this.universeTrails[G].popAllTrails(),le.showUniverse[Ze.label]=U})})}start(F,q,le){if(this.scene!==void 0){console.error(F,"Simulation already playing. Stop the current playtime before initiating a new one.");return}let De=document.getElementById(F);if(De===null)return;De.style.position="relative";let Ze=0,G=0;this.simulation.universes.forEach(n=>n.currState.bodies.forEach(f=>{Ze=Math.max(Ze,Math.abs(f.position.x)),G=Math.max(G,Math.abs(f.position.y))}));const U=.5*Math.min(le/G,q/Ze);this.scene=new E1;const e=new yp(q/-2,q/2,le/2,le/-2,0,1e10);e.position.set(0,0,Math.max(q,le)),this.renderer=new S1,this.renderer.setSize(q,le),this.renderer.autoClear=!1,De.appendChild(this.renderer.domElement);let g;this.simulation.showDebugInfo&&(g=new pc,g.dom.style.position="absolute",g.dom.style.right="0px",g.dom.style.removeProperty("left"),De.appendChild(g.dom)),this.simulation.controller==="ui"&&this.addControls(De);const C=new I1(e,this.renderer.domElement);C.listenToKeyEvents(window),C.update();const i=new R1(q);this.scene.add(i);const S=new F1(e,this.renderer.domElement);let x=[];this.simulation.universes.forEach(n=>{this.universeTrails.push(new O1(this.simulation.maxTrailLength,typeof n.color=="string"?n.color:n.color[0],this.scene,U)),n.currState.bodies.forEach(f=>{const c=new wp(z1(Math.log2(f.mass)-70,10,40),8,8),l=new P1(c),m=new Q0(l,new bp({color:new da(n.color)}));this.scene.add(m),m.position.copy(f.position.clone().multiplyScalar(U)),x.push(m)})});const v=1e3/this.simulation.maxFrameRate;let p=performance.now(),r=performance.now();const t=n=>{this.simulation.simulateStep(this.simulation.controls.speed*Math.min(n-p,16.67)/1e3),p=n},a=n=>{if(this.simulation.controls.speed===0||this.simulation.controls.paused){this.animationId=requestAnimationFrame(a),this.renderer.clear(),this.renderer.render(this.scene,e),S.render(this.renderer),C.update();return}if(t(n),v>0&&n-r{this.simulation.controls.showUniverse[c.label]?c.currState.bodies.forEach(m=>{x[f].visible=!0,x[f].position.copy(m.position.clone().multiplyScalar(U)),this.simulation.controls.showTrails&&this.universeTrails[l].addTrail(x[f].position),f++}):c.currState.bodies.forEach(m=>{x[f].visible=!1,f++})}),this.animationId=requestAnimationFrame(a),this.renderer.clear(),this.renderer.render(this.scene,e),S.render(this.renderer),C.update()};this.animationId=requestAnimationFrame(a)}stop(){var F,q,le;this.animationId!==null&&(cancelAnimationFrame(this.animationId),(F=this.renderer)==null||F.clear(),(q=this.renderer)==null||q.dispose(),(le=this.scene)==null||le.clear(),this.scene=void 0,this.renderer=null,this.universeTrails.forEach(De=>{De.popAllTrails()}),this.universeTrails=[])}}class NS{constructor(F){this.animationId=null,this.divId="",this.universeTrails=[],this.simulation=F}addControls(F){const q=new vv({container:F});q.domElement.style.position="absolute",q.domElement.style.top="0",q.domElement.style.left="0",q.domElement.style.zIndex="1000";const le=this.simulation.controls;q.add(le,"speed"),q.add(le,"showTrails").onChange(Ze=>{Ze===!1&&this.universeTrails.forEach(G=>G.popAllTrails()),le.showTrails=Ze});const De=q.addFolder("Show Universe");De.open(!1),this.simulation.universes.forEach((Ze,G)=>{De.add(le.showUniverse,Ze.label).onChange(U=>{U===!1&&this.universeTrails[G].popAllTrails(),le.showUniverse[Ze.label]=U})})}start(F,q,le,De){if(this.divId!==""){console.error("Simulation already playing. Stop the current playtime before initiating a new one.");return}this.divId=F;let Ze=document.getElementById(F);if(Ze===null)return;let G=0,U=0;this.simulation.universes.forEach(r=>r.currState.bodies.forEach(t=>{G=Math.max(G,Math.abs(t.position.x)),U=Math.max(U,Math.abs(t.position.y))}));const e=.5*Math.min(le/U,q/G),g=[],C=this.simulation.maxFrameRate*De;let i=1;this.simulation.universes.forEach(r=>{g.push([r.currState.clone()])});for(let r=0;r{g[a].push(t.currState.clone())});const S={paper_bgcolor:"#000000",plot_bgcolor:"#000000",font:{color:"#bfbfbf"},xaxis:{autorange:!1,range:[-(q/2)/e,q/2/e]},yaxis:{autorange:!1,range:[-(le/2)/e,le/2/e]},showlegend:!1,width:q,height:le};this.simulation.controller==="ui"&&this.addControls(Ze);let x;this.simulation.showDebugInfo&&(x=new pc,x.dom.style.position="absolute",x.dom.style.bottom="0px",x.dom.style.removeProperty("top"),Ze.appendChild(x.dom));const v=this.simulation.universes.flatMap(r=>{const t=new k1(this.simulation.getMaxTrailLength(),typeof r.color=="string"?r.color:r.color[0]);this.universeTrails.push(t);const a={x:r.currState.bodies.map(n=>n.position.x),y:r.currState.bodies.map(n=>n.position.y),type:"scatter",mode:"markers",marker:{color:r.color,sizemin:6,size:r.currState.bodies.map(n=>Math.min(10,n.mass))}};return this.simulation.getShowTrails()?(r.currState.bodies.forEach(n=>{t.addTrail(n.position.x,n.position.y)}),[a,t.data]):[a,{x:[],y:[]}]});ov.newPlot(F,v,S,{scrollZoom:!0,modeBarButtonsToRemove:["zoom2d","lasso2d","select2d","toImage","resetScale2d"]});const p=r=>{if(this.simulation.controls.speed===0||this.simulation.controls.paused){this.animationId=requestAnimationFrame(p);return}const t=Math.round(i),a=this.simulation.universes.flatMap((n,f)=>{if(!this.simulation.getShowUniverse(n.label))return[{x:[],y:[]},{}];const c=g[f][t],l={x:c.bodies.map(h=>h.position.x),y:c.bodies.map(h=>h.position.y),hovertext:c.bodies.map(h=>h.label),marker:{size:c.bodies.map(h=>Math.min(10,h.mass)),color:n.color,sizemin:6},mode:"markers"};let m={};if(this.simulation.getShowTrails()){const h=this.universeTrails[f];c.bodies.forEach(b=>{h.addTrail(b.position.x,b.position.y)}),m=h.data}return[l,m]});ov.react(F,a,S),this.simulation.showDebugInfo&&x&&x.update(),i=Math.round(i+this.simulation.controls.speed),i<0?this.simulation.looped?i=(i%C+C)%C:i=0:i>=C&&(this.simulation.looped?i%=C:i=C-1),this.animationId=requestAnimationFrame(p)};this.animationId=requestAnimationFrame(p)}stop(){this.animationId!==null&&(cancelAnimationFrame(this.animationId),ov.purge(this.divId),this.divId="",this.universeTrails=[])}}class BS{constructor(F){this.animationId=null,this.universeTrails=[],this.simulation=F}addControls(F){const q=new vv({container:F});q.domElement.style.position="absolute",q.domElement.style.top="0",q.domElement.style.left="0",q.domElement.style.zIndex="1000";const le=this.simulation.controls;q.add(le,"speed"),q.add(le,"showTrails").onChange(Ze=>{Ze===!1&&this.universeTrails.forEach(G=>{G.popAllTrails()}),le.showTrails=Ze});const De=q.addFolder("Show Universe");De.open(!1),this.simulation.universes.forEach((Ze,G)=>{De.add(le.showUniverse,Ze.label).onChange(U=>{U===!1&&this.universeTrails[G].popAllTrails(),le.showUniverse[Ze.label]=U})})}start(F,q,le,De){if(this.scene!==void 0){console.error("Simulation already playing. Stop the current playtime before initiating a new one.");return}let Ze=document.getElementById(F);if(Ze===null)return;let G=0,U=0;this.simulation.universes.forEach(f=>f.currState.bodies.forEach(c=>{G=Math.max(G,Math.abs(c.position.x)),U=Math.max(U,Math.abs(c.position.y))}));const e=.5*Math.min(le/U,q/G);this.scene=new E1;const g=new yp(q/-2,q/2,le/2,le/-2,0,1e10);g.position.set(0,0,Math.max(q,le));const C=new S1;C.setSize(q,le),C.autoClear=!1,Ze.appendChild(C.domElement);let i;this.simulation.showDebugInfo&&(i=new pc,i.dom.style.position="absolute",i.dom.style.right="0px",i.dom.style.removeProperty("left"),Ze.appendChild(i.dom)),this.simulation.controller==="ui"&&this.addControls(Ze);const S=new I1(g,C.domElement);S.listenToKeyEvents(window),S.update();const x=new R1(q);this.scene.add(x);const v=new F1(g,C.domElement);let p=[];this.simulation.universes.forEach(f=>{this.universeTrails.push(new O1(this.simulation.maxTrailLength,typeof f.color=="string"?f.color:f.color[0],this.scene,e)),f.currState.bodies.forEach(c=>{const l=new wp(z1(Math.log2(c.mass)-70,10,40),8,8),m=new P1(l),h=new Q0(m,new bp({color:new da(f.color)}));this.scene.add(h),h.position.copy(c.position.clone().multiplyScalar(e)),p.push(h)})});const r=[],t=this.simulation.maxFrameRate*De;let a=1;this.simulation.universes.forEach(f=>{r.push([f.currState.clone()])});for(let f=0;f{r[l].push(c.currState.clone())});const n=f=>{if(this.simulation.controls.speed===0||this.simulation.controls.paused){this.animationId=requestAnimationFrame(n),C.clear(),C.render(this.scene,g),v.render(C),S.update();return}let c=0;this.simulation.universes.forEach((l,m)=>{this.simulation.controls.showUniverse[l.label]?r[m][a].bodies.forEach(b=>{p[c].visible=!0,p[c].position.copy(b.position.clone().multiplyScalar(e)),this.simulation.controls.showTrails&&this.universeTrails[m].addTrail(p[c].position),c++}):l.currState.bodies.forEach(()=>{p[c].visible=!1,c++})}),this.simulation.showDebugInfo&&i&&i.update(),a=Math.round(a+this.simulation.controls.speed),a<0?this.simulation.looped?a=(a%t+t)%t:a=0:a>=t&&(this.simulation.looped?a%=t:a=t-1),this.animationId=requestAnimationFrame(n),C.clear(),C.render(this.scene,g),v.render(C),S.update()};this.animationId=requestAnimationFrame(n)}stop(){var F;this.animationId!==null&&(cancelAnimationFrame(this.animationId),(F=this.scene)==null||F.clear(),this.scene=void 0,this.universeTrails.forEach(q=>{q.popAllTrails()}),this.universeTrails=[])}}let US=class{constructor(F,{visType:q="2D",record:le=!1,looped:De=!0,controller:Ze="none",showTrails:G=!1,showDebugInfo:U=!1,maxFrameRate:e=-1,maxTrailLength:g=100}){if(this.controls={speed:1,paused:!0,showTrails:!1,showUniverse:{}},this.universes=Array.isArray(F)?F:[F],this.universes.length>10)throw new Error("Too many universes");if(new Set(this.universes.map(i=>i.label)).size!==this.universes.length)throw new Error("Duplicate label in universes");this.controller=Ze,this.universes.forEach(i=>{this.controls.showUniverse[i.label]=!0}),this.controls.showTrails=G,this.showDebugInfo=U,this.maxFrameRate=e,this.maxTrailLength=g,this.looped=De,le?(this.maxFrameRate=60,this.visualizer=q==="2D"?new NS(this):new BS(this)):this.visualizer=q==="2D"?new kS(this):new OS(this)}getSpeed(){return this.controls.speed}setSpeed(F){this.controller==="code"&&(this.controls.speed=F)}isPlaying(){return!this.controls.paused}pause(){this.controller==="code"&&(this.controls.paused=!0)}resume(){this.controller==="code"&&(this.controls.paused=!1)}getShowTrails(){return this.controls.showTrails}setShowTrails(F){this.controller==="code"&&(this.controls.showTrails=F)}getShowUniverse(F){return this.controls.showUniverse[F]}setShowUniverse(F,q){this.controller==="code"&&(this.controls.showUniverse[F]=q)}getMaxTrailLength(){return this.maxTrailLength}setMaxTrailLength(F){this.controller==="code"&&(this.maxTrailLength=F)}simulateStep(F){this.universes.forEach(q=>{q.simulateStep(F)})}start(F,q,le,De=1,Ze=!1,G=0){if(G===void 0)throw new Error("recordFor must be defined if record is true");this.controls.paused=Ze,this.controls.speed=De,this.visualizer.start(F,q,le,G)}stop(){this.visualizer.stop()}};class $0{constructor(F){if(F.currState===void 0)throw new Error("Missing Current State in Universe");if(F.simFunc===void 0)throw new Error("Missing Simulation Function in Universe");this.label=F.label===void 0?"Universe":F.label,this.prevState=F.prevState===void 0?F.currState:F.prevState,this.currState=F.currState,this.color=F.color===void 0?"rgba(255, 255, 255, 1)":F.color,this.simFunc=F.simFunc,this.transformations=F.transformations===void 0?[]:Array.isArray(F.transformations)?F.transformations:[F.transformations]}simulateStep(F){let q=this.simFunc.simulate(F,this.currState,this.prevState);this.prevState=this.currState,this.transformations.forEach(le=>{q=le.transform(q,F)}),this.currState=q}clone(){return new $0({prevState:this.prevState.clone(),currState:this.currState.clone(),color:this.color,label:this.label,simFunc:this.simFunc,transformations:this.transformations})}}const N1=({storyName:_e="default",visType:F="2D",record:q=!1,looped:le=!0,controller:De="ui",showTrails:Ze=!1,showDebugInfo:G=!0,maxFrameRate:U=-1,maxTrailLength:e=100,...g})=>{const C="demo-"+_e,i=new bS(1),S=new Xv("a",1,new bn(-.97000436,.24308753,0),new bn(.466203685,.43236573,0),new bn(0,0,0)),x=new Xv("b",1,new bn(.97000436,-.24308753,0),new bn(.466203685,.43236573,0),new bn(0,0,0)),v=new Xv("c",1,new bn(0,0,0),new bn(-2*.466203685,-2*.43236573,0),new bn(0,0,0)),p=new $0({label:"a",currState:new Tp([S,x,v]),color:"rgba(254, 209, 106, 1)",simFunc:new wS(i,[1,2,2,1])}),r=new US([p],{visType:F,record:q,looped:le,controller:De,showTrails:Ze,showDebugInfo:G,maxFrameRate:U,maxTrailLength:e});return O3.jsx("div",{id:C,style:{width:600,height:600,position:"relative"},ref:()=>r.start(C,600,600)})};N1.__docgenInfo={description:"Primary UI component for user interaction",methods:[],displayName:"Simulation",props:{storyName:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'default'",computed:!1}},visType:{required:!1,tsType:{name:"union",raw:"'2D' | '3D'",elements:[{name:"literal",value:"'2D'"},{name:"literal",value:"'3D'"}]},description:"",defaultValue:{value:"'2D'",computed:!1}},record:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},looped:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},controller:{required:!1,tsType:{name:"union",raw:"'ui' | 'code' | 'none'",elements:[{name:"literal",value:"'ui'"},{name:"literal",value:"'code'"},{name:"literal",value:"'none'"}]},description:"",defaultValue:{value:"'ui'",computed:!1}},showTrails:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},showDebugInfo:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},maxFrameRate:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"-1",computed:!1}},maxTrailLength:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"100",computed:!1}}}};const HS={title:"Examples/Simulation",component:N1,parameters:{layout:"centered",controls:{disable:!0}},tags:[],argTypes:{},args:{}},Wv={args:{storyName:"2D"}},Yv={args:{storyName:"3D",visType:"3D"}};var Gy,Wy,Yy;Wv.parameters={...Wv.parameters,docs:{...(Gy=Wv.parameters)==null?void 0:Gy.docs,source:{originalSource:`{ + args: { + storyName: '2D' + } +}`,...(Yy=(Wy=Wv.parameters)==null?void 0:Wy.docs)==null?void 0:Yy.source}}};var Xy,Zy,jy;Yv.parameters={...Yv.parameters,docs:{...(Xy=Yv.parameters)==null?void 0:Xy.docs,source:{originalSource:`{ + args: { + storyName: '3D', + visType: '3D' + } +}`,...(jy=(Zy=Yv.parameters)==null?void 0:Zy.docs)==null?void 0:jy.source}}};const VS=["TwoDim","ThreeDim"],XS=Object.freeze(Object.defineProperty({__proto__:null,ThreeDim:Yv,TwoDim:Wv,__namedExportsOrder:VS,default:HS},Symbol.toStringTag,{value:"Module"}));export{XS as S,Wv as T,Yv as a}; diff --git a/docs/assets/WithTooltip-Y7J54OF7-DP4HB9AU.js b/docs/assets/WithTooltip-Y7J54OF7-DP4HB9AU.js new file mode 100644 index 0000000..394843f --- /dev/null +++ b/docs/assets/WithTooltip-Y7J54OF7-DP4HB9AU.js @@ -0,0 +1 @@ +import{W as T,W as e,b as h}from"./index-Bd-WH8Nz.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-BBkUAzwr.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";export{T as WithToolTipState,e as WithTooltip,h as WithTooltipPure}; diff --git a/docs/assets/entry-preview-docs-Db1JGYqY.js b/docs/assets/entry-preview-docs-Db1JGYqY.js new file mode 100644 index 0000000..f9083d8 --- /dev/null +++ b/docs/assets/entry-preview-docs-Db1JGYqY.js @@ -0,0 +1,54 @@ +import{u as Jn,b as Si,c as Xn,d as _i,e as Hn,f as Qn,g as Yn,S as Kn,h as te,j as Ur,k as Gr,l as Wr,m as Zn,n as es,T as zr,o as ft,p as ts}from"./index-DrlA5mbP.js";import{g as pt,c as lt,a as rs,R as at,r as We}from"./index-BBkUAzwr.js";import{d as is}from"./index-DrFu-skq.js";var Ei={exports:{}},ns="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ss=ns,as=ss;function Ci(){}function Ai(){}Ai.resetWarningCache=Ci;var os=function(){function e(i,s,a,u,f,p){if(p!==as){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ai,resetWarningCache:Ci};return r.PropTypes=r,r};Ei.exports=os();var us=Ei.exports;const $r=pt(us),ls=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var cs=ls;const hs=pt(cs);var wi={},ki={};(function(e){(function t(r){var i,s,a,u,f,p;function y(m){var x={},_,k;for(_ in m)m.hasOwnProperty(_)&&(k=m[_],typeof k=="object"&&k!==null?x[_]=y(k):x[_]=k);return x}function g(m,x){var _,k,B,R;for(k=m.length,B=0;k;)_=k>>>1,R=B+_,x(m[R])?k=_:(B=R+1,k-=_+1);return B}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},u={},f={},p={},s={Break:u,Skip:f,Remove:p};function b(m,x){this.parent=m,this.key=x}b.prototype.replace=function(x){this.parent[this.key]=x},b.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function E(m,x,_,k){this.node=m,this.path=x,this.wrap=_,this.ref=k}function S(){}S.prototype.path=function(){var x,_,k,B,R,G;function q(D,H){if(Array.isArray(H))for(k=0,B=H.length;k=0;--_)if(m[_].node===x)return!0;return!1}S.prototype.traverse=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe;for(this.__initialize(x,_),xe={},k=this.__worklist,B=this.__leavelist,k.push(new E(x,null,null,null)),B.push(new E(null,null,null,null));k.length;){if(R=k.pop(),R===xe){if(R=B.pop(),D=this.__execute(_.leave,R),this.__state===u||D===u)return;continue}if(R.node){if(D=this.__execute(_.enter,R),this.__state===u||D===u)return;if(k.push(xe),B.push(R),this.__state===f||D===f)continue;if(G=R.node,q=G.type||R.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(G);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(H=ie[ne],Q=G[H],!!Q){if(Array.isArray(Q)){for(ue=Q.length;(ue-=1)>=0;)if(Q[ue]&&!P(B,Q[ue])){if(v(q,ie[ne]))R=new E(Q[ue],[H,ue],"Property",null);else if(C(Q[ue]))R=new E(Q[ue],[H,ue],null,null);else continue;k.push(R)}}else if(C(Q)){if(P(B,Q))continue;k.push(new E(Q,H,null,null))}}}}},S.prototype.replace=function(x,_){var k,B,R,G,q,D,H,ne,ue,ie,Q,xe,Te;function Je(M){var Ve,xt,Fe,ee;if(M.ref.remove()){for(xt=M.ref.key,ee=M.ref.parent,Ve=k.length;Ve--;)if(Fe=k[Ve],Fe.ref&&Fe.ref.parent===ee){if(Fe.ref.key=0;)if(Te=ue[H],ie=R[Te],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(v(G,ue[H]))D=new E(ie[ne],[Te,ne],"Property",new b(ie,ne));else if(C(ie[ne]))D=new E(ie[ne],[Te,ne],null,new b(ie,ne));else continue;k.push(D)}}else C(ie)&&k.push(new E(ie,Te,null,new b(R,Te)))}}return xe.root};function O(m,x){var _=new S;return _.traverse(m,x)}function L(m,x){var _=new S;return _.replace(m,x)}function V(m,x){var _;return _=g(x,function(B){return B.range[0]>m.range[0]}),m.extendedRange=[m.range[0],m.range[1]],_!==x.length&&(m.extendedRange[1]=x[_].range[0]),_-=1,_>=0&&(m.extendedRange[0]=x[_].range[1]),m}function A(m,x,_){var k=[],B,R,G,q;if(!m.range)throw new Error("attachComments needs range information");if(!_.length){if(x.length){for(G=0,R=x.length;GD.range[0]));)H.extendedRange[1]===D.range[0]?(D.leadingComments||(D.leadingComments=[]),D.leadingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>D.range[1])return s.Skip}}),q=0,O(m,{leave:function(D){for(var H;qD.range[1])return s.Skip}}),m}return r.Syntax=i,r.traverse=O,r.replace=L,r.attachComments=A,r.VisitorKeys=a,r.VisitorOption=s,r.Controller=S,r.cloneEnvironment=function(){return t({})},r})(e)})(ki);var it={},Kt={},Et={},Ct={},Jr;function fs(){if(Jr)return Ct;Jr=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Ct.encode=function(t){if(0<=t&&t>1;return p?-y:y}return Et.encode=function(p){var y="",g,b=a(p);do g=b&i,b>>>=t,b>0&&(g|=s),y+=e.encode(g);while(b>0);return y},Et.decode=function(p,y,g){var b=p.length,E=0,S=0,C,v;do{if(y>=b)throw new Error("Expected more digits in base 64 VLQ value.");if(v=e.decode(p.charCodeAt(y++)),v===-1)throw new Error("Invalid base64 digit: "+p.charAt(y-1));C=!!(v&s),v&=i,E=E+(v<=0;G--)B=k[G],B==="."?k.splice(G,1):B===".."?R++:R>0&&(B===""?(k.splice(G+1,R),R=0):(k.splice(G,2),R--));return m=k.join("/"),m===""&&(m=_?"/":"."),x?(x.path=m,a(x)):m}e.normalize=u;function f(A,m){A===""&&(A="."),m===""&&(m=".");var x=s(m),_=s(A);if(_&&(A=_.path||"/"),x&&!x.scheme)return _&&(x.scheme=_.scheme),a(x);if(x||m.match(i))return m;if(_&&!_.host&&!_.path)return _.host=m,a(_);var k=m.charAt(0)==="/"?m:u(A.replace(/\/+$/,"")+"/"+m);return _?(_.path=k,a(_)):k}e.join=f,e.isAbsolute=function(A){return A.charAt(0)==="/"||r.test(A)};function p(A,m){A===""&&(A="."),A=A.replace(/\/$/,"");for(var x=0;m.indexOf(A+"/")!==0;){var _=A.lastIndexOf("/");if(_<0||(A=A.slice(0,_),A.match(/^([^\/]+:\/)?\/*$/)))return m;++x}return Array(x+1).join("../")+m.substr(A.length+1)}e.relative=p;var y=function(){var A=Object.create(null);return!("__proto__"in A)}();function g(A){return A}function b(A){return S(A)?"$"+A:A}e.toSetString=y?g:b;function E(A){return S(A)?A.slice(1):A}e.fromSetString=y?g:E;function S(A){if(!A)return!1;var m=A.length;if(m<9||A.charCodeAt(m-1)!==95||A.charCodeAt(m-2)!==95||A.charCodeAt(m-3)!==111||A.charCodeAt(m-4)!==116||A.charCodeAt(m-5)!==111||A.charCodeAt(m-6)!==114||A.charCodeAt(m-7)!==112||A.charCodeAt(m-8)!==95||A.charCodeAt(m-9)!==95)return!1;for(var x=m-10;x>=0;x--)if(A.charCodeAt(x)!==36)return!1;return!0}function C(A,m,x){var _=P(A.source,m.source);return _!==0||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0||x)||(_=A.generatedColumn-m.generatedColumn,_!==0)||(_=A.generatedLine-m.generatedLine,_!==0)?_:P(A.name,m.name)}e.compareByOriginalPositions=C;function v(A,m,x){var _=A.generatedLine-m.generatedLine;return _!==0||(_=A.generatedColumn-m.generatedColumn,_!==0||x)||(_=P(A.source,m.source),_!==0)||(_=A.originalLine-m.originalLine,_!==0)||(_=A.originalColumn-m.originalColumn,_!==0)?_:P(A.name,m.name)}e.compareByGeneratedPositionsDeflated=v;function P(A,m){return A===m?0:A===null?1:m===null?-1:A>m?1:-1}function O(A,m){var x=A.generatedLine-m.generatedLine;return x!==0||(x=A.generatedColumn-m.generatedColumn,x!==0)||(x=P(A.source,m.source),x!==0)||(x=A.originalLine-m.originalLine,x!==0)||(x=A.originalColumn-m.originalColumn,x!==0)?x:P(A.name,m.name)}e.compareByGeneratedPositionsInflated=O;function L(A){return JSON.parse(A.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function V(A,m,x){if(m=m||"",A&&(A[A.length-1]!=="/"&&m[0]!=="/"&&(A+="/"),m=A+m),x){var _=s(x);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var k=_.path.lastIndexOf("/");k>=0&&(_.path=_.path.substring(0,k+1))}m=f(a(_),m)}return u(m)}e.computeSourceURL=V}(Zt)),Zt}var er={},Qr;function Pi(){if(Qr)return er;Qr=1;var e=dt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(a,u){for(var f=new i,p=0,y=a.length;p=0)return u}else{var f=e.toSetString(a);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+a+'" is not in the set.')},i.prototype.at=function(a){if(a>=0&&aa||u==a&&p>=f||e.compareByGeneratedPositionsInflated(i,s)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(s,a){this._array.forEach(s,a)},r.prototype.add=function(s){t(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=!1,this._array.push(s))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},tr.MappingList=r,tr}var Kr;function Ii(){if(Kr)return Kt;Kr=1;var e=Ti(),t=dt(),r=Pi().ArraySet,i=ps().MappingList;function s(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return s.prototype._version=3,s.fromSourceMap=function(u){var f=u.sourceRoot,p=new s({file:u.file,sourceRoot:f});return u.eachMapping(function(y){var g={generated:{line:y.generatedLine,column:y.generatedColumn}};y.source!=null&&(g.source=y.source,f!=null&&(g.source=t.relative(f,g.source)),g.original={line:y.originalLine,column:y.originalColumn},y.name!=null&&(g.name=y.name)),p.addMapping(g)}),u.sources.forEach(function(y){var g=y;f!==null&&(g=t.relative(f,y)),p._sources.has(g)||p._sources.add(g);var b=u.sourceContentFor(y);b!=null&&p.setSourceContent(y,b)}),p},s.prototype.addMapping=function(u){var f=t.getArg(u,"generated"),p=t.getArg(u,"original",null),y=t.getArg(u,"source",null),g=t.getArg(u,"name",null);this._skipValidation||this._validateMapping(f,p,y,g),y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:y,name:g})},s.prototype.setSourceContent=function(u,f){var p=u;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(u,f,p){var y=f;if(f==null){if(u.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=u.file}var g=this._sourceRoot;g!=null&&(y=t.relative(g,y));var b=new r,E=new r;this._mappings.unsortedForEach(function(S){if(S.source===y&&S.originalLine!=null){var C=u.originalPositionFor({line:S.originalLine,column:S.originalColumn});C.source!=null&&(S.source=C.source,p!=null&&(S.source=t.join(p,S.source)),g!=null&&(S.source=t.relative(g,S.source)),S.originalLine=C.line,S.originalColumn=C.column,C.name!=null&&(S.name=C.name))}var v=S.source;v!=null&&!b.has(v)&&b.add(v);var P=S.name;P!=null&&!E.has(P)&&E.add(P)},this),this._sources=b,this._names=E,u.sources.forEach(function(S){var C=u.sourceContentFor(S);C!=null&&(p!=null&&(S=t.join(p,S)),g!=null&&(S=t.relative(g,S)),this.setSourceContent(S,C))},this)},s.prototype._validateMapping=function(u,f,p,y){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(u&&"line"in u&&"column"in u&&u.line>0&&u.column>=0&&!f&&!p&&!y)){if(u&&"line"in u&&"column"in u&&f&&"line"in f&&"column"in f&&u.line>0&&u.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:u,source:p,original:f,name:y}))}},s.prototype._serializeMappings=function(){for(var u=0,f=1,p=0,y=0,g=0,b=0,E="",S,C,v,P,O=this._mappings.toArray(),L=0,V=O.length;L0){if(!t.compareByGeneratedPositionsInflated(C,O[L-1]))continue;S+=","}S+=e.encode(C.generatedColumn-u),u=C.generatedColumn,C.source!=null&&(P=this._sources.indexOf(C.source),S+=e.encode(P-b),b=P,S+=e.encode(C.originalLine-1-y),y=C.originalLine-1,S+=e.encode(C.originalColumn-p),p=C.originalColumn,C.name!=null&&(v=this._names.indexOf(C.name),S+=e.encode(v-g),g=v)),E+=S}return E},s.prototype._generateSourcesContent=function(u,f){return u.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var y=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},s.prototype.toJSON=function(){var u={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(u.file=this._file),this._sourceRoot!=null&&(u.sourceRoot=this._sourceRoot),this._sourcesContents&&(u.sourcesContent=this._generateSourcesContent(u.sources,u.sourceRoot)),u},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},Kt.SourceMapGenerator=s,Kt}var nt={},rr={},Zr;function ds(){return Zr||(Zr=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,s,a,u,f){var p=Math.floor((i-r)/2)+r,y=u(s,a[p],!0);return y===0?p:y>0?i-p>1?t(p,i,s,a,u,f):f==e.LEAST_UPPER_BOUND?i1?t(r,p,s,a,u,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,s,a,u){if(s.length===0)return-1;var f=t(-1,s.length,i,s,a,u||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&a(s[f],s[f-1],!0)===0;)--f;return f}}(rr)),rr}var ir={},ei;function ms(){if(ei)return ir;ei=1;function e(i,s,a){var u=i[s];i[s]=i[a],i[a]=u}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,a,u){if(a=0){var v=this._originalMappings[C];if(g.column===void 0)for(var P=v.originalLine;v&&v.originalLine===P;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C];else for(var O=v.originalColumn;v&&v.originalLine===b&&v.originalColumn==O;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C]}return S},nt.SourceMapConsumer=a;function u(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sources"),C=e.getArg(b,"names",[]),v=e.getArg(b,"sourceRoot",null),P=e.getArg(b,"sourcesContent",null),O=e.getArg(b,"mappings"),L=e.getArg(b,"file",null);if(E!=this._version)throw new Error("Unsupported version: "+E);v&&(v=e.normalize(v)),S=S.map(String).map(e.normalize).map(function(V){return v&&e.isAbsolute(v)&&e.isAbsolute(V)?e.relative(v,V):V}),this._names=r.fromArray(C.map(String),!0),this._sources=r.fromArray(S,!0),this._absoluteSources=this._sources.toArray().map(function(V){return e.computeSourceURL(v,V,g)}),this.sourceRoot=v,this.sourcesContent=P,this._mappings=O,this._sourceMapURL=g,this.file=L}u.prototype=Object.create(a.prototype),u.prototype.consumer=a,u.prototype._findSourceIndex=function(y){var g=y;if(this.sourceRoot!=null&&(g=e.relative(this.sourceRoot,g)),this._sources.has(g))return this._sources.indexOf(g);var b;for(b=0;b1&&(k.source=P+R[1],P+=R[1],k.originalLine=C+R[2],C=k.originalLine,k.originalLine+=1,k.originalColumn=v+R[3],v=k.originalColumn,R.length>4&&(k.name=O+R[4],O+=R[4])),_.push(k),typeof k.originalLine=="number"&&x.push(k)}s(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,s(x,e.compareByOriginalPositions),this.__originalMappings=x},u.prototype._findMapping=function(g,b,E,S,C,v){if(g[E]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+g[E]);if(g[S]<0)throw new TypeError("Column must be greater than or equal to 0, got "+g[S]);return t.search(g,b,C,v)},u.prototype.computeColumnSpans=function(){for(var g=0;g=0){var S=this._generatedMappings[E];if(S.generatedLine===b.generatedLine){var C=e.getArg(S,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var v=e.getArg(S,"name",null);return v!==null&&(v=this._names.at(v)),{source:C,line:e.getArg(S,"originalLine",null),column:e.getArg(S,"originalColumn",null),name:v}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(g){return g==null}):!1},u.prototype.sourceContentFor=function(g,b){if(!this.sourcesContent)return null;var E=this._findSourceIndex(g);if(E>=0)return this.sourcesContent[E];var S=g;this.sourceRoot!=null&&(S=e.relative(this.sourceRoot,S));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var v=S.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!C.path||C.path=="/")&&this._sources.has("/"+S))return this.sourcesContent[this._sources.indexOf("/"+S)]}if(b)return null;throw new Error('"'+S+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(g){var b=e.getArg(g,"source");if(b=this._findSourceIndex(b),b<0)return{line:null,column:null,lastColumn:null};var E={source:b,originalLine:e.getArg(g,"line"),originalColumn:e.getArg(g,"column")},S=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(S>=0){var C=this._originalMappings[S];if(C.source===E.source)return{line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},nt.BasicSourceMapConsumer=u;function p(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sections");if(E!=this._version)throw new Error("Unsupported version: "+E);this._sources=new r,this._names=new r;var C={line:-1,column:0};this._sections=S.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var P=e.getArg(v,"offset"),O=e.getArg(P,"line"),L=e.getArg(P,"column");if(O=0;p--)this.prepend(f[p]);else if(f[s]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.walk=function(f){for(var p,y=0,g=this.children.length;y0){for(p=[],y=0;y=6.0"},ks=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],Ts={type:"git",url:"http://github.com/estools/escodegen.git"},Ps={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},Is={"source-map":"~0.6.1"},Ns={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Ls="BSD-2-Clause",Os={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},Rs={name:xs,description:bs,homepage:Ss,main:_s,bin:Es,files:Cs,version:As,engines:ws,maintainers:ks,repository:Ts,dependencies:Ps,optionalDependencies:Is,devDependencies:Ns,license:Ls,scripts:Os};(function(e){(function(){var t,r,i,s,a,u,f,p,y,g,b,E,S,C,v,P,O,L,V,A,m,x,_,k,B,R;a=ki,u=Jn,t=a.Syntax;function G(n){return oe.Expression.hasOwnProperty(n.type)}function q(n){return oe.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var D=1,H=2,ne=4,ue=8,ie=16,Q=32,xe=64,Te=H|ne,Je=D|H,M=D|H|ne,Ve=D,xt=ne,Fe=D|ne,ee=D,Ae=D|Q,bt=0,On=D|ie,Rn=D|ue;function Or(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` +`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function je(n,l){var o="";for(l|=0;l>0;l>>>=1,n+=n)l&1&&(o+=n);return o}function Fn(n){return/[\r\n]/g.test(n)}function he(n){var l=n.length;return l&&u.code.isLineTerminator(n.charCodeAt(l-1))}function Rr(n,l){var o;for(o in l)l.hasOwnProperty(o)&&(n[o]=l[o]);return n}function St(n,l){var o,c;function d(w){return typeof w=="object"&&w instanceof Object&&!(w instanceof RegExp)}for(o in l)l.hasOwnProperty(o)&&(c=l[o],d(c)?d(n[o])?St(n[o],c):n[o]=St({},c):n[o]=c);return n}function Mn(n){var l,o,c,d,w;if(n!==n)throw new Error("Numeric literal whose value is NaN");if(n<0||n===0&&1/n<0)throw new Error("Numeric literal whose value is negative");if(n===1/0)return y?"null":g?"1e400":"1e+400";if(l=""+n,!g||l.length<3)return l;for(o=l.indexOf("."),!y&&l.charCodeAt(0)===48&&o===1&&(o=0,l=l.slice(1)),c=l,l=l.replace("e+","e"),d=0,(w=c.indexOf("e"))>0&&(d=+c.slice(w+1),c=c.slice(0,w)),o>=0&&(d-=c.length-o-1,c=+(c.slice(0,o)+c.slice(o+1))+""),w=0;c.charCodeAt(c.length+w-1)===48;)--w;return w!==0&&(d-=w,c=c.slice(0,w)),d!==0&&(c+="e"+d),(c.length1e12&&Math.floor(n)===n&&(c="0x"+n.toString(16)).length255?"\\u"+"0000".slice(o.length)+o:n===0&&!u.code.isDecimalDigit(l)?"\\0":n===11?"\\x0B":"\\x"+"00".slice(o.length)+o)}function Vn(n){if(n===92)return"\\\\";if(n===10)return"\\n";if(n===13)return"\\r";if(n===8232)return"\\u2028";if(n===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function jn(n){var l,o,c,d;for(d=E==="double"?'"':"'",l=0,o=n.length;l126))){l+=Dn(d,n.charCodeAt(o+1));continue}l+=String.fromCharCode(d)}if(I=!(E==="double"||E==="auto"&&T=0&&!u.code.isLineTerminator(n.charCodeAt(l));--l);return n.length-1-l}function Gn(n,l){var o,c,d,w,T,I,F,J;for(o=n.split(/\r\n|[\r\n]/),I=Number.MAX_VALUE,c=1,d=o.length;cT&&(I=T)}for(typeof l<"u"?(F=f,o[1][I]==="*"&&(l+=" "),f=l):(I&1&&--I,F=f),c=1,d=o.length;c0){if(w=l,k){for(d=n.leadingComments[0],l=[],J=d.extendedRange,ce=d.range,He=_.substring(J[0],ce[0]),we=(He.match(/\n/g)||[]).length,we>0?(l.push(je(` +`,we)),l.push(pe(Pe(d)))):(l.push(He),l.push(Pe(d))),qe=ce,o=1,c=n.leadingComments.length;o0?(l.push(je(` +`,we)),l.push(pe(Pe(d)))):(l.push(He),l.push(Pe(d)));else for(T=!he(K(l).toString()),I=je(" ",Un(K([f,l,p]).toString())),o=0,c=n.trailingComments.length;o")),n.expression?(l.push(v),o=this.generateExpression(n.body,r.Assignment,M),o.toString().charAt(0)==="{"&&(o=["(",o,")"]),l.push(o)):l.push(this.maybeBlock(n.body,Rn)),l},oe.prototype.generateIterationForStatement=function(n,l,o){var c=["for"+(l.await?fe()+"await":"")+v+"("],d=this;return ae(function(){l.left.type===t.VariableDeclaration?ae(function(){c.push(l.left.kind+fe()),c.push(d.generateStatement(l.left.declarations[0],bt))}):c.push(d.generateExpression(l.left,r.Call,M)),c=U(c,n),c=[U(c,d.generateExpression(l.right,r.Assignment,M)),")"]}),c.push(this.maybeBlock(l.body,o)),c},oe.prototype.generatePropertyKey=function(n,l){var o=[];return l&&o.push("["),o.push(this.generateExpression(n,r.Assignment,M)),l&&o.push("]"),o},oe.prototype.generateAssignment=function(n,l,o,c,d){return r.Assignment2&&(c=_.substring(o[0]+1,o[1]-1),c[0]===` +`&&(d=["{"]),d.push(c)));var T,I,F,J;for(J=ee,l&ue&&(J|=ie),T=0,I=n.body.length;T0&&!n.body[T-1].trailingComments&&!n.body[T].leadingComments&&Xe(n.body[T-1].range[1],n.body[T].range[0],d)),T===I-1&&(J|=Q),n.body[T].leadingComments&&k?F=w.generateStatement(n.body[T],J):F=pe(w.generateStatement(n.body[T],J)),d.push(F),he(K(F).toString())||k&&T1?ae(F):F(),o.push(this.semicolon(l)),o},ThrowStatement:function(n,l){return[U("throw",this.generateExpression(n.argument,r.Sequence,M)),this.semicolon(l)]},TryStatement:function(n,l){var o,c,d,w;if(o=["try",this.maybeBlock(n.block,ee)],o=this.maybeBlockSuffix(n.block,o),n.handlers)for(c=0,d=n.handlers.length;c0?` +`:""],T=On,d=0;d0&&!n.body[d-1].trailingComments&&!n.body[d].leadingComments&&Xe(n.body[d-1].range[1],n.body[d].range[0],o)),c=pe(this.generateStatement(n.body[d],T)),o.push(c),d+10){for(c.push("("),w=0,T=d;w=2&&d.charCodeAt(0)===48)&&c.push(" ")),c.push(n.optional?"?.":"."),c.push(ge(n.property))),le(c,r.Member,l)},MetaProperty:function(n,l,o){var c;return c=[],c.push(typeof n.meta=="string"?n.meta:ge(n.meta)),c.push("."),c.push(typeof n.property=="string"?n.property:ge(n.property)),le(c,r.Member,l)},UnaryExpression:function(n,l,o){var c,d,w,T,I;return d=this.generateExpression(n.argument,r.Unary,M),v===""?c=U(n.operator,d):(c=[n.operator],n.operator.length>2?c=U(c,d):(T=K(c).toString(),I=T.charCodeAt(T.length-1),w=d.toString().charCodeAt(0),((I===43||I===45)&&I===w||u.code.isIdentifierPartES5(I)&&u.code.isIdentifierPartES5(w))&&c.push(fe()),c.push(d))),le(c,r.Unary,l)},YieldExpression:function(n,l,o){var c;return n.delegate?c="yield*":c="yield",n.argument&&(c=U(c,this.generateExpression(n.argument,r.Yield,M))),le(c,r.Yield,l)},AwaitExpression:function(n,l,o){var c=U(n.all?"await*":"await",this.generateExpression(n.argument,r.Await,M));return le(c,r.Await,l)},UpdateExpression:function(n,l,o){return n.prefix?le([n.operator,this.generateExpression(n.argument,r.Unary,M)],r.Unary,l):le([this.generateExpression(n.argument,r.Postfix,M),n.operator],r.Postfix,l)},FunctionExpression:function(n,l,o){var c=[rt(n,!0),"function"];return n.id?(c.push(_t(n)||fe()),c.push(ge(n.id))):c.push(_t(n)||v),c.push(this.generateFunctionBody(n)),c},ArrayPattern:function(n,l,o){return this.ArrayExpression(n,l,o,!0)},ArrayExpression:function(n,l,o,c){var d,w,T=this;return n.elements.length?(w=c?!1:n.elements.length>1,d=["[",w?C:""],ae(function(I){var F,J;for(F=0,J=n.elements.length;F1,ae(function(){w=T.generateExpression(n.properties[0],r.Sequence,M)}),!c&&!Fn(K(w).toString())?["{",v,w,v,"}"]:(ae(function(I){var F,J;if(d=["{",C,I,w],c)for(d.push(","+C),F=1,J=n.properties.length;F0||A.moz.comprehensionExpressionStartsWithAssignment?c=U(c,T):c.push(T)}),n.filter&&(c=U(c,"if"+v),T=this.generateExpression(n.filter,r.Sequence,M),c=U(c,["(",T,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(T=this.generateExpression(n.body,r.Assignment,M),c=U(c,T)),c.push(n.type===t.GeneratorExpression?")":"]"),c},ComprehensionBlock:function(n,l,o){var c;return n.left.type===t.VariableDeclaration?c=[n.left.kind,fe(),this.generateStatement(n.left.declarations[0],bt)]:c=this.generateExpression(n.left,r.Call,M),c=U(c,n.of?"of":"in"),c=U(c,this.generateExpression(n.right,r.Sequence,M)),["for"+v+"(",c,")"]},SpreadElement:function(n,l,o){return["...",this.generateExpression(n.argument,r.Assignment,M)]},TaggedTemplateExpression:function(n,l,o){var c=Je;o&H||(c=Ve);var d=[this.generateExpression(n.tag,r.Call,c),this.generateExpression(n.quasi,r.Primary,xt)];return le(d,r.TaggedTemplate,l)},TemplateElement:function(n,l,o){return n.value.raw},TemplateLiteral:function(n,l,o){var c,d,w;for(c=["`"],d=0,w=n.quasis.length;de)return!1;if(r+=t[i+1],r>=e)return!0}}function Le(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Bs.test(String.fromCharCode(e)):t===!1?!1:ur(e,Li)}function Ge(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ds.test(String.fromCharCode(e)):t===!1?!1:ur(e,Li)||ur(e,Vs)}var Y=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function be(e,t){return new Y(e,{beforeExpr:!0,binop:t})}var Se={beforeExpr:!0},ye={startsExpr:!0},Lt={};function X(e,t){return t===void 0&&(t={}),t.keyword=e,Lt[e]=new Y(e,t)}var h={num:new Y("num",ye),regexp:new Y("regexp",ye),string:new Y("string",ye),name:new Y("name",ye),eof:new Y("eof"),bracketL:new Y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Y("]"),braceL:new Y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Y("}"),parenL:new Y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Y(")"),comma:new Y(",",Se),semi:new Y(";",Se),colon:new Y(":",Se),dot:new Y("."),question:new Y("?",Se),questionDot:new Y("?."),arrow:new Y("=>",Se),template:new Y("template"),invalidTemplate:new Y("invalidTemplate"),ellipsis:new Y("...",Se),backQuote:new Y("`",ye),dollarBraceL:new Y("${",{beforeExpr:!0,startsExpr:!0}),eq:new Y("=",{beforeExpr:!0,isAssign:!0}),assign:new Y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:be("||",1),logicalAND:be("&&",2),bitwiseOR:be("|",3),bitwiseXOR:be("^",4),bitwiseAND:be("&",5),equality:be("==/!=/===/!==",6),relational:be("/<=/>=",7),bitShift:be("<>/>>>",8),plusMin:new Y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:be("%",10),star:be("*",10),slash:be("/",10),starstar:new Y("**",{beforeExpr:!0}),coalesce:be("??",1),_break:X("break"),_case:X("case",Se),_catch:X("catch"),_continue:X("continue"),_debugger:X("debugger"),_default:X("default",Se),_do:X("do",{isLoop:!0,beforeExpr:!0}),_else:X("else",Se),_finally:X("finally"),_for:X("for",{isLoop:!0}),_function:X("function",ye),_if:X("if"),_return:X("return",Se),_switch:X("switch"),_throw:X("throw",Se),_try:X("try"),_var:X("var"),_const:X("const"),_while:X("while",{isLoop:!0}),_with:X("with"),_new:X("new",{beforeExpr:!0,startsExpr:!0}),_this:X("this",ye),_super:X("super",ye),_class:X("class",ye),_extends:X("extends",Se),_export:X("export"),_import:X("import",ye),_null:X("null",ye),_true:X("true",ye),_false:X("false",ye),_in:X("in",{beforeExpr:!0,binop:7}),_instanceof:X("instanceof",{beforeExpr:!0,binop:7}),_typeof:X("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:X("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:X("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ve=/\r\n?|\n|\u2028|\u2029/,Qe=new RegExp(ve.source,"g");function et(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var yr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Oi=Object.prototype,js=Oi.hasOwnProperty,qs=Oi.toString;function Ot(e,t){return js.call(e,t)}var ni=Array.isArray||function(e){return qs.call(e)==="[object Array]"};function Ue(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var Ye=function(t,r){this.line=t,this.column=r};Ye.prototype.offset=function(t){return new Ye(this.line,this.column+t)};var mt=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function vr(e,t){for(var r=1,i=0;;){Qe.lastIndex=i;var s=Qe.exec(e);if(s&&s.index=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),ni(t.onToken)){var i=t.onToken;t.onToken=function(s){return i.push(s)}}return ni(t.onComment)&&(t.onComment=Gs(t,t.onComment)),t}function Gs(e,t){return function(r,i,s,a,u,f){var p={type:r?"Block":"Line",value:i,start:s,end:a};e.locations&&(p.loc=new mt(this,u,f)),e.ranges&&(p.range=[s,a]),t.push(p)}}var ct=1,gt=2,xr=ct|gt,Ri=4,Fi=8,Mi=16,Bi=32,Di=64,Vi=128;function br(e,t){return gt|(e?Ri:0)|(t?Fi:0)}var si=0,Sr=1,Ne=2,ji=3,qi=4,Ui=5,re=function(t,r,i){this.options=t=Us(t),this.sourceFile=t.sourceFile,this.keywords=Ue(Fs[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";if(t.allowReserved!==!0){for(var a=t.ecmaVersion;!(s=sr[a]);a--);t.sourceType==="module"&&(s+=" await")}this.reservedWords=Ue(s);var u=(s?s+" ":"")+sr.strict;this.reservedWordsStrict=Ue(u),this.reservedWordsStrictBind=Ue(u+" "+sr.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(` +`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ve).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=h.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=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ct),this.regexpState=null},ze={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};re.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ze.inFunction.get=function(){return(this.currentVarScope().flags>)>0};ze.inGenerator.get=function(){return(this.currentVarScope().flags&Fi)>0};ze.inAsync.get=function(){return(this.currentVarScope().flags&Ri)>0};ze.allowSuper.get=function(){return(this.currentThisScope().flags&Di)>0};ze.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Vi)>0};ze.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};re.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags>)>0};re.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,s=0;s=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Ee.lastIndex=e,e+=Ee.exec(this.input)[0].length,this.input[e]===";"&&e++}};me.eat=function(e){return this.type===e?(this.next(),!0):!1};me.isContextual=function(e){return this.type===h.name&&this.value===e&&!this.containsEsc};me.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};me.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};me.canInsertSemicolon=function(){return this.type===h.eof||this.type===h.braceR||ve.test(this.input.slice(this.lastTokEnd,this.start))};me.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};me.semicolon=function(){!this.eat(h.semi)&&!this.insertSemicolon()&&this.unexpected()};me.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};me.expect=function(e){this.eat(e)||this.unexpected()};me.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};function Rt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}me.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};me.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};me.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case h._class:return e&&this.unexpected(),this.parseClass(s,!0);case h._if:return this.parseIfStatement(s);case h._return:return this.parseReturnStatement(s);case h._switch:return this.parseSwitchStatement(s);case h._throw:return this.parseThrowStatement(s);case h._try:return this.parseTryStatement(s);case h._const:case h._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(s,a);case h._while:return this.parseWhileStatement(s);case h._with:return this.parseWithStatement(s);case h.braceL:return this.parseBlock(!0,s);case h.semi:return this.parseEmptyStatement(s);case h._export:case h._import:if(this.options.ecmaVersion>10&&i===h._import){Ee.lastIndex=this.pos;var u=Ee.exec(this.input),f=this.pos+u[0].length,p=this.input.charCodeAt(f);if(p===40||p===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===h._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var y=this.value,g=this.parseExpression();return i===h.name&&g.type==="Identifier"&&this.eat(h.colon)?this.parseLabeledStatement(s,y,g,e):this.parseExpressionStatement(s,g)}};W.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(h.semi)||this.insertSemicolon()?e.label=null:this.type!==h.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(h.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};W.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(_r),this.enterScope(0),this.expect(h.parenL),this.type===h.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===h._var||this.type===h._const||r){var i=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(i,!0,s),this.finishNode(i,"VariableDeclaration"),(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var a=new Rt,u=this.parseExpression(!0,a);return this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(u,!1,a),this.checkLVal(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))};W.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,ot|(r?0:lr),!1,t)};W.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(h._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};W.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(h.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};W.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(h.braceL),this.labels.push(zs),this.enterScope(0);for(var t,r=!1;this.type!==h.braceR;)if(this.type===h._case||this.type===h._default){var i=this.type===h._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(h.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};W.parseThrowStatement=function(e){return this.next(),ve.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var $s=[];W.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===h._catch){var t=this.startNode();if(this.next(),this.eat(h.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?Bi:0),this.checkLVal(t.param,r?qi:Ne),this.expect(h.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(h._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};W.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};W.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(_r),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};W.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};W.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};W.parseLabeledStatement=function(e,t,r,i){for(var s=0,a=this.labels;s=0;p--){var y=this.labels[p];if(y.statementStart===e.start)y.statementStart=this.start,y.kind=f;else break}return this.labels.push({name:t,kind:f,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};W.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};W.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(h.braceL),e&&this.enterScope(0);this.type!==h.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};W.parseFor=function(e,t){return e.init=t,this.expect(h.semi),e.test=this.type===h.semi?null:this.parseExpression(),this.expect(h.semi),e.update=this.type===h.parenR?null:this.parseExpression(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};W.parseForIn=function(e,t){var r=this.type===h._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):t.type==="AssignmentPattern"&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};W.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(h.eq)?i.init=this.parseMaybeAssign(t):r==="const"&&!(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():i.id.type!=="Identifier"&&!(t&&(this.type===h._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(h.comma))break}return e};W.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t==="var"?Sr:Ne,!1)};var ot=1,lr=2,Gi=4;W.parseFunction=function(e,t,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===h.star&&t&lr&&this.unexpected(),e.generator=this.eat(h.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&ot&&(e.id=t&Gi&&this.type!==h.name?null:this.parseIdent(),e.id&&!(t&lr)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Sr:Ne:ji));var s=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(br(e.async,e.generator)),t&ot||(e.id=this.type===h.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(e,t&ot?"FunctionDeclaration":"FunctionExpression")};W.parseFunctionParams=function(e){this.expect(h.parenL),e.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};W.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.startNode(),s=!1;for(i.body=[],this.expect(h.braceL);this.type!==h.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(i.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"&&(s&&this.raise(a.start,"Duplicate constructor in the same class"),s=!0))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};W.parseClassElement=function(e){var t=this;if(this.eat(h.semi))return null;var r=this.startNode(),i=function(p,y){y===void 0&&(y=!1);var g=t.start,b=t.startLoc;return t.eatContextual(p)?t.type!==h.parenL&&(!y||!t.canInsertSemicolon())?!0:(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(g,b),r.key.name=p,t.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=i("static");var s=this.eat(h.star),a=!1;s||(this.options.ecmaVersion>=8&&i("async",!0)?(a=!0,s=this.options.ecmaVersion>=9&&this.eat(h.star)):i("get")?r.kind="get":i("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var u=r.key,f=!1;return!r.computed&&!r.static&&(u.type==="Identifier"&&u.name==="constructor"||u.type==="Literal"&&u.value==="constructor")?(r.kind!=="method"&&this.raise(u.start,"Constructor can't have get/set modifier"),s&&this.raise(u.start,"Constructor can't be a generator"),a&&this.raise(u.start,"Constructor can't be an async method"),r.kind="constructor",f=e):r.static&&u.type==="Identifier"&&u.name==="prototype"&&this.raise(u.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,s,a,f),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};W.parseClassMethod=function(e,t,r,i){return e.value=this.parseMethod(t,r,i),this.finishNode(e,"MethodDefinition")};W.parseClassId=function(e,t){this.type===h.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,Ne,!1)):(t===!0&&this.unexpected(),e.id=null)};W.parseClassSuper=function(e){e.superClass=this.eat(h._extends)?this.parseExprSubscripts():null};W.parseExport=function(e,t){if(this.next(),this.eat(h.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(h._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===h._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,ot|Gi,!1,r)}else if(this.type===h._class){var s=this.startNode();e.declaration=this.parseClass(s,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,u=e.specifiers;a=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,s=e.properties;i=8&&!a&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(h._function))return this.parseFunction(this.startNodeAt(i,s),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(h.arrow))return this.parseArrowExpression(this.startNodeAt(i,s),[u],!1);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===h.name&&!a)return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(h.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,s),[u],!0)}return u;case h.regexp:var f=this.value;return t=this.parseLiteral(f.value),t.regex={pattern:f.pattern,flags:f.flags},t;case h.num:case h.string:return this.parseLiteral(this.value);case h._null:case h._true:case h._false:return t=this.startNode(),t.value=this.type===h._null?null:this.type===h._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case h.parenL:var p=this.start,y=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(y)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),y;case h.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(h.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case h.braceL:return this.parseObj(!1,e);case h._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case h._class:return this.parseClass(this.startNode(),!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate();case h._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case h.parenL:return this.parseDynamicImport(e);case h.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}};z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(h.parenR)){var t=this.start;this.eat(h.comma)&&this.eat(h.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};z.parseParenExpression=function(){this.expect(h.parenL);var e=this.parseExpression();return this.expect(h.parenR),e};z.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,i,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,u=this.startLoc,f=[],p=!0,y=!1,g=new Rt,b=this.yieldPos,E=this.awaitPos,S;for(this.yieldPos=0,this.awaitPos=0;this.type!==h.parenR;)if(p?p=!1:this.expect(h.comma),s&&this.afterTrailingComma(h.parenR,!0)){y=!0;break}else if(this.type===h.ellipsis){S=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var C=this.start,v=this.startLoc;if(this.expect(h.parenR),e&&!this.canInsertSemicolon()&&this.eat(h.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=b,this.awaitPos=E,this.parseParenArrowList(t,r,f);(!f.length||y)&&this.unexpected(this.lastTokStart),S&&this.unexpected(S),this.checkExpressionErrors(g,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=E||this.awaitPos,f.length>1?(i=this.startNodeAt(a,u),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",C,v)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var P=this.startNodeAt(t,r);return P.expression=i,this.finishNode(P,"ParenthesizedExpression")}else return i};z.parseParenItem=function(e){return e};z.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var Js=[];z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(h.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var i=this.start,s=this.startLoc,a=this.type===h._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,s,!0),a&&e.callee.type==="ImportExpression"&&this.raise(i,"Cannot use new with import()"),this.eat(h.parenL)?e.arguments=this.parseExprList(h.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Js,this.finishNode(e,"NewExpression")};z.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===h.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),r.tail=this.type===h.backQuote,this.finishNode(r,"TemplateElement")};z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===h.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(h.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(h.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};z.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===h.name||this.type===h.num||this.type===h.string||this.type===h.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===h.star)&&!ve.test(this.input.slice(this.lastTokEnd,this.start))};z.parseObj=function(e,t){var r=this.startNode(),i=!0,s={};for(r.properties=[],this.next();!this.eat(h.braceR);){if(i)i=!1;else if(this.expect(h.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(h.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};z.parseProperty=function(e,t){var r=this.startNode(),i,s,a,u;if(this.options.ecmaVersion>=9&&this.eat(h.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===h.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,t),this.type===h.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(a=this.start,u=this.startLoc),e||(i=this.eat(h.star)));var f=this.containsEsc;return this.parsePropertyName(r),!e&&!f&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(h.star),this.parsePropertyName(r,t)):s=!1,this.parsePropertyValue(r,e,i,s,a,u,t,f),this.finishNode(r,"Property")};z.parsePropertyValue=function(e,t,r,i,s,a,u,f){if((r||i)&&this.type===h.colon&&this.unexpected(),this.eat(h.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,u),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===h.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i);else if(!t&&!f&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==h.comma&&this.type!==h.braceR&&this.type!==h.eq){(r||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var p=e.kind==="get"?0:1;if(e.value.params.length!==p){var y=e.value.start;e.kind==="get"?this.raiseRecoverable(y,"getter should have no params"):this.raiseRecoverable(y,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,e.key):this.type===h.eq&&u?(u.shorthandAssign<0&&(u.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()};z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(h.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(h.bracketR),e.key;e.computed=!1}return e.key=this.type===h.num||this.type===h.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};z.parseMethod=function(e,t,r){var i=this.startNode(),s=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(br(t,i.generator)|Di|(r?Vi:0)),this.expect(h.parenL),i.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(i,"FunctionExpression")};z.parseArrowExpression=function(e,t,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(br(r,!1)|Mi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};z.parseFunctionBody=function(e,t,r){var i=t&&this.type!==h.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||u)&&(a=this.strictDirective(this.end),a&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,Ui),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};z.isSimpleParamList=function(e){for(var t=0,r=e;t-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&ct&&delete this.undefinedExports[e]}else if(t===qi){var a=this.currentScope();a.lexical.push(e)}else if(t===ji){var u=this.currentScope();this.treatFunctionsAsVar?i=u.lexical.indexOf(e)>-1:i=u.lexical.indexOf(e)>-1||u.var.indexOf(e)>-1,u.functions.push(e)}else for(var f=this.scopeStack.length-1;f>=0;--f){var p=this.scopeStack[f];if(p.lexical.indexOf(e)>-1&&!(p.flags&Bi&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){i=!0;break}if(p.var.push(e),this.inModule&&p.flags&ct&&delete this.undefinedExports[e],p.flags&xr)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};De.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};De.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};De.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&xr)return t}};De.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&xr&&!(t.flags&Mi))return t}};var Ft=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new mt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Mt=re.prototype;Mt.startNode=function(){return new Ft(this,this.start,this.startLoc)};Mt.startNodeAt=function(e,t){return new Ft(this,e,t)};function Wi(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}Mt.finishNode=function(e,t){return Wi.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Mt.finishNodeAt=function(e,t,r,i){return Wi.call(this,e,t,r,i)};var _e=function(t,r,i,s,a){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=s,this.generator=!!a},se={b_stat:new _e("{",!1),b_expr:new _e("{",!0),b_tmpl:new _e("${",!1),p_stat:new _e("(",!1),p_expr:new _e("(",!0),q_tmpl:new _e("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new _e("function",!1),f_expr:new _e("function",!0),f_expr_gen:new _e("function",!0,!1,null,!0),f_gen:new _e("function",!1,!1,null,!0)},Bt=re.prototype;Bt.initialContext=function(){return[se.b_stat]};Bt.braceIsBlock=function(e){var t=this.curContext();return t===se.f_expr||t===se.f_stat?!0:e===h.colon&&(t===se.b_stat||t===se.b_expr)?!t.isExpr:e===h._return||e===h.name&&this.exprAllowed?ve.test(this.input.slice(this.lastTokEnd,this.start)):e===h._else||e===h.semi||e===h.eof||e===h.parenR||e===h.arrow?!0:e===h.braceL?t===se.b_stat:e===h._var||e===h._const||e===h.name?!1:!this.exprAllowed};Bt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Bt.updateContext=function(e){var t,r=this.type;r.keyword&&e===h.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};h.parenR.updateContext=h.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===se.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};h.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?se.b_stat:se.b_expr),this.exprAllowed=!0};h.dollarBraceL.updateContext=function(){this.context.push(se.b_tmpl),this.exprAllowed=!0};h.parenL.updateContext=function(e){var t=e===h._if||e===h._for||e===h._with||e===h._while;this.context.push(t?se.p_stat:se.p_expr),this.exprAllowed=!0};h.incDec.updateContext=function(){};h._function.updateContext=h._class.updateContext=function(e){e.beforeExpr&&e!==h.semi&&e!==h._else&&!(e===h._return&&ve.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===h.colon||e===h.braceL)&&this.curContext()===se.b_stat)?this.context.push(se.f_expr):this.context.push(se.f_stat),this.exprAllowed=!1};h.backQuote.updateContext=function(){this.curContext()===se.q_tmpl?this.context.pop():this.context.push(se.q_tmpl),this.exprAllowed=!1};h.star.updateContext=function(e){if(e===h._function){var t=this.context.length-1;this.context[t]===se.f_expr?this.context[t]=se.f_expr_gen:this.context[t]=se.f_gen}this.exprAllowed=!0};h.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==h.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var zi="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",$i=zi+" Extended_Pictographic",Hs=$i,Qs={9:zi,10:$i,11:Hs},ai="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ji="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Xi=Ji+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ys=Xi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ks={9:Ji,10:Xi,11:Ys},Hi={};function Er(e){var t=Hi[e]={binary:Ue(Qs[e]+" "+ai),nonBinary:{General_Category:Ue(ai),Script:Ue(Ks[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Er(9);Er(10);Er(11);var j=re.prototype,Re=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Hi[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Re.prototype.reset=function(t,r,i){var s=i.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=i,this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchN=s&&this.parser.options.ecmaVersion>=9};Re.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Re.prototype.at=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return-1;var a=i.charCodeAt(t);if(!(r||this.switchU)||a<=55295||a>=57344||t+1>=s)return a;var u=i.charCodeAt(t+1);return u>=56320&&u<=57343?(a<<10)+u-56613888:a};Re.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return s;var a=i.charCodeAt(t),u;return!(r||this.switchU)||a<=55295||a>=57344||t+1>=s||(u=i.charCodeAt(t+1))<56320||u>57343?t+1:t+2};Re.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Re.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Re.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Re.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};function Pt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}j.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=0;i-1&&this.raise(e.start,"Duplicate regular expression flag")}};j.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};j.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};j.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};j.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};j.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};j.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};j.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};j.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Qi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Qi(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}j.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!Qi(r);)e.advance();return e.pos!==t};j.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};j.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};j.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};j.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Pt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Pt(e.lastIntValue);return!0}return!1};j.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),Zs(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Zs(e){return Le(e,!0)||e===36||e===95}j.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),ea(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function ea(e){return Ge(e,!0)||e===36||e===95||e===8204||e===8205}j.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};j.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};j.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};j.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};j.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};j.regexp_eatZero=function(e){return e.current()===48&&!Dt(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};j.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};j.regexp_eatControlLetter=function(e){var t=e.current();return Yi(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Yi(e){return e>=65&&e<=90||e>=97&&e<=122}j.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var u=e.lastIntValue;if(u>=56320&&u<=57343)return e.lastIntValue=(s-55296)*1024+(u-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ta(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function ta(e){return e>=0&&e<=1114111}j.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};j.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};j.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(ra(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function ra(e){return e===100||e===68||e===115||e===83||e===119||e===87}j.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s),!0}return!1};j.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Ot(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};j.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")};j.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ki(t=e.current());)e.lastStringValue+=Pt(t),e.advance();return e.lastStringValue!==""};function Ki(e){return Yi(e)||e===95}j.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ia(t=e.current());)e.lastStringValue+=Pt(t),e.advance();return e.lastStringValue!==""};function ia(e){return Ki(e)||Dt(e)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};j.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1};j.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};j.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||tn(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};j.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};j.regexp_eatClassControlLetter=function(e){var t=e.current();return Dt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};j.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};j.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Dt(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Dt(e){return e>=48&&e<=57}j.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Zi(r=e.current());)e.lastIntValue=16*e.lastIntValue+en(r),e.advance();return e.pos!==t};function Zi(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function en(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}j.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};j.regexp_eatOctalDigit=function(e){var t=e.current();return tn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function tn(e){return e>=48&&e<=55}j.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i=this.input.length)return this.finishToken(h.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};$.readToken=function(e){return Le(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};$.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};$.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){Qe.lastIndex=t;for(var i;(i=Qe.exec(this.input))&&i.index8&&e<14||e>=5760&&yr.test(String.fromCharCode(e)))++this.pos;else break e}}};$.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};$.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(h.ellipsis)):(++this.pos,this.finishToken(h.dot))};$.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(h.assign,2):this.finishOp(h.slash,1)};$.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=e===42?h.star:h.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,i=h.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(h.assign,r+1):this.finishOp(i,r)};$.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(h.assign,3)}return this.finishOp(e===124?h.logicalOR:h.logicalAND,2)}return t===61?this.finishOp(h.assign,2):this.finishOp(e===124?h.bitwiseOR:h.bitwiseAND,1)};$.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(h.assign,2):this.finishOp(h.bitwiseXOR,1)};$.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ve.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(h.incDec,2):t===61?this.finishOp(h.assign,2):this.finishOp(h.plusMin,1)};$.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(h.assign,r+1):this.finishOp(h.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(h.relational,r))};$.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(h.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(h.arrow)):this.finishOp(e===61?h.eq:h.prefix,1)};$.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(h.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(h.assign,3)}return this.finishOp(h.coalesce,2)}}return this.finishOp(h.question,1)};$.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(h.parenL);case 41:return++this.pos,this.finishToken(h.parenR);case 59:return++this.pos,this.finishToken(h.semi);case 44:return++this.pos,this.finishToken(h.comma);case 91:return++this.pos,this.finishToken(h.bracketL);case 93:return++this.pos,this.finishToken(h.bracketR);case 123:return++this.pos,this.finishToken(h.braceL);case 125:return++this.pos,this.finishToken(h.braceR);case 58:return++this.pos,this.finishToken(h.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(h.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)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_exp(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 63:return this.readToken_question();case 126:return this.finishOp(h.prefix,1)}this.raise(this.pos,"Unexpected character '"+Cr(e)+"'")};$.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};$.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(ve.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var a=this.pos,u=this.readWord1();this.containsEsc&&this.unexpected(a);var f=this.regexpState||(this.regexpState=new Re(this));f.reset(r,s,u),this.validateRegExpFlags(f),this.validateRegExpPattern(f);var p=null;try{p=new RegExp(s,u)}catch{}return this.finishToken(h.regexp,{pattern:s,flags:u,value:p})};$.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&t===void 0,s=r&&this.input.charCodeAt(this.pos)===48,a=this.pos,u=0,f=0,p=0,y=t??1/0;p=97?b=g-97+10:g>=65?b=g-65+10:g>=48&&g<=57?b=g-48:b=1/0,b>=e)break;f=g,u=u*e+b}return i&&f===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:u};function na(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function rn(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}$.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=rn(this.input.slice(t,this.pos)),++this.pos):Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,r)};$.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var s=rn(this.input.slice(t,this.pos));return++this.pos,Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Le(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=na(this.input.slice(t,this.pos),r);return this.finishToken(h.num,a)};$.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};function Cr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}$.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(et(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(h.string,t)};var nn={};$.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===nn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};$.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw nn;this.raise(e,t)};$.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===h.template||this.type===h.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(h.dollarBraceL)):(++this.pos,this.finishToken(h.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(h.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(et(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` +`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};$.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(i,8);return s>255&&(i=i.slice(0,-1),s=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return et(t)?"":String.fromCharCode(t)}};$.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};$.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos",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:"♦"};const oi=rs(ua);(function(e){const t=la,r=/^[\da-fA-F]+$/,i=/^\d+$/,s=new WeakMap;function a(p){p=p.Parser.acorn||p;let y=s.get(p);if(!y){const g=p.tokTypes,b=p.TokContext,E=p.TokenType,S=new b("...",!0,!0),P={tc_oTag:S,tc_cTag:C,tc_expr:v},O={jsxName:new E("jsxName"),jsxText:new E("jsxText",{beforeExpr:!0}),jsxTagStart:new E("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new E("jsxTagEnd")};O.jsxTagStart.updateContext=function(){this.context.push(v),this.context.push(S),this.exprAllowed=!1},O.jsxTagEnd.updateContext=function(L){let V=this.context.pop();V===S&&L===g.slash||V===C?(this.context.pop(),this.exprAllowed=this.curContext()===v):this.exprAllowed=!0},y={tokContexts:P,tokTypes:O},s.set(p,y)}return y}function u(p){if(!p)return p;if(p.type==="JSXIdentifier")return p.name;if(p.type==="JSXNamespacedName")return p.namespace.name+":"+p.name.name;if(p.type==="JSXMemberExpression")return u(p.object)+"."+u(p.property)}e.exports=function(p){return p=p||{},function(y){return f({allowNamespaces:p.allowNamespaces!==!1,allowNamespacedObjects:!!p.allowNamespacedObjects},y)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(oi).tokTypes},configurable:!0,enumerable:!0});function f(p,y){const g=y.acorn||oi,b=a(g),E=g.tokTypes,S=b.tokTypes,C=g.tokContexts,v=b.tokContexts.tc_oTag,P=b.tokContexts.tc_cTag,O=b.tokContexts.tc_expr,L=g.isNewLine,V=g.isIdentifierStart,A=g.isIdentifierChar;return class extends y{static get acornJsx(){return b}jsx_readToken(){let m="",x=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(S.jsxTagStart)):this.getTokenFromCode(_):(m+=this.input.slice(x,this.pos),this.finishToken(S.jsxText,m));case 38:m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:L(_)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!0),x=this.pos):++this.pos}}}jsx_readNewLine(m){let x=this.input.charCodeAt(this.pos),_;return++this.pos,x===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=m?` +`:`\r +`):_=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_}jsx_readString(m){let x="",_=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===m)break;k===38?(x+=this.input.slice(_,this.pos),x+=this.jsx_readEntity(),_=this.pos):L(k)?(x+=this.input.slice(_,this.pos),x+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return x+=this.input.slice(_,this.pos++),this.finishToken(E.string,x)}jsx_readEntity(){let m="",x=0,_,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let B=++this.pos;for(;this.pos")}let G=B.name?"Element":"Fragment";return _["opening"+G]=B,_["closing"+G]=R,_.children=k,this.type===E.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+G)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,x=this.startLoc;return this.next(),this.jsx_parseElementAt(m,x)}parseExprAtom(m){return this.type===S.jsxText?this.jsx_parseText():this.type===S.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(m)}readToken(m){let x=this.curContext();if(x===O)return this.jsx_readToken();if(x===v||x===P){if(V(m))return this.jsx_readWord();if(m==62)return++this.pos,this.finishToken(S.jsxTagEnd);if((m===34||m===39)&&x==v)return this.jsx_readString(m)}return m===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(S.jsxTagStart)):super.readToken(m)}updateContext(m){if(this.type==E.braceL){var x=this.curContext();x==v?this.context.push(C.b_expr):x==O?this.context.push(C.b_tmpl):super.updateContext(m),this.exprAllowed=!0}else if(this.type===E.slash&&m===S.jsxTagStart)this.context.length-=2,this.context.push(P),this.exprAllowed=!1;else return super.updateContext(m)}}}})(an);var ca=an.exports;const ha=pt(ca);function on(e,t,r,i,s){r||(r=N),function a(u,f,p){var y=p||u.type,g=t[y];r[y](u,f,a),g&&g(u,f)}(e,i,s)}function fa(e,t,r,i,s){var a=[];r||(r=N),function u(f,p,y){var g=y||f.type,b=t[g],E=f!==a[a.length-1];E&&a.push(f),r[g](f,p,u),b&&b(f,p||a,a),E&&a.pop()}(e,i,s)}function Ar(e,t,r){r(e,t)}function $e(e,t,r){}var N={};N.Program=N.BlockStatement=function(e,t,r){for(var i=0,s=e.body;i + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function ui(e){return Object.prototype.toString.call(e)==="[object Object]"}function Na(e){var t,r;return ui(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(ui(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var ln={},It=lt&<.__assign||function(){return It=Object.assign||function(e){for(var t,r=1,i=arguments.length;re.length)&&(t=e.length);for(var r=0,i=new Array(t);r0?e.length-1:0),i=e[e.length-1];return i&&(t.type==="string"||t.type==="number")&&(i.type==="string"||i.type==="number")?r.push(fn(String(i.value)+String(t.value))):(i&&r.push(i),r.push(t)),r},no=function(t){return["key","ref"].includes(t)},so=function(e){return function(t){var r=t.includes("key"),i=t.includes("ref"),s=t.filter(function(u){return!no(u)}),a=li(e?s.sort():s);return i&&a.unshift("ref"),r&&a.unshift("key"),a}};function ao(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var oo=function(t,r,i,s,a){var u=a.tabStop;return t.type==="string"?r.split(` +`).map(function(f,p){return p===0?f:"".concat(Ie(s,u)).concat(f)}).join(` +`):r},uo=function(t,r,i){return function(s){return oo(s,Qt(s,t,r,i),t,r,i)}},lo=function(t,r){return function(i){var s=Object.keys(t).includes(i);return!s||s&&t[i]!==r[i]}},mn=function(t,r,i,s,a){return a?Ie(i,s).length+r.length>a:t.length>1},co=function(t,r,i,s,a,u,f){return(mn(t,r,a,u,f)||i)&&!s},gn=function(e,t,r,i){var s=e.type,a=e.displayName,u=a===void 0?"":a,f=e.childrens,p=e.props,y=p===void 0?{}:p,g=e.defaultProps,b=g===void 0?{}:g;if(s!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(s));var E=i.filterProps,S=i.maxInlineAttributesLineLength,C=i.showDefaultProps,v=i.sortProps,P=i.tabStop,O="<".concat(u),L=O,V=O,A=!1,m=[],x=ao(y,E);Object.keys(y).filter(x).filter(lo(b,y)).forEach(function(B){return m.push(B)}),Object.keys(b).filter(x).filter(function(){return C}).filter(function(B){return!m.includes(B)}).forEach(function(B){return m.push(B)});var _=so(v)(m);if(_.forEach(function(B){var R=ro(B,Object.keys(y).includes(B),y[B],Object.keys(b).includes(B),b[B],t,r,i),G=R.attributeFormattedInline,q=R.attributeFormattedMultiline,D=R.isMultilineAttribute;D&&(A=!0),L+=G,V+=q}),V+=` +`.concat(Ie(r,P)),co(_,L,A,t,r,P,S)?O=V:O=L,f&&f.length>0){var k=r+1;O+=">",t||(O+=` +`,O+=Ie(k,P)),O+=f.reduce(io,[]).map(uo(t,k,i)).join(t?"":` +`.concat(Ie(k,P))),t||(O+=` +`,O+=Ie(k-1,P)),O+="")}else mn(_,L,r,P,S)||(O+=" "),O+="/>";return O},ho="",pi="React.Fragment",fo=function(t,r,i){var s={};return r&&(s={key:r}),{type:"ReactElement",displayName:t,props:s,defaultProps:{},childrens:i}},po=function(t){var r=t.key;return!!r},mo=function(t){var r=t.childrens;return r.length===0},go=function(e,t,r,i){var s=e.type,a=e.key,u=e.childrens;if(s!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(s));var f=i.useFragmentShortSyntax,p;return f?mo(e)||po(e)?p=pi:p=ho:p=pi,gn(fo(p,a,u),t,r,i)},yo=["<",">","{","}"],vo=function(t){return yo.some(function(r){return t.includes(r)})},xo=function(t){return vo(t)?"{`".concat(t,"`}"):t},bo=function(t){var r=t;return r.endsWith(" ")&&(r=r.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),r.startsWith(" ")&&(r=r.replace(/^(\s+)(.*)$/,"{'$1'}$2")),r},Qt=function(e,t,r,i){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(bo(xo(String(e.value)))):"";if(e.type==="ReactElement")return gn(e,t,r,i);if(e.type==="ReactFragment")return go(e,t,r,i);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},So=function(e,t){return Qt(e,!1,0,t)},ut=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.filterProps,s=i===void 0?[]:i,a=r.showDefaultProps,u=a===void 0?!0:a,f=r.showFunctions,p=f===void 0?!1:f,y=r.functionValue,g=r.tabStop,b=g===void 0?2:g,E=r.useBooleanShorthandSyntax,S=E===void 0?!0:E,C=r.useFragmentShortSyntax,v=C===void 0?!0:C,P=r.sortProps,O=P===void 0?!0:P,L=r.maxInlineAttributesLineLength,V=r.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var A={filterProps:s,showDefaultProps:u,showFunctions:p,functionValue:y,tabStop:b,useBooleanShorthandSyntax:S,useFragmentShortSyntax:v,sortProps:O,maxInlineAttributesLineLength:L,displayName:V};return So(Tr(t,A),A)};const{defaultDecorateStory:_o,addons:Eo,useEffect:Co}=__STORYBOOK_MODULE_PREVIEW_API__,{logger:At}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Ao(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let s=[];if(r){let a=e.map(u=>{let f=u.getPrettyName(),p=u.getTypeName();return p!=null?`${f}: ${p}`:f});s.push(`(${a.join(", ")})`)}else s.push("()");return i&&s.push(`=> ${t.getTypeName()}`),s.join(" ")}function wo(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let s=[];return r?s.push("( ... )"):s.push("()"),i&&s.push(`=> ${t.getTypeName()}`),s.join(" ")}function ko(e){return e.replace(/,/g,`,\r +`)}var fr="custom",yt="object",Pr="array",To="class",Ke="func",tt="element";function Ir(e){return hs.includes(e.toLowerCase())}var yn={format:{indent:{style:" "},semicolons:!1}},Po={...yn,format:{newline:""}},Io={...yn};function Me(e,t=!1){return wi.generate(e,t?Po:Io)}function pr(e,t=!1){return t?No(e):Me(e)}function No(e){let t=Me(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function di(e,t=!1){return t?Oo(e):Lo(e)}function Lo(e){let t=Me(e);return t.endsWith(" }]")&&(t=is(t)),t}function Oo(e){let t=Me(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var vn=e=>e.$$typeof===Symbol.for("react.memo"),Ro=e=>e.$$typeof===Symbol.for("react.forward_ref"),Nr={...N,JSXElement:()=>{}},Fo=re.extend(ha());function vt(e){return e!=null?e.name:null}function mi(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function xn(e){let t=[];return fa(e,{ObjectExpression(r,i){t.push(mi(i).length)},ArrayExpression(r,i){t.push(mi(i).length)}},Nr),Math.max(...t)}function Mo(e){return{inferredType:{type:"Identifier",identifier:vt(e)},ast:e}}function Bo(e){return{inferredType:{type:"Literal"},ast:e}}function Do(e){let t;on(e.body,{JSXElement(s){t=s}},Nr);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},i=vt(e.id);return i!=null&&(r.identifier=i),{inferredType:r,ast:e}}function Vo(e){let t;return on(e.body,{JSXElement(r){t=r}},Nr),{inferredType:{type:t!=null?"Element":"Class",identifier:vt(e.id)},ast:e}}function jo(e){let t={type:"Element"},r=vt(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function qo(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return vt(t)==="shape"?bn(e.arguments[0]):null}function bn(e){return{inferredType:{type:"Object",depth:xn(e)},ast:e}}function Uo(e){return{inferredType:{type:"Array",depth:xn(e)},ast:e}}function Go(e){switch(e.type){case"Identifier":return Mo(e);case"Literal":return Bo(e);case"FunctionExpression":case"ArrowFunctionExpression":return Do(e);case"ClassExpression":return Vo(e);case"JSXElement":return jo(e);case"CallExpression":return qo(e);case"ObjectExpression":return bn(e);case"ArrayExpression":return Uo(e);default:return null}}function Wo(e){let t=Fo.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let i=t.body[0];switch(i.type){case"ExpressionStatement":{let s=Go(i.expression);s!=null&&(r=s);break}}}return r}function Be(e){try{return{...Wo(e)}}catch{}return{inferredType:{type:"Unknown"}}}var zo=150;function de({name:e,short:t,compact:r,full:i,inferredType:s}){return{name:e,short:t,compact:r,full:i??t,inferredType:s}}function Sn(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function gi(e){return e.split(/\r?\n/)}function Nt(e,t=!1){return Sn(pr(e,t))}function yi(e,t=!1){return Sn(Me(e,t))}function $o(e){switch(e){case"Object":return yt;case"Array":return Pr;case"Class":return To;case"Function":return Ke;case"Element":return tt;default:return fr}}function _n(e,t){let{inferredType:r,ast:i}=Be(e),{type:s}=r,a,u,f;switch(s){case"Identifier":case"Literal":a=e,u=e;break;case"Object":{let{depth:p}=r;a=yt,u=p===1?Nt(i,!0):null,f=Nt(i);break}case"Element":{let{identifier:p}=r;a=p!=null&&!Ir(p)?p:tt,u=gi(e).length===1?e:null,f=e;break}case"Array":{let{depth:p}=r;a=Pr,u=p<=2?yi(i,!0):null,f=yi(i);break}default:a=$o(s),u=gi(e).length===1?e:null,f=e;break}return de({name:t,short:a,compact:u,full:f,inferredType:s})}function Jo({raw:e}){return e!=null?_n(e,"custom"):de({name:"custom",short:fr,compact:fr})}function Xo(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?de({name:"func",short:wo(t.params,t.returns),compact:null,full:Ao(t.params,t.returns)}):de({name:"func",short:Ke,compact:Ke})}function Ho(e,t){let r=Object.keys(e.value).map(u=>`${u}: ${Ze(e.value[u],t).full}`).join(", "),{inferredType:i,ast:s}=Be(`{ ${r} }`),{depth:a}=i;return de({name:"shape",short:yt,compact:a===1&&s?Nt(s,!0):null,full:s?Nt(s):null})}function or(e){return`objectOf(${e})`}function Qo(e,t){let{short:r,compact:i,full:s}=Ze(e.value,t);return de({name:"objectOf",short:or(r),compact:i!=null?or(i):null,full:s&&or(s)})}function Yo(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((i,s)=>{let{short:a,compact:u,full:f}=Ze(s,t);return i.short.push(a),i.compact.push(u),i.full.push(f),i},{short:[],compact:[],full:[]});return de({name:"union",short:r.short.join(" | "),compact:r.compact.every(i=>i!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return de({name:"union",short:e.value,compact:null})}function Ko({value:e,computed:t}){return t?_n(e,"enumvalue"):de({name:"enumvalue",short:e,compact:e})}function Zo(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,i)=>{let{short:s,compact:a,full:u}=Ko(i);return r.short.push(s),r.compact.push(a),r.full.push(u),r},{short:[],compact:[],full:[]});return de({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return de({name:"enum",short:e.value,compact:e.value})}function dr(e){return`${e}[]`}function vi(e){return`[${e}]`}function xi(e,t,r){return de({name:"arrayOf",short:dr(e),compact:t!=null?vi(t):null,full:r&&vi(r)})}function eu(e,t){let{name:r,short:i,compact:s,full:a,inferredType:u}=Ze(e.value,t);if(r==="custom"){if(u==="Object")return xi(i,s,a)}else if(r==="shape")return xi(i,s,a);return de({name:"arrayOf",short:dr(i),compact:dr(i)})}function Ze(e,t){try{switch(e.name){case"custom":return Jo(e);case"func":return Xo(t);case"shape":return Ho(e,t);case"instanceOf":return de({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return Qo(e,t);case"union":return Yo(e,t);case"enum":return Zo(e);case"arrayOf":return eu(e,t);default:return de({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return de({name:"unknown",short:"unknown",compact:"unknown"})}function tu(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:r,compact:i,full:s}=Ze(t,e);return i!=null&&!ts(i)?te(i):s?te(r,s):te(r)}case"func":{let{short:r,full:i}=Ze(t,e),s=r,a;return i&&i.length`}function An(e){let{type:t,identifier:r}=e;switch(t){case"Function":return Lr(r,e.hasParams);case"Element":return Yt(r);default:return r}}function ru({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return te(An(e),Me(t));let i=Me(t,!0);return ft(i)?te(Ke,Me(t)):te(i)}function iu(e,t){let{inferredType:r}=t,{identifier:i}=r;if(i!=null&&!Ir(i)){let s=An(r);return te(s,e)}return ft(e)?te(tt,e):te(e)}function wn(e){try{let t=Be(e);switch(t.inferredType.type){case"Object":return En(t);case"Function":return ru(t);case"Element":return iu(e,t);case"Array":return Cn(t);default:return null}}catch(t){console.error(t)}return null}function kn(e){return e.$$typeof!=null}function Tn(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var nu=e=>te(JSON.stringify(e));function su(e){let{type:t}=e,{displayName:r}=t,i=ut(e,{});if(r!=null){let s=Yt(r);return te(s,i)}if(Ia(t)&&Ir(t)){let s=ut(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!ft(s))return te(s)}return te(tt,i)}var au=e=>{if(kn(e)&&e.type!=null)return su(e);if(Ea(e)){let t=Be(JSON.stringify(e));return En(t)}if(Array.isArray(e)){let t=Be(JSON.stringify(e));return Cn(t)}return te(yt)},ou=(e,t)=>{let r=!1,i;if(Wr(e.render))r=!0;else if(e.prototype!=null&&Wr(e.prototype.render))r=!0;else{let a;try{i=Be(e.toString());let{hasParams:u,params:f}=i.inferredType;u?f.length===1&&f[0].type==="ObjectPattern"&&(a=e({})):a=e(),a!=null&&kn(a)&&(r=!0)}catch{}}let s=Tn(e,t.name);if(s!=null){if(r)return te(Yt(s));i!=null&&(i=Be(e.toString()));let{hasParams:a}=i.inferredType;return te(Lr(s,a))}return te(r?tt:Ke)},uu=e=>te(e.toString()),Pn={string:nu,object:au,function:ou,default:uu};function lu(e={}){return{...Pn,...e}}function In(e,t,r=Pn){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(i){console.error(i)}return null}function cu(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(i=>e.find(s=>s.name===i)).filter(Boolean):e}var hu=(e,{name:t,type:r})=>{let i=(r==null?void 0:r.summary)==="element"||(r==null?void 0:r.summary)==="elementType",s=Tn(e,t);if(s!=null){if(i)return te(Yt(s));let{hasParams:a}=Be(e.toString()).inferredType;return te(Lr(s,a))}return te(i?tt:Ke)},fu=lu({function:hu});function pu(e,t){let{propDef:r}=e,i=tu(e);i!=null&&(r.type=i);let{defaultValue:s}=e.docgenInfo;if(s!=null&&s.value!=null){let a=wn(s.value);a!=null&&(r.defaultValue=a)}else if(t!=null){let a=In(t,r,fu);a!=null&&(r.defaultValue=a)}return r}function du(e,t){let r=t.defaultProps!=null?t.defaultProps:{},i=e.map(s=>pu(s,r[s.propDef.name]));return cu(i,t)}function mu(e,t){let{propDef:r}=e,{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let s=wn(i.value);s!=null&&(r.defaultValue=s)}else if(t!=null){let s=In(t,r);s!=null&&(r.defaultValue=s)}return r}function gu(e){return e.map(t=>mu(t))}var bi=new Map;Object.keys($r).forEach(e=>{let t=$r[e];bi.set(t,e),bi.set(t.isRequired,e)});function yu(e,t){let r=e;!Zn(e)&&!e.propTypes&&vn(e)&&(r=e.type);let i=es(r,t);if(i.length===0)return[];switch(i[0].typeSystem){case zr.JAVASCRIPT:return du(i,e);case zr.TYPESCRIPT:return gu(i);default:return i.map(s=>s.propDef)}}var vu=e=>({rows:yu(e,"props")}),xu=e=>{if(e){let{rows:t}=vu(e);if(t)return t.reduce((r,i)=>{let{name:s,description:a,type:u,sbType:f,defaultValue:p,jsDocTags:y,required:g}=i;return r[s]={name:s,description:a,type:{required:g,...f},table:{type:u,jsDocTags:y,defaultValue:p}},r},{})}return null},bu=e=>e.charAt(0).toUpperCase()+e.slice(1),Su=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(t=>t.split("_").map(bu).join("")).join(".");function mr(e){if(We.isValidElement(e)){let t=Object.keys(e.props).reduce((r,i)=>(r[i]=mr(e.props[i]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(mr):e}var _u=(e,t)=>{if(typeof e>"u")return At.warn("Too many skip or undefined component"),null;let r=e,i=r.type;for(let u=0;u<(t==null?void 0:t.skip);u+=1){if(typeof r>"u")return At.warn("Cannot skip undefined element"),null;if(at.Children.count(r)>1)return At.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(At.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=at.createElement(i,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let s;typeof(t==null?void 0:t.displayName)=="string"?s={showFunctions:!0,displayName:()=>t.displayName}:s={displayName:u=>{var f;return u.type.displayName?u.type.displayName:Ur(u.type,"displayName")?Ur(u.type,"displayName"):(f=u.type.render)!=null&&f.displayName?u.type.render.displayName:typeof u.type=="symbol"||u.type.$$typeof&&typeof u.type.$$typeof=="symbol"?Su(u.type):u.type.name&&u.type.name!=="_default"?u.type.name:typeof u.type=="function"?"No Display Name":Ro(u.type)?u.type.render.name:vn(u.type)?u.type.type.name:u.type}};let a={...s,filterProps:(u,f)=>u!==void 0,...t};return at.Children.map(e,u=>{let f=typeof u=="number"?u.toString():u,p=(typeof ut=="function"?ut:ut.default)(mr(f),a);if(p.indexOf(""")>-1){let y=p.match(/\S+=\\"([^"]*)\\"/g);y&&y.forEach(g=>{p=p.replace(g,g.replace(/"/g,"'"))})}return p}).join(` +`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},Eu={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},Cu=e=>{var i;let t=(i=e==null?void 0:e.parameters.docs)==null?void 0:i.source,r=e==null?void 0:e.parameters.__isArgsStory;return(t==null?void 0:t.type)===Gr.DYNAMIC?!1:!r||(t==null?void 0:t.code)||(t==null?void 0:t.type)===Gr.CODE},Au=e=>{var t,r;return((t=e.type)==null?void 0:t.displayName)==="MDXCreateElement"&&!!((r=e.props)!=null&&r.mdxType)},Nn=e=>{if(!Au(e))return e;let{mdxType:t,originalType:r,children:i,...s}=e.props,a=[];return i&&(a=(Array.isArray(i)?i:[i]).map(Nn)),We.createElement(r,s,...a)},Ln=(e,t)=>{var g,b;let r=Eo.getChannel(),i=Cu(t),s="";Co(()=>{if(!i){let{id:E,unmappedArgs:S}=t;r.emit(Kn,{id:E,source:s,args:S})}});let a=e();if(i)return a;let u={...Eu,...(t==null?void 0:t.parameters.jsx)||{}},f=(b=(g=t==null?void 0:t.parameters.docs)==null?void 0:g.source)!=null&&b.excludeDecorators?t.originalStoryFn(t.args,t):a,p=Nn(f),y=_u(p,u);return y&&(s=y),a},Pu=(e,t)=>{let r=t.findIndex(s=>s.originalFn===Ln),i=r===-1?t:[...t.splice(r,1),...t];return _o(e,i)},Iu={docs:{story:{inline:!0},extractArgTypes:xu,extractComponentDescription:Qn}},Nu=[Ln],Lu=[Yn];export{Pu as applyDecorators,Lu as argTypesEnhancers,Nu as decorators,Iu as parameters}; diff --git a/docs/assets/entry-preview-kGuIN3g4.js b/docs/assets/entry-preview-kGuIN3g4.js new file mode 100644 index 0000000..d8a8bbe --- /dev/null +++ b/docs/assets/entry-preview-kGuIN3g4.js @@ -0,0 +1 @@ +import{R as n,r as i}from"./index-BBkUAzwr.js";import{u as m,r as h}from"./react-18-B-OKcmzb.js";import"./index-PqR-_bA4.js";var u=Object.defineProperty,E=(e,r)=>{for(var t in r)u(e,t,{get:r[t],enumerable:!0})};const{global:_}=__STORYBOOK_MODULE_GLOBAL__;var f={};E(f,{parameters:()=>w,render:()=>v,renderToCanvas:()=>g});var v=(e,r)=>{let{id:t,component:o}=r;if(!o)throw new Error(`Unable to render story ${t} as the component annotation is missing from the default export`);return n.createElement(o,{...e})},{FRAMEWORK_OPTIONS:s}=_,x=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:r}=this.props;e||r()}componentDidCatch(e){let{showException:r}=this.props;r(e)}render(){let{hasError:e}=this.state,{children:r}=this.props;return e?null:r}},c=s!=null&&s.strictMode?i.StrictMode:i.Fragment;async function g({storyContext:e,unboundStoryFn:r,showMain:t,showException:o,forceRemount:d},a){let p=n.createElement(x,{showMain:t,showException:o},n.createElement(r,{...e})),l=c?n.createElement(c,null,p):p;return d&&m(a),await h(l,a),()=>m(a)}var w={renderer:"react"};export{w as parameters,v as render,g as renderToCanvas}; diff --git a/docs/assets/formatter-B5HCVTEV-IwUJ3K8x.js b/docs/assets/formatter-B5HCVTEV-IwUJ3K8x.js new file mode 100644 index 0000000..0d7263d --- /dev/null +++ b/docs/assets/formatter-B5HCVTEV-IwUJ3K8x.js @@ -0,0 +1,58 @@ +var Qi=Object.defineProperty;var Zi=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _e=(e,t,r)=>(Zi(e,typeof t!="symbol"?t+"":t,r),r);import{m as ea}from"./index-Bd-WH8Nz.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-BBkUAzwr.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";var ta=Object.defineProperty,pu=(e,t)=>{for(var r in t)ta(e,r,{get:t[r],enumerable:!0})},hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(hu(e,t,"read from private field"),r?r.call(e):t.get(e)),ra=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},na=(e,t,r,n)=>(hu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),du={};pu(du,{languages:()=>Vl,options:()=>zl,parsers:()=>Gu,printers:()=>Gl});var ua=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ua,Br="string",xr="array",Tr="cursor",Bt="indent",xt="align",Lr="trim",Ye="group",Tt="fill",Lt="if-break",Nt="indent-if-break",Nr="line-suffix",qr="line-suffix-boundary",be="line",Pr="label",qt="break-parent",Du=new Set([Tr,Bt,xt,Lr,Ye,Tt,Lt,Nt,Nr,qr,be,Pr,qt]);function ia(e){if(typeof e=="string")return Br;if(Array.isArray(e))return xr;if(!e)return;let{type:t}=e;if(Du.has(t))return t}var Ir=ia,aa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sa(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Ir(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=aa([...Du].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var oa=class extends Error{constructor(t){super(sa(t));_e(this,"name","InvalidDocError");this.doc=t}},fu=oa,la=()=>{},ca=la;function we(e){return{type:Bt,contents:e}}function mu(e,t){return{type:xt,contents:t,n:e}}function q(e,t={}){return ca(t.expandedStates),{type:Ye,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function pa(e){return mu(Number.NEGATIVE_INFINITY,e)}function ha(e){return mu({type:"root"},e)}function gu(e){return{type:Tt,parts:e}}function bt(e,t="",r={}){return{type:Lt,breakContents:e,flatContents:t,groupId:r.groupId}}function da(e,t){return{type:Nt,contents:e,groupId:t.groupId,negate:t.negate}}var Ze={type:qt},Da={type:be,hard:!0},fa={type:be,hard:!0,literal:!0},L={type:be},I={type:be,soft:!0},A=[Da,Ze],ma=[fa,Ze];function et(e,t){let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Pt=ga;function Or(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch(Ir(i)){case xr:return t(i.map(n));case Tt:return t({...i,parts:i.parts.map(n)});case Lt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Ye:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case xt:case Bt:case Nt:case Pr:case Nr:return t({...i,contents:n(i.contents)});case Br:case Tr:case Lr:case qr:case be:case qt:return t(i);default:throw new fu(i)}}}function Ca(e){switch(Ir(e)){case Tt:if(e.parts.every(t=>t===""))return"";break;case Ye:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ye&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case xt:case Bt:case Nt:case Nr:if(!e.contents)return"";break;case Lt:if(!e.flatContents&&!e.breakContents)return"";break;case xr:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Pt(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case Br:case Tr:case Lr:case qr:case be:case Pr:case qt:break;default:throw new fu(e)}return e}function Fa(e){return Or(e,t=>Ca(t))}function G(e,t=ma){return Or(e,r=>typeof r=="string"?et(t,r.split(` +`)):r)}var va=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);_e(this,"name","UnexpectedNodeError");this.node=t}},ya=va,lt="'",cn='"';function Ea(e,t){let r=t===!0||t===lt?lt:cn,n=r===lt?cn:lt,u=0,i=0;for(let a of e)a===r?u++:a===n&&i++;return u>i?n:r}var ba=Ea;function wa(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,Sa=class{constructor(e){ra(this,U,void 0),na(this,U,new Set(e))}getLeadingWhitespaceCount(e){let t=se(this,U),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return se(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return se(this,U).has(Pt(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${wa([...se(this,U)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=se(this,U);return Array.prototype.every.call(e,r=>t.has(r))}};U=new WeakMap;var Aa=Sa,ka=[" ",` +`,"\f","\r"," "],_a=new Aa(ka),ce=_a;function Ba(e){return(e==null?void 0:e.type)==="front-matter"}var It=Ba,xa=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]),Ta=new Set(["if","else if","for","switch","case"]);function Cu(e,t){var r;if(e.type==="text"||e.type==="comment"||It(e)||e.type==="yaml"||e.type==="toml")return null;if(e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value,e.type==="angularControlFlowBlock"&&(r=t.parameters)!=null&&r.children)for(let n of t.parameters.children)Ta.has(e.name)?delete n.expression:n.expression=n.expression.trim()}Cu.ignoredProperties=xa;var La=Cu,Na=e=>String(e).split(/[/\\]/).pop();function pn(e,t){if(!t)return;let r=Na(t).toLowerCase();return e.find(n=>{var u,i;return((u=n.extensions)==null?void 0:u.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function qa(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function Pa(e,t){let r=e.plugins.flatMap(u=>u.languages??[]),n=qa(r,t.language)??pn(r,t.physicalFile)??pn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Ot=Pa,Ia="inline",Oa={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Ma="normal",Ra={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ha(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var Xe=Ha,ja=e=>O(!1,e,/^[\t\f\r ]*\n/g,""),Fu=e=>ja(ce.trimEnd(e)),$a=e=>{let t=e,r=ce.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=ce.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function vu(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||Pe(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Hr(e,t)&&!ee(e)&&e.type!=="interpolation")}function Mr(e){return e.type==="attribute"||!e.parent||!e.prev?!1:Wa(e.prev)}function Wa(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function H(e){return e.type==="text"||e.type==="comment"}function ee(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||Xe(e)&&(e.name==="script"||e.name==="style"))}function Va(e){return e.children&&!ee(e)}function Ua(e){return ee(e)||e.type==="interpolation"||yu(e)}function yu(e){return _u(e).startsWith("pre")}function za(e,t){var r,n;let u=i();if(u&&!e.prev&&(n=(r=e.parent)==null?void 0:r.tagDefinition)!=null&&n.ignoreFirstLf)return e.type==="interpolation";return u;function i(){return It(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Pe(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||Pe(e)&&e.parent||ee(e.parent)||Mt(e.parent,t)||!ts(e.parent.cssDisplay))||e.prev&&!us(e.prev.cssDisplay))}}function Ga(e,t){return It(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:Pe(e.parent)?!0:!(!e.next&&(e.parent.type==="root"||Pe(e)&&e.parent||ee(e.parent)||Mt(e.parent,t)||!rs(e.parent.cssDisplay))||e.next&&!ns(e.next.cssDisplay))}function Ka(e){return is(e.cssDisplay)&&!ee(e)}function ct(e){return It(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>Xa(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&wu(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Su(e.lastChild))}function Eu(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function nr(e){return Au(e)||e.prev&&Ya(e.prev)||bu(e)}function Ya(e){return Au(e)||e.type==="element"&&e.fullName==="br"||bu(e)}function bu(e){return wu(e)&&Su(e)}function wu(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Au(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Rr(e){return e.lastChild?Rr(e.lastChild):e}function Xa(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.type!=="text")}function ku(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function Qa(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:u,lang:i}=e.attrMap;return!i&&!u?"babel":Ot(t,{language:i})??ku(u)}function Za(e,t){if(!Hr(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:u}=r;return Ot(t,{language:u})??ku(n)}function es(e,t){if(e.name!=="style")return;let{lang:r}=e.attrMap;return r?Ot(t,{language:r}):"css"}function hn(e,t){return Qa(e,t)??es(e,t)??Za(e,t)}function tt(e){return e==="block"||e==="list-item"||e.startsWith("table")}function ts(e){return!tt(e)&&e!=="inline-block"}function rs(e){return!tt(e)&&e!=="inline-block"}function ns(e){return!tt(e)}function us(e){return!tt(e)}function is(e){return!tt(e)&&e!=="inline-block"}function Pe(e){return _u(e).startsWith("pre")}function as(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function ss(e,t){var r;if(Me(e,t))return"block";if(((r=e.prev)==null?void 0:r.type)==="comment"){let u=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(u)return u[1]}let n=!1;if(e.type==="element"&&e.namespace==="svg")if(as(e,u=>u.fullName==="svg:foreignObject"))n=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return e.type==="element"&&(!e.namespace||n||Xe(e))&&Oa[e.name]||Ia}}function _u(e){return e.type==="element"&&(!e.namespace||Xe(e))&&Ra[e.name]||Ma}function os(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` +`)){if(r.length===0)continue;let n=ce.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(t)).join(` +`)}function xu(e){return O(!1,O(!1,e,"'","'"),""",'"')}function de(e){return xu(e.value)}var ls=new Set(["template","style","script"]);function Mt(e,t){return Me(e,t)&&!ls.has(e.fullName)}function Me(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function Hr(e,t){return Me(e,t)&&(Mt(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function cs(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function ps(e,t){let r=e.parent;if(!Me(r,t))return!1;let n=r.fullName,u=e.fullName;return n==="script"&&u==="setup"||n==="style"&&u==="vars"}function Tu(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?G(t):G(Bu(Fu(t)),A):et(L,ce.split(t))}function Lu(e,t){return Me(e,t)&&e.name==="script"}function jr(e){return e>=9&&e<=32||e==160}function Nu(e){return 48<=e&&e<=57}function $r(e){return e>=97&&e<=122||e>=65&&e<=90}function hs(e){return e>=97&&e<=102||e>=65&&e<=70||Nu(e)}function qu(e){return e===10||e===13}function dn(e){return 48<=e&&e<=55}function Dn(e){return e===39||e===34||e===96}var ds=/-+([a-z0-9])/g;function Ds(e){return e.replace(ds,(...t)=>t[1].toUpperCase())}var fr=class Pu{constructor(t,r,n,u){this.file=t,this.offset=r,this.line=n,this.col=u}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,u=this.offset,i=this.line,a=this.col;for(;u>0&&t<0;)if(u--,t++,r.charCodeAt(u)==10){i--;let s=r.substring(0,u-1).lastIndexOf(` +`);a=s>0?u-s:u}else a--;for(;u0;){let s=r.charCodeAt(u);u++,t--,s==10?(i++,a=0):a++}return new Pu(this.file,u,i,a)}getContext(t,r){let n=this.file.content,u=this.offset;if(u!=null){u>n.length-1&&(u=n.length-1);let i=u,a=0,s=0;for(;a0&&(u--,a++,!(n[u]==` +`&&++s==r)););for(a=0,s=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},fs=[gs,Cs,vs,Es,bs,As,ws,Ss,ks,ys];function ms(e,t){for(let r of fs)r(e,t);return e}function gs(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===` +`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function Cs(e){let t=r=>{var n,u;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((u=r.firstChild)==null?void 0:u.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};e.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let u=0;ut.type==="cdata",t=>``)}function ys(e){let t=r=>{var n,u;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!ce.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((u=r.next)==null?void 0:u.type)==="text"};e.walk(r=>{if(r.children)for(let n=0;n`+u.firstChild.value+``+a.value,i.sourceSpan=new b(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(u),n--,r.removeChild(a)}})}function Es(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(Va(n))for(let u of n.children){if(u.type!=="text")continue;let i=u.sourceSpan.start,a=null,s=u.value.split(r);for(let o=0;o0&&n.insertChildBefore(u,{type:"text",value:l,sourceSpan:new b(i,a)});continue}a=i.moveBy(l.length+4),n.insertChildBefore(u,{type:"interpolation",sourceSpan:new b(i,a),children:l.length===0?[]:[{type:"text",value:l,sourceSpan:new b(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(u)}})}function bs(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&ce.trim(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=Ua(t),n=yu(t);if(!r)for(let u=0;u{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function Ss(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function As(e,t){e.walk(r=>{r.cssDisplay=ss(r,t)})}function ks(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Ka(r);return}for(let u of n)u.isLeadingSpaceSensitive=za(u,t),u.isTrailingSpaceSensitive=Ga(u,t);for(let u=0;u/.test(e)}function xs(e){return` + +`+e}function Rt(e){return e.sourceSpan.start.offset}function Ht(e){return e.sourceSpan.end.offset}async function Ts(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return ha([e.startDelimiter,A,n,n?A:"",e.endDelimiter])}}var Ls=Ts,Mu=new Proxy(()=>{},{get:()=>Mu}),Ru=Mu;function Ns(e){return Array.isArray(e)&&e.length>0}var Hu=Ns;function mr(e,t){return[e.isSelfClosing?"":qs(e,t),ft(e,t)]}function qs(e,t){return e.lastChild&&Qe(e.lastChild)?"":[Ps(e,t),Wr(e,t)]}function ft(e,t){return(e.next?ve(e.next):nt(e.parent))?"":[rt(e,t),Fe(e,t)]}function Ps(e,t){return nt(e)?rt(e.lastChild,t):""}function Fe(e,t){return Qe(e)?Wr(e.parent,t):jt(e)?Vr(e.next):""}function Wr(e,t){if(Ru(!e.isSelfClosing),ju(e,t))return"";switch(e.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function ju(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Mr(e)||vu(e.parent,t))}function ve(e){return e.prev&&e.prev.type!=="docType"&&e.type!=="angularControlFlowBlock"&&!H(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function nt(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!H(Rr(e.lastChild))&&!Pe(e)}function Qe(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&H(Rr(e))}function jt(e){return e.next&&!H(e.next)&&H(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Is(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function $t(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Os(e,t,r){var n;let{node:u}=e;if(!Hu(u.attrs))return u.isSelfClosing?" ":"";let i=((n=u.prev)==null?void 0:n.type)==="comment"&&Is(u.prev.value),a=typeof i=="boolean"?()=>i:Array.isArray(i)?D=>i.includes(D.rawName):()=>!1,s=e.map(({node:D})=>a(D)?G(t.originalText.slice(Rt(D),Ht(D))):r(),"attrs"),o=u.type==="element"&&u.fullName==="script"&&u.attrs.length===1&&u.attrs[0].fullName==="src"&&u.children.length===0,l=t.singleAttributePerLine&&u.attrs.length>1&&!Me(u,t)?A:L,c=[we([o?" ":L,et(l,s)])];return u.firstChild&&$t(u.firstChild)||u.isSelfClosing&&nt(u.parent)||o?c.push(u.isSelfClosing?" ":""):c.push(t.bracketSameLine?u.isSelfClosing?" ":"":u.isSelfClosing?L:I),c}function Ms(e){return e.firstChild&&$t(e.firstChild)?"":Ur(e)}function gr(e,t,r){let{node:n}=e;return[mt(n,t),Os(e,t,r),n.isSelfClosing?"":Ms(n)]}function mt(e,t){return e.prev&&jt(e.prev)?"":[ye(e,t),Vr(e)]}function ye(e,t){return $t(e)?Ur(e.parent):ve(e)?rt(e.prev,t):""}function Vr(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${e.rawName}`;default:return`<${e.rawName}`}}function Ur(e){switch(Ru(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}var ur=new WeakMap;function Rs(e,t){let{root:r}=e;return ur.has(r)||ur.set(r,r.children.some(n=>Lu(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),ur.get(r)}var zr=Rs;function Hs(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&$t(e.firstChild)&&(r-=Ur(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Qe(e.lastChild)?n+=Wr(e,t).length:nt(e)&&(n-=rt(e.lastChild,t).length),t.originalText.slice(r,n)}var $u=Hs;function fn(e){return e===" "||e===` +`||e==="\f"||e==="\r"||e===" "}var js=/^[ \t\n\r\u000c]+/,$s=/^[, \t\n\r\u000c]+/,Ws=/^[^ \t\n\r\u000c]+/,Vs=/[,]+$/,mn=/^\d+$/,Us=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function zs(e){let t=e.length,r,n,u,i,a,s=0,o;function l(h){let d,m=h.exec(e.substring(s));if(m)return[d]=m,s+=d.length,d}let c=[];for(;;){if(l($s),s>=t){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}o=s,r=l(Ws),n=[],r.slice(-1)===","?(r=r.replace(Vs,""),p()):D()}function D(){for(l(js),u="",i="in descriptor";;){if(a=e.charAt(s),i==="in descriptor")if(fn(a))u&&(n.push(u),u="",i="after descriptor");else if(a===","){s+=1,u&&n.push(u),p();return}else if(a==="(")u+=a,i="in parens";else if(a===""){u&&n.push(u),p();return}else u+=a;else if(i==="in parens")if(a===")")u+=a,i="in descriptor";else if(a===""){n.push(u),p();return}else u+=a;else if(i==="after descriptor"&&!fn(a))if(a===""){p();return}else i="in descriptor",s-=1;s+=1}}function p(){let h=!1,d,m,g,F,f={},C,y,v,w,S;for(F=0;F{u=n(a,s)});let i=await t(e,r,t);return u?q(i):Wt(i)}function Ks(e){if(e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return()=>Ys(de(e.node))}var Wu={width:"w",height:"h",density:"x"},Js=Object.keys(Wu);function Ys(e){let t=Gs(e),r=Js.filter(c=>t.some(D=>Object.prototype.hasOwnProperty.call(D,c)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,u=Wu[n],i=t.map(c=>c.source.value),a=Math.max(...i.map(c=>c.length)),s=t.map(c=>c[n]?String(c[n].value):""),o=s.map(c=>{let D=c.indexOf(".");return D===-1?c.length:D}),l=Math.max(...o);return Wt(et([",",L],i.map((c,D)=>{let p=[c],h=s[D];if(h){let d=a-c.length+1,m=l-o[D],g=" ".repeat(d+m);p.push(bt(g," "),h+u)}return p})))}var Xs=Ks;function Qs(e,t){let{node:r}=e,n=de(r);if(r.fullName==="class"&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}var Zs=Qs;function eo(e,t){let{node:r}=e,n=de(e.node).trim();if(r.fullName==="style"&&!t.parentParser&&!n.includes("{{"))return async u=>Wt(await u(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function to(e,t,r,n){let u=de(r.node),{left:i,operator:a,right:s}=ro(u),o=zr(r,n);return[q(await X(`function _(${i}) {}`,e,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await X(s,e,{parser:o?"__ts_expression":"__js_expression"})]}function ro(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,u=e.match(t);if(!u)return;let i={};if(i.for=u[3].trim(),!i.for)return;let a=O(!1,u[1].trim(),n,""),s=a.match(r);s?(i.alias=a.replace(r,""),i.iterator1=s[1].trim(),s[2]&&(i.iterator2=s[2].trim())):i.alias=a;let o=[i.alias,i.iterator1,i.iterator2];if(!o.some((l,c)=>!l&&(c===0||o.slice(c+1).some(Boolean))))return{left:o.filter(Boolean).join(","),operator:u[2],right:i.for}}function no(e,t,r){let{node:n}=r,u=de(n);return X(`type T<${u}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Re)}function uo(e,t,{parseWithTs:r}){return X(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function io(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i,n=e.trim();return t.test(n)||r.test(n)}function ao(e,t){if(t.parser!=="vue")return;let{node:r}=e,n=r.fullName;if(n==="v-for")return to;if(n==="generic"&&Lu(r.parent,t))return no;let u=de(r),i=zr(e,t);if(cs(r)||ps(r,t))return a=>uo(u,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>so(u,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>oo(u,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Vu(u,a,{parseWithTs:i})}function so(e,t,{parseWithTs:r}){return io(e)?Vu(e,t,{parseWithTs:r}):X(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Re)}function oo(e,t,{parseWithTs:r}){return X(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},Re)}function Vu(e,t,{parseWithTs:r}){return X(e,t,{parser:r?"__ts_expression":"__js_expression"},Re)}var lo=ao,Uu=/{{(.+?)}}/s;async function co(e,t){let r=[];for(let[n,u]of e.split(Uu).entries())if(n%2===0)r.push(G(u));else try{r.push(q(["{{",we([L,await X(u,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),L,"}}"]))}catch{r.push("{{",G(u),"}}")}return r}function Gr({parser:e}){return(t,r,n)=>X(de(n.node),t,{parser:e,trailingComma:"none"},Re)}var po=Gr({parser:"__ng_action"}),ho=Gr({parser:"__ng_binding"}),Do=Gr({parser:"__ng_directive"});function fo(e,t){if(t.parser!=="angular")return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return po;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return ho;if(n.startsWith("*"))return Do;let u=de(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Wt(gu(Tu(r,u.trim())),!u.includes("@@"));if(Uu.test(u))return i=>co(u,i)}var mo=fo;function go(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||t.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[Xs,eo,Zs,lo,mo]){let u=n(e,t);if(u)return Co(u)}}}function Co(e){return async(t,r,n,u)=>{let i=await e(t,r,n,u);if(i)return i=Or(i,a=>typeof a=="string"?O(!1,a,'"',"""):a),[n.node.rawName,'="',q(i),'"']}}var Fo=go;function vo(e,t,r,n){let{node:u}=r,i=n.originalText.slice(u.sourceSpan.start.offset,u.sourceSpan.end.offset);return/^\s*$/.test(i)?"":X(i,e,{parser:"__ng_directive",__isInHtmlAttribute:!1,trailingComma:"none"},Re)}var yo=vo,Eo=new Set(["if","else if","for","switch","case"]);function bo(e,t){let{node:r}=e;switch(r.type){case"element":if(ee(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Hr(r,t)){let n=hn(r,t);return n?async(u,i)=>{let a=$u(r,t),s=/^\s*$/.test(a),o="";return s||(o=await u(Fu(a),{parser:n,__embeddedInHtml:!0}),s=o===""),[ye(r,t),q(gr(e,t,i)),s?"":A,o,s?"":A,mr(r,t),Fe(r,t)]}:void 0}break;case"text":if(ee(r.parent)){let n=hn(r.parent,t);if(n)return async u=>{let i=n==="markdown"?Bu(r.value.replace(/^[^\S\n]*\n/,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let s="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(s="module"),a.__babelSourceType=s}return[Ze,ye(r,t),await u(i,a,{stripTrailingHardline:!0}),Fe(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let u={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?(u.parser="__ng_interpolation",u.trailingComma="none"):t.parser==="vue"?u.parser=zr(e,t)?"__vue_ts_expression":"__vue_expression":u.parser="__js_expression",[we([L,await n(r.value,u)]),r.parent.next&&ve(r.parent.next)?" ":L]};break;case"attribute":return Fo(e,t);case"front-matter":return n=>Ls(r,n);case"angularControlFlowBlockParameters":return Eo.has(e.parent.name)?yo:void 0}}var wo=bo;function je(e,t,r){let n=e.node;return Mr(n)?[ye(n,t),G(t.originalText.slice(Rt(n)+(n.prev&&jt(n.prev)?Vr(n).length:0),Ht(n)-(n.next&&ve(n.next)?rt(n,t).length:0))),Fe(n,t)]:r()}function pt(e,t){return H(e)&&H(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?nr(t)?A:L:"":nr(t)?A:I:jt(e)&&(Mr(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&ve(t)?"":!t.isLeadingSpaceSensitive||nr(t)||ve(t)&&e.lastChild&&Qe(e.lastChild)&&e.lastChild.lastChild&&Qe(e.lastChild.lastChild)?A:t.hasLeadingSpaces?L:I}function Kr(e,t,r){let{node:n}=e;if(Eu(n))return[Ze,...e.map(i=>{let a=i.node,s=a.prev?pt(a.prev,a):"";return[s?[s,ct(a.prev)?A:""]:"",je(i,t,r)]},"children")];let u=n.children.map(()=>Symbol(""));return e.map((i,a)=>{let s=i.node;if(H(s)){if(s.prev&&H(s.prev)){let d=pt(s.prev,s);if(d)return ct(s.prev)?[A,A,je(i,t,r)]:[d,je(i,t,r)]}return je(i,t,r)}let o=[],l=[],c=[],D=[],p=s.prev?pt(s.prev,s):"",h=s.next?pt(s,s.next):"";return p&&(ct(s.prev)?o.push(A,A):p===A?o.push(A):H(s.prev)?l.push(p):l.push(bt("",I,{groupId:u[a-1]}))),h&&(ct(s)?H(s.next)&&D.push(A,A):h===A?H(s.next)&&D.push(A):c.push(h)),[...o,q([...l,q([je(i,t,r),...c],{id:u[a]})]),...D]},"children")}function So(e,t,r){let{node:n}=e;if(vu(n,t))return[ye(n,t),q(gr(e,t,r)),G($u(n,t)),...mr(n,t),Fe(n,t)];let u=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=c=>q([q(gr(e,t,r),{id:i}),c,mr(n,t)]),s=c=>u?da(c,{groupId:i}):(ee(n)||Mt(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?c:we(c),o=()=>u?bt(I,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?L:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?pa(I):I,l=()=>(n.next?ve(n.next):nt(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":u?bt(I,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?L:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(n.lastChild.value)?"":I;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?L:""):a([Ja(n)?Ze:"",s([o(),Kr(e,t,r)]),l()])}var Ao=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ko(e,t,r){let{node:n}=e,u=[];_o(e)&&u.push("} "),u.push("@",n.name),n.parameters&&u.push(" (",q(r("parameters")),")"),u.push(" {");let i=zu(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,u.push(we([A,Kr(e,t,r)])),i&&u.push(A,"}")):i&&u.push("}"),q(u,{shouldBreak:!0})}function zu(e){var t,r;return!(((t=e.next)==null?void 0:t.type)==="angularControlFlowBlock"&&(r=Ao.get(e.name))!=null&&r.has(e.next.name))}function _o(e){let{previous:t}=e;return(t==null?void 0:t.type)==="angularControlFlowBlock"&&!zu(e.previous)}function Bo(e,t,r){return[we([I,et([";",L],e.map(r,"children"))]),I]}var $e=null;function Ge(e){if($e!==null&&typeof $e.property){let t=$e;return $e=Ge.prototype=null,t}return $e=Ge.prototype=e??Object.create(null),new Ge}var xo=10;for(let e=0;e<=xo;e++)Ge();function To(e){return Ge(e)}function Lo(e,t="type"){To(e);function r(n){let u=n[t],i=e[u];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${u}'.`),{node:n});return i}return r}var No=Lo,qo={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[]},Po=qo,Io=No(Po),Oo=Io;function Mo(e,t,r){let{node:n}=e;switch(n.type){case"front-matter":return G(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[q(Kr(e,t,r)),A];case"element":case"ieConditionalComment":return So(e,t,r);case"angularControlFlowBlock":return ko(e,t,r);case"angularControlFlowBlockParameters":return Bo(e,t,r);case"angularControlFlowBlockParameter":return ce.trim(n.expression);case"ieConditionalStartComment":case"ieConditionalEndComment":return[mt(n),ft(n)];case"interpolation":return[mt(n,t),...e.map(r,"children"),ft(n,t)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),s=a?n.value.replace(i,""):n.value;return[G(s),a?A:""]}let u=Fa([ye(n,t),...Tu(n),Fe(n,t)]);return Array.isArray(u)?gu(u):u}case"docType":return[q([mt(n,t)," ",O(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),ft(n,t)];case"comment":return[ye(n,t),G(t.originalText.slice(Rt(n),Ht(n))),Fe(n,t)];case"attribute":{if(n.value===null)return n.rawName;let u=xu(n.value),i=ba(u,'"');return[n.rawName,"=",i,G(i==='"'?O(!1,u,'"',"""):O(!1,u,"'","'")),i]}case"cdata":default:throw new ya(n,"HTML")}}var Ro={preprocess:_s,print:Mo,insertPragma:xs,massageAstNode:La,embed:wo,getVisitorKeys:Oo},Ho=Ro,Gu={};pu(Gu,{angular:()=>jl,html:()=>Hl,lwc:()=>Wl,vue:()=>$l});var gn;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(gn||(gn={}));var Cn;(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"})(Cn||(Cn={}));var Fn={name:"custom-elements"},vn={name:"no-errors-schema"},ge;(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"})(ge||(ge={}));var yn;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(yn||(yn={}));var z;(function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"})(z||(z={}));function Vt(e){if(e[0]!=":")return[null,e];let t=e.indexOf(":",1);if(t===-1)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function En(e){return Vt(e)[1]==="ng-container"}function bn(e){return Vt(e)[1]==="ng-content"}function gt(e){return e===null?null:Vt(e)[0]}function St(e,t){return e?`:${e}:${t}`:t}var Ct;function wn(){return Ct||(Ct={},ht(ge.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ht(ge.STYLE,["*|style"]),ht(ge.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),ht(ge.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Ct}function ht(e,t){for(let r of t)Ct[r.toLowerCase()]=e}var jo=class{},$o="boolean",Wo="number",Vo="string",Uo="object",zo=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Ku=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Go=Array.from(Ku).reduce((e,[t,r])=>(e.set(t,r),e),new Map),Ko=class extends jo{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,zo.forEach(e=>{let t=new Map,r=new Set,[n,u]=e.split("|"),i=u.split(","),[a,s]=n.split("^");a.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),t),this._eventSchema.set(l.toLowerCase(),r)});let o=s&&this._schema.get(s.toLowerCase());if(o){for(let[l,c]of o)t.set(l,c);for(let l of this._eventSchema.get(s.toLowerCase()))r.add(l)}i.forEach(l=>{if(l.length>0)switch(l[0]){case"*":r.add(l.substring(1));break;case"!":t.set(l.substring(1),$o);break;case"#":t.set(l.substring(1),Wo);break;case"%":t.set(l.substring(1),Uo);break;default:t.set(l,Vo)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===vn.name))return!0;if(e.indexOf("-")>-1){if(En(e)||bn(e))return!1;if(r.some(n=>n.name===Fn.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===vn.name)||e.indexOf("-")>-1&&(En(e)||bn(e)||t.some(r=>r.name===Fn.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=wn()[e+"|"+t];return n||(n=wn()["*|"+t],n||ge.NONE)}getMappedPropName(e){return Ku.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>Go.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Ds(e)}normalizeAnimationStyleValue(e,t,r){let n="",u=r.toString().trim(),i=null;if(Jo(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(i=`Please provide a CSS unit value for ${t}:${r}`)}return{error:i,value:u+n}}};function Jo(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var E=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=z.PARSABLE_DATA,closedByParent:n=!1,isVoid:u=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:a=!1,canSelfClose:s=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(o=>this.closedByChildren[o]=!0),this.isVoid=u,this.closedByParent=n||u,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=i,this.preventNamespaceInheritance=a,this.canSelfClose=s??u}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Sn,We;function Cr(e){return We||(Sn=new E({canSelfClose:!0}),We=Object.assign(Object.create(null),{base:new E({isVoid:!0}),meta:new E({isVoid:!0}),area:new E({isVoid:!0}),embed:new E({isVoid:!0}),link:new E({isVoid:!0}),img:new E({isVoid:!0}),input:new E({isVoid:!0}),param:new E({isVoid:!0}),hr:new E({isVoid:!0}),br:new E({isVoid:!0}),source:new E({isVoid:!0}),track:new E({isVoid:!0}),wbr:new E({isVoid:!0}),p:new E({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new E({closedByChildren:["tbody","tfoot"]}),tbody:new E({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new E({closedByChildren:["tbody"],closedByParent:!0}),tr:new E({closedByChildren:["tr"],closedByParent:!0}),td:new E({closedByChildren:["td","th"],closedByParent:!0}),th:new E({closedByChildren:["td","th"],closedByParent:!0}),col:new E({isVoid:!0}),svg:new E({implicitNamespacePrefix:"svg"}),foreignObject:new E({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new E({implicitNamespacePrefix:"math"}),li:new E({closedByChildren:["li"],closedByParent:!0}),dt:new E({closedByChildren:["dt","dd"]}),dd:new E({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new E({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new E({closedByChildren:["optgroup"],closedByParent:!0}),option:new E({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new E({ignoreFirstLf:!0}),listing:new E({ignoreFirstLf:!0}),style:new E({contentType:z.RAW_TEXT}),script:new E({contentType:z.RAW_TEXT}),title:new E({contentType:{default:z.ESCAPABLE_RAW_TEXT,svg:z.PARSABLE_DATA}}),textarea:new E({contentType:z.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ko().allKnownElementNames().forEach(t=>{!We[t]&>(t)===null&&(We[t]=new E({canSelfClose:!1}))})),We[e]??Sn}var ut=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Yo=class extends ut{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="text"}visit(e,t){return e.visitText(this,t)}},Xo=class extends ut{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="cdata"}visit(e,t){return e.visitCdata(this,t)}},Qo=class extends ut{constructor(e,t,r,n,u,i){super(n,i),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=u}visit(e,t){return e.visitExpansion(this,t)}},Zo=class{constructor(e,t,r,n,u){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=u}visit(e,t){return e.visitExpansionCase(this,t)}},el=class extends ut{constructor(e,t,r,n,u,i,a){super(r,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=u,this.valueTokens=i,this.type="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},oe=class extends ut{constructor(e,t,r,n,u,i=null,a=null,s){super(n,s),this.name=e,this.attrs=t,this.children=r,this.startSourceSpan=u,this.endSourceSpan=i,this.nameSpan=a,this.type="element"}visit(e,t){return e.visitElement(this,t)}},tl=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment"}visit(e,t){return e.visitComment(this,t)}},rl=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType"}visit(e,t){return e.visitDocType(this,t)}},Be=class{constructor(e,t,r,n,u,i=null){this.name=e,this.parameters=t,this.children=r,this.sourceSpan=n,this.startSourceSpan=u,this.endSourceSpan=i,this.type="block"}visit(e,t){return e.visitBlock(this,t)}},An=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}};function Ju(e,t,r=null){let n=[],u=e.visit?i=>e.visit(i,r)||i.visit(e,r):i=>i.visit(e,r);return t.forEach(i=>{let a=u(i);a&&n.push(a)}),n}var nl=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitChildren(e,t){let r=[],n=this;function u(i){i&&r.push(Ju(n,i,e))}return t(u),Array.prototype.concat.apply([],r)}},At={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:` +`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},ul="";At.ngsp=ul;var il=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function al(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let r=t[0],n=t[1];il.forEach(u=>{if(u.test(r)||u.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var sl=class Yu{static fromArray(t){return t?(al("interpolation",t),new Yu(t[0],t[1])):Xu}constructor(t,r){this.start=t,this.end=r}},Xu=new sl("{{","}}"),ir=class extends Ou{constructor(e,t,r){super(r,e),this.tokenType=t}},ol=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function ll(e,t,r,n={}){let u=new hl(new Iu(e,t),r,n);return u.tokenize(),new ol(Cl(u.tokens),u.errors,u.nonNormalizedIcuExpressions)}var cl=/\r\n?/g;function xe(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function kn(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function pl(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var kt;(function(e){e.HEX="hexadecimal",e.DEC="decimal"})(kt||(kt={}));var ar=class{constructor(e){this.error=e}},hl=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||Xu,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(u=>u.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Fl(e,n):new Qu(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0;try{this._cursor.init()}catch(u){this.handleError(u)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(cl,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(30),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>jr(r)?!e:xn(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(_),this._attemptCharCode(41))this._attemptCharCodeUntilFn(_);else{t.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):t.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Tn);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&Dn(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Tn)}}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(ml(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new ir("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new ir("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new ir(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new ar(r)}handleError(e){if(e instanceof Jr&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ar)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return gl(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(xe(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==58&&!dl(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===58?(t=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(_n,t===""?0:1);let n=this._cursor.getChars(r);return[t,n]}_consumeTagOpen(e){let t,r,n,u=[];try{if(!$r(this._cursor.peek()))throw this._createError(xe(this._cursor.peek()),this._cursor.getSpan(e));for(n=this._consumeTagOpenStart(e),r=n.parts[0],t=n.parts[1],this._attemptCharCodeUntilFn(_);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[a,s]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(_),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(_);let o=this._consumeAttributeValue();u.push({prefix:a,name:s,value:o})}else u.push({prefix:a,name:s});this._attemptCharCodeUntilFn(_)}this._consumeTagOpenEnd()}catch(a){if(a instanceof ar){n?n.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let i=this._getTagContentType(t,r,this._fullNameStack.length>0,u);this._handleFullNameStackForTagOpen(r,t),i===z.RAW_TEXT?this._consumeRawTextWithTagClose(r,t,!1):i===z.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,t,!0)}_consumeRawTextWithTagClose(e,t,r){this._consumeRawText(r,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(_),!this._attemptStrCaseInsensitive(e?`${e}:${t}`:t))?!1:(this._attemptCharCodeUntilFn(_),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(n=>n===62,3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(xe(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();return this._endToken(t),t}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(16,17,r,r),this._consumeQuote(t)}else{let t=()=>_n(this._cursor.peek());e=this._consumeWithInterpolation(16,17,t,t)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(_),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(_),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(_),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(_),this._beginToken(7);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(_)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(_),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let u=[];for(;!r();){let a=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(u.join(""))],a),u.length=0,this._consumeInterpolation(t,a,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(u.join(""))]),u.length=0,this._consumeEntity(e),this._beginToken(e)):u.push(this._readChar())}this._inInterpolation=!1;let i=this._processCarriageReturns(u.join(""));return this._endToken([i]),i}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(this._interpolationConfig.start);let u=this._cursor.clone(),i=null,a=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let s=this._cursor.clone();if(this._isTagStart()){this._cursor=s,n.push(this._getProcessedChars(u,s)),this._endToken(n);return}if(i===null)if(this._attemptStr(this._interpolationConfig.end)){n.push(this._getProcessedChars(u,s)),n.push(this._interpolationConfig.end),this._endToken(n);return}else this._attemptStr("//")&&(a=!0);let o=this._cursor.peek();this._cursor.advance(),o===92?this._cursor.advance():o===i?i=null:!a&&i===null&&Dn(o)&&(i=o)}n.push(this._getProcessedChars(u,this._cursor)),this._endToken(n)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),xn(e.peek()))return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}_handleFullNameStackForTagOpen(e,t){let r=St(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=St(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function _(e){return!jr(e)||e===0}function _n(e){return jr(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function dl(e){return(e<97||12257)}function Dl(e){return e===59||e===0||!hs(e)}function fl(e){return e===59||e===0||!$r(e)}function ml(e){return e!==125}function gl(e,t){return Bn(e)===Bn(t)}function Bn(e){return e>=97&&e<=122?e-97+65:e}function xn(e){return $r(e)||Nu(e)||e===95}function Tn(e){return e!==59&&_(e)}function Cl(e){let t=[],r;for(let n=0;n0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let u=this.locationFromCursor(t),i=this.locationFromCursor(this),a=n!==t?this.locationFromCursor(n):u;return new b(u,i,a)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Jr('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):qu(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new fr(t.file,t.state.offset,t.state.line,t.state.column)}},Fl=class vr extends Qu{constructor(t,r){t instanceof vr?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new vr(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(dn(t())){let r="",n=0,u=this.clone();for(;dn(t())&&n<3;)u=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=u.internalState}else qu(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),u=parseInt(n,16);if(isNaN(u))throw t.state=t.internalState,new Jr("Invalid hexadecimal escape sequence",t);return u}},Jr=class{constructor(e,t){this.msg=e,this.cursor=t}},R=class Zu extends Ou{static create(t,r,n){return new Zu(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},vl=class{constructor(e,t){this.rootNodes=e,this.errors=t}},yl=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,u){let i=h=>(d,...m)=>h(d.toLowerCase(),...m),a=n?this.getTagDefinition:i(this.getTagDefinition),s=h=>a(h).getContentType(),o=n?u:i(u),l=ll(e,t,u?(h,d,m,g)=>{let F=o(h,d,m,g);return F!==void 0?F:s(h)}:s,r),c=r&&r.canSelfClose||!1,D=r&&r.allowHtmComponentClosingTags||!1,p=new El(l.tokens,a,c,D,n);return p.build(),new vl(p.rootNodes,l.errors.concat(p.errors))}},El=class ei{constructor(t,r,n,u,i){this.tokens=t,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=u,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==30;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._advance();for(let t of this._containerStack)t instanceof Be&&this.errors.push(R.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let a=new b(t.sourceSpan.start,u.sourceSpan.end,t.sourceSpan.fullStart),s=new b(r.sourceSpan.start,u.sourceSpan.end,r.sourceSpan.fullStart);return new Zo(t.parts[0],i.rootNodes,a,t.sourceSpan,s)}_collectExpansionExpTokens(t){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Ln(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(R.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Ln(n,20))n.pop();else return this.errors.push(R.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===30)return this.errors.push(R.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==` +`){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,u=t.parts[0];if(u.length>0&&u[0]===` +`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(u=u.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[u]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)t=this._advance(),r.push(t),t.type===8?u+=t.parts.join("").replace(/&([^;]+);/g,Nn):t.type===9?u+=t.parts[0]:u+=t.parts.join("");if(u.length>0){let i=t.sourceSpan;this._addToParent(new Yo(u,new b(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let t=this._getContainer();t instanceof oe&&this.getTagDefinition(t.name).isVoid&&this._containerStack.pop()}_consumeStartTag(t){let[r,n]=t.parts,u=[];for(;this._peek.type===14;)u.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let h=this.getTagDefinition(i);this.canSelfClose||h.canSelfClose||gt(i)!==null||h.isVoid||this.errors.push(R.create(i,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let s=this._peek.sourceSpan.fullStart,o=new b(t.sourceSpan.start,s,t.sourceSpan.fullStart),l=new b(t.sourceSpan.start,s,t.sourceSpan.fullStart),c=new b(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),D=new oe(i,u,[],o,l,void 0,c),p=this._getContainer();this._pushContainer(D,p instanceof oe&&this.getTagDefinition(p.name).isClosedByChild(D.name)),a?this._popContainer(i,oe,o):t.type===4&&(this._popContainer(i,oe,null),this.errors.push(R.create(i,o,`Opening tag "${i}" not terminated.`)))}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeEndTag(t){let r=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t.parts[0],t.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(R.create(r,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(r,oe,t.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(R.create(r,t.sourceSpan,n))}}_popContainer(t,r,n){let u=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(gt(a.name)?a.name===t:(t==null||a.name.toLowerCase()===t.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!u;(a instanceof Be||a instanceof oe&&!this.getTagDefinition(a.name).closedByParent)&&(u=!0)}return!1}_consumeAttr(t){let r=St(t.parts[0],t.parts[1]),n=t.sourceSpan.end,u;this._peek.type===15&&(u=this._advance());let i="",a=[],s,o;if(this._peek.type===16)for(s=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let c=this._advance();a.push(c),c.type===17?i+=c.parts.join("").replace(/&([^;]+);/g,Nn):c.type===9?i+=c.parts[0]:i+=c.parts.join(""),o=n=c.sourceSpan.end}this._peek.type===15&&(o=n=this._advance().sourceSpan.end);let l=s&&o&&new b((u==null?void 0:u.sourceSpan.start)??s.start,o,(u==null?void 0:u.sourceSpan.fullStart)??s.fullStart);return new el(r,i,new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===28;){let s=this._advance();r.push(new An(s.parts[0],s.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,u=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new Be(t.parts[0],r,[],u,i);this._pushContainer(a,!1)}_consumeBlockClose(t){this._popContainer(null,Be,t.sourceSpan)||this.errors.push(R.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===28;){let s=this._advance();r.push(new An(s.parts[0],s.sourceSpan))}let n=this._peek.sourceSpan.fullStart,u=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new b(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new Be(t.parts[0],r,[],u,i);this._pushContainer(a,!1),this._popContainer(null,Be,null),this.errors.push(R.create(t.parts[0],u,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let t=this._containerStack.length-1;t>-1;t--)if(this._containerStack[t]instanceof oe)return this._containerStack[t];return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r,n){if(t===""&&(t=this.getTagDefinition(r).implicitNamespacePrefix||"",t===""&&n!=null)){let u=Vt(n.name)[1];this.getTagDefinition(u).preventNamespaceInheritance||(t=gt(n.name))}return St(t,r)}};function Ln(e,t){return e.length>0&&e[e.length-1]===t}function Nn(e,t){return At[t]!==void 0?At[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var bl=class extends yl{constructor(){super(Cr)}parse(e,t,r,n=!1,u){return super.parse(e,t,r,n,u)}},sr=null,wl=()=>(sr||(sr=new bl),sr);function qn(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:u=!1,getTagContentType:i,tokenizeAngularBlocks:a=!1}=t;return wl().parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a},u,i)}var Sl=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Al(e){let t=e.match(Sl);if(!t)return{content:e};let{startDelimiter:r,language:n,value:u="",endDelimiter:i}=t.groups,a=n.trim()||"yaml";if(r==="+++"&&(a="toml"),a!=="yaml"&&r!==i)return{content:e};let[s]=t;return{frontMatter:{type:"front-matter",lang:a,value:u,startDelimiter:r,endDelimiter:i,raw:s.replace(/\n$/,"")},content:O(!1,s,/[^\n]/g," ")+e.slice(s.length)}}var kl=Al;function _l(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Bl=_l,xl=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),or=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),dt={attrs:!0,children:!0},Pn=new Set(["parent"]),Tl=class Ue{constructor(t={}){for(let r of new Set([...Pn,...Object.keys(t)]))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in dt&&(r=r.map(n=>this.createChild(n))),!Pn.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in dt){let u=this[n];if(u){let i=Ll(u,a=>a.map(t));r!==u&&(r||(r=new Ue({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in dt||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in dt){let n=this[r];if(n)for(let u=0;u[t.fullName,t.value]))}};function Ll(e,t){let r=e.map(t);return r.some((n,u)=>n!==e[u])?r:e}var Nl=[{regex:/^(\[if([^\]]*)]>)(.*?){try{return[!0,t(i,s).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new b(s,o)}]]}})();return{type:"ieConditionalComment",complete:l,children:c,condition:O(!1,u.trim(),/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new b(e.sourceSpan.start,s),endSourceSpan:new b(o,e.sourceSpan.end)}}function Il(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:O(!1,n.trim(),/\s+/g," "),sourceSpan:e.sourceSpan}}function Ol(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}function Ml(e){if(e.type==="block"){if(e.name=O(!1,e.name.toLowerCase(),/\s+/g," ").trim(),e.type="angularControlFlowBlock",!Hu(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new b(e.parameters[0].sourceSpan.start,Pt(!1,e.parameters,-1).sourceSpan.end)}}}function ti(e,t,r){let{name:n,canSelfClose:u=!0,normalizeTagName:i=!1,normalizeAttributeName:a=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:o=!1,shouldParseAsRawText:l}=t,{rootNodes:c,errors:D}=qn(e,{canSelfClose:u,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:o,getTagContentType:l?(...f)=>l(...f)?z.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0});if(n==="vue"){if(c.some(v=>v.type==="docType"&&v.value==="html"||v.type==="element"&&v.name.toLowerCase()==="html"))return ti(e,ni,r);let f,C=()=>f??(f=qn(e,{canSelfClose:u,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:o})),y=v=>C().rootNodes.find(({startSourceSpan:w})=>w&&w.start.offset===v.startSourceSpan.start.offset)??v;for(let[v,w]of c.entries()){let{endSourceSpan:S,startSourceSpan:x}=w;if(S===null)D=C().errors,c[v]=y(w);else if(Rl(w,r)){let K=C().errors.find(W=>W.span.start.offset>x.start.offset&&W.span.start.offset0&&In(D[0]);let p=f=>{let C=f.name.startsWith(":")?f.name.slice(1).split(":")[0]:null,y=f.nameSpan.toString(),v=C!==null&&y.startsWith(`${C}:`),w=v?y.slice(C.length+1):y;f.name=w,f.namespace=C,f.hasExplicitNamespace=v},h=f=>{switch(f.type){case"element":p(f);for(let C of f.attrs)p(C),C.valueSpan?(C.value=C.valueSpan.toString(),/["']/.test(C.value[0])&&(C.value=C.value.slice(1,-1))):C.value=null;break;case"comment":f.value=f.sourceSpan.toString().slice(4,-3);break;case"text":f.value=f.sourceSpan.toString();break}},d=(f,C)=>{let y=f.toLowerCase();return C(y)?y:f},m=f=>{if(f.type==="element"&&(i&&(!f.namespace||f.namespace===f.tagDefinition.implicitNamespacePrefix||Xe(f))&&(f.name=d(f.name,C=>xl.has(C))),a))for(let C of f.attrs)C.namespace||(C.name=d(C.name,y=>or.has(f.name)&&(or.get("*").has(y)||or.get(f.name).has(y))))},g=f=>{f.sourceSpan&&f.endSourceSpan&&(f.sourceSpan=new b(f.sourceSpan.start,f.endSourceSpan.end))},F=f=>{if(f.type==="element"){let C=Cr(o?f.name:f.name.toLowerCase());!f.namespace||f.namespace===C.implicitNamespacePrefix||Xe(f)?f.tagDefinition=C:f.tagDefinition=Cr("")}};return Ju(new class extends nl{visit(f){h(f),F(f),m(f),g(f)}},c),c}function Rl(e,t){var r;if(e.type!=="element"||e.name!=="template")return!1;let n=(r=e.attrs.find(u=>u.name==="lang"))==null?void 0:r.value;return!n||Ot(t,{language:n})==="html"}function In(e){let{msg:t,span:{start:r,end:n}}=e;throw Bl(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function ri(e,t,r={},n=!0){let{frontMatter:u,content:i}=n?kl(e):{frontMatter:null,content:e},a=new Iu(e,r.filepath),s=new fr(a,0,0,0),o=s.moveBy(e.length),l={type:"root",sourceSpan:new b(s,o),children:ti(i,t,r)};if(u){let p=new fr(a,0,0,0),h=p.moveBy(u.raw.length);u.sourceSpan=new b(p,h),l.children.unshift(u)}let c=new Tl(l),D=(p,h)=>{let{offset:d}=h,m=O(!1,e.slice(0,d),/[^\n\r]/g," "),g=ri(m+p,t,r,!1);g.sourceSpan=new b(h,Pt(!1,g.children,-1).sourceSpan.end);let F=g.children[0];return F.length===d?g.children.shift():(F.sourceSpan=new b(F.sourceSpan.start.moveBy(d),F.sourceSpan.end),F.value=F.value.slice(d)),g};return c.walk(p=>{if(p.type==="comment"){let h=ql(p,D);h&&p.parent.replaceChild(p,h)}Ml(p)}),c}function Ut(e){return{parse:(t,r)=>ri(t,e,r),hasPragma:Bs,astFormat:"html",locStart:Rt,locEnd:Ht}}var ni={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Hl=Ut(ni),jl=Ut({name:"angular"}),$l=Ut({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:u,value:i})=>u==="lang"&&i!=="html"&&i!==""&&i!==void 0))}}),Wl=Ut({name:"lwc",canSelfClose:!1}),Vl=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],On={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Mn="HTML",Ul={bracketSameLine:On.bracketSameLine,htmlWhitespaceSensitivity:{category:Mn,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:On.singleAttributePerLine,vueIndentScriptAndStyle:{category:Mn,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},zl=Ul,Gl={html:Ho},Kl=du,Jl=Object.create,zt=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,Xl=Object.getOwnPropertyNames,Ql=Object.getPrototypeOf,Zl=Object.prototype.hasOwnProperty,ec=(e,t)=>()=>(e&&(t=e(e=0)),t),Gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kt=(e,t)=>{for(var r in t)zt(e,r,{get:t[r],enumerable:!0})},ui=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Xl(t))!Zl.call(e,u)&&u!==r&&zt(e,u,{get:()=>t[u],enumerable:!(n=Yl(t,u))||n.enumerable});return e},it=(e,t,r)=>(r=e!=null?Jl(Ql(e)):{},ui(t||!e||!e.__esModule?zt(r,"default",{value:e,enumerable:!0}):r,e)),tc=e=>ui(zt({},"__esModule",{value:!0}),e),rc=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Rn=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ve=(e,t,r)=>(rc(e,t,"access private method"),r),nc=Gt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){}t.prototype={diff:function(u,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.callback;typeof a=="function"&&(s=a,a={}),this.options=a;var o=this;function l(f){return s?(setTimeout(function(){s(void 0,f)},0),!0):f}u=this.castInput(u),i=this.castInput(i),u=this.removeEmpty(this.tokenize(u)),i=this.removeEmpty(this.tokenize(i));var c=i.length,D=u.length,p=1,h=c+D;a.maxEditLength&&(h=Math.min(h,a.maxEditLength));var d=[{newPos:-1,components:[]}],m=this.extractCommon(d[0],i,u,0);if(d[0].newPos+1>=c&&m+1>=D)return l([{value:this.join(i),count:i.length}]);function g(){for(var f=-1*p;f<=p;f+=2){var C=void 0,y=d[f-1],v=d[f+1],w=(v?v.newPos:0)-f;y&&(d[f-1]=void 0);var S=y&&y.newPos+1=c&&w+1>=D)return l(r(o,C.components,i,u,o.useLongestToken));d[f]=C}p++}if(s)(function f(){setTimeout(function(){if(p>h)return s();g()||f()},0)})();else for(;p<=h;){var F=g();if(F)return F}},pushComponent:function(u,i,a){var s=u[u.length-1];s&&s.added===i&&s.removed===a?u[u.length-1]={count:s.count+1,added:i,removed:a}:u.push({count:1,added:i,removed:a})},extractCommon:function(u,i,a,s){for(var o=i.length,l=a.length,c=u.newPos,D=c-s,p=0;c+1F.length?C:F}),h.value=u.join(m)}else h.value=u.join(a.slice(D,D+h.count));D+=h.count,h.added||(p+=h.count)}}var g=i[c-1];return c>1&&typeof g.value=="string"&&(g.added||g.removed)&&u.equals("",g.value)&&(i[c-2].value+=g.value,i.pop()),i}function n(u){return{newPos:u.newPos,components:u.components.slice(0)}}}),uc=Gt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=u,e.arrayDiff=void 0;var t=r(nc());function r(i){return i&&i.__esModule?i:{default:i}}var n=new t.default;e.arrayDiff=n,n.tokenize=function(i){return i.slice()},n.join=n.removeEmpty=function(i){return i};function u(i,a,s){return n.diff(i,a,s)}}),Jt=Gt((e,t)=>{var r=new Proxy(String,{get:()=>r});t.exports=r}),ii={};Kt(ii,{default:()=>si,shouldHighlight:()=>ai});var ai,si,ic=ec(()=>{ai=()=>!1,si=String}),ac=Gt(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=D,e.default=p;var t=(ic(),tc(ii)),r=u(Jt(),!0);function n(h){if(typeof WeakMap!="function")return null;var d=new WeakMap,m=new WeakMap;return(n=function(g){return g?m:d})(h)}function u(h,d){if(!d&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=n(d);if(m&&m.has(h))return m.get(h);var g={__proto__:null},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in h)if(f!=="default"&&Object.prototype.hasOwnProperty.call(h,f)){var C=F?Object.getOwnPropertyDescriptor(h,f):null;C&&(C.get||C.set)?Object.defineProperty(g,f,C):g[f]=h[f]}return g.default=h,m&&m.set(h,g),g}var i;function a(h){return h?(i!=null||(i=new r.default.constructor({enabled:!0,level:1})),i):r.default}var s=!1;function o(h){return{gutter:h.grey,marker:h.red.bold,message:h.red.bold}}var l=/\r\n|[\n\r\u2028\u2029]/;function c(h,d,m){let g=Object.assign({column:0,line:-1},h.start),F=Object.assign({},g,h.end),{linesAbove:f=2,linesBelow:C=3}=m||{},y=g.line,v=g.column,w=F.line,S=F.column,x=Math.max(y-(f+1),0),K=Math.min(d.length,w+C);y===-1&&(x=0),w===-1&&(K=d.length);let W=w-y,T={};if(W)for(let V=0;V<=W;V++){let J=V+y;if(!v)T[J]=!0;else if(V===0){let fe=d[J-1].length;T[J]=[v,fe-v+1]}else if(V===W)T[J]=[0,S];else{let fe=d[J-V].length;T[J]=[0,fe]}}else v===S?v?T[y]=[v,0]:T[y]=!0:T[y]=[v,S-v];return{start:x,end:K,markerLines:T}}function D(h,d,m={}){let g=(m.highlightCode||m.forceColor)&&(0,t.shouldHighlight)(m),F=a(m.forceColor),f=o(F),C=(T,V)=>g?T(V):V,y=h.split(l),{start:v,end:w,markerLines:S}=c(d,y,m),x=d.start&&typeof d.start.column=="number",K=String(w).length,W=(g?(0,t.default)(h,m):h).split(l,w).slice(v,w).map((T,V)=>{let J=v+1+V,fe=` ${` ${J}`.slice(-K)} |`,ot=S[J],Ji=!S[J+1];if(ot){let rr="";if(Array.isArray(ot)){let Yi=T.slice(0,Math.max(ot[0]-1,0)).replace(/[^\t]/g," "),Xi=ot[1]||1;rr=[` + `,C(f.gutter,fe.replace(/\d/g," "))," ",Yi,C(f.marker,"^").repeat(Xi)].join(""),Ji&&m.message&&(rr+=" "+C(f.message,m.message))}return[C(f.marker,">"),C(f.gutter,fe),T.length>0?` ${T}`:"",rr].join("")}else return` ${C(f.gutter,fe)}${T.length>0?` ${T}`:""}`}).join(` +`);return m.message&&!x&&(W=`${" ".repeat(K+1)}${m.message} +${W}`),g?F.reset(W):W}function p(h,d,m,g={}){if(!s){s=!0;let F="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let f=new Error(F);f.name="DeprecationWarning",console.warn(new Error(F))}}return m=Math.max(m,0),D(h,{start:{column:m,line:d}},g)}}),oi={};Kt(oi,{__debug:()=>rh,check:()=>eh,doc:()=>zi,format:()=>Ki,formatWithCursor:()=>Gi,getSupportInfo:()=>th,util:()=>Ui,version:()=>Z2});var sc=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Yt=sc,oc=it(uc(),1),Se="string",pe="array",Ae="cursor",te="indent",re="align",ne="trim",P="group",j="fill",M="if-break",ue="indent-if-break",ie="line-suffix",ae="line-suffix-boundary",B="line",Q="label",$="break-parent",li=new Set([Ae,te,re,ne,P,j,M,ue,ie,ae,B,Q,$]);function lc(e){if(typeof e=="string")return Se;if(Array.isArray(e))return pe;if(!e)return;let{type:t}=e;if(li.has(t))return t}var ke=lc,cc=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function pc(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(ke(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=cc([...li].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var hc=class extends Error{constructor(t){super(pc(t));_e(this,"name","InvalidDocError");this.doc=t}},Ie=hc,Hn={};function dc(e,t,r,n){let u=[e];for(;u.length>0;){let i=u.pop();if(i===Hn){r(u.pop());continue}r&&u.push(i,Hn);let a=ke(i);if(!a)throw new Ie(i);if((t==null?void 0:t(i))!==!1)switch(a){case pe:case j:{let s=a===pe?i:i.parts;for(let o=s.length,l=o-1;l>=0;--l)u.push(s[l]);break}case M:u.push(i.flatContents,i.breakContents);break;case P:if(n&&i.expandedStates)for(let s=i.expandedStates.length,o=s-1;o>=0;--o)u.push(i.expandedStates[o]);else u.push(i.contents);break;case re:case te:case ue:case Q:case ie:u.push(i.contents);break;case Se:case Ae:case ne:case ae:case B:case $:break;default:throw new Ie(i)}}}var Yr=dc,Dc=()=>{},fc=Dc;function _t(e){return{type:te,contents:e}}function Oe(e,t){return{type:re,contents:t,n:e}}function ci(e,t={}){return fc(t.expandedStates),{type:P,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function mc(e){return Oe(Number.NEGATIVE_INFINITY,e)}function gc(e){return Oe({type:"root"},e)}function Cc(e){return Oe(-1,e)}function Fc(e,t){return ci(e[0],{...t,expandedStates:e})}function pi(e){return{type:j,parts:e}}function vc(e,t="",r={}){return{type:M,breakContents:e,flatContents:t,groupId:r.groupId}}function yc(e,t){return{type:ue,contents:e,groupId:t.groupId,negate:t.negate}}function yr(e){return{type:ie,contents:e}}var Ec={type:ae},Xt={type:$},bc={type:ne},Xr={type:B,hard:!0},hi={type:B,hard:!0,literal:!0},di={type:B},wc={type:B,soft:!0},Ce=[Xr,Xt],Di=[hi,Xt],Er={type:Ae};function fi(e,t){let r=[];for(let n=0;n0){for(let u=0;u{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},k=Ac;function kc(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===` +`?"crlf":"cr":"lf"}function Qr(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`;default:return` +`}}function gi(e,t){let r;switch(t){case` +`:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r +`:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function _c(e){return Yt(!1,e,/\r\n?/g,` +`)}var Bc=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function xc(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Tc(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Lc=e=>!(xc(e)||Tc(e)),Nc=/[^\x20-\x7F]/;function qc(e){if(!e)return 0;if(!Nc.test(e))return e.length;e=e.replace(Bc()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=Lc(n)?1:2)}return t}var Zr=qc,Pc=e=>{if(Array.isArray(e))return e;if(e.type!==j)throw new Error(`Expect doc to be 'array' or '${j}'.`);return e.parts};function Qt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch(ke(i)){case pe:return t(i.map(n));case j:return t({...i,parts:i.parts.map(n)});case M:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case P:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case re:case te:case ue:case Q:case ie:return t({...i,contents:n(i.contents)});case Se:case Ae:case ne:case ae:case B:case $:return t(i);default:throw new Ie(i)}}}function en(e,t,r){let n=r,u=!1;function i(a){if(u)return!1;let s=t(a);s!==void 0&&(u=!0,n=s)}return Yr(e,i),n}function Ic(e){if(e.type===P&&e.break||e.type===B&&e.hard||e.type===$)return!0}function Oc(e){return en(e,Ic,!1)}function jn(e){if(e.length>0){let t=k(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Mc(e){let t=new Set,r=[];function n(i){if(i.type===$&&jn(r),i.type===P){if(r.push(i),t.has(i))return!1;t.add(i)}}function u(i){i.type===P&&r.pop().break&&jn(r)}Yr(e,n,u,!0)}function Rc(e){return e.type===B&&!e.hard?e.soft?"":" ":e.type===M?e.flatContents:e}function Hc(e){return Qt(e,Rc)}function $n(e){for(e=[...e];e.length>=2&&k(!1,e,-2).type===B&&k(!1,e,-1).type===$;)e.length-=2;if(e.length>0){let t=Ke(k(!1,e,-1));e[e.length-1]=t}return e}function Ke(e){switch(ke(e)){case re:case te:case ue:case P:case ie:case Q:{let t=Ke(e.contents);return{...e,contents:t}}case M:return{...e,breakContents:Ke(e.breakContents),flatContents:Ke(e.flatContents)};case j:return{...e,parts:$n(e.parts)};case pe:return $n(e);case Se:return e.replace(/[\n\r]*$/,"");case Ae:case ne:case ae:case B:case $:break;default:throw new Ie(e)}return e}function Ci(e){return Ke($c(e))}function jc(e){switch(ke(e)){case j:if(e.parts.every(t=>t===""))return"";break;case P:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===P&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case re:case te:case ue:case ie:if(!e.contents)return"";break;case M:if(!e.flatContents&&!e.breakContents)return"";break;case pe:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof k(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case Se:case Ae:case ne:case ae:case B:case Q:case $:break;default:throw new Ie(e)}return e}function $c(e){return Qt(e,t=>jc(t))}function Wc(e,t=Di){return Qt(e,r=>typeof r=="string"?fi(t,r.split(` +`)):r)}function Vc(e){if(e.type===B)return!0}function Uc(e){return en(e,Vc,!1)}function Fi(e,t){return e.type===Q?{...e,contents:t(e.contents)}:t(e)}var N=Symbol("MODE_BREAK"),Y=Symbol("MODE_FLAT"),Je=Symbol("cursor");function vi(){return{value:"",length:0,queue:[]}}function zc(e,t){return br(e,{type:"indent"},t)}function Gc(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||vi():t<0?br(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:br(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function br(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",i=0,a=0,s=0;for(let d of n)switch(d.type){case"indent":c(),r.useTabs?o(1):l(r.tabWidth);break;case"stringAlign":c(),u+=d.n,i+=d.n.length;break;case"numberAlign":a+=1,s+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:u,length:i,queue:n};function o(d){u+=" ".repeat(d),i+=r.tabWidth*d}function l(d){u+=" ".repeat(d),i+=d}function c(){r.useTabs?D():p()}function D(){a>0&&o(a),h()}function p(){s>0&&l(s),h()}function h(){a=0,s=0}}function wr(e){let t=0,r=0,n=e.length;e:for(;n--;){let u=e[n];if(u===Je){r++;continue}for(let i=u.length-1;i>=0;i--){let a=u[i];if(a===" "||a===" ")t++;else{e[n]=u.slice(0,i+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Je);return t}function Dt(e,t,r,n,u,i){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,s=[e],o=[];for(;r>=0;){if(s.length===0){if(a===0)return!0;s.push(t[--a]);continue}let{mode:l,doc:c}=s.pop();switch(ke(c)){case Se:o.push(c),r-=Zr(c);break;case pe:case j:{let D=Pc(c);for(let p=D.length-1;p>=0;p--)s.push({mode:l,doc:D[p]});break}case te:case re:case ue:case Q:s.push({mode:l,doc:c.contents});break;case ne:r+=wr(o);break;case P:{if(i&&c.break)return!1;let D=c.break?N:l,p=c.expandedStates&&D===N?k(!1,c.expandedStates,-1):c.contents;s.push({mode:D,doc:p});break}case M:{let D=(c.groupId?u[c.groupId]||Y:l)===N?c.breakContents:c.flatContents;D&&s.push({mode:l,doc:D});break}case B:if(l===N||c.hard)return!0;c.soft||(o.push(" "),r--);break;case ie:n=!0;break;case ae:if(n)return!1;break}}return!1}function Zt(e,t){let r={},n=t.printWidth,u=Qr(t.endOfLine),i=0,a=[{ind:vi(),mode:N,doc:e}],s=[],o=!1,l=[],c=0;for(Mc(e);a.length>0;){let{ind:p,mode:h,doc:d}=a.pop();switch(ke(d)){case Se:{let m=u!==` +`?Yt(!1,d,` +`,u):d;s.push(m),a.length>0&&(i+=Zr(m));break}case pe:for(let m=d.length-1;m>=0;m--)a.push({ind:p,mode:h,doc:d[m]});break;case Ae:if(c>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Je),c++;break;case te:a.push({ind:zc(p,t),mode:h,doc:d.contents});break;case re:a.push({ind:Gc(p,d.n,t),mode:h,doc:d.contents});break;case ne:i-=wr(s);break;case P:switch(h){case Y:if(!o){a.push({ind:p,mode:d.break?N:Y,doc:d.contents});break}case N:{o=!1;let m={ind:p,mode:Y,doc:d.contents},g=n-i,F=l.length>0;if(!d.break&&Dt(m,a,g,F,r))a.push(m);else if(d.expandedStates){let f=k(!1,d.expandedStates,-1);if(d.break){a.push({ind:p,mode:N,doc:f});break}else for(let C=1;C=d.expandedStates.length){a.push({ind:p,mode:N,doc:f});break}else{let y=d.expandedStates[C],v={ind:p,mode:Y,doc:y};if(Dt(v,a,g,F,r)){a.push(v);break}}}else a.push({ind:p,mode:N,doc:d.contents});break}}d.id&&(r[d.id]=k(!1,a,-1).mode);break;case j:{let m=n-i,{parts:g}=d;if(g.length===0)break;let[F,f]=g,C={ind:p,mode:Y,doc:F},y={ind:p,mode:N,doc:F},v=Dt(C,[],m,l.length>0,r,!0);if(g.length===1){v?a.push(C):a.push(y);break}let w={ind:p,mode:Y,doc:f},S={ind:p,mode:N,doc:f};if(g.length===2){v?a.push(w,C):a.push(S,y);break}g.splice(0,2);let x={ind:p,mode:h,doc:pi(g)},K=g[0];Dt({ind:p,mode:Y,doc:[F,f,K]},[],m,l.length>0,r,!0)?a.push(x,w,C):v?a.push(x,S,C):a.push(x,S,y);break}case M:case ue:{let m=d.groupId?r[d.groupId]:h;if(m===N){let g=d.type===M?d.breakContents:d.negate?d.contents:_t(d.contents);g&&a.push({ind:p,mode:h,doc:g})}if(m===Y){let g=d.type===M?d.flatContents:d.negate?_t(d.contents):d.contents;g&&a.push({ind:p,mode:h,doc:g})}break}case ie:l.push({ind:p,mode:h,doc:d.contents});break;case ae:l.length>0&&a.push({ind:p,mode:h,doc:Xr});break;case B:switch(h){case Y:if(d.hard)o=!0;else{d.soft||(s.push(" "),i+=1);break}case N:if(l.length>0){a.push({ind:p,mode:h,doc:d},...l.reverse()),l.length=0;break}d.literal?p.root?(s.push(u,p.root.value),i=p.root.length):(s.push(u),i=0):(i-=wr(s),s.push(u+p.value),i=p.length);break}break;case Q:a.push({ind:p,mode:h,doc:d.contents});break;case $:break;default:throw new Ie(d)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let D=s.indexOf(Je);if(D!==-1){let p=s.indexOf(Je,D+1),h=s.slice(0,D).join(""),d=s.slice(D+1,p).join(""),m=s.slice(p+1).join("");return{formatted:h+d+m,cursorNodeStart:h.length,cursorNodeText:d}}return{formatted:s.join("")}}function Z(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...Z(n));else{let u=Z(n);u!==""&&r.push(u)}return r}return e.type===M?{...e,breakContents:Z(e.breakContents),flatContents:Z(e.flatContents)}:e.type===P?{...e,contents:Z(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(Z)}:e.type===j?{type:"fill",parts:e.parts.map(Z)}:e.contents?{...e,contents:Z(e.contents)}:e}function Kc(e){let t=Object.create(null),r=new Set;return n(Z(e));function n(i,a,s){var o,l;if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let c=i.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(i.type===B){let c=((o=s==null?void 0:s[a+1])==null?void 0:o.type)===$;return i.literal?c?"literalline":"literallineWithoutBreakParent":i.hard?c?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===$)return((l=s==null?void 0:s[a-1])==null?void 0:l.type)===B&&s[a-1].hard?void 0:"breakParent";if(i.type===ne)return"trim";if(i.type===te)return"indent("+n(i.contents)+")";if(i.type===re)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(i.contents)+")":i.n<0?"dedent("+n(i.contents)+")":i.n.type==="root"?"markAsRoot("+n(i.contents)+")":"align("+JSON.stringify(i.n)+", "+n(i.contents)+")";if(i.type===M)return"ifBreak("+n(i.breakContents)+(i.flatContents?", "+n(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${u(i.groupId)} }`:"")+")";if(i.type===ue){let c=[];i.negate&&c.push("negate: true"),i.groupId&&c.push(`groupId: ${u(i.groupId)}`);let D=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${D})`}if(i.type===P){let c=[];i.break&&i.break!=="propagated"&&c.push("shouldBreak: true"),i.id&&c.push(`id: ${u(i.id)}`);let D=c.length>0?`, { ${c.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(p=>n(p)).join(",")}]${D})`:`group(${n(i.contents)}${D})`}if(i.type===j)return`fill([${i.parts.map(c=>n(c)).join(", ")}])`;if(i.type===ie)return"lineSuffix("+n(i.contents)+")";if(i.type===ae)return"lineSuffixBoundary";if(i.type===Q)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;throw new Error("Unknown doc type "+i.type)}function u(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let a=i.description||"symbol";for(let s=0;;s++){let o=a+(s>0?` #${s}`:"");if(!r.has(o))return r.add(o),t[i]=`Symbol.for(${JSON.stringify(o)})`}}}function Jc(e,t,r=0){let n=0;for(let u=r;utypeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Ei({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(u=>u.languages??[]),n=[];for(let u of Qc(Object.assign({},...e.map(({options:i})=>i),Yc)))!t&&u.deprecated||(Array.isArray(u.choices)&&(t||(u.choices=u.choices.filter(i=>!i.deprecated)),u.name==="parser"&&(u.choices=[...u.choices,...Xc(u.choices,r,e)])),u.pluginDefaults=Object.fromEntries(e.filter(i=>{var a;return((a=i.defaultOptions)==null?void 0:a[u.name])!==void 0}).map(i=>[i.name,i.defaultOptions[u.name]])),n.push(u));return{languages:r,options:n}}function*Xc(e,t,r){let n=new Set(e.map(u=>u.value));for(let u of t)if(u.parsers){for(let i of u.parsers)if(!n.has(i)){n.add(i);let a=r.find(o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,i)),s=u.name;a!=null&&a.name&&(s+=` (plugin: ${a.name})`),yield{value:i,description:s}}}}function Qc(e){let t=[];for(let[r,n]of Object.entries(e)){let u={name:r,...n};Array.isArray(u.default)&&(u.default=k(!1,u.default,-1).value),t.push(u)}return t}var Zc=e=>String(e).split(/[/\\]/).pop();function Vn(e,t){if(!t)return;let r=Zc(t).toLowerCase();return e.find(n=>{var u,i;return((u=n.extensions)==null?void 0:u.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function ep(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function tp(e,t){let r=e.plugins.flatMap(u=>u.languages??[]),n=ep(r,t.language)??Vn(r,t.physicalFile)??Vn(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var rp=tp,Te={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Te.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Te.key(r)}: ${Te.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Te.value({[e]:t})},Un=it(Jt(),1),np=(e,t,{descriptor:r})=>{let n=[`${Un.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Un.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},Le=it(Jt(),1),bi=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ft=Symbol.for("vnopts.VALUE_UNCHANGED"),zn=" ".repeat(2),up=(e,t,r)=>{let{text:n,list:u}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Gn(e,t,n,r.descriptor)),u&&i.push([Gn(e,t,u.title,r.descriptor)].concat(u.values.map(a=>wi(a,r.loggerPrintWidth))).join(` +`)),Si(i,r.loggerPrintWidth)};function Gn(e,t,r,n){return[`Invalid ${Le.default.red(n.key(e))} value.`,`Expected ${Le.default.blue(r)},`,`but received ${t===bi?Le.default.gray("nothing"):Le.default.red(n.value(t))}.`].join(" ")}function wi({text:e,list:t},r){let n=[];return e&&n.push(`- ${Le.default.blue(e)}`),t&&n.push([`- ${Le.default.blue(t.title)}:`].concat(t.values.map(u=>wi(u,r-zn.length).replace(/^|\n/g,`$&${zn}`))).join(` +`)),Si(n,r)}function Si(e,t){if(e.length===1)return e[0];let[r,n]=e,[u,i]=e.map(a=>a.split(` +`,1)[0].length);return u>t&&u>i?n:r}var Kn=it(Jt(),1),lr=[],Jn=[];function ip(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,u=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-u);)n--,u--;let i=0;for(;is?l>s?s+1:l:l>o?o+1:l;return s}var Ai=(e,t,{descriptor:r,logger:n,schemas:u})=>{let i=[`Ignored unknown option ${Kn.default.yellow(r.pair({key:e,value:t}))}.`],a=Object.keys(u).sort().find(s=>ip(e,s)<3);a&&i.push(`Did you mean ${Kn.default.blue(r.key(a))}?`),n.warn(i.join(" "))},ap=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function sp(e,t){let r=new e(t),n=Object.create(r);for(let u of ap)u in t&&(n[u]=op(t[u],r,De.prototype[u].length));return n}var De=class{static create(e){return sp(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return Ft}};function op(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var lp=class extends De{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},cp=class extends De{expected(){return"anything"}validate(){return!0}},pp=class extends De{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let u=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);u!==!0&&r.push(u.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let u=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);u!==!1&&r.push(...u.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let n of e){let u=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...u.map(Yn))}return r}redirect(e,t){let r=[],n=[];for(let u of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(u,t),u);"remain"in i&&r.push(i.remain),n.push(...i.redirect.map(Yn))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function Yn({from:e,to:t}){return{from:[e],to:t}}var hp=class extends De{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function dp(e,t){let r=Object.create(null);for(let n of e){let u=n[t];if(r[u])throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r[u]=n}return r}function Dp(e,t){let r=new Map;for(let n of e){let u=n[t];if(r.has(u))throw new Error(`Duplicate ${t} ${JSON.stringify(u)}`);r.set(u,n)}return r}function fp(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function mp(e,t){let r=[],n=[];for(let u of e)t(u)?r.push(u):n.push(u);return[r,n]}function gp(e){return e===Math.floor(e)}function Cp(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,u=["undefined","object","boolean","number","string"];return r!==n?u.indexOf(r)-u.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Fp(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Xn(e){return e===void 0?{}:e}function ki(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return vp((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(ki)}}:{text:t}}function Qn(e,t){return e===!0?!0:e===!1?{value:t}:e}function Zn(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function eu(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Sr(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>eu(r,t)):[eu(e,t)]}function tu(e,t){let r=Sr(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function vp(e,t){if(!e)throw new Error(t)}var yp=class extends De{constructor(e){super(e),this._choices=Dp(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(u=>this._choices.get(u)).filter(({hidden:u})=>!u).map(u=>u.value).sort(Cp).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Ep=class extends De{expected(){return"a number"}validate(e,t){return typeof e=="number"}},bp=class extends Ep{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&gp(e)}},ru=class extends De{expected(){return"a string"}validate(e){return typeof e=="string"}},wp=Te,Sp=Ai,Ap=up,kp=np,_p=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:u=wp,unknown:i=Sp,invalid:a=Ap,deprecated:s=kp,missing:o=()=>!1,required:l=()=>!1,preprocess:c=p=>p,postprocess:D=()=>Ft}=t||{};this._utils={descriptor:u,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:dp(e,"name"),normalizeDefaultResult:Xn,normalizeExpectedResult:ki,normalizeDeprecatedResult:Zn,normalizeForwardResult:Sr,normalizeRedirectResult:tu,normalizeValidateResult:Qn},this._unknownHandler=i,this._invalidHandler=Fp(a),this._deprecatedHandler=s,this._identifyMissing=(p,h)=>!(p in h)||o(p,h),this._identifyRequired=l,this._preprocess=c,this._postprocess=D,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=fp()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let u=r.shift(),i=this._applyNormalization(u,t);r.push(...i)}};n();for(let u of Object.keys(this._utils.schemas)){let i=this._utils.schemas[u];if(!(u in t)){let a=Xn(i.default(this._utils));"value"in a&&r.push({[u]:a.value})}}n();for(let u of Object.keys(this._utils.schemas)){if(!(u in t))continue;let i=this._utils.schemas[u],a=t[u],s=i.postprocess(a,this._utils);s!==Ft&&(this._applyValidation(s,u,i),t[u]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:u}=this._partitionOptionKeys(e);for(let i of n){let a=this._utils.schemas[i],s=a.preprocess(e[i],this._utils);this._applyValidation(s,i,a);let o=({from:D,to:p})=>{r.push(typeof p=="string"?{[p]:D}:{[p.key]:p.value})},l=({value:D,redirectTo:p})=>{let h=Zn(a.deprecated(D,this._utils),s,!0);if(h!==!1)if(h===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,p,this._utils));else for(let{value:d}of h){let m={key:i,value:d};if(!this._hasDeprecationWarned(m)){let g=typeof p=="string"?{key:p,value:d}:p;this._utils.logger.warn(this._deprecatedHandler(m,g,this._utils))}}};Sr(a.forward(s,this._utils),s).forEach(o);let c=tu(a.redirect(s,this._utils),s);if(c.redirect.forEach(o),"remain"in c){let D=c.remain;t[i]=i in t?a.overlap(t[i],D,this._utils):D,l({value:D})}for(let{from:D,to:p}of c.redirect)l({value:D,redirectTo:p})}for(let i of u){let a=e[i];this._applyUnknownHandler(i,a,t,(s,o)=>{r.push({[s]:o})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,bi,this._utils)}_partitionOptionKeys(e){let[t,r]=mp(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Qn(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let u=this._unknownHandler(e,t,this._utils);if(u)for(let i of Object.keys(u)){if(this._identifyMissing(i,u))continue;let a=u[i];i in this._utils.schemas?n(i,a):r[i]=a}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Ft){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let u of r){let i=t.override[u];this._applyValidation(i,u,this._utils.schemas[u]),e[u]=i}for(let u of n){let i=t.override[u];this._applyUnknownHandler(u,i,e,(a,s)=>{let o=this._utils.schemas[a];this._applyValidation(s,a,o),e[a]=s})}}}}},cr;function Bp(e,t,{logger:r=!1,isCLI:n=!1,passThrough:u=!1,FlagSchema:i,descriptor:a}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Te;let s=u?Array.isArray(u)?(p,h)=>u.includes(p)?{[p]:h}:void 0:(p,h)=>({[p]:h}):(p,h,d)=>{let{_:m,...g}=d.schemas;return Ai(p,h,{...d,schemas:g})},o=xp(t,{isCLI:n,FlagSchema:i}),l=new _p(o,{logger:r,unknown:s,descriptor:a}),c=r!==!1;c&&cr&&(l._hasDeprecationWarned=cr);let D=l.normalize(e);return c&&(cr=l._hasDeprecationWarned),D}function xp(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(cp.create({name:"_"}));for(let u of e)n.push(Tp(u,{isCLI:t,optionInfos:e,FlagSchema:r})),u.alias&&t&&n.push(lp.create({name:u.alias,sourceName:u.name}));return n}function Tp(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:u}=e,i={name:u},a,s={};switch(e.type){case"int":a=bp,t&&(i.preprocess=Number);break;case"string":a=ru;break;case"choice":a=yp,i.choices=e.choices.map(o=>o!=null&&o.redirect?{...o,redirect:{to:{key:e.name,value:o.redirect}}}:o);break;case"boolean":a=hp;break;case"flag":a=n,i.flags=r.flatMap(o=>[o.alias,o.description&&o.name,o.oppositeDescription&&`no-${o.name}`].filter(Boolean));break;case"path":a=ru;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(o,l,c)=>e.exception(o)||l.validate(o,c):i.validate=(o,l,c)=>o===void 0||l.validate(o,c),e.redirect&&(s.redirect=o=>o?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let o=i.preprocess||(l=>l);i.preprocess=(l,c,D)=>c.preprocess(o(Array.isArray(l)?k(!1,l,-1):l),D)}return e.array?pp.create({...t?{preprocess:o=>Array.isArray(o)?o:[o]}:{},...s,valueSchema:a.create(i)}):a.create({...i,...s})}var Lp=Bp;function _i(e,t){if(!t)throw new Error("parserName is required.");for(let n=e.length-1;n>=0;n--){let u=e[n];if(u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,t))return u}let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new yi(r)}function Np(e,t){if(!t)throw new Error("astFormat is required.");for(let n=e.length-1;n>=0;n--){let u=e[n];if(u.printers&&Object.prototype.hasOwnProperty.call(u.printers,t))return u}let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new yi(r)}function Bi({plugins:e,parser:t}){let r=_i(e,t);return xi(r,t)}function xi(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function qp(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var nu={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Pp(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=rp(n,{physicalFile:n.filepath}),!n.parser)throw new Wn(`No parser could be inferred for file "${n.filepath}".`)}else throw new Wn("No parser and no file path given, couldn't infer a parser.");let u=Ei({plugins:e.plugins,showDeprecated:!0}).options,i={...nu,...Object.fromEntries(u.filter(p=>p.default!==void 0).map(p=>[p.name,p.default]))},a=_i(n.plugins,n.parser),s=await xi(a,n.parser);n.astFormat=s.astFormat,n.locEnd=s.locEnd,n.locStart=s.locStart;let o=(r=a.printers)!=null&&r[s.astFormat]?a:Np(n.plugins,s.astFormat),l=await qp(o,s.astFormat);n.printer=l;let c=o.defaultOptions?Object.fromEntries(Object.entries(o.defaultOptions).filter(([,p])=>p!==void 0)):{},D={...i,...c};for(let[p,h]of Object.entries(D))(n[p]===null||n[p]===void 0)&&(n[p]=h);return n.parser==="json"&&(n.trailingComma="none"),Lp(n,u,{passThrough:Object.keys(nu),...t})}var He=Pp,Ti=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Ip=e=>Object.keys(e).filter(t=>!Ti.has(t));function Op(e){return e?t=>e(t,Ti):Ip}var er=Op;function Mp(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let u=er(n),i=r.ignoredProperties??new Set;return a(e);function a(s,o){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(p=>a(p,o)).filter(Boolean);let l={},c=new Set(u(s));for(let p in s)!Object.prototype.hasOwnProperty.call(s,p)||i.has(p)||(c.has(p)?l[p]=a(s[p],s):l[p]=s[p]);let D=r(s,l,o);if(D!==null)return D??l}}var Rp=Mp,Hp=it(ac(),1);async function jp(e,t){let r=await Bi(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let u;try{u=await r.parse(n,t,t)}catch(i){$p(i,e)}return{text:n,ast:u}}function $p(e,t){let{loc:r}=e;if(r){let n=(0,Hp.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var at=jp,vt,Ar,ze,yt,Wp=class{constructor(e){Rn(this,vt),Rn(this,ze),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return k(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:k(!1,this.stack,-2)}get node(){return k(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=k(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Ve(this,ze,yt).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?k(!1,e,-2):null}getValue(){return k(!1,this.stack,-1)}getNode(e=0){let t=Ve(this,vt,Ar).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,u=k(!1,r,-1);for(let i of t)u=u[i],r.push(i,u);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=Ve(this,vt,Ar).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,u=k(!1,r,-1);for(let i of t)u=u[i],r.push(i,u);try{for(let i=0;i{r[u]=e(n,u,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let u of e){if(n===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],n=this.stack[t--]),u&&!u(n,r,i))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of Ve(this,ze,yt).call(this))if(e(t))return t}hasAncestor(e){for(let t of Ve(this,ze,yt).call(this))if(e(t))return!0;return!1}};vt=new WeakSet,Ar=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},ze=new WeakSet,yt=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var Vp=Wp,Li=new Proxy(()=>{},{get:()=>Li}),kr=Li;function st(e){return(t,r,n)=>{let u=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:i}=t,a=r;for(;a>=0&&a0}var Jp=Kp;function Yp(e){return e!==null&&typeof e=="object"}var Xp=Yp;function*Pi(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,u=i=>Xp(i)&&n(i);for(let i of r(e)){let a=e[i];if(Array.isArray(a))for(let s of a)u(s)&&(yield s);else u(a)&&(yield a)}}function*Qp(e,t){let r=[e];for(let n=0;n20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function rn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Zp(e)}function Ne(e,t){t.leading=!0,t.trailing=!1,rn(e,t)}function Et(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),rn(e,t)}function qe(e,t){t.leading=!1,t.trailing=!0,rn(e,t)}var pr=new WeakMap;function nn(e,t){if(pr.has(e))return pr.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:u},locStart:i,locEnd:a}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...Pi(e,{getVisitorKeys:er(u)})]).flatMap(o=>n(o)?[o]:nn(o,t));return s.sort((o,l)=>i(o)-i(l)||a(o)-a(l)),pr.set(e,s),s}function Ii(e,t,r,n){let{locStart:u,locEnd:i}=r,a=u(t),s=i(t),o=nn(e,r),l,c,D=0,p=o.length;for(;D>1,d=o[h],m=u(d),g=i(d);if(m<=a&&s<=g)return Ii(d,t,r,d);if(g<=a){l=d,D=h+1;continue}if(s<=m){c=d,p=h;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:h}=n,d=dr(h,t,r);l&&dr(h,l,r)!==d&&(l=null),c&&dr(h,c,r)!==d&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}var hr=()=>!1;function e2(e,t){let{comments:r}=e;if(delete e.comments,!Jp(r)||!t.printer.canAttachComment)return;let n=[],{locStart:u,locEnd:i,printer:{experimentalFeatures:{avoidAstMutation:a=!1}={},handleComments:s={}},originalText:o}=t,{ownLine:l=hr,endOfLine:c=hr,remaining:D=hr}=s,p=r.map((h,d)=>({...Ii(e,h,t),comment:h,text:o,options:t,ast:e,isLastComment:r.length-1===d}));for(let[h,d]of p.entries()){let{comment:m,precedingNode:g,enclosingNode:F,followingNode:f,text:C,options:y,ast:v,isLastComment:w}=d;if(y.parser==="json"||y.parser==="json5"||y.parser==="__js_expression"||y.parser==="__ts_expression"||y.parser==="__vue_expression"||y.parser==="__vue_ts_expression"){if(u(m)-u(v)<=0){Ne(v,m);continue}if(i(m)-i(v)>=0){qe(v,m);continue}}let S;if(a?S=[d]:(m.enclosingNode=F,m.precedingNode=g,m.followingNode=f,S=[m,C,y,v,w]),t2(C,y,p,h))m.placement="ownLine",l(...S)||(f?Ne(f,m):g?qe(g,m):Et(F||v,m));else if(r2(C,y,p,h))m.placement="endOfLine",c(...S)||(g?qe(g,m):f?Ne(f,m):Et(F||v,m));else if(m.placement="remaining",!D(...S))if(g&&f){let x=n.length;x>0&&n[x-1].followingNode!==f&&uu(n,y),n.push(d)}else g?qe(g,m):f?Ne(f,m):Et(F||v,m)}if(uu(n,t),!a)for(let h of r)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode}var Oi=e=>!/[\S\n\u2028\u2029]/.test(e);function t2(e,t,r,n){let{comment:u,precedingNode:i}=r[n],{locStart:a,locEnd:s}=t,o=a(u);if(i)for(let l=n-1;l>=0;l--){let{comment:c,precedingNode:D}=r[l];if(D!==i||!Oi(e.slice(s(c),o)))break;o=a(c)}return le(e,o,{backwards:!0})}function r2(e,t,r,n){let{comment:u,followingNode:i}=r[n],{locStart:a,locEnd:s}=t,o=s(u);if(i)for(let l=n+1;l0;--o){let{comment:l,precedingNode:c,followingNode:D}=e[o-1];kr.strictEqual(c,i),kr.strictEqual(D,a);let p=t.originalText.slice(t.locEnd(l),s);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,p,t))??/^[\s(]*$/.test(p))s=t.locStart(l);else break}for(let[l,{comment:c}]of e.entries())l1&&l.comments.sort((c,D)=>t.locStart(c)-t.locStart(D));e.length=0}function dr(e,t,r){let n=r.locStart(t)-1;for(let u=1;u!n.has(s)).length===0)return{leading:"",trailing:""};let u=[],i=[],a;return e.each(()=>{let s=e.node;if(n!=null&&n.has(s))return;let{leading:o,trailing:l}=s;o?u.push(u2(e,t)):l&&(a=i2(e,t,a),i.push(a.doc))},"comments"),{leading:u,trailing:i}}function s2(e,t,r){let{leading:n,trailing:u}=a2(e,r);return!n&&!u?t:Fi(t,i=>[n,i,u])}function o2(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}async function l2(e,t,r,n,u){let{embeddedLanguageFormatting:i,printer:{embed:a,hasPrettierIgnore:s=()=>!1,getVisitorKeys:o}}=r;if(!a||i!=="auto")return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let l=er(a.getVisitorKeys??o),c=[];h();let D=e.stack;for(let{print:d,node:m,pathStack:g}of c)try{e.stack=g;let F=await d(p,t,e,r);F&&u.set(m,F)}catch(F){if(globalThis.PRETTIER_DEBUG)throw F}e.stack=D;function p(d,m){return c2(d,m,r,n)}function h(){let{node:d}=e;if(d===null||typeof d!="object"||s(e))return;for(let g of l(d))Array.isArray(d[g])?e.each(h,g):e.call(h,g);let m=a(e,r);if(m){if(typeof m=="function"){c.push({print:m,node:d,pathStack:[...e.stack]});return}u.set(d,m)}}}async function c2(e,t,r,n){let u=await He({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:i}=await at(e,u),a=await n(i,u);return Ci(a)}function p2(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:u,locEnd:i,[Symbol.for("printedComments")]:a}=t,{node:s}=e,o=u(s),l=i(s);for(let c of n)u(c)>=o&&i(c)<=l&&a.add(c);return r.slice(o,l)}var h2=p2;async function tr(e,t){({ast:e}=await Ri(e,t));let r=new Map,n=new Vp(e),u=new Map;await l2(n,a,t,tr,u);let i=await iu(n,t,a,void 0,u);return o2(t),i;function a(o,l){return o===void 0||o===n?s(l):Array.isArray(o)?n.call(()=>s(l),...o):n.call(()=>s(l),o)}function s(o){let l=n.node;if(l==null)return"";let c=l&&typeof l=="object"&&o===void 0;if(c&&r.has(l))return r.get(l);let D=iu(n,t,a,o,u);return c&&r.set(l,D),D}}function iu(e,t,r,n,u){var i;let{node:a}=e,{printer:s}=t,o;return(i=s.hasPrettierIgnore)!=null&&i.call(s,e)?o=h2(e,t):u.has(a)?o=u.get(a):o=s.print(e,t,r,n),a===t.cursorNode&&(o=Fi(o,l=>[Er,l,Er])),s.printComment&&(!s.willPrintOwnComments||!s.willPrintOwnComments(e,t))&&(o=s2(e,o,t)),o}async function Ri(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,e2(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}var d2=({parser:e})=>e==="json"||e==="json5"||e==="json-stringify";function D2(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(u=>Hi.has(u.type)&&n.has(u))}function au(e){let t=e.length-1;for(;;){let r=e[t];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")t--;else break}return e.slice(0,t+1)}function f2(e,t,{locStart:r,locEnd:n}){let u=e.node,i=t.node;if(u===i)return{startNode:u,endNode:i};let a=r(e.node);for(let o of au(t.parentNodes))if(r(o)>=a)i=o;else break;let s=n(t.node);for(let o of au(e.parentNodes)){if(n(o)<=s)u=o;else break;if(u===i)break}return{startNode:u,endNode:i}}function _r(e,t,r,n,u=[],i){let{locStart:a,locEnd:s}=r,o=a(e),l=s(e);if(!(t>l||tn);let s=e.slice(n,u).search(/\S/),o=s===-1;if(!o)for(n+=s;u>n&&!/\S/.test(e[u-1]);--u);let l=_r(r,n,t,(h,d)=>su(t,h,d),[],"rangeStart"),c=o?l:_r(r,u,t,h=>su(t,h),[],"rangeEnd");if(!l||!c)return{rangeStart:0,rangeEnd:0};let D,p;if(d2(t)){let h=D2(l,c);D=h,p=h}else({startNode:D,endNode:p}=f2(l,c,t));return{rangeStart:Math.min(i(D),i(p)),rangeEnd:Math.max(a(D),a(p))}}function F2(e,t){let{cursorOffset:r,locStart:n,locEnd:u}=t,i=er(t.printer.getVisitorKeys),a=o=>n(o)<=r&&u(o)>=r,s=e;for(let o of Qp(e,{getVisitorKeys:i,filter:a}))s=o;return s}var v2=F2,ji="\uFEFF",ou=Symbol("cursor");async function $i(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:u}=await at(e,t);t.cursorOffset>=0&&(t.cursorNode=v2(n,t));let i=await tr(n,t);r>0&&(i=mi([Ce,i],r,t.tabWidth));let a=Zt(i,t);if(r>0){let o=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(o)),a.formatted=o+Qr(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let o,l,c,D,p;if(t.cursorNode&&a.cursorNodeText?(o=t.locStart(t.cursorNode),l=u.slice(o,t.locEnd(t.cursorNode)),c=t.cursorOffset-o,D=a.cursorNodeStart,p=a.cursorNodeText):(o=0,l=u,c=t.cursorOffset,D=0,p=a.formatted),l===p)return{formatted:a.formatted,cursorOffset:D+c,comments:s};let h=l.split("");h.splice(c,0,ou);let d=p.split(""),m=(0,oc.diffArrays)(h,d),g=D;for(let F of m)if(F.removed){if(F.value.includes(ou))break}else g+=F.count;return{formatted:a.formatted,cursorOffset:g,comments:s}}return{formatted:a.formatted,cursorOffset:-1,comments:s}}async function y2(e,t){let{ast:r,text:n}=await at(e,t),{rangeStart:u,rangeEnd:i}=C2(n,t,r),a=n.slice(u,i),s=Math.min(u,n.lastIndexOf(` +`,u)+1),o=n.slice(s,u).match(/^\s*/)[0],l=tn(o,t.tabWidth),c=await $i(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=i?t.cursorOffset-u:-1,endOfLine:"lf"},l),D=c.formatted.trimEnd(),{cursorOffset:p}=t;p>i?p+=D.length-a.length:c.cursorOffset>=0&&(p=c.cursorOffset+u);let h=n.slice(0,u)+D+n.slice(i);if(t.endOfLine!=="lf"){let d=Qr(t.endOfLine);p>=0&&d===`\r +`&&(p+=gi(h.slice(0,p),` +`)),h=Yt(!1,h,` +`,d)}return{formatted:h,cursorOffset:p,comments:c.comments}}function Dr(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function lu(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u}=t;return r=Dr(e,r,-1),n=Dr(e,n,0),u=Dr(e,u,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:u}}function Wi(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i}=lu(e,t),a=e.charAt(0)===ji;if(a&&(e=e.slice(1),r--,n--,u--),i==="auto"&&(i=kc(e)),e.includes("\r")){let s=o=>gi(e.slice(0,Math.max(o,0)),`\r +`);r-=s(r),n-=s(n),u-=s(u),e=_c(e)}return{hasBOM:a,text:e,options:lu(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:u,endOfLine:i})}}async function cu(e,t){let r=await Bi(t);return!r.hasPragma||r.hasPragma(e)}async function Vi(e,t){let{hasBOM:r,text:n,options:u}=Wi(e,await He(t));if(u.rangeStart>=u.rangeEnd&&n!==""||u.requirePragma&&!await cu(n,u))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return u.rangeStart>0||u.rangeEnd=0&&i.cursorOffset++),i}async function E2(e,t,r){let{text:n,options:u}=Wi(e,await He(t)),i=await at(n,u);return r&&(r.preprocessForPrint&&(i.ast=await Ri(i.ast,u)),r.massage&&(i.ast=Rp(i.ast,u))),i}async function b2(e,t){t=await He(t);let r=await tr(e,t);return Zt(r,t)}async function w2(e,t){let r=Kc(e),{formatted:n}=await Vi(r,{...t,parser:"__js_expression"});return n}async function S2(e,t){t=await He(t);let{ast:r}=await at(e,t);return tr(r,t)}async function A2(e,t){return Zt(e,await He(t))}var Ui={};Kt(Ui,{addDanglingComment:()=>Et,addLeadingComment:()=>Ne,addTrailingComment:()=>qe,getAlignmentSize:()=>tn,getIndentSize:()=>P2,getMaxContinuousCount:()=>N2,getNextNonSpaceNonCommentCharacter:()=>j2,getNextNonSpaceNonCommentCharacterIndex:()=>U2,getStringWidth:()=>Zr,hasNewline:()=>le,hasNewlineInRange:()=>O2,hasSpaces:()=>R2,isNextLineEmpty:()=>J2,isNextLineEmptyAfterIndex:()=>ln,isPreviousLineEmpty:()=>G2,makeString:()=>W2,skip:()=>st,skipEverythingButNewLine:()=>qi,skipInlineComment:()=>an,skipNewline:()=>Ee,skipSpaces:()=>he,skipToLineEnd:()=>Ni,skipTrailingComment:()=>sn,skipWhitespace:()=>Up});function k2(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,u.length/t.length),0)}var N2=L2;function q2(e,t){let r=e.lastIndexOf(` +`);return r===-1?0:tn(e.slice(r+1).match(/^[\t ]*/)[0],t)}var P2=q2;function I2(e,t,r){for(let n=t;na===n?a:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return t+u+t}var W2=$2;function V2(e,t,r){return on(e,r(t))}function U2(e,t){return arguments.length===2||typeof t=="number"?on(e,t):V2(...arguments)}function z2(e,t,r){return un(e,r(t))}function G2(e,t){return arguments.length===2||typeof t=="number"?un(e,t):z2(...arguments)}function K2(e,t,r){return ln(e,r(t))}function J2(e,t){return arguments.length===2||typeof t=="number"?ln(e,t):K2(...arguments)}var zi={};Kt(zi,{builders:()=>Y2,printer:()=>X2,utils:()=>Q2});var Y2={join:fi,line:di,softline:wc,hardline:Ce,literalline:Di,group:ci,conditionalGroup:Fc,fill:pi,lineSuffix:yr,lineSuffixBoundary:Ec,cursor:Er,breakParent:Xt,ifBreak:vc,trim:bc,indent:_t,indentIfBreak:yc,align:Oe,addAlignmentToDoc:mi,markAsRoot:gc,dedentToRoot:mc,dedent:Cc,hardlineWithoutBreakParent:Xr,literallineWithoutBreakParent:hi,label:Sc,concat:e=>e},X2={printDocToString:Zt},Q2={willBreak:Oc,traverseDoc:Yr,findInDoc:en,mapDoc:Qt,removeLines:Hc,stripTrailingHardline:Ci,replaceEndOfLine:Wc,canBreak:Uc},Z2="3.1.1";function me(e,t=1){return async(...r)=>{let n=r[t]??{},u=n.plugins??[];return r[t]={...n,plugins:Array.isArray(u)?u:Object.values(u)},e(...r)}}var Gi=me(Vi);async function Ki(e,t){let{formatted:r}=await Gi(e,{...t,cursorOffset:-1});return r}async function eh(e,t){return await Ki(e,t)===e}var th=me(Ei,0),rh={parse:me(E2),formatAST:me(b2),formatDoc:me(w2),printToDoc:me(S2),printDocToString:me(A2)},nh=oi;function uh(e){for(var t=[],r=1;re===!1?t:e==="dedent"||e===!0?uh(t):(await nh.format(t,{parser:e,plugins:[Kl],htmlWhitespaceSensitivity:"ignore"})).trim());export{dh as formatter}; diff --git a/docs/assets/iframe-CQxbU3Lp.js b/docs/assets/iframe-CQxbU3Lp.js new file mode 100644 index 0000000..a47e8d5 --- /dev/null +++ b/docs/assets/iframe-CQxbU3Lp.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./Simulation-CVPFUacl.js","./jsx-runtime-DRTy3Uxn.js","./index-BBkUAzwr.js","./index-z5U8iC57.js","./index-Bd-WH8Nz.js","./index-PqR-_bA4.js","./index-DrlA5mbP.js","./index-DrFu-skq.js","./Simulation.stories-D61pU9aF.js","./Install-DJ5cHZNu.js","./Integration-D7JphiXd.js","./Nbody-Dnjz406z.js","./CelestialBody-CpuBovvJ.js","./entry-preview-kGuIN3g4.js","./react-18-B-OKcmzb.js","./entry-preview-docs-Db1JGYqY.js","./preview-CwqMn10d.js","./preview-BAz7FMXc.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import"../sb-preview/runtime.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&c(o)}).observe(document,{childList:!0,subtree:!0});function l(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(e){if(e.ep)return;e.ep=!0;const t=l(e);fetch(e.href,t)}})();const f="modulepreload",R=function(i,s){return new URL(i,s).href},O={},r=function(s,l,c){let e=Promise.resolve();if(l&&l.length>0){const t=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),E=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));e=Promise.all(l.map(n=>{if(n=R(n,c),n in O)return;O[n]=!0;const a=n.endsWith(".css"),p=a?'[rel="stylesheet"]':"";if(!!c)for(let m=t.length-1;m>=0;m--){const u=t[m];if(u.href===n&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${p}`))return;const _=document.createElement("link");if(_.rel=a?"stylesheet":f,a||(_.as="script",_.crossOrigin=""),_.href=n,E&&_.setAttribute("nonce",E),document.head.appendChild(_),a)return new Promise((m,u)=>{_.addEventListener("load",m),_.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${n}`)))})}))}return e.then(()=>s()).catch(t=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=t,window.dispatchEvent(o),!o.defaultPrevented)throw t})},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:y}=__STORYBOOK_MODULE_PREVIEW_API__,d=P({page:"preview"});y.setChannel(d);window.__STORYBOOK_ADDONS_CHANNEL__=d;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=d);const T={"./.storybook/stories/Examples/Simulation.mdx":async()=>r(()=>import("./Simulation-CVPFUacl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),"./.storybook/stories/Examples/Simulation.stories.tsx":async()=>r(()=>import("./Simulation.stories-D61pU9aF.js").then(i=>i.S),__vite__mapDeps([8,1,2]),import.meta.url),"./.storybook/stories/Install.mdx":async()=>r(()=>import("./Install-DJ5cHZNu.js"),__vite__mapDeps([9,1,2,3,4,5,6,7]),import.meta.url),"./.storybook/stories/Integration.mdx":async()=>r(()=>import("./Integration-D7JphiXd.js"),__vite__mapDeps([10,1,2,3,4,5,6,7]),import.meta.url),"./.storybook/stories/Nbody.mdx":async()=>r(()=>import("./Nbody-Dnjz406z.js"),__vite__mapDeps([11,1,2,3,4,5,6,7]),import.meta.url),"./.storybook/stories/Usage/CelestialBody.mdx":async()=>r(()=>import("./CelestialBody-CpuBovvJ.js"),__vite__mapDeps([12,1,2,3,4,5,6,7]),import.meta.url)};async function L(i){return T[i]()}const{composeConfigs:v,PreviewWeb:w,ClientApi:I}=__STORYBOOK_MODULE_PREVIEW_API__,h=async()=>{const i=await Promise.all([r(()=>import("./entry-preview-kGuIN3g4.js"),__vite__mapDeps([13,2,14,5]),import.meta.url),r(()=>import("./entry-preview-docs-Db1JGYqY.js"),__vite__mapDeps([15,6,2,7]),import.meta.url),r(()=>import("./preview-Bg0E9TlP.js"),[],import.meta.url),r(()=>import("./preview-CwqMn10d.js"),__vite__mapDeps([16,7]),import.meta.url),r(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),r(()=>import("./preview-Db4Idchh.js"),[],import.meta.url),r(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([17,7]),import.meta.url),r(()=>import("./preview-Cv3rAi2i.js"),[],import.meta.url),r(()=>import("./preview-BEwhhOxc.js"),[],import.meta.url)]);return v(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new w(L,h);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{r as _}; diff --git a/docs/assets/index-BBkUAzwr.js b/docs/assets/index-BBkUAzwr.js new file mode 100644 index 0000000..0100236 --- /dev/null +++ b/docs/assets/index-BBkUAzwr.js @@ -0,0 +1,9 @@ +function A(e,t){for(var r=0;rn[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),r}var R={exports:{}},o={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var y=Symbol.for("react.element"),M=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),q=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),B=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),w=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=w&&e[w]||e["@@iterator"],typeof e=="function"?e:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,$={};function p(e,t,r){this.props=e,this.context=t,this.refs=$,this.updater=r||O}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function C(){}C.prototype=p.prototype;function v(e,t,r){this.props=e,this.context=t,this.refs=$,this.updater=r||O}var b=v.prototype=new C;b.constructor=v;k(b,p.prototype);b.isPureReactComponent=!0;var E=Array.isArray,P=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var n,u={},c=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(c=""+t.key),t)P.call(t,n)&&!x.hasOwnProperty(n)&&(u[n]=t[n]);var f=arguments.length-2;if(f===1)u.children=r;else if(1 __vite__mapDeps.viteFileDeps[i]) +} +import{_ as Ft}from"./iframe-CQxbU3Lp.js";import{r as o,b as Tl,g as On,R as p,c as ta}from"./index-BBkUAzwr.js";import{r as E0,R as ed}from"./index-PqR-_bA4.js";import{q as S0,r as td,s as C0,t as rd,i as Tn,v as nd,w as ad,x as od,c as R0,y as I0,z as ld,A as A0,B as id,C as sd,D as cd,E as dd,F as ud,G as pd,H as _0,I as fd,J as hd,K as k0,_ as gd,L as md,M as vd,N as ho,d as O0,O as T0,P as M0,Q as bd,R as yd,U as wd,e as xd,S as Ml,k as ra}from"./index-DrlA5mbP.js";import{d as Ed}from"./index-DrFu-skq.js";var Fe=e=>`control-${e.replace(/\s+/g,"-")}`,Mn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Sd}=__STORYBOOK_MODULE_GLOBAL__,{logger:Cd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Rd=Object.create,$0=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,L0=Object.getOwnPropertyNames,Ad=Object.getPrototypeOf,_d=Object.prototype.hasOwnProperty,go=(e,t)=>function(){return t||(0,e[L0(e)[0]])((t={exports:{}}).exports,t),t.exports},kd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of L0(t))!_d.call(e,a)&&a!==r&&$0(e,a,{get:()=>t[a],enumerable:!(n=Id(t,a))||n.enumerable});return e},z0=(e,t,r)=>(r=e!=null?Rd(Ad(e)):{},kd(t||!e||!e.__esModule?$0(r,"default",{value:e,enumerable:!0}):r,e));function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sn(e,t,r){return $d()?sn=Reflect.construct.bind():sn=function(n,a,l){var i=[null];i.push.apply(i,a);var c=Function.bind.apply(n,i),s=new c;return l&&Ar(s,l.prototype),s},sn.apply(null,arguments)}function za(e){var t=typeof Map=="function"?new Map:void 0;return za=function(r){if(r===null||!Md(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return sn(r,arguments,La(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ar(n,r)},za(e)}var Ld={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). + +`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). + +`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. + +`,4:`Couldn't generate valid rgb string from %s, it returned %s. + +`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. + +`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). + +`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). + +`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. + +`,9:`Please provide a number of steps to the modularScale helper. + +`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" + +`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. + +`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. + +`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. + +`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. + +`,16:`You must provide a template to this method. + +`,17:`You passed an unsupported selector state to this method. + +`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,19:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. + +`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,25:`fontFace expects localFonts to be an array. + +`,26:`fontFace expects fileFormats to be an array. + +`,27:`radialGradient requries at least 2 color-stops to properly render. + +`,28:`Please supply a filename to retinaImage() as the first argument. + +`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation + +`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) +To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') + +`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation + +`,34:`borderRadius expects a radius value as a string or number as the second argument. + +`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,36:`Property must be a string value. + +`,37:`Syntax Error at %s. + +`,38:`Formula contains a function that needs parentheses at %s. + +`,39:`Formula is missing closing parenthesis at %s. + +`,40:`Formula has too many closing parentheses at %s. + +`,41:`All values in a formula must have the same unit or be unitless. + +`,42:`Please provide a number of steps to the modularScale helper. + +`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. + +`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. + +`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. + +`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,48:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. + +`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. + +`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,53:`fontFace expects localFonts to be an array. + +`,54:`fontFace expects fileFormats to be an array. + +`,55:`fontFace expects a name of a font-family. + +`,56:`linearGradient requries at least 2 color-stops to properly render. + +`,57:`radialGradient requries at least 2 color-stops to properly render. + +`,58:`Please supply a filename to retinaImage() as the first argument. + +`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. + +`,62:`borderRadius expects a radius value as a string or number as the second argument. + +`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. + +`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). + +`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. + +`,67:`You must provide a template to this method. + +`,68:`You passed an unsupported selector state to this method. + +`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. + +`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. + +`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. + +`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. + +`,73:`Please provide a valid CSS variable. + +`,74:`CSS variable not found and no default was provided. + +`,75:`important requires a valid style object, got a %s instead. + +`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. + +`,77:`remToPx expects a value in "rem" but you provided it in "%s". + +`,78:`base must be set in "px" or "%" but you set it in "%s". +`};function zd(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var u=r-l/2,h=c+u,g=s+u,f=d+u;return n(h,g,f)}var $l={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Pd(e){if(typeof e!="string")return e;var t=e.toLowerCase();return $l[t]?"#"+$l[t]:e}var Hd=/^#[a-fA-F0-9]{6}$/,Fd=/^#[a-fA-F0-9]{8}$/,jd=/^#[a-fA-F0-9]{3}$/,Nd=/^#[a-fA-F0-9]{4}$/,aa=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Dd=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Vd=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Ud=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $n(e){if(typeof e!="string")throw new Qe(3);var t=Pd(e);if(t.match(Hd))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Fd)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(jd))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Nd)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=aa.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=Dd.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=Vd.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+_r(c,s,d)+")",h=aa.exec(u);if(!h)throw new Qe(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var g=Ud.exec(t.substring(0,50));if(g){var f=parseInt(""+g[1],10),v=parseInt(""+g[2],10)/100,m=parseInt(""+g[3],10)/100,E="rgb("+_r(f,v,m)+")",x=aa.exec(E);if(!x)throw new Qe(4,t,E);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new Qe(5)}function Wd(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?bn(e,t,r):"rgba("+_r(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?bn(e.hue,e.saturation,e.lightness):"rgba("+_r(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Qe(2)}function Pa(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ba("#"+At(e)+At(t)+At(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ba("#"+At(e.red)+At(e.green)+At(e.blue));throw new Qe(6)}function kr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=$n(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Pa(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Pa(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Qe(7)}var Xd=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Zd=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Jd=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Qd=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function P0(e){if(typeof e!="object")throw new Qe(8);if(Zd(e))return kr(e);if(Xd(e))return Pa(e);if(Qd(e))return Kd(e);if(Jd(e))return Yd(e);throw new Qe(8)}function H0(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):H0(e,t,n)}}function Ln(e){return H0(e,e.length,[])}function zn(e,t,r){return Math.max(e,Math.min(t,r))}function eu(e,t){if(t==="transparent")return t;var r=B0(t);return P0(vt({},r,{lightness:zn(0,1,r.lightness-parseFloat(e))}))}var tu=Ln(eu),ru=tu;function nu(e,t){if(t==="transparent")return t;var r=B0(t);return P0(vt({},r,{lightness:zn(0,1,r.lightness+parseFloat(e))}))}var au=Ln(nu),ou=au;function lu(e,t){if(t==="transparent")return t;var r=$n(t),n=typeof r.alpha=="number"?r.alpha:1,a=vt({},r,{alpha:zn(0,1,(n*100+parseFloat(e)*100)/100)});return kr(a)}var iu=Ln(lu),su=iu;function cu(e,t){if(t==="transparent")return t;var r=$n(t),n=typeof r.alpha=="number"?r.alpha:1,a=vt({},r,{alpha:zn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return kr(a)}var du=Ln(cu),uu=du,H={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},mt={app:"#F6F9FC",bar:H.lightest,content:H.lightest,preview:H.lightest,gridCellSize:10,hoverable:uu(.9,H.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},et={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},pu={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:mt.app,appContentBg:H.lightest,appPreviewBg:H.lightest,appBorderColor:H.border,appBorderRadius:4,fontBase:et.fonts.base,fontCode:et.fonts.mono,textColor:H.darkest,textInverseColor:H.lightest,textMutedColor:H.dark,barTextColor:H.mediumdark,barHoverColor:H.secondary,barSelectedColor:H.secondary,barBg:H.lightest,buttonBg:mt.app,buttonBorder:H.medium,booleanBg:H.mediumlight,booleanSelectedBg:H.lightest,inputBg:H.lightest,inputBorder:H.border,inputTextColor:H.darkest,inputBorderRadius:4},yn=pu,fu={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:H.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:et.fonts.base,fontCode:et.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:H.mediumdark,barHoverColor:H.secondary,barSelectedColor:H.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:H.lightest,inputBorderRadius:4},hu=fu,{window:la}=Sd,gu=e=>({color:e}),mu=e=>typeof e!="string"?(Cd.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,vu=e=>!/(gradient|var|calc)/.test(e),bu=(e,t)=>e==="darken"?kr(`${ru(1,t)}`,.95):e==="lighten"?kr(`${ou(1,t)}`,.95):t,yu=e=>t=>{if(!mu(t)||!vu(t))return t;try{return bu(e,t)}catch{return t}},Cr=yu("lighten"),F0=()=>!la||!la.matchMedia?"light":la.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Ha={light:yn,dark:hu,normal:yn};F0();var wu=function(t){return t()},j0=Tl.useInsertionEffect?Tl.useInsertionEffect:!1,mo=j0||wu,Ll=j0||o.useLayoutEffect;function Jr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var N0={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,a,l){function i(d,u){if(!a[d]){if(!n[d]){var h=typeof Jr=="function"&&Jr;if(!u&&h)return h(d,!0);if(c)return c(d,!0);var g=new Error("Cannot find module '"+d+"'");throw g.code="MODULE_NOT_FOUND",g}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var m=n[d][1][v];return i(m||v)},f,f.exports,r,n,a,l)}return a[d].exports}for(var c=typeof Jr=="function"&&Jr,s=0;s=0)return this.lastItem=this.list[c],this.list[c].val},l.prototype.set=function(i,c){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=c,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=c,this):(this.lastItem={key:i,val:c},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(i){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),c=this.indexOf(i),c>=0)return this.size--,this.list.splice(c,1)[0]},l.prototype.has=function(i){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],!0):!1)},l.prototype.forEach=function(i,c){var s;for(s=0;s0&&(y[x]={cacheItem:v,arg:arguments[x]},b?i(h,y):h.push(y),h.length>d&&c(h.shift())),f.wasMemoized=b,f.numArgs=x+1,E};return f.limit=d,f.wasMemoized=!1,f.cache=u,f.lru=h,f}};function i(d,u){var h=d.length,g=u.length,f,v,m;for(v=0;v=0&&(h=d[f],g=h.cacheItem.get(h.arg),!g||!g.size);f--)h.cacheItem.delete(h.arg)}function s(d,u){return d===u||d!==d&&u!==u}},{"map-or-similar":1}]},{},[3])(3)})})(N0);var xu=N0.exports;const Dt=On(xu),{logger:Eu}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Su=go({"../../node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,l=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(z){return typeof z=="string"||typeof z=="function"||z===a||z===u||z===i||z===l||z===g||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===v||z.$$typeof===c||z.$$typeof===s||z.$$typeof===h||z.$$typeof===x||z.$$typeof===y||z.$$typeof===b||z.$$typeof===E)}function S(z){if(typeof z=="object"&&z!==null){var Pe=z.$$typeof;switch(Pe){case r:var Ne=z.type;switch(Ne){case d:case u:case a:case i:case l:case g:return Ne;default:var St=Ne&&Ne.$$typeof;switch(St){case s:case h:case m:case v:case c:return St;default:return Pe}}case n:return Pe}}}var C=d,R=u,I=s,_=c,k=r,O=h,T=a,M=m,F=v,$=n,L=i,j=l,V=g,P=!1;function D(z){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(z)||S(z)===d}function Z(z){return S(z)===u}function ne(z){return S(z)===s}function X(z){return S(z)===c}function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===r}function B(z){return S(z)===h}function U(z){return S(z)===a}function q(z){return S(z)===m}function se(z){return S(z)===v}function ve(z){return S(z)===n}function lt(z){return S(z)===i}function _e(z){return S(z)===l}function je(z){return S(z)===g}e.AsyncMode=C,e.ConcurrentMode=R,e.ContextConsumer=I,e.ContextProvider=_,e.Element=k,e.ForwardRef=O,e.Fragment=T,e.Lazy=M,e.Memo=F,e.Portal=$,e.Profiler=L,e.StrictMode=j,e.Suspense=V,e.isAsyncMode=D,e.isConcurrentMode=Z,e.isContextConsumer=ne,e.isContextProvider=X,e.isElement=J,e.isForwardRef=B,e.isFragment=U,e.isLazy=q,e.isMemo=se,e.isPortal=ve,e.isProfiler=lt,e.isStrictMode=_e,e.isSuspense=je,e.isValidElementType=w,e.typeOf=S})()}}),Cu=go({"../../node_modules/react-is/index.js"(e,t){t.exports=Su()}}),D0=go({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=Cu(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[r.ForwardRef]=l,c[r.Memo]=i;function s(E){return r.isMemo(E)?i:c[E.$$typeof]||n}var d=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function m(E,x,y){if(typeof x!="string"){if(v){var b=f(x);b&&b!==v&&m(E,b,y)}var w=u(x);h&&(w=w.concat(h(x)));for(var S=s(E),C=s(x),R=0;R0?ue(cr,--Ee):0,Qt--,oe===10&&(Qt=1,Pn--),oe}function Se(){return oe=Ee2||Tr(oe)>3?"":" "}function Fu(e,t){for(;--t&&Se()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return Nr(e,cn()+(t<6&&nt()==32&&Se()==32))}function ja(e){for(;Se();)switch(oe){case e:return Ee;case 34:case 39:e!==34&&e!==39&&ja(oe);break;case 40:e===41&&ja(e);break;case 92:Se();break}return Ee}function ju(e,t){for(;Se()&&e+oe!==57&&!(e+oe===84&&nt()===47););return"/*"+Nr(t,Ee-1)+"*"+Bn(e===47?e:Se())}function Nu(e){for(;!Tr(nt());)Se();return Nr(e,Ee)}function Du(e){return Y0(un("",null,null,null,[""],e=G0(e),0,[0],e))}function un(e,t,r,n,a,l,i,c,s){for(var d=0,u=0,h=i,g=0,f=0,v=0,m=1,E=1,x=1,y=0,b="",w=a,S=l,C=n,R=b;E;)switch(v=y,y=Se()){case 40:if(v!=108&&ue(R,h-1)==58){Fa(R+=K(dn(y),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:R+=dn(y);break;case 9:case 10:case 13:case 32:R+=Hu(v);break;case 92:R+=Fu(cn()-1,7);continue;case 47:switch(nt()){case 42:case 47:Qr(Vu(ju(Se(),cn()),t,r),s);break;default:R+="/"}break;case 123*m:c[d++]=Ke(R)*x;case 125*m:case 59:case 0:switch(y){case 0:case 125:E=0;case 59+u:x==-1&&(R=K(R,/\f/g,"")),f>0&&Ke(R)-h&&Qr(f>32?Bl(R+";",n,r,h-1):Bl(K(R," ","")+";",n,r,h-2),s);break;case 59:R+=";";default:if(Qr(C=zl(R,t,r,d,u,a,c,b,w=[],S=[],h),l),y===123)if(u===0)un(R,t,C,C,w,l,h,c,S);else switch(g===99&&ue(R,3)===110?100:g){case 100:case 108:case 109:case 115:un(e,C,C,n&&Qr(zl(e,C,C,0,0,a,c,b,a,w=[],h),S),a,S,h,c,n?w:S);break;default:un(R,C,C,C,[""],S,0,c,S)}}d=u=f=0,m=x=1,b=R="",h=i;break;case 58:h=1+Ke(R),f=v;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Pu()==125)continue}switch(R+=Bn(y),y*m){case 38:x=u>0?1:(R+="\f",-1);break;case 44:c[d++]=(Ke(R)-1)*x,x=1;break;case 64:nt()===45&&(R+=dn(Se())),g=nt(),u=h=Ke(b=R+=Nu(cn())),y++;break;case 45:v===45&&Ke(R)==2&&(m=0)}}return l}function zl(e,t,r,n,a,l,i,c,s,d,u){for(var h=a-1,g=a===0?l:[""],f=xo(g),v=0,m=0,E=0;v0?g[x]+" "+y:K(y,/&\f/g,g[x])))&&(s[E++]=b);return Hn(e,t,r,a===0?yo:c,s,d,u)}function Vu(e,t,r){return Hn(e,t,r,bo,Bn(Bu()),Or(e,2,-2),0)}function Bl(e,t,r,n){return Hn(e,t,r,wo,Or(e,0,n),Or(e,n+1,-1),n)}function Jt(e,t){for(var r="",n=xo(e),a=0;a-1},Qu=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var l=!!t.parent,i=l?t.parent.children:n,c=i.length-1;c>=0;c--){var s=i[c];if(s.line=0;r--)if(!K0(t[r]))return!0;return!1},Fl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},tp=function(e,t,r){K0(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Fl(e)):ep(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Fl(e)))};function X0(e,t){switch($u(e,t)){case 5103:return Y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+wn+e+ge+e+e;case 6828:case 4268:return Y+e+ge+e+e;case 6165:return Y+e+ge+"flex-"+e+e;case 5187:return Y+e+K(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+ge+"flex-$1$2")+e;case 5443:return Y+e+ge+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return Y+e+ge+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+ge+K(e,"shrink","negative")+e;case 5292:return Y+e+ge+K(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+K(e,"-grow","")+Y+e+ge+K(e,"grow","positive")+e;case 4554:return Y+K(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,Y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ke(e)-1-t>6)switch(ue(e,t+1)){case 109:if(ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+wn+(ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fa(e,"stretch")?X0(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ue(e,t+1)!==115)break;case 6444:switch(ue(e,Ke(e)-3-(~Fa(e,"!important")&&10))){case 107:return K(e,":",":"+Y)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(ue(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+ge+"$2box$3")+e}break;case 5936:switch(ue(e,t+11)){case 114:return Y+e+ge+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+ge+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+ge+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+ge+e+e}return e}var rp=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case wo:e.return=X0(e.value,e.length);break;case U0:return Jt([yr(e,{value:K(e.value,"@","@"+Y)})],n);case yo:if(e.length)return zu(e.props,function(a){switch(Lu(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jt([yr(e,{props:[K(a,/:(read-\w+)/,":"+wn+"$1")]})],n);case"::placeholder":return Jt([yr(e,{props:[K(a,/:(plac\w+)/,":"+Y+"input-$1")]}),yr(e,{props:[K(a,/:(plac\w+)/,":"+wn+"$1")]}),yr(e,{props:[K(a,/:(plac\w+)/,ge+"input-$1")]})],n)}return""})}},np=[rp],ap=function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. +If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var m=v.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||np;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},l,i=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var m=v.getAttribute("data-emotion").split(" "),E=1;E=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ip={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jl=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,sp="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",cp=/[A-Z]|^ms/g,Z0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,So=function(e){return e.charCodeAt(1)===45},Nl=function(e){return e!=null&&typeof e!="boolean"},ia=V0(function(e){return So(e)?e:e.replace(cp,"-$&").toLowerCase()}),xn=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Z0,function(r,n,a){return Xe={name:n,styles:a,next:Xe},n})}return ip[e]!==1&&!So(e)&&typeof t=="number"&&t!==0?t+"px":t};Dl=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Vl=["normal","none","initial","inherit","unset"],Ul=xn,Wl=/^-ms-/,ql=/-(.)/g,sa={},xn=function(e,t){if(e==="content"&&(typeof t!="string"||Vl.indexOf(t)===-1&&!Dl.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Ul(e,t);return r!==""&&!So(e)&&e.indexOf("-")!==-1&&sa[e]===void 0&&(sa[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Wl,"ms-").replace(ql,function(n,a){return a.toUpperCase()})+"?")),r};var Dl,Vl,Ul,Wl,ql,sa,J0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mr(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(J0);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Xe={name:r.name,styles:r.styles,next:Xe},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Xe={name:n.name,styles:n.styles,next:Xe},n=n.next;var a=r.styles+";";return r.map!==void 0&&(a+=r.map),a}return dp(e,t,r)}case"function":{if(e!==void 0){var l=Xe,i=r(e);return Xe=l,Mr(e,t,i)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":var c=[],s=r.replace(Z0,function(u,h,g){var f="animation"+c.length;return c.push("const "+f+" = keyframes`"+g.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+s+"`"]).join(` +`)+` + +You should wrap it with \`css\` like this: + +`+("css`"+s+"`"));break}if(t==null)return r;var d=t[r];return d!==void 0?d:r}function dp(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a ({})}!");return r}if(t==null||typeof t!="object"||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return vt({},e,t)},fp=Pl(function(e){return Pl(function(t){return pp(e,t)})}),ts=function(e){var t=o.useContext(bt);return e.theme!==t&&(t=fp(t)(e.theme)),o.createElement(bt.Provider,{value:t},e.children)},Yl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kl="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",hp=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Fn(t,r,n),mo(function(){return jn(t,r,n)}),null},gp=Nn(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Yl],l=[n],i="";typeof e.className=="string"?i=Eo(t.registered,l,e.className):e.className!=null&&(i=e.className+" ");var c=er(l,void 0,o.useContext(bt));if(c.name.indexOf("-")===-1){var s=e[Kl];s&&(c=er([c,"label:"+s+";"]))}i+=t.key+"-"+c.name;var d={};for(var u in e)up.call(e,u)&&u!=="css"&&u!==Yl&&u!==Kl&&(d[u]=e[u]);return d.ref=r,d.className=i,o.createElement(o.Fragment,null,o.createElement(hp,{cache:t,serialized:c,isStringTag:typeof a=="string"}),o.createElement(a,d))});gp.displayName="EmotionCssPropInternal";z0(D0());var mp={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Xl=!1,vp=Nn(function(e,t){!Xl&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Xl=!0);var r=e.styles,n=er([r],void 0,o.useContext(bt)),a=o.useRef();return Ll(function(){var l=t.key+"-global",i=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,s=document.querySelector('style[data-emotion="'+l+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(c=!0,s.setAttribute("data-emotion",l),i.hydrate([s])),a.current=[i,c],function(){i.flush()}},[t]),Ll(function(){var l=a.current,i=l[0],c=l[1];if(c){l[1]=!1;return}if(n.next!==void 0&&jn(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});vp.displayName="EmotionGlobal";function Ro(){for(var e=arguments.length,t=new Array(e),r=0;r component."),i="";for(var c in l)l[c]&&c&&(i&&(i+=" "),i+=c)}break}default:i=l}i&&(a&&(a+=" "),a+=i)}}return a};function yp(e,t,r){var n=[],a=Eo(e,n,r);return n.length<2?r:a+t(n)}var wp=function(e){var t=e.cache,r=e.serializedArr;return mo(function(){for(var n=0;n96?Ep:Sp},Ql=function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(l){return e.__emotion_forwardProp(l)&&a(l)}:a}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},ei=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Cp=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Fn(t,r,n),mo(function(){return jn(t,r,n)}),null},Rp=function e(t,r){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component. +You may have forgotten to import it.`);var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,l,i;r!==void 0&&(l=r.label,i=r.target);var c=Ql(t,r,n),s=c||Jl(a),d=!s("as");return function(){var u=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&h.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{u[0][0]===void 0&&console.error(ei),h.push(u[0][0]);for(var g=u.length,f=1;f({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));Dt(1)(({color:e,background:t,typography:r})=>{let n=Ap({typography:r});return{...n,body:{...n.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`}}});var _p={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},kp=dr` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,rs=dr` + 0%, 100% { opacity: 1; } + 50% { opacity: .4; } +`,Op=dr` + 0% { transform: translateY(1px); } + 25% { transform: translateY(0px); } + 50% { transform: translateY(-3px); } + 100% { transform: translateY(1px); } +`,Tp=dr` + 0%, 100% { transform:translate3d(0,0,0); } + 12.5%, 62.5% { transform:translate3d(-4px,0,0); } + 37.5%, 87.5% { transform: translate3d(4px,0,0); } +`,Mp=Ro` + animation: ${rs} 1.5s ease-in-out infinite; + color: transparent; + cursor: progress; +`,$p=Ro` + transition: all 150ms ease-out; + transform: translate3d(0, 0, 0); + + &:hover { + transform: translate3d(0, -2px, 0); + } + + &:active { + transform: translate3d(0, 0, 0); + } +`,Lp={rotate360:kp,glow:rs,float:Op,jiggle:Tp,inlineGlow:Mp,hoverable:$p},zp={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Bp={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Pp=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:gu(n)}),{}),Hp=({colors:e,mono:t})=>{let r=Pp(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},Fp={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},jp={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},Np=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:H.tertiary,ancillary:H.ancillary,orange:H.orange,gold:H.gold,green:H.green,seafoam:H.seafoam,purple:H.purple,ultraviolet:H.ultraviolet,lightest:H.lightest,lighter:H.lighter,light:H.light,mediumlight:H.mediumlight,medium:H.medium,mediumdark:H.mediumdark,dark:H.dark,darker:H.darker,darkest:H.darkest,border:H.border,positive:H.positive,negative:H.negative,warning:H.warning,critical:H.critical,defaultText:e.textColor||H.darkest,inverseText:e.textInverseColor||H.lightest,positiveText:H.positiveText,negativeText:H.negativeText,warningText:H.warningText}),Na=(e=Ha[F0()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:a,appContentBg:l,appPreviewBg:i,appBorderColor:c,appBorderRadius:s,fontBase:d,fontCode:u,textColor:h,textInverseColor:g,barTextColor:f,barHoverColor:v,barSelectedColor:m,barBg:E,buttonBg:x,buttonBorder:y,booleanBg:b,booleanSelectedBg:w,inputBg:S,inputBorder:C,inputTextColor:R,inputBorderRadius:I,brandTitle:_,brandUrl:k,brandImage:O,brandTarget:T,gridCellSize:M,...F}=e;return{...F,base:t,color:Np(e),background:{app:a,bar:E,content:l,preview:i,gridCellSize:M||mt.gridCellSize,hoverable:mt.hoverable,positive:mt.positive,negative:mt.negative,warning:mt.warning,critical:mt.critical},typography:{fonts:{base:d,mono:u},weight:et.weight,size:et.size},animation:Lp,easing:_p,input:{background:S,border:C,borderRadius:I,color:R},button:{background:x||S,border:y||C},boolean:{background:b||C,selectedBackground:w||S},layoutMargin:10,appBorderColor:c,appBorderRadius:s,barTextColor:f,barHoverColor:v||n,barSelectedColor:m||n,barBg:E,brand:{title:_,url:k,image:O||(_?null:void 0),target:T},code:Hp({colors:t==="light"?Fp:jp,mono:u}),addonActionsTheme:{...t==="light"?Bp:zp,BASE_FONT_FAMILY:u,BASE_FONT_SIZE:et.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:h,ARROW_COLOR:su(.2,c),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:u,TREENODE_FONT_SIZE:et.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},Dp=e=>Object.keys(e).length===0,pa=e=>e!=null&&typeof e=="object",Vp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Up=()=>Object.create(null),ns=(e,t)=>e===t||!pa(e)||!pa(t)?{}:Object.keys(e).reduce((r,n)=>{if(Vp(t,n)){let a=ns(e[n],t[n]);return pa(a)&&Dp(a)||(r[n]=a),r}return r[n]=void 0,r},Up()),Wp=ns;function qp(e){for(var t=[],r=1;r{if(!e)return Na(yn);let t=Wp(yn,e);return Object.keys(t).length&&Eu.warn(qp` + Your theme is missing properties, you should update your theme! + + theme-data missing: + `,t),Na(e)},Da="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var Yp=Object.create,as=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,os=Object.getOwnPropertyNames,Xp=Object.getPrototypeOf,Zp=Object.prototype.hasOwnProperty,N=(e,t)=>function(){return t||(0,e[os(e)[0]])((t={exports:{}}).exports,t),t.exports},Jp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of os(t))!Zp.call(e,a)&&a!==r&&as(e,a,{get:()=>t[a],enumerable:!(n=Kp(t,a))||n.enumerable});return e},Re=(e,t,r)=>(r=e!=null?Yp(Xp(e)):{},Jp(t||!e||!e.__esModule?as(r,"default",{value:e,enumerable:!0}):r,e)),Qp=N({"../../node_modules/refractor/lang/markdown.js"(e,t){t.exports=r,r.displayName="markdown",r.aliases=["md"];function r(n){(function(a){var l=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(v){return v=v.replace(//g,function(){return l}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+v+")")}var c=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return c}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+d+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+d+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(c),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(c),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(v){["url","bold","italic","strike","code-snippet"].forEach(function(m){v!==m&&(a.languages.markdown[v].inside.content.inside[m]=a.languages.markdown[m])})}),a.hooks.add("after-tokenize",function(v){if(v.language!=="markdown"&&v.language!=="md")return;function m(E){if(!(!E||typeof E=="string"))for(var x=0,y=E.length;x",quot:'"'},g=String.fromCodePoint||String.fromCharCode;function f(v){var m=v.replace(u,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,x){if(x=x.toLowerCase(),x[0]==="#"){var y;return x[1]==="x"?y=parseInt(x.slice(2),16):y=Number(x.slice(1)),g(y)}else{var b=h[x];return b||E}}),m}a.languages.md=a.languages.markdown})(n)}}}),e5=N({"../../node_modules/refractor/lang/yaml.js"(e,t){t.exports=r,r.displayName="yaml",r.aliases=["yml"];function r(n){(function(a){var l=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,c="(?:"+i.source+"(?:[ ]+"+l.source+")?|"+l.source+"(?:[ ]+"+i.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(h,g){g=(g||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return c}).replace(/<>/g,function(){return h});return RegExp(f,g)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return c})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return c}).replace(/<>/g,function(){return"(?:"+s+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(d),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:l,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(n)}}}),ls=N({"../../node_modules/refractor/lang/typescript.js"(e,t){t.exports=r,r.displayName="typescript",r.aliases=["ts"];function r(n){(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var l=a.languages.extend("typescript",{});delete l["class-name"],a.languages.typescript["class-name"].inside=l,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:l}}}}),a.languages.ts=a.languages.typescript})(n)}}}),is=N({"../../node_modules/refractor/lang/jsx.js"(e,t){t.exports=r,r.displayName="jsx",r.aliases=[];function r(n){(function(a){var l=a.util.clone(a.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,c=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function d(g,f){return g=g.replace(//g,function(){return i}).replace(//g,function(){return c}).replace(//g,function(){return s}),RegExp(g,f)}s=d(s).source,a.languages.jsx=a.languages.extend("markup",l),a.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=l.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:d(//.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);var u=function(g){return g?typeof g=="string"?g:typeof g.content=="string"?g.content:g.content.map(u).join(""):""},h=function(g){for(var f=[],v=0;v0&&f[f.length-1].tagName===u(m.content[0].content[1])&&f.pop():m.content[m.content.length-1].content==="/>"||f.push({tagName:u(m.content[0].content[1]),openedBraces:0}):f.length>0&&m.type==="punctuation"&&m.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?f[f.length-1].openedBraces--:E=!0),(E||typeof m=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var x=u(m);v0&&(typeof g[v-1]=="string"||g[v-1].type==="plain-text")&&(x=u(g[v-1])+x,g.splice(v-1,1),v--),g[v]=new a.Token("plain-text",x,null,x)}m.content&&typeof m.content!="string"&&h(m.content)}};a.hooks.add("after-tokenize",function(g){g.language!=="jsx"&&g.language!=="tsx"||h(g.tokens)})})(n)}}}),t5=N({"../../node_modules/refractor/lang/tsx.js"(e,t){var r=is(),n=ls();t.exports=a,a.displayName="tsx",a.aliases=[];function a(l){l.register(r),l.register(n),function(i){var c=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",c),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var s=i.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0}(l)}}}),r5=N({"../../node_modules/refractor/lang/clike.js"(e,t){t.exports=r,r.displayName="clike",r.aliases=[];function r(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}}}),n5=N({"../../node_modules/refractor/lang/javascript.js"(e,t){t.exports=r,r.displayName="javascript",r.aliases=["js"];function r(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}}}),ss=N({"../../node_modules/refractor/lang/css.js"(e,t){t.exports=r,r.displayName="css",r.aliases=[];function r(n){(function(a){var l=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+l.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+l.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+l.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:l,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var i=a.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(n)}}}),cs=N({"../../node_modules/refractor/lang/markup.js"(e,t){t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function r(n){n.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(a,l){var i={};i["language-"+l]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[l]},i.cdata=/^$/i;var c={"included-cdata":{pattern://i,inside:i}};c["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var s={};s[a]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:c},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(a,l){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[l,"language-"+l],inside:n.languages[l]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}}}),a5=N({"../../node_modules/xtend/immutable.js"(e,t){t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var a={},l=0;l4&&E.slice(0,4)===l&&i.test(m)&&(m.charAt(4)==="-"?x=u(m):m=h(m),y=n),new y(x,m))}function u(v){var m=v.slice(5).replace(c,f);return l+m.charAt(0).toUpperCase()+m.slice(1)}function h(v){var m=v.slice(4);return c.test(m)?v:(m=m.replace(s,g),m.charAt(0)!=="-"&&(m="-"+m),l+m)}function g(v){return"-"+v.toLowerCase()}function f(v){return v.charAt(1).toUpperCase()}}}),h5=N({"../../node_modules/hast-util-parse-selector/index.js"(e,t){t.exports=n;var r=/[#.]/g;function n(a,l){for(var i=a||"",c=l||"div",s={},d=0,u,h,g;d",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),x5=N({"../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(e,t){t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}}),hs=N({"../../node_modules/refractor/node_modules/is-decimal/index.js"(e,t){t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=48&&a<=57}}}),E5=N({"../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(e,t){t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}}}),S5=N({"../../node_modules/refractor/node_modules/is-alphabetical/index.js"(e,t){t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=122||a>=65&&a<=90}}}),C5=N({"../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(e,t){var r=S5(),n=hs();t.exports=a;function a(l){return r(l)||n(l)}}}),R5=N({"../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(e,t){var r,n=59;t.exports=a;function a(l){var i="&"+l+";",c;return r=r||document.createElement("i"),r.innerHTML=i,c=r.textContent,c.charCodeAt(c.length-1)===n&&l!=="semi"||c===i?!1:c}}}),I5=N({"../../node_modules/refractor/node_modules/parse-entities/index.js"(e,t){var r=w5(),n=x5(),a=hs(),l=E5(),i=C5(),c=R5();t.exports=Z;var s={}.hasOwnProperty,d=String.fromCharCode,u=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g=9,f=10,v=12,m=32,E=38,x=59,y=60,b=61,w=35,S=88,C=120,R=65533,I="named",_="hexadecimal",k="decimal",O={};O[_]=16,O[k]=10;var T={};T[I]=i,T[k]=a,T[_]=l;var M=1,F=2,$=3,L=4,j=5,V=6,P=7,D={};D[M]="Named character references must be terminated by a semicolon",D[F]="Numeric character references must be terminated by a semicolon",D[$]="Named character references cannot be empty",D[L]="Numeric character references cannot be empty",D[j]="Named character references must be known",D[V]="Numeric character references cannot be disallowed",D[P]="Numeric character references cannot be outside the permissible Unicode range";function Z(B,U){var q={},se,ve;U||(U={});for(ve in h)se=U[ve],q[ve]=se??h[ve];return(q.position.indent||q.position.start)&&(q.indent=q.position.indent||[],q.position=q.position.start),ne(B,q)}function ne(B,U){var q=U.additional,se=U.nonTerminated,ve=U.text,lt=U.reference,_e=U.warning,je=U.textContext,z=U.referenceContext,Pe=U.warningContext,Ne=U.position,St=U.indent||[],Wt=B.length,De=0,Kr=-1,be=Ne.column||1,Ct=Ne.line||1,Ve="",qt=[],Ue,Gt,We,pe,He,ce,ae,qe,Xr,Qn,Rt,mr,It,it,Al,vr,Zr,Ge,de;for(typeof q=="string"&&(q=q.charCodeAt(0)),vr=br(),qe=_e?Q1:u,De--,Wt++;++De65535&&(ce-=65536,Qn+=d(ce>>>10|55296),ce=56320|ce&1023),ce=Qn+d(ce))):it!==I&&qe(L,Ge)),ce?(_l(),vr=br(),De=de-1,be+=de-It+1,qt.push(ce),Zr=br(),Zr.offset++,lt&<.call(z,ce,{start:vr,end:Zr},B.slice(It-1,de)),vr=Zr):(pe=B.slice(It-1,de),Ve+=pe,be+=pe.length,De=de-1)}else He===10&&(Ct++,Kr++,be=0),He===He?(Ve+=d(He),be++):_l();return qt.join("");function br(){return{line:Ct,column:be,offset:De+(Ne.offset||0)}}function Q1(kl,Ol){var ea=br();ea.column+=Ol,ea.offset+=Ol,_e.call(Pe,D[kl],ea,kl)}function _l(){Ve&&(qt.push(Ve),ve&&ve.call(je,Ve,{start:vr,end:br()}),Ve="")}}function X(B){return B>=55296&&B<=57343||B>1114111}function J(B){return B>=1&&B<=8||B===11||B>=13&&B<=31||B>=127&&B<=159||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534}}}),A5=N({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e,t){var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},n=function(a){var l=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,c={},s={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:function b(w){return w instanceof d?new d(w.type,b(w.content),w.alias):Array.isArray(w)?w.map(b):w.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(C){var b=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(b){var w=document.getElementsByTagName("script");for(var S in w)if(w[S].src==b)return w[S]}return null}},isActive:function(b,w,S){for(var C="no-"+w;b;){var R=b.classList;if(R.contains(w))return!0;if(R.contains(C))return!1;b=b.parentElement}return!!S}},languages:{plain:c,plaintext:c,text:c,txt:c,extend:function(b,w){var S=s.util.clone(s.languages[b]);for(var C in w)S[C]=w[C];return S},insertBefore:function(b,w,S,C){C=C||s.languages;var R=C[b],I={};for(var _ in R)if(R.hasOwnProperty(_)){if(_==w)for(var k in S)S.hasOwnProperty(k)&&(I[k]=S[k]);S.hasOwnProperty(_)||(I[_]=R[_])}var O=C[b];return C[b]=I,s.languages.DFS(s.languages,function(T,M){M===O&&T!=b&&(this[T]=I)}),I},DFS:function b(w,S,C,R){R=R||{};var I=s.util.objId;for(var _ in w)if(w.hasOwnProperty(_)){S.call(w,_,w[_],C||_);var k=w[_],O=s.util.type(k);O==="Object"&&!R[I(k)]?(R[I(k)]=!0,b(k,S,null,R)):O==="Array"&&!R[I(k)]&&(R[I(k)]=!0,b(k,S,_,R))}}},plugins:{},highlightAll:function(b,w){s.highlightAllUnder(document,b,w)},highlightAllUnder:function(b,w,S){var C={callback:S,container:b,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),s.hooks.run("before-all-elements-highlight",C);for(var R=0,I;I=C.elements[R++];)s.highlightElement(I,w===!0,C.callback)},highlightElement:function(b,w,S){var C=s.util.getLanguage(b),R=s.languages[C];s.util.setLanguage(b,C);var I=b.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(I,C);var _=b.textContent,k={element:b,language:C,grammar:R,code:_};function O(M){k.highlightedCode=M,s.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,s.hooks.run("after-highlight",k),s.hooks.run("complete",k),S&&S.call(k.element)}if(s.hooks.run("before-sanity-check",k),I=k.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!k.code){s.hooks.run("complete",k),S&&S.call(k.element);return}if(s.hooks.run("before-highlight",k),!k.grammar){O(s.util.encode(k.code));return}if(w&&a.Worker){var T=new Worker(s.filename);T.onmessage=function(M){O(M.data)},T.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else O(s.highlight(k.code,k.grammar,k.language))},highlight:function(b,w,S){var C={code:b,grammar:w,language:S};if(s.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=s.tokenize(C.code,C.grammar),s.hooks.run("after-tokenize",C),d.stringify(s.util.encode(C.tokens),C.language)},tokenize:function(b,w){var S=w.rest;if(S){for(var C in S)w[C]=S[C];delete w.rest}var R=new g;return f(R,R.head,b),h(b,R,w,R.head,0),m(R)},hooks:{all:{},add:function(b,w){var S=s.hooks.all;S[b]=S[b]||[],S[b].push(w)},run:function(b,w){var S=s.hooks.all[b];if(!(!S||!S.length))for(var C=0,R;R=S[C++];)R(w)}},Token:d};a.Prism=s;function d(b,w,S,C){this.type=b,this.content=w,this.alias=S,this.length=(C||"").length|0}d.stringify=function b(w,S){if(typeof w=="string")return w;if(Array.isArray(w)){var C="";return w.forEach(function(O){C+=b(O,S)}),C}var R={type:w.type,content:b(w.content,S),tag:"span",classes:["token",w.type],attributes:{},language:S},I=w.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(R.classes,I):R.classes.push(I)),s.hooks.run("wrap",R);var _="";for(var k in R.attributes)_+=" "+k+'="'+(R.attributes[k]||"").replace(/"/g,""")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+_+">"+R.content+""};function u(b,w,S,C){b.lastIndex=w;var R=b.exec(S);if(R&&C&&R[1]){var I=R[1].length;R.index+=I,R[0]=R[0].slice(I)}return R}function h(b,w,S,C,R,I){for(var _ in S)if(!(!S.hasOwnProperty(_)||!S[_])){var k=S[_];k=Array.isArray(k)?k:[k];for(var O=0;O=I.reach);D+=P.value.length,P=P.next){var Z=P.value;if(w.length>b.length)return;if(!(Z instanceof d)){var ne=1,X;if($){if(X=u(V,D,b,F),!X||X.index>=b.length)break;var q=X.index,J=X.index+X[0].length,B=D;for(B+=P.value.length;q>=B;)P=P.next,B+=P.value.length;if(B-=P.value.length,D=B,P.value instanceof d)continue;for(var U=P;U!==w.tail&&(BI.reach&&(I.reach=_e);var je=P.prev;ve&&(je=f(w,je,ve),D+=ve.length),v(w,je,ne);var z=new d(_,M?s.tokenize(se,M):se,L,se);if(P=f(w,je,z),lt&&f(w,P,lt),ne>1){var Pe={cause:_+","+O,reach:_e};h(b,w,S,P.prev,D,Pe),I&&Pe.reach>I.reach&&(I.reach=Pe.reach)}}}}}}function g(){var b={value:null,prev:null,next:null},w={value:null,prev:b,next:null};b.next=w,this.head=b,this.tail=w,this.length=0}function f(b,w,S){var C=w.next,R={value:S,prev:w,next:C};return w.next=R,C.prev=R,b.length++,R}function v(b,w,S){for(var C=w.next,R=0;R>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+l),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};a.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+l),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:c},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:c},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:c.entity}}],environment:{pattern:RegExp("\\$?"+l),alias:"constant"},variable:c.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=a.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=c.variable[1].inside,u=0;u/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),g)}a.languages.insertBefore("javascript","keyword",{imports:{pattern:l(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:l(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:l(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var i=["function","function-variable","method","method-variable","property-access"],c=0;c0)){var m=d(/^\{$/,/^\}$/);if(m===-1)continue;for(var E=i;E=0&&u(x,"variable-input")}}}}})}}});function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(r=>$5(r,t))}const ko=o.forwardRef((e,t)=>{const{children:r,...n}=e,a=o.Children.toArray(r),l=a.find(B5);if(l){const i=l.props.children,c=a.map(s=>s===l?o.Children.count(i)>1?o.Children.only(null):o.isValidElement(i)?i.props.children:null:s);return o.createElement(Va,me({},n,{ref:t}),o.isValidElement(i)?o.cloneElement(i,void 0,c):null)}return o.createElement(Va,me({},n,{ref:t}),r)});ko.displayName="Slot";const Va=o.forwardRef((e,t)=>{const{children:r,...n}=e;return o.isValidElement(r)?o.cloneElement(r,{...P5(n,r.props),ref:t?L5(t,r.ref):r.ref}):o.Children.count(r)>1?o.Children.only(null):null});Va.displayName="SlotClone";const z5=({children:e})=>o.createElement(o.Fragment,null,e);function B5(e){return o.isValidElement(e)&&e.type===z5}function P5(e,t){const r={...t};for(const n in t){const a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...c)=>{l(...c),a(...c)}:a&&(r[n]=a):n==="style"?r[n]={...a,...l}:n==="className"&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}const{logger:H5}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:F5}=__STORYBOOK_MODULE_GLOBAL__;var j5=Re(is()),N5=j5.default,D5=Re(k5()),V5=D5.default,U5=Re(ss()),W5=U5.default,q5=Re(O5()),G5=q5.default,Y5=Re(T5()),K5=Y5.default,X5=Re(M5()),Z5=X5.default,J5=Re(cs()),Q5=J5.default,ef=Re(Qp()),tf=ef.default,rf=Re(e5()),nf=rf.default,af=Re(t5()),of=af.default,lf=Re(ls()),sf=lf.default;function cf(e,t){if(e==null)return{};var r=Io(e,t),n,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var fa={};function bf(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return fa[t]||(fa[t]=vf(e)),fa[t]}function yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(l){return l!=="token"}),a=bf(n);return a.reduce(function(l,i){return Xt(Xt({},l),r[i])},t)}function ri(e){return e.join(" ")}function wf(e,t){var r=0;return function(n){return r+=1,n.map(function(a,l){return Oo({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(l)})})}}function Oo(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,l=e.useInlineStyles,i=e.key,c=t.properties,s=t.type,d=t.tagName,u=t.value;if(s==="text")return u;if(d){var h=wf(r,l),g;if(!l)g=Xt(Xt({},c),{},{className:ri(c.className)});else{var f=Object.keys(r).reduce(function(x,y){return y.split(".").forEach(function(b){x.includes(b)||x.push(b)}),x},[]),v=c.className&&c.className.includes("token")?["token"]:[],m=c.className&&v.concat(c.className.filter(function(x){return!f.includes(x)}));g=Xt(Xt({},c),{},{className:ri(m)||void 0,style:yf(c.className,Object.assign({},c.style,a),r)})}var E=h(t.children);return p.createElement(d,G({key:i},g),E)}}var xf=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1},Ef=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return pn({children:S,lineNumber:C,lineNumberStyle:c,largestLineNumber:i,showInlineLineNumbers:a,lineProps:r,className:R,showLineNumbers:n,wrapLongLines:s})}function m(S,C){if(n&&C&&a){var R=vs(c,C,i);S.unshift(ms(C,R))}return S}function E(S,C){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||R.length>0?v(S,C,R):m(S,C)}for(var x=function(){var S=u[f],C=S.children[0].value,R=Cf(C);if(R){var I=C.split(` +`);I.forEach(function(_,k){var O=n&&h.length+l,T={type:"text",value:"".concat(_,` +`)};if(k===0){var M=u.slice(g+1,f).concat(pn({children:[T],className:S.properties.className})),F=E(M,O);h.push(F)}else if(k===I.length-1){var $=u[f+1]&&u[f+1].children&&u[f+1].children[0],L={type:"text",value:"".concat(_)};if($){var j=pn({children:[L],className:S.properties.className});u.splice(f+1,0,j)}else{var V=[L],P=E(V,O,S.properties.className);h.push(P)}}else{var D=[T],Z=E(D,O,S.properties.className);h.push(Z)}}),g=f}f++};f({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),ws=A.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});ws.displayName="ActionButton";var Lo=({actionItems:e,...t})=>p.createElement(Mf,{...t},e.map(({title:r,className:n,onClick:a,disabled:l},i)=>p.createElement(ws,{key:i,className:n,onClick:a,disabled:l},r))),$f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Vr=$f.reduce((e,t)=>{let r=o.forwardRef((n,a)=>{let{asChild:l,...i}=n,c=l?ko:t;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(c,G({},i,{ref:a}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Lf(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function zf(...e){return t=>e.forEach(r=>Lf(r,t))}function Vt(...e){return o.useCallback(zf(...e),e)}var Wa=globalThis!=null&&globalThis.document?o.useLayoutEffect:()=>{};function Bf(e,t){return o.useReducer((r,n)=>t[r][n]??r,e)}var Ur=e=>{let{present:t,children:r}=e,n=Pf(t),a=typeof r=="function"?r({present:n.isPresent}):o.Children.only(r),l=Vt(n.ref,a.ref);return typeof r=="function"||n.isPresent?o.cloneElement(a,{ref:l}):null};Ur.displayName="Presence";function Pf(e){let[t,r]=o.useState(),n=o.useRef({}),a=o.useRef(e),l=o.useRef("none"),i=e?"mounted":"unmounted",[c,s]=Bf(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{let d=en(n.current);l.current=c==="mounted"?d:"none"},[c]),Wa(()=>{let d=n.current,u=a.current;if(u!==e){let h=l.current,g=en(d);e?s("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?s("UNMOUNT"):s(u&&h!==g?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Wa(()=>{if(t){let d=h=>{let g=en(n.current).includes(h.animationName);h.target===t&&g&&E0.flushSync(()=>s("ANIMATION_END"))},u=h=>{h.target===t&&(l.current=en(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:o.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function en(e){return(e==null?void 0:e.animationName)||"none"}function Hf(e,t=[]){let r=[];function n(l,i){let c=o.createContext(i),s=r.length;r=[...r,i];function d(h){let{scope:g,children:f,...v}=h,m=(g==null?void 0:g[e][s])||c,E=o.useMemo(()=>v,Object.values(v));return o.createElement(m.Provider,{value:E},f)}function u(h,g){let f=(g==null?void 0:g[e][s])||c,v=o.useContext(f);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${l}\``)}return d.displayName=l+"Provider",[d,u]}let a=()=>{let l=r.map(i=>o.createContext(i));return function(i){let c=(i==null?void 0:i[e])||l;return o.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return a.scopeName=e,[n,Ff(a,...t)]}function Ff(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let l=n.reduce((i,{useScope:c,scopeName:s})=>{let d=c(a)[`__scope${s}`];return{...i,...d}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function Tt(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}var jf=o.createContext(void 0);function Nf(e){let t=o.useContext(jf);return e||t||"ltr"}function Df(e,[t,r]){return Math.min(r,Math.max(t,e))}function Lt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Vf(e,t){return o.useReducer((r,n)=>t[r][n]??r,e)}var xs="ScrollArea",[Es,HA]=Hf(xs),[Uf,ze]=Es(xs),Wf=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:l=600,...i}=e,[c,s]=o.useState(null),[d,u]=o.useState(null),[h,g]=o.useState(null),[f,v]=o.useState(null),[m,E]=o.useState(null),[x,y]=o.useState(0),[b,w]=o.useState(0),[S,C]=o.useState(!1),[R,I]=o.useState(!1),_=Vt(t,O=>s(O)),k=Nf(a);return o.createElement(Uf,{scope:r,type:n,dir:k,scrollHideDelay:l,scrollArea:c,viewport:d,onViewportChange:u,content:h,onContentChange:g,scrollbarX:f,onScrollbarXChange:v,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:m,onScrollbarYChange:E,scrollbarYEnabled:R,onScrollbarYEnabledChange:I,onCornerWidthChange:y,onCornerHeightChange:w},o.createElement(Vr.div,G({dir:k},i,{ref:_,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),qf="ScrollAreaViewport",Gf=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,...a}=e,l=ze(qf,r),i=o.useRef(null),c=Vt(t,i,l.onViewportChange);return o.createElement(o.Fragment,null,o.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),o.createElement(Vr.div,G({"data-radix-scroll-area-viewport":""},a,{ref:c,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style}}),o.createElement("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),dt="ScrollAreaScrollbar",Yf=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=ze(dt,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=a,c=e.orientation==="horizontal";return o.useEffect(()=>(c?l(!0):i(!0),()=>{c?l(!1):i(!1)}),[c,l,i]),a.type==="hover"?o.createElement(Kf,G({},n,{ref:t,forceMount:r})):a.type==="scroll"?o.createElement(Xf,G({},n,{ref:t,forceMount:r})):a.type==="auto"?o.createElement(Ss,G({},n,{ref:t,forceMount:r})):a.type==="always"?o.createElement(zo,G({},n,{ref:t})):null}),Kf=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=ze(dt,e.__scopeScrollArea),[l,i]=o.useState(!1);return o.useEffect(()=>{let c=a.scrollArea,s=0;if(c){let d=()=>{window.clearTimeout(s),i(!0)},u=()=>{s=window.setTimeout(()=>i(!1),a.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",u),()=>{window.clearTimeout(s),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",u)}}},[a.scrollArea,a.scrollHideDelay]),o.createElement(Ur,{present:r||l},o.createElement(Ss,G({"data-state":l?"visible":"hidden"},n,{ref:t})))}),Xf=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=ze(dt,e.__scopeScrollArea),l=e.orientation==="horizontal",i=Vn(()=>s("SCROLL_END"),100),[c,s]=Vf("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return o.useEffect(()=>{if(c==="idle"){let d=window.setTimeout(()=>s("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[c,a.scrollHideDelay,s]),o.useEffect(()=>{let d=a.viewport,u=l?"scrollLeft":"scrollTop";if(d){let h=d[u],g=()=>{let f=d[u];h!==f&&(s("SCROLL"),i()),h=f};return d.addEventListener("scroll",g),()=>d.removeEventListener("scroll",g)}},[a.viewport,l,s,i]),o.createElement(Ur,{present:r||c!=="hidden"},o.createElement(zo,G({"data-state":c==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:Lt(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Lt(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),Ss=o.forwardRef((e,t)=>{let r=ze(dt,e.__scopeScrollArea),{forceMount:n,...a}=e,[l,i]=o.useState(!1),c=e.orientation==="horizontal",s=Vn(()=>{if(r.viewport){let d=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,a=ze(dt,e.__scopeScrollArea),l=o.useRef(null),i=o.useRef(0),[c,s]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=As(c.viewport,c.content),u={...n,sizes:c,onSizesChange:s,hasThumb:d>0&&d<1,onThumbChange:g=>l.current=g,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:g=>i.current=g};function h(g,f){return ah(g,i.current,c,f)}return r==="horizontal"?o.createElement(Zf,G({},u,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let g=a.viewport.scrollLeft,f=ai(g,c,a.dir);l.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollLeft=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollLeft=h(g,a.dir))}})):r==="vertical"?o.createElement(Jf,G({},u,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let g=a.viewport.scrollTop,f=ai(g,c);l.current.style.transform=`translate3d(0, ${f}px, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollTop=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollTop=h(g))}})):null}),Zf=o.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,l=ze(dt,e.__scopeScrollArea),[i,c]=o.useState(),s=o.useRef(null),d=Vt(t,s,l.onScrollbarXChange);return o.useEffect(()=>{s.current&&c(getComputedStyle(s.current))},[s]),o.createElement(Rs,G({"data-orientation":"horizontal"},a,{ref:d,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Dn(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,h)=>{if(l.viewport){let g=l.viewport.scrollLeft+u.deltaX;e.onWheelScroll(g),ks(g,h)&&u.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:En(i.paddingLeft),paddingEnd:En(i.paddingRight)}})}}))}),Jf=o.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,l=ze(dt,e.__scopeScrollArea),[i,c]=o.useState(),s=o.useRef(null),d=Vt(t,s,l.onScrollbarYChange);return o.useEffect(()=>{s.current&&c(getComputedStyle(s.current))},[s]),o.createElement(Rs,G({"data-orientation":"vertical"},a,{ref:d,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Dn(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,h)=>{if(l.viewport){let g=l.viewport.scrollTop+u.deltaY;e.onWheelScroll(g),ks(g,h)&&u.preventDefault()}},onResize:()=>{s.current&&l.viewport&&i&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:En(i.paddingTop),paddingEnd:En(i.paddingBottom)}})}}))}),[Qf,Cs]=Es(dt),Rs=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:c,onThumbPositionChange:s,onDragScroll:d,onWheelScroll:u,onResize:h,...g}=e,f=ze(dt,r),[v,m]=o.useState(null),E=Vt(t,_=>m(_)),x=o.useRef(null),y=o.useRef(""),b=f.viewport,w=n.content-n.viewport,S=Tt(u),C=Tt(s),R=Vn(h,10);function I(_){if(x.current){let k=_.clientX-x.current.left,O=_.clientY-x.current.top;d({x:k,y:O})}}return o.useEffect(()=>{let _=k=>{let O=k.target;v!=null&&v.contains(O)&&S(k,w)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[b,v,w,S]),o.useEffect(C,[n,C]),tr(v,R),tr(f.content,R),o.createElement(Qf,{scope:r,scrollbar:v,hasThumb:a,onThumbChange:Tt(l),onThumbPointerUp:Tt(i),onThumbPositionChange:C,onThumbPointerDown:Tt(c)},o.createElement(Vr.div,G({},g,{ref:E,style:{position:"absolute",...g.style},onPointerDown:Lt(e.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),x.current=v.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),I(_))}),onPointerMove:Lt(e.onPointerMove,I),onPointerUp:Lt(e.onPointerUp,_=>{let k=_.target;k.hasPointerCapture(_.pointerId)&&k.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=y.current,f.viewport&&(f.viewport.style.scrollBehavior=""),x.current=null})})))}),qa="ScrollAreaThumb",eh=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Cs(qa,e.__scopeScrollArea);return o.createElement(Ur,{present:r||a.hasThumb},o.createElement(th,G({ref:t},n)))}),th=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...a}=e,l=ze(qa,r),i=Cs(qa,r),{onThumbPositionChange:c}=i,s=Vt(t,h=>i.onThumbChange(h)),d=o.useRef(),u=Vn(()=>{d.current&&(d.current(),d.current=void 0)},100);return o.useEffect(()=>{let h=l.viewport;if(h){let g=()=>{if(u(),!d.current){let f=oh(h,c);d.current=f,c()}};return c(),h.addEventListener("scroll",g),()=>h.removeEventListener("scroll",g)}},[l.viewport,u,c]),o.createElement(Vr.div,G({"data-state":i.hasThumb?"visible":"hidden"},a,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Lt(e.onPointerDownCapture,h=>{let g=h.target.getBoundingClientRect(),f=h.clientX-g.left,v=h.clientY-g.top;i.onThumbPointerDown({x:f,y:v})}),onPointerUp:Lt(e.onPointerUp,i.onThumbPointerUp)}))}),Is="ScrollAreaCorner",rh=o.forwardRef((e,t)=>{let r=ze(Is,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?o.createElement(nh,G({},e,{ref:t})):null}),nh=o.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,a=ze(Is,r),[l,i]=o.useState(0),[c,s]=o.useState(0),d=!!(l&&c);return tr(a.scrollbarX,()=>{var u;let h=((u=a.scrollbarX)===null||u===void 0?void 0:u.offsetHeight)||0;a.onCornerHeightChange(h),s(h)}),tr(a.scrollbarY,()=>{var u;let h=((u=a.scrollbarY)===null||u===void 0?void 0:u.offsetWidth)||0;a.onCornerWidthChange(h),i(h)}),d?o.createElement(Vr.div,G({},n,{ref:t,style:{width:l,height:c,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function En(e){return e?parseInt(e,10):0}function As(e,t){let r=e/t;return isNaN(r)?0:r}function Dn(e){let t=As(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function ah(e,t,r,n="ltr"){let a=Dn(r),l=a/2,i=t||l,c=a-i,s=r.scrollbar.paddingStart+i,d=r.scrollbar.size-r.scrollbar.paddingEnd-c,u=r.content-r.viewport,h=n==="ltr"?[0,u]:[u*-1,0];return _s([s,d],h)(e)}function ai(e,t,r="ltr"){let n=Dn(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-a,i=t.content-t.viewport,c=l-n,s=r==="ltr"?[0,i]:[i*-1,0],d=Df(e,s);return _s([0,i],[0,c])(d)}function _s(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function ks(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function a(){let l={left:e.scrollLeft,top:e.scrollTop},i=r.left!==l.left,c=r.top!==l.top;(i||c)&&t(),r=l,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function Vn(e,t){let r=Tt(e),n=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),o.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function tr(e,t){let r=Tt(t);Wa(()=>{let n=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}var lh=Wf,ih=Gf,sh=Yf,ch=eh,dh=rh,uh=A(lh)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),ph=A(ih)({width:"100%",height:"100%"}),oi=A(sh)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),li=A(ch)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Bo=({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:a=6,className:l})=>p.createElement(uh,{scrollbarsize:a,offset:n,className:l},p.createElement(ph,null,e),t&&p.createElement(oi,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},p.createElement(li,null)),r&&p.createElement(oi,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},p.createElement(li,null)),t&&r&&p.createElement(dh,null)),{navigator:tn,document:wr,window:fh}=F5,hh={jsextra:G5,jsx:N5,json:K5,yml:nf,md:tf,bash:V5,css:W5,html:Q5,tsx:of,typescript:sf,graphql:Z5};Object.entries(hh).forEach(([e,t])=>{$o.registerLanguage(e,t)});var gh=Dt(2)(e=>Object.entries(e.code||{}).reduce((t,[r,n])=>({...t,[`* .${r}`]:n}),{})),mh=Os();function Os(){return tn!=null&&tn.clipboard?e=>tn.clipboard.writeText(e):async e=>{let t=wr.createElement("TEXTAREA"),r=wr.activeElement;t.value=e,wr.body.appendChild(t),t.select(),wr.execCommand("copy"),wr.body.removeChild(t),r.focus()}}var vh=A.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{},({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),bh=({children:e,className:t})=>p.createElement(Bo,{horizontal:!0,vertical:!0,className:t},e),yh=A(bh)({position:"relative"},({theme:e})=>gh(e)),wh=A.pre(({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0})),xh=A.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),Ts=e=>{let t=[...e.children],r=t[0],n=r.children[0].value,a={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=a,{...e,children:t}},Eh=({rows:e,stylesheet:t,useInlineStyles:r})=>e.map((n,a)=>Oo({node:Ts(n),stylesheet:t,useInlineStyles:r,key:`code-segement${a}`})),Sh=(e,t)=>t?e?({rows:r,...n})=>e({rows:r.map(a=>Ts(a)),...n}):Eh:e,Po=({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:a=!1,format:l=!0,formatter:i=null,className:c=null,showLineNumbers:s=!1,...d})=>{if(typeof e!="string"||!e.trim())return null;let[u,h]=o.useState("");o.useEffect(()=>{i?i(l,e).then(h):h(e.trim())},[e,l,i]);let[g,f]=o.useState(!1),v=o.useCallback(E=>{E.preventDefault(),mh(u).then(()=>{f(!0),fh.setTimeout(()=>f(!1),1500)}).catch(H5.error)},[u]),m=Sh(d.renderer,s);return p.createElement(vh,{bordered:n,padded:a,showLineNumbers:s,className:c},p.createElement(yh,null,p.createElement($o,{padded:a||n,language:t,showLineNumbers:s,showInlineLineNumbers:s,useInlineStyles:!1,PreTag:wh,CodeTag:xh,lineNumberContainerStyle:{},...d,renderer:m},u)),r?p.createElement(Lo,{actionItems:[{title:g?"Copied":"Copy",onClick:v}]}):null)};Po.registerLanguage=(...e)=>$o.registerLanguage(...e);var FA=Po;const{global:Ch}=__STORYBOOK_MODULE_GLOBAL__;var Rh=N({"../../node_modules/react-fast-compare/index.js"(e,t){var r=typeof Element<"u",n=typeof Map=="function",a=typeof Set=="function",l=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(c,s){if(c===s)return!0;if(c&&s&&typeof c=="object"&&typeof s=="object"){if(c.constructor!==s.constructor)return!1;var d,u,h;if(Array.isArray(c)){if(d=c.length,d!=s.length)return!1;for(u=d;u--!==0;)if(!i(c[u],s[u]))return!1;return!0}var g;if(n&&c instanceof Map&&s instanceof Map){if(c.size!==s.size)return!1;for(g=c.entries();!(u=g.next()).done;)if(!s.has(u.value[0]))return!1;for(g=c.entries();!(u=g.next()).done;)if(!i(u.value[1],s.get(u.value[0])))return!1;return!0}if(a&&c instanceof Set&&s instanceof Set){if(c.size!==s.size)return!1;for(g=c.entries();!(u=g.next()).done;)if(!s.has(u.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(c)&&ArrayBuffer.isView(s)){if(d=c.length,d!=s.length)return!1;for(u=d;u--!==0;)if(c[u]!==s[u])return!1;return!0}if(c.constructor===RegExp)return c.source===s.source&&c.flags===s.flags;if(c.valueOf!==Object.prototype.valueOf&&typeof c.valueOf=="function"&&typeof s.valueOf=="function")return c.valueOf()===s.valueOf();if(c.toString!==Object.prototype.toString&&typeof c.toString=="function"&&typeof s.toString=="function")return c.toString()===s.toString();if(h=Object.keys(c),d=h.length,d!==Object.keys(s).length)return!1;for(u=d;u--!==0;)if(!Object.prototype.hasOwnProperty.call(s,h[u]))return!1;if(r&&c instanceof Element)return!1;for(u=d;u--!==0;)if(!((h[u]==="_owner"||h[u]==="__v"||h[u]==="__o")&&c.$$typeof)&&!i(c[h[u]],s[h[u]]))return!1;return!0}return c!==c&&s!==s}t.exports=function(c,s){try{return i(c,s)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}}}}),ii=function(e){return e.reduce(function(t,r){var n=r[0],a=r[1];return t[n]=a,t},{})},si=typeof window<"u"&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,we="top",$e="bottom",Le="right",xe="left",Ho="auto",Wr=[we,$e,Le,xe],rr="start",Lr="end",Ih="clippingParents",Ms="viewport",xr="popper",Ah="reference",ci=Wr.reduce(function(e,t){return e.concat([t+"-"+rr,t+"-"+Lr])},[]),$s=[].concat(Wr,[Ho]).reduce(function(e,t){return e.concat([t,t+"-"+rr,t+"-"+Lr])},[]),_h="beforeRead",kh="read",Oh="afterRead",Th="beforeMain",Mh="main",$h="afterMain",Lh="beforeWrite",zh="write",Bh="afterWrite",Ph=[_h,kh,Oh,Th,Mh,$h,Lh,zh,Bh];function ot(e){return e?(e.nodeName||"").toLowerCase():null}function Ce(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jt(e){var t=Ce(e).Element;return e instanceof t||e instanceof Element}function Me(e){var t=Ce(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fo(e){if(typeof ShadowRoot>"u")return!1;var t=Ce(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hh(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},l=t.elements[r];!Me(l)||!ot(l)||(Object.assign(l.style,n),Object.keys(a).forEach(function(i){var c=a[i];c===!1?l.removeAttribute(i):l.setAttribute(i,c===!0?"":c)}))})}function Fh(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],l=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=i.reduce(function(s,d){return s[d]="",s},{});!Me(a)||!ot(a)||(Object.assign(a.style,c),Object.keys(l).forEach(function(s){a.removeAttribute(s)}))})}}var jh={name:"applyStyles",enabled:!0,phase:"write",fn:Hh,effect:Fh,requires:["computeStyles"]};function at(e){return e.split("-")[0]}var zt=Math.max,Sn=Math.min,nr=Math.round;function Ga(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ls(){return!/^((?!chrome|android).)*safari/i.test(Ga())}function ar(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,l=1;t&&Me(e)&&(a=e.offsetWidth>0&&nr(n.width)/e.offsetWidth||1,l=e.offsetHeight>0&&nr(n.height)/e.offsetHeight||1);var i=jt(e)?Ce(e):window,c=i.visualViewport,s=!Ls()&&r,d=(n.left+(s&&c?c.offsetLeft:0))/a,u=(n.top+(s&&c?c.offsetTop:0))/l,h=n.width/a,g=n.height/l;return{width:h,height:g,top:u,right:d+h,bottom:u+g,left:d,x:d,y:u}}function jo(e){var t=ar(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function zs(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Fo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ct(e){return Ce(e).getComputedStyle(e)}function Nh(e){return["table","td","th"].indexOf(ot(e))>=0}function yt(e){return((jt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Un(e){return ot(e)==="html"?e:e.assignedSlot||e.parentNode||(Fo(e)?e.host:null)||yt(e)}function di(e){return!Me(e)||ct(e).position==="fixed"?null:e.offsetParent}function Dh(e){var t=/firefox/i.test(Ga()),r=/Trident/i.test(Ga());if(r&&Me(e)){var n=ct(e);if(n.position==="fixed")return null}var a=Un(e);for(Fo(a)&&(a=a.host);Me(a)&&["html","body"].indexOf(ot(a))<0;){var l=ct(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function qr(e){for(var t=Ce(e),r=di(e);r&&Nh(r)&&ct(r).position==="static";)r=di(r);return r&&(ot(r)==="html"||ot(r)==="body"&&ct(r).position==="static")?t:r||Dh(e)||t}function No(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rr(e,t,r){return zt(e,Sn(t,r))}function Vh(e,t,r){var n=Rr(e,t,r);return n>r?r:n}function Bs(){return{top:0,right:0,bottom:0,left:0}}function Ps(e){return Object.assign({},Bs(),e)}function Hs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Uh=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ps(typeof e!="number"?e:Hs(e,Wr))};function Wh(e){var t,r=e.state,n=e.name,a=e.options,l=r.elements.arrow,i=r.modifiersData.popperOffsets,c=at(r.placement),s=No(c),d=[xe,Le].indexOf(c)>=0,u=d?"height":"width";if(!(!l||!i)){var h=Uh(a.padding,r),g=jo(l),f=s==="y"?we:xe,v=s==="y"?$e:Le,m=r.rects.reference[u]+r.rects.reference[s]-i[s]-r.rects.popper[u],E=i[s]-r.rects.reference[s],x=qr(l),y=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,b=m/2-E/2,w=h[f],S=y-g[u]-h[v],C=y/2-g[u]/2+b,R=Rr(w,C,S),I=s;r.modifiersData[n]=(t={},t[I]=R,t.centerOffset=R-C,t)}}function qh(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||zs(t.elements.popper,a)&&(t.elements.arrow=a))}var Gh={name:"arrow",enabled:!0,phase:"main",fn:Wh,effect:qh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function or(e){return e.split("-")[1]}var Yh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kh(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:nr(r*a)/a||0,y:nr(n*a)/a||0}}function ui(e){var t,r=e.popper,n=e.popperRect,a=e.placement,l=e.variation,i=e.offsets,c=e.position,s=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,g=i.x,f=g===void 0?0:g,v=i.y,m=v===void 0?0:v,E=typeof u=="function"?u({x:f,y:m}):{x:f,y:m};f=E.x,m=E.y;var x=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=xe,w=we,S=window;if(d){var C=qr(r),R="clientHeight",I="clientWidth";if(C===Ce(r)&&(C=yt(r),ct(C).position!=="static"&&c==="absolute"&&(R="scrollHeight",I="scrollWidth")),C=C,a===we||(a===xe||a===Le)&&l===Lr){w=$e;var _=h&&C===S&&S.visualViewport?S.visualViewport.height:C[R];m-=_-n.height,m*=s?1:-1}if(a===xe||(a===we||a===$e)&&l===Lr){b=Le;var k=h&&C===S&&S.visualViewport?S.visualViewport.width:C[I];f-=k-n.width,f*=s?1:-1}}var O=Object.assign({position:c},d&&Yh),T=u===!0?Kh({x:f,y:m},Ce(r)):{x:f,y:m};if(f=T.x,m=T.y,s){var M;return Object.assign({},O,(M={},M[w]=y?"0":"",M[b]=x?"0":"",M.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",M))}return Object.assign({},O,(t={},t[w]=y?m+"px":"",t[b]=x?f+"px":"",t.transform="",t))}function Xh(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,l=r.adaptive,i=l===void 0?!0:l,c=r.roundOffsets,s=c===void 0?!0:c,d={placement:at(t.placement),variation:or(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ui(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ui(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Zh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xh,data:{}},rn={passive:!0};function Jh(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,l=a===void 0?!0:a,i=n.resize,c=i===void 0?!0:i,s=Ce(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&d.forEach(function(u){u.addEventListener("scroll",r.update,rn)}),c&&s.addEventListener("resize",r.update,rn),function(){l&&d.forEach(function(u){u.removeEventListener("scroll",r.update,rn)}),c&&s.removeEventListener("resize",r.update,rn)}}var Qh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jh,data:{}},eg={left:"right",right:"left",bottom:"top",top:"bottom"};function fn(e){return e.replace(/left|right|bottom|top/g,function(t){return eg[t]})}var tg={start:"end",end:"start"};function pi(e){return e.replace(/start|end/g,function(t){return tg[t]})}function Do(e){var t=Ce(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Vo(e){return ar(yt(e)).left+Do(e).scrollLeft}function rg(e,t){var r=Ce(e),n=yt(e),a=r.visualViewport,l=n.clientWidth,i=n.clientHeight,c=0,s=0;if(a){l=a.width,i=a.height;var d=Ls();(d||!d&&t==="fixed")&&(c=a.offsetLeft,s=a.offsetTop)}return{width:l,height:i,x:c+Vo(e),y:s}}function ng(e){var t,r=yt(e),n=Do(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=zt(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=zt(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-n.scrollLeft+Vo(e),s=-n.scrollTop;return ct(a||r).direction==="rtl"&&(c+=zt(r.clientWidth,a?a.clientWidth:0)-l),{width:l,height:i,x:c,y:s}}function Uo(e){var t=ct(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function Fs(e){return["html","body","#document"].indexOf(ot(e))>=0?e.ownerDocument.body:Me(e)&&Uo(e)?e:Fs(Un(e))}function Ir(e,t){var r;t===void 0&&(t=[]);var n=Fs(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),l=Ce(n),i=a?[l].concat(l.visualViewport||[],Uo(n)?n:[]):n,c=t.concat(i);return a?c:c.concat(Ir(Un(i)))}function Ya(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ag(e,t){var r=ar(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function fi(e,t,r){return t===Ms?Ya(rg(e,r)):jt(t)?ag(t,r):Ya(ng(yt(e)))}function og(e){var t=Ir(Un(e)),r=["absolute","fixed"].indexOf(ct(e).position)>=0,n=r&&Me(e)?qr(e):e;return jt(n)?t.filter(function(a){return jt(a)&&zs(a,n)&&ot(a)!=="body"}):[]}function lg(e,t,r,n){var a=t==="clippingParents"?og(e):[].concat(t),l=[].concat(a,[r]),i=l[0],c=l.reduce(function(s,d){var u=fi(e,d,n);return s.top=zt(u.top,s.top),s.right=Sn(u.right,s.right),s.bottom=Sn(u.bottom,s.bottom),s.left=zt(u.left,s.left),s},fi(e,i,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function js(e){var t=e.reference,r=e.element,n=e.placement,a=n?at(n):null,l=n?or(n):null,i=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,s;switch(a){case we:s={x:i,y:t.y-r.height};break;case $e:s={x:i,y:t.y+t.height};break;case Le:s={x:t.x+t.width,y:c};break;case xe:s={x:t.x-r.width,y:c};break;default:s={x:t.x,y:t.y}}var d=a?No(a):null;if(d!=null){var u=d==="y"?"height":"width";switch(l){case rr:s[d]=s[d]-(t[u]/2-r[u]/2);break;case Lr:s[d]=s[d]+(t[u]/2-r[u]/2);break}}return s}function zr(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,l=r.strategy,i=l===void 0?e.strategy:l,c=r.boundary,s=c===void 0?Ih:c,d=r.rootBoundary,u=d===void 0?Ms:d,h=r.elementContext,g=h===void 0?xr:h,f=r.altBoundary,v=f===void 0?!1:f,m=r.padding,E=m===void 0?0:m,x=Ps(typeof E!="number"?E:Hs(E,Wr)),y=g===xr?Ah:xr,b=e.rects.popper,w=e.elements[v?y:g],S=lg(jt(w)?w:w.contextElement||yt(e.elements.popper),s,u,i),C=ar(e.elements.reference),R=js({reference:C,element:b,strategy:"absolute",placement:a}),I=Ya(Object.assign({},b,R)),_=g===xr?I:C,k={top:S.top-_.top+x.top,bottom:_.bottom-S.bottom+x.bottom,left:S.left-_.left+x.left,right:_.right-S.right+x.right},O=e.modifiersData.offset;if(g===xr&&O){var T=O[a];Object.keys(k).forEach(function(M){var F=[Le,$e].indexOf(M)>=0?1:-1,$=[we,$e].indexOf(M)>=0?"y":"x";k[M]+=T[$]*F})}return k}function ig(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,l=r.rootBoundary,i=r.padding,c=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?$s:s,u=or(n),h=u?c?ci:ci.filter(function(v){return or(v)===u}):Wr,g=h.filter(function(v){return d.indexOf(v)>=0});g.length===0&&(g=h);var f=g.reduce(function(v,m){return v[m]=zr(e,{placement:m,boundary:a,rootBoundary:l,padding:i})[at(m)],v},{});return Object.keys(f).sort(function(v,m){return f[v]-f[m]})}function sg(e){if(at(e)===Ho)return[];var t=fn(e);return[pi(e),t,pi(t)]}function cg(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,l=a===void 0?!0:a,i=r.altAxis,c=i===void 0?!0:i,s=r.fallbackPlacements,d=r.padding,u=r.boundary,h=r.rootBoundary,g=r.altBoundary,f=r.flipVariations,v=f===void 0?!0:f,m=r.allowedAutoPlacements,E=t.options.placement,x=at(E),y=x===E,b=s||(y||!v?[fn(E)]:sg(E)),w=[E].concat(b).reduce(function(J,B){return J.concat(at(B)===Ho?ig(t,{placement:B,boundary:u,rootBoundary:h,padding:d,flipVariations:v,allowedAutoPlacements:m}):B)},[]),S=t.rects.reference,C=t.rects.popper,R=new Map,I=!0,_=w[0],k=0;k=0,$=F?"width":"height",L=zr(t,{placement:O,boundary:u,rootBoundary:h,altBoundary:g,padding:d}),j=F?M?Le:xe:M?$e:we;S[$]>C[$]&&(j=fn(j));var V=fn(j),P=[];if(l&&P.push(L[T]<=0),c&&P.push(L[j]<=0,L[V]<=0),P.every(function(J){return J})){_=O,I=!1;break}R.set(O,P)}if(I)for(var D=v?3:1,Z=function(J){var B=w.find(function(U){var q=R.get(U);if(q)return q.slice(0,J).every(function(se){return se})});if(B)return _=B,"break"},ne=D;ne>0;ne--){var X=Z(ne);if(X==="break")break}t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}}var dg={name:"flip",enabled:!0,phase:"main",fn:cg,requiresIfExists:["offset"],data:{_skip:!1}};function hi(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function gi(e){return[we,Le,$e,xe].some(function(t){return e[t]>=0})}function ug(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,i=zr(t,{elementContext:"reference"}),c=zr(t,{altBoundary:!0}),s=hi(i,n),d=hi(c,a,l),u=gi(s),h=gi(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}var pg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ug};function fg(e,t,r){var n=at(e),a=[xe,we].indexOf(n)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=l[0],c=l[1];return i=i||0,c=(c||0)*a,[xe,Le].indexOf(n)>=0?{x:c,y:i}:{x:i,y:c}}function hg(e){var t=e.state,r=e.options,n=e.name,a=r.offset,l=a===void 0?[0,0]:a,i=$s.reduce(function(u,h){return u[h]=fg(h,t.rects,l),u},{}),c=i[t.placement],s=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=i}var gg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hg};function mg(e){var t=e.state,r=e.name;t.modifiersData[r]=js({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var vg={name:"popperOffsets",enabled:!0,phase:"read",fn:mg,data:{}};function bg(e){return e==="x"?"y":"x"}function yg(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,l=a===void 0?!0:a,i=r.altAxis,c=i===void 0?!1:i,s=r.boundary,d=r.rootBoundary,u=r.altBoundary,h=r.padding,g=r.tether,f=g===void 0?!0:g,v=r.tetherOffset,m=v===void 0?0:v,E=zr(t,{boundary:s,rootBoundary:d,padding:h,altBoundary:u}),x=at(t.placement),y=or(t.placement),b=!y,w=No(x),S=bg(w),C=t.modifiersData.popperOffsets,R=t.rects.reference,I=t.rects.popper,_=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,k=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(l){var M,F=w==="y"?we:xe,$=w==="y"?$e:Le,L=w==="y"?"height":"width",j=C[w],V=j+E[F],P=j-E[$],D=f?-I[L]/2:0,Z=y===rr?R[L]:I[L],ne=y===rr?-I[L]:-R[L],X=t.elements.arrow,J=f&&X?jo(X):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bs(),U=B[F],q=B[$],se=Rr(0,R[L],J[L]),ve=b?R[L]/2-D-se-U-k.mainAxis:Z-se-U-k.mainAxis,lt=b?-R[L]/2+D+se+q+k.mainAxis:ne+se+q+k.mainAxis,_e=t.elements.arrow&&qr(t.elements.arrow),je=_e?w==="y"?_e.clientTop||0:_e.clientLeft||0:0,z=(M=O==null?void 0:O[w])!=null?M:0,Pe=j+ve-z-je,Ne=j+lt-z,St=Rr(f?Sn(V,Pe):V,j,f?zt(P,Ne):P);C[w]=St,T[w]=St-j}if(c){var Wt,De=w==="x"?we:xe,Kr=w==="x"?$e:Le,be=C[S],Ct=S==="y"?"height":"width",Ve=be+E[De],qt=be-E[Kr],Ue=[we,xe].indexOf(x)!==-1,Gt=(Wt=O==null?void 0:O[S])!=null?Wt:0,We=Ue?Ve:be-R[Ct]-I[Ct]-Gt+k.altAxis,pe=Ue?be+R[Ct]+I[Ct]-Gt-k.altAxis:qt,He=f&&Ue?Vh(We,be,pe):Rr(f?We:Ve,be,f?pe:qt);C[S]=He,T[S]=He-be}t.modifiersData[n]=T}}var wg={name:"preventOverflow",enabled:!0,phase:"main",fn:yg,requiresIfExists:["offset"]};function xg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Eg(e){return e===Ce(e)||!Me(e)?Do(e):xg(e)}function Sg(e){var t=e.getBoundingClientRect(),r=nr(t.width)/e.offsetWidth||1,n=nr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Cg(e,t,r){r===void 0&&(r=!1);var n=Me(t),a=Me(t)&&Sg(t),l=yt(t),i=ar(e,a,r),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((ot(t)!=="body"||Uo(l))&&(c=Eg(t)),Me(t)?(s=ar(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=Vo(l))),{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function Rg(e){var t=new Map,r=new Set,n=[];e.forEach(function(l){t.set(l.name,l)});function a(l){r.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(c){if(!r.has(c)){var s=t.get(c);s&&a(s)}}),n.push(l)}return e.forEach(function(l){r.has(l.name)||a(l)}),n}function Ig(e){var t=Rg(e);return Ph.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Ag(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function _g(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var mi={placement:"bottom",modifiers:[],strategy:"absolute"};function bi(){for(var e=arguments.length,t=new Array(e),r=0;rt.split("-")[0]===e?r:n),pt=8,Fg=A.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${ke("top",r,`${pt*-1}px`,"auto")}`,top:`${ke("bottom",r,`${pt*-1}px`,"auto")}`,right:`${ke("left",r,`${pt*-1}px`,"auto")}`,left:`${ke("right",r,`${pt*-1}px`,"auto")}`,borderBottomWidth:`${ke("top",r,"0",pt)}px`,borderTopWidth:`${ke("bottom",r,"0",pt)}px`,borderRightWidth:`${ke("left",r,"0",pt)}px`,borderLeftWidth:`${ke("right",r,"0",pt)}px`,borderTopColor:ke("top",r,e.color[t]||t||e.base==="light"?Cr(e.background.app):e.background.app,"transparent"),borderBottomColor:ke("bottom",r,e.color[t]||t||e.base==="light"?Cr(e.background.app):e.background.app,"transparent"),borderLeftColor:ke("left",r,e.color[t]||t||e.base==="light"?Cr(e.background.app):e.background.app,"transparent"),borderRightColor:ke("right",r,e.color[t]||t||e.base==="light"?Cr(e.background.app):e.background.app,"transparent")})),jg=A.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647}),({theme:e,color:t,hasChrome:r})=>r?{background:e.color[t]||t||e.base==="light"?Cr(e.background.app):e.background.app,filter:` + drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) + drop-shadow(0 1px 3px rgba(0,0,0,0.1)) + `,borderRadius:e.appBorderRadius,fontSize:e.typography.size.s1}:{}),Wo=p.forwardRef(({placement:e,hasChrome:t,children:r,arrowProps:n,tooltipRef:a,color:l,withArrows:i,...c},s)=>p.createElement(jg,{"data-testid":"tooltip",hasChrome:t,ref:s,...c,color:l},t&&i&&p.createElement(Fg,{placement:e,...n,color:l}),r));Wo.displayName="Tooltip";Wo.defaultProps={color:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var{document:hn}=Ch,Ng=A.div` + display: inline-block; + cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"}; +`,Dg=A.g` + cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"}; +`,Vs=({svg:e,trigger:t,closeOnOutsideClick:r,placement:n,hasChrome:a,withArrows:l,offset:i,tooltip:c,children:s,closeOnTriggerHidden:d,mutationObserverOptions:u,defaultVisible:h,delayHide:g,visible:f,interactive:v,delayShow:m,modifiers:E,strategy:x,followCursor:y,onVisibleChange:b,...w})=>{let S=e?Dg:Ng,{getArrowProps:C,getTooltipProps:R,setTooltipRef:I,setTriggerRef:_,visible:k,state:O}=Hg({trigger:t,placement:n,defaultVisible:h,delayHide:g,interactive:v,closeOnOutsideClick:r,closeOnTriggerHidden:d,onVisibleChange:b,delayShow:m,followCursor:y,mutationObserverOptions:u,visible:f,offset:i},{modifiers:E,strategy:x}),T=p.createElement(Wo,{placement:O==null?void 0:O.placement,ref:I,hasChrome:a,arrowProps:C(),withArrows:l,...R()},typeof c=="function"?c({onHide:()=>b(!1)}):c);return p.createElement(p.Fragment,null,p.createElement(S,{trigger:t,ref:_,...w},s),k&&ed.createPortal(T,hn.body))};Vs.defaultProps={svg:!1,trigger:"click",closeOnOutsideClick:!1,placement:"top",modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:!0,defaultVisible:!1};var Vg=({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,a]=o.useState(e),l=o.useCallback(i=>{t&&t(i)===!1||a(i)},[t]);return o.useEffect(()=>{let i=()=>l(!1);hn.addEventListener("keydown",i,!1);let c=Array.from(hn.getElementsByTagName("iframe")),s=[];return c.forEach(d=>{let u=()=>{try{d.contentWindow.document&&(d.contentWindow.document.addEventListener("click",i),s.push(()=>{try{d.contentWindow.document.removeEventListener("click",i)}catch{}}))}catch{}};u(),d.addEventListener("load",u),s.push(()=>{d.removeEventListener("load",u)})}),()=>{hn.removeEventListener("keydown",i),s.forEach(d=>{d()})}}),p.createElement(Vs,{...r,visible:n,onVisibleChange:l})},Ug=[{name:"Images",icons:["PhotoIcon","ComponentIcon","GridIcon","OutlineIcon","PhotoDragIcon","GridAltIcon","SearchIcon","ZoomIcon","ZoomOutIcon","ZoomResetIcon","EyeIcon","EyeCloseIcon","LightningIcon","LightningOffIcon","ContrastIcon","SwitchAltIcon","MirrorIcon","GrowIcon","PaintBrushIcon","RulerIcon","StopIcon","CameraIcon","VideoIcon","SpeakerIcon","PlayIcon","PlayBackIcon","PlayNextIcon","RewindIcon","FastForwardIcon","StopAltIcon","SideBySideIcon","StackedIcon","SunIcon","MoonIcon"]},{name:"Documents",icons:["BookIcon","DocumentIcon","CopyIcon","CategoryIcon","FolderIcon","PrintIcon","GraphLineIcon","CalendarIcon","GraphBarIcon","AlignLeftIcon","AlignRightIcon","FilterIcon","DocChartIcon","DocListIcon","DragIcon","MenuIcon"]},{name:"Editing",icons:["MarkupIcon","BoldIcon","ItalicIcon","PaperClipIcon","ListOrderedIcon","ListUnorderedIcon","ParagraphIcon","MarkdownIcon"]},{name:"Git",icons:["RepoIcon","CommitIcon","BranchIcon","PullRequestIcon","MergeIcon"]},{name:"OS",icons:["AppleIcon","LinuxIcon","UbuntuIcon","WindowsIcon","ChromeIcon"]},{name:"Logos",icons:["StorybookIcon","AzureDevOpsIcon","BitbucketIcon","ChromaticIcon","ComponentDrivenIcon","DiscordIcon","FacebookIcon","FigmaIcon","GDriveIcon","GithubIcon","GitlabIcon","GoogleIcon","GraphqlIcon","MediumIcon","ReduxIcon","TwitterIcon","YoutubeIcon","VSCodeIcon","LinkedinIcon","XIcon"]},{name:"Devices",icons:["BrowserIcon","TabletIcon","MobileIcon","WatchIcon","SidebarIcon","SidebarAltIcon","SidebarAltToggleIcon","SidebarToggleIcon","BottomBarIcon","BottomBarToggleIcon","CPUIcon","DatabaseIcon","MemoryIcon","StructureIcon","BoxIcon","PowerIcon"]},{name:"CRUD",icons:["EditIcon","CogIcon","NutIcon","WrenchIcon","EllipsisIcon","WandIcon","CheckIcon","FormIcon","BatchDenyIcon","BatchAcceptIcon","ControlsIcon","PlusIcon","CloseAltIcon","CrossIcon","TrashIcon","PinAltIcon","UnpinIcon","AddIcon","SubtractIcon","CloseIcon","DeleteIcon","PassedIcon","ChangedIcon","FailedIcon","ClearIcon","CommentIcon","CommentAddIcon","RequestChangeIcon","CommentsIcon","ChatIcon","LockIcon","UnlockIcon","KeyIcon","OutboxIcon","CreditIcon","ButtonIcon","TypeIcon","PointerDefaultIcon","PointerHandIcon","CommandIcon"]},{name:"Communicate",icons:["InfoIcon","QuestionIcon","SupportIcon","AlertIcon","AlertAltIcon","EmailIcon","PhoneIcon","LinkIcon","LinkBrokenIcon","BellIcon","RSSIcon","ShareAltIcon","ShareIcon","JumpToIcon","CircleHollowIcon","CircleIcon","BookmarkHollowIcon","BookmarkIcon","DiamondIcon","HeartHollowIcon","HeartIcon","StarHollowIcon","StarIcon","CertificateIcon","VerifiedIcon","ThumbsUpIcon","ShieldIcon","BasketIcon","BeakerIcon","HourglassIcon","FlagIcon","CloudHollowIcon","CloudIcon","StickerIcon"]},{name:"Wayfinding",icons:["ChevronUpIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronSmallUpIcon","ChevronSmallDownIcon","ChevronSmallLeftIcon","ChevronSmallRightIcon","ArrowUpIcon","ArrowDownIcon","ArrowLeftIcon","ArrowRightIcon","ArrowTopLeftIcon","ArrowTopRightIcon","ArrowBottomLeftIcon","ArrowBottomRightIcon","ArrowSolidUpIcon","ArrowSolidDownIcon","ArrowSolidLeftIcon","ArrowSolidRightIcon","ExpandAltIcon","CollapseIcon","ExpandIcon","UnfoldIcon","TransferIcon","RedirectIcon","UndoIcon","ReplyIcon","SyncIcon","UploadIcon","DownloadIcon","BackIcon","ProceedIcon","RefreshIcon","GlobeIcon","CompassIcon","LocationIcon","PinIcon","TimeIcon","DashboardIcon","TimerIcon","HomeIcon","AdminIcon","DirectionIcon"]},{name:"People",icons:["UserIcon","UserAltIcon","UserAddIcon","UsersIcon","ProfileIcon","FaceHappyIcon","FaceNeutralIcon","FaceSadIcon","AccessibilityIcon","AccessibilityAltIcon"]}],Wg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",fill:e}))),qg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1.004a2.5 2.5 0 00-2.5 2.5v7a2.5 2.5 0 002.5 2.5h7a2.5 2.5 0 002.5-2.5v-7a2.5 2.5 0 00-2.5-2.5h-7zm8.5 5.5H7.5v-4.5h3a1.5 1.5 0 011.5 1.5v3zm0 1v3a1.5 1.5 0 01-1.5 1.5h-3v-4.5H12zm-5.5 4.5v-4.5H2v3a1.5 1.5 0 001.5 1.5h3zM2 6.504h4.5v-4.5h-3a1.5 1.5 0 00-1.5 1.5v3z",fill:e}))),Gg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5H6a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H1.5a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5h3.5v3.5H2zM7.5 1.504a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5zM1.5 7.504a.5.5 0 00-.5.5v4.5a.5.5 0 00.5.5H6a.5.5 0 00.5-.5v-4.5a.5.5 0 00-.5-.5H1.5zm.5 1v3.5h3.5v-3.5H2zM7.5 8.004a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5z",fill:e}))),Yg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 2.004v2H1v-2.5a.5.5 0 01.5-.5H4v1H2zM1 9.004v-4h1v4H1zM1 10.004v2.5a.5.5 0 00.5.5H4v-1H2v-2H1zM10 13.004h2.5a.5.5 0 00.5-.5v-2.5h-1v2h-2v1zM12 4.004h1v-2.5a.5.5 0 00-.5-.5H10v1h2v2zM9 12.004v1H5v-1h4zM9 1.004v1H5v-1h4zM13 9.004h-1v-4h1v4zM7 8.004a1 1 0 100-2 1 1 0 000 2z",fill:e}))),Kg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 3.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7.003v-6.5a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v2.5h1v-2h2v6.5a.5.5 0 00.5.5H10v2H8v1h2.5a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-3.5zm-10-6v5.794L5.646 5.15a.5.5 0 01.708 0L7.5 6.297l2.646-2.647a.5.5 0 01.708 0L13 5.797V1.004H4zm9 6.208l-2.5-2.5-2.293 2.293L9.354 8.15a.5.5 0 11-.708.707L6 6.211l-2 2v1.793h9V7.21z",fill:e}),o.createElement("path",{d:"M0 10.004v-3h1v3H0zM0 13.504v-2.5h1v2h2v1H.5a.5.5 0 01-.5-.5zM7 14.004H4v-1h3v1z",fill:e}))),Xg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 3V1h1v2H4zM4 6v2h1V6H4zM4 11v2h1v-2H4zM9 11v2h1v-2H9zM9 8V6h1v2H9zM9 1v2h1V1H9zM13 5h-2V4h2v1zM11 10h2V9h-2v1zM3 10H1V9h2v1zM1 5h2V4H1v1zM8 5H6V4h2v1zM6 10h2V9H6v1zM4 4h1v1H4V4zM10 4H9v1h1V4zM9 9h1v1H9V9zM5 9H4v1h1V9z",fill:e}))),Zg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),Us=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),Ws=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),qs=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),Gs=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),Ys=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),o.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),Jg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.522 6.6a.566.566 0 00-.176.544.534.534 0 00.382.41l2.781.721-1.493 5.013a.563.563 0 00.216.627.496.496 0 00.63-.06l6.637-6.453a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L2.522 6.6zm7.72.63l-3.067-.804L9.02 2.29 3.814 6.803l2.95.764-1.277 4.285 4.754-4.622zM4.51 13.435l.037.011-.037-.011z",fill:e}))),Ks=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),Qg=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",fill:e}))),em=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004v-2.5a.5.5 0 01.5-.5h10a.5.5 0 01.5.5v10a.5.5 0 01-.5.5H11v2.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H3zm1 0v-2h9v9h-2v-6.5a.5.5 0 00-.5-.5H4zm6 8v2H1v-9h2v6.5a.5.5 0 00.5.5H10zm0-1H4v-6h6v6z",fill:e}))),tm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5h10v-10l-10 10z",fill:e}))),rm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1.004a.5.5 0 100 1H12v10.5a.5.5 0 001 0v-10.5a1 1 0 00-1-1H1.5z",fill:e}),o.createElement("path",{d:"M1 3.504a.5.5 0 01.5-.5H10a1 1 0 011 1v8.5a.5.5 0 01-1 0v-8.5H1.5a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 5.004a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h7a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5h-7zm.5 1v6h6v-6H2z",fill:e}))),nm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.854.146a.5.5 0 00-.708 0L2.983 8.31a2.24 2.24 0 00-1.074.6C.677 10.14.24 11.902.085 12.997 0 13.6 0 14 0 14s.4 0 1.002-.085c1.095-.155 2.857-.592 4.089-1.824a2.24 2.24 0 00.6-1.074l8.163-8.163a.5.5 0 000-.708l-2-2zM5.6 9.692l.942-.942L5.25 7.457l-.942.943A2.242 2.242 0 015.6 9.692zm1.649-1.65L12.793 2.5 11.5 1.207 5.957 6.75 7.25 8.043zM4.384 9.617a1.25 1.25 0 010 1.768c-.767.766-1.832 1.185-2.78 1.403-.17.04-.335.072-.49.098.027-.154.06-.318.099-.49.219-.947.637-2.012 1.403-2.779a1.25 1.25 0 011.768 0z",fill:e}))),am=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1.004a.5.5 0 01.5.5v.5h10v-.5a.5.5 0 011 0v2a.5.5 0 01-1 0v-.5H2v.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 6a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5h-11zM2 7v5h10V7h-1v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H7.5v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H4v2.5a.5.5 0 01-1 0V7H2z",fill:e}))),om=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),lm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7a3 3 0 11-6 0 3 3 0 016 0zM9 7a2 2 0 11-4 0 2 2 0 014 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 1a.5.5 0 00-.5.5v.504H.5a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H6V1.5a.5.5 0 00-.5-.5h-3zM1 3.004v8h12v-8H1z",fill:e}))),Xs=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:e}))),im=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4.5v5a.5.5 0 00.5.5H4l3.17 2.775a.5.5 0 00.83-.377V1.602a.5.5 0 00-.83-.376L4 4H1.5a.5.5 0 00-.5.5zM4 9V5H2v4h2zm.998.545A.504.504 0 005 9.5v-5c0-.015 0-.03-.002-.044L7 2.704v8.592L4.998 9.545z",fill:e}),o.createElement("path",{d:"M10.15 1.752a.5.5 0 00-.3.954 4.502 4.502 0 010 8.588.5.5 0 00.3.954 5.502 5.502 0 000-10.496z",fill:e}),o.createElement("path",{d:"M10.25 3.969a.5.5 0 00-.5.865 2.499 2.499 0 010 4.332.5.5 0 10.5.866 3.499 3.499 0 000-6.063z",fill:e}))),sm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",fill:e}))),cm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.24 12.035L3.697 7.427A.494.494 0 013.5 7.2v4.05a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0V6.8a.494.494 0 01.198-.227l7.541-4.608A.5.5 0 0112 2.39v9.217a.5.5 0 01-.76.427z",fill:e}))),dm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.76 12.035l7.542-4.608A.495.495 0 0010.5 7.2v4.05a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0V6.8a.495.495 0 00-.198-.227L2.76 1.965A.5.5 0 002 2.39v9.217a.5.5 0 00.76.427z",fill:e}))),um=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9 2.42v2.315l4.228-2.736a.5.5 0 01.772.42v9.162a.5.5 0 01-.772.42L9 9.263v2.317a.5.5 0 01-.772.42L1.5 7.647v3.603a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0v3.603L8.228 2A.5.5 0 019 2.42z",fill:e}))),pm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2.42v2.315L.772 1.999a.5.5 0 00-.772.42v9.162a.5.5 0 00.772.42L5 9.263v2.317a.5.5 0 00.772.42L12.5 7.647v3.603a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0v3.603L5.772 2A.5.5 0 005 2.42z",fill:e}))),fm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:e}))),hm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5v-10h5v10H2z",fill:e}))),gm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 1.004a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11zm-10.5 1h10v5H2v-5z",fill:e}))),mm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3492)",fill:e},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0V2a.5.5 0 001 0V.5z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10a3 3 0 100-6 3 3 0 000 6zm0-1a2 2 0 100-4 2 2 0 000 4z"}),o.createElement("path",{d:"M7 11.5a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V12a.5.5 0 01.5-.5zM11.5 7a.5.5 0 01.5-.5h1.5a.5.5 0 010 1H12a.5.5 0 01-.5-.5zM.5 6.5a.5.5 0 000 1H2a.5.5 0 000-1H.5zM3.818 10.182a.5.5 0 010 .707l-1.06 1.06a.5.5 0 11-.708-.706l1.06-1.06a.5.5 0 01.708 0zM11.95 2.757a.5.5 0 10-.707-.707l-1.061 1.061a.5.5 0 10.707.707l1.06-1.06zM10.182 10.182a.5.5 0 01.707 0l1.06 1.06a.5.5 0 11-.706.708l-1.061-1.06a.5.5 0 010-.708zM2.757 2.05a.5.5 0 10-.707.707l1.06 1.061a.5.5 0 00.708-.707l-1.06-1.06z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3492"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),vm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3493)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.335.047l-.15-.015a7.499 7.499 0 106.14 10.577c.103-.229-.156-.447-.386-.346a5.393 5.393 0 01-.771.27A5.356 5.356 0 019.153.691C9.37.568 9.352.23 9.106.175a7.545 7.545 0 00-.77-.128zM6.977 1.092a6.427 6.427 0 005.336 10.671A6.427 6.427 0 116.977 1.092z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3493"},o.createElement("path",{fill:"#fff",transform:"scale(1.07124)",d:"M0 0h14.001v14.002H0z"}))))),bm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 2a2 2 0 00-2-2H1.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5H11a2 2 0 002-2V2zM3 13h8a1 1 0 001-1V2a1 1 0 00-1-1H7v6.004a.5.5 0 01-.856.352l-.002-.002L5.5 6.71l-.645.647A.5.5 0 014 7.009V1H3v12zM5 1v4.793l.146-.146a.5.5 0 01.743.039l.111.11V1H5z",fill:e}))),Cn=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),ym=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),wm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3 1.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM2 3.504a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-7zM2 12V6h10v6H2z",fill:e}))),xm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z",fill:e}))),Em=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.5 8.004a.5.5 0 100 1h5a.5.5 0 000-1h-5zM4.5 10.004a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 1.504a.5.5 0 01.5-.5h8a.498.498 0 01.357.15l.993.993c.093.09.15.217.15.357v1.5h1.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5H12v2.5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5H2v-2.5zm11 7.5h-1v-2.5a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v2.5H1v-4h12v4zm-2-6v1H3v-2h7v.5a.5.5 0 00.5.5h.5zm-8 9h8v-5H3v5z",fill:e}))),Sm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.146 6.15a.5.5 0 01.708 0L7 7.297 9.146 5.15a.5.5 0 01.708 0l1 1a.5.5 0 01-.708.707L9.5 6.211 7.354 8.357a.5.5 0 01-.708 0L5.5 7.211 3.854 8.857a.5.5 0 11-.708-.707l2-2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 1.004a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11zm.5 1v10h10v-10H2z",fill:e}))),Cm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0a.5.5 0 01.5.5V1h6V.5a.5.5 0 011 0V1h1.5a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5H3V.5a.5.5 0 01.5-.5zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 4v2.3h3V4H9zM5.5 6.3h3V4h-3v2.3z",fill:e}))),Rm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12 2.5a.5.5 0 00-1 0v10a.5.5 0 001 0v-10zM9 4.5a.5.5 0 00-1 0v8a.5.5 0 001 0v-8zM5.5 7a.5.5 0 01.5.5v5a.5.5 0 01-1 0v-5a.5.5 0 01.5-.5zM3 10.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2z",fill:e}))),Im=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13 2a.5.5 0 010 1H1a.5.5 0 010-1h12zM10 5a.5.5 0 010 1H1a.5.5 0 010-1h9zM11.5 8.5A.5.5 0 0011 8H1a.5.5 0 000 1h10a.5.5 0 00.5-.5zM7.5 11a.5.5 0 010 1H1a.5.5 0 010-1h6.5z",fill:e}))),Am=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM4 5a.5.5 0 000 1h9a.5.5 0 000-1H4zM2.5 8.5A.5.5 0 013 8h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1H13a.5.5 0 000-1H6.5z",fill:e}))),_m=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM3 5a.5.5 0 000 1h8a.5.5 0 000-1H3zM4.5 8.5A.5.5 0 015 8h4a.5.5 0 010 1H5a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:e}))),km=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 6.3h3V4H9v2.3zm-3.5 0h3V4h-3v2.3z",fill:e}))),Om=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 6.5A.5.5 0 014 6h6a.5.5 0 010 1H4a.5.5 0 01-.5-.5zM4 9a.5.5 0 000 1h6a.5.5 0 000-1H4z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v8h10V4H2z",fill:e}))),Tm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13 4a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 9.5A.5.5 0 0013 9H1a.5.5 0 000 1h12a.5.5 0 00.5-.5z",fill:e}))),Mm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13 3.5a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 10a.5.5 0 00-.5-.5H1a.5.5 0 000 1h12a.5.5 0 00.5-.5zM13 6.5a.5.5 0 010 1H1a.5.5 0 010-1h12z",fill:e}))),$m=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),Lm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2v1.5h1v7H3V12h5a3 3 0 001.791-5.407A2.75 2.75 0 008 2.011V2H3zm5 5.5H5.5v3H8a1.5 1.5 0 100-3zm-.25-4H5.5V6h2.25a1.25 1.25 0 100-2.5z",fill:e}))),zm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2z",fill:e}))),Bm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.553 2.268a1.5 1.5 0 00-2.12 0L2.774 7.925a2.5 2.5 0 003.536 3.535l3.535-3.535a.5.5 0 11.707.707l-3.535 3.536-.002.002a3.5 3.5 0 01-4.959-4.941l.011-.011L7.725 1.56l.007-.008a2.5 2.5 0 013.53 3.541l-.002.002-5.656 5.657-.003.003a1.5 1.5 0 01-2.119-2.124l3.536-3.536a.5.5 0 11.707.707L4.189 9.34a.5.5 0 00.707.707l5.657-5.657a1.5 1.5 0 000-2.121z",fill:e}))),Pm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2.5 2H1v1h1v3h1V2.5a.5.5 0 00-.5-.5zM3 8.5v1a.5.5 0 01-1 0V9h-.5a.5.5 0 010-1h1a.5.5 0 01.5.5zM2 10.5a.5.5 0 00-1 0V12h2v-1H2v-.5z",fill:e}))),Hm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.75 2.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM5.5 2a.5.5 0 000 1h7a.5.5 0 000-1h-7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2 12.25a.75.75 0 100-1.5.75.75 0 000 1.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM2 7.75a.75.75 0 100-1.5.75.75 0 000 1.5z",fill:e}))),Fm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",fill:e}))),jm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 4.5h1.5L5 6.375 6.5 4.5H8v5H6.5V7L5 8.875 3.5 7v2.5H2v-5zM9.75 4.5h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 2a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5zM1 3v8h12V3H1z",fill:e}))),Nm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 2.5a.5.5 0 11-1 0 .5.5 0 011 0zM4.5 5a.5.5 0 100-1 .5.5 0 000 1zM5 6.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0a2 2 0 012 2v10a2 2 0 01-2 2H1.5a.5.5 0 01-.5-.5V.5a.5.5 0 01.5-.5H11zm0 1H3v12h8a1 1 0 001-1V2a1 1 0 00-1-1z",fill:e}))),Dm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.031 7.5a4 4 0 007.938 0H13.5a.5.5 0 000-1h-2.53a4 4 0 00-7.94 0H.501a.5.5 0 000 1h2.531zM7 10a3 3 0 100-6 3 3 0 000 6z",fill:e}))),Vm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5a1.5 1.5 0 01-1 1.415v4.053C5.554 7.4 6.367 7 7.5 7c.89 0 1.453-.252 1.812-.557.218-.184.374-.4.482-.62a1.5 1.5 0 111.026.143c-.155.423-.425.87-.86 1.24C9.394 7.685 8.59 8 7.5 8c-1.037 0-1.637.42-1.994.917a2.81 2.81 0 00-.472 1.18A1.5 1.5 0 114 10.086v-6.17A1.5 1.5 0 116 2.5zm-2 9a.5.5 0 111 0 .5.5 0 01-1 0zm1-9a.5.5 0 11-1 0 .5.5 0 011 0zm6 2a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),Um=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.354 1.354L7.707 2H8.5A2.5 2.5 0 0111 4.5v5.585a1.5 1.5 0 11-1 0V4.5A1.5 1.5 0 008.5 3h-.793l.647.646a.5.5 0 11-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708zM11 11.5a.5.5 0 11-1 0 .5.5 0 011 0zM4 3.915a1.5 1.5 0 10-1 0v6.17a1.5 1.5 0 101 0v-6.17zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zm0-8a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),Wm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.108 3.872A1.5 1.5 0 103 3.915v6.17a1.5 1.5 0 101 0V6.41c.263.41.573.77.926 1.083 1.108.98 2.579 1.433 4.156 1.5A1.5 1.5 0 109.09 7.99c-1.405-.065-2.62-.468-3.5-1.248-.723-.64-1.262-1.569-1.481-2.871zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zM4 2.5a.5.5 0 11-1 0 .5.5 0 011 0zm7 6a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),qm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.03 8.103a3.044 3.044 0 01-.202-1.744 2.697 2.697 0 011.4-1.935c-.749-1.18-1.967-1.363-2.35-1.403-.835-.086-2.01.56-2.648.57h-.016c-.639-.01-1.814-.656-2.649-.57-.415.044-1.741.319-2.541 1.593-.281.447-.498 1.018-.586 1.744a6.361 6.361 0 00-.044.85c.005.305.028.604.07.895.09.62.259 1.207.477 1.744.242.595.543 1.13.865 1.585.712 1.008 1.517 1.59 1.971 1.6.934.021 1.746-.61 2.416-.594.006.002.014.003.02.002h.017c.007 0 .014 0 .021-.002.67-.017 1.481.615 2.416.595.453-.011 1.26-.593 1.971-1.6a7.95 7.95 0 00.97-1.856c-.697-.217-1.27-.762-1.578-1.474zm-2.168-5.97c.717-.848.69-2.07.624-2.125-.065-.055-1.25.163-1.985.984-.735.82-.69 2.071-.624 2.125.064.055 1.268-.135 1.985-.984z",fill:e}))),Gm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a3 3 0 013 3v1.24c.129.132.25.27.362.415.113.111.283.247.515.433l.194.155c.325.261.711.582 1.095.966.765.765 1.545 1.806 1.823 3.186a.501.501 0 01-.338.581 3.395 3.395 0 01-1.338.134 2.886 2.886 0 01-1.049-.304 5.535 5.535 0 01-.17.519 2 2 0 11-2.892 2.55A5.507 5.507 0 017 13c-.439 0-.838-.044-1.201-.125a2 2 0 11-2.892-2.55 5.553 5.553 0 01-.171-.519c-.349.182-.714.27-1.05.304A3.395 3.395 0 01.35 9.977a.497.497 0 01-.338-.582c.278-1.38 1.058-2.42 1.823-3.186.384-.384.77-.705 1.095-.966l.194-.155c.232-.186.402-.322.515-.433.112-.145.233-.283.362-.414V3a3 3 0 013-3zm1.003 11.895a2 2 0 012.141-1.89c.246-.618.356-1.322.356-2.005 0-.514-.101-1.07-.301-1.599l-.027-.017a6.387 6.387 0 00-.857-.42 6.715 6.715 0 00-1.013-.315l-.852.638a.75.75 0 01-.9 0l-.852-.638a6.716 6.716 0 00-1.693.634 4.342 4.342 0 00-.177.101l-.027.017A4.6 4.6 0 003.501 8c0 .683.109 1.387.355 2.005a2 2 0 012.142 1.89c.295.067.627.105 1.002.105s.707-.038 1.003-.105zM5 12a1 1 0 11-2 0 1 1 0 012 0zm6 0a1 1 0 11-2 0 1 1 0 012 0zM6.1 4.3a1.5 1.5 0 011.8 0l.267.2L7 5.375 5.833 4.5l.267-.2zM8.5 2a.5.5 0 01.5.5V3a.5.5 0 01-1 0v-.5a.5.5 0 01.5-.5zM6 2.5a.5.5 0 00-1 0V3a.5.5 0 001 0v-.5z",fill:e}))),Ym=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3497)",fill:e},o.createElement("path",{d:"M12.261 2.067c0 1.142-.89 2.068-1.988 2.068-1.099 0-1.99-.926-1.99-2.068C8.283.926 9.174 0 10.273 0c1.098 0 1.989.926 1.989 2.067zM3.978 6.6c0 1.142-.89 2.068-1.989 2.068C.891 8.668 0 7.742 0 6.601c0-1.142.89-2.068 1.989-2.068 1.099 0 1.989.926 1.989 2.068zM6.475 11.921A4.761 4.761 0 014.539 11a4.993 4.993 0 01-1.367-1.696 2.765 2.765 0 01-1.701.217 6.725 6.725 0 001.844 2.635 6.379 6.379 0 004.23 1.577 3.033 3.033 0 01-.582-1.728 4.767 4.767 0 01-.488-.083zM11.813 11.933c0 1.141-.89 2.067-1.989 2.067-1.098 0-1.989-.926-1.989-2.067 0-1.142.891-2.068 1.99-2.068 1.098 0 1.989.926 1.989 2.068zM12.592 11.173a6.926 6.926 0 001.402-3.913 6.964 6.964 0 00-1.076-4.023A2.952 2.952 0 0111.8 4.6c.398.78.592 1.656.564 2.539a5.213 5.213 0 01-.724 2.495c.466.396.8.935.952 1.54zM1.987 3.631c-.05 0-.101.002-.151.004C3.073 1.365 5.504.024 8.005.23a3.07 3.07 0 00-.603 1.676 4.707 4.707 0 00-2.206.596 4.919 4.919 0 00-1.7 1.576 2.79 2.79 0 00-1.509-.447z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3497"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Km=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.5 1H1v5.5h5.5V1zM13 1H7.5v5.5H13V1zM7.5 7.5H13V13H7.5V7.5zM6.5 7.5H1V13h5.5V7.5z",fill:e}))),Xm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3496)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.023 3.431a.115.115 0 01-.099.174H7.296A3.408 3.408 0 003.7 6.148a.115.115 0 01-.21.028l-1.97-3.413a.115.115 0 01.01-.129A6.97 6.97 0 017 0a6.995 6.995 0 016.023 3.431zM7 9.615A2.619 2.619 0 014.384 7 2.62 2.62 0 017 4.383 2.619 2.619 0 019.616 7 2.619 2.619 0 017 9.615zm1.034.71a.115.115 0 00-.121-.041 3.4 3.4 0 01-.913.124 3.426 3.426 0 01-3.091-1.973L1.098 3.567a.115.115 0 00-.2.001 7.004 7.004 0 005.058 10.354l.017.001c.04 0 .078-.021.099-.057l1.971-3.414a.115.115 0 00-.009-.128zm1.43-5.954h3.947c.047 0 .09.028.107.072.32.815.481 1.675.481 2.557a6.957 6.957 0 01-2.024 4.923A6.957 6.957 0 017.08 14h-.001a.115.115 0 01-.1-.172L9.794 8.95A3.384 3.384 0 0010.408 7c0-.921-.364-1.785-1.024-2.433a.115.115 0 01.08-.196z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3496"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Zm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e}))),Jm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3503)"},o.createElement("path",{d:"M0 5.176l1.31-1.73 4.902-1.994V.014l4.299 3.144-8.78 1.706v4.8L0 9.162V5.176zm14-2.595v8.548l-3.355 2.857-5.425-1.783v1.783L1.73 9.661l8.784 1.047v-7.55L14 2.581z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3503"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Qm=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.522a.411.411 0 00-.412.476l1.746 10.597a.56.56 0 00.547.466h8.373a.411.411 0 00.412-.345l1.017-6.248h-3.87L8.35 9.18H5.677l-.724-3.781h7.904L13.412 2A.411.411 0 0013 1.524L1 1.522z",fill:e}))),e2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1014 0A7 7 0 000 7zm5.215-3.869a1.967 1.967 0 013.747.834v1.283l-3.346-1.93a2.486 2.486 0 00-.401-.187zm3.484 2.58l-3.346-1.93a1.968 1.968 0 00-2.685.72 1.954 1.954 0 00.09 2.106 2.45 2.45 0 01.362-.254l1.514-.873a.27.27 0 01.268 0l2.1 1.21 1.697-.978zm-.323 4.972L6.86 9.81a.268.268 0 01-.134-.231V7.155l-1.698-.98v3.86a1.968 1.968 0 003.747.835 2.488 2.488 0 01-.4-.187zm.268-.464a1.967 1.967 0 002.685-.719 1.952 1.952 0 00-.09-2.106c-.112.094-.233.18-.361.253L7.53 9.577l1.113.642zm-4.106.257a1.974 1.974 0 01-1.87-.975A1.95 1.95 0 012.47 8.01c.136-.507.461-.93.916-1.193L4.5 6.175v3.86c0 .148.013.295.039.44zM11.329 4.5a1.973 1.973 0 00-1.87-.976c.025.145.039.292.039.44v1.747a.268.268 0 01-.135.232l-2.1 1.211v1.96l3.346-1.931a1.966 1.966 0 00.72-2.683z",fill:e}))),t2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.847 2.181L8.867.201a.685.685 0 00-.97 0l-4.81 4.81a.685.685 0 000 .969l2.466 2.465-2.405 2.404a.685.685 0 000 .97l1.98 1.98a.685.685 0 00.97 0l4.81-4.81a.685.685 0 000-.969L8.441 5.555l2.405-2.404a.685.685 0 000-.97z",fill:e}))),r2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.852 2.885c-.893-.41-1.85-.712-2.85-.884a.043.043 0 00-.046.021c-.123.22-.26.505-.355.73a10.658 10.658 0 00-3.2 0 7.377 7.377 0 00-.36-.73.045.045 0 00-.046-.021c-1 .172-1.957.474-2.85.884a.04.04 0 00-.019.016C.311 5.612-.186 8.257.058 10.869a.048.048 0 00.018.033 11.608 11.608 0 003.496 1.767.045.045 0 00.049-.016c.27-.368.51-.755.715-1.163a.044.044 0 00-.024-.062 7.661 7.661 0 01-1.092-.52.045.045 0 01-.005-.075c.074-.055.147-.112.217-.17a.043.043 0 01.046-.006c2.29 1.046 4.771 1.046 7.035 0a.043.043 0 01.046.006c.07.057.144.115.218.17a.045.045 0 01-.004.075 7.186 7.186 0 01-1.093.52.045.045 0 00-.024.062c.21.407.45.795.715 1.162.011.016.03.023.05.017a11.57 11.57 0 003.5-1.767.045.045 0 00.019-.032c.292-3.02-.49-5.643-2.07-7.969a.036.036 0 00-.018-.016zM4.678 9.279c-.69 0-1.258-.634-1.258-1.411 0-.778.558-1.411 1.258-1.411.707 0 1.27.639 1.259 1.41 0 .778-.558 1.412-1.259 1.412zm4.652 0c-.69 0-1.258-.634-1.258-1.411 0-.778.557-1.411 1.258-1.411.707 0 1.27.639 1.258 1.41 0 .778-.551 1.412-1.258 1.412z",fill:e}))),n2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.399 14H5.06V7H3.5V4.588l1.56-.001-.002-1.421C5.058 1.197 5.533 0 7.6 0h1.721v2.413H8.246c-.805 0-.844.337-.844.966l-.003 1.208h1.934l-.228 2.412L7.401 7l-.002 7z",fill:e}))),a2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2 0H4.803A2.603 2.603 0 003.41 4.802a2.603 2.603 0 000 4.396 2.602 2.602 0 103.998 2.199v-2.51a2.603 2.603 0 103.187-4.085A2.604 2.604 0 009.2 0zM7.407 7a1.793 1.793 0 103.586 0 1.793 1.793 0 00-3.586 0zm-.81 2.603H4.803a1.793 1.793 0 101.794 1.794V9.603zM4.803 4.397h1.794V.81H4.803a1.793 1.793 0 000 3.587zm0 .81a1.793 1.793 0 000 3.586h1.794V5.207H4.803zm4.397-.81H7.407V.81H9.2a1.794 1.794 0 010 3.587z",fill:e}))),o2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.37 8.768l-2.042 3.537h6.755l2.042-3.537H6.37zm6.177-1.003l-3.505-6.07H4.96l3.504 6.07h4.084zM4.378 2.7L.875 8.77l2.042 3.536L6.42 6.236 4.378 2.7z",fill:e}))),l2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0C3.132 0 0 3.132 0 7a6.996 6.996 0 004.786 6.641c.35.062.482-.149.482-.332 0-.166-.01-.718-.01-1.304-1.758.324-2.213-.429-2.353-.823-.079-.2-.42-.822-.717-.988-.246-.132-.596-.455-.01-.464.552-.009.946.508 1.077.717.63 1.06 1.636.762 2.039.578.061-.455.245-.761.446-.936-1.558-.175-3.185-.779-3.185-3.457 0-.76.271-1.39.717-1.88-.07-.176-.314-.893.07-1.856 0 0 .587-.183 1.925.718a6.495 6.495 0 011.75-.236c.595 0 1.19.078 1.75.236 1.34-.91 1.926-.718 1.926-.718.385.963.14 1.68.07 1.855.446.49.717 1.111.717 1.881 0 2.687-1.636 3.282-3.194 3.457.254.218.473.638.473 1.295 0 .936-.009 1.688-.009 1.925 0 .184.131.402.481.332A7.012 7.012 0 0014 7c0-3.868-3.133-7-7-7z",fill:e}))),i2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.068 5.583l1.487-4.557a.256.256 0 01.487 0L4.53 5.583H1.068L7 13.15 4.53 5.583h4.941l-2.47 7.565 5.931-7.565H9.471l1.488-4.557a.256.256 0 01.486 0l1.488 4.557.75 2.3a.508.508 0 01-.185.568L7 13.148v.001H7L.503 8.452a.508.508 0 01-.186-.57l.75-2.299z",fill:e}))),s2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.925 1.094H7.262c-1.643 0-3.189 1.244-3.189 2.685 0 1.473 1.12 2.661 2.791 2.661.116 0 .23-.002.34-.01a1.49 1.49 0 00-.186.684c0 .41.22.741.498 1.012-.21 0-.413.006-.635.006-2.034 0-3.6 1.296-3.6 2.64 0 1.323 1.717 2.15 3.75 2.15 2.32 0 3.6-1.315 3.6-2.639 0-1.06-.313-1.696-1.28-2.38-.331-.235-.965-.805-.965-1.14 0-.392.112-.586.703-1.047.606-.474 1.035-1.14 1.035-1.914 0-.92-.41-1.819-1.18-2.115h1.161l.82-.593zm-1.335 8.96c.03.124.045.25.045.378 0 1.07-.688 1.905-2.665 1.905-1.406 0-2.421-.89-2.421-1.96 0-1.047 1.259-1.92 2.665-1.904.328.004.634.057.911.146.764.531 1.311.832 1.465 1.436zM7.34 6.068c-.944-.028-1.841-1.055-2.005-2.295-.162-1.24.47-2.188 1.415-2.16.943.029 1.84 1.023 2.003 2.262.163 1.24-.47 2.222-1.414 2.193z",fill:e}))),c2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.873 11.608a1.167 1.167 0 00-1.707-.027L3.46 10.018l.01-.04h7.072l.022.076-2.69 1.554zM6.166 2.42l.031.03-3.535 6.124a1.265 1.265 0 00-.043-.012V5.438a1.166 1.166 0 00.84-1.456L6.167 2.42zm4.387 1.562a1.165 1.165 0 00.84 1.456v3.124l-.043.012-3.536-6.123a1.2 1.2 0 00.033-.032l2.706 1.563zM3.473 9.42a1.168 1.168 0 00-.327-.568L6.68 2.73a1.17 1.17 0 00.652 0l3.536 6.123a1.169 1.169 0 00-.327.567H3.473zm8.79-.736a1.169 1.169 0 00-.311-.124V5.44a1.17 1.17 0 10-1.122-1.942L8.13 1.938a1.168 1.168 0 00-1.122-1.5 1.17 1.17 0 00-1.121 1.5l-2.702 1.56a1.168 1.168 0 00-1.86.22 1.17 1.17 0 00.739 1.722v3.12a1.168 1.168 0 00-.74 1.721 1.17 1.17 0 001.861.221l2.701 1.56a1.169 1.169 0 102.233-.035l2.687-1.552a1.168 1.168 0 101.457-1.791z",fill:e}))),d2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M0 0v14h14V0H0zm11.63 3.317l-.75.72a.22.22 0 00-.083.212v-.001 5.289a.22.22 0 00.083.21l.733.72v.159H7.925v-.158l.76-.738c.074-.074.074-.096.074-.21V5.244l-2.112 5.364h-.285l-2.46-5.364V8.84a.494.494 0 00.136.413h.001l.988 1.198v.158H2.226v-.158l.988-1.198a.477.477 0 00.126-.416v.003-4.157a.363.363 0 00-.118-.307l-.878-1.058v-.158h2.727l2.107 4.622L9.031 3.16h2.6v.158z",fill:e}))),u2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.06 9.689c.016.49.423.88.912.88h.032a.911.911 0 00.88-.945.916.916 0 00-.912-.88h-.033c-.033 0-.08 0-.113.016-.669-1.108-.946-2.314-.848-3.618.065-.978.391-1.825.961-2.526.473-.603 1.386-.896 2.005-.913 1.728-.032 2.461 2.119 2.51 2.983.212.049.57.163.815.244C10.073 2.29 8.444.92 6.88.92c-1.467 0-2.82 1.06-3.357 2.625-.75 2.086-.261 4.09.651 5.671a.74.74 0 00-.114.473zm8.279-2.298c-1.239-1.45-3.064-2.249-5.15-2.249h-.261a.896.896 0 00-.798-.489h-.033A.912.912 0 006.13 6.48h.031a.919.919 0 00.8-.554h.293c1.239 0 2.412.358 3.472 1.059.814.538 1.401 1.238 1.727 2.086.277.684.261 1.353-.033 1.923-.456.864-1.222 1.337-2.232 1.337a4.16 4.16 0 01-1.597-.343 9.58 9.58 0 01-.734.587c.7.326 1.418.505 2.102.505 1.565 0 2.722-.863 3.162-1.727.473-.946.44-2.575-.782-3.961zm-7.433 5.51a4.005 4.005 0 01-.977.113c-1.206 0-2.298-.505-2.836-1.32C.376 10.603.13 8.289 2.494 6.577c.05.261.147.62.212.832-.31.228-.798.685-1.108 1.303-.44.864-.391 1.729.13 2.527.359.537.93.864 1.663.962.896.114 1.793-.05 2.657-.505 1.271-.669 2.119-1.467 2.672-2.56a.944.944 0 01-.26-.603.913.913 0 01.88-.945h.033a.915.915 0 01.098 1.825c-.897 1.842-2.478 3.08-4.565 3.488z",fill:e}))),p2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2.547a5.632 5.632 0 01-1.65.464 2.946 2.946 0 001.263-1.63 5.67 5.67 0 01-1.823.715 2.837 2.837 0 00-2.097-.93c-1.586 0-2.872 1.319-2.872 2.946 0 .23.025.456.074.67C4.508 4.66 2.392 3.488.975 1.706c-.247.435-.389.941-.389 1.481 0 1.022.507 1.923 1.278 2.452a2.806 2.806 0 01-1.3-.368l-.001.037c0 1.427.99 2.617 2.303 2.888a2.82 2.82 0 01-1.297.05c.366 1.17 1.427 2.022 2.683 2.045A5.671 5.671 0 010 11.51a7.985 7.985 0 004.403 1.323c5.283 0 8.172-4.488 8.172-8.38 0-.128-.003-.255-.009-.38A5.926 5.926 0 0014 2.546z",fill:e}))),f2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.99 8.172c.005-.281.007-.672.007-1.172 0-.5-.002-.89-.007-1.172a14.952 14.952 0 00-.066-1.066 9.638 9.638 0 00-.169-1.153c-.083-.38-.264-.7-.542-.96a1.667 1.667 0 00-.972-.454C11.084 2.065 9.337 2 6.999 2s-4.085.065-5.241.195a1.65 1.65 0 00-.969.453c-.276.26-.455.58-.539.961a8.648 8.648 0 00-.176 1.153c-.039.43-.061.785-.066 1.066C.002 6.11 0 6.5 0 7c0 .5.002.89.008 1.172.005.281.027.637.066 1.067.04.43.095.813.168 1.152.084.38.265.7.543.96.279.261.603.412.973.453 1.156.13 2.902.196 5.24.196 2.34 0 4.087-.065 5.243-.196a1.65 1.65 0 00.967-.453c.276-.26.456-.58.54-.96.077-.339.136-.722.175-1.152.04-.43.062-.786.067-1.067zM9.762 6.578A.45.45 0 019.997 7a.45.45 0 01-.235.422l-3.998 2.5a.442.442 0 01-.266.078.538.538 0 01-.242-.063.465.465 0 01-.258-.437v-5c0-.197.086-.343.258-.437a.471.471 0 01.508.016l3.998 2.5z",fill:e}))),h2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.243.04a.87.87 0 01.38.087l2.881 1.386a.874.874 0 01.496.79V11.713a.875.875 0 01-.496.775l-2.882 1.386a.872.872 0 01-.994-.17L4.11 8.674l-2.404 1.823a.583.583 0 01-.744-.034l-.771-.7a.583.583 0 010-.862L2.274 7 .19 5.1a.583.583 0 010-.862l.772-.701a.583.583 0 01.744-.033L4.11 5.327 9.628.296a.871.871 0 01.615-.255zm.259 3.784L6.315 7l4.187 3.176V3.824z",fill:e}))),g2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.667 13H2.333A1.333 1.333 0 011 11.667V2.333C1 1.597 1.597 1 2.333 1h9.334C12.403 1 13 1.597 13 2.333v9.334c0 .736-.597 1.333-1.333 1.333zm-2.114-1.667h1.78V7.675c0-1.548-.877-2.296-2.102-2.296-1.226 0-1.742.955-1.742.955v-.778H5.773v5.777h1.716V8.3c0-.812.374-1.296 1.09-1.296.658 0 .974.465.974 1.296v3.033zm-6.886-7.6c0 .589.474 1.066 1.058 1.066.585 0 1.058-.477 1.058-1.066 0-.589-.473-1.066-1.058-1.066-.584 0-1.058.477-1.058 1.066zm1.962 7.6h-1.79V5.556h1.79v5.777z",fill:e}))),m2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.02.446h2.137L8.49 5.816l5.51 7.28H9.67L6.298 8.683l-3.88 4.413H.282l5.004-5.735L0 .446h4.442l3.064 4.048L11.02.446zm-.759 11.357h1.18L3.796 1.655H2.502l7.759 10.148z",fill:e}))),v2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-8h12v8H1zm1-9.5a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),b2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5.004a1.5 1.5 0 00-1.5 1.5v11a1.5 1.5 0 001.5 1.5h7a1.5 1.5 0 001.5-1.5v-11a1.5 1.5 0 00-1.5-1.5h-7zm0 1h7a.5.5 0 01.5.5v9.5H3v-9.5a.5.5 0 01.5-.5zm2.5 11a.5.5 0 000 1h2a.5.5 0 000-1H6z",fill:e}))),y2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1.504a1.5 1.5 0 011.5-1.5h5a1.5 1.5 0 011.5 1.5v11a1.5 1.5 0 01-1.5 1.5h-5a1.5 1.5 0 01-1.5-1.5v-11zm1 10.5v-10h6v10H4z",fill:e}))),w2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 .504a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zm5.5 2.5h-5a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm-5-1a1.5 1.5 0 00-1.5 1.5v7a1.5 1.5 0 001.5 1.5h5a1.5 1.5 0 001.5-1.5v-7a1.5 1.5 0 00-1.5-1.5h-5zm2.5 2a.5.5 0 01.5.5v2h1a.5.5 0 110 1H7a.5.5 0 01-.5-.5v-2.5a.5.5 0 01.5-.5zm-2.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:e}))),x2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5zM3 6.004a.5.5 0 100 1h1a.5.5 0 000-1H3zM2.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h3v10H2zm4-10h6v10H6v-10z",fill:e}))),E2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM10 6.004a.5.5 0 100 1h1a.5.5 0 000-1h-1zM9.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h6v10H2zm7-10h3v10H9v-10z",fill:e}))),S2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.5 4.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5zM11 6.004a.5.5 0 010 1h-1a.5.5 0 010-1h1zM11.5 8.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm7.5-1h3v-10H9v10zm-1 0H2v-10h6v4.5H5.207l.65-.65a.5.5 0 10-.707-.708L3.646 6.65a.5.5 0 000 .707l1.497 1.497a.5.5 0 10.707-.708l-.643-.642H8v4.5z",fill:e}))),C2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5zM2 6.004a.5.5 0 100 1h1a.5.5 0 000-1H2zM1.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-10h3v10H1zm4 0v-4.5h2.793l-.643.642a.5.5 0 10.707.708l1.497-1.497a.5.5 0 000-.707L7.85 5.146a.5.5 0 10-.707.708l.65.65H5v-4.5h6v10H5z",fill:e}))),R2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM6.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM9 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 6.5v-6h10v6H2zm10 1v3H2v-3h10z",fill:e}))),I2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM6 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM9.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12.504v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5zm1-.5v-3h10v3H2zm4.5-4H2v-6h10v6H7.5V5.21l.646.646a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0l-1.5 1.5a.5.5 0 10.708.707l.646-.646v2.793z",fill:e}))),A2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5.504a.5.5 0 01.5-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5v-3zm1 2.5v-2h2v2H6z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.004a.5.5 0 01.5.5v1.5h2v-1.5a.5.5 0 011 0v1.5h2.5a.5.5 0 01.5.5v2.5h1.5a.5.5 0 010 1H12v2h1.5a.5.5 0 010 1H12v2.5a.5.5 0 01-.5.5H9v1.5a.5.5 0 01-1 0v-1.5H6v1.5a.5.5 0 01-1 0v-1.5H2.5a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 010-1H2v-2H.5a.5.5 0 010-1H2v-2.5a.5.5 0 01.5-.5H5v-1.5a.5.5 0 01.5-.5zm5.5 3H3v8h8v-8z",fill:e}))),_2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3c0-1.105-2.239-2-5-2s-5 .895-5 2v8c0 .426.26.752.544.977.29.228.68.413 1.116.558.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.436-.145.825-.33 1.116-.558.285-.225.544-.551.544-.977V3zm-1.03 0a.787.787 0 00-.05-.052c-.13-.123-.373-.28-.756-.434C9.404 2.21 8.286 2 7 2c-1.286 0-2.404.21-3.164.514-.383.153-.625.31-.756.434A.756.756 0 003.03 3a.756.756 0 00.05.052c.13.123.373.28.756.434C4.596 3.79 5.714 4 7 4c1.286 0 2.404-.21 3.164-.514.383-.153.625-.31.756-.434A.787.787 0 0010.97 3zM11 5.75V4.2c-.912.486-2.364.8-4 .8-1.636 0-3.088-.314-4-.8v1.55l.002.008a.147.147 0 00.016.033.618.618 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.62.62 0 00.146-.15.149.149 0 00.015-.033A.03.03 0 0011 5.75zM3 7.013c.2.103.423.193.66.272.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.237-.079.46-.17.66-.272V8.5l-.002.008a.149.149 0 01-.015.033.62.62 0 01-.146.15c-.165.13-.435.27-.813.395-.751.25-1.82.414-3.024.414s-2.273-.163-3.024-.414c-.378-.126-.648-.265-.813-.395a.618.618 0 01-.145-.15.147.147 0 01-.016-.033A.027.027 0 013 8.5V7.013zm0 2.75V11l.002.008a.147.147 0 00.016.033.617.617 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.619.619 0 00.146-.15.148.148 0 00.015-.033L11 11V9.763c-.2.103-.423.193-.66.272-.878.293-2.059.465-3.34.465-1.281 0-2.462-.172-3.34-.465A4.767 4.767 0 013 9.763z",fill:e}))),k2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5 3a.5.5 0 00-1 0v3a.5.5 0 001 0V3zM7 2.5a.5.5 0 01.5.5v3a.5.5 0 01-1 0V3a.5.5 0 01.5-.5zM10 4.504a.5.5 0 10-1 0V6a.5.5 0 001 0V4.504z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.54l-.001-.002a.499.499 0 00-.145-.388l-3-3a.499.499 0 00-.388-.145L8.464.004H2.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h9a.5.5 0 00.5-.5V3.54zM3 1.004h5.293L11 3.71v5.293H3v-8zm0 9v3h8v-3H3z",fill:e}))),O2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.164 3.446a1.5 1.5 0 10-2.328 0L1.81 10.032A1.503 1.503 0 000 11.5a1.5 1.5 0 002.915.5h8.17a1.5 1.5 0 101.104-1.968L8.164 3.446zm-1.475.522a1.506 1.506 0 00.622 0l4.025 6.586a1.495 1.495 0 00-.25.446H2.914a1.497 1.497 0 00-.25-.446l4.024-6.586z",fill:e}))),T2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.21.046l6.485 2.994A.5.5 0 0114 3.51v6.977a.495.495 0 01-.23.432.481.481 0 01-.071.038L7.23 13.944a.499.499 0 01-.46 0L.3 10.958a.498.498 0 01-.3-.47V3.511a.497.497 0 01.308-.473L6.78.051a.499.499 0 01.43-.005zM1 4.282v5.898l5.5 2.538V6.82L1 4.282zm6.5 8.436L13 10.18V4.282L7.5 6.82v5.898zM12.307 3.5L7 5.95 1.693 3.5 7 1.05l5.307 2.45z",fill:e}))),M2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6a.5.5 0 001 0v-6z",fill:e}),o.createElement("path",{d:"M4.273 2.808a.5.5 0 00-.546-.837 6 6 0 106.546 0 .5.5 0 00-.546.837 5 5 0 11-5.454 0z",fill:e}))),$2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),L2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",fill:e}))),z2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.585 8.414a2 2 0 113.277-.683.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 00-.365-.93 2 2 0 01-2.146-.449z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5.289a1 1 0 011 0l5.062 2.922a1 1 0 01.5.866v5.846a1 1 0 01-.5.866L7.5 13.71a1 1 0 01-1 0L1.437 10.79a1 1 0 01-.5-.866V4.077a1 1 0 01.5-.866L6.5.29zm.5.866l5.062 2.922v5.846L7 12.845 1.937 9.923V4.077L7 1.155z",fill:e}))),B2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 1c.441 0 .564.521.252.833l-.806.807a.51.51 0 000 .72l.694.694a.51.51 0 00.72 0l.807-.806c.312-.312.833-.19.833.252a2.5 2.5 0 01-3.414 2.328l-6.879 6.88a1 1 0 01-1.414-1.415l6.88-6.88A2.5 2.5 0 0110.5 1zM2 12.5a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),P2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fill:e}))),H2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.634l-.485.271a.107.107 0 01-.158-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.131a.214.214 0 00-.12.37l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12.797l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.04l1.293 1.293zM.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2z",fill:e}))),F2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",fill:e}))),j2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1V6.393a.5.5 0 00-1 0v5.61H2v-10h7.5a.5.5 0 000-1H2z",fill:e}),o.createElement("path",{d:"M6.354 9.857l7.5-7.5a.5.5 0 00-.708-.707L6 8.797 3.854 6.65a.5.5 0 10-.708.707l2.5 2.5a.5.5 0 00.708 0z",fill:e}))),N2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8.854 2.646a.5.5 0 010 .708L5.207 7l3.647 3.646a.5.5 0 01-.708.708L4.5 7.707.854 11.354a.5.5 0 01-.708-.708L3.793 7 .146 3.354a.5.5 0 11.708-.708L4.5 6.293l3.646-3.647a.5.5 0 01.708 0zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),D2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),V2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.5 1a.5.5 0 01.5.5V2h1.5a.5.5 0 010 1H11v.5a.5.5 0 01-1 0V3H1.5a.5.5 0 010-1H10v-.5a.5.5 0 01.5-.5zM1.5 11a.5.5 0 000 1H10v.5a.5.5 0 001 0V12h1.5a.5.5 0 000-1H11v-.5a.5.5 0 00-1 0v.5H1.5zM1 7a.5.5 0 01.5-.5H3V6a.5.5 0 011 0v.5h8.5a.5.5 0 010 1H4V8a.5.5 0 01-1 0v-.5H1.5A.5.5 0 011 7z",fill:e}))),U2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6h-6a.5.5 0 000 1h6v6a.5.5 0 001 0v-6h6a.5.5 0 000-1h-6v-6z",fill:e}))),W2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.03.97A.75.75 0 00.97 2.03L5.94 7 .97 11.97a.75.75 0 101.06 1.06L7 8.06l4.97 4.97a.75.75 0 101.06-1.06L8.06 7l4.97-4.97A.75.75 0 0011.97.97L7 5.94 2.03.97z",fill:e}))),q2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),G2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.5 4.5A.5.5 0 016 5v5a.5.5 0 01-1 0V5a.5.5 0 01.5-.5zM9 5a.5.5 0 00-1 0v5a.5.5 0 001 0V5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5.5A.5.5 0 015 0h4a.5.5 0 01.5.5V2h3a.5.5 0 010 1H12v8a2 2 0 01-2 2H4a2 2 0 01-2-2V3h-.5a.5.5 0 010-1h3V.5zM3 3v8a1 1 0 001 1h6a1 1 0 001-1V3H3zm2.5-2h3v1h-3V1z",fill:e}))),Y2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3502)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5 5H3.657A4 4 0 00.828 6.17l-.474.475a.5.5 0 000 .707l2.793 2.793-3 3a.5.5 0 00.707.708l3-3 2.792 2.792a.5.5 0 00.708 0l.474-.475A4 4 0 009 10.343V9l2-2a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM11 5.585l-3 3v1.757a3 3 0 01-.879 2.121L7 12.586 1.414 7l.122-.122A3 3 0 013.656 6h1.758l3-3-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3502"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),K2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3501)",fill:e},o.createElement("path",{d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5.707 4.293 6.414 5l2-2-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586l-2 2 .707.707L11 7a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM.828 6.171a4 4 0 012.758-1.17l1 .999h-.93a3 3 0 00-2.12.878L1.414 7 7 12.586l.121-.122A3 3 0 008 10.343v-.929l1 1a4 4 0 01-1.172 2.757l-.474.475a.5.5 0 01-.708 0l-2.792-2.792-3 3a.5.5 0 01-.708-.708l3-3L.355 7.353a.5.5 0 010-.707l.474-.475zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3501"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Zs=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Js=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),X2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Z2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0a6 6 0 01-9.874 4.582l8.456-8.456A5.976 5.976 0 0113 7zM2.418 10.874l8.456-8.456a6 6 0 00-8.456 8.456z",fill:e}))),J2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),Q2=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}))),e4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),t4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h7a2 2 0 012 2v6a2 2 0 01-2 2H5a1.994 1.994 0 01-1.414-.586l-3-3a2 2 0 010-2.828l3-3A1.994 1.994 0 015 2zm1.146 3.146a.5.5 0 01.708 0L8 6.293l1.146-1.147a.5.5 0 11.708.708L8.707 7l1.147 1.146a.5.5 0 01-.708.708L8 7.707 6.854 8.854a.5.5 0 11-.708-.708L7.293 7 6.146 5.854a.5.5 0 010-.708z",fill:e}))),r4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 5.004a.5.5 0 100 1h7a.5.5 0 000-1h-7zM3 8.504a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 12.004H5.707l-1.853 1.854a.5.5 0 01-.351.146h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5zm-10.5-1v-8h10v8H2z",fill:e}))),n4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5 5.004a.5.5 0 10-1 0v1.5H5a.5.5 0 100 1h1.5v1.5a.5.5 0 001 0v-1.5H9a.5.5 0 000-1H7.5v-1.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:e}))),a4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.854 6.65a.5.5 0 010 .707l-2 2a.5.5 0 11-.708-.707l1.15-1.15-3.796.004a.5.5 0 010-1L8.29 6.5 7.145 5.357a.5.5 0 11.708-.707l2 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:e}))),o4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.5 7.004a.5.5 0 000-1h-5a.5.5 0 100 1h5zM9 8.504a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 11.504v-1.5h1.5a.5.5 0 00.5-.5v-8a.5.5 0 00-.5-.5h-11a.5.5 0 00-.5.5v1.5H.5a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H2v1.5a.499.499 0 00.497.5h.006a.498.498 0 00.35-.146l1.854-1.854H11.5a.5.5 0 00.5-.5zm-9-8.5v-1h10v7h-1v-5.5a.5.5 0 00-.5-.5H3zm-2 8v-7h10v7H1z",fill:e}))),l4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 2a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H6.986a.444.444 0 01-.124.103l-3.219 1.84A.43.43 0 013 13.569V12a2 2 0 01-2-2V2zm3.42 4.78a.921.921 0 110-1.843.921.921 0 010 1.842zm1.658-.922a.921.921 0 101.843 0 .921.921 0 00-1.843 0zm2.58 0a.921.921 0 101.842 0 .921.921 0 00-1.843 0z",fill:e}))),i4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",fill:e}))),s4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3614)",fill:e},o.createElement("path",{d:"M6.5 8.87a1 1 0 111 0v1.634a.5.5 0 01-1 0V8.87z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1a3 3 0 00-3 3v1.004h8.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3V4a4 4 0 017.755-1.381.5.5 0 01-.939.345A3.001 3.001 0 007 1zM2 6.004h10v7H2v-7z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3614"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),c4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11 4a1 1 0 11-2 0 1 1 0 012 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 8.532V9.5a.5.5 0 01-.5.5H5.5v1.5a.5.5 0 01-.5.5H3.5v1.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-2a.5.5 0 01.155-.362l5.11-5.11A4.5 4.5 0 117.5 8.532zM6 4.5a3.5 3.5 0 111.5 2.873c-.29-.203-1-.373-1 .481V9H5a.5.5 0 00-.5.5V11H3a.5.5 0 00-.5.5V13H1v-1.293l5.193-5.193a.552.552 0 00.099-.613A3.473 3.473 0 016 4.5z",fill:e}))),d4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.354.15a.5.5 0 00-.708 0l-2 2a.5.5 0 10.708.707L6.5 1.711v6.793a.5.5 0 001 0V1.71l1.146 1.146a.5.5 0 10.708-.707l-2-2z",fill:e}),o.createElement("path",{d:"M2 7.504a.5.5 0 10-1 0v5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-5a.5.5 0 00-1 0v4.5H2v-4.5z",fill:e}))),u4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.5 8.004a.5.5 0 100 1h3a.5.5 0 000-1h-3z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11.504a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v9zm1-8.5v1h12v-1H1zm0 8h12v-5H1v5z",fill:e}))),p4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1 3.004a1 1 0 00-1 1v5a1 1 0 001 1h3.5a.5.5 0 100-1H1v-5h12v5h-1a.5.5 0 000 1h1a1 1 0 001-1v-5a1 1 0 00-1-1H1z",fill:e}),o.createElement("path",{d:"M6.45 7.006a.498.498 0 01.31.07L10.225 9.1a.5.5 0 01-.002.873l-1.074.621.75 1.3a.75.75 0 01-1.3.75l-.75-1.3-1.074.62a.497.497 0 01-.663-.135.498.498 0 01-.095-.3L6 7.515a.497.497 0 01.45-.509z",fill:e}))),f4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4 1.504a.5.5 0 01.5-.5h5a.5.5 0 110 1h-2v10h2a.5.5 0 010 1h-5a.5.5 0 010-1h2v-10h-2a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{d:"M0 4.504a.5.5 0 01.5-.5h4a.5.5 0 110 1H1v4h3.5a.5.5 0 110 1h-4a.5.5 0 01-.5-.5v-5zM9.5 4.004a.5.5 0 100 1H13v4H9.5a.5.5 0 100 1h4a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-4z",fill:e}))),h4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.943 12.457a.27.27 0 00.248-.149L7.77 9.151l2.54 2.54a.257.257 0 00.188.073c.082 0 .158-.03.21-.077l.788-.79a.27.27 0 000-.392L8.891 7.9l3.416-1.708a.29.29 0 00.117-.106.222.222 0 00.033-.134.332.332 0 00-.053-.161.174.174 0 00-.092-.072l-.02-.007-10.377-4.15a.274.274 0 00-.355.354l4.15 10.372a.275.275 0 00.233.169zm-.036 1l-.02-.002c-.462-.03-.912-.31-1.106-.796L.632 2.287A1.274 1.274 0 012.286.633l10.358 4.143c.516.182.782.657.81 1.114a1.25 1.25 0 01-.7 1.197L10.58 8.174l1.624 1.624a1.27 1.27 0 010 1.807l-.8.801-.008.007c-.491.46-1.298.48-1.792-.014l-1.56-1.56-.957 1.916a1.27 1.27 0 01-1.142.702h-.037z",fill:e}))),g4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.87 6.008a.505.505 0 00-.003-.028v-.002c-.026-.27-.225-.48-.467-.498a.5.5 0 00-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47V5.17a.6.6 0 00-.002-.05c-.023-.268-.223-.49-.468-.5a.5.5 0 00-.52.5v1.65a.486.486 0 01-.47.47.48.48 0 01-.47-.47V4.62a.602.602 0 00-.002-.05v-.002c-.023-.266-.224-.48-.468-.498a.5.5 0 00-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 01-.47-.47V1.8c0-.017 0-.034-.002-.05-.022-.268-.214-.49-.468-.5a.5.5 0 00-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47l.001-.1c.001-.053.002-.104 0-.155a.775.775 0 00-.06-.315.65.65 0 00-.16-.22 29.67 29.67 0 01-.21-.189c-.2-.182-.4-.365-.617-.532l-.003-.003A6.366 6.366 0 003.06 7l-.01-.007c-.433-.331-.621-.243-.69-.193-.26.14-.29.5-.13.74l1.73 2.6v.01h-.016l-.035.023.05-.023s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.039-.591.036-1.189.032-1.783l-.002-.507v-.032zm.969 2.376c-.057 1.285-.254 2.667-1.082 3.72-.88 1.118-2.283 1.646-4.227 1.646-1.574 0-2.714-.87-3.406-1.623a6.958 6.958 0 01-1.046-1.504l-.006-.012-1.674-2.516a1.593 1.593 0 01-.25-1.107 1.44 1.44 0 01.69-1.041c.195-.124.485-.232.856-.186.357.044.681.219.976.446.137.106.272.22.4.331V1.75A1.5 1.5 0 015.63.25c.93.036 1.431.856 1.431 1.55v1.335a1.5 1.5 0 01.53-.063h.017c.512.04.915.326 1.153.71a1.5 1.5 0 01.74-.161c.659.025 1.115.458 1.316.964a1.493 1.493 0 01.644-.103h.017c.856.067 1.393.814 1.393 1.558l.002.48c.004.596.007 1.237-.033 1.864z",fill:e}))),m4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 6A2.5 2.5 0 116 3.5V5h2V3.5A2.5 2.5 0 1110.5 6H9v2h1.5A2.5 2.5 0 118 10.5V9H6v1.5A2.5 2.5 0 113.5 8H5V6H3.5zM2 3.5a1.5 1.5 0 113 0V5H3.5A1.5 1.5 0 012 3.5zM6 6v2h2V6H6zm3-1h1.5A1.5 1.5 0 109 3.5V5zM3.5 9H5v1.5A1.5 1.5 0 113.5 9zM9 9v1.5A1.5 1.5 0 1010.5 9H9z",fill:e}))),v4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),b4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),y4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",fill:e}))),w4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",fill:e}))),x4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM6.5 8a.5.5 0 001 0V4a.5.5 0 00-1 0v4zm-.25 2.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0z",fill:e}))),E4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.504a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-9zm1 1.012v7.488h12V3.519L7.313 7.894a.496.496 0 01-.526.062.497.497 0 01-.1-.062L1 3.516zm11.03-.512H1.974L7 6.874l5.03-3.87z",fill:e}))),S4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.76 8.134l-.05.05a.2.2 0 01-.28.03 6.76 6.76 0 01-1.63-1.65.21.21 0 01.04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 00-.51.13A3.23 3.23 0 00.9 3.424c-.13 1.1.26 2.37 1.17 3.78a16.679 16.679 0 004.55 4.6 6.57 6.57 0 003.53 1.32 3.2 3.2 0 002.85-1.66c.14-.24.24-.64-.07-1.18a7.803 7.803 0 00-1.73-1.81c-.64-.5-1.52-1.11-2.13-1.11a.97.97 0 00-.34.06c-.472.164-.74.458-.947.685l-.023.025zm4.32 2.678a6.801 6.801 0 00-1.482-1.54l-.007-.005-.006-.005a8.418 8.418 0 00-.957-.662 2.7 2.7 0 00-.4-.193.683.683 0 00-.157-.043l-.004.002-.009.003c-.224.078-.343.202-.56.44l-.014.016-.046.045a1.2 1.2 0 01-1.602.149A7.76 7.76 0 014.98 7.134l-.013-.019-.013-.02a1.21 1.21 0 01.195-1.522l.06-.06.026-.024c.219-.19.345-.312.422-.533l.003-.01v-.008a.518.518 0 00-.032-.142c-.06-.178-.203-.453-.502-.872l-.005-.008-.005-.007A10.18 10.18 0 004.013 2.59l-.005-.005c-.31-.314-.543-.5-.716-.605-.147-.088-.214-.096-.222-.097h-.016l-.006.003-.01.006a2.23 2.23 0 00-1.145 1.656c-.09.776.175 1.806 1.014 3.108a15.68 15.68 0 004.274 4.32l.022.014.022.016a5.57 5.57 0 002.964 1.117 2.2 2.2 0 001.935-1.141l.006-.012.004-.007a.182.182 0 00-.007-.038.574.574 0 00-.047-.114z",fill:e}))),Qs=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),o.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),C4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.452 7.952l1.305-1.305.708.707-1.306 1.305a2.25 2.25 0 103.182 3.182l1.306-1.305.707.707-1.306 1.305a3.25 3.25 0 01-4.596-4.596zM12.548 6.048l-1.305 1.306-.707-.708 1.305-1.305a2.25 2.25 0 10-3.182-3.182L7.354 3.464l-.708-.707 1.306-1.305a3.25 3.25 0 014.596 4.596zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.707-.707l-11-11z",fill:e}))),R4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.994 1.11a1 1 0 10-1.988 0A4.502 4.502 0 002.5 5.5v3.882l-.943 1.885a.497.497 0 00-.053.295.5.5 0 00.506.438h3.575a1.5 1.5 0 102.83 0h3.575a.5.5 0 00.453-.733L11.5 9.382V5.5a4.502 4.502 0 00-3.506-4.39zM2.81 11h8.382l-.5-1H3.31l-.5 1zM10.5 9V5.5a3.5 3.5 0 10-7 0V9h7zm-4 3.5a.5.5 0 111 0 .5.5 0 01-1 0z",fill:e}))),I4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5.5A.5.5 0 012 0c6.627 0 12 5.373 12 12a.5.5 0 01-1 0C13 5.925 8.075 1 2 1a.5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{d:"M1.5 4.5A.5.5 0 012 4a8 8 0 018 8 .5.5 0 01-1 0 7 7 0 00-7-7 .5.5 0 01-.5-.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11a2 2 0 11-4 0 2 2 0 014 0zm-1 0a1 1 0 11-2 0 1 1 0 012 0z",fill:e}))),A4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),o.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),_4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.646.15a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.707L7.5 1.711v6.793a.5.5 0 01-1 0V1.71L5.354 2.857a.5.5 0 11-.708-.707l2-2z",fill:e}),o.createElement("path",{d:"M2 4.004a1 1 0 00-1 1v7a1 1 0 001 1h10a1 1 0 001-1v-7a1 1 0 00-1-1H9.5a.5.5 0 100 1H12v7H2v-7h2.5a.5.5 0 000-1H2z",fill:e}))),k4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M13.854 6.646a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L12.293 7.5H5.5a.5.5 0 010-1h6.793l-1.147-1.146a.5.5 0 01.708-.708l2 2z",fill:e}),o.createElement("path",{d:"M10 2a1 1 0 00-1-1H2a1 1 0 00-1 1v10a1 1 0 001 1h7a1 1 0 001-1V9.5a.5.5 0 00-1 0V12H2V2h7v2.5a.5.5 0 001 0V2z",fill:e}))),O4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",fill:e}))),T4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M14 7A7 7 0 110 7a7 7 0 0114 0z",fill:e}))),M4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5zM4 12.413l2.664-2.284a.454.454 0 01.377-.128.498.498 0 01.284.12L10 12.412V1H4v11.413z",fill:e}))),$4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5z",fill:e}))),L4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1449_588)"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",fill:e})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1449_588"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),z4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584zM1.2 3.526c.128-.333.304-.598.52-.806.218-.212.497-.389.849-.522m-1.37 1.328A3.324 3.324 0 001 4.708c0 .225.032.452.101.686.082.265.183.513.307.737.135.246.294.484.479.716.188.237.386.454.59.652l.001.002 4.514 4.355 4.519-4.344c.2-.193.398-.41.585-.648l.003-.003c.184-.23.345-.472.486-.726l.004-.007c.131-.23.232-.474.31-.732v-.002c.068-.224.101-.45.101-.686 0-.457-.07-.849-.195-1.185a2.177 2.177 0 00-.515-.802l.007-.012-.008.009a2.383 2.383 0 00-.85-.518l-.003-.001C11.1 2.072 10.692 2 10.203 2c-.21 0-.406.03-.597.09h-.001c-.22.07-.443.167-.663.289l-.007.003c-.22.12-.434.262-.647.426-.226.174-.42.341-.588.505l-.684.672-.7-.656a9.967 9.967 0 00-.615-.527 4.82 4.82 0 00-.635-.422l-.01-.005a3.289 3.289 0 00-.656-.281l-.008-.003A2.014 2.014 0 003.785 2c-.481 0-.881.071-1.217.198",fill:e}))),B4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584z",fill:e}))),P4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.319.783a.75.75 0 011.362 0l1.63 3.535 3.867.458a.75.75 0 01.42 1.296L10.74 8.715l.76 3.819a.75.75 0 01-1.103.8L7 11.434l-3.398 1.902a.75.75 0 01-1.101-.801l.758-3.819L.401 6.072a.75.75 0 01.42-1.296l3.867-.458L6.318.783zm.68.91l-1.461 3.17a.75.75 0 01-.593.431l-3.467.412 2.563 2.37a.75.75 0 01.226.697l-.68 3.424 3.046-1.705a.75.75 0 01.733 0l3.047 1.705-.68-3.424a.75.75 0 01.226-.697l2.563-2.37-3.467-.412a.75.75 0 01-.593-.43L7 1.694z",fill:e}))),H4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.68.783a.75.75 0 00-1.361 0l-1.63 3.535-3.867.458A.75.75 0 00.4 6.072l2.858 2.643-.758 3.819a.75.75 0 001.101.8L7 11.434l3.397 1.902a.75.75 0 001.102-.801l-.759-3.819L13.6 6.072a.75.75 0 00-.421-1.296l-3.866-.458L7.68.783z",fill:e}))),F4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7.854a4.5 4.5 0 10-6 0V13a.5.5 0 00.497.5h.006c.127 0 .254-.05.35-.146L7 11.207l2.146 2.147A.5.5 0 0010 13V7.854zM7 8a3.5 3.5 0 100-7 3.5 3.5 0 000 7zm-.354 2.146a.5.5 0 01.708 0L9 11.793v-3.26C8.398 8.831 7.718 9 7 9a4.481 4.481 0 01-2-.468v3.26l1.646-1.646z",fill:e}))),j4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.565 13.123a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97c.25.473.83.661 1.31.426l.987-.482zm4.289-8.477a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),N4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.493 5.493 0 01-1.3-.16c-.42-.1-.91-.25-1.47-.45a5.056 5.056 0 00-.95-.27H2.88a.84.84 0 01-.62-.26.84.84 0 01-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 01.62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 01.62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7.15.31.23.73.23 1.27a3 3 0 01-.32 1.31h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98a2.05 2.05 0 01-.4 1.51 1.9 1.9 0 01-.57 1.5zm.473-5.33a.965.965 0 00.027-.25.742.742 0 00-.227-.513.683.683 0 00-.523-.227H7.927l.73-1.45a2 2 0 00.213-.867c0-.444-.068-.695-.127-.822a.53.53 0 00-.245-.244 1.296 1.296 0 00-.539-.116.989.989 0 00-.141.28 9.544 9.544 0 00-.174.755c-.069.387-.213.779-.484 1.077l-.009.01-.009.01c-.195.202-.41.46-.67.798l-.003.004c-.235.3-.44.555-.613.753-.151.173-.343.381-.54.516l-.255.176H5v4.133l.018.003c.384.07.76.176 1.122.318.532.189.98.325 1.352.413l.007.002a4.5 4.5 0 001.063.131h.878c.429 0 .683-.115.871-.285a.9.9 0 00.262-.702l-.028-.377.229-.3a1.05 1.05 0 00.205-.774l-.044-.333.165-.292a.969.969 0 00.13-.487.457.457 0 00-.019-.154l-.152-.458.263-.404a1.08 1.08 0 00.152-.325zM3.5 10.8a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),D4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.765 2.076A.5.5 0 0112 2.5v6.009a.497.497 0 01-.17.366L7.337 12.87a.497.497 0 01-.674 0L2.17 8.875l-.009-.007a.498.498 0 01-.16-.358L2 8.5v-6a.5.5 0 01.235-.424l.018-.011c.016-.01.037-.024.065-.04.056-.032.136-.077.24-.128a6.97 6.97 0 01.909-.371C4.265 1.26 5.443 1 7 1s2.735.26 3.533.526c.399.133.702.267.91.37a4.263 4.263 0 01.304.169l.018.01zM3 2.793v5.482l1.068.95 6.588-6.588a6.752 6.752 0 00-.44-.163C9.517 2.24 8.444 2 7 2c-1.443 0-2.515.24-3.217.474-.351.117-.61.233-.778.317L3 2.793zm4 9.038l-2.183-1.94L11 3.706v4.568l-4 3.556z",fill:e}))),V4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.354 2.854a.5.5 0 10-.708-.708l-3 3a.5.5 0 10.708.708l3-3z",fill:e}),o.createElement("path",{d:"M2.09 6H4.5a.5.5 0 000-1H1.795a.75.75 0 00-.74.873l.813 4.874A1.5 1.5 0 003.348 12h7.305a1.5 1.5 0 001.48-1.253l.812-4.874a.75.75 0 00-.74-.873H10a.5.5 0 000 1h1.91l-.764 4.582a.5.5 0 01-.493.418H3.347a.5.5 0 01-.493-.418L2.09 6z",fill:e}),o.createElement("path",{d:"M4.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 7.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2zM6.5 9.5v-2a.5.5 0 011 0v2a.5.5 0 01-1 0z",fill:e}))),U4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2h.75v3.866l-3.034 5.26A1.25 1.25 0 003.299 13H10.7a1.25 1.25 0 001.083-1.875L8.75 5.866V2h.75a.5.5 0 100-1h-5a.5.5 0 000 1zm1.75 4V2h1.5v4.134l.067.116L8.827 8H5.173l1.01-1.75.067-.116V6zM4.597 9l-1.515 2.625A.25.25 0 003.3 12H10.7a.25.25 0 00.217-.375L9.404 9H4.597z",fill:e}))),W4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5 10.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1a.5.5 0 00-.5.5c0 1.063.137 1.892.678 2.974.346.692.858 1.489 1.598 2.526-.89 1.247-1.455 2.152-1.798 2.956-.377.886-.477 1.631-.478 2.537v.007a.5.5 0 00.5.5h7c.017 0 .034 0 .051-.003A.5.5 0 0011 12.5v-.007c0-.906-.1-1.65-.478-2.537-.343-.804-.909-1.709-1.798-2.956.74-1.037 1.252-1.834 1.598-2.526C10.863 3.392 11 2.563 11 1.5a.5.5 0 00-.5-.5h-7zm6.487 11a4.675 4.675 0 00-.385-1.652c-.277-.648-.735-1.407-1.499-2.494-.216.294-.448.606-.696.937a.497.497 0 01-.195.162.5.5 0 01-.619-.162c-.248-.331-.48-.643-.696-.937-.764 1.087-1.222 1.846-1.499 2.494A4.675 4.675 0 004.013 12h5.974zM6.304 6.716c.212.293.443.609.696.948a90.058 90.058 0 00.709-.965c.48-.664.86-1.218 1.163-1.699H5.128a32.672 32.672 0 001.176 1.716zM4.559 4h4.882c.364-.735.505-1.312.546-2H4.013c.04.688.182 1.265.546 2z",fill:e}))),q4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 1h-9a.5.5 0 00-.5.5v11a.5.5 0 001 0V8h8.5a.5.5 0 00.354-.854L9.207 4.5l2.647-2.646A.499.499 0 0011.5 1zM8.146 4.146L10.293 2H3v5h7.293L8.146 4.854a.5.5 0 010-.708z",fill:e}))),G4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7V6a3 3 0 00-5.91-.736l-.17.676-.692.075A2.5 2.5 0 003.5 11h3c.063 0 .125-.002.187-.007l.076-.005.076.006c.053.004.106.006.161.006h4a2 2 0 100-4h-1zM3.12 5.02A3.5 3.5 0 003.5 12h3c.087 0 .174-.003.26-.01.079.007.16.01.24.01h4a3 3 0 100-6 4 4 0 00-7.88-.98z",fill:e}))),Y4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 2a4 4 0 014 4 3 3 0 110 6H7c-.08 0-.161-.003-.24-.01-.086.007-.173.01-.26.01h-3a3.5 3.5 0 01-.38-6.98A4.002 4.002 0 017 2z",fill:e}))),K4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 7a4 4 0 11-8 0 4 4 0 018 0zm-1 0a3 3 0 11-6 0 3 3 0 016 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.268 13.18c.25.472.83.66 1.31.425l.987-.482a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97zm5.096-1.44l-.511.963-.979-.478a1.99 1.99 0 00-1.748 0l-.979.478-.51-.962a1.991 1.991 0 00-1.415-1.028l-1.073-.188.152-1.079a1.991 1.991 0 00-.54-1.663L1.004 7l.757-.783a1.991 1.991 0 00.54-1.663L2.15 3.475l1.073-.188A1.991 1.991 0 004.636 2.26l.511-.962.979.478a1.99 1.99 0 001.748 0l.979-.478.51.962c.288.543.81.922 1.415 1.028l1.073.188-.152 1.079a1.99 1.99 0 00.54 1.663l.757.783-.757.783a1.99 1.99 0 00-.54 1.663l.152 1.079-1.073.188a1.991 1.991 0 00-1.414 1.028z",fill:e}))),X4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.354 3.896l5.5 5.5a.5.5 0 01-.708.708L7 4.957l-5.146 5.147a.5.5 0 01-.708-.708l5.5-5.5a.5.5 0 01.708 0z",fill:e}))),ec=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),Z4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",fill:e}))),qo=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),tc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),Go=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),J4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),Q4=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),ev=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M11.854 4.646l-4.5-4.5a.5.5 0 00-.708 0l-4.5 4.5a.5.5 0 10.708.708L6.5 1.707V13.5a.5.5 0 001 0V1.707l3.646 3.647a.5.5 0 00.708-.708z",fill:e}))),tv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v11.793L2.854 8.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.351.146h.006c.127 0 .254-.05.35-.146l4.5-4.5a.5.5 0 00-.707-.708L7.5 12.293V.5z",fill:e}))),rv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.354 2.146a.5.5 0 010 .708L1.707 6.5H13.5a.5.5 0 010 1H1.707l3.647 3.646a.5.5 0 01-.708.708l-4.5-4.5a.5.5 0 010-.708l4.5-4.5a.5.5 0 01.708 0z",fill:e}))),nv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.646 2.146a.5.5 0 01.708 0l4.5 4.5a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708L12.293 7.5H.5a.5.5 0 010-1h11.793L8.646 2.854a.5.5 0 010-.708z",fill:e}))),av=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.904 8.768V2.404a.5.5 0 01.5-.5h6.364a.5.5 0 110 1H3.61l8.339 8.339a.5.5 0 01-.707.707l-8.34-8.34v5.158a.5.5 0 01-1 0z",fill:e}))),ov=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.096 8.768V2.404a.5.5 0 00-.5-.5H5.232a.5.5 0 100 1h5.157L2.05 11.243a.5.5 0 10.707.707l8.34-8.34v5.158a.5.5 0 101 0z",fill:e}))),lv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.904 5.232v6.364a.5.5 0 00.5.5h6.364a.5.5 0 000-1H3.61l8.339-8.339a.5.5 0 00-.707-.707l-8.34 8.34V5.231a.5.5 0 00-1 0z",fill:e}))),iv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M12.096 5.232v6.364a.5.5 0 01-.5.5H5.232a.5.5 0 010-1h5.157L2.05 2.757a.5.5 0 01.707-.707l8.34 8.34V5.231a.5.5 0 111 0z",fill:e}))),sv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.772 3.59c.126-.12.33-.12.456 0l5.677 5.387c.203.193.06.523-.228.523H1.323c-.287 0-.431-.33-.228-.523L6.772 3.59z",fill:e}))),cv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.228 10.41a.335.335 0 01-.456 0L1.095 5.023c-.203-.193-.06-.523.228-.523h11.354c.287 0 .431.33.228.523L7.228 10.41z",fill:e}))),dv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.712 7.212a.3.3 0 010-.424l5.276-5.276a.3.3 0 01.512.212v10.552a.3.3 0 01-.512.212L3.712 7.212z",fill:e}))),uv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.288 7.212a.3.3 0 000-.424L5.012 1.512a.3.3 0 00-.512.212v10.552a.3.3 0 00.512.212l5.276-5.276z",fill:e}))),pv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",fill:e}))),fv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",fill:e}))),hv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1h2a.5.5 0 010 1h-.793l3.147 3.146a.5.5 0 11-.708.708L2 2.707V3.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 1.5a.5.5 0 01.5-.5h2a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-.793L8.854 5.854a.5.5 0 11-.708-.708L11.293 2H10.5a.5.5 0 01-.5-.5zM12.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 010-1h.793L8.146 8.854a.5.5 0 11.708-.708L12 11.293V10.5a.5.5 0 01.5-.5zM2 11.293V10.5a.5.5 0 00-1 0v2a.5.5 0 00.5.5h2a.5.5 0 000-1h-.793l3.147-3.146a.5.5 0 10-.708-.708L2 11.293z",fill:e}))),gv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M6.646.147l-1.5 1.5a.5.5 0 10.708.707l.646-.647V5a.5.5 0 001 0V1.707l.646.647a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0z",fill:e}),o.createElement("path",{d:"M1.309 4.038a.498.498 0 00-.16.106l-.005.005a.498.498 0 00.002.705L3.293 7 1.146 9.146A.498.498 0 001.5 10h3a.5.5 0 000-1H2.707l1.5-1.5h5.586l2.353 2.354a.5.5 0 00.708-.708L10.707 7l2.146-2.146.11-.545-.107.542A.499.499 0 0013 4.503v-.006a.5.5 0 00-.144-.348l-.005-.005A.498.498 0 0012.5 4h-3a.5.5 0 000 1h1.793l-1.5 1.5H4.207L2.707 5H4.5a.5.5 0 000-1h-3a.498.498 0 00-.191.038z",fill:e}),o.createElement("path",{d:"M7 8.5a.5.5 0 01.5.5v3.293l.646-.647a.5.5 0 01.708.708l-1.5 1.5a.5.5 0 01-.708 0l-1.5-1.5a.5.5 0 01.708-.708l.646.647V9a.5.5 0 01.5-.5zM9 9.5a.5.5 0 01.5-.5h3a.5.5 0 010 1h-3a.5.5 0 01-.5-.5z",fill:e}))),mv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",fill:e}))),vv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.5 1a.5.5 0 01.5.5V10a2 2 0 004 0V4a3 3 0 016 0v7.793l1.146-1.147a.5.5 0 01.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 01.708-.708L11 11.793V4a2 2 0 10-4 0v6.002a3 3 0 01-6 0V1.5a.5.5 0 01.5-.5z",fill:e}))),rc=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),bv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.354 2.146a.5.5 0 010 .708L1.707 5.5H9.5A4.5 4.5 0 0114 10v1.5a.5.5 0 01-1 0V10a3.5 3.5 0 00-3.5-3.5H1.707l2.647 2.646a.5.5 0 11-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0z",fill:e}))),yv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),wv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M8.646 5.854L7.5 4.707V10.5a.5.5 0 01-1 0V4.707L5.354 5.854a.5.5 0 11-.708-.708l2-2a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.708z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),xv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.354 8.146L6.5 9.293V3.5a.5.5 0 011 0v5.793l1.146-1.147a.5.5 0 11.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm1 0a6 6 0 1112 0A6 6 0 011 7z",fill:e}))),Ev=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M5.854 5.354L4.707 6.5H10.5a.5.5 0 010 1H4.707l1.147 1.146a.5.5 0 11-.708.708l-2-2a.5.5 0 010-.708l2-2a.5.5 0 11.708.708z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a7 7 0 110 14A7 7 0 017 0zm0 1a6 6 0 110 12A6 6 0 017 1z",fill:e}))),Sv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.5 6.5h5.793L8.146 5.354a.5.5 0 11.708-.708l2 2a.5.5 0 010 .708l-2 2a.5.5 0 11-.708-.708L9.293 7.5H3.5a.5.5 0 010-1z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 117 0a7 7 0 010 14zm0-1A6 6 0 117 1a6 6 0 010 12z",fill:e}))),Cv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),Rv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z",fill:e}))),Iv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.087 3.397L5.95 5.793a.374.374 0 00-.109.095.377.377 0 00-.036.052l-2.407 4.147a.374.374 0 00-.004.384c.104.179.334.24.513.136l4.142-2.404a.373.373 0 00.148-.143l2.406-4.146a.373.373 0 00-.037-.443.373.373 0 00-.478-.074zM4.75 9.25l2.847-1.652-1.195-1.195L4.75 9.25z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Av=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",fill:e}))),_v=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5a2 2 0 11-4 0 2 2 0 014 0zM8 5a1 1 0 11-2 0 1 1 0 012 0z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5A5 5 0 002 5c0 2.633 2.273 6.154 4.65 8.643.192.2.508.2.7 0C9.726 11.153 12 7.633 12 5zM7 1a4 4 0 014 4c0 1.062-.471 2.42-1.303 3.88-.729 1.282-1.69 2.562-2.697 3.67-1.008-1.108-1.968-2.388-2.697-3.67C3.47 7.42 3 6.063 3 5a4 4 0 014-4z",fill:e}))),kv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7 2a.5.5 0 01.5.5v4H10a.5.5 0 010 1H7a.5.5 0 01-.5-.5V2.5A.5.5 0 017 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Ov=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.79 4.093a.5.5 0 01.117.698L7.91 7.586a1 1 0 11-.814-.581l1.997-2.796a.5.5 0 01.698-.116z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.069 12.968a7 7 0 119.863 0A12.962 12.962 0 007 12c-1.746 0-3.41.344-4.931.968zm9.582-1.177a6 6 0 10-9.301 0A13.98 13.98 0 017 11c1.629 0 3.194.279 4.65.791z",fill:e}))),Tv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",fill:e}))),Mv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.354 1.146l5.5 5.5a.5.5 0 01-.708.708L12 7.207V12.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V9H6v3.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V7.207l-.146.147a.5.5 0 11-.708-.708l1-1 4.5-4.5a.5.5 0 01.708 0zM3 6.207V12h2V8.5a.5.5 0 01.5-.5h3a.5.5 0 01.5.5V12h2V6.207l-4-4-4 4z",fill:e}))),$v=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.213 4.094a.5.5 0 01.056-.034l5.484-2.995a.498.498 0 01.494 0L12.73 4.06a.507.507 0 01.266.389.498.498 0 01-.507.555H1.51a.5.5 0 01-.297-.91zm2.246-.09h7.082L7 2.07 3.459 4.004z",fill:e}),o.createElement("path",{d:"M4 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM11 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM5.75 5.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM8.75 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM1.5 12.504a.5.5 0 01.5-.5h10a.5.5 0 010 1H2a.5.5 0 01-.5-.5z",fill:e}))),Lv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("g",{clipPath:"url(#prefix__clip0_1107_3594)"},o.createElement("path",{d:"M11.451.537l.01 12.922h0L7.61 8.946a1.077 1.077 0 00-.73-.374L.964 8.087 11.45.537h0z",stroke:e,strokeWidth:1.077})),o.createElement("defs",null,o.createElement("clipPath",{id:"prefix__clip0_1107_3594"},o.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),zv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",fill:e}))),Bv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M7.275 13.16a11.388 11.388 0 005.175-1.232v-.25c0-1.566-3.237-2.994-4.104-3.132-.27-.043-.276-.783-.276-.783s.791-.783.964-1.836c.463 0 .75-1.119.286-1.513C9.34 4 9.916 1.16 6.997 1.16c-2.92 0-2.343 2.84-2.324 3.254-.463.394-.177 1.513.287 1.513.172 1.053.963 1.836.963 1.836s-.006.74-.275.783c-.858.136-4.036 1.536-4.103 3.082a11.388 11.388 0 005.73 1.532z",fill:e}))),Pv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M1.183 11.906a10.645 10.645 0 01-1.181-.589c.062-1.439 3.02-2.74 3.818-2.868.25-.04.256-.728.256-.728s-.736-.729-.896-1.709c-.432 0-.698-1.041-.267-1.408A2.853 2.853 0 002.9 4.46c-.072-.672-.31-2.884 2.175-2.884 2.486 0 2.248 2.212 2.176 2.884-.007.062-.012.112-.014.144.432.367.165 1.408-.266 1.408-.16.98-.896 1.709-.896 1.709s.005.688.256.728c.807.129 3.82 1.457 3.82 2.915v.233a10.598 10.598 0 01-4.816 1.146c-1.441 0-2.838-.282-4.152-.837zM11.5 2.16a.5.5 0 01.5.5v1.5h1.5a.5.5 0 010 1H12v1.5a.5.5 0 01-1 0v-1.5H9.5a.5.5 0 110-1H11v-1.5a.5.5 0 01.5-.5z",fill:e}))),Hv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.21 11.623a10.586 10.586 0 01-4.031.787A10.585 10.585 0 010 11.07c.06-1.354 2.933-2.578 3.708-2.697.243-.038.249-.685.249-.685s-.715-.685-.87-1.607c-.42 0-.679-.979-.26-1.323a2.589 2.589 0 00-.013-.136c-.07-.632-.3-2.712 2.113-2.712 2.414 0 2.183 2.08 2.113 2.712-.007.059-.012.105-.013.136.419.344.16 1.323-.259 1.323-.156.922-.87 1.607-.87 1.607s.005.647.248.685c.784.12 3.71 1.37 3.71 2.74v.22c-.212.103-.427.2-.646.29z",fill:e}),o.createElement("path",{d:"M8.81 8.417a9.643 9.643 0 00-.736-.398c.61-.42 1.396-.71 1.7-.757.167-.026.171-.471.171-.471s-.491-.471-.598-1.104c-.288 0-.466-.674-.178-.91-.001-.022-.005-.053-.01-.094-.048-.434-.206-1.864 1.453-1.864 1.66 0 1.5 1.43 1.453 1.864l-.01.094c.289.236.11.91-.178.91-.107.633-.598 1.104-.598 1.104s.004.445.171.47c.539.084 2.55.942 2.55 1.884v.628a10.604 10.604 0 01-3.302.553 2.974 2.974 0 00-.576-.879c-.375-.408-.853-.754-1.312-1.03z",fill:e}))),Fv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M9.106 7.354c-.627.265-1.295.4-1.983.4a5.062 5.062 0 01-2.547-.681c.03-.688 1.443-1.31 1.824-1.37.12-.02.122-.348.122-.348s-.351-.348-.428-.816c-.206 0-.333-.498-.127-.673 0-.016-.003-.04-.007-.07C5.926 3.477 5.812 2.42 7 2.42c1.187 0 1.073 1.057 1.039 1.378l-.007.069c.207.175.08.673-.127.673-.076.468-.428.816-.428.816s.003.329.122.348c.386.06 1.825.696 1.825 1.392v.111c-.104.053-.21.102-.318.148zM3.75 11.25A.25.25 0 014 11h6a.25.25 0 110 .5H4a.25.25 0 01-.25-.25zM4 9a.25.25 0 000 .5h6a.25.25 0 100-.5H4z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 .5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v13a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5V.5zM2 13V1h10v12H2z",fill:e}))),jv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.968 8.75a.5.5 0 00-.866.5A4.498 4.498 0 007 11.5c1.666 0 3.12-.906 3.898-2.25a.5.5 0 10-.866-.5A3.498 3.498 0 017 10.5a3.498 3.498 0 01-3.032-1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Nv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M4.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Dv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.968 10.25a.5.5 0 01-.866-.5A4.498 4.498 0 017 7.5c1.666 0 3.12.906 3.898 2.25a.5.5 0 11-.866.5A3.498 3.498 0 007 8.5a3.498 3.498 0 00-3.032 1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),Vv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{d:"M3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:e}),o.createElement("path",{d:"M7 4.5a1 1 0 100-2 1 1 0 000 2z",fill:e}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),Uv=o.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>o.createElement("svg",{width:t,height:t,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM8 3.5a1 1 0 11-2 0 1 1 0 012 0zM3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:e})));const Wv=Object.freeze(Object.defineProperty({__proto__:null,AccessibilityAltIcon:Uv,AccessibilityIcon:Vv,AddIcon:Zs,AdminIcon:$v,AlertAltIcon:x4,AlertIcon:w4,AlignLeftIcon:Im,AlignRightIcon:Am,AppleIcon:qm,ArrowBottomLeftIcon:lv,ArrowBottomRightIcon:iv,ArrowDownIcon:tv,ArrowLeftIcon:rv,ArrowRightIcon:nv,ArrowSolidDownIcon:cv,ArrowSolidLeftIcon:dv,ArrowSolidRightIcon:uv,ArrowSolidUpIcon:sv,ArrowTopLeftIcon:av,ArrowTopRightIcon:ov,ArrowUpIcon:ev,AzureDevOpsIcon:Jm,BackIcon:Ev,BasketIcon:V4,BatchAcceptIcon:D2,BatchDenyIcon:N2,BeakerIcon:U4,BellIcon:R4,BitbucketIcon:Qm,BoldIcon:Lm,BookIcon:bm,BookmarkHollowIcon:M4,BookmarkIcon:$4,BottomBarIcon:R2,BottomBarToggleIcon:I2,BoxIcon:T2,BranchIcon:Vm,BrowserIcon:v2,ButtonIcon:p4,CPUIcon:A2,CalendarIcon:Cm,CameraIcon:lm,CategoryIcon:wm,CertificateIcon:F4,ChangedIcon:Q2,ChatIcon:l4,CheckIcon:F2,ChevronDownIcon:ec,ChevronLeftIcon:Z4,ChevronRightIcon:qo,ChevronSmallDownIcon:Go,ChevronSmallLeftIcon:J4,ChevronSmallRightIcon:Q4,ChevronSmallUpIcon:tc,ChevronUpIcon:X4,ChromaticIcon:e2,ChromeIcon:Xm,CircleHollowIcon:O4,CircleIcon:T4,ClearIcon:t4,CloseAltIcon:W2,CloseIcon:X2,CloudHollowIcon:G4,CloudIcon:Y4,CogIcon:L2,CollapseIcon:fv,CommandIcon:m4,CommentAddIcon:n4,CommentIcon:r4,CommentsIcon:o4,CommitIcon:Dm,CompassIcon:Iv,ComponentDrivenIcon:t2,ComponentIcon:qg,ContrastIcon:Qg,ControlsIcon:V2,CopyIcon:ym,CreditIcon:u4,CrossIcon:q2,DashboardIcon:Ov,DatabaseIcon:_2,DeleteIcon:Z2,DiamondIcon:L4,DirectionIcon:Lv,DiscordIcon:r2,DocChartIcon:km,DocListIcon:Om,DocumentIcon:Cn,DownloadIcon:xv,DragIcon:Tm,EditIcon:$2,EllipsisIcon:P2,EmailIcon:E4,ExpandAltIcon:pv,ExpandIcon:hv,EyeCloseIcon:Ys,EyeIcon:Gs,FaceHappyIcon:jv,FaceNeutralIcon:Nv,FaceSadIcon:Dv,FacebookIcon:n2,FailedIcon:e4,FastForwardIcon:pm,FigmaIcon:a2,FilterIcon:_m,FlagIcon:q4,FolderIcon:xm,FormIcon:j2,GDriveIcon:o2,GithubIcon:l2,GitlabIcon:i2,GlobeIcon:Rv,GoogleIcon:s2,GraphBarIcon:Rm,GraphLineIcon:Sm,GraphqlIcon:c2,GridAltIcon:Xg,GridIcon:Gg,GrowIcon:rm,HeartHollowIcon:z4,HeartIcon:B4,HomeIcon:Mv,HourglassIcon:W4,InfoIcon:v4,ItalicIcon:zm,JumpToIcon:k4,KeyIcon:c4,LightningIcon:Jg,LightningOffIcon:Ks,LinkBrokenIcon:C4,LinkIcon:Qs,LinkedinIcon:g2,LinuxIcon:Gm,ListOrderedIcon:Pm,ListUnorderedIcon:Hm,LocationIcon:Av,LockIcon:i4,MarkdownIcon:jm,MarkupIcon:$m,MediumIcon:d2,MemoryIcon:k2,MenuIcon:Mm,MergeIcon:Wm,MirrorIcon:tm,MobileIcon:y2,MoonIcon:vm,NutIcon:z2,OutboxIcon:d4,OutlineIcon:Yg,PaintBrushIcon:nm,PaperClipIcon:Bm,ParagraphIcon:Fm,PassedIcon:J2,PhoneIcon:S4,PhotoDragIcon:Kg,PhotoIcon:Wg,PinAltIcon:Y2,PinIcon:_v,PlayBackIcon:cm,PlayIcon:sm,PlayNextIcon:dm,PlusIcon:U2,PointerDefaultIcon:h4,PointerHandIcon:g4,PowerIcon:M2,PrintIcon:Em,ProceedIcon:Sv,ProfileIcon:Fv,PullRequestIcon:Um,QuestionIcon:b4,RSSIcon:I4,RedirectIcon:vv,ReduxIcon:u2,RefreshIcon:Cv,ReplyIcon:bv,RepoIcon:Nm,RequestChangeIcon:a4,RewindIcon:um,RulerIcon:am,SearchIcon:Zg,ShareAltIcon:A4,ShareIcon:_4,ShieldIcon:D4,SideBySideIcon:hm,SidebarAltIcon:E2,SidebarAltToggleIcon:S2,SidebarIcon:x2,SidebarToggleIcon:C2,SpeakerIcon:im,StackedIcon:gm,StarHollowIcon:P4,StarIcon:H4,StickerIcon:K4,StopAltIcon:fm,StopIcon:om,StorybookIcon:Zm,StructureIcon:O2,SubtractIcon:Js,SunIcon:mm,SupportIcon:y4,SwitchAltIcon:em,SyncIcon:yv,TabletIcon:b2,ThumbsUpIcon:N4,TimeIcon:kv,TimerIcon:Tv,TransferIcon:mv,TrashIcon:G2,TwitterIcon:p2,TypeIcon:f4,UbuntuIcon:Ym,UndoIcon:rc,UnfoldIcon:gv,UnlockIcon:s4,UnpinIcon:K2,UploadIcon:wv,UserAddIcon:Pv,UserAltIcon:Bv,UserIcon:zv,UsersIcon:Hv,VSCodeIcon:h2,VerifiedIcon:j4,VideoIcon:Xs,WandIcon:H2,WatchIcon:w2,WindowsIcon:Km,WrenchIcon:B2,XIcon:m2,YoutubeIcon:f2,ZoomIcon:Us,ZoomOutIcon:Ws,ZoomResetIcon:qs,iconList:Ug},Symbol.toStringTag,{value:"Module"}));var qv=Object.create,nc=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,Yv=Object.getOwnPropertyNames,Kv=Object.getPrototypeOf,Xv=Object.prototype.hasOwnProperty,Zv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jv=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Yv(t))!Xv.call(e,a)&&a!==r&&nc(e,a,{get:()=>t[a],enumerable:!(n=Gv(t,a))||n.enumerable});return e},Qv=(e,t,r)=>(r=e!=null?qv(Kv(e)):{},Jv(t||!e||!e.__esModule?nc(r,"default",{value:e,enumerable:!0}):r,e)),e3=Zv(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,l){return function i(c,s,d){var u,h,g,f=t.call(c),v=t.call(s);if(c===s)return!0;if(c==null||s==null)return!1;if(d.indexOf(c)>-1&&d.indexOf(s)>-1)return!0;if(d.push(c,s),f!=v||(u=n(c),h=n(s),u.length!=h.length||u.some(function(m){return!i(c[m],s[m],d)})))return!1;switch(f.slice(8,-1)){case"Symbol":return c.valueOf()==s.valueOf();case"Date":case"Number":return+c==+s||+c!=+c&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+c==""+s;case"Set":case"Map":u=c.entries(),h=s.entries();do if(!i((g=u.next()).value,h.next().value,d))return!1;while(!g.done);return!0;case"ArrayBuffer":c=new Uint8Array(c),s=new Uint8Array(s);case"DataView":c=new Uint8Array(c.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(c.length!=s.length)return!1;for(g=0;ge.map(t=>typeof t<"u").filter(Boolean).length,t3=(e,t)=>{let{exists:r,eq:n,neq:a,truthy:l}=e;if(ac([r,n,a,l])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:a})}`);if(typeof n<"u")return(0,xi.isEqual)(t,n);if(typeof a<"u")return!(0,xi.isEqual)(t,a);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof l>"u"||l?!!t:!t},r3=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:a}=e.if;if(ac([n,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:a})}`);let l=n?t[n]:r[a];return t3(e.if,l)},oc=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");const{global:n3}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:lc,logger:a3}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var te=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e};function o3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Br(e,t)}function l3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Br(e,t)}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ka(e)}function i3(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function s3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gn(e,t,r){return s3()?gn=Reflect.construct.bind():gn=function(n,a,l){var i=[null];i.push.apply(i,a);var c=Function.bind.apply(n,i),s=new c;return l&&Br(s,l.prototype),s},gn.apply(null,arguments)}function Xa(e){var t=typeof Map=="function"?new Map:void 0;return Xa=function(r){if(r===null||!i3(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return gn(r,arguments,Ka(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Br(n,r)},Xa(e)}var c3={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). + +`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). + +`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. + +`,4:`Couldn't generate valid rgb string from %s, it returned %s. + +`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. + +`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). + +`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). + +`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. + +`,9:`Please provide a number of steps to the modularScale helper. + +`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" + +`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. + +`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. + +`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. + +`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. + +`,16:`You must provide a template to this method. + +`,17:`You passed an unsupported selector state to this method. + +`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,19:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. + +`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,25:`fontFace expects localFonts to be an array. + +`,26:`fontFace expects fileFormats to be an array. + +`,27:`radialGradient requries at least 2 color-stops to properly render. + +`,28:`Please supply a filename to retinaImage() as the first argument. + +`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation + +`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) +To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') + +`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation + +`,34:`borderRadius expects a radius value as a string or number as the second argument. + +`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,36:`Property must be a string value. + +`,37:`Syntax Error at %s. + +`,38:`Formula contains a function that needs parentheses at %s. + +`,39:`Formula is missing closing parenthesis at %s. + +`,40:`Formula has too many closing parentheses at %s. + +`,41:`All values in a formula must have the same unit or be unitless. + +`,42:`Please provide a number of steps to the modularScale helper. + +`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. + +`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. + +`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. + +`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,48:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. + +`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. + +`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,53:`fontFace expects localFonts to be an array. + +`,54:`fontFace expects fileFormats to be an array. + +`,55:`fontFace expects a name of a font-family. + +`,56:`linearGradient requries at least 2 color-stops to properly render. + +`,57:`radialGradient requries at least 2 color-stops to properly render. + +`,58:`Please supply a filename to retinaImage() as the first argument. + +`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. + +`,62:`borderRadius expects a radius value as a string or number as the second argument. + +`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. + +`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). + +`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. + +`,67:`You must provide a template to this method. + +`,68:`You passed an unsupported selector state to this method. + +`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. + +`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. + +`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. + +`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. + +`,73:`Please provide a valid CSS variable. + +`,74:`CSS variable not found and no default was provided. + +`,75:`important requires a valid style object, got a %s instead. + +`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. + +`,77:`remToPx expects a value in "rem" but you provided it in "%s". + +`,78:`base must be set in "px" or "%" but you set it in "%s". +`};function d3(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var u=r-l/2,h=c+u,g=s+u,f=d+u;return n(h,g,f)}var Ei={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function p3(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Ei[t]?"#"+Ei[t]:e}var f3=/^#[a-fA-F0-9]{6}$/,h3=/^#[a-fA-F0-9]{8}$/,g3=/^#[a-fA-F0-9]{3}$/,m3=/^#[a-fA-F0-9]{4}$/,ga=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,v3=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,b3=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,y3=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Yo(e){if(typeof e!="string")throw new tt(3);var t=p3(e);if(t.match(f3))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(h3)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(g3))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(m3)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=ga.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=v3.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=b3.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+Pr(c,s,d)+")",h=ga.exec(u);if(!h)throw new tt(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var g=y3.exec(t.substring(0,50));if(g){var f=parseInt(""+g[1],10),v=parseInt(""+g[2],10)/100,m=parseInt(""+g[3],10)/100,E="rgb("+Pr(f,v,m)+")",x=ga.exec(E);if(!x)throw new tt(4,t,E);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new tt(5)}function w3(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?Rn(e,t,r):"rgba("+Pr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Rn(e.hue,e.saturation,e.lightness):"rgba("+Pr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new tt(2)}function Ja(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Za("#"+_t(e)+_t(t)+_t(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Za("#"+_t(e.red)+_t(e.green)+_t(e.blue));throw new tt(6)}function In(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Yo(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Ja(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Ja(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new tt(7)}var R3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},I3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},A3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},_3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function sc(e){if(typeof e!="object")throw new tt(8);if(I3(e))return In(e);if(R3(e))return Ja(e);if(_3(e))return C3(e);if(A3(e))return S3(e);throw new tt(8)}function cc(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):cc(e,t,n)}}function Ko(e){return cc(e,e.length,[])}function Xo(e,t,r){return Math.max(e,Math.min(t,r))}function k3(e,t){if(t==="transparent")return t;var r=ic(t);return sc(G({},r,{lightness:Xo(0,1,r.lightness-parseFloat(e))}))}var O3=Ko(k3),Zt=O3;function T3(e,t){if(t==="transparent")return t;var r=ic(t);return sc(G({},r,{lightness:Xo(0,1,r.lightness+parseFloat(e))}))}var M3=Ko(T3),Si=M3;function $3(e,t){if(t==="transparent")return t;var r=Yo(t),n=typeof r.alpha=="number"?r.alpha:1,a=G({},r,{alpha:Xo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return In(a)}var L3=Ko($3),Oe=L3,ur=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),ut=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Oe(.1,e.color.defaultText):Oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),re=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Ut={margin:"16px 0"},z3=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return p.createElement("a",{href:r,target:n,...t})},dc=A(z3)(re,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),uc=A.blockquote(re,Ut,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),B3=e=>typeof e=="string",P3=/[\n\r]/g,H3=A.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),ut),F3=A(Po)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Zo=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(B3).some(l=>l.match(P3))?p.createElement(F3,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):p.createElement(H3,{...r,className:e},a)},pc=A.div(re),fc=A.dl(re,Ut,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),hc=A.h1(re,ur,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Jo=A.h2(re,ur,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Qo=A.h3(re,ur,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),gc=A.h4(re,ur,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),mc=A.h5(re,ur,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),vc=A.h6(re,ur,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),bc=A.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),yc=A.img({maxWidth:"100%"}),wc=A.li(re,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":ut({theme:e})})),j3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},xc=A.ol(re,Ut,j3,{listStyle:"decimal"}),Ec=A.p(re,Ut,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":ut({theme:e})})),Sc=A.pre(re,Ut,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),Cc=A.span(re,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),Rc=A.table(re,Ut,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),Ic=A.title(ut),N3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Ac=A.ul(re,Ut,N3,{listStyle:"disc"}),el=A.div(re),_c={h1:e=>p.createElement(hc,{...te(e,"h1")}),h2:e=>p.createElement(Jo,{...te(e,"h2")}),h3:e=>p.createElement(Qo,{...te(e,"h3")}),h4:e=>p.createElement(gc,{...te(e,"h4")}),h5:e=>p.createElement(mc,{...te(e,"h5")}),h6:e=>p.createElement(vc,{...te(e,"h6")}),pre:e=>p.createElement(Sc,{...te(e,"pre")}),a:e=>p.createElement(dc,{...te(e,"a")}),hr:e=>p.createElement(bc,{...te(e,"hr")}),dl:e=>p.createElement(fc,{...te(e,"dl")}),blockquote:e=>p.createElement(uc,{...te(e,"blockquote")}),table:e=>p.createElement(Rc,{...te(e,"table")}),img:e=>p.createElement(yc,{...te(e,"img")}),div:e=>p.createElement(pc,{...te(e,"div")}),span:e=>p.createElement(Cc,{...te(e,"span")}),li:e=>p.createElement(wc,{...te(e,"li")}),ul:e=>p.createElement(Ac,{...te(e,"ul")}),ol:e=>p.createElement(xc,{...te(e,"ol")}),p:e=>p.createElement(Ec,{...te(e,"p")}),code:e=>p.createElement(Zo,{...te(e,"code")}),tt:e=>p.createElement(Ic,{...te(e,"tt")}),resetwrapper:e=>p.createElement(el,{...te(e,"resetwrapper")})},D3=A.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.positiveText)}`:"none"};default:return{}}}),V3=({...e})=>p.createElement(D3,{...e}),U3=0,W3=e=>e.button===U3&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,q3=(e,t)=>{W3(e)&&(e.preventDefault(),t(e))},G3=A.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),Y3=A.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Zt(.07,e.color.secondary),"svg path:not([fill])":{fill:Zt(.07,e.color.secondary)}},"&:active":{color:Zt(.1,e.color.secondary),"svg path:not([fill])":{fill:Zt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Bt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,style:i=void 0,...c})=>p.createElement(Y3,{...c,onClick:r&&e?s=>q3(s,r):r,className:l},p.createElement(G3,{withArrow:n,containsIcon:a},t,n&&p.createElement(qo,null))),K3=A.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Pt=[],lr=null,X3=o.lazy(async()=>{let{SyntaxHighlighter:e}=await Ft(()=>import("./syntaxhighlighter-JOJW2KGS-2fXDnHX_.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return Pt.length>0&&(Pt.forEach(t=>{e.registerLanguage(...t)}),Pt=[]),lr===null&&(lr=e),{default:t=>p.createElement(e,{...t})}}),Z3=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Ft(()=>import("./syntaxhighlighter-JOJW2KGS-2fXDnHX_.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),Ft(()=>import("./formatter-B5HCVTEV-IwUJ3K8x.js"),__vite__mapDeps([6,1,2,3,4,5]),import.meta.url)]);return Pt.length>0&&(Pt.forEach(r=>{e.registerLanguage(...r)}),Pt=[]),lr===null&&(lr=e),{default:r=>p.createElement(e,{...r,formatter:t})}}),Wn=e=>p.createElement(o.Suspense,{fallback:p.createElement("div",null)},e.format!==!1?p.createElement(Z3,{...e}):p.createElement(X3,{...e}));Wn.registerLanguage=(...e)=>{if(lr!==null){lr.registerLanguage(...e);return}Pt.push(e)};var J3=e=>typeof e=="number"?e:Number(e),Q3=A.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Da}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Da}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),e7=({col:e,row:t,outer:r,children:n,...a})=>{let l=J3(typeof r=="number"||!r?r:e||t);return p.createElement(Q3,{col:e,row:t,outer:l,...a},n)},t7=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),r7=A.div(),n7=A.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),a7=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return p.createElement(n7,{...t},p.createElement(t7,null,r),n&&p.createElement(r7,null,n))};function o7(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){l()});var l=o.useCallback(function(){var i=a.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(i){a.current=i,l()},[l])}function Ci(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function kc(e){e===void 0&&(e={});var t=e.onResize,r=o.useRef(void 0);r.current=t;var n=e.round||Math.round,a=o.useRef(),l=o.useState({width:void 0,height:void 0}),i=l[0],c=l[1],s=o.useRef(!1);o.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=o.useRef({width:void 0,height:void 0}),u=o7(o.useCallback(function(h){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(g){var f=g[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",m=Ci(f,v,"inlineSize"),E=Ci(f,v,"blockSize"),x=m?n(m):void 0,y=E?n(E):void 0;if(d.current.width!==x||d.current.height!==y){var b={width:x,height:y};d.current.width=x,d.current.height=y,r.current?r.current(b):s.current||c(b)}})}),a.current.instance.observe(h,{box:e.box}),function(){a.current&&a.current.instance.unobserve(h)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:u,width:i.width,height:i.height}},[u,i.width,i.height])}var l7=A.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function i7({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),l=o.useCallback(({height:i})=>{i&&a(i/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),kc({ref:r,onResize:l}),p.createElement(l7,{scale:e,elementHeight:n},p.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var s7=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return p.createElement(p.Fragment,null,e)}},Oc={Element:i7,IFrame:s7},{document:c7}=n3,d7=A.strong(({theme:e})=>({color:e.color.orange})),u7=A.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Ri=A.em(({theme:e})=>({color:e.textMutedColor})),p7=/(Error): (.*)\n/,f7=/at (?:(.*) )?\(?(.+)\)?/,h7=/([^@]+)?(?:\/<)?@(.+)?/,g7=/([^@]+)?@(.+)?/,Tc=({error:e})=>{if(!e)return p.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return p.createElement(o.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} + +${t}`);let r=t.match(p7);if(!r)return p.createElement(o.Fragment,null,t);let[,n,a]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(c=>{let s=c.match(f7)||c.match(h7)||c.match(g7);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(c7.location.origin,"")}:null}).filter(Boolean);return p.createElement(o.Fragment,null,p.createElement("span",null,n),": ",p.createElement(d7,null,a),p.createElement("br",null),i.map((c,s)=>c.name?p.createElement(o.Fragment,{key:s}," ","at ",p.createElement(u7,null,c.name)," (",p.createElement(Ri,null,c.location),")",p.createElement("br",null)):p.createElement(o.Fragment,{key:s}," ","at ",p.createElement(Ri,null,c.location),p.createElement("br",null))))},wt=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:l=!1,active:i=!1,onClick:c,...s},d)=>{let u="button";s.isLink&&(u="a"),e&&(u=ko);let h=n,g=r,[f,v]=o.useState(!1),m=E=>{c&&c(E),t!=="none"&&v(!0)};if(o.useEffect(()=>{let E=setTimeout(()=>{f&&v(!1)},1e3);return()=>clearTimeout(E)},[f]),s.primary&&(h="solid",g="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(h="outline",g="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let E=p.Children.toArray(s.children).filter(x=>typeof x=="string"&&x!=="");lc(`Use of deprecated props in the button ${E.length>0?`"${E.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return p.createElement(m7,{as:u,ref:d,variant:h,size:g,padding:a,disabled:l,active:i,animating:f,animation:t,onClick:m,...s})});wt.displayName="Button";var m7=A("button",{shouldForwardProp:e=>vo(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:l,animation:i,padding:c})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?Oe(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Oe(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Oe(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${In(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?Oe(.86,e.color.secondary):e.base==="light"?Zt(.02,s):Si(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Zt(.02,s):Si(.03,s)})()},"&:focus":{boxShadow:`${In(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:l&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),Ht=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>p.createElement(wt,{padding:e,variant:t,ref:n,...r}));Ht.displayName="IconButton";var v7=A.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),b7=A.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Mc=({label:e,children:t,...r})=>p.createElement(v7,{...r},e?p.createElement(b7,null,p.createElement("span",null,e)):null,t);Mc.defaultProps={label:void 0};var y7=o.useLayoutEffect,w7=y7,x7=function(e){var t=o.useRef(e);return w7(function(){t.current=e}),t},Ii=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},E7=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&Ii(r.current,null),r.current=t,t&&Ii(t,n)},[t])},S7=E7,Ai={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},C7=function(e){Object.keys(Ai).forEach(function(t){e.style.setProperty(t,Ai[t],"important")})},_i=C7,ye=null,ki=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function R7(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),ye||(ye=document.createElement("textarea"),ye.setAttribute("tabindex","-1"),ye.setAttribute("aria-hidden","true"),_i(ye)),ye.parentNode===null&&document.body.appendChild(ye);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(g){var f=g;ye.style[f]=i[f]}),_i(ye),ye.value=t;var s=ki(ye,e);ye.value=t,s=ki(ye,e),ye.value="x";var d=ye.scrollHeight-a,u=d*r;c==="border-box"&&(u=u+a+l),s=Math.max(u,s);var h=d*n;return c==="border-box"&&(h=h+a+l),s=Math.min(h,s),[s,d]}var Oi=function(){},I7=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},A7=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],_7=!!document.documentElement.currentStyle,k7=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=I7(A7,t),n=r.boxSizing;if(n==="")return null;_7&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},O7=k7;function $c(e,t,r){var n=x7(r);o.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var T7=function(e){$c(window,"resize",e)},M7=function(e){$c(document.fonts,"loadingdone",e)},$7=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],L7=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?Oi:l,c=e.onHeightChange,s=c===void 0?Oi:c,d=Io(e,$7),u=d.value!==void 0,h=o.useRef(null),g=S7(h,t),f=o.useRef(0),v=o.useRef(),m=function(){var x=h.current,y=r&&v.current?v.current:O7(x);if(y){v.current=y;var b=R7(y,x.value||x.placeholder||"x",a,n),w=b[0],S=b[1];f.current!==w&&(f.current=w,x.style.setProperty("height",w+"px","important"),s(w,{rowHeight:S}))}},E=function(x){u||m(),i(x)};return o.useLayoutEffect(m),T7(m),M7(m),o.createElement("textarea",G({},d,{onChange:E,ref:g}))},z7=o.forwardRef(L7),B7={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},tl=({theme:e})=>({...B7,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),rl=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},Lc=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},nl=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},P7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return p.createElement("input",{...n,ref:a})}))(tl,rl,Lc,nl,{minHeight:32}),{displayName:"Input"}),H7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return p.createElement("select",{...n,ref:a})}))(tl,rl,nl,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),F7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return p.createElement(z7,{...n,ref:a})}))(tl,rl,Lc,nl,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Nt=Object.assign(A.form({boxSizing:"border-box",width:"100%"}),{Field:Mc,Input:P7,Select:H7,Textarea:F7,Button:wt}),j7=o.lazy(()=>Ft(()=>import("./WithTooltip-Y7J54OF7-DP4HB9AU.js"),__vite__mapDeps([7,1,2,3,4,5]),import.meta.url).then(e=>({default:e.WithTooltip}))),N7=e=>p.createElement(o.Suspense,{fallback:p.createElement("div",null)},p.createElement(j7,{...e})),D7=o.lazy(()=>Ft(()=>import("./WithTooltip-Y7J54OF7-DP4HB9AU.js"),__vite__mapDeps([7,1,2,3,4,5]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),zc=e=>p.createElement(o.Suspense,{fallback:p.createElement("div",null)},p.createElement(D7,{...e})),V7=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),U7=A.span(),W7=A.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),q7=A.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),G7=A.div({padding:15,width:280,boxSizing:"border-box"}),Bc=({title:e,desc:t,links:r})=>p.createElement(G7,null,p.createElement(q7,null,e&&p.createElement(V7,null,e),t&&p.createElement(U7,null,t)),r&&p.createElement(W7,null,r.map(({title:n,...a})=>p.createElement(Bt,{...a,key:n},n))));Bc.defaultProps={title:null,desc:null,links:null};var Y7=A.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),K7=({note:e,...t})=>p.createElement(Y7,{...t},e),X7=A(({active:e,loading:t,disabled:r,...n})=>p.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:Oe(.7,t.color.defaultText)}:{}),Z7=A.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),J7=A.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),Q7=A.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),eb=A.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),tb=A.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),rb=Dt(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),Pc=({loading:e,title:t,center:r,right:n,icon:a,active:l,disabled:i,isIndented:c,href:s,onClick:d,LinkWrapper:u,...h})=>{let g=rb(d,s,u),f={active:l,disabled:i};return p.createElement(tb,{...f,...h,...g},a&&p.createElement(eb,{...f},a),t||r?p.createElement(J7,{isIndented:!a&&c},t&&p.createElement(X7,{...f,loading:e},t),r&&p.createElement(Q7,{...f},r)):null,n&&p.createElement(Z7,{...f},n))};Pc.defaultProps={loading:!1,title:p.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var al=Pc,nb=A.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),ab=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...l}=e,{title:i,href:c,active:s}=l,d=o.useCallback(h=>{r(h,l)},[r]),u=!!r;return p.createElement(al,{title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...l,...u?{onClick:d}:{}})},ol=({links:e,LinkWrapper:t})=>{let r=e.some(n=>n.icon);return p.createElement(nb,null,e.map(({isGatsby:n,...a})=>p.createElement(ab,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))};ol.defaultProps={LinkWrapper:al.defaultProps.LinkWrapper};var ob=e=>typeof e.props.href=="string",lb=e=>typeof e.props.href!="string";function ib({children:e,...t},r){let n={props:t,ref:r};if(ob(n))return p.createElement("a",{ref:n.ref,...n.props},e);if(lb(n))return p.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Hc=o.forwardRef(ib);Hc.displayName="ButtonOrLink";var Gr=A(Hc,{shouldForwardProp:vo})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});Gr.displayName="TabButton";var sb=A.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),cb=A.div(()=>({marginTop:6,padding:7,height:28})),db=()=>p.createElement(cb,null,p.createElement(sb,null)),Qa=A.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Qa.displayName="Side";var ub=({children:e,className:t,scrollable:r})=>r?p.createElement(Bo,{vertical:!1,className:t},e):p.createElement("div",{className:t},e),ll=A(ub)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});ll.displayName="Bar";var pb=A.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),qn=({children:e,backgroundColor:t,className:r,...n})=>{let[a,l]=o.Children.toArray(e);return p.createElement(ll,{className:`sb-bar ${r}`,...n},p.createElement(pb,{bgColor:t},p.createElement(Qa,{scrollable:n.scrollable,left:!0},a),l?p.createElement(Qa,{right:!0},l):null))};qn.displayName="FlexBar";var Fc=A.div(({active:e})=>e?{display:"block"}:{display:"none"}),Ti=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>p.createElement(Fc,{active:i,role:"tabpanel"},l)}}),fb=A.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),hb=A(Gr)(({active:e,theme:t,preActive:r})=>` + color: ${r||e?t.barSelectedColor:t.barTextColor}; + .addon-collapsible-icon { + color: ${r||e?t.barSelectedColor:t.barTextColor}; + } + &:hover { + color: ${t.barHoverColor}; + .addon-collapsible-icon { + color: ${t.barHoverColor}; + } + } + `);function gb(e){let t=o.useRef(),r=o.useRef(),n=o.useRef(new Map),{width:a=1}=kc({ref:t}),[l,i]=o.useState(e),[c,s]=o.useState([]),d=o.useRef(e),u=o.useCallback(({menuName:g,actions:f})=>{let v=c.some(({active:x})=>x),[m,E]=o.useState(!1);return p.createElement(p.Fragment,null,p.createElement(Vg,{interactive:!0,visible:m,onVisibleChange:E,placement:"bottom",delayHide:100,tooltip:p.createElement(ol,{links:c.map(({title:x,id:y,color:b,active:w})=>({id:y,title:x,color:b,active:w,onClick:S=>{S.preventDefault(),f.onSelect(y)}}))})},p.createElement(hb,{ref:r,active:v,preActive:m,style:{visibility:c.length?"visible":"hidden"},"aria-hidden":!c.length,className:"tabbutton",type:"button",role:"tab"},g,p.createElement(fb,{className:"addon-collapsible-icon",isActive:v||m}))),c.map(({title:x,id:y,color:b},w)=>{let S=`index-${w}`;return p.createElement(Gr,{id:`tabbutton-${oc(y)??S}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:C=>{n.current.set(y,C)},className:"tabbutton",type:"button",key:y,textColor:b,role:"tab"},x)}))},[c]),h=o.useCallback(()=>{if(!t.current||!r.current)return;let{x:g,width:f}=t.current.getBoundingClientRect(),{width:v}=r.current.getBoundingClientRect(),m=c.length?g+f-v:g+f,E=[],x=0,y=e.filter(b=>{let{id:w}=b,S=n.current.get(w),{width:C=0}=(S==null?void 0:S.getBoundingClientRect())||{},R=g+x+C>m;return(!R||!S)&&E.push(b),x+=C,R});(E.length!==l.length||d.current!==e)&&(i(E),s(y),d.current=e)},[c.length,e,l]);return o.useLayoutEffect(h,[h,a]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:l,invisibleList:c,AddonTab:u}}var mb=A.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),vb=A.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),bb=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),yb=A.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),il=({title:e,description:t,footer:r})=>p.createElement(mb,null,p.createElement(vb,null,p.createElement(bb,null,e),t&&p.createElement(yb,null,t)),r),wb="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",xb=A.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),sl=A.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});sl.displayName="TabBar";var Eb=A.div({display:"block",position:"relative"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${wb}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),Sb=({active:e,render:t,children:r})=>p.createElement(Fc,{active:e},t?t():r),Gn=o.memo(({children:e,selected:t,actions:r,absolute:n,bordered:a,tools:l,backgroundColor:i,id:c,menuName:s,emptyState:d,showToolsWhenEmpty:u})=>{let h=Ti(e).map(y=>y.id).join(","),g=o.useMemo(()=>Ti(e).map((y,b)=>({...y,active:t?y.id===t:b===0})),[t,h]),{visibleList:f,tabBarRef:v,tabRefs:m,AddonTab:E}=gb(g),x=d??p.createElement(il,{title:"Nothing found"});return!u&&g.length===0?x:p.createElement(xb,{absolute:n,bordered:a,id:c},p.createElement(qn,{scrollable:!1,border:!0,backgroundColor:i},p.createElement(sl,{style:{whiteSpace:"normal"},ref:v,role:"tablist"},f.map(({title:y,id:b,active:w,color:S},C)=>{let R=`index-${C}`;return p.createElement(Gr,{id:`tabbutton-${oc(b)??R}`,ref:I=>{m.current.set(b,I)},className:`tabbutton ${w?"tabbutton-active":""}`,type:"button",key:b,active:w,textColor:S,onClick:I=>{I.preventDefault(),r.onSelect(b)},role:"tab"},typeof y=="function"?p.createElement("title",null):y)}),p.createElement(E,{menuName:s,actions:r})),l),p.createElement(Eb,{id:"panel-tab-content",bordered:a,absolute:n},g.length?g.map(({id:y,active:b,render:w})=>p.createElement(w,{key:y,active:b},null)):x))});Gn.displayName="Tabs";Gn.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:"Tabs"};var cl=class extends o.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:a}=this.props,{selected:l}=this.state;return p.createElement(Gn,{bordered:e,absolute:t,selected:l,backgroundColor:n,menuName:a,actions:this.handlers},r)}};cl.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var dl=A.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});dl.displayName="Separator";var Cb=e=>e.reduce((t,r,n)=>r?p.createElement(o.Fragment,{key:r.id||r.key||`f-${n}`},t,n>0?p.createElement(dl,{key:`s-${n}`}):null,r.render()||r):t,null),Rb=e=>{let t=o.useRef();return o.useEffect(()=>{t.current=e},[e]),t.current},Ib=(e,t)=>{let r=Rb(t);return e?t:r},Ab=({active:e,children:t})=>p.createElement("div",{hidden:!e},Ib(e,t)),_b=Wv,kb=A.svg` + display: inline-block; + shape-rendering: inherit; + vertical-align: middle; + fill: currentColor; + path { + fill: currentColor; + } +`,Ob=({icon:e,useSymbol:t,__suppressDeprecationWarning:r=!1,...n})=>{r||lc(`Use of the deprecated Icons ${`(${e})`||""} component detected. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`);let a=An[e]||null;if(!a)return a3.warn(`Use of an unknown prop ${`(${e})`||""} in the Icons component. The Icons component is deprecated. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`),null;let l=_b[a];return p.createElement(l,{...n})},Tb=o.memo(function({icons:e=Object.keys(An)}){return p.createElement(kb,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(t=>p.createElement("symbol",{id:`icon--${t}`,key:t},An[t])))}),An={user:"UserIcon",useralt:"UserAltIcon",useradd:"UserAddIcon",users:"UsersIcon",profile:"ProfileIcon",facehappy:"FaceHappyIcon",faceneutral:"FaceNeutralIcon",facesad:"FaceSadIcon",accessibility:"AccessibilityIcon",accessibilityalt:"AccessibilityAltIcon",arrowup:"ChevronUpIcon",arrowdown:"ChevronDownIcon",arrowleft:"ChevronLeftIcon",arrowright:"ChevronRightIcon",arrowupalt:"ArrowUpIcon",arrowdownalt:"ArrowDownIcon",arrowleftalt:"ArrowLeftIcon",arrowrightalt:"ArrowRightIcon",expandalt:"ExpandAltIcon",collapse:"CollapseIcon",expand:"ExpandIcon",unfold:"UnfoldIcon",transfer:"TransferIcon",redirect:"RedirectIcon",undo:"UndoIcon",reply:"ReplyIcon",sync:"SyncIcon",upload:"UploadIcon",download:"DownloadIcon",back:"BackIcon",proceed:"ProceedIcon",refresh:"RefreshIcon",globe:"GlobeIcon",compass:"CompassIcon",location:"LocationIcon",pin:"PinIcon",time:"TimeIcon",dashboard:"DashboardIcon",timer:"TimerIcon",home:"HomeIcon",admin:"AdminIcon",info:"InfoIcon",question:"QuestionIcon",support:"SupportIcon",alert:"AlertIcon",email:"EmailIcon",phone:"PhoneIcon",link:"LinkIcon",unlink:"LinkBrokenIcon",bell:"BellIcon",rss:"RSSIcon",sharealt:"ShareAltIcon",share:"ShareIcon",circle:"CircleIcon",circlehollow:"CircleHollowIcon",bookmarkhollow:"BookmarkHollowIcon",bookmark:"BookmarkIcon",hearthollow:"HeartHollowIcon",heart:"HeartIcon",starhollow:"StarHollowIcon",star:"StarIcon",certificate:"CertificateIcon",verified:"VerifiedIcon",thumbsup:"ThumbsUpIcon",shield:"ShieldIcon",basket:"BasketIcon",beaker:"BeakerIcon",hourglass:"HourglassIcon",flag:"FlagIcon",cloudhollow:"CloudHollowIcon",edit:"EditIcon",cog:"CogIcon",nut:"NutIcon",wrench:"WrenchIcon",ellipsis:"EllipsisIcon",check:"CheckIcon",form:"FormIcon",batchdeny:"BatchDenyIcon",batchaccept:"BatchAcceptIcon",controls:"ControlsIcon",plus:"PlusIcon",closeAlt:"CloseAltIcon",cross:"CrossIcon",trash:"TrashIcon",pinalt:"PinAltIcon",unpin:"UnpinIcon",add:"AddIcon",subtract:"SubtractIcon",close:"CloseIcon",delete:"DeleteIcon",passed:"PassedIcon",changed:"ChangedIcon",failed:"FailedIcon",clear:"ClearIcon",comment:"CommentIcon",commentadd:"CommentAddIcon",requestchange:"RequestChangeIcon",comments:"CommentsIcon",lock:"LockIcon",unlock:"UnlockIcon",key:"KeyIcon",outbox:"OutboxIcon",credit:"CreditIcon",button:"ButtonIcon",type:"TypeIcon",pointerdefault:"PointerDefaultIcon",pointerhand:"PointerHandIcon",browser:"BrowserIcon",tablet:"TabletIcon",mobile:"MobileIcon",watch:"WatchIcon",sidebar:"SidebarIcon",sidebaralt:"SidebarAltIcon",sidebaralttoggle:"SidebarAltToggleIcon",sidebartoggle:"SidebarToggleIcon",bottombar:"BottomBarIcon",bottombartoggle:"BottomBarToggleIcon",cpu:"CPUIcon",database:"DatabaseIcon",memory:"MemoryIcon",structure:"StructureIcon",box:"BoxIcon",power:"PowerIcon",photo:"PhotoIcon",component:"ComponentIcon",grid:"GridIcon",outline:"OutlineIcon",photodrag:"PhotoDragIcon",search:"SearchIcon",zoom:"ZoomIcon",zoomout:"ZoomOutIcon",zoomreset:"ZoomResetIcon",eye:"EyeIcon",eyeclose:"EyeCloseIcon",lightning:"LightningIcon",lightningoff:"LightningOffIcon",contrast:"ContrastIcon",switchalt:"SwitchAltIcon",mirror:"MirrorIcon",grow:"GrowIcon",paintbrush:"PaintBrushIcon",ruler:"RulerIcon",stop:"StopIcon",camera:"CameraIcon",video:"VideoIcon",speaker:"SpeakerIcon",play:"PlayIcon",playback:"PlayBackIcon",playnext:"PlayNextIcon",rewind:"RewindIcon",fastforward:"FastForwardIcon",stopalt:"StopAltIcon",sidebyside:"SideBySideIcon",stacked:"StackedIcon",sun:"SunIcon",moon:"MoonIcon",book:"BookIcon",document:"DocumentIcon",copy:"CopyIcon",category:"CategoryIcon",folder:"FolderIcon",print:"PrintIcon",graphline:"GraphLineIcon",calendar:"CalendarIcon",graphbar:"GraphBarIcon",menu:"MenuIcon",menualt:"MenuIcon",filter:"FilterIcon",docchart:"DocChartIcon",doclist:"DocListIcon",markup:"MarkupIcon",bold:"BoldIcon",paperclip:"PaperClipIcon",listordered:"ListOrderedIcon",listunordered:"ListUnorderedIcon",paragraph:"ParagraphIcon",markdown:"MarkdownIcon",repository:"RepoIcon",commit:"CommitIcon",branch:"BranchIcon",pullrequest:"PullRequestIcon",merge:"MergeIcon",apple:"AppleIcon",linux:"LinuxIcon",ubuntu:"UbuntuIcon",windows:"WindowsIcon",storybook:"StorybookIcon",azuredevops:"AzureDevOpsIcon",bitbucket:"BitbucketIcon",chrome:"ChromeIcon",chromatic:"ChromaticIcon",componentdriven:"ComponentDrivenIcon",discord:"DiscordIcon",facebook:"FacebookIcon",figma:"FigmaIcon",gdrive:"GDriveIcon",github:"GithubIcon",gitlab:"GitlabIcon",google:"GoogleIcon",graphql:"GraphqlIcon",medium:"MediumIcon",redux:"ReduxIcon",twitter:"TwitterIcon",youtube:"YoutubeIcon",vscode:"VSCodeIcon"},Mb=({alt:e,...t})=>p.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?p.createElement("title",null,e):null,p.createElement("defs",null,p.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),p.createElement("mask",{id:"b",fill:"#fff"},p.createElement("use",{xlinkHref:"#a"})),p.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),p.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),$b=e=>p.createElement("svg",{viewBox:"0 0 64 64",...e},p.createElement("title",null,"Storybook icon"),p.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},p.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),p.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),p.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),Lb=dr` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,zb=A.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${Lb} 0.7s linear infinite`,mixBlendMode:"difference"})),Mi=A.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),Bb=A.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:Oe(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),Pb=A.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),$i=A.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.barTextColor})),Hb=A(Ks)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),Fb=dr` + from { content: "..." } + 33% { content: "." } + 66% { content: ".." } + to { content: "..." } +`,jb=A.span({"&::after":{content:"'...'",animation:`${Fb} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),jc=({progress:e,error:t,size:r,...n})=>{if(t)return p.createElement(Mi,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},p.createElement(Hb,null),p.createElement($i,null,t.message));if(e){let{value:a,modules:l}=e,{message:i}=e;return l&&(i+=` ${l.complete} / ${l.total} modules`),p.createElement(Mi,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a*100,"aria-valuetext":i,role:"progressbar",...n},p.createElement(Bb,null,p.createElement(Pb,{style:{width:`${a*100}%`}})),p.createElement($i,null,i,a<1&&p.createElement(jb,{key:i})))}return p.createElement(zb,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})};function Nb(e){let t={},r=e.split("&");for(let n=0;n{let[n,a]=e.split("?"),l=a?{...Nb(a),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(l).map(i=>`${i[0]}=${i[1]}`).join("&")}`},Db=A.pre` + line-height: 18px; + padding: 11px 1rem; + white-space: pre-wrap; + background: rgba(0, 0, 0, 0.05); + color: ${H.darkest}; + border-radius: 3px; + margin: 1rem 0; + width: 100%; + display: block; + overflow: hidden; + font-family: ${et.fonts.mono}; + font-size: ${et.size.s2-1}px; +`,Vb=({code:e,...t})=>p.createElement(Db,{id:"clipboard-code",...t},e),Dc=_c,Vc={};Object.keys(_c).forEach(e=>{Vc[e]=o.forwardRef((t,r)=>o.createElement(e,{...t,ref:r}))});const Ub=Object.freeze(Object.defineProperty({__proto__:null,A:dc,ActionBar:Lo,AddonPanel:Ab,Badge:V3,Bar:ll,Blockquote:uc,Button:wt,ClipboardCode:Vb,Code:Zo,DL:fc,Div:pc,DocumentWrapper:K3,EmptyTabContent:il,ErrorFormatter:Tc,FlexBar:qn,Form:Nt,H1:hc,H2:Jo,H3:Qo,H4:gc,H5:mc,H6:vc,HR:bc,IconButton:Ht,IconButtonSkeleton:db,Icons:Ob,Img:yc,LI:wc,Link:Bt,ListItem:al,Loader:jc,OL:xc,P:Ec,Placeholder:a7,Pre:Sc,ResetWrapper:el,ScrollArea:Bo,Separator:dl,Spaced:e7,Span:Cc,StorybookIcon:$b,StorybookLogo:Mb,Symbols:Tb,SyntaxHighlighter:Wn,TT:Ic,TabBar:sl,TabButton:Gr,TabWrapper:Sb,Table:Rc,Tabs:Gn,TabsState:cl,TooltipLinkList:ol,TooltipMessage:Bc,TooltipNote:K7,UL:Ac,WithTooltip:N7,WithTooltipPure:zc,Zoom:Oc,codeCommon:ut,components:Dc,createCopyToClipboardFunction:Os,getStoryHref:Nc,icons:An,interleaveSeparators:Cb,nameSpaceClassNames:te,resetComponents:Vc,withReset:re},Symbol.toStringTag,{value:"Module"}));function Wb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hr(e,t){return Hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Hr(e,t)}function qb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hr(e,t)}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(e)}function Gb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Uc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uc=function(){return!!e})()}function Yb(e,t,r){if(Uc())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Hr(a,r.prototype),a}function to(e){var t=typeof Map=="function"?new Map:void 0;return to=function(n){if(n===null||!Gb(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Yb(n,arguments,eo(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Hr(a,n)},to(e)}var rt=function(e){qb(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,Wb(n)}return t}(to(Error));function va(e){return Math.round(e*255)}function Kb(e,t,r){return va(e)+","+va(t)+","+va(r)}function Fr(e,t,r,n){if(n===void 0&&(n=Kb),t===0)return n(r,r,r);var a=(e%360+360)%360/60,l=(1-Math.abs(2*r-1))*t,i=l*(1-Math.abs(a%2-1)),c=0,s=0,d=0;a>=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var u=r-l/2,h=c+u,g=s+u,f=d+u;return n(h,g,f)}var Li={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Xb(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Li[t]?"#"+Li[t]:e}var Zb=/^#[a-fA-F0-9]{6}$/,Jb=/^#[a-fA-F0-9]{8}$/,Qb=/^#[a-fA-F0-9]{3}$/,ey=/^#[a-fA-F0-9]{4}$/,ba=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ty=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ry=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ny=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function ir(e){if(typeof e!="string")throw new rt(3);var t=Xb(e);if(t.match(Zb))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Jb)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Qb))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ey)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=ba.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=ty.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=ry.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+Fr(c,s,d)+")",h=ba.exec(u);if(!h)throw new rt(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var g=ny.exec(t.substring(0,50));if(g){var f=parseInt(""+g[1],10),v=parseInt(""+g[2],10)/100,m=parseInt(""+g[3],10)/100,E="rgb("+Fr(f,v,m)+")",x=ba.exec(E);if(!x)throw new rt(4,t,E);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new rt(5)}function ay(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?_n(e,t,r):"rgba("+Fr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?_n(e.hue,e.saturation,e.lightness):"rgba("+Fr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new rt(2)}function no(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ro("#"+kt(e)+kt(t)+kt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ro("#"+kt(e.red)+kt(e.green)+kt(e.blue));throw new rt(6)}function Je(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=ir(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?no(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?no(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new rt(7)}var cy=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},dy=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},uy=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},py=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function Et(e){if(typeof e!="object")throw new rt(8);if(dy(e))return Je(e);if(cy(e))return no(e);if(py(e))return sy(e);if(uy(e))return iy(e);throw new rt(8)}function Wc(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Wc(e,t,a)}}function Ie(e){return Wc(e,e.length,[])}function fy(e,t){if(t==="transparent")return t;var r=xt(t);return Et(me({},r,{hue:r.hue+parseFloat(e)}))}Ie(fy);function pr(e,t,r){return Math.max(e,Math.min(t,r))}function hy(e,t){if(t==="transparent")return t;var r=xt(t);return Et(me({},r,{lightness:pr(0,1,r.lightness-parseFloat(e))}))}var gy=Ie(hy),Ye=gy;function my(e,t){if(t==="transparent")return t;var r=xt(t);return Et(me({},r,{saturation:pr(0,1,r.saturation-parseFloat(e))}))}Ie(my);function vy(e,t){if(t==="transparent")return t;var r=xt(t);return Et(me({},r,{lightness:pr(0,1,r.lightness+parseFloat(e))}))}var by=Ie(vy),Ot=by;function yy(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=ir(t),a=me({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),l=ir(r),i=me({},l,{alpha:typeof l.alpha=="number"?l.alpha:1}),c=a.alpha-i.alpha,s=parseFloat(e)*2-1,d=s*c===-1?s:s+c,u=1+s*c,h=(d/u+1)/2,g=1-h,f={red:Math.floor(a.red*h+i.red*g),green:Math.floor(a.green*h+i.green*g),blue:Math.floor(a.blue*h+i.blue*g),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Je(f)}var wy=Ie(yy),qc=wy;function xy(e,t){if(t==="transparent")return t;var r=ir(t),n=typeof r.alpha=="number"?r.alpha:1,a=me({},r,{alpha:pr(0,1,(n*100+parseFloat(e)*100)/100)});return Je(a)}var Ey=Ie(xy),nn=Ey;function Sy(e,t){if(t==="transparent")return t;var r=xt(t);return Et(me({},r,{saturation:pr(0,1,r.saturation+parseFloat(e))}))}Ie(Sy);function Cy(e,t){return t==="transparent"?t:Et(me({},xt(t),{hue:parseFloat(e)}))}Ie(Cy);function Ry(e,t){return t==="transparent"?t:Et(me({},xt(t),{lightness:parseFloat(e)}))}Ie(Ry);function Iy(e,t){return t==="transparent"?t:Et(me({},xt(t),{saturation:parseFloat(e)}))}Ie(Iy);function Ay(e,t){return t==="transparent"?t:qc(parseFloat(e),"rgb(0, 0, 0)",t)}Ie(Ay);function _y(e,t){return t==="transparent"?t:qc(parseFloat(e),"rgb(255, 255, 255)",t)}Ie(_y);function ky(e,t){if(t==="transparent")return t;var r=ir(t),n=typeof r.alpha=="number"?r.alpha:1,a=me({},r,{alpha:pr(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Je(a)}var Oy=Ie(ky),ee=Oy,Ty=S0,My=td,$y=Object.prototype,Ly=$y.hasOwnProperty;function zy(e,t,r){var n=e[t];(!(Ly.call(e,t)&&My(n,r))||r===void 0&&!(t in e))&&Ty(e,t,r)}var ul=zy,By=ul,Py=C0,Hy=rd,zi=Tn,Fy=nd;function jy(e,t,r,n){if(!zi(e))return e;t=Py(t,e);for(var a=-1,l=t.length,i=l-1,c=e;c!=null&&++a(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),Pi={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},C6=["style","script"],R6=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,I6=/mailto:/i,A6=/\n{2,}$/,Kc=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_6=/^ *> ?/gm,k6=/^ {2,}\n/,O6=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Xc=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Zc=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,T6=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,M6=/^(?:\n *)*\n/,$6=/\r\n?/g,L6=/^\[\^([^\]]+)](:.*)\n/,z6=/^\[\^([^\]]+)]/,B6=/\f/g,P6=/^\s*?\[(x|\s)\]/,Jc=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Qc=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,e1=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ao=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,H6=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,t1=/^)/,F6=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,oo=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,j6=/^\{.*\}$/,N6=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,D6=/^<([^ >]+@[^ >]+)>/,V6=/^<([^ >]+:\/[^ >]+)>/,U6=/-([a-z])?/gi,r1=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,W6=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,q6=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,G6=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Y6=/(\[|\])/g,K6=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,X6=/\t/g,Z6=/^ *\| */,J6=/(^ *\||\| *$)/g,Q6=/ *$/,ew=/^ *:-+: *$/,tw=/^ *:-+ *$/,rw=/^ *-+: *$/,nw=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,aw=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,ow=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,lw=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,iw=/^\\([^0-9A-Za-z\s])/,sw=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,cw=/^\n+/,dw=/^([ \t]*)/,uw=/\\([^\\])/g,Hi=/ *\n+$/,pw=/(?:^|\n)( *)$/,fl="(?:\\d+\\.)",hl="(?:[*+-])";function n1(e){return"( *)("+(e===1?fl:hl)+") +"}const a1=n1(1),o1=n1(2);function l1(e){return new RegExp("^"+(e===1?a1:o1))}const fw=l1(1),hw=l1(2);function i1(e){return new RegExp("^"+(e===1?a1:o1)+"[^\\n]*(?:\\n(?!\\1"+(e===1?fl:hl)+" )[^\\n]*)*(\\n|$)","gm")}const s1=i1(1),c1=i1(2);function d1(e){const t=e===1?fl:hl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const u1=d1(1),p1=d1(2);function Fi(e,t){const r=t===1,n=r?u1:p1,a=r?s1:c1,l=r?fw:hw;return{t(i,c,s){const d=pw.exec(s);return d&&(c.o||!c._&&!c.u)?n.exec(i=d[1]+i):null},i:W.HIGH,l(i,c,s){const d=r?+i[2]:void 0,u=i[0].replace(A6,` +`).match(a);let h=!1;return{p:u.map(function(g,f){const v=l.exec(g)[0].length,m=new RegExp("^ {1,"+v+"}","gm"),E=g.replace(m,"").replace(l,""),x=f===u.length-1,y=E.indexOf(` + +`)!==-1||x&&h;h=y;const b=s._,w=s.o;let S;s.o=!0,y?(s._=!1,S=E.replace(Hi,` + +`)):(s._=!0,S=E.replace(Hi,""));const C=c(S,s);return s._=b,s.o=w,C}),m:r,g:d}},h:(i,c,s)=>e(i.m?"ol":"ul",{key:s.k,start:i.g},i.p.map(function(d,u){return e("li",{key:u},c(d,s))}))}}const gw=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,mw=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,f1=[Kc,Xc,Zc,Jc,e1,Qc,t1,r1,s1,u1,c1,p1],vw=[...f1,/^[^\n]+(?: \n|\n{2,})/,ao,oo];function bw(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function yw(e){return rw.test(e)?"right":ew.test(e)?"center":tw.test(e)?"left":null}function ji(e,t,r){const n=r.$;r.$=!0;const a=t(e.trim(),r);r.$=n;let l=[[]];return a.forEach(function(i,c){i.type==="tableSeparator"?c!==0&&c!==a.length-1&&l.push([]):(i.type!=="text"||a[c+1]!=null&&a[c+1].type!=="tableSeparator"||(i.v=i.v.replace(Q6,"")),l[l.length-1].push(i))}),l}function ww(e,t,r){r._=!0;const n=ji(e[1],t,r),a=e[2].replace(J6,"").split("|").map(yw),l=function(i,c,s){return i.trim().split(` +`).map(function(d){return ji(d,c,s)})}(e[3],t,r);return r._=!1,{S:a,A:l,L:n,type:"table"}}function Ni(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function ft(e){return function(t,r){return r._?e.exec(t):null}}function ht(e){return function(t,r){return r._||r.u?e.exec(t):null}}function st(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Er(e){return function(t){return e.exec(t)}}function xw(e,t,r){if(t._||t.u||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(l=>!f1.some(i=>i.test(l))&&(n+=l+` +`,l.trim()));const a=n.trimEnd();return a==""?null:[n,a]}function Yt(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function Di(e){return e.replace(uw,"$1")}function mn(e,t,r){const n=r._||!1,a=r.u||!1;r._=!0,r.u=!0;const l=e(t,r);return r._=n,r.u=a,l}function Ew(e,t,r){const n=r._||!1,a=r.u||!1;r._=!1,r.u=!0;const l=e(t,r);return r._=n,r.u=a,l}function Sw(e,t,r){return r._=!1,e(t,r)}const wa=(e,t,r)=>({v:mn(t,e[1],r)});function xa(){return{}}function Ea(){return null}function Cw(...e){return e.filter(Boolean).join(" ")}function Sa(e,t,r){let n=e;const a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}var W;function Rw(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||bw,t.namedCodesToUnicode=t.namedCodesToUnicode?Mt({},Pi,t.namedCodesToUnicode):Pi;const r=t.createElement||o.createElement;function n(f,v,...m){const E=Sa(t.overrides,`${f}.props`,{});return r(function(x,y){const b=Sa(y,x);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:Sa(y,`${x}.component`,x):x}(f,t.overrides),Mt({},v,E,{className:Cw(v==null?void 0:v.className,E.className)||void 0}),...m)}function a(f){let v=!1;t.forceInline?v=!0:t.forceBlock||(v=K6.test(f)===!1);const m=u(d(v?f:`${f.trimEnd().replace(cw,"")} + +`,{_:v}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const E=t.wrapper||(v?"span":"div");let x;if(m.length>1||t.forceWrapper)x=m;else{if(m.length===1)return x=m[0],typeof x=="string"?n("span",{key:"outer"},x):x;x=null}return o.createElement(E,{key:"outer"},x)}function l(f){const v=f.match(R6);return v?v.reduce(function(m,E,x){const y=E.indexOf("=");if(y!==-1){const b=function(R){return R.indexOf("-")!==-1&&R.match(F6)===null&&(R=R.replace(U6,function(I,_){return _.toUpperCase()})),R}(E.slice(0,y)).trim(),w=function(R){const I=R[0];return(I==='"'||I==="'")&&R.length>=2&&R[R.length-1]===I?R.slice(1,-1):R}(E.slice(y+1).trim()),S=Bi[b]||b,C=m[S]=function(R,I){return R==="style"?I.split(/;\s?/).reduce(function(_,k){const O=k.slice(0,k.indexOf(":"));return _[O.replace(/(-[a-z])/g,T=>T[1].toUpperCase())]=k.slice(O.length+1).trim(),_},{}):R==="href"?Yt(I):(I.match(j6)&&(I=I.slice(1,I.length-1)),I==="true"||I!=="false"&&I)}(b,w);typeof C=="string"&&(ao.test(C)||oo.test(C))&&(m[S]=o.cloneElement(a(C.trim()),{key:x}))}else E!=="style"&&(m[Bi[E]||E]=!0);return m},{}):null}const i=[],c={},s={blockQuote:{t:st(Kc),i:W.HIGH,l:(f,v,m)=>({v:v(f[0].replace(_6,""),m)}),h:(f,v,m)=>n("blockquote",{key:m.k},v(f.v,m))},breakLine:{t:Er(k6),i:W.HIGH,l:xa,h:(f,v,m)=>n("br",{key:m.k})},breakThematic:{t:st(O6),i:W.HIGH,l:xa,h:(f,v,m)=>n("hr",{key:m.k})},codeBlock:{t:st(Zc),i:W.MAX,l:f=>({v:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(f,v,m)=>n("pre",{key:m.k},n("code",Mt({},f.O,{className:f.M?`lang-${f.M}`:""}),f.v))},codeFenced:{t:st(Xc),i:W.MAX,l:f=>({O:l(f[3]||""),v:f[4],M:f[2]||void 0,type:"codeBlock"})},codeInline:{t:ht(T6),i:W.LOW,l:f=>({v:f[2]}),h:(f,v,m)=>n("code",{key:m.k},f.v)},footnote:{t:st(L6),i:W.MAX,l:f=>(i.push({I:f[2],j:f[1]}),{}),h:Ea},footnoteReference:{t:ft(z6),i:W.HIGH,l:f=>({v:f[1],B:`#${t.slugify(f[1])}`}),h:(f,v,m)=>n("a",{key:m.k,href:Yt(f.B)},n("sup",{key:m.k},f.v))},gfmTask:{t:ft(P6),i:W.HIGH,l:f=>({R:f[1].toLowerCase()==="x"}),h:(f,v,m)=>n("input",{checked:f.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:st(t.enforceAtxHeadings?Qc:Jc),i:W.HIGH,l:(f,v,m)=>({v:mn(v,f[2],m),T:t.slugify(f[2]),C:f[1].length}),h:(f,v,m)=>n(`h${f.C}`,{id:f.T,key:m.k},v(f.v,m))},headingSetext:{t:st(e1),i:W.MAX,l:(f,v,m)=>({v:mn(v,f[1],m),C:f[2]==="="?1:2,type:"heading"})},htmlComment:{t:Er(t1),i:W.HIGH,l:()=>({}),h:Ea},image:{t:ht(mw),i:W.HIGH,l:f=>({D:f[1],B:Di(f[2]),F:f[3]}),h:(f,v,m)=>n("img",{key:m.k,alt:f.D||void 0,title:f.F||void 0,src:Yt(f.B)})},link:{t:ft(gw),i:W.LOW,l:(f,v,m)=>({v:Ew(v,f[1],m),B:Di(f[2]),F:f[3]}),h:(f,v,m)=>n("a",{key:m.k,href:Yt(f.B),title:f.F},v(f.v,m))},linkAngleBraceStyleDetector:{t:ft(V6),i:W.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],type:"link"})},linkBareUrlDetector:{t:(f,v)=>v.N?null:ft(N6)(f,v),i:W.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],F:void 0,type:"link"})},linkMailtoDetector:{t:ft(D6),i:W.MAX,l(f){let v=f[1],m=f[1];return I6.test(m)||(m="mailto:"+m),{v:[{v:v.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:Fi(n,1),unorderedList:Fi(n,2),newlineCoalescer:{t:st(M6),i:W.LOW,l:xa,h:()=>` +`},paragraph:{t:xw,i:W.LOW,l:wa,h:(f,v,m)=>n("p",{key:m.k},v(f.v,m))},ref:{t:ft(W6),i:W.MAX,l:f=>(c[f[1]]={B:f[2],F:f[4]},{}),h:Ea},refImage:{t:ht(q6),i:W.MAX,l:f=>({D:f[1]||void 0,P:f[2]}),h:(f,v,m)=>n("img",{key:m.k,alt:f.D,src:Yt(c[f.P].B),title:c[f.P].F})},refLink:{t:ft(G6),i:W.MAX,l:(f,v,m)=>({v:v(f[1],m),Z:v(f[0].replace(Y6,"\\$1"),m),P:f[2]}),h:(f,v,m)=>c[f.P]?n("a",{key:m.k,href:Yt(c[f.P].B),title:c[f.P].F},v(f.v,m)):n("span",{key:m.k},v(f.Z,m))},table:{t:st(r1),i:W.HIGH,l:ww,h:(f,v,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,f.L.map(function(E,x){return n("th",{key:x,style:Ni(f,x)},v(E,m))}))),n("tbody",null,f.A.map(function(E,x){return n("tr",{key:x},E.map(function(y,b){return n("td",{key:b,style:Ni(f,b)},v(y,m))}))})))},tableSeparator:{t:function(f,v){return v.$?(v._=!0,Z6.exec(f)):null},i:W.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Er(sw),i:W.MIN,l:f=>({v:f[0].replace(H6,(v,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:v)}),h:f=>f.v},textBolded:{t:ht(nw),i:W.MED,l:(f,v,m)=>({v:v(f[2],m)}),h:(f,v,m)=>n("strong",{key:m.k},v(f.v,m))},textEmphasized:{t:ht(aw),i:W.LOW,l:(f,v,m)=>({v:v(f[2],m)}),h:(f,v,m)=>n("em",{key:m.k},v(f.v,m))},textEscaped:{t:ht(iw),i:W.HIGH,l:f=>({v:f[1],type:"text"})},textMarked:{t:ht(ow),i:W.LOW,l:wa,h:(f,v,m)=>n("mark",{key:m.k},v(f.v,m))},textStrikethroughed:{t:ht(lw),i:W.LOW,l:wa,h:(f,v,m)=>n("del",{key:m.k},v(f.v,m))}};t.disableParsingRawHTML!==!0&&(s.htmlBlock={t:Er(ao),i:W.HIGH,l(f,v,m){const[,E]=f[3].match(dw),x=new RegExp(`^${E}`,"gm"),y=f[3].replace(x,""),b=(w=y,vw.some(I=>I.test(w))?Sw:mn);var w;const S=f[1].toLowerCase(),C=C6.indexOf(S)!==-1;m.N=m.N||S==="a";const R=C?f[3]:b(v,y,m);return m.N=!1,{O:l(f[2]),v:R,G:C,H:C?S:f[1]}},h:(f,v,m)=>n(f.H,Mt({key:m.k},f.O),f.G?f.v:v(f.v,m))},s.htmlSelfClosing={t:Er(oo),i:W.HIGH,l:f=>({O:l(f[2]||""),H:f[1]}),h:(f,v,m)=>n(f.H,Mt({},f.O,{key:m.k}))});const d=function(f){let v=Object.keys(f);function m(E,x){let y=[],b="";for(;E;){let w=0;for(;w{let{children:t,options:r}=e,n=function(a,l){if(a==null)return{};var i,c,s={},d=Object.keys(a);for(c=0;c=0||(s[i]=a[i]);return s}(e,S6);return o.cloneElement(Rw(t,r),n)};function Iw(e,t,r,n){for(var a=e.length,l=r+(n?1:-1);n?l--:++l-1}var Fw=Hw;function jw(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=t8){var d=t?null:Qw(e);if(d)return e8(d);i=!1,a=Jw,s=new Kw}else s=t?[]:c;e:for(;++nfunction(){return t||(0,e[y1(e)[0]])((t={exports:{}}).exports,t),t.exports},Zx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y1(t))!Xx.call(e,a)&&a!==r&&b1(e,a,{get:()=>t[a],enumerable:!(n=Yx(t,a))||n.enumerable});return e},ml=(e,t,r)=>(r=e!=null?Gx(Kx(e)):{},Zx(t||!e||!e.__esModule?b1(r,"default",{value:e,enumerable:!0}):r,e)),Jx=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],Qx=["detail"];function eE(e){const t=Jx.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&Qx.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var w1=Be({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var i=42;n[a]=i;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var c=Object.getOwnPropertySymbols(n);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,a);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),x1=Be({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=w1();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),tE=Be({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,l="[object Function]";t.exports=function(c){var s=this;if(typeof s!="function"||a.call(s)!==l)throw new TypeError(r+s);for(var d=n.call(arguments,1),u,h=function(){if(this instanceof u){var E=s.apply(this,d.concat(n.call(arguments)));return Object(E)===E?E:this}else return s.apply(c,d.concat(n.call(arguments)))},g=Math.max(0,s.length-d.length),f=[],v=0;v"u"?r:h(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?h(h([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?r:h(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?r:h(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?h(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},m=function T(M){var F;if(M==="%AsyncFunction%")F=i("async function () {}");else if(M==="%GeneratorFunction%")F=i("function* () {}");else if(M==="%AsyncGeneratorFunction%")F=i("async function* () {}");else if(M==="%AsyncGenerator%"){var $=T("%AsyncGeneratorFunction%");$&&(F=$.prototype)}else if(M==="%AsyncIteratorPrototype%"){var L=T("%AsyncGenerator%");L&&(F=h(L.prototype))}return v[M]=F,F},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=vl(),y=rE(),b=x.call(Function.call,Array.prototype.concat),w=x.call(Function.apply,Array.prototype.splice),S=x.call(Function.call,String.prototype.replace),C=x.call(Function.call,String.prototype.slice),R=x.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,k=function(M){var F=C(M,0,1),$=C(M,-1);if(F==="%"&&$!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if($==="%"&&F!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var L=[];return S(M,I,function(j,V,P,D){L[L.length]=P?S(D,_,"$1"):V||j}),L},O=function(M,F){var $=M,L;if(y(E,$)&&(L=E[$],$="%"+L[0]+"%"),y(v,$)){var j=v[$];if(j===g&&(j=m($)),typeof j>"u"&&!F)throw new l("intrinsic "+M+" exists, but is not available. Please file an issue!");return{alias:L,name:$,value:j}}throw new n("intrinsic "+M+" does not exist!")};t.exports=function(M,F){if(typeof M!="string"||M.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!="boolean")throw new l('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,M)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=k(M),L=$.length>0?$[0]:"",j=O("%"+L+"%",F),V=j.name,P=j.value,D=!1,Z=j.alias;Z&&(L=Z[0],w($,b([0,1],Z)));for(var ne=1,X=!0;ne<$.length;ne+=1){var J=$[ne],B=C(J,0,1),U=C(J,-1);if((B==='"'||B==="'"||B==="`"||U==='"'||U==="'"||U==="`")&&B!==U)throw new n("property names with quotes must have matching quotes");if((J==="constructor"||!X)&&(D=!0),L+="."+J,V="%"+L+"%",y(v,V))P=v[V];else if(P!=null){if(!(J in P)){if(!F)throw new l("base intrinsic for "+M+" exists, but the property is not available.");return}if(c&&ne+1>=$.length){var q=c(P,J);X=!!q,X&&"get"in q&&!("originalValue"in q.get)?P=q.get:P=P[J]}else X=y(P,J),P=P[J];X&&!D&&(v[V]=P)}}return P}}}),nE=Be({"node_modules/call-bind/index.js"(e,t){var r=vl(),n=E1(),a=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(l,a),c=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(g){var f=i(r,l,arguments);if(c&&s){var v=c(f,"length");v.configurable&&s(f,"length",{value:1+d(0,g.length-(arguments.length-1))})}return f};var u=function(){return i(r,a,arguments)};s?s(t.exports,"apply",{value:u}):t.exports.apply=u}}),aE=Be({"node_modules/call-bind/callBound.js"(e,t){var r=E1(),n=nE(),a=n(r("String.prototype.indexOf"));t.exports=function(i,c){var s=r(i,!!c);return typeof s=="function"&&a(i,".prototype.")>-1?n(s):s}}}),oE=Be({"node_modules/has-tostringtag/shams.js"(e,t){var r=w1();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),lE=Be({"node_modules/is-regex/index.js"(e,t){var r=aE(),n=oE()(),a,l,i,c;n&&(a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),i={},s=function(){throw i},c={toString:s,valueOf:s},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=s));var s,d=r("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,h="[object RegExp]";t.exports=n?function(f){if(!f||typeof f!="object")return!1;var v=u(f,"lastIndex"),m=v&&a(v,"value");if(!m)return!1;try{l(f,c)}catch(E){return E===i}}:function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:d(f)===h}}}),iE=Be({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),sE=Be({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=x1()();n?(a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:l.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,l,i}}),cE=ml(lE()),dE=ml(iE()),uE=ml(sE());function pE(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var fE=typeof global=="object"&&global&&global.Object===Object&&global,hE=fE,gE=typeof self=="object"&&self&&self.Object===Object&&self,mE=hE||gE||Function("return this")(),bl=mE,vE=bl.Symbol,sr=vE,S1=Object.prototype,bE=S1.hasOwnProperty,yE=S1.toString,Sr=sr?sr.toStringTag:void 0;function wE(e){var t=bE.call(e,Sr),r=e[Sr];try{e[Sr]=void 0;var n=!0}catch{}var a=yE.call(e);return n&&(t?e[Sr]=r:delete e[Sr]),a}var xE=wE,EE=Object.prototype,SE=EE.toString;function CE(e){return SE.call(e)}var RE=CE,IE="[object Null]",AE="[object Undefined]",Ji=sr?sr.toStringTag:void 0;function _E(e){return e==null?e===void 0?AE:IE:Ji&&Ji in Object(e)?xE(e):RE(e)}var kE=_E,Qi=sr?sr.prototype:void 0;Qi&&Qi.toString;function OE(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var C1=OE,TE="[object AsyncFunction]",ME="[object Function]",$E="[object GeneratorFunction]",LE="[object Proxy]";function zE(e){if(!C1(e))return!1;var t=kE(e);return t==ME||t==$E||t==TE||t==LE}var BE=zE,PE=bl["__core-js_shared__"],Ra=PE,e0=function(){var e=/[^.]+$/.exec(Ra&&Ra.keys&&Ra.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function HE(e){return!!e0&&e0 in e}var FE=HE,jE=Function.prototype,NE=jE.toString;function DE(e){if(e!=null){try{return NE.call(e)}catch{}try{return e+""}catch{}}return""}var VE=DE,UE=/[\\^$.*+?()[\]{}|]/g,WE=/^\[object .+?Constructor\]$/,qE=Function.prototype,GE=Object.prototype,YE=qE.toString,KE=GE.hasOwnProperty,XE=RegExp("^"+YE.call(KE).replace(UE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZE(e){if(!C1(e)||FE(e))return!1;var t=BE(e)?XE:WE;return t.test(VE(e))}var JE=ZE;function QE(e,t){return e==null?void 0:e[t]}var eS=QE;function tS(e,t){var r=eS(e,t);return JE(r)?r:void 0}var R1=tS;function rS(e,t){return e===t||e!==e&&t!==t}var nS=rS,aS=R1(Object,"create"),jr=aS;function oS(){this.__data__=jr?jr(null):{},this.size=0}var lS=oS;function iS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sS=iS,cS="__lodash_hash_undefined__",dS=Object.prototype,uS=dS.hasOwnProperty;function pS(e){var t=this.__data__;if(jr){var r=t[e];return r===cS?void 0:r}return uS.call(t,e)?t[e]:void 0}var fS=pS,hS=Object.prototype,gS=hS.hasOwnProperty;function mS(e){var t=this.__data__;return jr?t[e]!==void 0:gS.call(t,e)}var vS=mS,bS="__lodash_hash_undefined__";function yS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?bS:t,this}var wS=yS;function fr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var TS=OS;function MS(e,t){var r=this.__data__,n=Kn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var $S=MS;function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,l="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iaC(e).replace(/\n\s*/g,"").trim()),lC=function(t,r){const n=r.slice(0,r.indexOf("{")),a=r.slice(r.indexOf("{"));if(n.includes("=>")||n.includes("function"))return r;let l=n;return l=l.replace(t,"function"),l+a},iC=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function A1(e){if(!nC(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=eE(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var sC=function(t){let r,n,a,l;return function(c,s){try{if(c==="")return l=[],r=new Map([[s,"[]"]]),n=new Map,a=[],s;const d=n.get(this)||this;for(;a.length&&d!==a[0];)a.shift(),l.pop();if(typeof s=="boolean")return s;if(s===void 0)return t.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return iC.test(s)?t.allowDate?`_date_${s}`:void 0:s;if((0,cE.default)(s))return t.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,dE.default)(s)){if(!t.allowFunction)return;const{name:h}=s,g=s.toString();return g.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${h}|${(()=>{}).toString()}`:`_function_${h}|${oC(lC(c,g))}`}if((0,uE.default)(s)){if(!t.allowSymbol)return;const h=Symbol.keyFor(s);return h!==void 0?`_gsymbol_${h}`:`_symbol_${s.toString().slice(7,-1)}`}if(a.length>=t.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(l)}`;if(s instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!t.allowClass)return;const u=r.get(s);if(!u){const h=Array.isArray(s)?s:A1(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&t.allowClass)try{Object.assign(h,{"_constructor-name_":s.constructor.name})}catch{}return l.push(c),a.unshift(h),r.set(s,JSON.stringify(l)),s!==h&&n.set(s,h),h}return`_duplicate_${u}`}catch{return}}},cC={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},dC=(e,t={})=>{const r={...cC,...t};return JSON.stringify(A1(e),sC(r),t.space)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + *//** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */var _1={exports:{}},Ia,r0;function uC(){return r0||(r0=1,Ia={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}),Ia}var Aa,n0;function pC(){return n0||(n0=1,Aa=function(e){var t=[].forEach,r=[].some,n=document.body,a,l=!0,i=" ";function c(y,b){var w=b.appendChild(d(y));if(y.children.length){var S=u(y.isCollapsed);y.children.forEach(function(C){c(C,S)}),w.appendChild(S)}}function s(y,b){var w=!1,S=u(w);if(b.forEach(function(C){c(C,S)}),a=y||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),b.length===0?a:a.appendChild(S)}function d(y){var b=document.createElement("li"),w=document.createElement("a");return e.listItemClass&&b.setAttribute("class",e.listItemClass),e.onClick&&(w.onclick=e.onClick),e.includeTitleTags&&w.setAttribute("title",y.textContent),e.includeHtml&&y.childNodes.length?t.call(y.childNodes,function(S){w.appendChild(S.cloneNode(!0))}):w.textContent=y.textContent,w.setAttribute("href",e.basePath+"#"+y.id),w.setAttribute("class",e.linkClass+i+"node-name--"+y.nodeName+i+e.extraLinkClasses),b.appendChild(w),b}function u(y){var b=e.orderedList?"ol":"ul",w=document.createElement(b),S=e.listClass+i+e.extraListClasses;return y&&(S=S+i+e.collapsibleClass,S=S+i+e.isCollapsedClass),w.setAttribute("class",S),w}function h(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var y;y=document.querySelector(e.scrollContainer).scrollTop}else y=document.documentElement.scrollTop||n.scrollTop;var b=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),y>e.fixedSidebarOffset?b.className.indexOf(e.positionFixedClass)===-1&&(b.className+=i+e.positionFixedClass):b.className=b.className.replace(i+e.positionFixedClass,"")}function g(y){var b=0;return y!==null&&(b=y.offsetTop,e.hasInnerContainers&&(b+=g(y.offsetParent))),b}function f(y,b){return y&&y.className!==b&&(y.className=b),y}function v(y){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var b;b=document.querySelector(e.scrollContainer).scrollTop}else b=document.documentElement.scrollTop||n.scrollTop;e.positionFixedSelector&&h();var w=y,S;if(l&&a!==null&&w.length>0){r.call(w,function(T,M){if(g(T)>b+e.headingsOffset+10){var F=M===0?M:M-1;return S=w[F],!0}else if(M===w.length-1)return S=w[w.length-1],!0});var C=a.querySelector("."+e.activeLinkClass),R=a.querySelector("."+e.linkClass+".node-name--"+S.nodeName+'[href="'+e.basePath+"#"+S.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(C===R)return;var I=a.querySelectorAll("."+e.linkClass);t.call(I,function(T){f(T,T.className.replace(i+e.activeLinkClass,""))});var _=a.querySelectorAll("."+e.listItemClass);t.call(_,function(T){f(T,T.className.replace(i+e.activeListItemClass,""))}),R&&R.className.indexOf(e.activeLinkClass)===-1&&(R.className+=i+e.activeLinkClass);var k=R&&R.parentNode;k&&k.className.indexOf(e.activeListItemClass)===-1&&(k.className+=i+e.activeListItemClass);var O=a.querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(O,function(T){T.className.indexOf(e.isCollapsedClass)===-1&&(T.className+=i+e.isCollapsedClass)}),R&&R.nextSibling&&R.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&f(R.nextSibling,R.nextSibling.className.replace(i+e.isCollapsedClass,"")),m(R&&R.parentNode.parentNode)}}function m(y){return y&&y.className.indexOf(e.collapsibleClass)!==-1&&y.className.indexOf(e.isCollapsedClass)!==-1?(f(y,y.className.replace(i+e.isCollapsedClass,"")),m(y.parentNode.parentNode)):y}function E(y){var b=y.target||y.srcElement;typeof b.className!="string"||b.className.indexOf(e.linkClass)===-1||(l=!1)}function x(){l=!0}return{enableTocAnimation:x,disableTocAnimation:E,render:s,updateToc:v}}),Aa}var _a,a0;function fC(){return a0||(a0=1,_a=function(t){var r=[].reduce;function n(u){return u[u.length-1]}function a(u){return+u.nodeName.toUpperCase().replace("H","")}function l(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function i(u){if(!l(u))return u;if(t.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;const h=u.getAttribute("data-heading-label")||(t.headingLabelCallback?String(t.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim());var g={id:u.id,children:[],nodeName:u.nodeName,headingLevel:a(u),textContent:h};return t.includeHtml&&(g.childNodes=u.childNodes),t.headingObjectCallback?t.headingObjectCallback(g,u):g}function c(u,h){for(var g=i(u),f=g.headingLevel,v=h,m=n(v),E=m?m.headingLevel:0,x=f-E;x>0&&(m=n(v),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(v=m.children),x--;return f>=t.collapseDepth&&(g.isCollapsed=!0),v.push(g),v}function s(u,h){var g=h;t.ignoreSelector&&(g=h.split(",").map(function(v){return v.trim()+":not("+t.ignoreSelector+")"}));try{return u.querySelectorAll(g)}catch{return console.warn("Headers not found with selector: "+g),null}}function d(u){return r.call(u,function(g,f){var v=i(f);return v&&c(v,g.nest),g},{nest:[]})}return{nestHeadingsArray:d,selectHeadings:s}}),_a}var ka,o0;function hC(){if(o0)return ka;o0=1;const e=30;return ka=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);if(a){var l=n.scrollTop,i=l+n.clientHeight,c=a.offsetTop,s=c+a.clientHeight;ci-r.tocScrollOffset-e&&(n.scrollTop+=s-i+r.tocScrollOffset+2*e)}}},ka}var Oa={},l0;function gC(){if(l0)return Oa;l0=1,Oa.initSmoothScrolling=e;function e(r){var n=r.duration,a=r.offset,l=location.hash?s(location.href):location.href;i();function i(){document.body.addEventListener("click",u,!1);function u(h){!c(h.target)||h.target.className.indexOf("no-smooth-scroll")>-1||h.target.href.charAt(h.target.href.length-2)==="#"&&h.target.href.charAt(h.target.href.length-1)==="!"||h.target.className.indexOf(r.linkClass)===-1||t(h.target.hash,{duration:n,offset:a,callback:function(){d(h.target.hash)}})}}function c(u){return u.tagName.toLowerCase()==="a"&&(u.hash.length>0||u.href.charAt(u.href.length-1)==="#")&&(s(u.href)===l||s(u.href)+"#"===l)}function s(u){return u.slice(0,u.lastIndexOf("#"))}function d(u){var h=document.getElementById(u.substring(1));h&&(/^(?:a|select|input|button|textarea)$/i.test(h.tagName)||(h.tabIndex=-1),h.focus())}}function t(r,n){var a=window.pageYOffset,l={duration:n.duration,offset:n.offset||0,callback:n.callback,easing:n.easing||f},i=document.querySelector('[id="'+decodeURI(r).split("#").join("")+'"]')||document.querySelector('[id="'+r.split("#").join("")+'"]'),c=typeof r=="string"?l.offset+(r?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):r,s=typeof l.duration=="function"?l.duration(c):l.duration,d,u;requestAnimationFrame(function(v){d=v,h(v)});function h(v){u=v-d,window.scrollTo(0,l.easing(u,a,c,s)),u"u"&&!h)return;var g,f=Object.prototype.hasOwnProperty;function v(){for(var y={},b=0;b({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ee(.3,e.color.defaultText),fontSize:e.typography.size.s2})),k1=e=>p.createElement(wC,{...e,className:"docblock-emptyblock sb-unstyled"}),xC=A(Wn)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),EC=A.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),an=A.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Da}`]:{margin:0}})),SC=()=>p.createElement(EC,null,p.createElement(an,null),p.createElement(an,{style:{width:"80%"}}),p.createElement(an,{style:{width:"30%"}}),p.createElement(an,{style:{width:"80%"}})),xl=({isLoading:e,error:t,language:r,code:n,dark:a,format:l,...i})=>{let{typography:c}=es();if(e)return p.createElement(SC,null);if(t)return p.createElement(k1,null,t);let s=p.createElement(xC,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return s;let d=a?Ha.dark:Ha.light;return p.createElement(ts,{theme:Na({...d,fontCode:c.fonts.mono,fontBase:c.fonts.base})},s)};xl.defaultProps={format:!1};var le=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,El=600,CC=A.h1(re,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${El}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),RC=A.h2(re,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${El}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ee(.25,e.color.defaultText)})),IC=A.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ee(.1,e.color.defaultText):ee(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[le("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[le("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[le("div")]:t,[le("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[le("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[le("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[le("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[le("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[le("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[le("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[le("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[le("img")]:{maxWidth:"100%"},[le("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[le("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[le("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[le("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[le("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[le("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[le("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),AC=A.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${El}px)`]:{}})),_C=({children:e,toc:t})=>p.createElement(AC,{className:"sbdocs sbdocs-wrapper"},p.createElement(IC,{className:"sbdocs sbdocs-content"},e),t),Zn=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),kC=A(qn)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),OC=A.div({display:"flex",alignItems:"center",gap:4}),TC=A.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),MC=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...l})=>p.createElement(kC,{...l},p.createElement(OC,{key:"left"},e?[1,2,3].map(i=>p.createElement(TC,{key:i})):p.createElement(p.Fragment,null,p.createElement(Ht,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},p.createElement(Us,null)),p.createElement(Ht,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},p.createElement(Ws,null)),p.createElement(Ht,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},p.createElement(qs,null))))),O1=o.createContext({scale:1}),{window:$C}=Te,LC=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=$C.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...l}=this.props;return p.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},{PREVIEW_URL:zC}=Te,BC=zC||"iframe.html",lo=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,PC=e=>{let t=o.useRef(),[r,n]=o.useState(!0),[a,l]=o.useState(),{story:i,height:c,autoplay:s,forceInitialArgs:d,renderStoryToElement:u}=e;return o.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,g=u(i,h,{showMain:()=>{},showError:({title:f,description:v})=>l(new Error(`${f} - ${v}`)),showException:f=>l(f)},{autoplay:s,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>g())}},[s,u,i]),a?p.createElement("pre",null,p.createElement(Tc,{error:a})):p.createElement(p.Fragment,null,c?p.createElement("style",null,`#${lo(e)} { min-height: ${c}; transform: translateZ(0); overflow: auto }`):null,r&&p.createElement(T1,null),p.createElement("div",{ref:t,id:`${lo(e)}-inner`,"data-name":i.name}))},HC=({story:e,height:t="500px"})=>p.createElement("div",{style:{width:"100%",height:t}},p.createElement(O1.Consumer,null,({scale:r})=>p.createElement(LC,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:Nc(BC,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),FC=e=>{let{inline:t}=e;return p.createElement("div",{id:lo(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?p.createElement(PC,{...e}):p.createElement(HC,{...e}))},T1=()=>p.createElement(jc,null),jC=A.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),u0=A(xl)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ye(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ye(.05,e.background.content)}})),NC=A.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Zn(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),DC=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:p.createElement(u0,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:p.createElement(u0,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function VC(e){if(o.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var UC=A(MC)({position:"absolute",top:0,left:0,right:0,height:40}),WC=A.div({overflow:"hidden",position:"relative"}),M1=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:i=!1,additionalActions:c,className:s,layout:d="padded",...u})=>{let[h,g]=o.useState(i),{source:f,actionItem:v}=DC(a,h,g),[m,E]=o.useState(1),x=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),y=a?[v]:[],[b,w]=o.useState(c?[...c]:[]),S=[...y,...b],{window:C}=Te,R=o.useCallback(async _=>{let{createCopyToClipboardFunction:k}=await Ft(()=>Promise.resolve().then(()=>Ub),void 0,import.meta.url);k()},[]),I=_=>{let k=C.getSelection();k&&k.type==="Range"||(_.preventDefault(),b.filter(O=>O.title==="Copied").length===0&&R(f.props.code).then(()=>{w([...b,{title:"Copied",onClick:()=>{}}]),C.setTimeout(()=>w(b.filter(O=>O.title!=="Copied")),1500)}))};return p.createElement(NC,{withSource:a,withToolbar:l,...u,className:x.join(" ")},l&&p.createElement(UC,{isLoading:e,border:!0,zoom:_=>E(m*_),resetZoom:()=>E(1),storyId:VC(n),baseUrl:"./iframe.html"}),p.createElement(O1.Provider,{value:{scale:m}},p.createElement(WC,{className:"docs-story",onCopyCapture:a&&I},p.createElement(jC,{isColumn:t||!Array.isArray(n),columns:r,layout:d},p.createElement(Oc.Element,{scale:m},Array.isArray(n)?n.map((_,k)=>p.createElement("div",{key:k},_)):p.createElement("div",null,n))),p.createElement(Lo,{actionItems:S}))),a&&h&&f)};A(M1)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var qC=A.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:ut({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),GC=({tags:e})=>{let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:p.createElement(p.Fragment,null,p.createElement(qC,null,p.createElement("tbody",null,n&&p.createElement("tr",{key:"deprecated"},p.createElement("td",{colSpan:2},p.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(l=>p.createElement("tr",{key:l.name},p.createElement("td",null,p.createElement("code",null,l.name)),p.createElement("td",null,l.description))),a&&p.createElement("tr",{key:"returns"},p.createElement("td",null,p.createElement("code",null,"Returns")),p.createElement("td",null,e.returns.description)))))},io=8,p0=A.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),YC=A.span(ut,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),KC=A.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),XC=A.div(ut,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),ZC=A.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),JC=A(tc)({marginLeft:4}),QC=A(Go)({marginLeft:4}),eR=()=>p.createElement("span",null,"-"),$1=({text:e,simple:t})=>p.createElement(YC,{simple:t},e),tR=Dt(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),rR=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return i8(t)},f0=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,io)),r.map(n=>p.createElement($1,{key:n,text:n===""?'""':n}))},nR=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=o.useState(!1),[i,c]=o.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return p.createElement($1,{text:s});let d=rR(s),u=d.length;return u>io?p.createElement(p0,{isExpanded:i},f0(d,i),p.createElement(KC,{onClick:()=>c(!i)},i?"Show less...":`Show ${u-io} more...`)):p.createElement(p0,null,f0(d))}return p.createElement(zc,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{l(d)},tooltip:p.createElement(ZC,{width:tR(n)},p.createElement(Wn,{language:"jsx",format:!1},n))},p.createElement(XC,{className:"sbdocs-expandable"},p.createElement("span",null,s),a?p.createElement(JC,null):p.createElement(QC,null)))},Ta=({value:e,initialExpandedArgs:t})=>e==null?p.createElement(eR,null):p.createElement(nR,{value:e,initialExpandedArgs:t}),aR=A.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ee(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${nn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${nn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:nn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${nn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),oR=e=>e==="true",lR=({name:e,value:t,onChange:r,onBlur:n,onFocus:a})=>{let l=o.useCallback(()=>r(!1),[r]);if(t===void 0)return p.createElement(wt,{variant:"outline",size:"medium",id:Mn(e),onClick:l},"Set boolean");let i=Fe(e),c=typeof t=="string"?oR(t):t;return p.createElement(aR,{htmlFor:i,"aria-label":e},p.createElement("input",{id:i,type:"checkbox",onChange:s=>r(s.target.checked),checked:c,role:"switch",name:e,onBlur:n,onFocus:a}),p.createElement("span",{"aria-hidden":"true"},"False"),p.createElement("span",{"aria-hidden":"true"},"True"))},iR=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},sR=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},cR=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},dR=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},uR=A.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),pR=({name:e,value:t,onChange:r,onFocus:n,onBlur:a})=>{let[l,i]=o.useState(!0),c=o.useRef(),s=o.useRef();o.useEffect(()=>{l!==!1&&(c&&c.current&&(c.current.value=cR(t)),s&&s.current&&(s.current.value=dR(t)))},[t]);let d=g=>{let f=iR(g.target.value),v=new Date(t);v.setFullYear(f.getFullYear(),f.getMonth(),f.getDate());let m=v.getTime();m&&r(m),i(!!m)},u=g=>{let f=sR(g.target.value),v=new Date(t);v.setHours(f.getHours()),v.setMinutes(f.getMinutes());let m=v.getTime();m&&r(m),i(!!m)},h=Fe(e);return p.createElement(uR,null,p.createElement(Nt.Input,{type:"date",max:"9999-12-31",ref:c,id:`${h}-date`,name:`${h}-date`,onChange:d,onFocus:n,onBlur:a}),p.createElement(Nt.Input,{type:"time",id:`${h}-time`,name:`${h}-time`,ref:s,onChange:u,onFocus:n,onBlur:a}),l?null:p.createElement("div",null,"invalid"))},fR=A.label({display:"flex"}),hR=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},gR=({name:e,value:t,onChange:r,min:n,max:a,step:l,onBlur:i,onFocus:c})=>{let[s,d]=o.useState(typeof t=="number"?t:""),[u,h]=o.useState(!1),[g,f]=o.useState(null),v=o.useCallback(x=>{d(x.target.value);let y=parseFloat(x.target.value);Number.isNaN(y)?f(new Error(`'${x.target.value}' is not a number`)):(r(y),f(null))},[r,f]),m=o.useCallback(()=>{d("0"),r(0),h(!0)},[h]),E=o.useRef(null);return o.useEffect(()=>{u&&E.current&&E.current.select()},[u]),o.useEffect(()=>{s!==(typeof t=="number"?t:"")&&d(t)},[t]),!u&&t===void 0?p.createElement(wt,{variant:"outline",size:"medium",id:Mn(e),onClick:m},"Set number"):p.createElement(fR,null,p.createElement(Nt.Input,{ref:E,id:Fe(e),type:"number",onChange:v,size:"flex",placeholder:"Edit number...",value:s,valid:g?"error":null,autoFocus:u,name:e,min:n,max:a,step:l,onFocus:c,onBlur:i}))},L1=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},so=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],z1=(e,t)=>e&&t&&e.map(r=>t[r]),mR=A.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),vR=A.span({}),bR=A.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),h0=({name:e,options:t,value:r,onChange:n,isInline:a})=>{if(!t)return wl.warn(`Checkbox with no options: ${e}`),p.createElement(p.Fragment,null,"-");let l=so(r,t),[i,c]=o.useState(l),s=u=>{let h=u.target.value,g=[...i];g.includes(h)?g.splice(g.indexOf(h),1):g.push(h),n(z1(g,t)),c(g)};o.useEffect(()=>{c(so(r,t))},[r]);let d=Fe(e);return p.createElement(mR,{isInline:a},Object.keys(t).map((u,h)=>{let g=`${d}-${h}`;return p.createElement(bR,{key:g,htmlFor:g},p.createElement("input",{type:"checkbox",id:g,name:g,value:u,onChange:s,checked:i==null?void 0:i.includes(u)}),p.createElement(vR,null,u))}))},yR=A.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),wR=A.span({}),xR=A.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),g0=({name:e,options:t,value:r,onChange:n,isInline:a})=>{if(!t)return wl.warn(`Radio with no options: ${e}`),p.createElement(p.Fragment,null,"-");let l=L1(r,t),i=Fe(e);return p.createElement(yR,{isInline:a},Object.keys(t).map((c,s)=>{let d=`${i}-${s}`;return p.createElement(xR,{key:d,htmlFor:d},p.createElement("input",{type:"radio",id:d,name:d,value:c,onChange:u=>n(t[u.currentTarget.value]),checked:c===l}),p.createElement(wR,null,c))}))},ER={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},B1=A.select(ER,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),P1=A.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),m0="Choose option...",SR=({name:e,value:t,options:r,onChange:n})=>{let a=c=>{n(r[c.currentTarget.value])},l=L1(t,r)||m0,i=Fe(e);return p.createElement(P1,null,p.createElement(Go,null),p.createElement(B1,{id:i,value:l,onChange:a},p.createElement("option",{key:"no-selection",disabled:!0},m0),Object.keys(r).map(c=>p.createElement("option",{key:c,value:c},c))))},CR=({name:e,value:t,options:r,onChange:n})=>{let a=c=>{let s=Array.from(c.currentTarget.options).filter(d=>d.selected).map(d=>d.value);n(z1(s,r))},l=so(t,r),i=Fe(e);return p.createElement(P1,null,p.createElement(B1,{id:i,multiple:!0,value:l,onChange:a},Object.keys(r).map(c=>p.createElement("option",{key:c,value:c},c))))},v0=e=>{let{name:t,options:r}=e;return r?e.isMulti?p.createElement(CR,{...e}):p.createElement(SR,{...e}):(wl.warn(`Select with no options: ${t}`),p.createElement(p.Fragment,null,"-"))},RR=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,IR={check:h0,"inline-check":h0,radio:g0,"inline-radio":g0,select:v0,"multi-select":v0},Kt=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,options:n?RR(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},l=IR[t];if(l)return p.createElement(l,{...a});throw new Error(`Unknown options type: ${t}`)},Sl="value",AR="key",_R="Error",kR="Object",OR="Array",TR="String",MR="Number",$R="Boolean",LR="Date",zR="Null",BR="Undefined",PR="Function",HR="Symbol",H1="ADD_DELTA_TYPE",F1="REMOVE_DELTA_TYPE",j1="UPDATE_DELTA_TYPE";function $t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function N1(e,t){let r=$t(e),n=$t(t);return(r==="Function"||n==="Function")&&n!==r}var Cl=class extends o.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:l,inputRefValue:i}=this.state,c={};if(!t){if(!l.value)return;c.key=l.value}c.newValue=r(!1,n,a,c.key,i.value),e(c)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:l,deep:i}=this.props,c=o.cloneElement(r,{onClick:this.onSubmit}),s=o.cloneElement(n,{onClick:e}),d=a(Sl,l,i),u=o.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let g=a(AR,l,i);h=o.cloneElement(g,{placeholder:"Key",ref:this.refInputKey})}return p.createElement("span",{className:"rejt-add-value-node"},h,u,s,c)}};Cl.defaultProps={onlyValue:!1,addButtonElement:p.createElement("button",null,"+"),cancelButtonElement:p.createElement("button",null,"c")};var D1=class extends o.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,l=n.length;a(n[l-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:l}=this.state,i=n[e];t(e,a,l,i).then(()=>{let c={keyPath:a,deep:l,key:e,oldValue:i,type:F1};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(c)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:l}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:c,onDeltaUpdate:s}=this.props;c(r[r.length-1],i),s({type:H1,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(l.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:l,keyPath:i,nextDeep:c}=this.state,s=l[e];a(e,i,c,s,t).then(()=>{l[e]=t,this.setState({data:l});let{onUpdate:d,onDeltaUpdate:u}=this.props;d(i[i.length-1],l),u({type:j1,keyPath:i,deep:c,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:l,getStyle:i,dataType:c,minusMenuElement:s}=this.props,{minus:d,collapsed:u}=i(e,t,r,n,c),h=l(e,t,r,n,c),g=o.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return p.createElement("span",{className:"rejt-collapsed"},p.createElement("span",{className:"rejt-collapsed-text",style:u,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&g)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:l}=this.state,{isCollapsed:i,handleRemove:c,onDeltaUpdate:s,readOnly:d,getStyle:u,dataType:h,addButtonElement:g,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:m,textareaElementGenerator:E,minusMenuElement:x,plusMenuElement:y,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:S,logger:C,onSubmitValueParser:R}=this.props,{minus:I,plus:_,delimiter:k,ul:O,addForm:T}=u(e,t,r,n,h),M=d(e,t,r,n,h),F=o.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),$=o.cloneElement(x,{onClick:c,className:"rejt-minus-menu",style:I});return p.createElement("span",{className:"rejt-not-collapsed"},p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:k},"["),!a&&F,p.createElement("ul",{className:"rejt-not-collapsed-list",style:O},t.map((L,j)=>p.createElement(Jn,{key:j,name:j.toString(),data:L,keyPath:r,deep:l,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:u,addButtonElement:g,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:m,textareaElementGenerator:E,minusMenuElement:x,plusMenuElement:y,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:S,logger:C,onSubmitValueParser:R}))),!M&&a&&p.createElement("div",{className:"rejt-add-form",style:T},p.createElement(Cl,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:g,cancelButtonElement:f,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:R})),p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:k},"]"),!M&&$)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:l,getStyle:i}=this.props,c=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,a,l);return p.createElement("div",{className:"rejt-array-node"},p.createElement("span",{onClick:this.handleCollapseMode},p.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),c)}};D1.defaultProps={keyPath:[],deep:0,minusMenuElement:p.createElement("span",null," - "),plusMenuElement:p.createElement("span",null," + ")};var V1=class extends o.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:l}=this.state,{readOnly:i,dataType:c}=this.props,s=i(r,n,a,l,c);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:l,name:i,deep:c}=this.state;if(!l)return;let s=n(!0,a,c,i,l.value);e({value:s,key:i}).then(()=>{N1(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:l,originalValue:i,readOnly:c,dataType:s,getStyle:d,editButtonElement:u,cancelButtonElement:h,textareaElementGenerator:g,minusMenuElement:f,keyPath:v}=this.props,m=d(e,i,n,a,s),E=null,x=null,y=c(e,i,n,a,s);if(r&&!y){let b=g(Sl,v,a,e,i,s),w=o.cloneElement(u,{onClick:this.handleEdit}),S=o.cloneElement(h,{onClick:this.handleCancelEdit}),C=o.cloneElement(b,{ref:this.refInput,defaultValue:i});E=p.createElement("span",{className:"rejt-edit-form",style:m.editForm},C," ",S,w),x=null}else{E=p.createElement("span",{className:"rejt-value",style:m.value,onClick:y?null:this.handleEditMode},t);let b=o.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:m.minus});x=y?null:b}return p.createElement("li",{className:"rejt-function-value-node",style:m.li},p.createElement("span",{className:"rejt-name",style:m.name},e," :"," "),E,x)}};V1.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:p.createElement("button",null,"e"),cancelButtonElement:p.createElement("button",null,"c"),minusMenuElement:p.createElement("span",null," - ")};var Jn=class extends o.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:l,handleUpdateValue:i,onUpdate:c,onDeltaUpdate:s,readOnly:d,getStyle:u,addButtonElement:h,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:m,minusMenuElement:E,plusMenuElement:x,beforeRemoveAction:y,beforeAddAction:b,beforeUpdateAction:w,logger:S,onSubmitValueParser:C}=this.props,R=()=>!0,I=$t(e);switch(I){case _R:return p.createElement(co,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:c,onDeltaUpdate:s,readOnly:R,dataType:I,getStyle:u,addButtonElement:h,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:m,minusMenuElement:E,plusMenuElement:x,beforeRemoveAction:y,beforeAddAction:b,beforeUpdateAction:w,logger:S,onSubmitValueParser:C});case kR:return p.createElement(co,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:c,onDeltaUpdate:s,readOnly:d,dataType:I,getStyle:u,addButtonElement:h,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:m,minusMenuElement:E,plusMenuElement:x,beforeRemoveAction:y,beforeAddAction:b,beforeUpdateAction:w,logger:S,onSubmitValueParser:C});case OR:return p.createElement(D1,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:l,onUpdate:c,onDeltaUpdate:s,readOnly:d,dataType:I,getStyle:u,addButtonElement:h,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:m,minusMenuElement:E,plusMenuElement:x,beforeRemoveAction:y,beforeAddAction:b,beforeUpdateAction:w,logger:S,onSubmitValueParser:C});case TR:return p.createElement(gt,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,minusMenuElement:E,logger:S,onSubmitValueParser:C});case MR:return p.createElement(gt,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,minusMenuElement:E,logger:S,onSubmitValueParser:C});case $R:return p.createElement(gt,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,minusMenuElement:E,logger:S,onSubmitValueParser:C});case LR:return p.createElement(gt,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:R,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,minusMenuElement:E,logger:S,onSubmitValueParser:C});case zR:return p.createElement(gt,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,minusMenuElement:E,logger:S,onSubmitValueParser:C});case BR:return p.createElement(gt,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,minusMenuElement:E,logger:S,onSubmitValueParser:C});case PR:return p.createElement(V1,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:d,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,textareaElementGenerator:m,minusMenuElement:E,logger:S,onSubmitValueParser:C});case HR:return p.createElement(gt,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:l,handleUpdateValue:i,readOnly:R,dataType:I,getStyle:u,cancelButtonElement:g,editButtonElement:f,inputElementGenerator:v,minusMenuElement:E,logger:S,onSubmitValueParser:C});default:return null}}};Jn.defaultProps={keyPath:[],deep:0};var co=class extends o.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,l=n.length;a(n[l-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:l,logger:i}=this.props;l(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:c,onDeltaUpdate:s}=this.props;c(n[n.length-1],r),s({type:H1,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:l}=this.state,i=n[e];t(e,a,l,i).then(()=>{let c={keyPath:a,deep:l,key:e,oldValue:i,type:F1};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:d}=this.props;s(a[a.length-1],n),d(c)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:l,keyPath:i,nextDeep:c}=this.state,s=l[e];a(e,i,c,s,t).then(()=>{l[e]=t,this.setState({data:l});let{onUpdate:d,onDeltaUpdate:u}=this.props;d(i[i.length-1],l),u({type:j1,keyPath:i,deep:c,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:l,dataType:i,getStyle:c,minusMenuElement:s}=this.props,{minus:d,collapsed:u}=c(e,n,t,r,i),h=Object.getOwnPropertyNames(n),g=l(e,n,t,r,i),f=o.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:d});return p.createElement("span",{className:"rejt-collapsed"},p.createElement("span",{className:"rejt-collapsed-text",style:u,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!g&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:l}=this.state,{isCollapsed:i,handleRemove:c,onDeltaUpdate:s,readOnly:d,getStyle:u,dataType:h,addButtonElement:g,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:m,textareaElementGenerator:E,minusMenuElement:x,plusMenuElement:y,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:S,logger:C,onSubmitValueParser:R}=this.props,{minus:I,plus:_,addForm:k,ul:O,delimiter:T}=u(e,t,r,n,h),M=Object.getOwnPropertyNames(t),F=d(e,t,r,n,h),$=o.cloneElement(y,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),L=o.cloneElement(x,{onClick:c,className:"rejt-minus-menu",style:I}),j=M.map(V=>p.createElement(Jn,{key:V,name:V,data:t[V],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(V),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:d,getStyle:u,addButtonElement:g,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:m,textareaElementGenerator:E,minusMenuElement:x,plusMenuElement:y,beforeRemoveAction:b,beforeAddAction:w,beforeUpdateAction:S,logger:C,onSubmitValueParser:R}));return p.createElement("span",{className:"rejt-not-collapsed"},p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"{"),!F&&$,p.createElement("ul",{className:"rejt-not-collapsed-list",style:O},j),!F&&l&&p.createElement("div",{className:"rejt-add-form",style:k},p.createElement(Cl,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:g,cancelButtonElement:f,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:R})),p.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"}"),!F&&L)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:l,dataType:i}=this.props,c=t?this.renderCollapsed():this.renderNotCollapsed(),s=l(e,r,n,a,i);return p.createElement("div",{className:"rejt-object-node"},p.createElement("span",{onClick:this.handleCollapseMode},p.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),c)}};co.defaultProps={keyPath:[],deep:0,minusMenuElement:p.createElement("span",null," - "),plusMenuElement:p.createElement("span",null," + ")};var gt=class extends o.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:l}=this.state,{readOnly:i,dataType:c}=this.props,s=i(r,n,a,l,c);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:l,name:i,deep:c}=this.state;if(!l)return;let s=n(!0,a,c,i,l.value);e({value:s,key:i}).then(()=>{N1(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:l,originalValue:i,readOnly:c,dataType:s,getStyle:d,editButtonElement:u,cancelButtonElement:h,inputElementGenerator:g,minusMenuElement:f,keyPath:v}=this.props,m=d(e,i,n,a,s),E=c(e,i,n,a,s),x=r&&!E,y=g(Sl,v,a,e,i,s),b=o.cloneElement(u,{onClick:this.handleEdit}),w=o.cloneElement(h,{onClick:this.handleCancelEdit}),S=o.cloneElement(y,{ref:this.refInput,defaultValue:JSON.stringify(i)}),C=o.cloneElement(f,{onClick:l,className:"rejt-minus-menu",style:m.minus});return p.createElement("li",{className:"rejt-value-node",style:m.li},p.createElement("span",{className:"rejt-name",style:m.name},e," : "),x?p.createElement("span",{className:"rejt-edit-form",style:m.editForm},S," ",w,b):p.createElement("span",{className:"rejt-value",style:m.value,onClick:E?null:this.handleEditMode},String(t)),!E&&!x&&C)}};gt.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:p.createElement("button",null,"e"),cancelButtonElement:p.createElement("button",null,"c"),minusMenuElement:p.createElement("span",null," - ")};var FR={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},jR={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},NR={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function DR(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var U1=class extends o.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:l,addButtonElement:i,cancelButtonElement:c,editButtonElement:s,inputElement:d,textareaElement:u,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:m,logger:E,onSubmitValueParser:x,fallback:y=null}=this.props,b=$t(e),w=a;$t(a)==="Boolean"&&(w=()=>a);let S=d;d&&$t(d)!=="Function"&&(S=()=>d);let C=u;return u&&$t(u)!=="Function"&&(C=()=>u),b==="Object"||b==="Array"?p.createElement("div",{className:"rejt-tree"},p.createElement(Jn,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:l,addButtonElement:i,cancelButtonElement:c,editButtonElement:s,inputElementGenerator:S,textareaElementGenerator:C,minusMenuElement:h,plusMenuElement:g,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:m,logger:E,onSubmitValueParser:x})):y}};U1.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return FR;case"Array":return jR;default:return NR}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>DR(a),inputElement:()=>p.createElement("input",null),textareaElement:()=>p.createElement("textarea",null),fallback:null};var{window:VR}=Te,UR=A.div(({theme:e})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Ma=A.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),WR=A(Zs)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),qR=A(Js)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),b0=A.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),GR=A(Ht)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),YR=A(Nt.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),KR={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},XR=e=>{e.currentTarget.dispatchEvent(new VR.KeyboardEvent("keydown",KR))},ZR=e=>{e.currentTarget.select()},JR=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),y0=({name:e,value:t,onChange:r})=>{let n=es(),a=o.useMemo(()=>t&&qx(t),[t]),l=a!=null,[i,c]=o.useState(!l),[s,d]=o.useState(null),u=o.useCallback(x=>{try{x&&r(JSON.parse(x)),d(void 0)}catch(y){d(y)}},[r]),[h,g]=o.useState(!1),f=o.useCallback(()=>{r({}),g(!0)},[g]),v=o.useRef(null);if(o.useEffect(()=>{h&&v.current&&v.current.select()},[h]),!l)return p.createElement(wt,{id:Mn(e),onClick:f},"Set object");let m=p.createElement(YR,{ref:v,id:Fe(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:x=>u(x.target.value),placeholder:"Edit JSON string...",autoFocus:h,valid:s?"error":null}),E=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return p.createElement(UR,null,E&&p.createElement(GR,{onClick:x=>{x.preventDefault(),c(y=>!y)}},i?p.createElement(Ys,null):p.createElement(Gs,null),p.createElement("span",null,"RAW")),i?m:p.createElement(U1,{readOnly:!E,isCollapsed:E?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:JR(n),cancelButtonElement:p.createElement(Ma,{type:"button"},"Cancel"),editButtonElement:p.createElement(Ma,{type:"submit"},"Save"),addButtonElement:p.createElement(Ma,{type:"submit",primary:!0},"Save"),plusMenuElement:p.createElement(WR,null),minusMenuElement:p.createElement(qR,null),inputElement:(x,y,b,w)=>w?p.createElement(b0,{onFocus:ZR,onBlur:XR}):p.createElement(b0,null),fallback:m}))},QR=A.input(({theme:e,min:t,max:r,value:n})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ye(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ye(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ot(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ot(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Je(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Je(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Ye(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Je(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ye(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ye(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ot(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ot(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Je(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Je(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Ye(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ye(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ye(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Ot(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Ot(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Je(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),W1=A.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),eI=A(W1)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),tI=A.div({display:"flex",alignItems:"center",width:"100%"});function rI(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var nI=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:c})=>{let s=h=>{r(hR(h.target.value))},d=t!==void 0,u=o.useMemo(()=>rI(l),[l]);return p.createElement(tI,null,p.createElement(W1,null,n),p.createElement(QR,{id:Fe(e),type:"range",onChange:s,name:e,value:t,min:n,max:a,step:l,onFocus:c,onBlur:i}),p.createElement(eI,{numberOFDecimalsPlaces:u,max:a},d?t.toFixed(u):"--"," / ",a))},aI=A.label({display:"flex"}),oI=A.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),lI=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l})=>{let i=h=>{r(h.target.value)},[c,s]=o.useState(!1),d=o.useCallback(()=>{r(""),s(!0)},[s]);if(t===void 0)return p.createElement(wt,{variant:"outline",size:"medium",id:Mn(e),onClick:d},"Set string");let u=typeof t=="string";return p.createElement(aI,null,p.createElement(Nt.Textarea,{id:Fe(e),maxLength:l,onChange:i,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:u?null:"error",name:e,value:u?t:"",onFocus:n,onBlur:a}),l&&p.createElement(oI,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},iI=A(Nt.Input)({padding:10});function sI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var cI=({onChange:e,name:t,accept:r="image/*",value:n})=>{let a=o.useRef(null);function l(i){if(!i.target.files)return;let c=Array.from(i.target.files).map(s=>URL.createObjectURL(s));e(c),sI(n)}return o.useEffect(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),p.createElement(iI,{ref:a,id:Fe(t),type:"file",name:t,multiple:!0,onChange:l,accept:r,size:"flex"})},dI=o.lazy(()=>Ft(()=>import("./Color-RQJUDNI5-D9WPpOf3.js"),__vite__mapDeps([8,2,4,1,3,5]),import.meta.url)),uI=e=>p.createElement(o.Suspense,{fallback:p.createElement("div",null)},p.createElement(dI,{...e})),pI={array:y0,object:y0,boolean:lR,color:uI,date:pR,number:gR,check:Kt,"inline-check":Kt,radio:Kt,"inline-radio":Kt,select:Kt,"multi-select":Kt,range:nI,text:lI,file:cI},w0=()=>p.createElement(p.Fragment,null,"-"),fI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var m;let{key:a,control:l}=e,[i,c]=o.useState(!1),[s,d]=o.useState({value:t});o.useEffect(()=>{i||d({value:t})},[i,t]);let u=o.useCallback(E=>(d({value:E}),r({[a]:E}),E),[r,a]),h=o.useCallback(()=>c(!1),[]),g=o.useCallback(()=>c(!0),[]);if(!l||l.disable){let E=(l==null?void 0:l.disable)!==!0&&((m=e==null?void 0:e.type)==null?void 0:m.name)!=="function";return n&&E?p.createElement(Bt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):p.createElement(w0,null)}let f={name:a,argType:e,value:s.value,onChange:u,onBlur:h,onFocus:g},v=pI[l.type]||w0;return p.createElement(v,{...f,...l,controlType:l.type})},hI=A.span({fontWeight:"bold"}),gI=A.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),mI=A.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...ut({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),vI=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ee(.1,e.color.defaultText):ee(.2,e.color.defaultText),marginTop:t?4:0})),bI=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ee(.1,e.color.defaultText):ee(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),yI=A.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),wI=e=>e&&{summary:typeof e=="string"?e:e.name},on=e=>{var m;let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,u=n.table||{},h=u.type||wI(n.type),g=u.defaultValue||n.defaultValue,f=(m=n.type)==null?void 0:m.required,v=d!=null&&d!=="";return p.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},p.createElement(yI,{expandable:i},p.createElement(hI,null,s),f?p.createElement(gI,{title:"Required"},"*"):null),l?null:p.createElement("td",null,v&&p.createElement(mI,null,p.createElement(h1,null,d)),u.jsDocTags!=null?p.createElement(p.Fragment,null,p.createElement(bI,{hasDescription:v},p.createElement(Ta,{value:h,initialExpandedArgs:c})),p.createElement(GC,{tags:u.jsDocTags})):p.createElement(vI,{hasDescription:v},p.createElement(Ta,{value:h,initialExpandedArgs:c}))),l?null:p.createElement("td",null,p.createElement(Ta,{value:g,initialExpandedArgs:c})),a?p.createElement("td",null,p.createElement(fI,{...e,isHovered:t})):null)},xI=A(ec)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ee(.25,e.color.defaultText):ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),EI=A(qo)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ee(.25,e.color.defaultText):ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),SI=A.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),CI=A.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),RI=A.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),II=A.td(()=>({position:"relative"})),AI=A.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Ot(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),x0=A.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),$a=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=o.useState(n),c=e==="subsection"?RI:CI,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",u=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return p.createElement(p.Fragment,null,p.createElement(AI,{title:u},p.createElement(c,{colSpan:1},p.createElement(x0,{onClick:h=>i(!l),tabIndex:0},u),p.createElement(SI,null,l?p.createElement(xI,null):p.createElement(EI,null),t)),p.createElement(II,{colSpan:a-1},p.createElement(x0,{onClick:h=>i(!l),tabIndex:-1,style:{outline:"none"}},u),l?null:d)),l?r:null)},ln=A.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),fe=A.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ie=A.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),he=[2,4,2,2],_I=()=>p.createElement(p.Fragment,null,p.createElement(ln,null,p.createElement(fe,{numColumn:he[0]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[1]},p.createElement(ie,{width:"30%"})),p.createElement(fe,{numColumn:he[2]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[3]},p.createElement(ie,{width:"60%"}))),p.createElement(ln,null,p.createElement(fe,{numColumn:he[0]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[1]},p.createElement(ie,{width:"80%"}),p.createElement(ie,{width:"30%"})),p.createElement(fe,{numColumn:he[2]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[3]},p.createElement(ie,{width:"60%"}))),p.createElement(ln,null,p.createElement(fe,{numColumn:he[0]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[1]},p.createElement(ie,{width:"80%"}),p.createElement(ie,{width:"30%"})),p.createElement(fe,{numColumn:he[2]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[3]},p.createElement(ie,{width:"60%"}))),p.createElement(ln,null,p.createElement(fe,{numColumn:he[0]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[1]},p.createElement(ie,{width:"80%"}),p.createElement(ie,{width:"30%"})),p.createElement(fe,{numColumn:he[2]},p.createElement(ie,{width:"60%"})),p.createElement(fe,{numColumn:he[3]},p.createElement(ie,{width:"60%"})))),kI=A.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),OI=A.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),TI=A.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),MI=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:p.createElement(kI,{inAddonPanel:e},p.createElement(il,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:p.createElement(p.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:p.createElement(OI,null,e&&p.createElement(p.Fragment,null,p.createElement(Bt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},p.createElement(Xs,null)," Watch 5m video"),p.createElement(TI,null),p.createElement(Bt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Cn,null)," Read docs")),!e&&p.createElement(Bt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Cn,null)," Learn how to set that up"))}))},$I=A.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ee(.25,e.color.defaultText):ee(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),LI=A(Ht)(({theme:e})=>({margin:"-4px -12px -4px 0"})),zI=A.span({display:"flex",justifyContent:"space-between"}),BI={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},PI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:c,subcategory:s}=(i==null?void 0:i.table)||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:l,...i});else{let u=d.subsections[s]||[];u.push({key:l,...i}),d.subsections[s]=u}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:l,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:l,...i})});let n=BI[t],a=l=>n?Object.keys(l).reduce((i,c)=>({...i,[c]:l[c].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},HI=(e,t,r)=>{try{return r3(e,t,r)}catch(n){return mC.warn(n.message),!1}},uo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:i="none",isLoading:c}=e;if("error"in e){let{error:y}=e;return p.createElement(k1,null,y," ",p.createElement(Bt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},p.createElement(Cn,null)," Read the docs"))}if(c)return p.createElement(_I,null);let{rows:s,args:d,globals:u}="rows"in e&&e,h=PI(E6(s,y=>{var b;return!((b=y==null?void 0:y.table)!=null&&b.disable)&&HI(y,d||{},u||{})}),i),g=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(g&&f&&v)return p.createElement(MI,{inAddonPanel:a});let m=1;t&&(m+=1),n||(m+=2);let E=Object.keys(h.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return p.createElement(el,null,p.createElement($I,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},p.createElement("thead",{className:"docblock-argstable-head"},p.createElement("tr",null,p.createElement("th",null,p.createElement("span",null,"Name")),n?null:p.createElement("th",null,p.createElement("span",null,"Description")),n?null:p.createElement("th",null,p.createElement("span",null,"Default")),t?p.createElement("th",null,p.createElement(zI,null,"Control"," ",!c&&r&&p.createElement(LI,{onClick:()=>r(),title:"Reset controls"},p.createElement(rc,{"aria-hidden":!0})))):null)),p.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(y=>p.createElement(on,{key:y.key,row:y,arg:d&&d[y.key],...x})),Object.entries(h.ungroupedSubsections).map(([y,b])=>p.createElement($a,{key:y,label:y,level:"subsection",colSpan:m},b.map(w=>p.createElement(on,{key:w.key,row:w,arg:d&&d[w.key],expandable:E,...x})))),Object.entries(h.sections).map(([y,b])=>p.createElement($a,{key:y,label:y,level:"section",colSpan:m},b.ungrouped.map(w=>p.createElement(on,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(b.subsections).map(([w,S])=>p.createElement($a,{key:w,label:w,level:"subsection",colSpan:m},S.map(C=>p.createElement(on,{key:C.key,row:C,arg:d&&d[C.key],expandable:E,...x})))))))))},FI=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?p.createElement(uo,{...r[0][1],...t}):p.createElement(cl,null,r.map((n,a)=>{let[l,i]=n,c=`prop_table_div_${l}`,s="div",d=a===0?t:{sort:t.sort};return p.createElement(s,{key:c,id:c,title:l},({active:u})=>u?p.createElement(uo,{key:`prop_table_${l}`,...i,...d}):null)}))};A.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});A.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});A.div(re,({theme:e})=>({...Zn(e),margin:"25px 0 40px",padding:"30px 20px"}));A.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));A.div(({theme:e})=>({color:e.base==="light"?ee(.2,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});A.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));A.div({display:"flex",flexDirection:"row"});A.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));A.div(({theme:e})=>({...Zn(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));A.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});A.div({flex:1,display:"flex",flexDirection:"row"});A.div({display:"flex",alignItems:"flex-start"});A.div({flex:"0 0 30%"});A.div({flex:1});A.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));A.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));A.div(({theme:e})=>({...Zn(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));A.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});A.div({display:"flex",flexFlow:"row wrap"});var jI=e=>`anchor--${e}`,q1=({storyId:e,children:t})=>p.createElement("div",{id:jI(e),className:"sb-anchor"},t);Te&&Te.__DOCS_CONTEXT__===void 0&&(Te.__DOCS_CONTEXT__=o.createContext(null),Te.__DOCS_CONTEXT__.displayName="DocsContext");var Ae=Te?Te.__DOCS_CONTEXT__:o.createContext(null),Yr=(e,t)=>o.useContext(Ae).resolveOf(e,t),NI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),DI=e=>{if(e)return typeof e=="string"?e.includes("-")?NI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function VI(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function G1(e){return dC(e,{allowFunction:!1})}var Y1=o.createContext({sources:{}}),K1="--unknown--",UI=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(l,i=null,c=!1)=>{let{id:s,args:d=void 0,source:u,format:h}=typeof l=="string"?{id:l,source:i,format:c}:l,g=d?G1(d):K1;n(f=>({...f,[s]:{...f[s],[g]:{code:u,format:h}}}))};return t.on(Ml,a),()=>t.off(Ml,a)},[]),p.createElement(Y1.Provider,{value:{sources:r}},e)},WI=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[G1(t)])||(a==null?void 0:a[K1])||{code:""}},qI=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:a}=t.parameters,l=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||l.type||ra.AUTO;if(l.code!==void 0)return l.code;let c=i===ra.DYNAMIC||i===ra.AUTO&&e&&a?e:l.originalSource||"";return((d=n??l.transform)==null?void 0:d(c,t))||c},GI=(e,t,r)=>{var f,v,m,E;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let l=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,c=e.format??l.format,s=e.language??l.language??"jsx",d=e.dark??l.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let u=t.getStoryContext(n),h=e.__forceInitialArgs?u.initialArgs:u.unmappedArgs,g=WI(n.id,h,r);return c=g.format??((E=(m=n.parameters.docs)==null?void 0:m.source)==null?void 0:E.format)??!1,{code:qI({snippet:g.code,storyContext:{...u,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function YI(e,t){let r=KI([e],t);return r&&r[0]}function KI(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var XI=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},ZI=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let c=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:c,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},JI=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(Ae),r=XI(e,t),n=YI(r,t);if(!n)return p.createElement(T1,null);let a=ZI(e,n,t);return a?p.createElement(FC,{...a}):null},QI=e=>{var g,f,v,m,E,x,y,b,w,S;let t=o.useContext(Ae),r=o.useContext(Y1),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=Yr(n||"story",["story"]),i=GI({...a,...n&&{of:n}},t,r),c=e.layout??l.parameters.layout??((f=(g=l.parameters.docs)==null?void 0:g.canvas)==null?void 0:f.layout)??"padded",s=e.withToolbar??((m=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:m.withToolbar)??!1,d=e.additionalActions??((x=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:x.additionalActions),u=e.sourceState??((b=(y=l.parameters.docs)==null?void 0:y.canvas)==null?void 0:b.sourceState)??"hidden",h=e.className??((S=(w=l.parameters.docs)==null?void 0:w.canvas)==null?void 0:S.className);return p.createElement(M1,{withSource:u==="none"?void 0:i,isExpanded:u==="shown",withToolbar:s,additionalActions:d,className:h,layout:c},p.createElement(JI,{of:n||l.moduleExport,meta:e.meta,...e.story}))},eA=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(c0,l),()=>t.channel.off(c0,l)},[t.channel]),[n]},tA=(e,t)=>{let r=rA(e,t);if(!r)throw new Error("No result when story was defined");return r},rA=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=o.useState(r.args);o.useEffect(()=>{let s=d=>{d.storyId===n&&l(d.args)};return t.channel.on(d0,s),()=>t.channel.off(d0,s)},[n,t.channel]);let i=o.useCallback(s=>t.channel.emit(vC,{storyId:n,updatedArgs:s}),[n,t.channel]),c=o.useCallback(s=>t.channel.emit(bC,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,c]};function nA(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var aA=e=>{var w;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=o.useContext(Ae),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:l,component:i,subcomponents:c}=n,s=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??s.include,u=e.exclude??s.exclude,h=e.sort??s.sort,[g,f,v]=tA(n,r),[m]=eA(n,r),E=s0(l,d,u);if(!(c&&Object.keys(c).length>0))return Object.keys(E).length>0||Object.keys(g).length>0?p.createElement(uo,{rows:E,sort:h,args:g,globals:m,updateArgs:f,resetArgs:v}):null;let x=DI(i),y=Object.fromEntries(Object.entries(c).map(([S,C])=>[S,{rows:s0(nA(C,a),d,u),sort:h}])),b={[x]:{rows:E,sort:h},...y};return p.createElement(FI,{tabs:b,sort:h,args:g,globals:m,updateArgs:f,resetArgs:v})},{document:X1}=Te,oA=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return p.createElement(Zo,null,t);let n=e&&e.split("-");return p.createElement(xl,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Rl(e,t){e.channel.emit(yC,t)}var po=Dc.a,lA=({hash:e,children:t})=>{let r=o.useContext(Ae);return p.createElement(po,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);X1.getElementById(a)&&Rl(r,e)}},t)},iA=e=>{let{href:t,target:r,children:n,...a}=e,l=o.useContext(Ae);if(t){if(t.startsWith("#"))return p.createElement(lA,{hash:t},n);if(r!=="_blank"&&!t.startsWith("https://"))return p.createElement(po,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Rl(l,i.currentTarget.getAttribute("href")))},target:r,...a},n)}return p.createElement(po,{...e})},Z1=["h1","h2","h3","h4","h5","h6"],sA=Z1.reduce((e,t)=>({...e,[t]:A(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),cA=A.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),dA=({as:e,id:t,children:r,...n})=>{let a=o.useContext(Ae),l=sA[e],i=`#${t}`;return p.createElement(l,{id:t,...n},p.createElement(cA,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:c=>{X1.getElementById(t)&&Rl(a,i)}},p.createElement(Qs,null)),r)},Il=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return p.createElement(dA,{as:t,id:r,...a},n);let l=t,{as:i,...c}=e;return p.createElement(l,{...te(c,t)})},uA=Z1.reduce((e,t)=>({...e,[t]:r=>p.createElement(Il,{as:t,...r})}),{}),pA=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Ed`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + This is often caused by not wrapping the child in a template string. + + This is invalid: + + # Some heading + A paragraph + + + Instead do: + + {\` + # Some heading + A paragraph + \`} + + `);return p.createElement(h1,{...e,options:{forceBlock:!0,overrides:{code:oA,a:iA,...uA,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},fA=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(fA||{}),hA=e=>{var t,r,n,a,l,i,c,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:d,component:u}=e.preparedMeta;return((a=(n=d.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(l=d.docs)==null?void 0:l.extractComponentDescription)==null?void 0:i.call(l,u,{component:u,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:u}}=e;return((s=(c=u.docs)==null?void 0:c.extractComponentDescription)==null?void 0:s.call(c,d,{component:d,parameters:u}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},fo=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=Yr(t||"meta"),n=hA(r);return n?p.createElement(pA,null,n):null},gA=A.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),mA=A.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),vA=A.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),bA=({title:e})=>e===null?null:typeof e=="string"?p.createElement(vA,null,e):e,yA=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:l})=>(o.useEffect(()=>{let i={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...l},c=setTimeout(()=>i0.init(i),100);return()=>{clearTimeout(c),i0.destroy()}},[t]),p.createElement(p.Fragment,null,p.createElement(gA,null,t?null:p.createElement(mA,null,p.createElement(bA,{title:e||null}),p.createElement("div",{className:"toc-wrapper"}))))),{document:wA,window:xA}=Te,EA=({context:e,theme:t,children:r})=>{var a,l,i,c,s;let n;try{n=(l=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:l.toc}catch{n=(s=(c=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:c.docs)==null?void 0:s.toc}return o.useEffect(()=>{let d;try{if(d=new URL(xA.parent.location.toString()),d.hash){let u=wA.getElementById(d.hash.substring(1));u&&setTimeout(()=>{VI(u)},200)}}catch{}}),p.createElement(Ae.Provider,{value:e},p.createElement(UI,{channel:e.channel},p.createElement(ts,{theme:Gp(t)},p.createElement(_C,{toc:n?p.createElement(yA,{className:"sbdocs sbdocs-toc--custom",...n}):null},r))))},SA=/\s*\/\s*/,CA=e=>{let t=e.trim().split(SA);return t&&t[t.length-1]||e},RA=({children:e})=>{let t=o.useContext(Ae),r=e||CA(t.storyById().title);return r?p.createElement(CC,{className:"sbdocs-title sb-unstyled"},r):null},IA=({children:e})=>{var n;let t=o.useContext(Ae),r=e||((n=t.storyById().parameters)==null?void 0:n.componentSubtitle);return r?p.createElement(RC,{className:"sbdocs-subtitle sb-unstyled"},r):null},AA=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return p.createElement(Qo,null,e);let r=globalThis.encodeURIComponent(e.toLowerCase());return p.createElement(Il,{as:"h3",id:r},e)},J1=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var c,s;let{story:l}=Yr(e||"story",["story"]),i=((s=(c=l.parameters.docs)==null?void 0:c.canvas)==null?void 0:s.withToolbar)??r;return p.createElement(q1,{storyId:l.id},t&&p.createElement(p.Fragment,null,p.createElement(AA,null,l.name),p.createElement(fo,{of:e})),p.createElement(QI,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},_A=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=Yr(t||"meta",["meta"]),n=o.useContext(Ae).componentStoriesFromCSFFile(r)[0];return n?p.createElement(J1,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},kA=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return p.createElement(Jo,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return p.createElement(Il,{as:"h2",id:n,...r},e)},OA=A(kA)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),TA=({title:e="Stories",includePrimary:t=!0})=>{var c;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=o.useContext(Ae),l=r(),{stories:{filter:i}={filter:void 0}}=((c=n.parameters)==null?void 0:c.docs)||{};return i&&(l=l.filter(s=>i(s,a(s)))),t||(l=l.slice(1)),!l||l.length===0?null:p.createElement(p.Fragment,null,p.createElement(OA,null,e),l.map(s=>s&&p.createElement(J1,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},MA=()=>{let e=Yr("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return p.createElement(p.Fragment,null,p.createElement(RA,null),p.createElement(IA,null),p.createElement(fo,{of:"meta"}),r?p.createElement(fo,{of:"story"}):null,p.createElement(_A,null),p.createElement(aA,null),r?null:p.createElement(TA,null))};function VA({context:e,docsParameter:t}){let r=t.container||EA,n=t.page||MA;return p.createElement(r,{context:e,theme:t.theme},p.createElement(n,null))}var UA=({of:e})=>{let t=o.useContext(Ae);e&&t.referenceMeta(e,!0);try{let r=t.storyById();return p.createElement(q1,{storyId:r.id})}catch{return null}};export{iA as A,oA as C,VA as D,Nt as F,uA as H,UA as M,Po as S,K7 as T,Vg as W,hh as a,Vs as b,Os as c,JI as d,N7 as e,$m as f,Fe as g,Dt as m,A as n,FA as s}; diff --git a/docs/assets/index-DrFu-skq.js b/docs/assets/index-DrFu-skq.js new file mode 100644 index 0000000..37c96b4 --- /dev/null +++ b/docs/assets/index-DrFu-skq.js @@ -0,0 +1,6 @@ +function l(o){for(var f=[],i=1;i-1}var xr=_r,Tr=gu;function br(u,e){var r=this.__data__,t=Tr(r,u);return t<0?(++this.size,r.push([u,e])):r[t][1]=e,this}var Sr=br,$r=Cr,wr=dr,Or=gr,Nr=xr,Pr=Sr;function uu(u){var e=-1,r=u==null?0:u.length;for(this.clear();++eC))return!1;var f=i.get(u),T=i.get(e);if(f&&T)return f==e&&T==u;var x=-1,F=!0,m=r&ha?new Ea:void 0;for(i.set(u,e),i.set(e,u);++x-1&&u%1==0&&u-1&&u%1==0&&u<=bn}var qu=Sn,$n=lu,wn=qu,On=cu,Nn="[object Arguments]",Pn="[object Array]",In="[object Boolean]",Rn="[object Date]",Ln="[object Error]",Mn="[object Function]",kn="[object Map]",Un="[object Number]",jn="[object Object]",Gn="[object RegExp]",Kn="[object Set]",Hn="[object String]",qn="[object WeakMap]",Wn="[object ArrayBuffer]",zn="[object DataView]",Vn="[object Float32Array]",Jn="[object Float64Array]",Qn="[object Int8Array]",Yn="[object Int16Array]",Xn="[object Int32Array]",Zn="[object Uint8Array]",ui="[object Uint8ClampedArray]",ei="[object Uint16Array]",ri="[object Uint32Array]",S={};S[Vn]=S[Jn]=S[Qn]=S[Yn]=S[Xn]=S[Zn]=S[ui]=S[ei]=S[ri]=!0;S[Nn]=S[Pn]=S[Wn]=S[In]=S[zn]=S[Rn]=S[Ln]=S[Mn]=S[kn]=S[Un]=S[jn]=S[Gn]=S[Kn]=S[Hn]=S[qn]=!1;function ti(u){return On(u)&&wn(u.length)&&!!S[$n(u)]}var ai=ti;function ni(u){return function(e){return u(e)}}var ii=ni,yu={exports:{}};yu.exports;(function(u,e){var r=Se,t=e&&!e.nodeType&&e,a=t&&!0&&u&&!u.nodeType&&u,i=a&&a.exports===t,n=i&&r.process,C=function(){try{var E=a&&a.require&&a.require("util").types;return E||n&&n.binding&&n.binding("util")}catch{}}();u.exports=C})(yu,yu.exports);var si=yu.exports,Di=ai,Ai=ii,Ae=si,oe=Ae&&Ae.isTypedArray,oi=oe?Ai(oe):Di,Me=oi,Fi=Cn,Ci=Ie,li=W,ci=Re,Ei=Le,fi=Me,pi=Object.prototype,Bi=pi.hasOwnProperty;function hi(u,e){var r=li(u),t=!r&&Ci(u),a=!r&&!t&&ci(u),i=!r&&!t&&!a&&fi(u),n=r||t||a||i,C=n?Fi(u.length,String):[],E=C.length;for(var f in u)(e||Bi.call(u,f))&&!(n&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Ei(f,E)))&&C.push(f);return C}var di=hi,vi=Object.prototype;function yi(u){var e=u&&u.constructor,r=typeof e=="function"&&e.prototype||vi;return u===r}var gi=yi;function mi(u,e){return function(r){return u(e(r))}}var ke=mi,_i=ke,xi=_i(Object.keys,Object),Ti=xi,bi=gi,Si=Ti,$i=Object.prototype,wi=$i.hasOwnProperty;function Oi(u){if(!bi(u))return Si(u);var e=[];for(var r in Object(u))wi.call(u,r)&&r!="constructor"&&e.push(r);return e}var Ni=Oi,Pi=Gu,Ii=qu;function Ri(u){return u!=null&&Ii(u.length)&&!Pi(u)}var Li=Ri,Mi=di,ki=Ni,Ui=Li;function ji(u){return Ui(u)?Mi(u):ki(u)}var Wu=ji,Gi=Za,Ki=on,Hi=Wu;function qi(u){return Gi(u,Hi,Ki)}var Wi=qi,Fe=Wi,zi=1,Vi=Object.prototype,Ji=Vi.hasOwnProperty;function Qi(u,e,r,t,a,i){var n=r&zi,C=Fe(u),E=C.length,f=Fe(e),T=f.length;if(E!=T&&!n)return!1;for(var x=E;x--;){var F=C[x];if(!(n?F in e:Ji.call(e,F)))return!1}var m=i.get(u),v=i.get(e);if(m&&v)return m==e&&v==u;var c=!0;i.set(u,e),i.set(e,u);for(var p=n;++x=48&&p<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function f(p){return p===32||p===9||p===11||p===12||p===160||p>=5760&&r.indexOf(p)>=0}function T(p){return p===10||p===13||p===8232||p===8233}function x(p){if(p<=65535)return String.fromCharCode(p);var I=String.fromCharCode(Math.floor((p-65536)/1024)+55296),L=String.fromCharCode((p-65536)%1024+56320);return I+L}for(t=new Array(128),i=0;i<128;++i)t[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(a=new Array(128),i=0;i<128;++i)a[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function F(p){return p<128?t[p]:e.NonAsciiIdentifierStart.test(x(p))}function m(p){return p<128?a[p]:e.NonAsciiIdentifierPart.test(x(p))}function v(p){return p<128?t[p]:u.NonAsciiIdentifierStart.test(x(p))}function c(p){return p<128?a[p]:u.NonAsciiIdentifierPart.test(x(p))}Ye.exports={isDecimalDigit:n,isHexDigit:C,isOctalDigit:E,isWhiteSpace:f,isLineTerminator:T,isIdentifierStartES5:F,isIdentifierPartES5:m,isIdentifierStartES6:v,isIdentifierPartES6:c}})();var Xe=Ye.exports,Ze={exports:{}};(function(){var u=Xe;function e(F){switch(F){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(F,m){return!m&&F==="yield"?!1:t(F,m)}function t(F,m){if(m&&e(F))return!0;switch(F.length){case 2:return F==="if"||F==="in"||F==="do";case 3:return F==="var"||F==="for"||F==="new"||F==="try";case 4:return F==="this"||F==="else"||F==="case"||F==="void"||F==="with"||F==="enum";case 5:return F==="while"||F==="break"||F==="catch"||F==="throw"||F==="const"||F==="yield"||F==="class"||F==="super";case 6:return F==="return"||F==="typeof"||F==="delete"||F==="switch"||F==="export"||F==="import";case 7:return F==="default"||F==="finally"||F==="extends";case 8:return F==="function"||F==="continue"||F==="debugger";case 10:return F==="instanceof";default:return!1}}function a(F,m){return F==="null"||F==="true"||F==="false"||r(F,m)}function i(F,m){return F==="null"||F==="true"||F==="false"||t(F,m)}function n(F){return F==="eval"||F==="arguments"}function C(F){var m,v,c;if(F.length===0||(c=F.charCodeAt(0),!u.isIdentifierStartES5(c)))return!1;for(m=1,v=F.length;m=v||(p=F.charCodeAt(m),!(56320<=p&&p<=57343)))return!1;c=E(c,p)}if(!I(c))return!1;I=u.isIdentifierPartES6}return!0}function T(F,m){return C(F)&&!a(F,m)}function x(F,m){return f(F)&&!i(F,m)}Ze.exports={isKeywordES5:r,isKeywordES6:t,isReservedWordES5:a,isReservedWordES6:i,isRestrictedWord:n,isIdentifierNameES5:C,isIdentifierNameES6:f,isIdentifierES5:T,isIdentifierES6:x}})();var Q1=Ze.exports;(function(){ou.ast=J1,ou.code=Xe,ou.keyword=Q1})();var Du={},X={};const Y1="doctrine",X1="JSDoc parser",Z1="https://github.com/eslint/doctrine",uA="lib/doctrine.js",eA="3.0.0",rA={node:">=6.0.0"},tA={lib:"./lib"},aA=["lib"],nA=[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],iA="eslint/doctrine",sA={coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},DA="Apache-2.0",AA={pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},oA={esutils:"^2.0.2"},FA={name:Y1,description:X1,homepage:Z1,main:uA,version:eA,engines:rA,directories:tA,files:aA,maintainers:nA,repository:iA,devDependencies:sA,license:DA,scripts:AA,dependencies:oA};function CA(u,e){if(!u)throw new Error(e||"unknown assertion error")}var lA=CA;(function(){var u;u=FA.version,X.VERSION=u;function e(t){this.name="DoctrineError",this.message=t}e.prototype=function(){var t=function(){};return t.prototype=Error.prototype,new t}(),e.prototype.constructor=e,X.DoctrineError=e;function r(t){throw new e(t)}X.throwError=r,X.assert=lA})();(function(){var u,e,r,t,a,i,n,C,E,f,T,x;E=ou,f=X,u={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},e={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function F(s){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(s))===-1&&!E.code.isWhiteSpace(s)&&!E.code.isLineTerminator(s)}function m(s,D,d,o){this._previous=s,this._index=D,this._token=d,this._value=o}m.prototype.restore=function(){i=this._previous,a=this._index,n=this._token,C=this._value},m.save=function(){return new m(i,a,n,C)};function v(s,D){return x&&(s.range=[D[0]+T,D[1]+T]),s}function c(){var s=r.charAt(a);return a+=1,s}function p(s){var D,d,o,A=0;for(d=s==="u"?4:2,D=0;D=0&&a=t)return e.ILLEGAL;if(D=r.charCodeAt(a+1),D===60)break}C+=c()}return e.NAME}function M(){var s;for(i=a;a=t)return n=e.EOF,n;switch(s=r.charCodeAt(a),s){case 39:case 34:return n=I(),n;case 58:return c(),n=e.COLON,n;case 44:return c(),n=e.COMMA,n;case 40:return c(),n=e.LPAREN,n;case 41:return c(),n=e.RPAREN,n;case 91:return c(),n=e.LBRACK,n;case 93:return c(),n=e.RBRACK,n;case 123:return c(),n=e.LBRACE,n;case 125:return c(),n=e.RBRACE,n;case 46:if(a+1=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57}function f(l){return l==="param"||l==="argument"||l==="arg"}function T(l){return l==="return"||l==="returns"}function x(l){return l==="property"||l==="prop"}function F(l){return f(l)||x(l)||l==="alias"||l==="this"||l==="mixes"||l==="requires"}function m(l){return F(l)||l==="const"||l==="constant"}function v(l){return x(l)||f(l)}function c(l){return x(l)||f(l)}function p(l){return f(l)||T(l)||l==="define"||l==="enum"||l==="implements"||l==="this"||l==="type"||l==="typedef"||x(l)}function I(l){return p(l)||l==="throws"||l==="const"||l==="constant"||l==="namespace"||l==="member"||l==="var"||l==="module"||l==="constructor"||l==="class"||l==="extends"||l==="augments"||l==="public"||l==="private"||l==="protected"}var L="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",z="("+L+"*(?:\\*"+L+`?)?)(.+|[\r +\u2028\u2029])`;function M(l){return l.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(z,"g"),"$2").replace(/\s*$/,"")}function _(l,k){for(var B=l.replace(/^\/\*\*?/,""),j=0,G=new RegExp(z,"g"),g;g=G.exec(B);)if(j+=g[1].length,g.index+g[0].length>k+j)return k+j+l.length-B.length;return l.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(l){var k,B,j,G,g,nu,Eu,V,fu;function $(){var o=g.charCodeAt(B);return B+=1,a.code.isLineTerminator(o)&&!(o===13&&g.charCodeAt(B)===10)&&(j+=1),String.fromCharCode(o)}function $u(){var o="";for($();B=o)return null;if(g.charCodeAt(B)===91)if(A)N=!0,y=$();else return null;if(y+=K(o),h)for(g.charCodeAt(B)===58&&(y==="module"||y==="external"||y==="event")&&(y+=$(),y+=K(o)),g.charCodeAt(B)===91&&g.charCodeAt(B+1)===93&&(y+=$(),y+=$());g.charCodeAt(B)===46||g.charCodeAt(B)===47||g.charCodeAt(B)===35||g.charCodeAt(B)===45||g.charCodeAt(B)===126;)y+=$(),y+=K(o);if(N){if(J(o),g.charCodeAt(B)===61){y+=$(),J(o);for(var R,q=1;B=o||g.charCodeAt(B)!==93)return null;y+=$()}return y}function wu(){for(;B=G?!1:(r.assert(g.charCodeAt(B)===64),!0)}function w(o){return g===nu?o:_(nu,o)}function O(o,A){this._options=o,this._title=A.toLowerCase(),this._tag={title:A,description:null},this._options.lineNumbers&&(this._tag.lineNumber=j),this._first=B-A.length-1,this._last=0,this._extra={}}O.prototype.addError=function(A){var h=Array.prototype.slice.call(arguments,1),y=A.replace(/%(\d)/g,function(N,b){return r.assert(b1&&(this._tag.default=o.slice(1).join("=")),this._tag.name=o[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!F(this._title))return!0;if(f(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},O.prototype.parseDescription=function(){var A=n(g,B,this._last).trim();return A&&(/^-\s+/.test(A)&&(A=A.substring(2)),this._tag.description=A),!0},O.prototype.parseCaption=function(){var A=n(g,B,this._last).trim(),h="",y="",N=A.indexOf(h),b=A.indexOf(y);return N>=0&&b>=0?(this._tag.caption=A.substring(N+h.length,b).trim(),this._tag.description=A.substring(b+y.length).trim()):this._tag.description=A,!0},O.prototype.parseKind=function(){var A,h;return h={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},A=n(g,B,this._last).trim(),this._tag.kind=A,!(!i(h,A)&&!this.addError("Invalid kind name '%0'",A))},O.prototype.parseAccess=function(){var A;return A=n(g,B,this._last).trim(),this._tag.access=A,!(A!=="private"&&A!=="protected"&&A!=="public"&&!this.addError("Invalid access name '%0'",A))},O.prototype.parseThis=function(){var A=n(g,B,this._last).trim();if(A&&A.charAt(0)==="{"){var h=this.parseType();return h&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},O.prototype.parseVariation=function(){var A,h;return h=n(g,B,this._last).trim(),A=parseFloat(h,10),this._tag.variation=A,!(isNaN(A)&&!this.addError("Invalid variation '%0'",h))},O.prototype.ensureEnd=function(){var o=n(g,B,this._last).trim();return!(o&&!this.addError("Unknown content '%0'",o))},O.prototype.epilogue=function(){var A;return A=this._tag.description,!(c(this._title)&&!this._tag.type&&A&&A.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!V&&!this.addError("Missing or invalid tag name")))},k={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},O.prototype.parse=function(){var A,h,y,N;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=iu(this._title),this._options.range&&(this._tag.range=[this._first,g.slice(0,this._last).replace(/\s*$/,"").length].map(w)),i(k,this._title)?y=k[this._title]:y=["parseType","parseName","parseDescription","epilogue"],A=0,h=y.length;Au.replace(ur,""),pA=u=>ur.test(u),er=u=>{let e=fA(u);return pA(u)||Number.isNaN(Number(e))?e:Number(e)},BA=u=>{switch(u.type){case"function":return{name:"function"};case"object":let e={};return u.signature.properties.forEach(r=>{e[r.key]=Fu(r.value)}),{name:"object",value:e};default:throw new Error(`Unknown: ${u}`)}},Fu=u=>{var a,i,n,C;let{name:e,raw:r}=u,t={};switch(typeof r<"u"&&(t.raw=r),u.name){case"string":case"number":case"symbol":case"boolean":return{...t,name:e};case"Array":return{...t,name:"array",value:u.elements.map(Fu)};case"signature":return{...t,...BA(u)};case"union":let E;return(a=u.elements)!=null&&a.every(f=>f.name==="literal")?E={...t,name:"enum",value:(i=u.elements)==null?void 0:i.map(f=>er(f.value))}:E={...t,name:e,value:(n=u.elements)==null?void 0:n.map(Fu)},E;case"intersection":return{...t,name:e,value:(C=u.elements)==null?void 0:C.map(Fu)};default:return{...t,name:"other",value:e}}},hA=u=>u.name==="literal",dA=u=>u.value.replace(/['|"]/g,""),vA=u=>{switch(u.type){case"function":return{name:"function"};case"object":let e={};return u.signature.properties.forEach(r=>{e[r.key]=Cu(r.value)}),{name:"object",value:e};default:throw new Error(`Unknown: ${u}`)}},Cu=u=>{var a,i,n,C;let{name:e,raw:r}=u,t={};switch(typeof r<"u"&&(t.raw=r),u.name){case"literal":return{...t,name:"other",value:u.value};case"string":case"number":case"symbol":case"boolean":return{...t,name:e};case"Array":return{...t,name:"array",value:u.elements.map(Cu)};case"signature":return{...t,...vA(u)};case"union":return(a=u.elements)!=null&&a.every(hA)?{...t,name:"enum",value:(i=u.elements)==null?void 0:i.map(dA)}:{...t,name:e,value:(n=u.elements)==null?void 0:n.map(Cu)};case"intersection":return{...t,name:e,value:(C=u.elements)==null?void 0:C.map(Cu)};default:return{...t,name:"other",value:e}}},yA=/^\(.*\) => /,Au=u=>{let{name:e,raw:r,computed:t,value:a}=u,i={};switch(typeof r<"u"&&(i.raw=r),e){case"enum":{let C=t?a:a.map(E=>er(E.value));return{...i,name:e,value:C}}case"string":case"number":case"symbol":return{...i,name:e};case"func":return{...i,name:"function"};case"bool":case"boolean":return{...i,name:"boolean"};case"arrayOf":case"array":return{...i,name:"array",value:a&&Au(a)};case"object":return{...i,name:e};case"objectOf":return{...i,name:e,value:Au(a)};case"shape":case"exact":let n=V1(a,C=>Au(C));return{...i,name:"object",value:n};case"union":return{...i,name:"union",value:a.map(C=>Au(C))};case"instanceOf":case"element":case"elementType":default:{if((e==null?void 0:e.indexOf("|"))>0)try{let f=e.split("|").map(T=>JSON.parse(T));return{...i,name:"enum",value:f}}catch{}let C=a?`${e}(${a})`:e,E=yA.test(e)?"function":"other";return{...i,name:E,value:C}}}},Qu=u=>{let{type:e,tsType:r,flowType:t}=u;return e!=null?Au(e):r!=null?Fu(r):t!=null?Cu(t):null},gA=(u=>(u.JAVASCRIPT="JavaScript",u.FLOW="Flow",u.TYPESCRIPT="TypeScript",u.UNKNOWN="Unknown",u))(gA||{}),mA=["null","undefined"];function Yu(u){return mA.some(e=>e===u)}var _A=u=>{if(!u)return"";if(typeof u=="string")return u;throw new Error(`Description: expected string, got: ${JSON.stringify(u)}`)};function rr(u){return!!u.__docgenInfo}function xA(u){return u!=null&&Object.keys(u).length>0}function TA(u,e){return rr(u)?u.__docgenInfo[e]:null}function bA(u){return rr(u)?_A(u.__docgenInfo.description):""}function SA(u){return u!=null&&u.includes("@")}function $A(u,e){let r;try{r=cA.parse(u??"",{tags:e,sloppy:!0})}catch(t){throw console.error(t),new Error("Cannot parse JSDoc tags.")}return r}var wA={tags:["param","arg","argument","returns","ignore","deprecated"]},OA=(u,e=wA)=>{if(!SA(u))return{includesJsDoc:!1,ignore:!1};let r=$A(u,e.tags),t=NA(r);return t.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description,extractedTags:t}};function NA(u){let e={params:null,deprecated:null,returns:null,ignore:!1};for(let r=0;re.includes("null")?e.replace("-null","").replace(".null",""):u.name,getTypeName:()=>u.type!=null?Z(u.type):null}:null}function IA(u){return u.title!=null?u.description:null}function RA(u){return u.type!=null?{type:u.type,description:u.description,getTypeName:()=>Z(u.type)}:null}function Z(u){return(u==null?void 0:u.type)==="NameExpression"?u.name:(u==null?void 0:u.type)==="RecordType"?`({${u.fields.map(e=>{if(e.type==="FieldType"&&e.value!=null){let r=Z(e.value);return`${e.key}: ${r}`}return e.key}).join(", ")}})`:(u==null?void 0:u.type)==="UnionType"?`(${u.elements.map(Z).join("|")})`:(u==null?void 0:u.type)==="ArrayType"?"[]":(u==null?void 0:u.type)==="TypeApplication"&&u.expression!=null&&u.expression.name==="Array"?`${Z(u.applications[0])}[]`:(u==null?void 0:u.type)==="NullableType"||(u==null?void 0:u.type)==="NonNullableType"||(u==null?void 0:u.type)==="OptionalType"?Z(u.expression):(u==null?void 0:u.type)==="AllLiteral"?"any":null}function tr(u){return u.length>90}function LA(u){return u.length>50}function P(u,e){return u===e?{summary:u}:{summary:u,detail:e}}function ar({name:u,value:e,elements:r,raw:t}){return e??(r!=null?r.map(ar).join(" | "):t??u)}function MA({name:u,raw:e,elements:r}){return r!=null?P(r.map(ar).join(" | ")):e!=null?P(e.replace(/^\|\s*/,"")):P(u)}function kA({type:u,raw:e}){return e!=null?P(e):P(u)}function UA({type:u,raw:e}){return e!=null?tr(e)?P(u,e):P(e):P(u)}function jA(u){let{type:e}=u;return e==="object"?UA(u):kA(u)}function GA({name:u,raw:e}){return e!=null?tr(e)?P(u,e):P(e):P(u)}function KA(u){if(u==null)return null;switch(u.name){case"union":return MA(u);case"signature":return jA(u);default:return GA(u)}}function HA(u,e){if(u!=null){let{value:r}=u;if(!Yu(r))return LA(r)?P(e==null?void 0:e.name,r):P(r)}return null}var qA=(u,e)=>{let{flowType:r,description:t,required:a,defaultValue:i}=e;return{name:u,type:KA(r),required:a,description:t,defaultValue:HA(i??null,r??null)}};function WA({tsType:u,required:e}){if(u==null)return null;let r=u.name;return e||(r=r.replace(" | undefined","")),P(["Array","Record","signature"].includes(u.name)?u.raw:r)}function zA({defaultValue:u}){if(u!=null){let{value:e}=u;if(!Yu(e))return P(e)}return null}var VA=(u,e)=>{let{description:r,required:t}=e;return{name:u,type:WA(e),required:t,description:r,defaultValue:zA(e)}};function JA(u){return u!=null?P(u.name):null}function QA(u){let{computed:e,func:r}=u;return typeof e>"u"&&typeof r>"u"}function YA(u){return u?u.name==="string"?!0:u.name==="enum"?Array.isArray(u.value)&&u.value.every(({value:e})=>typeof e=="string"&&e[0]==='"'&&e[e.length-1]==='"'):!1:!1}function XA(u,e){if(u!=null){let{value:r}=u;if(!Yu(r))return QA(u)&&YA(e)?P(JSON.stringify(r)):P(r)}return null}function nr(u,e,r){let{description:t,required:a,defaultValue:i}=r;return{name:u,type:JA(e),required:a,description:t,defaultValue:XA(i,e)}}function Su(u,e){var r;if(e!=null&&e.includesJsDoc){let{description:t,extractedTags:a}=e;t!=null&&(u.description=e.description);let i={...a,params:(r=a==null?void 0:a.params)==null?void 0:r.map(n=>({name:n.getPrettyName(),description:n.description}))};Object.values(i).filter(Boolean).length>0&&(u.jsDocTags=i)}return u}var ZA=(u,e,r)=>{let t=nr(u,e.type,e);return t.sbType=Qu(e),Su(t,r)},uo=(u,e,r)=>{let t=VA(u,e);return t.sbType=Qu(e),Su(t,r)},eo=(u,e,r)=>{let t=qA(u,e);return t.sbType=Qu(e),Su(t,r)},ro=(u,e,r)=>{let t=nr(u,{name:"unknown"},e);return Su(t,r)},ir=u=>{switch(u){case"JavaScript":return ZA;case"TypeScript":return uo;case"Flow":return eo;default:return ro}},sr=u=>u.type!=null?"JavaScript":u.flowType!=null?"Flow":u.tsType!=null?"TypeScript":"Unknown",to=u=>{let e=sr(u[0]),r=ir(e);return u.map(t=>{var i;let a=t;return(i=t.type)!=null&&i.elements&&(a={...t,type:{...t.type,value:t.type.elements}}),Dr(a.name,a,e,r)})},ao=u=>{let e=Object.keys(u),r=sr(u[e[0]]),t=ir(r);return e.map(a=>{let i=u[a];return i!=null?Dr(a,i,r,t):null}).filter(Boolean)},oo=(u,e)=>{let r=TA(u,e);return xA(r)?Array.isArray(r)?to(r):ao(r):[]};function Dr(u,e,r,t){let a=OA(e.description);return a.includesJsDoc&&a.ignore?null:{propDef:t(u,e,a),jsDocTags:a.extractedTags,docgenInfo:e,typeSystem:r}}function Fo(u){return u!=null?bA(u):""}var Co=u=>{let{component:e,argTypes:r,parameters:{docs:t={}}}=u,{extractArgTypes:a}=t,i=a&&e?a(e):{};return i?EA(i,r):r},no="storybook/docs",lo=`${no}/snippet-rendered`,io=(u=>(u.AUTO="auto",u.CODE="code",u.DYNAMIC="dynamic",u))(io||{});export{gi as A,di as B,Li as C,Za as D,or as E,x1 as F,As as G,Ta as H,oa as I,ca as J,Wu as K,ga as L,_u as M,ds as N,si as O,ii as P,Oe as Q,Re as R,lo as S,gA as T,Wi as U,H as _,zu as a,lu as b,Ao as c,cu as d,W as e,Fo as f,Co as g,P as h,ju as i,TA as j,io as k,Do as l,rr as m,oo as n,LA as o,tr as p,w1 as q,be as r,ze as s,Le as t,ou as u,bu as v,Ve as w,Va as x,on as y,tn as z}; diff --git a/docs/assets/index-PqR-_bA4.js b/docs/assets/index-PqR-_bA4.js new file mode 100644 index 0000000..d80ad01 --- /dev/null +++ b/docs/assets/index-PqR-_bA4.js @@ -0,0 +1,24 @@ +import{r as za,g as Pa}from"./index-BBkUAzwr.js";var Co={exports:{}},ve={},xo={exports:{}},_o={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function n(C,z){var P=C.length;C.push(z);e:for(;0>>1,Y=C[H];if(0>>1;Hl(sl,P))mnl(Xt,sl)?(C[H]=Xt,C[mn]=P,H=mn):(C[H]=sl,C[pn]=P,H=pn);else if(mnl(Xt,P))C[H]=Xt,C[mn]=P,H=mn;else break e}}return z}function l(C,z){var P=C.sortIndex-z.sortIndex;return P!==0?P:C.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,o=u.now();e.unstable_now=function(){return u.now()-o}}var s=[],d=[],v=1,m=null,p=3,g=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(C){for(var z=t(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=C)r(d),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(d)}}function h(C){if(k=!1,f(C),!w)if(t(s)!==null)w=!0,ul(E);else{var z=t(d);z!==null&&ol(h,z.startTime-C)}}function E(C,z){w=!1,k&&(k=!1,c(N),N=-1),g=!0;var P=p;try{for(f(z),m=t(s);m!==null&&(!(m.expirationTime>z)||C&&!Ce());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var Y=H(m.expirationTime<=z);z=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===t(s)&&r(s),f(z)}else r(s);m=t(s)}if(m!==null)var Yt=!0;else{var pn=t(d);pn!==null&&ol(h,pn.startTime-z),Yt=!1}return Yt}finally{m=null,p=P,g=!1}}var x=!1,_=null,N=-1,B=5,T=-1;function Ce(){return!(e.unstable_now()-TC||125H?(C.sortIndex=P,n(d,C),t(s)===null&&C===t(d)&&(k?(c(N),N=-1):k=!0,ol(h,P-H))):(C.sortIndex=Y,n(s,C),w||g||(w=!0,ul(E))),C},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(C){var z=p;return function(){var P=p;p=z;try{return C.apply(this,arguments)}finally{p=P}}}})(_o);xo.exports=_o;var Ta=xo.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var No=za,me=Ta;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ol=Object.prototype.hasOwnProperty,La=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yu={},gu={};function Ma(e){return Ol.call(gu,e)?!0:Ol.call(yu,e)?!1:La.test(e)?gu[e]=!0:(yu[e]=!0,!1)}function Da(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ra(e,n,t,r){if(n===null||typeof n>"u"||Da(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ie(e,n,t,r,l,i,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=u}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];q[n]=new ie(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){q[e]=new ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){q[e]=new ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){q[e]=new ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){q[e]=new ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){q[e]=new ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ni=/[\-:]([a-z])/g;function zi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!1,!1)});q.xlinkHref=new ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pi(e,n,t,r){var l=q.hasOwnProperty(n)?q[n]:null;(l!==null?l.type!==0:r||!(2o||l[u]!==i[o]){var s=` +`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{cl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?pt(e):""}function Oa(e){switch(e.tag){case 5:return pt(e.type);case 16:return pt("Lazy");case 13:return pt("Suspense");case 19:return pt("SuspenseList");case 0:case 2:case 15:return e=fl(e.type,!1),e;case 11:return e=fl(e.type.render,!1),e;case 1:return e=fl(e.type,!0),e;default:return""}}function Ul(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mn:return"Fragment";case Ln:return"Portal";case Fl:return"Profiler";case Ti:return"StrictMode";case Il:return"Suspense";case jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case To:return(e.displayName||"Context")+".Consumer";case Po:return(e._context.displayName||"Context")+".Provider";case Li:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mi:return n=e.displayName||null,n!==null?n:Ul(e.type)||"Memo";case Ye:n=e._payload,e=e._init;try{return Ul(e(n))}catch{}}return null}function Fa(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ul(n);case 8:return n===Ti?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mo(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ia(e){var n=Mo(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Zt(e){e._valueTracker||(e._valueTracker=Ia(e))}function Do(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Mo(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function ku(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=sn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ro(e,n){n=n.checked,n!=null&&Pi(e,"checked",n,!1)}function Al(e,n){Ro(e,n);var t=sn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Bl(e,n.type,t):n.hasOwnProperty("defaultValue")&&Bl(e,n.type,sn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Su(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Bl(e,n,t){(n!=="number"||Sr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var mt=Array.isArray;function Hn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=Jt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var yt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ja=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(e){ja.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),yt[n]=yt[e]})});function jo(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||yt.hasOwnProperty(e)&&yt[e]?(""+n).trim():n+"px"}function Uo(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=jo(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Ua=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wl(e,n){if(n){if(Ua[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function $l(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kl=null;function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Qn=null,Wn=null;function xu(e){if(e=$t(e)){if(typeof Yl!="function")throw Error(y(280));var n=e.stateNode;n&&(n=Gr(n),Yl(e.stateNode,e.type,n))}}function Vo(e){Qn?Wn?Wn.push(e):Wn=[e]:Qn=e}function Ao(){if(Qn){var e=Qn,n=Wn;if(Wn=Qn=null,xu(e),n)for(e=0;e>>=0,e===0?32:31-(Ga(e)/Za|0)|0}var qt=64,bt=4194304;function vt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _r(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=t&268435455;if(u!==0){var o=u&~l;o!==0?r=vt(o):(i&=u,i!==0&&(r=vt(i)))}else u=t&~l,u!==0?r=vt(u):i!==0&&(r=vt(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Qt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Pe(n),e[n]=t}function ec(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=wt),Ru=" ",Ou=!1;function us(e,n){switch(e){case"keyup":return Pc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function os(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Lc(e,n){switch(e){case"compositionend":return os(n);case"keypress":return n.which!==32?null:(Ou=!0,Ru);case"textInput":return e=n.data,e===Ru&&Ou?null:e;default:return null}}function Mc(e,n){if(Dn)return e==="compositionend"||!Ai&&us(e,n)?(e=ls(),dr=ji=Je=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Uu(t)}}function fs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?fs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ds(){for(var e=window,n=Sr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Sr(e.document)}return n}function Bi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Ac(e){var n=ds(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&fs(t.ownerDocument.documentElement,t)){if(r!==null&&Bi(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Vu(t,i);var u=Vu(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Rn=null,bl=null,St=null,ei=!1;function Au(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ei||Rn==null||Rn!==Sr(r)||(r=Rn,"selectionStart"in r&&Bi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),St&&Rt(St,r)||(St=r,r=Pr(bl,"onSelect"),0In||(e.current=ui[In],ui[In]=null,In--)}function D(e,n){In++,ui[In]=e.current,e.current=n}var an={},te=fn(an),se=fn(!1),En=an;function Gn(e,n){var t=e.type.contextTypes;if(!t)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function ae(e){return e=e.childContextTypes,e!=null}function Lr(){O(se),O(te)}function Yu(e,n,t){if(te.current!==an)throw Error(y(168));D(te,n),D(se,t)}function Ss(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Fa(e)||"Unknown",l));return V({},t,r)}function Mr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,En=te.current,D(te,e),D(se,se.current),!0}function Xu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=Ss(e,n,En),r.__reactInternalMemoizedMergedChildContext=e,O(se),O(te),D(te,e)):O(se),D(se,t)}var je=null,Zr=!1,_l=!1;function Es(e){je===null?je=[e]:je.push(e)}function qc(e){Zr=!0,Es(e)}function dn(){if(!_l&&je!==null){_l=!0;var e=0,n=M;try{var t=je;for(M=1;e>=u,l-=u,Ue=1<<32-Pe(n)+l|t<N?(B=_,_=null):B=_.sibling;var T=p(c,_,f[N],h);if(T===null){_===null&&(_=B);break}e&&_&&T.alternate===null&&n(c,_),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T,_=B}if(N===f.length)return t(c,_),I&&vn(c,N),E;if(_===null){for(;NN?(B=_,_=null):B=_.sibling;var Ce=p(c,_,T.value,h);if(Ce===null){_===null&&(_=B);break}e&&_&&Ce.alternate===null&&n(c,_),a=i(Ce,a,N),x===null?E=Ce:x.sibling=Ce,x=Ce,_=B}if(T.done)return t(c,_),I&&vn(c,N),E;if(_===null){for(;!T.done;N++,T=f.next())T=m(c,T.value,h),T!==null&&(a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return I&&vn(c,N),E}for(_=r(c,_);!T.done;N++,T=f.next())T=g(_,c,N,T.value,h),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?N:T.key),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return e&&_.forEach(function(rt){return n(c,rt)}),I&&vn(c,N),E}function F(c,a,f,h){if(typeof f=="object"&&f!==null&&f.type===Mn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Gt:e:{for(var E=f.key,x=a;x!==null;){if(x.key===E){if(E=f.type,E===Mn){if(x.tag===7){t(c,x.sibling),a=l(x,f.props.children),a.return=c,c=a;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ye&&no(E)===x.type){t(c,x.sibling),a=l(x,f.props),a.ref=ct(c,x,f),a.return=c,c=a;break e}t(c,x);break}else n(c,x);x=x.sibling}f.type===Mn?(a=Sn(f.props.children,c.mode,h,f.key),a.return=c,c=a):(h=kr(f.type,f.key,f.props,null,c.mode,h),h.ref=ct(c,a,f),h.return=c,c=h)}return u(c);case Ln:e:{for(x=f.key;a!==null;){if(a.key===x)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){t(c,a.sibling),a=l(a,f.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Rl(f,c.mode,h),a.return=c,c=a}return u(c);case Ye:return x=f._init,F(c,a,x(f._payload),h)}if(mt(f))return w(c,a,f,h);if(it(f))return k(c,a,f,h);ur(c,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,f),a.return=c,c=a):(t(c,a),a=Dl(f,c.mode,h),a.return=c,c=a),u(c)):t(c,a)}return F}var Jn=Ls(!0),Ms=Ls(!1),Kt={},Fe=fn(Kt),jt=fn(Kt),Ut=fn(Kt);function wn(e){if(e===Kt)throw Error(y(174));return e}function Zi(e,n){switch(D(Ut,n),D(jt,e),D(Fe,Kt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ql(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ql(n,e)}O(Fe),D(Fe,n)}function qn(){O(Fe),O(jt),O(Ut)}function Ds(e){wn(Ut.current);var n=wn(Fe.current),t=Ql(n,e.type);n!==t&&(D(jt,e),D(Fe,t))}function Ji(e){jt.current===e&&(O(Fe),O(jt))}var j=fn(0);function jr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Nl=[];function qi(){for(var e=0;et?t:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),n()}finally{M=t,zl.transition=r}}function Xs(){return Ee().memoizedState}function tf(e,n,t){var r=un(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Gs(e))Zs(n,t);else if(t=Ns(e,n,t,r),t!==null){var l=le();Te(t,e,r,l),Js(t,n,r)}}function rf(e,n,t){var r=un(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))Zs(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var u=n.lastRenderedState,o=i(u,t);if(l.hasEagerState=!0,l.eagerState=o,Le(o,u)){var s=n.interleaved;s===null?(l.next=l,Xi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=Ns(e,n,l,r),t!==null&&(l=le(),Te(t,e,r,l),Js(t,n,r))}}function Gs(e){var n=e.alternate;return e===U||n!==null&&n===U}function Zs(e,n){Et=Ur=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Js(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Oi(e,t)}}var Vr={readContext:Se,useCallback:b,useContext:b,useEffect:b,useImperativeHandle:b,useInsertionEffect:b,useLayoutEffect:b,useMemo:b,useReducer:b,useRef:b,useState:b,useDebugValue:b,useDeferredValue:b,useTransition:b,useMutableSource:b,useSyncExternalStore:b,useId:b,unstable_isNewReconciler:!1},lf={readContext:Se,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:Se,useEffect:ro,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,hr(4194308,4,Qs.bind(null,n,e),t)},useLayoutEffect:function(e,n){return hr(4194308,4,e,n)},useInsertionEffect:function(e,n){return hr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=tf.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:to,useDebugValue:ru,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=to(!1),n=e[0];return e=nf.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=U,l=De();if(I){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),G===null)throw Error(y(349));xn&30||Fs(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,ro(js.bind(null,r,i,e),[e]),r.flags|=2048,Bt(9,Is.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=De(),n=G.identifierPrefix;if(I){var t=Ve,r=Ue;t=(r&~(1<<32-Pe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Vt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Re]=n,e[It]=r,ua(e,n,!1,!1),n.stateNode=e;e:{switch(u=$l(t,r),t){case"dialog":R("cancel",e),R("close",e),l=r;break;case"iframe":case"object":case"embed":R("load",e),l=r;break;case"video":case"audio":for(l=0;let&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304)}else{if(!r)if(e=jr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),ft(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!I)return ee(n),null}else 2*Q()-i.renderingStartTime>et&&t!==1073741824&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=Q(),n.sibling=null,t=j.current,D(j,r?t&1|2:t&1),n):(ee(n),null);case 22:case 23:return au(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?fe&1073741824&&(ee(n),n.subtreeFlags&6&&(n.flags|=8192)):ee(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function pf(e,n){switch(Qi(n),n.tag){case 1:return ae(n.type)&&Lr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return qn(),O(se),O(te),qi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Ji(n),null;case 13:if(O(j),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));Zn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return O(j),null;case 4:return qn(),null;case 10:return Yi(n.type._context),null;case 22:case 23:return au(),null;case 24:return null;default:return null}}var sr=!1,ne=!1,mf=typeof WeakSet=="function"?WeakSet:Set,S=null;function An(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){A(e,n,r)}else t.current=null}function gi(e,n,t){try{t()}catch(r){A(e,n,r)}}var po=!1;function vf(e,n){if(ni=Nr,e=ds(),Bi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(o=u+l),m!==i||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++v===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ti={focusedElem:e,selectionRange:t},Nr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:_e(n.type,k),F);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){A(n,n.return,h)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=po,po=!1,w}function Ct(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&gi(n,t,i)}l=l.next}while(l!==r)}}function br(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function wi(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function aa(e){var n=e.alternate;n!==null&&(e.alternate=null,aa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Re],delete n[It],delete n[ii],delete n[Zc],delete n[Jc])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ca(e){return e.tag===5||e.tag===3||e.tag===4}function mo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ca(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ki(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Tr));else if(r!==4&&(e=e.child,e!==null))for(ki(e,n,t),e=e.sibling;e!==null;)ki(e,n,t),e=e.sibling}function Si(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Si(e,n,t),e=e.sibling;e!==null;)Si(e,n,t),e=e.sibling}var Z=null,Ne=!1;function Ke(e,n,t){for(t=t.child;t!==null;)fa(e,n,t),t=t.sibling}function fa(e,n,t){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount($r,t)}catch{}switch(t.tag){case 5:ne||An(t,n);case 6:var r=Z,l=Ne;Z=null,Ke(e,n,t),Z=r,Ne=l,Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Z.removeChild(t.stateNode));break;case 18:Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?xl(e.parentNode,t):e.nodeType===1&&xl(e,t),Mt(e)):xl(Z,t.stateNode));break;case 4:r=Z,l=Ne,Z=t.stateNode.containerInfo,Ne=!0,Ke(e,n,t),Z=r,Ne=l;break;case 0:case 11:case 14:case 15:if(!ne&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&gi(t,n,u),l=l.next}while(l!==r)}Ke(e,n,t);break;case 1:if(!ne&&(An(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){A(t,n,o)}Ke(e,n,t);break;case 21:Ke(e,n,t);break;case 22:t.mode&1?(ne=(r=ne)||t.memoizedState!==null,Ke(e,n,t),ne=r):Ke(e,n,t);break;default:Ke(e,n,t)}}function vo(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new mf),n.forEach(function(r){var l=xf.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function xe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yf(r/1960))-r,10e?16:e,qe===null)var r=!1;else{if(e=qe,qe=null,Hr=0,L&6)throw Error(y(331));var l=L;for(L|=4,S=e.current;S!==null;){var i=S,u=i.child;if(S.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sQ()-ou?kn(e,0):uu|=t),ce(e,n)}function wa(e,n){n===0&&(e.mode&1?(n=bt,bt<<=1,!(bt&130023424)&&(bt=4194304)):n=1);var t=le();e=Qe(e,n),e!==null&&(Qt(e,n,t),ce(e,t))}function Cf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),wa(e,t)}function xf(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),wa(e,t)}var ka;ka=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||se.current)oe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return oe=!1,ff(e,n,t);oe=!!(e.flags&131072)}else oe=!1,I&&n.flags&1048576&&Cs(n,Rr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;yr(e,n),e=n.pendingProps;var l=Gn(n,te.current);Kn(n,t),l=eu(null,n,r,e,l,t);var i=nu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ae(r)?(i=!0,Mr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Gi(n),l.updater=Jr,n.stateNode=l,l._reactInternals=n,fi(n,r,e,t),n=mi(null,n,r,!0,i,t)):(n.tag=0,I&&i&&Hi(n),re(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(yr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Nf(r),e=_e(r,e),l){case 0:n=pi(null,n,r,e,t);break e;case 1:n=ao(null,n,r,e,t);break e;case 11:n=oo(null,n,r,e,t);break e;case 14:n=so(null,n,r,_e(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),pi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),ao(e,n,r,l,t);case 3:e:{if(ra(n),e===null)throw Error(y(387));r=n.pendingProps,i=n.memoizedState,l=i.element,zs(e,n),Ir(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=bn(Error(y(423)),n),n=co(e,n,r,t,l);break e}else if(r!==l){l=bn(Error(y(424)),n),n=co(e,n,r,t,l);break e}else for(de=tn(n.stateNode.containerInfo.firstChild),pe=n,I=!0,ze=null,t=Ms(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zn(),r===l){n=We(e,n,t);break e}re(e,n,r,t)}n=n.child}return n;case 5:return Ds(n),e===null&&si(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,ri(r,l)?u=null:i!==null&&ri(r,i)&&(n.flags|=32),ta(e,n),re(e,n,u,t),n.child;case 6:return e===null&&si(n),null;case 13:return la(e,n,t);case 4:return Zi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jn(n,null,r,t):re(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),oo(e,n,r,l,t);case 7:return re(e,n,n.pendingProps,t),n.child;case 8:return re(e,n,n.pendingProps.children,t),n.child;case 12:return re(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,D(Or,r._currentValue),r._currentValue=u,i!==null)if(Le(i.value,u)){if(i.children===l.children&&!se.current){n=We(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ae(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),ai(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(y(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),ai(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}re(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Kn(n,t),l=Se(l),r=r(l),n.flags|=1,re(e,n,r,t),n.child;case 14:return r=n.type,l=_e(r,n.pendingProps),l=_e(r.type,l),so(e,n,r,l,t);case 15:return ea(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),yr(e,n),n.tag=1,ae(r)?(e=!0,Mr(n)):e=!1,Kn(n,t),Ts(n,r,l),fi(n,r,l,t),mi(null,n,r,!0,e,t);case 19:return ia(e,n,t);case 22:return na(e,n,t)}throw Error(y(156,n.tag))};function Sa(e,n){return Yo(e,n)}function _f(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,n,t,r){return new _f(e,n,t,r)}function fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nf(e){if(typeof e=="function")return fu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Li)return 11;if(e===Mi)return 14}return 2}function on(e,n){var t=e.alternate;return t===null?(t=we(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function kr(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")fu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Mn:return Sn(t.children,l,i,n);case Ti:u=8,l|=8;break;case Fl:return e=we(12,t,n,l|2),e.elementType=Fl,e.lanes=i,e;case Il:return e=we(13,t,n,l),e.elementType=Il,e.lanes=i,e;case jl:return e=we(19,t,n,l),e.elementType=jl,e.lanes=i,e;case Lo:return nl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Po:u=10;break e;case To:u=9;break e;case Li:u=11;break e;case Mi:u=14;break e;case Ye:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=we(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Sn(e,n,t,r){return e=we(7,e,r,n),e.lanes=t,e}function nl(e,n,t,r){return e=we(22,e,r,n),e.elementType=Lo,e.lanes=t,e.stateNode={isHidden:!1},e}function Dl(e,n,t){return e=we(6,e,null,n),e.lanes=t,e}function Rl(e,n,t){return n=we(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function zf(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pl(0),this.expirationTimes=pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function du(e,n,t,r,l,i,u,o,s){return e=new zf(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=we(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gi(i),e}function Pf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_a)}catch(e){console.error(e)}}_a(),Co.exports=ve;var Rf=Co.exports;const Ff=Pa(Rf);export{Ff as R,Rf as r}; diff --git a/docs/assets/index-z5U8iC57.js b/docs/assets/index-z5U8iC57.js new file mode 100644 index 0000000..d618b21 --- /dev/null +++ b/docs/assets/index-z5U8iC57.js @@ -0,0 +1 @@ +import{R as e}from"./index-BBkUAzwr.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function m(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{m as MDXProvider,u as useMDXComponents}; diff --git a/docs/assets/jsx-runtime-DRTy3Uxn.js b/docs/assets/jsx-runtime-DRTy3Uxn.js new file mode 100644 index 0000000..5b5275d --- /dev/null +++ b/docs/assets/jsx-runtime-DRTy3Uxn.js @@ -0,0 +1,9 @@ +import{r as l}from"./index-BBkUAzwr.js";var f={exports:{}},n={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var u=l,m=Symbol.for("react.element"),x=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,a=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function i(t,r,p){var e,o={},s=null,_=null;p!==void 0&&(s=""+p),r.key!==void 0&&(s=""+r.key),r.ref!==void 0&&(_=r.ref);for(e in r)y.call(r,e)&&!v.hasOwnProperty(e)&&(o[e]=r[e]);if(t&&t.defaultProps)for(e in r=t.defaultProps,r)o[e]===void 0&&(o[e]=r[e]);return{$$typeof:m,type:t,key:s,ref:_,props:o,_owner:a.current}}n.Fragment=x;n.jsx=i;n.jsxs=i;f.exports=n;var d=f.exports;export{d as j}; diff --git a/docs/assets/preview-B4GcaC1c.js b/docs/assets/preview-B4GcaC1c.js new file mode 100644 index 0000000..6e88c5d --- /dev/null +++ b/docs/assets/preview-B4GcaC1c.js @@ -0,0 +1 @@ +var e={viewport:"reset",viewportRotated:!1};export{e as globals}; diff --git a/docs/assets/preview-BAz7FMXc.js b/docs/assets/preview-BAz7FMXc.js new file mode 100644 index 0000000..46a25ef --- /dev/null +++ b/docs/assets/preview-BAz7FMXc.js @@ -0,0 +1,396 @@ +import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var u=i=>{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}},m="outline";function s(i){return $` + ${i} body { + outline: 1px solid #2980b9 !important; + } + + ${i} article { + outline: 1px solid #3498db !important; + } + + ${i} nav { + outline: 1px solid #0088c3 !important; + } + + ${i} aside { + outline: 1px solid #33a0ce !important; + } + + ${i} section { + outline: 1px solid #66b8da !important; + } + + ${i} header { + outline: 1px solid #99cfe7 !important; + } + + ${i} footer { + outline: 1px solid #cce7f3 !important; + } + + ${i} h1 { + outline: 1px solid #162544 !important; + } + + ${i} h2 { + outline: 1px solid #314e6e !important; + } + + ${i} h3 { + outline: 1px solid #3e5e85 !important; + } + + ${i} h4 { + outline: 1px solid #449baf !important; + } + + ${i} h5 { + outline: 1px solid #c7d1cb !important; + } + + ${i} h6 { + outline: 1px solid #4371d0 !important; + } + + ${i} main { + outline: 1px solid #2f4f90 !important; + } + + ${i} address { + outline: 1px solid #1a2c51 !important; + } + + ${i} div { + outline: 1px solid #036cdb !important; + } + + ${i} p { + outline: 1px solid #ac050b !important; + } + + ${i} hr { + outline: 1px solid #ff063f !important; + } + + ${i} pre { + outline: 1px solid #850440 !important; + } + + ${i} blockquote { + outline: 1px solid #f1b8e7 !important; + } + + ${i} ol { + outline: 1px solid #ff050c !important; + } + + ${i} ul { + outline: 1px solid #d90416 !important; + } + + ${i} li { + outline: 1px solid #d90416 !important; + } + + ${i} dl { + outline: 1px solid #fd3427 !important; + } + + ${i} dt { + outline: 1px solid #ff0043 !important; + } + + ${i} dd { + outline: 1px solid #e80174 !important; + } + + ${i} figure { + outline: 1px solid #ff00bb !important; + } + + ${i} figcaption { + outline: 1px solid #bf0032 !important; + } + + ${i} table { + outline: 1px solid #00cc99 !important; + } + + ${i} caption { + outline: 1px solid #37ffc4 !important; + } + + ${i} thead { + outline: 1px solid #98daca !important; + } + + ${i} tbody { + outline: 1px solid #64a7a0 !important; + } + + ${i} tfoot { + outline: 1px solid #22746b !important; + } + + ${i} tr { + outline: 1px solid #86c0b2 !important; + } + + ${i} th { + outline: 1px solid #a1e7d6 !important; + } + + ${i} td { + outline: 1px solid #3f5a54 !important; + } + + ${i} col { + outline: 1px solid #6c9a8f !important; + } + + ${i} colgroup { + outline: 1px solid #6c9a9d !important; + } + + ${i} button { + outline: 1px solid #da8301 !important; + } + + ${i} datalist { + outline: 1px solid #c06000 !important; + } + + ${i} fieldset { + outline: 1px solid #d95100 !important; + } + + ${i} form { + outline: 1px solid #d23600 !important; + } + + ${i} input { + outline: 1px solid #fca600 !important; + } + + ${i} keygen { + outline: 1px solid #b31e00 !important; + } + + ${i} label { + outline: 1px solid #ee8900 !important; + } + + ${i} legend { + outline: 1px solid #de6d00 !important; + } + + ${i} meter { + outline: 1px solid #e8630c !important; + } + + ${i} optgroup { + outline: 1px solid #b33600 !important; + } + + ${i} option { + outline: 1px solid #ff8a00 !important; + } + + ${i} output { + outline: 1px solid #ff9619 !important; + } + + ${i} progress { + outline: 1px solid #e57c00 !important; + } + + ${i} select { + outline: 1px solid #e26e0f !important; + } + + ${i} textarea { + outline: 1px solid #cc5400 !important; + } + + ${i} details { + outline: 1px solid #33848f !important; + } + + ${i} summary { + outline: 1px solid #60a1a6 !important; + } + + ${i} command { + outline: 1px solid #438da1 !important; + } + + ${i} menu { + outline: 1px solid #449da6 !important; + } + + ${i} del { + outline: 1px solid #bf0000 !important; + } + + ${i} ins { + outline: 1px solid #400000 !important; + } + + ${i} img { + outline: 1px solid #22746b !important; + } + + ${i} iframe { + outline: 1px solid #64a7a0 !important; + } + + ${i} embed { + outline: 1px solid #98daca !important; + } + + ${i} object { + outline: 1px solid #00cc99 !important; + } + + ${i} param { + outline: 1px solid #37ffc4 !important; + } + + ${i} video { + outline: 1px solid #6ee866 !important; + } + + ${i} audio { + outline: 1px solid #027353 !important; + } + + ${i} source { + outline: 1px solid #012426 !important; + } + + ${i} canvas { + outline: 1px solid #a2f570 !important; + } + + ${i} track { + outline: 1px solid #59a600 !important; + } + + ${i} map { + outline: 1px solid #7be500 !important; + } + + ${i} area { + outline: 1px solid #305900 !important; + } + + ${i} a { + outline: 1px solid #ff62ab !important; + } + + ${i} em { + outline: 1px solid #800b41 !important; + } + + ${i} strong { + outline: 1px solid #ff1583 !important; + } + + ${i} i { + outline: 1px solid #803156 !important; + } + + ${i} b { + outline: 1px solid #cc1169 !important; + } + + ${i} u { + outline: 1px solid #ff0430 !important; + } + + ${i} s { + outline: 1px solid #f805e3 !important; + } + + ${i} small { + outline: 1px solid #d107b2 !important; + } + + ${i} abbr { + outline: 1px solid #4a0263 !important; + } + + ${i} q { + outline: 1px solid #240018 !important; + } + + ${i} cite { + outline: 1px solid #64003c !important; + } + + ${i} dfn { + outline: 1px solid #b4005a !important; + } + + ${i} sub { + outline: 1px solid #dba0c8 !important; + } + + ${i} sup { + outline: 1px solid #cc0256 !important; + } + + ${i} time { + outline: 1px solid #d6606d !important; + } + + ${i} code { + outline: 1px solid #e04251 !important; + } + + ${i} kbd { + outline: 1px solid #5e001f !important; + } + + ${i} samp { + outline: 1px solid #9c0033 !important; + } + + ${i} var { + outline: 1px solid #d90047 !important; + } + + ${i} mark { + outline: 1px solid #ff0053 !important; + } + + ${i} bdi { + outline: 1px solid #bf3668 !important; + } + + ${i} bdo { + outline: 1px solid #6f1400 !important; + } + + ${i} ruby { + outline: 1px solid #ff7b93 !important; + } + + ${i} rt { + outline: 1px solid #ff2f54 !important; + } + + ${i} rp { + outline: 1px solid #803e49 !important; + } + + ${i} span { + outline: 1px solid #cc2643 !important; + } + + ${i} br { + outline: 1px solid #db687d !important; + } + + ${i} wbr { + outline: 1px solid #db175b !important; + }`}var e=(i,t)=>{let{globals:o}=t,n=[!0,"true"].includes(o[m]),d=t.viewMode==="docs",l=x(()=>s(d?'[data-story-block="true"]':".sb-show-main"),[t]);return f(()=>{let a=d?`addon-outline-docs-${t.id}`:"addon-outline";return n?b(a,l):u(a),()=>{u(a)}},[n,l,t]),i()},g=[e],h={[m]:!1};export{g as decorators,h as globals}; diff --git a/docs/assets/preview-BEwhhOxc.js b/docs/assets/preview-BEwhhOxc.js new file mode 100644 index 0000000..1c9c8c3 --- /dev/null +++ b/docs/assets/preview-BEwhhOxc.js @@ -0,0 +1 @@ +const t={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}},options:{storySort:{order:["Getting started",["nbody","Installation","Integration"],"Usage","Examples"]}}}};export{t as default}; diff --git a/docs/assets/preview-Bg0E9TlP.js b/docs/assets/preview-Bg0E9TlP.js new file mode 100644 index 0000000..7d40624 --- /dev/null +++ b/docs/assets/preview-Bg0E9TlP.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["./DocsRenderer-K4EAMTCU-BA-vEMEx.js","./iframe-CQxbU3Lp.js","./index-BBkUAzwr.js","./react-18-B-OKcmzb.js","./index-PqR-_bA4.js","./index-Bd-WH8Nz.js","./index-DrlA5mbP.js","./index-DrFu-skq.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as a}from"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-BA-vEMEx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; diff --git a/docs/assets/preview-Cv3rAi2i.js b/docs/assets/preview-Cv3rAi2i.js new file mode 100644 index 0000000..d82e700 --- /dev/null +++ b/docs/assets/preview-Cv3rAi2i.js @@ -0,0 +1,7 @@ +const{global:r}=__STORYBOOK_MODULE_GLOBAL__,{addons:s}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:O}=__STORYBOOK_MODULE_CORE_EVENTS__;var i="storybook/highlight",d="storybookHighlight",g=`${i}/add`,E=`${i}/reset`,{document:l}=r,H=(e="#FF4785",t="dashed")=>` + outline: 2px ${t} ${e}; + outline-offset: 2px; + box-shadow: 0 0 0 6px rgba(255,255,255,0.6); +`,I=e=>({outline:`2px dashed ${e}`,outlineOffset:2,boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"}),_=s.getChannel(),T=e=>{let t=d;n();let o=Array.from(new Set(e.elements)),h=l.createElement("style");h.setAttribute("id",t),h.innerHTML=o.map(a=>`${a}{ + ${H(e.color,e.style)} + }`).join(" "),l.head.appendChild(h)},n=()=>{var o;let e=d,t=l.getElementById(e);t&&((o=t.parentNode)==null||o.removeChild(t))};_.on(O,n);_.on(E,n);_.on(g,T);export{I as highlightObject,H as highlightStyle}; diff --git a/docs/assets/preview-CwqMn10d.js b/docs/assets/preview-CwqMn10d.js new file mode 100644 index 0000000..fe1b7b2 --- /dev/null +++ b/docs/assets/preview-CwqMn10d.js @@ -0,0 +1,20 @@ +import{d as E}from"./index-DrFu-skq.js";const{useMemo:f,useEffect:v}=__STORYBOOK_MODULE_PREVIEW_API__,{global:M}=__STORYBOOK_MODULE_GLOBAL__,{logger:h}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var p="backgrounds",{document:l,window:B}=M,x=()=>B.matchMedia("(prefers-reduced-motion: reduce)").matches,O=(r,e=[],a)=>{if(r==="transparent")return"transparent";if(e.find(n=>n.value===r))return r;let d=e.find(n=>n.name===a);if(d)return d.value;if(a){let n=e.map(o=>o.name).join(", ");h.warn(E` + Backgrounds Addon: could not find the default color "${a}". + These are the available colors for your story based on your configuration: + ${n}. + `)}return"transparent"},k=r=>{(Array.isArray(r)?r:[r]).forEach(S)},S=r=>{var a;let e=l.getElementById(r);e&&((a=e.parentElement)==null||a.removeChild(e))},w=(r,e)=>{let a=l.getElementById(r);if(a)a.innerHTML!==e&&(a.innerHTML=e);else{let d=l.createElement("style");d.setAttribute("id",r),d.innerHTML=e,l.head.appendChild(d)}},A=(r,e,a)=>{var n;let d=l.getElementById(r);if(d)d.innerHTML!==e&&(d.innerHTML=e);else{let o=l.createElement("style");o.setAttribute("id",r),o.innerHTML=e;let i=`addon-backgrounds-grid${a?`-docs-${a}`:""}`,t=l.getElementById(i);t?(n=t.parentElement)==null||n.insertBefore(o,t):l.head.appendChild(o)}},L=(r,e)=>{var c;let{globals:a,parameters:d}=e,n=(c=a[p])==null?void 0:c.value,o=d[p],i=f(()=>o.disable?"transparent":O(n,o.values,o.default),[o,n]),t=f(()=>i&&i!=="transparent",[i]),s=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",u=f(()=>` + ${s} { + background: ${i} !important; + ${x()?"":"transition: background-color 0.3s;"} + } + `,[i,s]);return v(()=>{let g=e.viewMode==="docs"?`addon-backgrounds-docs-${e.id}`:"addon-backgrounds-color";if(!t){k(g);return}A(g,u,e.viewMode==="docs"?e.id:null)},[t,u,e]),r()},T=(r,e)=>{var y;let{globals:a,parameters:d}=e,n=d[p].grid,o=((y=a[p])==null?void 0:y.grid)===!0&&n.disable!==!0,{cellAmount:i,cellSize:t,opacity:s}=n,u=e.viewMode==="docs",c=d.layout===void 0||d.layout==="padded"?16:0,g=n.offsetX??(u?20:c),m=n.offsetY??(u?20:c),$=f(()=>{let b=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",_=[`${t*i}px ${t*i}px`,`${t*i}px ${t*i}px`,`${t}px ${t}px`,`${t}px ${t}px`].join(", ");return` + ${b} { + background-size: ${_} !important; + background-position: ${g}px ${m}px, ${g}px ${m}px, ${g}px ${m}px, ${g}px ${m}px !important; + background-blend-mode: difference !important; + background-image: linear-gradient(rgba(130, 130, 130, ${s}) 1px, transparent 1px), + linear-gradient(90deg, rgba(130, 130, 130, ${s}) 1px, transparent 1px), + linear-gradient(rgba(130, 130, 130, ${s/2}) 1px, transparent 1px), + linear-gradient(90deg, rgba(130, 130, 130, ${s/2}) 1px, transparent 1px) !important; + } + `},[t]);return v(()=>{let b=e.viewMode==="docs"?`addon-backgrounds-grid-docs-${e.id}`:"addon-backgrounds-grid";if(!o){k(b);return}w(b,$)},[o,$,e]),r()},I=[T,L],R={[p]:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:"light",value:"#F8F8F8"},{name:"dark",value:"#333333"}]}},G={[p]:null};export{I as decorators,G as globals,R as parameters}; diff --git a/docs/assets/preview-Db4Idchh.js b/docs/assets/preview-Db4Idchh.js new file mode 100644 index 0000000..4200af8 --- /dev/null +++ b/docs/assets/preview-Db4Idchh.js @@ -0,0 +1 @@ +var j="Invariant failed";function S(e,t){if(!e)throw new Error(j)}const{useEffect:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;function Y(){let e=d.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function K(){let e=d.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");S(t!=null);let{width:o,height:l}=Y();return A(e,t,{width:o,height:l}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",d.document.body.appendChild(e),{canvas:e,context:t,width:o,height:l}}function A(e,t,{width:o,height:l}){e.style.width=`${o}px`,e.style.height=`${l}px`;let i=d.window.devicePixelRatio;e.width=Math.floor(o*i),e.height=Math.floor(l*i),t.scale(i,i)}var h={};function U(){h.canvas||(h=K())}function H(){h.context&&h.context.clearRect(0,0,h.width??0,h.height??0)}function V(e){H(),e(h.context)}function Z(){S(h.canvas),S(h.context),A(h.canvas,h.context,{width:0,height:0});let{width:e,height:t}=Y();A(h.canvas,h.context,{width:e,height:t}),h.width=e,h.height=t}function G(){var e;h.canvas&&(H(),(e=h.canvas.parentNode)==null||e.removeChild(h.canvas),h={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},c=6;function W(e,{x:t,y:o,w:l,h:i,r:n}){t=t-l/2,o=o-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),e.beginPath(),e.moveTo(t+n,o),e.arcTo(t+l,o,t+l,o+i,n),e.arcTo(t+l,o+i,t,o+i,n),e.arcTo(t,o+i,t,o,n),e.arcTo(t,o,t+l,o,n),e.closePath()}function J(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom,s=r+o.left+t.left,u=n+o.top+t.top;return e==="top"?s+=f/2:e==="right"?(s+=f,u+=a/2):e==="bottom"?(s+=f/2,u+=a):e==="left"?u+=a/2:e==="center"&&(s+=f/2,u+=a/2),{x:s,y:u}}function Q(e,t,{margin:o,border:l,padding:i},n,r){let f=m=>0,a=0,s=0,u=r?1:.5,g=r?n*2:0;return e==="padding"?f=m=>i[m]*u+g:e==="border"?f=m=>i[m]+l[m]*u+g:e==="margin"&&(f=m=>i[m]+l[m]+o[m]*u+g),t==="top"?s=-f("top"):t==="right"?a=f("right"):t==="bottom"?s=f("bottom"):t==="left"&&(a=-f("left")),{offsetX:a,offsetY:s}}function x(e,t){return Math.abs(e.x-t.x){let f=l&&n.position==="center"?it(e,t,n):et(e,t,n,i[r-1],l);i[r]=f})}function lt(e,t,o,l){let i=o.reduce((n,r)=>{var f;return Object.prototype.hasOwnProperty.call(n,r.position)||(n[r.position]=[]),(f=n[r.position])==null||f.push(r),n},{});i.top&&E(e,t,i.top,l),i.right&&E(e,t,i.right,l),i.bottom&&E(e,t,i.bottom,l),i.left&&E(e,t,i.left,l),i.center&&E(e,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},B=30;function p(e){return parseInt(e.replace("px",""),10)}function b(e){return Number.isInteger(e)?e:e.toFixed(2)}function P(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function nt(e){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},o={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:o.left>o.right?"left":"right",y:o.top>o.bottom?"top":"bottom"}}function ft(e){let t=d.getComputedStyle(e),{top:o,left:l,right:i,bottom:n,width:r,height:f}=e.getBoundingClientRect(),{marginTop:a,marginBottom:s,marginLeft:u,marginRight:g,paddingTop:m,paddingBottom:v,paddingLeft:k,paddingRight:F,borderBottomWidth:I,borderTopWidth:D,borderLeftWidth:$,borderRightWidth:N}=t;o=o+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:p(a),bottom:p(s),left:p(u),right:p(g)},q={top:p(m),bottom:p(v),left:p(k),right:p(F)},z={top:p(D),bottom:p(I),left:p($),right:p(N)},_={top:o-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:q,border:z,top:o,left:l,bottom:n,right:i,width:r,height:f,extremities:_,floatingAlignment:nt(_)}}function rt(e,{margin:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l+t.bottom+t.top;e.fillStyle=L.margin,e.fillRect(n,i-t.top,o,t.top),e.fillRect(f,i-t.top,t.right,a),e.fillRect(n,r,o,t.bottom),e.fillRect(n-t.left,i-t.top,t.left,a);let s=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return P(s)}function at(e,{padding:t,border:o,width:l,height:i,top:n,left:r,bottom:f,right:a}){let s=l-o.left-o.right,u=i-t.top-t.bottom-o.top-o.bottom;e.fillStyle=L.padding,e.fillRect(r+o.left,n+o.top,s,t.top),e.fillRect(a-t.right-o.right,n+t.top+o.top,t.right,u),e.fillRect(r+o.left,f-t.bottom-o.bottom,s,t.bottom),e.fillRect(r+o.left,n+t.top+o.top,t.left,u);let g=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return P(g)}function st(e,{border:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l-t.top-t.bottom;e.fillStyle=L.border,e.fillRect(n,i,o,t.top),e.fillRect(n,r-t.bottom,o,t.bottom),e.fillRect(n,i+t.top,t.left,a),e.fillRect(f-t.right,i+t.top,t.right,a);let s=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return P(s)}function ht(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom;return e.fillStyle=L.content,e.fillRect(r+o.left+t.left,n+o.top+t.top,f,a),[{type:"content",position:"center",text:`${b(f)} x ${b(a)}`}]}function ut(e){return t=>{if(e&&t){let o=ft(e),l=rt(t,o),i=at(t,o),n=st(t,o),r=ht(t,o),f=o.width<=B*3||o.height<=B;lt(t,o,[...r,...i,...n,...l],f)}}}function dt(e){V(ut(e))}var mt=(e,t)=>{let o=d.document.elementFromPoint(e,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(o)||o},O,M={x:0,y:0};function R(e,t){O=mt(e,t),dt(O)}var gt=(e,t)=>{let{measureEnabled:o}=t.globals;return T(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),M.x=i.clientX,M.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),T(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),R(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{Z()})};return t.viewMode==="story"&&o&&(document.addEventListener("pointerover",l),U(),window.addEventListener("resize",i),R(M.x,M.y)),()=>{window.removeEventListener("resize",i),G()}},[o,t.viewMode]),e()},pt="measureEnabled",ct=[gt],wt={[pt]:!1};export{ct as decorators,wt as globals}; diff --git a/docs/assets/react-18-B-OKcmzb.js b/docs/assets/react-18-B-OKcmzb.js new file mode 100644 index 0000000..f9d9605 --- /dev/null +++ b/docs/assets/react-18-B-OKcmzb.js @@ -0,0 +1 @@ +import{R as c,r as n}from"./index-BBkUAzwr.js";import{r as m}from"./index-PqR-_bA4.js";var a={},s=m;a.createRoot=s.createRoot,a.hydrateRoot=s.hydrateRoot;var o=new Map,R=({callback:e,children:t})=>{let r=n.useRef();return n.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t},p=async(e,t)=>{let r=await d(t);return new Promise(u=>{r.render(c.createElement(R,{callback:()=>u(null)},e))})},E=(e,t)=>{let r=o.get(e);r&&(r.unmount(),o.delete(e))},d=async e=>{let t=o.get(e);return t||(t=a.createRoot(e),o.set(e,t)),t};export{p as r,E as u}; diff --git a/docs/assets/search.js b/docs/assets/search.js deleted file mode 100644 index 6aaa028..0000000 --- a/docs/assets/search.js +++ /dev/null @@ -1 +0,0 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACtV9XY8jN5Lgf5ExuHvITSe/yX48z+5gcLvAYWfOL4bRUFdlV2utkmolVbW9Rv/3QwQ/kmQyUqmq8mDvwXC2kmQEg/EdwazfN6fj1/Pmw0+/b37ZHe43Hxi33eawfRw3Hzb/63j/2w/j4TKe/n7aHs6fj6fH7WV3PGy6zfNpv/mwudtvz+fx/D01sP9yedxvujhu82Gz+dZFSIrxBOnueDhfTs93l+PptsW/K2dmgLrN0/Y0Hi5L+5iQ4YOc9n2Jo27EJZ/3akzyA/hh3I/ny267h3kzZIq370Lq+Yqr6FuimW1l4DLB3W8/jfs1EOPAN8B63J7Pa0CFcW+A9HQ875oi0YCWjX0DxJdxf7zbXdaww3fZ2DdA3N7djfvx1Bb9BtRq/G2QC0G82x8P4youDQNv3GUhaofLafc0Xrb7fzme7lpQywHvJHCNRVfKXIUvcXh3qG3WAo6Db4ZZHNvDeMH3LRlsgc3H377b/BCPj592h/GeOMH87fsc32zFdWdXoEkc3GeCgnOQn6/QjoC29sjmAFecF7XD4rD+7YpbMRvxTofWWnXlwdUo3+xBENCvuw5LsHOy/vOvT/vd3e7yz8/78fS33RyDesC7ELW56CqazvBdkoeVcOPYmyEWh3jePT7vt5e1QLPht+80O8C/nLYvLfsefn+X48rXWnVKESnicP6yDOEvN6y7Ui0V619XSA38M5L/6/bx0/22bTWyd+9C+nq9VeTPEaTkY64/Z6A+0/5YG4JWSugE4uPHy29P1yn03edDn4ZehdZ/JrUoffozkNc5gCDhjAtaKjO9eUcOuElJTqjdevqTTrx29uXqN5x8BmLducME+tRJtVtBu6pvm0SbnfcVH6Q16B254LWeSBP3W3mjBfwqm5Awb+CYNuB1zFPNpfmI9sFoJK67YdcIn/HXv4/b/d93j+OPu/Pzdr/7r0YYNh/yLrxFLLuKsxpYE3wVBLAlNRQCxZS3wr/fvfz1fjXoOPqtUJ8Pu5fxdB7/ftru9nPLRIGfTXsFHgV7b+/vfzgeLqfjDUiUcyYMLuf7f9qd/+nptHvxCvUV+Jwv29NlPSOE0W+lwvlyfLoBKA5+DQcsirX48woUxJ//INEOC79SuMWf30W8IxKvEvAFHO7GRgJwAXwY/3bIN4t5ROHVgl7g8gZRj4i8h7DTOK0V93QyNwr8EuRVIj8BvknoS44oxP7ueLrfHR4WzflszDsJfXvdlTI/R/w1Ik+gsEriV2NA2XQC+DWjvhruVXEnEFgt7UuY3CDsBBqvkfXVGFGiTjHEFUm/AW5T0Emwi3K+yAnLYt40741Rf5So32bgW+i/i7jfZOJvwYKw8TQCV4z8DbBvF/ubzfwyNm8R/bcY+huwWi3+a039TbDXqYCVxv4KZ+Rq4HjZXsYruaHWoPdRAtTC63RAC3eqtv/rrsFrJPgw/B3gHh72DaGnAYfxr4K8Mi1EQ7+eFrq295y1ng8P4/9+vly2spVrLl+/DzvNl1zHSCWmNxXmWjCXy3LroH0ddw9fLg2ebcCbxt4IcV0+ugXyalKa3mXGIn8bH3d/fbxSx20Nehd2IRdexTRN3G9iHRr+MgNdgbzuUGngV4/22s7zA6Y9r+nV+xxmudy6I5ywoytzf3sax3mkVoPLBr4W1nktrPPbYe3O/2e//W13eLgKLB/5WmhP2+dzgwMrSHHUa6GcxvPz43UwadhbeOLL8SvhSrcYIx/9Fu5YD7Ue/ca9/t8QBKzdbTb+jftdDXk+/g17/rftr0i6fx0PD5cva3Y9m/GGfd8IvTXj1dCbMdAM4mLgswZKI9qZA1kIcZowCsNzaRo9+PV9zE1aaZ2lQXQI7+DT8X7X6P3IQKQR61Zf0Vuc47/YUzzDPCMyKZzxxbuQulhsFbUTXlQz+2l8aTNICSsf9zpId8+n0xpI+bhXQjruV9Bu/waqtS82lBCW7zRcg3DePf7L8+HuCoxp1OugXIrgdS53JbT56NVQV4hhdT6LktjaVyaMP4Y7ED+Op/14aQVSsxHvIp7tVVfJ6Rzlpfjph+3+DpT+ehzm027HY100RSBwNZRahuwMU9MhhNznfjz9Pe84glYiaLfOXy4eLFdT91LZCrqDWxGft3fj+fvrfaBXOhiba61oX5x172fYBqs/gvgXMWUGrB6zfg+zw7226opIuUa4vS8i/ZrBvyH3eiUJuLzoigzgQvax5Neor344Hj7vHip+LV8ubmix345c7bsrTXYVdqs9hWsA+/VOQ5gcEF3tQVzFYL0zsQ6DwrO4Dn2Vk7EKculxXIW8zvlYBbn2RK7CXuuUrIJOeShXsbjVWaGwqUX5x925YXPCry3h/bnb7A7346+bD79vABJoig8b3ovebbrN5924v4fL2H79bnN3fHwEzH4O734cwW+AEX7I98Om+2nopOqF5j//3P0UZ+AL1vGeM9fxjvXSuE6Ef8uO94brTnWs51J2uht6zU1nOt4L6zrbiV4Z2bmO9wMTHRs61itpOwYrWiMREsJnAIZ3zPSDKODDi2kYh2Gi46p31Tge8ByYRDxFwBP+Dfgx7jx+SiB+TFvED/B2HestNx4/OUiPnx5sx3AJazpYtZdGdkzh4nzCSQBk3QndW+sKnOAN4MIHhjQQomMAm2vWMQtIKdUx14neuI4PAIqrjrNO9ILrjvNO9lqzjotO9kzojkv/MAGXFN3gBewXcdYwDQ4AgHIlPDDmbAfweqlkx3XHeuc6DggqbjtuO9UPyk6wFGzHddz2A9MFMBU2qgxDIivDO9gWWEqO+9MZznrT/SSGTshemHIdHdaRTvl1pGce61wnhk72wqlOsE71GVoGluOdHHquZLGcWVqOd6pn0nQCiGuYmRa0sKBs4WeXFgzrdEJ6RKcFHSyoWhi6VQsqj2omLSCVoslz+AqXssIfPAcms93Q28hl3EjgKYH7R57SUngOQAIDC1grO2HjA0iIU7KTQ6d6Dpgx/yrDCSRVNs8BX4HcGGFxm1KAELLe2KAUUBDgF6lcEA2pOkCq19p2UgIzDaaTKH2SdVKDtABRYZZVpgO10mt4AGQ5450awnTF4gMPsFRcGTi/Z1J3SiFhXKe0/yXbGSeVE88k3G/Maz+j5SThk2SrIPxIaiuklzYgJw8Sjshbk7E3Ay1iOq57N1RkjfoFdm060VsmYAHeK8eyBUAVKNMJ3gtdMQu+6obeDZ7/tOD+YIRDrSi1DgcE6hEPCJQRUm/ggeYsos0N0Fz2A+eB5gMPNIdXcRbSfHA80BwG2/jgwoJ6CL+AquyFzfQtA22j24zmFdHQW2tQ6yvLvDKXKuCvTdCC2nluAt8XuQmOAS0DD/sRNnCM4MLjoeEBBGdQqtPAlFKKTqv4oOMDannOOm1RK+bHqUlm0rnKvkFTA0P1wsoOiNJLm0MDFQjvYTcVOFNYVmZpLrGBqtp68VVKIXcIIT1RuQsqBq0VUMoN0hNRO+OJCAKA5wzcoYf4gIOtArLKXoORRvlhxtPOiU4jbw26M3GSwQ1r2xmOYuw6I+KD9A/ZxkDHGtXybfCVJx5DpyH4DPBPWMdx7zvAPnHfWqF0Ky2Aq0Q/WAF2SfTcZOqeD9QR45tsIKPdGRZQA92EMu4Y4oa6CjWO8BLLPE4iMLoJTgvn0jstWmjvtEjNAVneO5VJEwcVZnRLmjgP5+4M9z6U9lpCqHDuVvhjd2DzYIS2wp+2lK4zMIQx2wFOveGuAwPUMyU7C3iAFbBoR5TtLBwlF6YDkvbGsM5KWMfKzir/S4a0ICksghAhjhE3DipMCwdChFijDMHaHLdhlWdWxT3XIa4gzEKaaRtWR1xNfEB+HlxnXfjFoc1xrHPMv8qQBmULYGzPLSuxlsFASuGSHUG9axwDyvJ+MA7ULTCfTVbC0xrGoA5gDqWGoyVx6JDlfhcH7QhUNb2VpWODr7znFgAzzzRRXbKBe6KBdkR3AEYaA7pWWn+MTDs4Ri/zeHowGAnhBkRo6J1mnRNhjAP+5E50oD76ASIFHVZ2QOJB8s55LZA5Pxz0pHNNjkXlClO1Dd6uMJ5+EnYygPuiwOdgoCkd/MTxp2x5Q/KWiQrae1QghDwo6CEoaJEU9BA0tOSqA2x7MSgELHoHsjII/1sGGfQsA8U5V1Xh3YQ2zHYDPKm4Jx0fTHywflAGwpFanrsg7UaYLrIC+gDCCzuYQ5QoA1tj4XykDSeGPMlUkH8Yg9oemAK1PT7gLOBSlKDArYNwXrfDENTtCtyPyBNscOEdYzBK8GxDAnUtYy1uwHd57KecCGpKMC9MGB3yEPWhLTI8mG+hrFcG2mjQYGB8hddgEBCiBoMxjPEYLKLidQaMg/QhZoYoGeHiGx6sKDhjoIUwFgAfDOSLg0gOvZbGH4AEFh/wqDiw3dBb+AXNgebAdn6WRIEVDs5m6DU4tzyso5B9DTpa4YHBgk7C7sGjdn73gjOvv+HBqeAjwpn4aUB7iF8kbtofPGMgCkrBWwwq8OwMxhAdaFKOKpcx1JrgonkFDTrDMxZM5Tz9JtKT9MAyunrnXDXjbx7VqgtxB3icUSiRAbQRniu5Nf6UwXA6gexp8HAFWk5/pNbkvOetkG5FivguG0r74PgKHaQQHEEGRaE1BKccbTo8gINvwOgj2oKBX+TTL56iymW2RihEzTTFQgWqwJa9O8e8WNjA6Nppz+jgCFlv0bxC19LbFTmwwPjOKGR80YNVCGmSTJ0K0t8VOroXNqSOUEVjjia6LCI4GBB1eI6XkeMhE4GzTOR4hYHq0DuJ0u0fPMerwN8WKIk6zIrgliiwUEMPJhuF0HJvoCBh5XWQU2CX/HKB8QO7QzQnkd1Z70BVeXa3rsN4qVfwb46ixuC3NFcM8a1gcYbwehP8N+GfMiqaBS4vHXlhF7jSlkMd6RCImJkADYxkdiH3hU4wGmXGSqZwRnuTDuMiJ+CuRc9Uxp0SlbZoGjo5VD45MlfllKMsD8EIDyZoKGeZZ1uw9ci2xtogwuCpezZVLJ6d0hmfSlI/Sxb4VMYwwLhMIcug1ry35G7T0J5fuZ1U9aSh4ysTNXRSwxazOeBAMQxglWdUySwwKtgnVmjoRb0cVWrHhIpqFkKGHvKgwqSfbHpyAVUmk9aWLD3xuLBMWltK/5RRe0Fr47ts6IKWlaWWlZKMp/wrgq1ibIf2Gx3FyGj+VCHkjAzmfVaQ6chDHaaq4GAyTFD/ymaGDt/hMlYxODDIkwJME106adOTQ3cR1OFQ+3KS1KzxDe8lE8BIoldwLhA6Au7ZGqA7wM5h3qJcpFQrEtWKajpaslQrEsNqxZsn5oqhCqVdidZQNTSsN9JNgfUBbY++GaTY4pNOTyZ63MqmJ/TdhowNFQq9Hlp2Gd/FnKzFUwfTABLEgGK4moCARbM64auQvUHQ55yI7+K6GFsa5trrguISLAvWla81iBZb4bsWWzWYScv4m1Y1WymypBDf1GylRc1WSpFsha+ykciqupl/wHfZUEOzlSqZVdkFtrIxGT0E9wesiMLKikNmCg86Pjg8+5xt3ALbuNezjR5ottHD69lGezY3LXuL75BtHFgTMDxYFgBukV7NqyH+BgnzshKhydx4fHNdCWlBcosuFbyWtBLCd9lQRXOLLnlQa5pb8N0fq4S0oblJmzdwk13gJvsGbvLc75rc5EpuSjykZeIhRXOTITOn8c113WMYyU2mLCYbTuseUzohRtDcZEoeNZLmJiPfrHuMornFqNdzi9E0txj9em4xyN2m2Vvg32FPgPfJwCH0/0QWUj4fYrVPdXMdSkYQ8LoBqyDS+8DS2pBfhMyRCDUxH75BGkX7VRnmBmFd7+Ji9IwZJ26A63h6Ak8QkiEMCwr+SaW3Ov1m0pNNT84/ZTSwJFvjG0yhQfZeIXYY2AJBIZgYOt0PLudvFD/DWj6AKb0ri0JjeGuoLUsRli5F2FiK4JCUDSGhCP/GVDscQfSlfZqEsylYRM0IPIJZFQwJoajdQ2bXsJA4MMg4WYxoUThtU9VbXpX5hsAhkIycinyQEhBTkS+V8rD+CAVBZOUhOPfKWIgeWe+09tEjFPCwLAF5Tox0BSZ+eSgAMivSk0xPoRiY7YQsVthUrOBiQhhzYRICuZCA94V5n7oCnmVZeRILAc6kQmPaExYrNJQmTHywoeiMxQr4BYsVQAiUIXgFBI8bwWpHx6zxv2QbogsZ9h9SyLCoA20zusJ3aB9Awi0oUoc9BeDYSEhWQhGzFCmryTyITapPc78R0Cc+LBxCq8KgQ20EBQNrI4MMtZEhlkRYyKBhlQOLXqBCUWUxE1QW/IJam7Ggu7gKumuQUBJhvZPWl0QsJoPRICLziPQk/VO2PVSztlkxsSaKkvY1vkEEUYr18sSaPBTMpQs5fm61lyXgRNyuc1GYhAzCxEIGERSA9bl97UkCaT8vVZCMQF50kDfwBSN8QqUAAYsT/inbFKlTrX23EuCbKn8dkBxLiBnWjhYd948QHTeQrO6Gt7M6bl3/oTzvlRZwJS5ZcLqjfT98xXy/ivXkBKcUj1gK6xOHJvgMaL8wXMbUv5PRe3eqLto5MgByMdAvMpXIh3BsaOwHUPPoifi6BLTSYDKZB03ObSALJKEYqntjPSLCa2yn6+STQ4PjmuGeSz1D2qd1h0xGsKKgFPfVOGBqYwJon1cE2XYQysA75lyo1PNhqCv0DqsaUK9s4CDr3LIIssZBN/giDHpovFdQXnDQqAkJVR48CWh+8KUHPsgwCqol3vPgg/ZPGTrYGDS0SZK8ZmhvcCHz591cKPRhlyiEHkPoLen4YENKmQ8OjImArpfBJ5czoFjgaNcmXbIrUGvx5VXm9y5t3DyyySBiO+gg02/epZK41fAEcMreUIe6nTU7pZx5d/h8Bh/7hqAnrUH0pKTB90DdPHBPfe88IqdzXhywjYeOtAZdDuVb35rMIKyEWiJn2v+WIYLFDNY+/ah2Y0ONAgPhXTAT1LxRgSBy0AE10IhY/YdumsCPSBkZhnl2hOYbz47+yYZhDHvHlOk4s/5pwpYNA6LbDLD9y9j4440a+NUugMXuRRPsE1hYNAHW8gK1hAbQEeJwjp2iLm9rZgPWPXgzcvMv69o6oqOs9ehwZT06UBtH59NJE4pskD9HisIgT0cIpQYRhntk/UsVOq89Hf2TjeNY6OHO8cbogDdVj3+Z8v2DV4TY9geCnaQfytCg6EWmc7E/sRdw3BBEwFMOFRUrb9a0/MtIpdRljmB53mbgq9/YS8CDPWK+v0zKjGAeJ+iwTJTjPIzi2NjrnzAlBXED1+nJ+Kccc0lnFPxLX7aSwRvh4aCdxGZZ0fOgQLgLmFmkkcVmRMDDxSfs4ZZF1/Cg6LyDf7mQeIjpho7XTeFs8Em9Vp9lfBUWQZeOhZZLcLo4dJNjJzR0OlfLkt1B/lVqD0puROwTYi50/iw0DKErZyFXpr3vkUPGvDVCljXk2JeuVFYbTV6DC1VPFex+qpH6Uj78zGyslhoVRnPfxw4cKWb1LTa4hQ50F+kLS6dG1tC2Cg1Zvvpmw4Nk8XqCUf4pA4T97IAo9J1XgNgQ8kc+L4FaFf+F2SIbnFdIvvoeNm29zxr7yI0OYQuTPmyRLIQtRvPgPNvQBWBS/5ECZ5ijlwIpYOE7giy6iRxb3DlKqn/C6Nnm8sbouy6MvbIF2Pm2O9dxYWc9wL5LXTTjP/8yH4x6TA7twaIajJ6cZK1cZ3gZExWhZozCPPj24XgjCIrlDBN9MpTPwWxgRTlyLSTWMHDAerbP6ISWInyA04AbPyxN840VFsvUPDxxvLUAa3GJeZ0Brj+I9JtMv6n0pNOTv7nDO+47x/KaGWP03ZjwrrodE2/FwK4gwZQ3LGMjOJfEecWCBLYAAas4vAQheq6F15FKx4Y1zn0aGAJHZBFjCk5EZSbgbk2vQ0JkAhRvzwyD74I23j8SWk39xDK6Nj5UVjJ0Imhs3AzNx749CU4bZcU3JCcnSiQnCk8Cn9Qwc4qwCZ1QOMw2GzOjVkUZBM0rbHxwofVLxnZMPAbmCs2DXmO72BReBt0Ru4T8cTCfODF8unUjMHKwQe8oG25FCB2SkSqc3KBCK4vmQU1DNOyTkTb0SEPrp0+bgIFSPF7jUdjcUt5bIcsp/tV/hyQJELhKkjBsfueq7Utx9o/IkzBsfm8nSvy7eBHCZ0p4EAq8cIKxfrxRBbGSDBcX0PrI0DcNqNhoY3yeRHm6GBOqGdZpnyZBM4StVSamSQbu0yTShCwJpEtsuCrhm87gJ46thHBZgmPtRORNqQzb5eGmfJPSIqZSpTVZn2vpkoteg4+gTHQ7lY3OJs7FJw1lDIEteyz9xtOTSE9y5p4utM2z1DffDN78FYVgUhx0OsQ7aKjLIRRCLoGStGfrcFUFJmtvPrRvBgbt5TneBm4ReWs/w/554vYML6vNDJvUuW7fSOExL4C1FJ8TCTvQIhQzwFnFa2+p7RpEFjWqHCJzKeM1CXiTnsuYCkwFcoiXvqAmgzQCLxFjKg73vdDLGbD7FQmGzU4mPHnfBsbhf+hyck8jfLLpycUnzCb5J5aeeHoS6Un6p5xWZkEKY+raBNUbr6rZIIvoslWOH8oZOIooaIplXp7wKg9KeHCBzosZOI/OJ+gyn4/727xRpowoZAqskWzaVN/FHzpzkNOw4un/DawP7a31/YV8aUdW6cI7FMzQ4QZBRPg3urs2WCjuq3VKY7VO4DVKdNdDGQrUebijaHR+GthQz4m7VL4TP8ZQKPqQm8yDqVDv76ArsQyrQnd8s8nPv8wHL/mzIl7JzK/UpmDP96lCmRDDU5ZXHJlYcn2FWFpXxO1GAPmyS06yIJ1kpf9/dJLnrrFYcI3Fra6xWHKNxTu6xmLJNRb/vVxj7Ormppne9C99h4aFE1LGJ6x//hk/IfEyni7j/V/9pyR++mmz6X7ffAxflgCTgCA2H37/Nn1D4sPvG279T2CuPvz+7ds3AAnBaz7ZLE72c/h9MUdSc6TyP2k2zRXlXC2JuUqEuW6aK4uplppquf/JZtvUvTZyLLeqV2w1fi4nm8eneRsRsBSBtDL8G7QfrJGv6xfclnsgUAjLyLDaEP7P4gGG/wf6Mh3+H7Dg4T0Py/Awjodx3IT/u4B9WFeE9zLAk+F3E9ZNhBU5gbuNDevZMM6F+S7Md2Gei9QZIsKDiQ8ubjHtNW6WRSrE7UEYF+gQB8cdg2+Z8zg8RBAT+8fpIk4Xcjrx8s/XT2cl1HTsbna4G5evcMEPA09zNSUh6QTjycUTGaqTkcX+JjgljnAbhWCoTBa29/d36Q9GZJOVmHaoAgIqIKYDOY2k+Pr+fnfZvYz734qNUzLqN56mVoiQSmEZK7/aZ/wb9tNyjtSHqmRjl1gvsUxkK2EyAPt9vjxnyzJcH+3EzwXXlefIKIaJDGGiyM2kJDF+uXyhdp26QhJSM4R/q/j/QCAVxutAQh3Q02HzJqxrdIV+RfpaY0AtodYLs8OZi3pxXIf7748FQ4D7T3DltGaxAv7xiex4zCRmGzvMlUF5OmGVJ/g0/PZTtZQgjWc9dyyOEJwLYhOTwkz0kC3CPD2Vwso5ZRGhFDbNO40l/1PUdDafdHwueZA+hMjSssXqcbnTT7tiNUrIEzFqDVuutv2tlD/SMNcKeUhGaSXVC1VnBgrtCt0oeC4/iEvJlI5Yy+TgX8bT9qFkQUuxYLLzubLGPwGTg53038Y0DGPr+D4VCEiS7SInqFIbSTYjtckX/3ysWFSRZG6vEL4rnbFXJvDhyJeZdmbYo0smKzYkDH2tcJPrFd4nlytalcmTmjNkcpeS/9gyQZ+O94UQUOwUMA4IBRaJnn4Q2YBc4NmKNE1JpAwjYHU3wtc5L9XnQCdMp9PdzJVxWKbcGqU7o/0TcXe1vYrHUbsMTcNxF76xW3I7qakqFiJZpcItsQRxzCUuFekgkUfZQj2fXRpSS0ZQUXHE/yfXeyjW3JemkJJSkcIFkU+vNkLKeLGRcT+eL7ttCZli9RSvlMJVLTVXF4xekbUXKM1PHmHOdU0RFcalDpXXazKF1VijFOJZYBk3HkEF1uKsBHnaPY2XkpYLbkm+5myN8Ld9soVylTuPpgOuYZ0v28NDeQTQR7PCmbnbnYCxC9Kpm7awH8vZ0NRCAVb5PPyoeRZf6tzExCNOQcPc5oR1jvelrSPTGi4cpou6KzC1SyYkcUFOIP/d2tzxZPnBVDqb8ERzjY4rlmclyTCRWOHx066kniZPW83mFW6oJg+7sODlAjNm1TmzqgYldLEIbcpMlmVgc28qruA/HZ1rMPLUczHBec/z3AYk+akDiEwhhmKh82V7KP3PgTSqMd1kqxXid/Dz5Fq2fT8rxbXh/zGHFTVYzHGZ0puoHSgZ/q3CejqsZ8I6KcdVmawpEo02YFKWjchvGUza+2W7KwN+SVmvPAwME0tFD2UZ4uzEHGhpphwldy75ZNUSp2OZ/NC01RWzmfsK84GMHF+pqiKUOmebfVV+wqwpV42sGEXeNcmou+NTYdlpOaM0vl/mNFZeJGndKHFZKSavFwOP6PMJv6Wdb5lyheKWk89dhzyztNxQkGbudYOWEiUy50tNuEzSNiw5OoLiifvtZVuqSjKXm8vK/Tg+FVQgZy0e/P34efu8L/UsmThZw5D34+faAkIPJ+GsxogjnJAsNvg0Hu6rs2Ykf+dq7H73UnpqNIfIYtauxFtljoiMe6by0/fPpyopz0jFmSdMxu3dl5J/6LxVy1cZ9+NjRSU65MpOfjzcbZ/Os+iR06WEPMwZ//O5CnE4ecjZyYzPlYq2lC+b8hkxhx41dMYi48t4KsNuylhE7ZTC7KW4cfzV/41NRPYMf9AnI22m5z2KLUBxnct4OpRk4oYqoBTk/bw7nYsjpdg+D7PC1NLuZ3p8CuwDFeR8A2GN0mlSpPzIUqNe84HKfF+yrkVRITuIecjmMurHrMQsO9EMFCqrVcefdTYtWrM6RcKqjUTgtkYi5W1mKbHinGGHP//PL5fL0/nD99+Ph/7r7pfd03i/2/bH08P38K/vsyD245wkdGRzI5jD+PVyPPyJm/PH/fbrx+Pnj+Fv0G/3Hx9O25fdZebWw2dSCYGrN9lO8PCsEhdp1ebHuzL61nmMaBoHXh9sXcG+liaNolKlS9flwj6f8O9rZIRaleossyBZmbxZqMgdlqr0HLBIf64p019krZJfIUTlRAlX4chKXFM+2dS4pqOY0sZJ+DOuKU3pkPEJp1IVD2OhMzWptmx5uLFtwIU9ukjNIdOrD+NlzoYqz4JR6eck+PO4PS39uP31An9JdB/+kmjuveSsPlAq+2G8nL8cv17CX57Ny2dZ1d0tkA6mP6e/LJkv4HIEqAQ4rOD/OnIe/2X0cZQH/LB7GQsmJSOipMaH5NSmX1LSMvOtMrVVeSsD6XfULSy2Xq70OHKLpOd6KM/WPzzvSveSksXoZ+tMHErXlJOp7MKl3X0uw2EyGo+CEAWgDotjkOba9A/Qwt8mLzmAInTLoYsrfETX6+PjePlyrBiK8jJtRugq9UGRikhR19WRqjY4iyKjwosWwuX7atEuRbop+58KaUlVJKsy7zsqq79xx3fbSmrJpjnGionNLCEnw6x86g5qC7v/mrsFhoJtilN6ei55hVP8WdZl4/TzeLqUmpJOfhR4Q2qx8qLolHo8o1b0DH/U72Ge7bSkV1QHNUUjYR3kFCay7EWZwOPfFCxdKtLs5cHJ7vBy/KXU1paauKraVlbtLelniPwoG3mga6qIUEEzbJ7229+qgJwPuTmirPGutL90AnJF48fuUtWMluqAacq4L/Q2fPj5etPdL1VCSJEs3Sgy/bI7jKAF7kojc61qmS3wfLlUnaekpm50z4Y/IZjBzuxq6tCKD6JRAFEkW9TTAsDHT/clwozUPu/iEudwZ1Ec3KyYwvRG2j9nKr9GlZiAL4tPKzQIJHS9Al0kgo9wT5kvyuOrVikTO0yQCeR8KzN3l9HtjsnVmxnQZmJsvytdPkUZpZa7tT8+VMJARxO5Sn7c/lJqY0HG53mpH6ZVXU+U+OQm9HF7qNJwXJNin2v/x+25AJe5k5uGFxvjs0aV/nF7qfOXdKmvdUyP2193j8+PpZokk2TV2YclxrJVgyyQ5wc18y0deTOBauNtGmW/8LVkC+XgklqT81tBnJ4PD+OfRv4nO/zJCVTQAWDJaZYSVHszyPP4WIY4jjrI3F1ft/YL/qnuj5nL9d1L+CveH/270guieyyyFMnjsVZ9ZGt4HR/MExyzdUuPiGyJzsn8vL/snsoOXk1Gw5k9O4x34/m8LdPhXNCB9NBg3cP4tdQlV0qAaY3w/7oUGHu9by0JRm+4vu0xKxFOTnky9qVrWgipK3Z6OR52VVP8QJYPCiL9WkUtZCtW5RdM9irPChyOJc1J/sv196Hq7eF0l0k57fRY2Qtyz66YV3UCUyo+N06H58dPlU8gKXUwNdy2TMTh+XE87e5qS0famfy4jp/+Y7wrsF+orwXYkW/rltp4nlXV8lrr7OzOAZuHd4tVgmOZxlmVzrihbbauiVS1kDornchSX+GoUuXXMsSzltdKoaas7LwTPtEvJU5SjFBq4yvXs9LOU5U+sV8KGjKOLi0FzX9ri0lXWrOvFpkmfUJUmyLa5TUMRpqFpJHjEaxuk8ndsarjivTGUtdtU+iPp/tae1A6Lo8ojpcv1TQy/zddmGoZw6ftc50Hz2I01/CSXT57X134IP3ydNMp3nAKNDaqXG2Wy6DMjismHi/V4ZNXFVqXaZ+O593snmLWQteovGXy8nQaz+PppaoJkBXL/BifTuPL7vhceqpkfm/iJKJdPgn7tPq8cUfkdY5JK1IVl6fT8Wk8XarObDqHGSUlR+P4sruvrl2R17UqbX2t76pq4ifzbckotdJop7Gqm5DBXeQeJcrZl93j+LI7P0OiuJbnrJdCNjIWsZtA86Ul6/ve+R3TRl96bE0wxS7vjqf7unuH1O86UCq/OZ6WIPaaddVEAZtzVGORencZi2qqe/c0fh5PY5XhpnTnH1qBPo2oAqoeLk5ew2CNqVVa5Ip0rb0lFaUn7HcWzKUL5JMfMb/4bXN0//N5dypFeeFSWI5lXOD8NN7NLzjzhctrLbN5Gs9VP58hM0JF4nqa/liZvUzfu4bCdyaffnk+VUEVWVVYvAKcr1cZEDqLns88gn5fSHFm13li2NIQpXKVSqgtdcAm5wxIw5TTyKRIIzOO0zF5I+uMb9Y7F3M15XKZKj7XDSlkxSsn//luW90mdqTXkQO7G8vwlGU5jI2KwQhlWM9jyYCGDokzQs1zT9TptCrPMDtWn1t9fywrjsXkVbmozRc7lK4jI7eQB8znKoVFNlclt3zRDT8vd5XkjVcD1ZpxprtK8lIaZYnOC10lPG+THiiTeG50lfAhd8Spftzzl+PzvupDpiJ/KjN15aMHsLeSKJTLUJ3UNL2sujPykk3qSMp5dvcILV6ltSh82KqvqkGk3eOsA9jmrVaxxBXt5LVrqYvlblGtthz6rCmPz6303O/XBcVwu63OOK7zm1GNXp5iiToao5O0fA6/7snLREkGtFUMxmLjcswhNS4qUl/jid/OSN/MiN/K0BV53/i1nWsl+6w3a/6xjXSC88QNUWZJZ1plZybi9nX0zcmoqtSYu/pDHJzMWLa9r/Nh+3T+UmZLOVm+D15mmDpvniO1SUH4MP2yLbthWNa4cFXSYoNMg9/rMJnlYjK0Wt42RQhR375JacG6YZS6ldP4llPShvOPOs0+kjHXCKvyf6Yg7WX8H2UcQiaRZXEmZUsG2QtXS+6sQlJfWyAqJC2ZKTZyfCpZJHPtr2mLeLm4jKZXTvLgfztfxtKrWtkXHbm0UX/2i5bfPCFlNvPRLlWhnpG2dyk+uXwpv5FCfiJl1l5d3HhqJL+TRzdPerscflkqXEXOwONrSgPUd+GimFRd9WSpoM6AV5XB1V34NzahpwtrUf3Fr0nZSh0WHSCNr0vF9Af1lam6hFFn7gnLOusVvdGyXuvLXe42Tda48WmXhY/kJRs+N90L389baGidf0jvpgJNyxe4fKk/IkTpa0MYlbjOaRz7/yjXIj8F0PqkJCQrCxtAftKE0P1lYnXhy2ZiRuGcIEWVmdrAckd0Ww3P66TX+uWWr5FmO7xWV52FvxOTLriV81JrYrfEXE2egiC49Cppx67VptSKosmO/EKy03yfhirLa1m0Vp5L7VnF1OySt0bNKRGYhTDFLa7G16uiGqj0dRK+PJVaQilFryzRVJ/WIjoKZt/1qw41pPaqIhUlpRW51pHtucqokj0XswtIWbhfZcLJbxsUtJx9p4C+3ZtUbDa/vLHC6Y/g5V0mrXSPKz6202hwnV23IEx9Ug5Xrl20TOHrrFsqbNxiwtZbrpJmZZjByc+tZgWKBDJ9bNbM151/0YUXX4Jp9ByXC1Tf9SA/rFHkCMol5vqP5Z+9kzErFJ2v6GxRycnnp5JW9PeYco5+ut9eSmEnP42S12rrZgC6qpInfJ7PFSj6Us6mtLGNJufEZPOkZAmy6n8gyyX1996qmKQU6ooFyNrHrZFOEc88n6vEGvkBmTozGTWwrJ2M6JPFom108ddmNBGvl7H+kBCZ1GkEUnEN361arJIZzobZnPvTfL6eb36t6hVcFR/Rahj+os7faqClM19NbHblV0w0/Z0Dkc86z0yUKb4sR11YjSXyeWGPvP/0R0eDKXq75cZf6ZRU5pdqnKB2WMcKZadCyh7j2l/H3cOXShMy8tpW/oVWP7NqIs8KfLaRKGp96fXrl7Fu1uLk3xaoXaPlq6hfv+zKWwnkJ2hX3W37uiu1P12RtPmkquRGtj0EzRX3EREI/7/xA0v0h5Wu3ZmmmoC+Hk+/lG4J+SW2lQ2D377Bn5l42j2Ne/jM3oeffv727f8BhAViWyriAAA="; \ No newline at end of file diff --git a/docs/assets/syntaxhighlighter-JOJW2KGS-2fXDnHX_.js b/docs/assets/syntaxhighlighter-JOJW2KGS-2fXDnHX_.js new file mode 100644 index 0000000..dd03fcd --- /dev/null +++ b/docs/assets/syntaxhighlighter-JOJW2KGS-2fXDnHX_.js @@ -0,0 +1 @@ +import{S as s,c as g,s as n,a as u}from"./index-Bd-WH8Nz.js";import"./iframe-CQxbU3Lp.js";import"../sb-preview/runtime.js";import"./index-BBkUAzwr.js";import"./index-PqR-_bA4.js";import"./index-DrlA5mbP.js";import"./index-DrFu-skq.js";export{s as SyntaxHighlighter,g as createCopyToClipboardFunction,n as default,u as supportedLanguages}; diff --git a/docs/favicon.svg b/docs/favicon.svg new file mode 100644 index 0000000..684ddb2 --- /dev/null +++ b/docs/favicon.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/docs/iframe.html b/docs/iframe.html new file mode 100644 index 0000000..4bf8d0c --- /dev/null +++ b/docs/iframe.html @@ -0,0 +1,492 @@ + + + + + + Storybook + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    +

    No Preview

    +

    Sorry, but you either have no stories or none are selected somehow.

    +
      +
    • Please check the Storybook config.
    • +
    • Try reloading the page.
    • +
    +

    + If the problem persists, check the browser console, or the terminal you've run Storybook from. +

    +
    +
    + +
    +
    
    +  
    +
    + +
    +
    + + diff --git a/docs/index.html b/docs/index.html index 84d9413..459dbe9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,9 +1,147 @@ -nbody

    nbody

    nbody

    N-body simulations as a Source Academy module.

    -

    Installation

    The package is published and available on the npm registry as nbody.

    -
    npm install nbody three @types/three plotly.js-dist @types/plotly.js
    -
    -

    or

    -
    yarn add nbody three @types/three plotly.js-dist @types/plotly.js
    -
    -

    Usage

    Full API Documentation available here.

    -

    For developers

    Generated using TypeDoc

    \ No newline at end of file + + + + + + @storybook/cli - Storybook + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + diff --git a/docs/index.json b/docs/index.json new file mode 100644 index 0000000..fa7033e --- /dev/null +++ b/docs/index.json @@ -0,0 +1 @@ +{"v":4,"entries":{"getting-started-nbody--docs":{"id":"getting-started-nbody--docs","title":"Getting started/nbody","name":"Docs","importPath":"./.storybook/stories/Nbody.mdx","storiesImports":[],"type":"docs","tags":["unattached-mdx","docs"]},"usage-celestialbody--docs":{"id":"usage-celestialbody--docs","title":"Usage/CelestialBody","name":"Docs","importPath":"./.storybook/stories/Usage/CelestialBody.mdx","storiesImports":[],"type":"docs","tags":["unattached-mdx","docs"]},"examples-simulation--docs":{"id":"examples-simulation--docs","title":"Examples/Simulation","name":"Docs","importPath":"./.storybook/stories/Examples/Simulation.mdx","storiesImports":["./.storybook/stories/Examples/Simulation.stories.tsx"],"type":"docs","tags":["attached-mdx","docs"]},"examples-simulation--two-dim":{"type":"story","id":"examples-simulation--two-dim","name":"Two Dim","title":"Examples/Simulation","importPath":"./.storybook/stories/Examples/Simulation.stories.tsx","tags":["story"]},"examples-simulation--three-dim":{"type":"story","id":"examples-simulation--three-dim","name":"Three Dim","title":"Examples/Simulation","importPath":"./.storybook/stories/Examples/Simulation.stories.tsx","tags":["story"]},"getting-started-installation--docs":{"id":"getting-started-installation--docs","title":"Getting Started/Installation","name":"Docs","importPath":"./.storybook/stories/Install.mdx","storiesImports":[],"type":"docs","tags":["unattached-mdx","docs"]},"getting-started-integration--docs":{"id":"getting-started-integration--docs","title":"Getting Started/Integration","name":"Docs","importPath":"./.storybook/stories/Integration.mdx","storiesImports":[],"type":"docs","tags":["unattached-mdx","docs"]}}} diff --git a/docs/project.json b/docs/project.json new file mode 100644 index 0000000..aee1f97 --- /dev/null +++ b/docs/project.json @@ -0,0 +1 @@ +{"generatedAt":1712440985915,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.0.6","storybookVersionSpecifier":"^8.0.6","language":"typescript","storybookPackages":{"@chromatic-com/storybook":{"version":"1.3.1"},"@storybook/addon-interactions":{"version":"8.0.6"},"@storybook/addon-links":{"version":"8.0.6"},"@storybook/addon-onboarding":{"version":"8.0.6"},"@storybook/blocks":{"version":"8.0.6"},"@storybook/react":{"version":"8.0.6"},"@storybook/react-vite":{"version":"8.0.6"},"@storybook/test":{"version":"8.0.6"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.0.6"}},"addons":{"@storybook/addon-essentials":{"options":{"actions":false},"version":"8.0.6"}}} diff --git a/docs/sb-addons/essentials-backgrounds-2/manager-bundle.js b/docs/sb-addons/essentials-backgrounds-2/manager-bundle.js new file mode 100644 index 0000000..88e6b2e --- /dev/null +++ b/docs/sb-addons/essentials-backgrounds-2/manager-bundle.js @@ -0,0 +1,12 @@ +try{ +(()=>{var ne=Object.create;var F=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var w=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,a)=>(typeof require<"u"?require:o)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var x=(e,o)=>()=>(e&&(o=e(e=0)),o);var ae=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var se=(e,o,a,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of re(o))!ie.call(e,c)&&c!==a&&F(e,c,{get:()=>o[c],enumerable:!(r=te(o,c))||r.enumerable});return e};var le=(e,o,a)=>(a=e!=null?ne(ce(e)):{},se(o||!e||!e.__esModule?F(a,"default",{value:e,enumerable:!0}):a,e));var I=x(()=>{});var d=x(()=>{});var m=x(()=>{});var V=ae((W,G)=>{I();d();m();(function(e){if(typeof W=="object"&&typeof G<"u")G.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var o;typeof window<"u"||typeof window<"u"?o=window:typeof self<"u"?o=self:o=this,o.memoizerific=e()}})(function(){var e,o,a;return function r(c,h,s){function t(i,p){if(!h[i]){if(!c[i]){var u=typeof w=="function"&&w;if(!p&&u)return u(i,!0);if(n)return n(i,!0);var b=new Error("Cannot find module '"+i+"'");throw b.code="MODULE_NOT_FOUND",b}var f=h[i]={exports:{}};c[i][0].call(f.exports,function(g){var S=c[i][1][g];return t(S||g)},f,f.exports,r,c,h,s)}return h[i].exports}for(var n=typeof w=="function"&&w,l=0;l=0)return this.lastItem=this.list[n],this.list[n].val},s.prototype.set=function(t,n){var l;return this.lastItem&&this.isEqual(this.lastItem.key,t)?(this.lastItem.val=n,this):(l=this.indexOf(t),l>=0?(this.lastItem=this.list[l],this.list[l].val=n,this):(this.lastItem={key:t,val:n},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(t){var n;if(this.lastItem&&this.isEqual(this.lastItem.key,t)&&(this.lastItem=void 0),n=this.indexOf(t),n>=0)return this.size--,this.list.splice(n,1)[0]},s.prototype.has=function(t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,t)?!0:(n=this.indexOf(t),n>=0?(this.lastItem=this.list[n],!0):!1)},s.prototype.forEach=function(t,n){var l;for(l=0;l0&&(E[T]={cacheItem:g,arg:arguments[T]},A?t(u,E):u.push(E),u.length>i&&n(u.shift())),f.wasMemoized=A,f.numArgs=T+1,B};return f.limit=i,f.wasMemoized=!1,f.cache=p,f.lru=u,f}};function t(i,p){var u=i.length,b=p.length,f,g,S;for(g=0;g=0&&(u=i[f],b=u.cacheItem.get(u.arg),!b||!b.size);f--)u.cacheItem.delete(u.arg)}function l(i,p){return i===p||i!==i&&p!==p}},{"map-or-similar":1}]},{},[3])(3)})});I();d();m();I();d();m();I();d();m();I();d();m();var C=__REACT__,{Children:ke,Component:Te,Fragment:R,Profiler:Oe,PureComponent:ve,StrictMode:Ae,Suspense:we,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Be,cloneElement:Ee,createContext:xe,createElement:Re,createFactory:Le,createRef:Pe,forwardRef:Me,isValidElement:De,lazy:Ge,memo:L,startTransition:He,unstable_act:Ne,useCallback:q,useContext:Ue,useDebugValue:Fe,useDeferredValue:qe,useEffect:ze,useId:Ke,useImperativeHandle:Ye,useInsertionEffect:We,useLayoutEffect:Ve,useMemo:z,useReducer:$e,useRef:je,useState:K,useSyncExternalStore:Ze,useTransition:Je,version:Qe}=__REACT__;I();d();m();var to=__STORYBOOK_API__,{ActiveTabs:ro,Consumer:co,ManagerContext:io,Provider:ao,addons:P,combineParameters:so,controlOrMetaKey:lo,controlOrMetaSymbol:uo,eventMatchesShortcut:Io,eventToShortcut:mo,isMacLike:fo,isShortcutTaken:po,keyToSymbol:ho,merge:go,mockChannel:bo,optionOrAltSymbol:So,shortcutMatchesShortcut:Co,shortcutToHumanString:yo,types:Y,useAddonState:_o,useArgTypes:ko,useArgs:To,useChannel:Oo,useGlobalTypes:vo,useGlobals:M,useParameter:D,useSharedState:Ao,useStoryPrepared:wo,useStorybookApi:Bo,useStorybookState:Eo}=__STORYBOOK_API__;var U=le(V());I();d();m();var No=__STORYBOOK_CLIENT_LOGGER__,{deprecate:Uo,logger:H,once:Fo,pretty:qo}=__STORYBOOK_CLIENT_LOGGER__;I();d();m();var Vo=__STORYBOOK_COMPONENTS__,{A:$o,ActionBar:jo,AddonPanel:Zo,Badge:Jo,Bar:Qo,Blockquote:Xo,Button:en,ClipboardCode:on,Code:nn,DL:tn,Div:rn,DocumentWrapper:cn,EmptyTabContent:an,ErrorFormatter:sn,FlexBar:ln,Form:un,H1:In,H2:dn,H3:mn,H4:fn,H5:pn,H6:hn,HR:gn,IconButton:N,IconButtonSkeleton:bn,Icons:Sn,Img:Cn,LI:yn,Link:_n,ListItem:kn,Loader:Tn,OL:On,P:vn,Placeholder:An,Pre:wn,ResetWrapper:Bn,ScrollArea:En,Separator:xn,Spaced:Rn,Span:Ln,StorybookIcon:Pn,StorybookLogo:Mn,Symbols:Dn,SyntaxHighlighter:Gn,TT:Hn,TabBar:Nn,TabButton:Un,TabWrapper:Fn,Table:qn,Tabs:zn,TabsState:Kn,TooltipLinkList:$,TooltipMessage:Yn,TooltipNote:Wn,UL:Vn,WithTooltip:j,WithTooltipPure:$n,Zoom:jn,codeCommon:Zn,components:Jn,createCopyToClipboardFunction:Qn,getStoryHref:Xn,icons:et,interleaveSeparators:ot,nameSpaceClassNames:nt,resetComponents:tt,withReset:rt}=__STORYBOOK_COMPONENTS__;I();d();m();var lt=__STORYBOOK_ICONS__,{AccessibilityAltIcon:ut,AccessibilityIcon:It,AddIcon:dt,AdminIcon:mt,AlertAltIcon:ft,AlertIcon:pt,AlignLeftIcon:ht,AlignRightIcon:gt,AppleIcon:bt,ArrowDownIcon:St,ArrowLeftIcon:Ct,ArrowRightIcon:yt,ArrowSolidDownIcon:_t,ArrowSolidLeftIcon:kt,ArrowSolidRightIcon:Tt,ArrowSolidUpIcon:Ot,ArrowUpIcon:vt,AzureDevOpsIcon:At,BackIcon:wt,BasketIcon:Bt,BatchAcceptIcon:Et,BatchDenyIcon:xt,BeakerIcon:Rt,BellIcon:Lt,BitbucketIcon:Pt,BoldIcon:Mt,BookIcon:Dt,BookmarkHollowIcon:Gt,BookmarkIcon:Ht,BottomBarIcon:Nt,BottomBarToggleIcon:Ut,BoxIcon:Ft,BranchIcon:qt,BrowserIcon:zt,ButtonIcon:Kt,CPUIcon:Yt,CalendarIcon:Wt,CameraIcon:Vt,CategoryIcon:$t,CertificateIcon:jt,ChangedIcon:Zt,ChatIcon:Jt,CheckIcon:Qt,ChevronDownIcon:Xt,ChevronLeftIcon:er,ChevronRightIcon:or,ChevronSmallDownIcon:nr,ChevronSmallLeftIcon:tr,ChevronSmallRightIcon:rr,ChevronSmallUpIcon:cr,ChevronUpIcon:ir,ChromaticIcon:ar,ChromeIcon:sr,CircleHollowIcon:lr,CircleIcon:ur,ClearIcon:Ir,CloseAltIcon:dr,CloseIcon:mr,CloudHollowIcon:fr,CloudIcon:pr,CogIcon:hr,CollapseIcon:gr,CommandIcon:br,CommentAddIcon:Sr,CommentIcon:Cr,CommentsIcon:yr,CommitIcon:_r,CompassIcon:kr,ComponentDrivenIcon:Tr,ComponentIcon:Or,ContrastIcon:vr,ControlsIcon:Ar,CopyIcon:wr,CreditIcon:Br,CrossIcon:Er,DashboardIcon:xr,DatabaseIcon:Rr,DeleteIcon:Lr,DiamondIcon:Pr,DirectionIcon:Mr,DiscordIcon:Dr,DocChartIcon:Gr,DocListIcon:Hr,DocumentIcon:Nr,DownloadIcon:Ur,DragIcon:Fr,EditIcon:qr,EllipsisIcon:zr,EmailIcon:Kr,ExpandAltIcon:Yr,ExpandIcon:Wr,EyeCloseIcon:Vr,EyeIcon:$r,FaceHappyIcon:jr,FaceNeutralIcon:Zr,FaceSadIcon:Jr,FacebookIcon:Qr,FailedIcon:Xr,FastForwardIcon:ec,FigmaIcon:oc,FilterIcon:nc,FlagIcon:tc,FolderIcon:rc,FormIcon:cc,GDriveIcon:ic,GithubIcon:ac,GitlabIcon:sc,GlobeIcon:lc,GoogleIcon:uc,GraphBarIcon:Ic,GraphLineIcon:dc,GraphqlIcon:mc,GridAltIcon:fc,GridIcon:Z,GrowIcon:pc,HeartHollowIcon:hc,HeartIcon:gc,HomeIcon:bc,HourglassIcon:Sc,InfoIcon:Cc,ItalicIcon:yc,JumpToIcon:_c,KeyIcon:kc,LightningIcon:Tc,LightningOffIcon:Oc,LinkBrokenIcon:vc,LinkIcon:Ac,LinkedinIcon:wc,LinuxIcon:Bc,ListOrderedIcon:Ec,ListUnorderedIcon:xc,LocationIcon:Rc,LockIcon:Lc,MarkdownIcon:Pc,MarkupIcon:Mc,MediumIcon:Dc,MemoryIcon:Gc,MenuIcon:Hc,MergeIcon:Nc,MirrorIcon:Uc,MobileIcon:Fc,MoonIcon:qc,NutIcon:zc,OutboxIcon:Kc,OutlineIcon:Yc,PaintBrushIcon:Wc,PaperClipIcon:Vc,ParagraphIcon:$c,PassedIcon:jc,PhoneIcon:Zc,PhotoDragIcon:Jc,PhotoIcon:J,PinAltIcon:Qc,PinIcon:Xc,PlayBackIcon:ei,PlayIcon:oi,PlayNextIcon:ni,PlusIcon:ti,PointerDefaultIcon:ri,PointerHandIcon:ci,PowerIcon:ii,PrintIcon:ai,ProceedIcon:si,ProfileIcon:li,PullRequestIcon:ui,QuestionIcon:Ii,RSSIcon:di,RedirectIcon:mi,ReduxIcon:fi,RefreshIcon:pi,ReplyIcon:hi,RepoIcon:gi,RequestChangeIcon:bi,RewindIcon:Si,RulerIcon:Ci,SearchIcon:yi,ShareAltIcon:_i,ShareIcon:ki,ShieldIcon:Ti,SideBySideIcon:Oi,SidebarAltIcon:vi,SidebarAltToggleIcon:Ai,SidebarIcon:wi,SidebarToggleIcon:Bi,SpeakerIcon:Ei,StackedIcon:xi,StarHollowIcon:Ri,StarIcon:Li,StickerIcon:Pi,StopAltIcon:Mi,StopIcon:Di,StorybookIcon:Gi,StructureIcon:Hi,SubtractIcon:Ni,SunIcon:Ui,SupportIcon:Fi,SwitchAltIcon:qi,SyncIcon:zi,TabletIcon:Ki,ThumbsUpIcon:Yi,TimeIcon:Wi,TimerIcon:Vi,TransferIcon:$i,TrashIcon:ji,TwitterIcon:Zi,TypeIcon:Ji,UbuntuIcon:Qi,UndoIcon:Xi,UnfoldIcon:ea,UnlockIcon:oa,UnpinIcon:na,UploadIcon:ta,UserAddIcon:ra,UserAltIcon:ca,UserIcon:ia,UsersIcon:aa,VSCodeIcon:sa,VerifiedIcon:la,VideoIcon:ua,WandIcon:Ia,WatchIcon:da,WindowsIcon:ma,WrenchIcon:fa,YoutubeIcon:pa,ZoomIcon:ha,ZoomOutIcon:ga,ZoomResetIcon:ba,iconList:Sa}=__STORYBOOK_ICONS__;I();d();m();var Ta=__STORYBOOK_THEMING__,{CacheProvider:Oa,ClassNames:va,Global:Aa,ThemeProvider:wa,background:Ba,color:Ea,convert:xa,create:Ra,createCache:La,createGlobal:Pa,createReset:Ma,css:Da,darken:Ga,ensure:Ha,ignoreSsrWarning:Na,isPropValid:Ua,jsx:Fa,keyframes:qa,lighten:za,styled:Q,themes:Ka,typography:Ya,useTheme:Wa,withTheme:Va}=__STORYBOOK_THEMING__;I();d();m();var Qa=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();I();d();m();function X(e){for(var o=[],a=1;a({borderRadius:"1rem",display:"block",height:"1rem",width:"1rem",background:e}),({theme:e})=>({boxShadow:`${e.appBorderColor} 0 0 0 1px inset`})),Ie=(e,o=[],a)=>{if(e==="transparent")return"transparent";if(o.find(c=>c.value===e))return e;let r=o.find(c=>c.name===a);if(r)return r.value;if(a){let c=o.map(h=>h.name).join(", ");H.warn(X` + Backgrounds Addon: could not find the default color "${a}". + These are the available colors for your story based on your configuration: + ${c}. + `)}return"transparent"},oe=(0,U.default)(1e3)((e,o,a,r,c,h)=>({id:e||o,title:o,onClick:()=>{c({selected:a,name:o})},value:a,right:r?C.createElement(ue,{background:a}):void 0,active:h})),de=(0,U.default)(10)((e,o,a)=>{let r=e.map(({name:c,value:h})=>oe(null,c,h,!0,a,h===o));return o!=="transparent"?[oe("reset","Clear background","transparent",null,a,!1),...r]:r}),me={default:null,disable:!0,values:[]},fe=L(function(){let e=D(v,me),[o,a]=K(!1),[r,c]=M(),h=r[v]?.value,s=z(()=>Ie(h,e.values,e.default),[e,h]);Array.isArray(e)&&H.warn("Addon Backgrounds api has changed in Storybook 6.0. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md");let t=q(n=>{c({[v]:{...r[v],value:n}})},[e,r,c]);return e.disable?null:C.createElement(R,null,C.createElement(j,{placement:"top",closeOnOutsideClick:!0,tooltip:({onHide:n})=>C.createElement($,{links:de(e.values,s,({selected:l})=>{s!==l&&t(l),n()})}),onVisibleChange:a},C.createElement(N,{key:"background",title:"Change the background of the preview",active:s!=="transparent"||o},C.createElement(J,null))))}),pe=L(function(){let[e,o]=M(),{grid:a}=D(v,{grid:{disable:!1}});if(a?.disable)return null;let r=e[v]?.grid||!1;return C.createElement(N,{key:"background",active:r,title:"Apply a grid to the preview",onClick:()=>o({[v]:{...e[v],grid:!r}})},C.createElement(Z,null))});P.register(ee,()=>{P.add(ee,{title:"Backgrounds",type:Y.TOOL,match:({viewMode:e,tabId:o})=>!!(e&&e.match(/^(story|docs)$/))&&!o,render:()=>C.createElement(R,null,C.createElement(fe,null),C.createElement(pe,null))})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/docs/sb-addons/essentials-backgrounds-2/manager-bundle.js.LEGAL.txt b/docs/sb-addons/essentials-backgrounds-2/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/docs/sb-addons/essentials-controls-1/manager-bundle.js b/docs/sb-addons/essentials-controls-1/manager-bundle.js new file mode 100644 index 0000000..226e7ef --- /dev/null +++ b/docs/sb-addons/essentials-controls-1/manager-bundle.js @@ -0,0 +1,60 @@ +try{ +(()=>{var Uy=Object.create;var Xn=Object.defineProperty;var zy=Object.getOwnPropertyDescriptor;var Gy=Object.getOwnPropertyNames;var Vy=Object.getPrototypeOf,Wy=Object.prototype.hasOwnProperty;var nr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $e=(e,t)=>()=>(e&&(t=e(e=0)),t);var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_u=(e,t)=>{for(var r in t)Xn(e,r,{get:t[r],enumerable:!0})},Ky=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Gy(t))!Wy.call(e,a)&&a!==r&&Xn(e,a,{get:()=>t[a],enumerable:!(n=zy(t,a))||n.enumerable});return e};var De=(e,t,r)=>(r=e!=null?Uy(Vy(e)):{},Ky(t||!e||!e.__esModule?Xn(r,"default",{value:e,enumerable:!0}):r,e));var l=$e(()=>{});var c=$e(()=>{});var d=$e(()=>{});var m,Ou,Je,$R,HR,UR,zR,Ru,GR,de,ar,Jn,VR,WR,KR,YR,Pu,XR,JR,QR,Ee,ku,ZR,eP,he,tP,rP,nP,Nu,Qe,aP,we,ne,oP,uP,iP,Ct=$e(()=>{l();c();d();m=__REACT__,{Children:Ou,Component:Je,Fragment:$R,Profiler:HR,PureComponent:UR,StrictMode:zR,Suspense:Ru,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:GR,cloneElement:de,createContext:ar,createElement:Jn,createFactory:VR,createRef:WR,forwardRef:KR,isValidElement:YR,lazy:Pu,memo:XR,startTransition:JR,unstable_act:QR,useCallback:Ee,useContext:ku,useDebugValue:ZR,useDeferredValue:eP,useEffect:he,useId:tP,useImperativeHandle:rP,useInsertionEffect:nP,useLayoutEffect:Nu,useMemo:Qe,useReducer:aP,useRef:we,useState:ne,useSyncExternalStore:oP,useTransition:uP,version:iP}=__REACT__});var Ku={};_u(Ku,{A:()=>Jy,ActionBar:()=>ea,AddonPanel:()=>ta,Badge:()=>ra,Bar:()=>Qy,Blockquote:()=>Zy,Button:()=>xt,ClipboardCode:()=>e2,Code:()=>Hu,DL:()=>t2,Div:()=>r2,DocumentWrapper:()=>n2,EmptyTabContent:()=>na,ErrorFormatter:()=>Uu,FlexBar:()=>aa,Form:()=>He,H1:()=>a2,H2:()=>oa,H3:()=>zu,H4:()=>o2,H5:()=>u2,H6:()=>i2,HR:()=>s2,IconButton:()=>lt,IconButtonSkeleton:()=>l2,Icons:()=>c2,Img:()=>d2,LI:()=>p2,Link:()=>ct,ListItem:()=>f2,Loader:()=>Gu,OL:()=>h2,P:()=>m2,Placeholder:()=>g2,Pre:()=>y2,ResetWrapper:()=>ua,ScrollArea:()=>b2,Separator:()=>E2,Spaced:()=>ia,Span:()=>A2,StorybookIcon:()=>v2,StorybookLogo:()=>D2,Symbols:()=>C2,SyntaxHighlighter:()=>Mr,TT:()=>x2,TabBar:()=>F2,TabButton:()=>S2,TabWrapper:()=>w2,Table:()=>B2,Tabs:()=>T2,TabsState:()=>Vu,TooltipLinkList:()=>I2,TooltipMessage:()=>_2,TooltipNote:()=>sa,UL:()=>O2,WithTooltip:()=>jr,WithTooltipPure:()=>la,Zoom:()=>ca,codeCommon:()=>Ft,components:()=>da,createCopyToClipboardFunction:()=>R2,default:()=>Xy,getStoryHref:()=>Wu,icons:()=>P2,interleaveSeparators:()=>k2,nameSpaceClassNames:()=>pa,resetComponents:()=>N2,withReset:()=>St});var Xy,Jy,ea,ta,ra,Qy,Zy,xt,e2,Hu,t2,r2,n2,na,Uu,aa,He,a2,oa,zu,o2,u2,i2,s2,lt,l2,c2,d2,p2,ct,f2,Gu,h2,m2,g2,y2,ua,b2,E2,ia,A2,v2,D2,C2,Mr,x2,F2,S2,w2,B2,T2,Vu,I2,_2,sa,O2,jr,la,ca,Ft,da,R2,Wu,P2,k2,pa,N2,St,or=$e(()=>{l();c();d();Xy=__STORYBOOK_COMPONENTS__,{A:Jy,ActionBar:ea,AddonPanel:ta,Badge:ra,Bar:Qy,Blockquote:Zy,Button:xt,ClipboardCode:e2,Code:Hu,DL:t2,Div:r2,DocumentWrapper:n2,EmptyTabContent:na,ErrorFormatter:Uu,FlexBar:aa,Form:He,H1:a2,H2:oa,H3:zu,H4:o2,H5:u2,H6:i2,HR:s2,IconButton:lt,IconButtonSkeleton:l2,Icons:c2,Img:d2,LI:p2,Link:ct,ListItem:f2,Loader:Gu,OL:h2,P:m2,Placeholder:g2,Pre:y2,ResetWrapper:ua,ScrollArea:b2,Separator:E2,Spaced:ia,Span:A2,StorybookIcon:v2,StorybookLogo:D2,Symbols:C2,SyntaxHighlighter:Mr,TT:x2,TabBar:F2,TabButton:S2,TabWrapper:w2,Table:B2,Tabs:T2,TabsState:Vu,TooltipLinkList:I2,TooltipMessage:_2,TooltipNote:sa,UL:O2,WithTooltip:jr,WithTooltipPure:la,Zoom:ca,codeCommon:Ft,components:da,createCopyToClipboardFunction:R2,getStoryHref:Wu,icons:P2,interleaveSeparators:k2,nameSpaceClassNames:pa,resetComponents:N2,withReset:St}=__STORYBOOK_COMPONENTS__});var Be,ur,fa=$e(()=>{l();c();d();Be=e=>`control-${e.replace(/\s+/g,"-")}`,ur=e=>`set-${e.replace(/\s+/g,"-")}`});var VP,WP,KP,YP,Yu,XP,JP,Xu,QP,ZP,e7,t7,r7,n7,L2,Ju,a7,o7,u7,i7,M,ha,s7,ma,l7,ga=$e(()=>{l();c();d();VP=__STORYBOOK_THEMING__,{CacheProvider:WP,ClassNames:KP,Global:YP,ThemeProvider:Yu,background:XP,color:JP,convert:Xu,create:QP,createCache:ZP,createGlobal:e7,createReset:t7,css:r7,darken:n7,ensure:L2,ignoreSsrWarning:Ju,isPropValid:a7,jsx:o7,keyframes:u7,lighten:i7,styled:M,themes:ha,typography:s7,useTheme:ma,withTheme:l7}=__STORYBOOK_THEMING__});var _k,Ok,Rk,ai,Pk,kk,Nk,Lk,qk,Mk,jk,$k,Hk,Uk,zk,Gk,Vk,Wk,Kk,Yk,Xk,Jk,Qk,Zk,eN,tN,rN,nN,aN,oN,uN,iN,sN,lN,cN,dN,pN,fN,hN,mN,gN,yN,bN,EN,oi,AN,ui,Sa,vN,DN,ii,CN,xN,FN,SN,wN,BN,TN,IN,_N,ON,RN,PN,kN,NN,LN,qN,MN,jN,$N,HN,UN,zN,GN,VN,WN,KN,YN,XN,JN,QN,ZN,eL,tL,Ur,rL,nL,aL,oL,uL,iL,sL,si,li,lL,cL,dL,pL,fL,hL,mL,gL,yL,bL,EL,AL,vL,DL,CL,xL,FL,SL,wL,BL,TL,IL,_L,OL,RL,PL,kL,NL,LL,qL,ML,jL,$L,ci,HL,UL,zL,GL,VL,WL,KL,di,YL,XL,JL,QL,ZL,eq,tq,rq,nq,aq,oq,uq,iq,sq,lq,cq,dq,pq,fq,hq,mq,gq,yq,bq,Eq,Aq,vq,Dq,Cq,xq,Fq,Sq,wq,Bq,Tq,Iq,_q,Oq,Rq,Pq,kq,Nq,Lq,qq,Mq,jq,$q,Hq,Uq,zq,Gq,Vq,Wq,Kq,Yq,Xq,Jq,Qq,pi,Zq,eM,tM,rM,nM,aM,oM,uM,iM,sM,lM,cM,dM,fi,pM,fM,hM,mM,gM,yM,bM,EM,AM,vM,hi,DM,CM,xM,FM,SM,mi,gi,yi,wM,wa=$e(()=>{l();c();d();_k=__STORYBOOK_ICONS__,{AccessibilityAltIcon:Ok,AccessibilityIcon:Rk,AddIcon:ai,AdminIcon:Pk,AlertAltIcon:kk,AlertIcon:Nk,AlignLeftIcon:Lk,AlignRightIcon:qk,AppleIcon:Mk,ArrowDownIcon:jk,ArrowLeftIcon:$k,ArrowRightIcon:Hk,ArrowSolidDownIcon:Uk,ArrowSolidLeftIcon:zk,ArrowSolidRightIcon:Gk,ArrowSolidUpIcon:Vk,ArrowUpIcon:Wk,AzureDevOpsIcon:Kk,BackIcon:Yk,BasketIcon:Xk,BatchAcceptIcon:Jk,BatchDenyIcon:Qk,BeakerIcon:Zk,BellIcon:eN,BitbucketIcon:tN,BoldIcon:rN,BookIcon:nN,BookmarkHollowIcon:aN,BookmarkIcon:oN,BottomBarIcon:uN,BottomBarToggleIcon:iN,BoxIcon:sN,BranchIcon:lN,BrowserIcon:cN,ButtonIcon:dN,CPUIcon:pN,CalendarIcon:fN,CameraIcon:hN,CategoryIcon:mN,CertificateIcon:gN,ChangedIcon:yN,ChatIcon:bN,CheckIcon:EN,ChevronDownIcon:oi,ChevronLeftIcon:AN,ChevronRightIcon:ui,ChevronSmallDownIcon:Sa,ChevronSmallLeftIcon:vN,ChevronSmallRightIcon:DN,ChevronSmallUpIcon:ii,ChevronUpIcon:CN,ChromaticIcon:xN,ChromeIcon:FN,CircleHollowIcon:SN,CircleIcon:wN,ClearIcon:BN,CloseAltIcon:TN,CloseIcon:IN,CloudHollowIcon:_N,CloudIcon:ON,CogIcon:RN,CollapseIcon:PN,CommandIcon:kN,CommentAddIcon:NN,CommentIcon:LN,CommentsIcon:qN,CommitIcon:MN,CompassIcon:jN,ComponentDrivenIcon:$N,ComponentIcon:HN,ContrastIcon:UN,ControlsIcon:zN,CopyIcon:GN,CreditIcon:VN,CrossIcon:WN,DashboardIcon:KN,DatabaseIcon:YN,DeleteIcon:XN,DiamondIcon:JN,DirectionIcon:QN,DiscordIcon:ZN,DocChartIcon:eL,DocListIcon:tL,DocumentIcon:Ur,DownloadIcon:rL,DragIcon:nL,EditIcon:aL,EllipsisIcon:oL,EmailIcon:uL,ExpandAltIcon:iL,ExpandIcon:sL,EyeCloseIcon:si,EyeIcon:li,FaceHappyIcon:lL,FaceNeutralIcon:cL,FaceSadIcon:dL,FacebookIcon:pL,FailedIcon:fL,FastForwardIcon:hL,FigmaIcon:mL,FilterIcon:gL,FlagIcon:yL,FolderIcon:bL,FormIcon:EL,GDriveIcon:AL,GithubIcon:vL,GitlabIcon:DL,GlobeIcon:CL,GoogleIcon:xL,GraphBarIcon:FL,GraphLineIcon:SL,GraphqlIcon:wL,GridAltIcon:BL,GridIcon:TL,GrowIcon:IL,HeartHollowIcon:_L,HeartIcon:OL,HomeIcon:RL,HourglassIcon:PL,InfoIcon:kL,ItalicIcon:NL,JumpToIcon:LL,KeyIcon:qL,LightningIcon:ML,LightningOffIcon:jL,LinkBrokenIcon:$L,LinkIcon:ci,LinkedinIcon:HL,LinuxIcon:UL,ListOrderedIcon:zL,ListUnorderedIcon:GL,LocationIcon:VL,LockIcon:WL,MarkdownIcon:KL,MarkupIcon:di,MediumIcon:YL,MemoryIcon:XL,MenuIcon:JL,MergeIcon:QL,MirrorIcon:ZL,MobileIcon:eq,MoonIcon:tq,NutIcon:rq,OutboxIcon:nq,OutlineIcon:aq,PaintBrushIcon:oq,PaperClipIcon:uq,ParagraphIcon:iq,PassedIcon:sq,PhoneIcon:lq,PhotoDragIcon:cq,PhotoIcon:dq,PinAltIcon:pq,PinIcon:fq,PlayBackIcon:hq,PlayIcon:mq,PlayNextIcon:gq,PlusIcon:yq,PointerDefaultIcon:bq,PointerHandIcon:Eq,PowerIcon:Aq,PrintIcon:vq,ProceedIcon:Dq,ProfileIcon:Cq,PullRequestIcon:xq,QuestionIcon:Fq,RSSIcon:Sq,RedirectIcon:wq,ReduxIcon:Bq,RefreshIcon:Tq,ReplyIcon:Iq,RepoIcon:_q,RequestChangeIcon:Oq,RewindIcon:Rq,RulerIcon:Pq,SearchIcon:kq,ShareAltIcon:Nq,ShareIcon:Lq,ShieldIcon:qq,SideBySideIcon:Mq,SidebarAltIcon:jq,SidebarAltToggleIcon:$q,SidebarIcon:Hq,SidebarToggleIcon:Uq,SpeakerIcon:zq,StackedIcon:Gq,StarHollowIcon:Vq,StarIcon:Wq,StickerIcon:Kq,StopAltIcon:Yq,StopIcon:Xq,StorybookIcon:Jq,StructureIcon:Qq,SubtractIcon:pi,SunIcon:Zq,SupportIcon:eM,SwitchAltIcon:tM,SyncIcon:rM,TabletIcon:nM,ThumbsUpIcon:aM,TimeIcon:oM,TimerIcon:uM,TransferIcon:iM,TrashIcon:sM,TwitterIcon:lM,TypeIcon:cM,UbuntuIcon:dM,UndoIcon:fi,UnfoldIcon:pM,UnlockIcon:fM,UnpinIcon:hM,UploadIcon:mM,UserAddIcon:gM,UserAltIcon:yM,UserIcon:bM,UsersIcon:EM,VSCodeIcon:AM,VerifiedIcon:vM,VideoIcon:hi,WandIcon:DM,WatchIcon:CM,WindowsIcon:xM,WrenchIcon:FM,YoutubeIcon:SM,ZoomIcon:mi,ZoomOutIcon:gi,ZoomResetIcon:yi,iconList:wM}=__STORYBOOK_ICONS__});var Ba=F((OM,bi)=>{l();c();d();function D1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r{l();c();d();function C1(){this.__data__=[],this.size=0}Ei.exports=C1});var zr=F((jM,vi)=>{l();c();d();function x1(e,t){return e===t||e!==e&&t!==t}vi.exports=x1});var dr=F((zM,Di)=>{l();c();d();var F1=zr();function S1(e,t){for(var r=e.length;r--;)if(F1(e[r][0],t))return r;return-1}Di.exports=S1});var xi=F((KM,Ci)=>{l();c();d();var w1=dr(),B1=Array.prototype,T1=B1.splice;function I1(e){var t=this.__data__,r=w1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():T1.call(t,r,1),--this.size,!0}Ci.exports=I1});var Si=F((QM,Fi)=>{l();c();d();var _1=dr();function O1(e){var t=this.__data__,r=_1(t,e);return r<0?void 0:t[r][1]}Fi.exports=O1});var Bi=F((rj,wi)=>{l();c();d();var R1=dr();function P1(e){return R1(this.__data__,e)>-1}wi.exports=P1});var Ii=F((uj,Ti)=>{l();c();d();var k1=dr();function N1(e,t){var r=this.__data__,n=k1(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Ti.exports=N1});var pr=F((cj,_i)=>{l();c();d();var L1=Ai(),q1=xi(),M1=Si(),j1=Bi(),$1=Ii();function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var H1=pr();function U1(){this.__data__=new H1,this.size=0}Oi.exports=U1});var ki=F((bj,Pi)=>{l();c();d();function z1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}Pi.exports=z1});var Li=F((Dj,Ni)=>{l();c();d();function G1(e){return this.__data__.get(e)}Ni.exports=G1});var Mi=F((Sj,qi)=>{l();c();d();function V1(e){return this.__data__.has(e)}qi.exports=V1});var Ta=F((Ij,ji)=>{l();c();d();var W1=typeof window=="object"&&window&&window.Object===Object&&window;ji.exports=W1});var ke=F((Pj,$i)=>{l();c();d();var K1=Ta(),Y1=typeof self=="object"&&self&&self.Object===Object&&self,X1=K1||Y1||Function("return this")();$i.exports=X1});var pt=F((qj,Hi)=>{l();c();d();var J1=ke(),Q1=J1.Symbol;Hi.exports=Q1});var Vi=F((Hj,Gi)=>{l();c();d();var Ui=pt(),zi=Object.prototype,Z1=zi.hasOwnProperty,eb=zi.toString,fr=Ui?Ui.toStringTag:void 0;function tb(e){var t=Z1.call(e,fr),r=e[fr];try{e[fr]=void 0;var n=!0}catch{}var a=eb.call(e);return n&&(t?e[fr]=r:delete e[fr]),a}Gi.exports=tb});var Ki=F((Vj,Wi)=>{l();c();d();var rb=Object.prototype,nb=rb.toString;function ab(e){return nb.call(e)}Wi.exports=ab});var ft=F((Xj,Ji)=>{l();c();d();var Yi=pt(),ob=Vi(),ub=Ki(),ib="[object Null]",sb="[object Undefined]",Xi=Yi?Yi.toStringTag:void 0;function lb(e){return e==null?e===void 0?sb:ib:Xi&&Xi in Object(e)?ob(e):ub(e)}Ji.exports=lb});var Me=F((e$,Qi)=>{l();c();d();function cb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Qi.exports=cb});var Ia=F((a$,Zi)=>{l();c();d();var db=ft(),pb=Me(),fb="[object AsyncFunction]",hb="[object Function]",mb="[object GeneratorFunction]",gb="[object Proxy]";function yb(e){if(!pb(e))return!1;var t=db(e);return t==hb||t==mb||t==fb||t==gb}Zi.exports=yb});var ts=F((s$,es)=>{l();c();d();var bb=ke(),Eb=bb["__core-js_shared__"];es.exports=Eb});var as=F((p$,ns)=>{l();c();d();var _a=ts(),rs=function(){var e=/[^.]+$/.exec(_a&&_a.keys&&_a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ab(e){return!!rs&&rs in e}ns.exports=Ab});var Oa=F((g$,os)=>{l();c();d();var vb=Function.prototype,Db=vb.toString;function Cb(e){if(e!=null){try{return Db.call(e)}catch{}try{return e+""}catch{}}return""}os.exports=Cb});var is=F((A$,us)=>{l();c();d();var xb=Ia(),Fb=as(),Sb=Me(),wb=Oa(),Bb=/[\\^$.*+?()[\]{}|]/g,Tb=/^\[object .+?Constructor\]$/,Ib=Function.prototype,_b=Object.prototype,Ob=Ib.toString,Rb=_b.hasOwnProperty,Pb=RegExp("^"+Ob.call(Rb).replace(Bb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kb(e){if(!Sb(e)||Fb(e))return!1;var t=xb(e)?Pb:Tb;return t.test(wb(e))}us.exports=kb});var ls=F((x$,ss)=>{l();c();d();function Nb(e,t){return e?.[t]}ss.exports=Nb});var rt=F((B$,cs)=>{l();c();d();var Lb=is(),qb=ls();function Mb(e,t){var r=qb(e,t);return Lb(r)?r:void 0}cs.exports=Mb});var Gr=F((O$,ds)=>{l();c();d();var jb=rt(),$b=ke(),Hb=jb($b,"Map");ds.exports=Hb});var hr=F((N$,ps)=>{l();c();d();var Ub=rt(),zb=Ub(Object,"create");ps.exports=zb});var ms=F((j$,hs)=>{l();c();d();var fs=hr();function Gb(){this.__data__=fs?fs(null):{},this.size=0}hs.exports=Gb});var ys=F((z$,gs)=>{l();c();d();function Vb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}gs.exports=Vb});var Es=F((K$,bs)=>{l();c();d();var Wb=hr(),Kb="__lodash_hash_undefined__",Yb=Object.prototype,Xb=Yb.hasOwnProperty;function Jb(e){var t=this.__data__;if(Wb){var r=t[e];return r===Kb?void 0:r}return Xb.call(t,e)?t[e]:void 0}bs.exports=Jb});var vs=F((Q$,As)=>{l();c();d();var Qb=hr(),Zb=Object.prototype,eE=Zb.hasOwnProperty;function tE(e){var t=this.__data__;return Qb?t[e]!==void 0:eE.call(t,e)}As.exports=tE});var Cs=F((rH,Ds)=>{l();c();d();var rE=hr(),nE="__lodash_hash_undefined__";function aE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=rE&&t===void 0?nE:t,this}Ds.exports=aE});var Fs=F((uH,xs)=>{l();c();d();var oE=ms(),uE=ys(),iE=Es(),sE=vs(),lE=Cs();function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var Ss=Fs(),cE=pr(),dE=Gr();function pE(){this.size=0,this.__data__={hash:new Ss,map:new(dE||cE),string:new Ss}}ws.exports=pE});var Is=F((hH,Ts)=>{l();c();d();function fE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Ts.exports=fE});var mr=F((bH,_s)=>{l();c();d();var hE=Is();function mE(e,t){var r=e.__data__;return hE(t)?r[typeof t=="string"?"string":"hash"]:r.map}_s.exports=mE});var Rs=F((DH,Os)=>{l();c();d();var gE=mr();function yE(e){var t=gE(this,e).delete(e);return this.size-=t?1:0,t}Os.exports=yE});var ks=F((SH,Ps)=>{l();c();d();var bE=mr();function EE(e){return bE(this,e).get(e)}Ps.exports=EE});var Ls=F((IH,Ns)=>{l();c();d();var AE=mr();function vE(e){return AE(this,e).has(e)}Ns.exports=vE});var Ms=F((PH,qs)=>{l();c();d();var DE=mr();function CE(e,t){var r=DE(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}qs.exports=CE});var Vr=F((qH,js)=>{l();c();d();var xE=Bs(),FE=Rs(),SE=ks(),wE=Ls(),BE=Ms();function _t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var TE=pr(),IE=Gr(),_E=Vr(),OE=200;function RE(e,t){var r=this.__data__;if(r instanceof TE){var n=r.__data__;if(!IE||n.length{l();c();d();var PE=pr(),kE=Ri(),NE=ki(),LE=Li(),qE=Mi(),ME=Hs();function Ot(e){var t=this.__data__=new PE(e);this.size=t.size}Ot.prototype.clear=kE;Ot.prototype.delete=NE;Ot.prototype.get=LE;Ot.prototype.has=qE;Ot.prototype.set=ME;Us.exports=Ot});var Gs=F((XH,zs)=>{l();c();d();var jE="__lodash_hash_undefined__";function $E(e){return this.__data__.set(e,jE),this}zs.exports=$E});var Ws=F((eU,Vs)=>{l();c();d();function HE(e){return this.__data__.has(e)}Vs.exports=HE});var Ra=F((aU,Ks)=>{l();c();d();var UE=Vr(),zE=Gs(),GE=Ws();function Kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new UE;++t{l();c();d();function VE(e,t){for(var r=-1,n=e==null?0:e.length;++r{l();c();d();function WE(e,t){return e.has(t)}Js.exports=WE});var ka=F((gU,Qs)=>{l();c();d();var KE=Ra(),YE=Xs(),XE=Pa(),JE=1,QE=2;function ZE(e,t,r,n,a,o){var u=r&JE,i=e.length,s=t.length;if(i!=s&&!(u&&s>i))return!1;var p=o.get(e),y=o.get(t);if(p&&y)return p==t&&y==e;var A=-1,g=!0,h=r&QE?new KE:void 0;for(o.set(e,t),o.set(t,e);++A{l();c();d();var eA=ke(),tA=eA.Uint8Array;Zs.exports=tA});var tl=F((xU,el)=>{l();c();d();function rA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}el.exports=rA});var Yr=F((BU,rl)=>{l();c();d();function nA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}rl.exports=nA});var il=F((OU,ul)=>{l();c();d();var nl=pt(),al=Na(),aA=zr(),oA=ka(),uA=tl(),iA=Yr(),sA=1,lA=2,cA="[object Boolean]",dA="[object Date]",pA="[object Error]",fA="[object Map]",hA="[object Number]",mA="[object RegExp]",gA="[object Set]",yA="[object String]",bA="[object Symbol]",EA="[object ArrayBuffer]",AA="[object DataView]",ol=nl?nl.prototype:void 0,La=ol?ol.valueOf:void 0;function vA(e,t,r,n,a,o,u){switch(r){case AA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case EA:return!(e.byteLength!=t.byteLength||!o(new al(e),new al(t)));case cA:case dA:case hA:return aA(+e,+t);case pA:return e.name==t.name&&e.message==t.message;case mA:case yA:return e==t+"";case fA:var i=uA;case gA:var s=n&sA;if(i||(i=iA),e.size!=t.size&&!s)return!1;var p=u.get(e);if(p)return p==t;n|=lA,u.set(e,t);var y=oA(i(e),i(t),n,a,o,u);return u.delete(e),y;case bA:if(La)return La.call(e)==La.call(t)}return!1}ul.exports=vA});var Xr=F((NU,sl)=>{l();c();d();function DA(e,t){for(var r=-1,n=t.length,a=e.length;++r{l();c();d();var CA=Array.isArray;ll.exports=CA});var qa=F((zU,cl)=>{l();c();d();var xA=Xr(),FA=je();function SA(e,t,r){var n=t(e);return FA(e)?n:xA(n,r(e))}cl.exports=SA});var pl=F((KU,dl)=>{l();c();d();function wA(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r{l();c();d();function BA(){return[]}fl.exports=BA});var Jr=F((rz,ml)=>{l();c();d();var TA=pl(),IA=Ma(),_A=Object.prototype,OA=_A.propertyIsEnumerable,hl=Object.getOwnPropertySymbols,RA=hl?function(e){return e==null?[]:(e=Object(e),TA(hl(e),function(t){return OA.call(e,t)}))}:IA;ml.exports=RA});var yl=F((uz,gl)=>{l();c();d();function PA(e,t){for(var r=-1,n=Array(e);++r{l();c();d();function kA(e){return e!=null&&typeof e=="object"}bl.exports=kA});var Al=F((hz,El)=>{l();c();d();var NA=ft(),LA=Ke(),qA="[object Arguments]";function MA(e){return LA(e)&&NA(e)==qA}El.exports=MA});var Qr=F((bz,Cl)=>{l();c();d();var vl=Al(),jA=Ke(),Dl=Object.prototype,$A=Dl.hasOwnProperty,HA=Dl.propertyIsEnumerable,UA=vl(function(){return arguments}())?vl:function(e){return jA(e)&&$A.call(e,"callee")&&!HA.call(e,"callee")};Cl.exports=UA});var Fl=F((Dz,xl)=>{l();c();d();function zA(){return!1}xl.exports=zA});var Zr=F((gr,Rt)=>{l();c();d();var GA=ke(),VA=Fl(),Bl=typeof gr=="object"&&gr&&!gr.nodeType&&gr,Sl=Bl&&typeof Rt=="object"&&Rt&&!Rt.nodeType&&Rt,WA=Sl&&Sl.exports===Bl,wl=WA?GA.Buffer:void 0,KA=wl?wl.isBuffer:void 0,YA=KA||VA;Rt.exports=YA});var en=F((Tz,Tl)=>{l();c();d();var XA=9007199254740991,JA=/^(?:0|[1-9]\d*)$/;function QA(e,t){var r=typeof e;return t=t??XA,!!t&&(r=="number"||r!="symbol"&&JA.test(e))&&e>-1&&e%1==0&&e{l();c();d();var ZA=9007199254740991;function ev(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZA}Il.exports=ev});var Ol=F((Lz,_l)=>{l();c();d();var tv=ft(),rv=tn(),nv=Ke(),av="[object Arguments]",ov="[object Array]",uv="[object Boolean]",iv="[object Date]",sv="[object Error]",lv="[object Function]",cv="[object Map]",dv="[object Number]",pv="[object Object]",fv="[object RegExp]",hv="[object Set]",mv="[object String]",gv="[object WeakMap]",yv="[object ArrayBuffer]",bv="[object DataView]",Ev="[object Float32Array]",Av="[object Float64Array]",vv="[object Int8Array]",Dv="[object Int16Array]",Cv="[object Int32Array]",xv="[object Uint8Array]",Fv="[object Uint8ClampedArray]",Sv="[object Uint16Array]",wv="[object Uint32Array]",le={};le[Ev]=le[Av]=le[vv]=le[Dv]=le[Cv]=le[xv]=le[Fv]=le[Sv]=le[wv]=!0;le[av]=le[ov]=le[yv]=le[uv]=le[bv]=le[iv]=le[sv]=le[lv]=le[cv]=le[dv]=le[pv]=le[fv]=le[hv]=le[mv]=le[gv]=!1;function Bv(e){return nv(e)&&rv(e.length)&&!!le[tv(e)]}_l.exports=Bv});var rn=F(($z,Rl)=>{l();c();d();function Tv(e){return function(t){return e(t)}}Rl.exports=Tv});var nn=F((yr,Pt)=>{l();c();d();var Iv=Ta(),Pl=typeof yr=="object"&&yr&&!yr.nodeType&&yr,br=Pl&&typeof Pt=="object"&&Pt&&!Pt.nodeType&&Pt,_v=br&&br.exports===Pl,ja=_v&&Iv.process,Ov=function(){try{var e=br&&br.require&&br.require("util").types;return e||ja&&ja.binding&&ja.binding("util")}catch{}}();Pt.exports=Ov});var $a=F((Kz,Ll)=>{l();c();d();var Rv=Ol(),Pv=rn(),kl=nn(),Nl=kl&&kl.isTypedArray,kv=Nl?Pv(Nl):Rv;Ll.exports=kv});var Ha=F((Qz,ql)=>{l();c();d();var Nv=yl(),Lv=Qr(),qv=je(),Mv=Zr(),jv=en(),$v=$a(),Hv=Object.prototype,Uv=Hv.hasOwnProperty;function zv(e,t){var r=qv(e),n=!r&&Lv(e),a=!r&&!n&&Mv(e),o=!r&&!n&&!a&&$v(e),u=r||n||a||o,i=u?Nv(e.length,String):[],s=i.length;for(var p in e)(t||Uv.call(e,p))&&!(u&&(p=="length"||a&&(p=="offset"||p=="parent")||o&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||jv(p,s)))&&i.push(p);return i}ql.exports=zv});var an=F((rG,Ml)=>{l();c();d();var Gv=Object.prototype;function Vv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gv;return e===r}Ml.exports=Vv});var Ua=F((uG,jl)=>{l();c();d();function Wv(e,t){return function(r){return e(t(r))}}jl.exports=Wv});var Hl=F((cG,$l)=>{l();c();d();var Kv=Ua(),Yv=Kv(Object.keys,Object);$l.exports=Yv});var zl=F((hG,Ul)=>{l();c();d();var Xv=an(),Jv=Hl(),Qv=Object.prototype,Zv=Qv.hasOwnProperty;function eD(e){if(!Xv(e))return Jv(e);var t=[];for(var r in Object(e))Zv.call(e,r)&&r!="constructor"&&t.push(r);return t}Ul.exports=eD});var za=F((bG,Gl)=>{l();c();d();var tD=Ia(),rD=tn();function nD(e){return e!=null&&rD(e.length)&&!tD(e)}Gl.exports=nD});var kt=F((DG,Vl)=>{l();c();d();var aD=Ha(),oD=zl(),uD=za();function iD(e){return uD(e)?aD(e):oD(e)}Vl.exports=iD});var Ga=F((SG,Wl)=>{l();c();d();var sD=qa(),lD=Jr(),cD=kt();function dD(e){return sD(e,cD,lD)}Wl.exports=dD});var Xl=F((IG,Yl)=>{l();c();d();var Kl=Ga(),pD=1,fD=Object.prototype,hD=fD.hasOwnProperty;function mD(e,t,r,n,a,o){var u=r&pD,i=Kl(e),s=i.length,p=Kl(t),y=p.length;if(s!=y&&!u)return!1;for(var A=s;A--;){var g=i[A];if(!(u?g in t:hD.call(t,g)))return!1}var h=o.get(e),E=o.get(t);if(h&&E)return h==t&&E==e;var b=!0;o.set(e,t),o.set(t,e);for(var x=u;++A{l();c();d();var gD=rt(),yD=ke(),bD=gD(yD,"DataView");Jl.exports=bD});var ec=F((qG,Zl)=>{l();c();d();var ED=rt(),AD=ke(),vD=ED(AD,"Promise");Zl.exports=vD});var Va=F((HG,tc)=>{l();c();d();var DD=rt(),CD=ke(),xD=DD(CD,"Set");tc.exports=xD});var nc=F((VG,rc)=>{l();c();d();var FD=rt(),SD=ke(),wD=FD(SD,"WeakMap");rc.exports=wD});var Er=F((XG,cc)=>{l();c();d();var Wa=Ql(),Ka=Gr(),Ya=ec(),Xa=Va(),Ja=nc(),lc=ft(),Nt=Oa(),ac="[object Map]",BD="[object Object]",oc="[object Promise]",uc="[object Set]",ic="[object WeakMap]",sc="[object DataView]",TD=Nt(Wa),ID=Nt(Ka),_D=Nt(Ya),OD=Nt(Xa),RD=Nt(Ja),ht=lc;(Wa&&ht(new Wa(new ArrayBuffer(1)))!=sc||Ka&&ht(new Ka)!=ac||Ya&&ht(Ya.resolve())!=oc||Xa&&ht(new Xa)!=uc||Ja&&ht(new Ja)!=ic)&&(ht=function(e){var t=lc(e),r=t==BD?e.constructor:void 0,n=r?Nt(r):"";if(n)switch(n){case TD:return sc;case ID:return ac;case _D:return oc;case OD:return uc;case RD:return ic}return t});cc.exports=ht});var bc=F((eV,yc)=>{l();c();d();var Qa=Wr(),PD=ka(),kD=il(),ND=Xl(),dc=Er(),pc=je(),fc=Zr(),LD=$a(),qD=1,hc="[object Arguments]",mc="[object Array]",on="[object Object]",MD=Object.prototype,gc=MD.hasOwnProperty;function jD(e,t,r,n,a,o){var u=pc(e),i=pc(t),s=u?mc:dc(e),p=i?mc:dc(t);s=s==hc?on:s,p=p==hc?on:p;var y=s==on,A=p==on,g=s==p;if(g&&fc(e)){if(!fc(t))return!1;u=!0,y=!1}if(g&&!y)return o||(o=new Qa),u||LD(e)?PD(e,t,r,n,a,o):kD(e,t,s,r,n,a,o);if(!(r&qD)){var h=y&&gc.call(e,"__wrapped__"),E=A&&gc.call(t,"__wrapped__");if(h||E){var b=h?e.value():e,x=E?t.value():t;return o||(o=new Qa),a(b,x,r,n,o)}}return g?(o||(o=new Qa),ND(e,t,r,n,a,o)):!1}yc.exports=jD});var Za=F((aV,vc)=>{l();c();d();var $D=bc(),Ec=Ke();function Ac(e,t,r,n,a){return e===t?!0:e==null||t==null||!Ec(e)&&!Ec(t)?e!==e&&t!==t:$D(e,t,r,n,Ac,a)}vc.exports=Ac});var Cc=F((sV,Dc)=>{l();c();d();var HD=Wr(),UD=Za(),zD=1,GD=2;function VD(e,t,r,n){var a=r.length,o=a,u=!n;if(e==null)return!o;for(e=Object(e);a--;){var i=r[a];if(u&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++a{l();c();d();var WD=Me();function KD(e){return e===e&&!WD(e)}xc.exports=KD});var Sc=F((gV,Fc)=>{l();c();d();var YD=eo(),XD=kt();function JD(e){for(var t=XD(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,YD(a)]}return t}Fc.exports=JD});var to=F((AV,wc)=>{l();c();d();function QD(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}wc.exports=QD});var Tc=F((xV,Bc)=>{l();c();d();var ZD=Cc(),eC=Sc(),tC=to();function rC(e){var t=eC(e);return t.length==1&&t[0][2]?tC(t[0][0],t[0][1]):function(r){return r===e||ZD(r,e,t)}}Bc.exports=rC});var Ar=F((BV,Ic)=>{l();c();d();var nC=ft(),aC=Ke(),oC="[object Symbol]";function uC(e){return typeof e=="symbol"||aC(e)&&nC(e)==oC}Ic.exports=uC});var un=F((OV,_c)=>{l();c();d();var iC=je(),sC=Ar(),lC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cC=/^\w*$/;function dC(e,t){if(iC(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||sC(e)?!0:cC.test(e)||!lC.test(e)||t!=null&&e in Object(t)}_c.exports=dC});var Pc=F((NV,Rc)=>{l();c();d();var Oc=Vr(),pC="Expected a function";function ro(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pC);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var u=e.apply(this,n);return r.cache=o.set(a,u)||o,u};return r.cache=new(ro.Cache||Oc),r}ro.Cache=Oc;Rc.exports=ro});var Nc=F((jV,kc)=>{l();c();d();var fC=Pc(),hC=500;function mC(e){var t=fC(e,function(n){return r.size===hC&&r.clear(),n}),r=t.cache;return t}kc.exports=mC});var qc=F((zV,Lc)=>{l();c();d();var gC=Nc(),yC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bC=/\\(\\)?/g,EC=gC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yC,function(r,n,a,o){t.push(a?o.replace(bC,"$1"):n||r)}),t});Lc.exports=EC});var zc=F((KV,Uc)=>{l();c();d();var Mc=pt(),AC=Ba(),vC=je(),DC=Ar(),CC=1/0,jc=Mc?Mc.prototype:void 0,$c=jc?jc.toString:void 0;function Hc(e){if(typeof e=="string")return e;if(vC(e))return AC(e,Hc)+"";if(DC(e))return $c?$c.call(e):"";var t=e+"";return t=="0"&&1/e==-CC?"-0":t}Uc.exports=Hc});var Vc=F((QV,Gc)=>{l();c();d();var xC=zc();function FC(e){return e==null?"":xC(e)}Gc.exports=FC});var vr=F((rW,Wc)=>{l();c();d();var SC=je(),wC=un(),BC=qc(),TC=Vc();function IC(e,t){return SC(e)?e:wC(e,t)?[e]:BC(TC(e))}Wc.exports=IC});var Lt=F((uW,Kc)=>{l();c();d();var _C=Ar(),OC=1/0;function RC(e){if(typeof e=="string"||_C(e))return e;var t=e+"";return t=="0"&&1/e==-OC?"-0":t}Kc.exports=RC});var sn=F((cW,Yc)=>{l();c();d();var PC=vr(),kC=Lt();function NC(e,t){t=PC(t,e);for(var r=0,n=t.length;e!=null&&r{l();c();d();var LC=sn();function qC(e,t,r){var n=e==null?void 0:LC(e,t);return n===void 0?r:n}Xc.exports=qC});var Zc=F((bW,Qc)=>{l();c();d();function MC(e,t){return e!=null&&t in Object(e)}Qc.exports=MC});var td=F((DW,ed)=>{l();c();d();var jC=vr(),$C=Qr(),HC=je(),UC=en(),zC=tn(),GC=Lt();function VC(e,t,r){t=jC(t,e);for(var n=-1,a=t.length,o=!1;++n{l();c();d();var WC=Zc(),KC=td();function YC(e,t){return e!=null&&KC(e,t,WC)}rd.exports=YC});var ad=F((IW,nd)=>{l();c();d();var XC=Za(),JC=Jc(),QC=no(),ZC=un(),ex=eo(),tx=to(),rx=Lt(),nx=1,ax=2;function ox(e,t){return ZC(e)&&ex(t)?tx(rx(e),t):function(r){var n=JC(r,e);return n===void 0&&n===t?QC(r,e):XC(t,n,nx|ax)}}nd.exports=ox});var ao=F((PW,od)=>{l();c();d();function ux(e){return e}od.exports=ux});var id=F((qW,ud)=>{l();c();d();function ix(e){return function(t){return t?.[e]}}ud.exports=ix});var ld=F((HW,sd)=>{l();c();d();var sx=sn();function lx(e){return function(t){return sx(t,e)}}sd.exports=lx});var dd=F((VW,cd)=>{l();c();d();var cx=id(),dx=ld(),px=un(),fx=Lt();function hx(e){return px(e)?cx(fx(e)):dx(e)}cd.exports=hx});var oo=F((XW,pd)=>{l();c();d();var mx=Tc(),gx=ad(),yx=ao(),bx=je(),Ex=dd();function Ax(e){return typeof e=="function"?e:e==null?yx:typeof e=="object"?bx(e)?gx(e[0],e[1]):mx(e):Ex(e)}pd.exports=Ax});var uo=F((eK,fd)=>{l();c();d();var vx=rt(),Dx=function(){try{var e=vx(Object,"defineProperty");return e({},"",{}),e}catch{}}();fd.exports=Dx});var ln=F((aK,md)=>{l();c();d();var hd=uo();function Cx(e,t,r){t=="__proto__"&&hd?hd(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}md.exports=Cx});var cn=F((sK,gd)=>{l();c();d();var xx=ln(),Fx=zr(),Sx=Object.prototype,wx=Sx.hasOwnProperty;function Bx(e,t,r){var n=e[t];(!(wx.call(e,t)&&Fx(n,r))||r===void 0&&!(t in e))&&xx(e,t,r)}gd.exports=Bx});var Ed=F((pK,bd)=>{l();c();d();var Tx=cn(),Ix=vr(),_x=en(),yd=Me(),Ox=Lt();function Rx(e,t,r,n){if(!yd(e))return e;t=Ix(t,e);for(var a=-1,o=t.length,u=o-1,i=e;i!=null&&++a{l();c();d();var Px=sn(),kx=Ed(),Nx=vr();function Lx(e,t,r){for(var n=-1,a=t.length,o={};++n{l();c();d();var qx=Ua(),Mx=qx(Object.getPrototypeOf,Object);vd.exports=Mx});var so=F((xK,Dd)=>{l();c();d();var jx=Xr(),$x=dn(),Hx=Jr(),Ux=Ma(),zx=Object.getOwnPropertySymbols,Gx=zx?function(e){for(var t=[];e;)jx(t,Hx(e)),e=$x(e);return t}:Ux;Dd.exports=Gx});var xd=F((BK,Cd)=>{l();c();d();function Vx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}Cd.exports=Vx});var Sd=F((OK,Fd)=>{l();c();d();var Wx=Me(),Kx=an(),Yx=xd(),Xx=Object.prototype,Jx=Xx.hasOwnProperty;function Qx(e){if(!Wx(e))return Yx(e);var t=Kx(e),r=[];for(var n in e)n=="constructor"&&(t||!Jx.call(e,n))||r.push(n);return r}Fd.exports=Qx});var pn=F((NK,wd)=>{l();c();d();var Zx=Ha(),eF=Sd(),tF=za();function rF(e){return tF(e)?Zx(e,!0):eF(e)}wd.exports=rF});var lo=F((jK,Bd)=>{l();c();d();var nF=qa(),aF=so(),oF=pn();function uF(e){return nF(e,oF,aF)}Bd.exports=uF});var co=F((zK,Td)=>{l();c();d();var iF=Ba(),sF=oo(),lF=io(),cF=lo();function dF(e,t){if(e==null)return{};var r=iF(cF(e),function(n){return[n]});return t=sF(t),lF(e,r,function(n,a){return t(n,a[0])})}Td.exports=dF});var hn=F((up,Do)=>{l();c();d();(function(e){if(typeof up=="object"&&typeof Do<"u")Do.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function n(a,o,u){function i(y,A){if(!o[y]){if(!a[y]){var g=typeof nr=="function"&&nr;if(!A&&g)return g(y,!0);if(s)return s(y,!0);var h=new Error("Cannot find module '"+y+"'");throw h.code="MODULE_NOT_FOUND",h}var E=o[y]={exports:{}};a[y][0].call(E.exports,function(b){var x=a[y][1][b];return i(x||b)},E,E.exports,n,a,o,u)}return o[y].exports}for(var s=typeof nr=="function"&&nr,p=0;p=0)return this.lastItem=this.list[s],this.list[s].val},u.prototype.set=function(i,s){var p;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(p=this.indexOf(i),p>=0?(this.lastItem=this.list[p],this.list[p].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},u.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},u.prototype.forEach=function(i,s){var p;for(p=0;p0&&(I[w]={cacheItem:b,arg:arguments[w]},L?i(g,I):g.push(I),g.length>y&&s(g.shift())),E.wasMemoized=L,E.numArgs=w+1,B};return E.limit=y,E.wasMemoized=!1,E.cache=A,E.lru=g,E}};function i(y,A){var g=y.length,h=A.length,E,b,x;for(b=0;b=0&&(g=y[E],h=g.cacheItem.get(g.arg),!h||!h.size);E--)g.cacheItem.delete(g.arg)}function p(y,A){return y===A||y!==y&&A!==A}},{"map-or-similar":1}]},{},[3])(3)})});var sp=F((pY,ip)=>{l();c();d();function SS(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o{l();c();d();function wS(e){return e!==e}lp.exports=wS});var pp=F((AY,dp)=>{l();c();d();function BS(e,t,r){for(var n=r-1,a=e.length;++n{l();c();d();var TS=sp(),IS=cp(),_S=pp();function OS(e,t,r){return t===t?_S(e,t,r):TS(e,IS,r)}fp.exports=OS});var gp=F((BY,mp)=>{l();c();d();var RS=hp();function PS(e,t){var r=e==null?0:e.length;return!!r&&RS(e,t,0)>-1}mp.exports=PS});var bp=F((OY,yp)=>{l();c();d();function kS(e,t,r){for(var n=-1,a=e==null?0:e.length;++n{l();c();d();function NS(){}Ep.exports=NS});var Dp=F((jY,vp)=>{l();c();d();var Co=Va(),LS=Ap(),qS=Yr(),MS=1/0,jS=Co&&1/qS(new Co([,-0]))[1]==MS?function(e){return new Co(e)}:LS;vp.exports=jS});var xp=F((zY,Cp)=>{l();c();d();var $S=Ra(),HS=gp(),US=bp(),zS=Pa(),GS=Dp(),VS=Yr(),WS=200;function KS(e,t,r){var n=-1,a=HS,o=e.length,u=!0,i=[],s=i;if(r)u=!1,a=US;else if(o>=WS){var p=t?null:GS(e);if(p)return VS(p);u=!1,a=zS,s=new $S}else s=t?[]:i;e:for(;++n{l();c();d();var YS=xp();function XS(e){return e&&e.length?YS(e):[]}Fp.exports=XS});var Bp=F((QY,wp)=>{l();c();d();function JS(e,t){for(var r=-1,n=e==null?0:e.length;++r{l();c();d();var QS=cn(),ZS=ln();function ew(e,t,r,n){var a=!r;r||(r={});for(var o=-1,u=t.length;++o{l();c();d();var tw=Cr(),rw=kt();function nw(e,t){return e&&tw(t,rw(t),e)}Ip.exports=nw});var Rp=F((cX,Op)=>{l();c();d();var aw=Cr(),ow=pn();function uw(e,t){return e&&aw(t,ow(t),e)}Op.exports=uw});var qp=F((xr,Mt)=>{l();c();d();var iw=ke(),Lp=typeof xr=="object"&&xr&&!xr.nodeType&&xr,Pp=Lp&&typeof Mt=="object"&&Mt&&!Mt.nodeType&&Mt,sw=Pp&&Pp.exports===Lp,kp=sw?iw.Buffer:void 0,Np=kp?kp.allocUnsafe:void 0;function lw(e,t){if(t)return e.slice();var r=e.length,n=Np?Np(r):new e.constructor(r);return e.copy(n),n}Mt.exports=lw});var jp=F((yX,Mp)=>{l();c();d();function cw(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{l();c();d();var dw=Cr(),pw=Jr();function fw(e,t){return dw(e,pw(e),t)}$p.exports=fw});var zp=F((FX,Up)=>{l();c();d();var hw=Cr(),mw=so();function gw(e,t){return hw(e,mw(e),t)}Up.exports=gw});var Vp=F((TX,Gp)=>{l();c();d();var yw=Object.prototype,bw=yw.hasOwnProperty;function Ew(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&bw.call(e,"index")&&(r.index=e.index,r.input=e.input),r}Gp.exports=Ew});var mn=F((RX,Kp)=>{l();c();d();var Wp=Na();function Aw(e){var t=new e.constructor(e.byteLength);return new Wp(t).set(new Wp(e)),t}Kp.exports=Aw});var Xp=F((LX,Yp)=>{l();c();d();var vw=mn();function Dw(e,t){var r=t?vw(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}Yp.exports=Dw});var Qp=F(($X,Jp)=>{l();c();d();var Cw=/\w*$/;function xw(e){var t=new e.constructor(e.source,Cw.exec(e));return t.lastIndex=e.lastIndex,t}Jp.exports=xw});var n0=F((GX,r0)=>{l();c();d();var Zp=pt(),e0=Zp?Zp.prototype:void 0,t0=e0?e0.valueOf:void 0;function Fw(e){return t0?Object(t0.call(e)):{}}r0.exports=Fw});var o0=F((YX,a0)=>{l();c();d();var Sw=mn();function ww(e,t){var r=t?Sw(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}a0.exports=ww});var i0=F((ZX,u0)=>{l();c();d();var Bw=mn(),Tw=Xp(),Iw=Qp(),_w=n0(),Ow=o0(),Rw="[object Boolean]",Pw="[object Date]",kw="[object Map]",Nw="[object Number]",Lw="[object RegExp]",qw="[object Set]",Mw="[object String]",jw="[object Symbol]",$w="[object ArrayBuffer]",Hw="[object DataView]",Uw="[object Float32Array]",zw="[object Float64Array]",Gw="[object Int8Array]",Vw="[object Int16Array]",Ww="[object Int32Array]",Kw="[object Uint8Array]",Yw="[object Uint8ClampedArray]",Xw="[object Uint16Array]",Jw="[object Uint32Array]";function Qw(e,t,r){var n=e.constructor;switch(t){case $w:return Bw(e);case Rw:case Pw:return new n(+e);case Hw:return Tw(e,r);case Uw:case zw:case Gw:case Vw:case Ww:case Kw:case Yw:case Xw:case Jw:return Ow(e,r);case kw:return new n;case Nw:case Mw:return new n(e);case Lw:return Iw(e);case qw:return new n;case jw:return _w(e)}}u0.exports=Qw});var c0=F((nJ,l0)=>{l();c();d();var Zw=Me(),s0=Object.create,e5=function(){function e(){}return function(t){if(!Zw(t))return{};if(s0)return s0(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();l0.exports=e5});var p0=F((iJ,d0)=>{l();c();d();var t5=c0(),r5=dn(),n5=an();function a5(e){return typeof e.constructor=="function"&&!n5(e)?t5(r5(e)):{}}d0.exports=a5});var h0=F((dJ,f0)=>{l();c();d();var o5=Er(),u5=Ke(),i5="[object Map]";function s5(e){return u5(e)&&o5(e)==i5}f0.exports=s5});var b0=F((mJ,y0)=>{l();c();d();var l5=h0(),c5=rn(),m0=nn(),g0=m0&&m0.isMap,d5=g0?c5(g0):l5;y0.exports=d5});var A0=F((EJ,E0)=>{l();c();d();var p5=Er(),f5=Ke(),h5="[object Set]";function m5(e){return f5(e)&&p5(e)==h5}E0.exports=m5});var x0=F((CJ,C0)=>{l();c();d();var g5=A0(),y5=rn(),v0=nn(),D0=v0&&v0.isSet,b5=D0?y5(D0):g5;C0.exports=b5});var T0=F((wJ,B0)=>{l();c();d();var E5=Wr(),A5=Bp(),v5=cn(),D5=_p(),C5=Rp(),x5=qp(),F5=jp(),S5=Hp(),w5=zp(),B5=Ga(),T5=lo(),I5=Er(),_5=Vp(),O5=i0(),R5=p0(),P5=je(),k5=Zr(),N5=b0(),L5=Me(),q5=x0(),M5=kt(),j5=pn(),$5=1,H5=2,U5=4,F0="[object Arguments]",z5="[object Array]",G5="[object Boolean]",V5="[object Date]",W5="[object Error]",S0="[object Function]",K5="[object GeneratorFunction]",Y5="[object Map]",X5="[object Number]",w0="[object Object]",J5="[object RegExp]",Q5="[object Set]",Z5="[object String]",e3="[object Symbol]",t3="[object WeakMap]",r3="[object ArrayBuffer]",n3="[object DataView]",a3="[object Float32Array]",o3="[object Float64Array]",u3="[object Int8Array]",i3="[object Int16Array]",s3="[object Int32Array]",l3="[object Uint8Array]",c3="[object Uint8ClampedArray]",d3="[object Uint16Array]",p3="[object Uint32Array]",se={};se[F0]=se[z5]=se[r3]=se[n3]=se[G5]=se[V5]=se[a3]=se[o3]=se[u3]=se[i3]=se[s3]=se[Y5]=se[X5]=se[w0]=se[J5]=se[Q5]=se[Z5]=se[e3]=se[l3]=se[c3]=se[d3]=se[p3]=!0;se[W5]=se[S0]=se[t3]=!1;function gn(e,t,r,n,a,o){var u,i=t&$5,s=t&H5,p=t&U5;if(r&&(u=a?r(e,n,a,o):r(e)),u!==void 0)return u;if(!L5(e))return e;var y=P5(e);if(y){if(u=_5(e),!i)return F5(e,u)}else{var A=I5(e),g=A==S0||A==K5;if(k5(e))return x5(e,i);if(A==w0||A==F0||g&&!a){if(u=s||g?{}:R5(e),!i)return s?w5(e,C5(u,e)):S5(e,D5(u,e))}else{if(!se[A])return a?e:{};u=O5(e,A,i)}}o||(o=new E5);var h=o.get(e);if(h)return h;o.set(e,u),q5(e)?e.forEach(function(x){u.add(gn(x,t,r,x,e,o))}):N5(e)&&e.forEach(function(x,B){u.set(B,gn(x,t,r,B,e,o))});var E=p?s?T5:B5:s?j5:M5,b=y?void 0:E(e);return A5(b||e,function(x,B){b&&(B=x,x=e[B]),v5(u,B,gn(x,t,r,B,e,o))}),u}B0.exports=gn});var _0=F((_J,I0)=>{l();c();d();var f3=T0(),h3=1,m3=4;function g3(e){return f3(e,h3|m3)}I0.exports=g3});var q0=F((dQ,L0)=>{l();c();d();function $3(e){return function(t,r,n){for(var a=-1,o=Object(t),u=n(t),i=u.length;i--;){var s=u[e?i:++a];if(r(o[s],s,o)===!1)break}return t}}L0.exports=$3});var j0=F((mQ,M0)=>{l();c();d();var H3=q0(),U3=H3();M0.exports=U3});var H0=F((EQ,$0)=>{l();c();d();var z3=j0(),G3=kt();function V3(e,t){return e&&z3(e,t,G3)}$0.exports=V3});var Fo=F((CQ,U0)=>{l();c();d();var W3=ln(),K3=H0(),Y3=oo();function X3(e,t){var r={};return t=Y3(t,3),K3(e,function(n,a,o){W3(r,a,t(n,a,o))}),r}U0.exports=X3});var G0=F((wQ,z0)=>{l();c();d();var J3=io(),Q3=no();function Z3(e,t){return J3(e,t,function(r,n){return Q3(e,n)})}z0.exports=Z3});var Y0=F((_Q,K0)=>{l();c();d();var V0=pt(),eB=Qr(),tB=je(),W0=V0?V0.isConcatSpreadable:void 0;function rB(e){return tB(e)||eB(e)||!!(W0&&e&&e[W0])}K0.exports=rB});var Q0=F((kQ,J0)=>{l();c();d();var nB=Xr(),aB=Y0();function X0(e,t,r,n,a){var o=-1,u=e.length;for(r||(r=aB),a||(a=[]);++o0&&r(i)?t>1?X0(i,t-1,r,n,a):nB(a,i):n||(a[a.length]=i)}return a}J0.exports=X0});var ef=F((MQ,Z0)=>{l();c();d();var oB=Q0();function uB(e){var t=e==null?0:e.length;return t?oB(e,1):[]}Z0.exports=uB});var rf=F((UQ,tf)=>{l();c();d();function iB(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}tf.exports=iB});var of=F((WQ,af)=>{l();c();d();var sB=rf(),nf=Math.max;function lB(e,t,r){return t=nf(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=nf(n.length-t,0),u=Array(o);++a{l();c();d();function cB(e){return function(){return e}}uf.exports=cB});var df=F((tZ,cf)=>{l();c();d();var dB=sf(),lf=uo(),pB=ao(),fB=lf?function(e,t){return lf(e,"toString",{configurable:!0,enumerable:!1,value:dB(t),writable:!0})}:pB;cf.exports=fB});var ff=F((oZ,pf)=>{l();c();d();var hB=800,mB=16,gB=Date.now;function yB(e){var t=0,r=0;return function(){var n=gB(),a=mB-(n-r);if(r=n,a>0){if(++t>=hB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}pf.exports=yB});var mf=F((lZ,hf)=>{l();c();d();var bB=df(),EB=ff(),AB=EB(bB);hf.exports=AB});var yf=F((fZ,gf)=>{l();c();d();var vB=ef(),DB=of(),CB=mf();function xB(e){return CB(DB(e,void 0,vB),e+"")}gf.exports=xB});var Ef=F((yZ,bf)=>{l();c();d();var FB=G0(),SB=yf(),wB=SB(function(e,t){return e==null?{}:FB(e,t)});bf.exports=wB});var Cf=F((GZ,Df)=>{l();c();d();var TB=ft(),IB=dn(),_B=Ke(),OB="[object Object]",RB=Function.prototype,PB=Object.prototype,vf=RB.toString,kB=PB.hasOwnProperty,NB=vf.call(Object);function LB(e){if(!_B(e)||TB(e)!=OB)return!1;var t=IB(e);if(t===null)return!0;var r=kB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&vf.call(r)==NB}Df.exports=LB});var Ff=F((YZ,xf)=>{l();c();d();xf.exports=qB;function qB(e,t){if(wo("noDeprecation"))return e;var r=!1;function n(){if(!r){if(wo("throwDeprecation"))throw new Error(t);wo("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function wo(e){try{if(!window.localStorage)return!1}catch{return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var wf=F((nee,Sf)=>{"use strict";l();c();d();Sf.exports=Error});var Tf=F((iee,Bf)=>{"use strict";l();c();d();Bf.exports=EvalError});var _f=F((dee,If)=>{"use strict";l();c();d();If.exports=RangeError});var Rf=F((mee,Of)=>{"use strict";l();c();d();Of.exports=ReferenceError});var Bo=F((Eee,Pf)=>{"use strict";l();c();d();Pf.exports=SyntaxError});var jt=F((Cee,kf)=>{"use strict";l();c();d();kf.exports=TypeError});var Lf=F((wee,Nf)=>{"use strict";l();c();d();Nf.exports=URIError});var Mf=F((_ee,qf)=>{"use strict";l();c();d();qf.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==a||u.enumerable!==!0)return!1}return!0}});var Hf=F((kee,$f)=>{"use strict";l();c();d();var jf=typeof Symbol<"u"&&Symbol,MB=Mf();$f.exports=function(){return typeof jf!="function"||typeof Symbol!="function"||typeof jf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:MB()}});var zf=F((Mee,Uf)=>{"use strict";l();c();d();var To={__proto__:null,foo:{}},jB=Object;Uf.exports=function(){return{__proto__:To}.foo===To.foo&&!(To instanceof jB)}});var Wf=F((Uee,Vf)=>{"use strict";l();c();d();var $B="Function.prototype.bind called on incompatible ",HB=Object.prototype.toString,UB=Math.max,zB="[object Function]",Gf=function(t,r){for(var n=[],a=0;a{"use strict";l();c();d();var WB=Wf();Kf.exports=Function.prototype.bind||WB});var Xf=F((Jee,Yf)=>{"use strict";l();c();d();var KB=Function.prototype.call,YB=Object.prototype.hasOwnProperty,XB=yn();Yf.exports=XB.call(KB,YB)});var Et=F((tte,th)=>{"use strict";l();c();d();var Z,JB=wf(),QB=Tf(),ZB=_f(),e8=Rf(),zt=Bo(),Ut=jt(),t8=Lf(),eh=Function,Io=function(e){try{return eh('"use strict"; return ('+e+").constructor;")()}catch{}},yt=Object.getOwnPropertyDescriptor;if(yt)try{yt({},"")}catch{yt=null}var _o=function(){throw new Ut},r8=yt?function(){try{return arguments.callee,_o}catch{try{return yt(arguments,"callee").get}catch{return _o}}}():_o,$t=Hf()(),n8=zf()(),Ae=Object.getPrototypeOf||(n8?function(e){return e.__proto__}:null),Ht={},a8=typeof Uint8Array>"u"||!Ae?Z:Ae(Uint8Array),bt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":$t&&Ae?Ae([][Symbol.iterator]()):Z,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":Ht,"%AsyncGenerator%":Ht,"%AsyncGeneratorFunction%":Ht,"%AsyncIteratorPrototype%":Ht,"%Atomics%":typeof Atomics>"u"?Z:Atomics,"%BigInt%":typeof BigInt>"u"?Z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JB,"%eval%":eval,"%EvalError%":QB,"%Float32Array%":typeof Float32Array>"u"?Z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Z:FinalizationRegistry,"%Function%":eh,"%GeneratorFunction%":Ht,"%Int8Array%":typeof Int8Array>"u"?Z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$t&&Ae?Ae(Ae([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$t||!Ae?Z:Ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Z:Promise,"%Proxy%":typeof Proxy>"u"?Z:Proxy,"%RangeError%":ZB,"%ReferenceError%":e8,"%Reflect%":typeof Reflect>"u"?Z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$t||!Ae?Z:Ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$t&&Ae?Ae(""[Symbol.iterator]()):Z,"%Symbol%":$t?Symbol:Z,"%SyntaxError%":zt,"%ThrowTypeError%":r8,"%TypedArray%":a8,"%TypeError%":Ut,"%Uint8Array%":typeof Uint8Array>"u"?Z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Z:Uint32Array,"%URIError%":t8,"%WeakMap%":typeof WeakMap>"u"?Z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Z:WeakSet};if(Ae)try{null.error}catch(e){Jf=Ae(Ae(e)),bt["%Error.prototype%"]=Jf}var Jf,o8=function e(t){var r;if(t==="%AsyncFunction%")r=Io("async function () {}");else if(t==="%GeneratorFunction%")r=Io("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Io("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ae&&(r=Ae(a.prototype))}return bt[t]=r,r},Qf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fr=yn(),bn=Xf(),u8=Fr.call(Function.call,Array.prototype.concat),i8=Fr.call(Function.apply,Array.prototype.splice),Zf=Fr.call(Function.call,String.prototype.replace),En=Fr.call(Function.call,String.prototype.slice),s8=Fr.call(Function.call,RegExp.prototype.exec),l8=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,c8=/\\(\\)?/g,d8=function(t){var r=En(t,0,1),n=En(t,-1);if(r==="%"&&n!=="%")throw new zt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new zt("invalid intrinsic syntax, expected opening `%`");var a=[];return Zf(t,l8,function(o,u,i,s){a[a.length]=i?Zf(s,c8,"$1"):u||o}),a},p8=function(t,r){var n=t,a;if(bn(Qf,n)&&(a=Qf[n],n="%"+a[0]+"%"),bn(bt,n)){var o=bt[n];if(o===Ht&&(o=o8(n)),typeof o>"u"&&!r)throw new Ut("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new zt("intrinsic "+t+" does not exist!")};th.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Ut("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ut('"allowMissing" argument must be a boolean');if(s8(/^%?[^%]*%?$/,t)===null)throw new zt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=d8(t),a=n.length>0?n[0]:"",o=p8("%"+a+"%",r),u=o.name,i=o.value,s=!1,p=o.alias;p&&(a=p[0],i8(n,u8([0,1],p)));for(var y=1,A=!0;y=n.length){var b=yt(i,g);A=!!b,A&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[g]}else A=bn(i,g),i=i[g];A&&!s&&(bt[u]=i)}}return i}});var vn=F((ote,rh)=>{"use strict";l();c();d();var f8=Et(),An=f8("%Object.defineProperty%",!0)||!1;if(An)try{An({},"a",{value:1})}catch{An=!1}rh.exports=An});var Oo=F((lte,nh)=>{"use strict";l();c();d();var h8=Et(),Dn=h8("%Object.getOwnPropertyDescriptor%",!0);if(Dn)try{Dn([],"length")}catch{Dn=null}nh.exports=Dn});var ih=F((fte,uh)=>{"use strict";l();c();d();var ah=vn(),m8=Bo(),Gt=jt(),oh=Oo();uh.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Gt("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Gt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Gt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Gt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Gt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Gt("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,s=!!oh&&oh(t,r);if(ah)ah(t,r,{configurable:u===null&&s?s.configurable:!u,enumerable:a===null&&s?s.enumerable:!a,value:n,writable:o===null&&s?s.writable:!o});else if(i||!a&&!o&&!u)t[r]=n;else throw new m8("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ch=F((yte,lh)=>{"use strict";l();c();d();var Ro=vn(),sh=function(){return!!Ro};sh.hasArrayLengthDefineBug=function(){if(!Ro)return null;try{return Ro([],"length",{value:1}).length!==1}catch{return!0}};lh.exports=sh});var mh=F((vte,hh)=>{"use strict";l();c();d();var g8=Et(),dh=ih(),y8=ch()(),ph=Oo(),fh=jt(),b8=g8("%Math.floor%");hh.exports=function(t,r){if(typeof t!="function")throw new fh("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||b8(r)!==r)throw new fh("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&ph){var u=ph(t,"length");u&&!u.configurable&&(a=!1),u&&!u.writable&&(o=!1)}return(a||o||!n)&&(y8?dh(t,"length",r,!0,!0):dh(t,"length",r)),t}});var vh=F((Fte,Cn)=>{"use strict";l();c();d();var Po=yn(),xn=Et(),E8=mh(),A8=jt(),bh=xn("%Function.prototype.apply%"),Eh=xn("%Function.prototype.call%"),Ah=xn("%Reflect.apply%",!0)||Po.call(Eh,bh),gh=vn(),v8=xn("%Math.max%");Cn.exports=function(t){if(typeof t!="function")throw new A8("a function is required");var r=Ah(Po,Eh,arguments);return E8(r,1+v8(0,t.length-(arguments.length-1)),!0)};var yh=function(){return Ah(Po,bh,arguments)};gh?gh(Cn.exports,"apply",{value:yh}):Cn.exports.apply=yh});var Fh=F((Tte,xh)=>{"use strict";l();c();d();var Dh=Et(),Ch=vh(),D8=Ch(Dh("String.prototype.indexOf"));xh.exports=function(t,r){var n=Dh(t,!!r);return typeof n=="function"&&D8(t,".prototype.")>-1?Ch(n):n}});var Sh=F(()=>{l();c();d()});var Vh=F((qte,Gh)=>{l();c();d();var zo=typeof Map=="function"&&Map.prototype,ko=Object.getOwnPropertyDescriptor&&zo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sn=zo&&ko&&typeof ko.get=="function"?ko.get:null,wh=zo&&Map.prototype.forEach,Go=typeof Set=="function"&&Set.prototype,No=Object.getOwnPropertyDescriptor&&Go?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,wn=Go&&No&&typeof No.get=="function"?No.get:null,Bh=Go&&Set.prototype.forEach,C8=typeof WeakMap=="function"&&WeakMap.prototype,wr=C8?WeakMap.prototype.has:null,x8=typeof WeakSet=="function"&&WeakSet.prototype,Br=x8?WeakSet.prototype.has:null,F8=typeof WeakRef=="function"&&WeakRef.prototype,Th=F8?WeakRef.prototype.deref:null,S8=Boolean.prototype.valueOf,w8=Object.prototype.toString,B8=Function.prototype.toString,T8=String.prototype.match,Vo=String.prototype.slice,ut=String.prototype.replace,I8=String.prototype.toUpperCase,Ih=String.prototype.toLowerCase,Mh=RegExp.prototype.test,_h=Array.prototype.concat,Ue=Array.prototype.join,_8=Array.prototype.slice,Oh=Math.floor,Mo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Lo=Object.getOwnPropertySymbols,jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",xe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vt||!0)?Symbol.toStringTag:null,jh=Object.prototype.propertyIsEnumerable,Rh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ph(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Mh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Oh(-e):Oh(e);if(n!==e){var a=String(n),o=Vo.call(t,a.length+1);return ut.call(a,r,"$&_")+"."+ut.call(ut.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ut.call(t,r,"$&_")}var $o=Sh(),kh=$o.custom,Nh=Hh(kh)?kh:null;Gh.exports=function e(t,r,n,a){var o=r||{};if(ot(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ot(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=ot(o,"customInspect")?o.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ot(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ot(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return zh(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return i?Ph(t,s):s}if(typeof t=="bigint"){var p=String(t)+"n";return i?Ph(t,p):p}var y=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof t=="object")return Ho(t)?"[Array]":"[Object]";var A=Y8(o,n);if(typeof a>"u")a=[];else if(Uh(a,t)>=0)return"[Circular]";function g(K,R,_){if(R&&(a=_8.call(a),a.push(R)),_){var j={depth:o.depth};return ot(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(K,j,n+1,a)}return e(K,o,n+1,a)}if(typeof t=="function"&&!Lh(t)){var h=j8(t),E=Fn(t,g);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(E.length>0?" { "+Ue.call(E,", ")+" }":"")}if(Hh(t)){var b=Vt?ut.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):jo.call(t);return typeof t=="object"&&!Vt?Sr(b):b}if(V8(t)){for(var x="<"+Ih.call(String(t.nodeName)),B=t.attributes||[],w=0;w",x}if(Ho(t)){if(t.length===0)return"[]";var I=Fn(t,g);return A&&!K8(I)?"["+Uo(I,A)+"]":"[ "+Ue.call(I,", ")+" ]"}if(P8(t)){var L=Fn(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!jh.call(t,"cause")?"{ ["+String(t)+"] "+Ue.call(_h.call("[cause]: "+g(t.cause),L),", ")+" }":L.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ue.call(L,", ")+" }"}if(typeof t=="object"&&u){if(Nh&&typeof t[Nh]=="function"&&$o)return $o(t,{depth:y-n});if(u!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if($8(t)){var S=[];return wh&&wh.call(t,function(K,R){S.push(g(R,t,!0)+" => "+g(K,t))}),qh("Map",Sn.call(t),S,A)}if(z8(t)){var N=[];return Bh&&Bh.call(t,function(K){N.push(g(K,t))}),qh("Set",wn.call(t),N,A)}if(H8(t))return qo("WeakMap");if(G8(t))return qo("WeakSet");if(U8(t))return qo("WeakRef");if(N8(t))return Sr(g(Number(t)));if(q8(t))return Sr(g(Mo.call(t)));if(L8(t))return Sr(S8.call(t));if(k8(t))return Sr(g(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===window)return"{ [object globalThis] }";if(!R8(t)&&!Lh(t)){var k=Fn(t,g),U=Rh?Rh(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",H=!U&&xe&&Object(t)===t&&xe in t?Vo.call(it(t),8,-1):W?"Object":"",oe=U||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Q=oe+(H||W?"["+Ue.call(_h.call([],H||[],W||[]),": ")+"] ":"");return k.length===0?Q+"{}":A?Q+"{"+Uo(k,A)+"}":Q+"{ "+Ue.call(k,", ")+" }"}return String(t)};function $h(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function O8(e){return ut.call(String(e),/"/g,""")}function Ho(e){return it(e)==="[object Array]"&&(!xe||!(typeof e=="object"&&xe in e))}function R8(e){return it(e)==="[object Date]"&&(!xe||!(typeof e=="object"&&xe in e))}function Lh(e){return it(e)==="[object RegExp]"&&(!xe||!(typeof e=="object"&&xe in e))}function P8(e){return it(e)==="[object Error]"&&(!xe||!(typeof e=="object"&&xe in e))}function k8(e){return it(e)==="[object String]"&&(!xe||!(typeof e=="object"&&xe in e))}function N8(e){return it(e)==="[object Number]"&&(!xe||!(typeof e=="object"&&xe in e))}function L8(e){return it(e)==="[object Boolean]"&&(!xe||!(typeof e=="object"&&xe in e))}function Hh(e){if(Vt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!jo)return!1;try{return jo.call(e),!0}catch{}return!1}function q8(e){if(!e||typeof e!="object"||!Mo)return!1;try{return Mo.call(e),!0}catch{}return!1}var M8=Object.prototype.hasOwnProperty||function(e){return e in this};function ot(e,t){return M8.call(e,t)}function it(e){return w8.call(e)}function j8(e){if(e.name)return e.name;var t=T8.call(B8.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Uh(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return zh(Vo.call(e,0,t.maxStringLength),t)+n}var a=ut.call(ut.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W8);return $h(a,"single",t)}function W8(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+I8.call(t.toString(16))}function Sr(e){return"Object("+e+")"}function qo(e){return e+" { ? }"}function qh(e,t,r,n){var a=n?Uo(r,n):Ue.call(r,", ");return e+" ("+t+") {"+a+"}"}function K8(e){for(var t=0;t=0)return!1;return!0}function Y8(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ue.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ue.call(Array(t+1),r)}}function Uo(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+Ue.call(e,","+r)+` +`+t.prev}function Fn(e,t){var r=Ho(e),n=[];if(r){n.length=e.length;for(var a=0;a{"use strict";l();c();d();var Wh=Et(),Wt=Fh(),X8=Vh(),J8=jt(),Bn=Wh("%WeakMap%",!0),Tn=Wh("%Map%",!0),Q8=Wt("WeakMap.prototype.get",!0),Z8=Wt("WeakMap.prototype.set",!0),eT=Wt("WeakMap.prototype.has",!0),tT=Wt("Map.prototype.get",!0),rT=Wt("Map.prototype.set",!0),nT=Wt("Map.prototype.has",!0),Wo=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},aT=function(e,t){var r=Wo(e,t);return r&&r.value},oT=function(e,t,r){var n=Wo(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},uT=function(e,t){return!!Wo(e,t)};Kh.exports=function(){var t,r,n,a={assert:function(o){if(!a.has(o))throw new J8("Side channel does not contain "+X8(o))},get:function(o){if(Bn&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Q8(t,o)}else if(Tn){if(r)return tT(r,o)}else if(n)return aT(n,o)},has:function(o){if(Bn&&o&&(typeof o=="object"||typeof o=="function")){if(t)return eT(t,o)}else if(Tn){if(r)return nT(r,o)}else if(n)return uT(n,o);return!1},set:function(o,u){Bn&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Bn),Z8(t,o,u)):Tn?(r||(r=new Tn),rT(r,o,u)):(n||(n={key:{},next:null}),oT(n,o,u))}};return a}});var In=F((Vte,Xh)=>{"use strict";l();c();d();var iT=String.prototype.replace,sT=/%20/g,Ko={RFC1738:"RFC1738",RFC3986:"RFC3986"};Xh.exports={default:Ko.RFC3986,formatters:{RFC1738:function(e){return iT.call(e,sT,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ko.RFC1738,RFC3986:Ko.RFC3986}});var Xo=F((Xte,Qh)=>{"use strict";l();c();d();var lT=In(),Yo=Object.prototype.hasOwnProperty,At=Array.isArray,ze=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),cT=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(At(n)){for(var a=[],o=0;o=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===lT.RFC1738&&(p===40||p===41)){i+=u.charAt(s);continue}if(p<128){i=i+ze[p];continue}if(p<2048){i=i+(ze[192|p>>6]+ze[128|p&63]);continue}if(p<55296||p>=57344){i=i+(ze[224|p>>12]+ze[128|p>>6&63]+ze[128|p&63]);continue}s+=1,p=65536+((p&1023)<<10|u.charCodeAt(s)&1023),i+=ze[240|p>>18]+ze[128|p>>12&63]+ze[128|p>>6&63]+ze[128|p&63]}return i},mT=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a{"use strict";l();c();d();var em=Yh(),_n=Xo(),Tr=In(),AT=Object.prototype.hasOwnProperty,tm={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Ge=Array.isArray,vT=Array.prototype.push,rm=function(e,t){vT.apply(e,Ge(t)?t:[t])},DT=Date.prototype.toISOString,Zh=Tr.default,me={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:_n.encode,encodeValuesOnly:!1,format:Zh,formatter:Tr.formatters[Zh],indices:!1,serializeDate:function(t){return DT.call(t)},skipNulls:!1,strictNullHandling:!1},CT=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Jo={},xT=function e(t,r,n,a,o,u,i,s,p,y,A,g,h,E,b,x,B,w){for(var I=t,L=w,S=0,N=!1;(L=L.get(Jo))!==void 0&&!N;){var k=L.get(t);if(S+=1,typeof k<"u"){if(k===S)throw new RangeError("Cyclic object value");N=!0}typeof L.get(Jo)>"u"&&(S=0)}if(typeof y=="function"?I=y(r,I):I instanceof Date?I=h(I):n==="comma"&&Ge(I)&&(I=_n.maybeMap(I,function(te){return te instanceof Date?h(te):te})),I===null){if(u)return p&&!x?p(r,me.encoder,B,"key",E):r;I=""}if(CT(I)||_n.isBuffer(I)){if(p){var U=x?r:p(r,me.encoder,B,"key",E);return[b(U)+"="+b(p(I,me.encoder,B,"value",E))]}return[b(r)+"="+b(String(I))]}var W=[];if(typeof I>"u")return W;var H;if(n==="comma"&&Ge(I))x&&p&&(I=_n.maybeMap(I,p)),H=[{value:I.length>0?I.join(",")||null:void 0}];else if(Ge(y))H=y;else{var oe=Object.keys(I);H=A?oe.sort(A):oe}var Q=s?r.replace(/\./g,"%2E"):r,K=a&&Ge(I)&&I.length===1?Q+"[]":Q;if(o&&Ge(I)&&I.length===0)return K+"[]";for(var R=0;R"u"?t.encodeDotInKeys===!0?!0:me.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:me.addQueryPrefix,allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:me.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:me.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?me.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:me.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:me.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:me.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:me.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:me.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:me.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:me.strictNullHandling}};nm.exports=function(e,t){var r=e,n=FT(t),a,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Ge(n.filter)&&(o=n.filter,a=o);var u=[];if(typeof r!="object"||r===null)return"";var i=tm[n.arrayFormat],s=i==="comma"&&n.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var p=em(),y=0;y0?h+g:""}});var im=F((are,um)=>{"use strict";l();c();d();var Kt=Xo(),Qo=Object.prototype.hasOwnProperty,ST=Array.isArray,fe={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:Kt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},wT=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},om=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},BT="utf8=%26%2310003%3B",TT="utf8=%E2%9C%93",IT=function(t,r){var n={__proto__:null},a=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,u=a.split(r.delimiter,o),i=-1,s,p=r.charset;if(r.charsetSentinel)for(s=0;s-1&&(E=ST(E)?[E]:E);var b=Qo.call(n,h);b&&r.duplicates==="combine"?n[h]=Kt.combine(n[h],E):(!b||r.duplicates==="last")&&(n[h]=E)}return n},_T=function(e,t,r,n){for(var a=n?t:om(t,r),o=e.length-1;o>=0;--o){var u,i=e[o];if(i==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&a===""?[]:[].concat(a);else{u=r.plainObjects?Object.create(null):{};var s=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,p=r.decodeDotInKeys?s.replace(/%2E/g,"."):s,y=parseInt(p,10);!r.parseArrays&&p===""?u={0:a}:!isNaN(y)&&i!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(u=[],u[y]=a):p!=="__proto__"&&(u[p]=a)}a=u}return a},OT=function(t,r,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=n.depth>0&&u.exec(o),p=s?o.slice(0,s.index):o,y=[];if(p){if(!n.plainObjects&&Qo.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var A=0;n.depth>0&&(s=i.exec(o))!==null&&A"u"?fe.charset:t.charset,n=typeof t.duplicates>"u"?fe.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:fe.allowDots:!!t.allowDots;return{allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:fe.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:fe.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:fe.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:fe.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:fe.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:fe.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:fe.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:fe.decoder,delimiter:typeof t.delimiter=="string"||Kt.isRegExp(t.delimiter)?t.delimiter:fe.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:fe.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:fe.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:fe.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:fe.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:fe.strictNullHandling}};um.exports=function(e,t){var r=RT(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?IT(e,r):e,a=r.plainObjects?Object.create(null):{},o=Object.keys(n),u=0;u{"use strict";l();c();d();var PT=am(),kT=im(),NT=In();sm.exports={formats:NT,parse:kT,stringify:PT}});var Dm=F((tne,vm)=>{l();c();d();(function(){"use strict";function e(u){if(u==null)return!1;switch(u.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}function t(u){if(u==null)return!1;switch(u.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(u){if(u==null)return!1;switch(u.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(u){return r(u)||u!=null&&u.type==="FunctionDeclaration"}function a(u){switch(u.type){case"IfStatement":return u.alternate!=null?u.alternate:u.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return u.body}return null}function o(u){var i;if(u.type!=="IfStatement"||u.alternate==null)return!1;i=u.consequent;do{if(i.type==="IfStatement"&&i.alternate==null)return!0;i=a(i)}while(i);return!1}vm.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:n,isProblematicIfStatement:o,trailingStatement:a}})()});var tu=F((one,Cm)=>{l();c();d();(function(){"use strict";var e,t,r,n,a,o;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-\u08B4\u08B6-\u08BD\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\u0AF9\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-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\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-\u13F5\u13F8-\u13FD\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-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\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-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\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-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\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\u0AF9\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-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\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\u0D54-\u0D57\u0D5F-\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-\u13F5\u13F8-\u13FD\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\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-\uFE2F\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]/},e={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-\u08B4\u08B6-\u08BD\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\u0AF9\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-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\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-\u13F5\u13F8-\u13FD\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\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\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-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\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\uDCB0-\uDCD3\uDCD8-\uDCFB\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\uDCE0-\uDCF2\uDCF4\uDCF5\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\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\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\uDD00-\uDD43]|\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\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\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-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\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\u0AF9\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-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\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\u0D54-\u0D57\u0D5F-\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-\u13F5\u13F8-\u13FD\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\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-\uFE2F\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\uDCB0-\uDCD3\uDCD8-\uDCFB\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\uDCE0-\uDCF2\uDCF4\uDCF5\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\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\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\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\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]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\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\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function u(x){return 48<=x&&x<=57}function i(x){return 48<=x&&x<=57||97<=x&&x<=102||65<=x&&x<=70}function s(x){return x>=48&&x<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function p(x){return x===32||x===9||x===11||x===12||x===160||x>=5760&&r.indexOf(x)>=0}function y(x){return x===10||x===13||x===8232||x===8233}function A(x){if(x<=65535)return String.fromCharCode(x);var B=String.fromCharCode(Math.floor((x-65536)/1024)+55296),w=String.fromCharCode((x-65536)%1024+56320);return B+w}for(n=new Array(128),o=0;o<128;++o)n[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;function g(x){return x<128?n[x]:t.NonAsciiIdentifierStart.test(A(x))}function h(x){return x<128?a[x]:t.NonAsciiIdentifierPart.test(A(x))}function E(x){return x<128?n[x]:e.NonAsciiIdentifierStart.test(A(x))}function b(x){return x<128?a[x]:e.NonAsciiIdentifierPart.test(A(x))}Cm.exports={isDecimalDigit:u,isHexDigit:i,isOctalDigit:s,isWhiteSpace:p,isLineTerminator:y,isIdentifierStartES5:g,isIdentifierPartES5:h,isIdentifierStartES6:E,isIdentifierPartES6:b}})()});var Fm=F((lne,xm)=>{l();c();d();(function(){"use strict";var e=tu();function t(g){switch(g){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(g,h){return!h&&g==="yield"?!1:n(g,h)}function n(g,h){if(h&&t(g))return!0;switch(g.length){case 2:return g==="if"||g==="in"||g==="do";case 3:return g==="var"||g==="for"||g==="new"||g==="try";case 4:return g==="this"||g==="else"||g==="case"||g==="void"||g==="with"||g==="enum";case 5:return g==="while"||g==="break"||g==="catch"||g==="throw"||g==="const"||g==="yield"||g==="class"||g==="super";case 6:return g==="return"||g==="typeof"||g==="delete"||g==="switch"||g==="export"||g==="import";case 7:return g==="default"||g==="finally"||g==="extends";case 8:return g==="function"||g==="continue"||g==="debugger";case 10:return g==="instanceof";default:return!1}}function a(g,h){return g==="null"||g==="true"||g==="false"||r(g,h)}function o(g,h){return g==="null"||g==="true"||g==="false"||n(g,h)}function u(g){return g==="eval"||g==="arguments"}function i(g){var h,E,b;if(g.length===0||(b=g.charCodeAt(0),!e.isIdentifierStartES5(b)))return!1;for(h=1,E=g.length;h=E||(x=g.charCodeAt(h),!(56320<=x&&x<=57343)))return!1;b=s(b,x)}if(!B(b))return!1;B=e.isIdentifierPartES6}return!0}function y(g,h){return i(g)&&!a(g,h)}function A(g,h){return p(g)&&!o(g,h)}xm.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:u,isIdentifierNameES5:i,isIdentifierNameES6:p,isIdentifierES5:y,isIdentifierES6:A}})()});var ru=F(Pn=>{l();c();d();(function(){"use strict";Pn.ast=Dm(),Pn.code=tu(),Pn.keyword=Fm()})()});var Sm=F((yne,o6)=>{o6.exports={name:"doctrine",description:"JSDoc parser",homepage:"https://github.com/eslint/doctrine",main:"lib/doctrine.js",version:"3.0.0",engines:{node:">=6.0.0"},directories:{lib:"./lib"},files:["lib"],maintainers:[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],repository:"eslint/doctrine",devDependencies:{coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},license:"Apache-2.0",scripts:{pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},dependencies:{esutils:"^2.0.2"}}});var Bm=F((bne,wm)=>{l();c();d();function u6(e,t){if(!e)throw new Error(t||"unknown assertion error")}wm.exports=u6});var nu=F(_r=>{l();c();d();(function(){"use strict";var e;e=Sm().version,_r.VERSION=e;function t(n){this.name="DoctrineError",this.message=n}t.prototype=function(){var n=function(){};return n.prototype=Error.prototype,new n}(),t.prototype.constructor=t,_r.DoctrineError=t;function r(n){throw new t(n)}_r.throwError=r,_r.assert=Bm()})()});var Tm=F(Or=>{l();c();d();(function(){"use strict";var e,t,r,n,a,o,u,i,s,p,y,A;s=ru(),p=nu(),e={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},t={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function g(T){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(T))===-1&&!s.code.isWhiteSpace(T)&&!s.code.isLineTerminator(T)}function h(T,P,q,O){this._previous=T,this._index=P,this._token=q,this._value=O}h.prototype.restore=function(){o=this._previous,a=this._index,u=this._token,i=this._value},h.save=function(){return new h(o,a,u,i)};function E(T,P){return A&&(T.range=[P[0]+y,P[1]+y]),T}function b(){var T=r.charAt(a);return a+=1,T}function x(T){var P,q,O,$=0;for(q=T==="u"?4:2,P=0;P=0&&a=n)return t.ILLEGAL;if(P=r.charCodeAt(a+1),P===60)break}i+=b()}return t.NAME}function L(){var T;for(o=a;a=n)return u=t.EOF,u;switch(T=r.charCodeAt(a),T){case 39:case 34:return u=B(),u;case 58:return b(),u=t.COLON,u;case 44:return b(),u=t.COMMA,u;case 40:return b(),u=t.LPAREN,u;case 41:return b(),u=t.RPAREN,u;case 91:return b(),u=t.LBRACK,u;case 93:return b(),u=t.RBRACK,u;case 123:return b(),u=t.LBRACE,u;case 125:return b(),u=t.RBRACE,u;case 46:if(a+1{l();c();d();(function(){"use strict";var e,t,r,n,a;n=ru(),e=Tm(),t=nu();function o(S,N,k){return S.slice(N,k)}a=function(){var S=Object.prototype.hasOwnProperty;return function(k,U){return S.call(k,U)}}();function u(S){var N={},k;for(k in S)S.hasOwnProperty(k)&&(N[k]=S[k]);return N}function i(S){return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57}function s(S){return S==="param"||S==="argument"||S==="arg"}function p(S){return S==="return"||S==="returns"}function y(S){return S==="property"||S==="prop"}function A(S){return s(S)||y(S)||S==="alias"||S==="this"||S==="mixes"||S==="requires"}function g(S){return A(S)||S==="const"||S==="constant"}function h(S){return y(S)||s(S)}function E(S){return y(S)||s(S)}function b(S){return s(S)||p(S)||S==="define"||S==="enum"||S==="implements"||S==="this"||S==="type"||S==="typedef"||y(S)}function x(S){return b(S)||S==="throws"||S==="const"||S==="constant"||S==="namespace"||S==="member"||S==="var"||S==="module"||S==="constructor"||S==="class"||S==="extends"||S==="augments"||S==="public"||S==="private"||S==="protected"}var B="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",w="("+B+"*(?:\\*"+B+`?)?)(.+|[\r +\u2028\u2029])`;function I(S){return S.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(w,"g"),"$2").replace(/\s*$/,"")}function L(S,N){for(var k=S.replace(/^\/\*\*?/,""),U=0,W=new RegExp(w,"g"),H;H=W.exec(k);)if(U+=H[1].length,H.index+H[0].length>N+U)return N+U+S.length-k.length;return S.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(S){var N,k,U,W,H,oe,Q,K,R;function _(){var q=H.charCodeAt(k);return k+=1,n.code.isLineTerminator(q)&&!(q===13&&H.charCodeAt(k)===10)&&(U+=1),String.fromCharCode(q)}function j(){var q="";for(_();k=q)return null;if(H.charCodeAt(k)===91)if(O)ce=!0,z=_();else return null;if(z+=Y(q),$)for(H.charCodeAt(k)===58&&(z==="module"||z==="external"||z==="event")&&(z+=_(),z+=Y(q)),H.charCodeAt(k)===91&&H.charCodeAt(k+1)===93&&(z+=_(),z+=_());H.charCodeAt(k)===46||H.charCodeAt(k)===47||H.charCodeAt(k)===35||H.charCodeAt(k)===45||H.charCodeAt(k)===126;)z+=_(),z+=Y(q);if(ce){if(te(q),H.charCodeAt(k)===61){z+=_(),te(q);for(var ae,be=1;k=q||H.charCodeAt(k)!==93)return null;z+=_()}return z}function Ie(){for(;k=W?!1:(t.assert(H.charCodeAt(k)===64),!0)}function _e(q){return H===oe?q:L(oe,q)}function J(q,O){this._options=q,this._title=O.toLowerCase(),this._tag={title:O,description:null},this._options.lineNumbers&&(this._tag.lineNumber=U),this._first=k-O.length-1,this._last=0,this._extra={}}J.prototype.addError=function(O){var $=Array.prototype.slice.call(arguments,1),z=O.replace(/%(\d)/g,function(ce,re){return t.assert(re<$.length,"Message reference must be in range"),$[re]});return this._tag.errors||(this._tag.errors=[]),R&&t.throwError(z),this._tag.errors.push(z),Q},J.prototype.parseType=function(){if(b(this._title))try{if(this._tag.type=X(this._title,this._last,this._options.range),!this._tag.type&&!s(this._title)&&!p(this._title)&&!this.addError("Missing or invalid tag type"))return!1}catch(q){if(this._tag.type=null,!this.addError(q.message))return!1}else if(x(this._title))try{this._tag.type=X(this._title,this._last,this._options.range)}catch{}return!0},J.prototype._parseNamePath=function(q){var O;return O=ue(this._last,K&&E(this._title),!0),!O&&!q&&!this.addError("Missing or invalid tag name")?!1:(this._tag.name=O,!0)},J.prototype.parseNamePath=function(){return this._parseNamePath(!1)},J.prototype.parseNamePathOptional=function(){return this._parseNamePath(!0)},J.prototype.parseName=function(){var q,O;if(g(this._title))if(this._tag.name=ue(this._last,K&&E(this._title),h(this._title)),this._tag.name)O=this._tag.name,O.charAt(0)==="["&&O.charAt(O.length-1)==="]"&&(q=O.substring(1,O.length-1).split("="),q.length>1&&(this._tag.default=q.slice(1).join("=")),this._tag.name=q[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!A(this._title))return!0;if(s(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},J.prototype.parseDescription=function(){var O=o(H,k,this._last).trim();return O&&(/^-\s+/.test(O)&&(O=O.substring(2)),this._tag.description=O),!0},J.prototype.parseCaption=function(){var O=o(H,k,this._last).trim(),$="",z="",ce=O.indexOf($),re=O.indexOf(z);return ce>=0&&re>=0?(this._tag.caption=O.substring(ce+$.length,re).trim(),this._tag.description=O.substring(re+z.length).trim()):this._tag.description=O,!0},J.prototype.parseKind=function(){var O,$;return $={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},O=o(H,k,this._last).trim(),this._tag.kind=O,!(!a($,O)&&!this.addError("Invalid kind name '%0'",O))},J.prototype.parseAccess=function(){var O;return O=o(H,k,this._last).trim(),this._tag.access=O,!(O!=="private"&&O!=="protected"&&O!=="public"&&!this.addError("Invalid access name '%0'",O))},J.prototype.parseThis=function(){var O=o(H,k,this._last).trim();if(O&&O.charAt(0)==="{"){var $=this.parseType();return $&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},J.prototype.parseVariation=function(){var O,$;return $=o(H,k,this._last).trim(),O=parseFloat($,10),this._tag.variation=O,!(isNaN(O)&&!this.addError("Invalid variation '%0'",$))},J.prototype.ensureEnd=function(){var q=o(H,k,this._last).trim();return!(q&&!this.addError("Unknown content '%0'",q))},J.prototype.epilogue=function(){var O;return O=this._tag.description,!(E(this._title)&&!this._tag.type&&O&&O.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!K&&!this.addError("Missing or invalid tag name")))},N={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},J.prototype.parse=function(){var O,$,z,ce;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=G(this._title),this._options.range&&(this._tag.range=[this._first,H.slice(0,this._last).replace(/\s*$/,"").length].map(_e)),a(N,this._title)?z=N[this._title]:z=["parseType","parseName","parseDescription","epilogue"],O=0,$=z.length;O<$;++O)if(ce=z[O],!this[ce]())return null;return this._tag};function Ne(q){var O,$,z;if(!Ie())return null;for(O=j(),$=new J(q,O),z=$.parse();k<$._last;)_();return z}function T(q){var O="",$,z;for(z=!0;k{l();c();d();Zm.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}});var rg=F((eae,tg)=>{l();c();d();tg.exports=function(e){var t=[].forEach,r=[].some,n=document.body,a,o=!0,u=" ";function i(w,I){var L=I.appendChild(p(w));if(w.children.length){var S=y(w.isCollapsed);w.children.forEach(function(N){i(N,S)}),L.appendChild(S)}}function s(w,I){var L=!1,S=y(L);if(I.forEach(function(N){i(N,S)}),a=w||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),I.length===0?a:a.appendChild(S)}function p(w){var I=document.createElement("li"),L=document.createElement("a");return e.listItemClass&&I.setAttribute("class",e.listItemClass),e.onClick&&(L.onclick=e.onClick),e.includeTitleTags&&L.setAttribute("title",w.textContent),e.includeHtml&&w.childNodes.length?t.call(w.childNodes,function(S){L.appendChild(S.cloneNode(!0))}):L.textContent=w.textContent,L.setAttribute("href",e.basePath+"#"+w.id),L.setAttribute("class",e.linkClass+u+"node-name--"+w.nodeName+u+e.extraLinkClasses),I.appendChild(L),I}function y(w){var I=e.orderedList?"ol":"ul",L=document.createElement(I),S=e.listClass+u+e.extraListClasses;return w&&(S=S+u+e.collapsibleClass,S=S+u+e.isCollapsedClass),L.setAttribute("class",S),L}function A(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var w;w=document.querySelector(e.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||n.scrollTop;var I=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),w>e.fixedSidebarOffset?I.className.indexOf(e.positionFixedClass)===-1&&(I.className+=u+e.positionFixedClass):I.className=I.className.replace(u+e.positionFixedClass,"")}function g(w){var I=0;return w!==null&&(I=w.offsetTop,e.hasInnerContainers&&(I+=g(w.offsetParent))),I}function h(w,I){return w&&w.className!==I&&(w.className=I),w}function E(w){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var I;I=document.querySelector(e.scrollContainer).scrollTop}else I=document.documentElement.scrollTop||n.scrollTop;e.positionFixedSelector&&A();var L=w,S;if(o&&a!==null&&L.length>0){r.call(L,function(Q,K){if(g(Q)>I+e.headingsOffset+10){var R=K===0?K:K-1;return S=L[R],!0}else if(K===L.length-1)return S=L[L.length-1],!0});var N=a.querySelector("."+e.activeLinkClass),k=a.querySelector("."+e.linkClass+".node-name--"+S.nodeName+'[href="'+e.basePath+"#"+S.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(N===k)return;var U=a.querySelectorAll("."+e.linkClass);t.call(U,function(Q){h(Q,Q.className.replace(u+e.activeLinkClass,""))});var W=a.querySelectorAll("."+e.listItemClass);t.call(W,function(Q){h(Q,Q.className.replace(u+e.activeListItemClass,""))}),k&&k.className.indexOf(e.activeLinkClass)===-1&&(k.className+=u+e.activeLinkClass);var H=k&&k.parentNode;H&&H.className.indexOf(e.activeListItemClass)===-1&&(H.className+=u+e.activeListItemClass);var oe=a.querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(oe,function(Q){Q.className.indexOf(e.isCollapsedClass)===-1&&(Q.className+=u+e.isCollapsedClass)}),k&&k.nextSibling&&k.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&h(k.nextSibling,k.nextSibling.className.replace(u+e.isCollapsedClass,"")),b(k&&k.parentNode.parentNode)}}function b(w){return w&&w.className.indexOf(e.collapsibleClass)!==-1&&w.className.indexOf(e.isCollapsedClass)!==-1?(h(w,w.className.replace(u+e.isCollapsedClass,"")),b(w.parentNode.parentNode)):w}function x(w){var I=w.target||w.srcElement;typeof I.className!="string"||I.className.indexOf(e.linkClass)===-1||(o=!1)}function B(){o=!0}return{enableTocAnimation:B,disableTocAnimation:x,render:s,updateToc:E}}});var ag=F((aae,ng)=>{l();c();d();ng.exports=function(t){var r=[].reduce;function n(y){return y[y.length-1]}function a(y){return+y.nodeName.toUpperCase().replace("H","")}function o(y){try{return y instanceof window.HTMLElement||y instanceof window.parent.HTMLElement}catch{return y instanceof window.HTMLElement}}function u(y){if(!o(y))return y;if(t.ignoreHiddenElements&&(!y.offsetHeight||!y.offsetParent))return null;let A=y.getAttribute("data-heading-label")||(t.headingLabelCallback?String(t.headingLabelCallback(y.innerText)):(y.innerText||y.textContent).trim());var g={id:y.id,children:[],nodeName:y.nodeName,headingLevel:a(y),textContent:A};return t.includeHtml&&(g.childNodes=y.childNodes),t.headingObjectCallback?t.headingObjectCallback(g,y):g}function i(y,A){for(var g=u(y),h=g.headingLevel,E=A,b=n(E),x=b?b.headingLevel:0,B=h-x;B>0&&(b=n(E),!(b&&h===b.headingLevel));)b&&b.children!==void 0&&(E=b.children),B--;return h>=t.collapseDepth&&(g.isCollapsed=!0),E.push(g),E}function s(y,A){var g=A;t.ignoreSelector&&(g=A.split(",").map(function(E){return E.trim()+":not("+t.ignoreSelector+")"}));try{return y.querySelectorAll(g)}catch{return console.warn("Headers not found with selector: "+g),null}}function p(y){return r.call(y,function(g,h){var E=u(h);return E&&i(E,g.nest),g},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:s}}});var ug=F((sae,og)=>{l();c();d();og.exports=function(t){var r=t.tocElement||document.querySelector(t.tocSelector);if(r&&r.scrollHeight>r.clientHeight){var n=r.querySelector("."+t.activeListItemClass);if(n){var a=r.scrollTop,o=a+r.clientHeight,u=n.offsetTop,i=u+n.clientHeight;uo-t.tocScrollOffset-30&&(r.scrollTop+=i-o+t.tocScrollOffset+2*30)}}}});var sg=F(ig=>{l();c();d();ig.initSmoothScrolling=eO;function eO(e){var t=e.duration,r=e.offset,n=location.hash?u(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(p){!o(p.target)||p.target.className.indexOf("no-smooth-scroll")>-1||p.target.href.charAt(p.target.href.length-2)==="#"&&p.target.href.charAt(p.target.href.length-1)==="!"||p.target.className.indexOf(e.linkClass)===-1||tO(p.target.hash,{duration:t,offset:r,callback:function(){i(p.target.hash)}})}}function o(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(u(s.href)===n||u(s.href)+"#"===n)}function u(s){return s.slice(0,s.lastIndexOf("#"))}function i(s){var p=document.getElementById(s.substring(1));p&&(/^(?:a|select|input|button|textarea)$/i.test(p.tagName)||(p.tabIndex=-1),p.focus())}}function tO(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||A},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),o=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,u=typeof n.duration=="function"?n.duration(o):n.duration,i,s;requestAnimationFrame(function(g){i=g,p(g)});function p(g){s=g-i,window.scrollTo(0,n.easing(s,r,o,u)),s{l();c();d();(function(e,t){typeof define=="function"&&define.amd?define([],t(e)):typeof lg=="object"?cg.exports=t(e):e.tocbot=t(e)})(typeof window<"u"?window:window||window,function(e){"use strict";var t=eg(),r={},n={},a=rg(),o=ag(),u=ug(),i,s,p=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window>"u"&&!p)return;var y,A=Object.prototype.hasOwnProperty;function g(){for(var x={},B=0;B=0||(a[r]=e[r]);return a}function cu(e){var t=we(e),r=we(function(n){t.current&&t.current(n)});return t.current=e,r.current}function Dg(e,t,r){var n=cu(r),a=ne(function(){return e.toHsva(t)}),o=a[0],u=a[1],i=we({color:t,hsva:o});he(function(){if(!e.equal(t,i.current.color)){var p=e.toHsva(t);i.current={hsva:p,color:t},u(p)}},[t,e]),he(function(){var p;Ag(o,i.current.hsva)||e.equal(p=e.fromHsva(o),i.current.color)||(i.current={hsva:o,color:p},n(p))},[o,e,n]);var s=Ee(function(p){u(function(y){return Object.assign({},y,p)})},[]);return[o,s]}var Zt,kr,du,pg,fg,mu,Nr,gu,ve,rO,nO,pu,aO,oO,uO,iO,mg,fu,jn,gg,sO,Mn,lO,yg,bg,Eg,Ag,vg,cO,dO,pO,fO,hg,Cg,hO,mO,xg,gO,Fg,yO,Sg,bO,wg,Bg=$e(()=>{l();c();d();Ct();Zt=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:x.buttons>0)&&a.current?o(pg(a.current,x,i.current)):b(!1)},E=function(){return b(!1)};function b(x){var B=s.current,w=du(a.current),I=x?w.addEventListener:w.removeEventListener;I(B?"touchmove":"mousemove",h),I(B?"touchend":"mouseup",E)}return[function(x){var B=x.nativeEvent,w=a.current;if(w&&(fg(B),!function(L,S){return S&&!kr(L)}(B,s.current)&&w)){if(kr(B)){s.current=!0;var I=B.changedTouches||[];I.length&&(i.current=I[0].identifier)}w.focus(),o(pg(w,B,i.current)),b(!0)}},function(x){var B=x.which||x.keyCode;B<37||B>40||(x.preventDefault(),u({left:B===39?.05:B===37?-.05:0,top:B===40?.05:B===38?-.05:0}))},b]},[u,o]),y=p[0],A=p[1],g=p[2];return he(function(){return g},[g]),m.createElement("div",vt({},n,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:a,onKeyDown:A,tabIndex:0,role:"slider"}))}),Nr=function(e){return e.filter(Boolean).join(" ")},gu=function(e){var t=e.color,r=e.left,n=e.top,a=n===void 0?.5:n,o=Nr(["react-colorful__pointer",e.className]);return m.createElement("div",{className:o,style:{top:100*a+"%",left:100*r+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},ve=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},rO={grad:.9,turn:360,rad:360/(2*Math.PI)},nO=function(e){return yg(pu(e))},pu=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ve(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?ve(parseInt(e.substring(6,8),16)/255,2):1}},aO=function(e,t){return t===void 0&&(t="deg"),Number(e)*(rO[t]||1)},oO=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?uO({h:aO(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},uO=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},iO=function(e){return lO(gg(e))},mg=function(e){var t=e.s,r=e.v,n=e.a,a=(200-t)*r/100;return{h:ve(e.h),s:ve(a>0&&a<200?t*r/100/(a<=100?a:200-a)*100:0),l:ve(a/2),a:ve(n,2)}},fu=function(e){var t=mg(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},jn=function(e){var t=mg(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},gg=function(e){var t=e.h,r=e.s,n=e.v,a=e.a;t=t/360*6,r/=100,n/=100;var o=Math.floor(t),u=n*(1-r),i=n*(1-(t-o)*r),s=n*(1-(1-t+o)*r),p=o%6;return{r:ve(255*[n,i,u,u,s,n][p]),g:ve(255*[s,n,n,i,u,u][p]),b:ve(255*[u,u,s,n,n,i][p]),a:ve(a,2)}},sO=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?yg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},Mn=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},lO=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=a<1?Mn(ve(255*a)):"";return"#"+Mn(t)+Mn(r)+Mn(n)+o},yg=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=Math.max(t,r,n),u=o-Math.min(t,r,n),i=u?o===t?(r-n)/u:o===r?2+(n-t)/u:4+(t-r)/u:0;return{h:ve(60*(i<0?i+6:i)),s:ve(o?u/o*100:0),v:ve(o/255*100),a}},bg=m.memo(function(e){var t=e.hue,r=e.onChange,n=Nr(["react-colorful__hue",e.className]);return m.createElement("div",{className:n},m.createElement(mu,{onMove:function(a){r({h:360*a.left})},onKey:function(a){r({h:Zt(t+360*a.left,0,360)})},"aria-label":"Hue","aria-valuenow":ve(t),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(gu,{className:"react-colorful__hue-pointer",left:t/360,color:fu({h:t,s:100,v:100,a:1})})))}),Eg=m.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:fu({h:t.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:n},m.createElement(mu,{onMove:function(a){r({s:100*a.left,v:100-100*a.top})},onKey:function(a){r({s:Zt(t.s+100*a.left,0,100),v:Zt(t.v-100*a.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+ve(t.s)+"%, Brightness "+ve(t.v)+"%"},m.createElement(gu,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:fu(t)})))}),Ag=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},vg=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},cO=function(e,t){return e.toLowerCase()===t.toLowerCase()||Ag(pu(e),pu(t))};pO=typeof window<"u"?Nu:he,fO=function(){return dO||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},hg=new Map,Cg=function(e){pO(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!hg.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,hg.set(t,r);var n=fO();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},hO=function(e){var t=e.className,r=e.colorModel,n=e.color,a=n===void 0?r.defaultColor:n,o=e.onChange,u=hu(e,["className","colorModel","color","onChange"]),i=we(null);Cg(i);var s=Dg(r,a,o),p=s[0],y=s[1],A=Nr(["react-colorful",t]);return m.createElement("div",vt({},u,{ref:i,className:A}),m.createElement(Eg,{hsva:p,onChange:y}),m.createElement(bg,{hue:p.h,onChange:y,className:"react-colorful__last-control"}))},mO={defaultColor:"000",toHsva:nO,fromHsva:function(e){return iO({h:e.h,s:e.s,v:e.v,a:1})},equal:cO},xg=function(e){return m.createElement(hO,vt({},e,{colorModel:mO}))},gO=function(e){var t=e.className,r=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+jn(Object.assign({},r,{a:0}))+", "+jn(Object.assign({},r,{a:1}))+")"},o=Nr(["react-colorful__alpha",t]),u=ve(100*r.a);return m.createElement("div",{className:o},m.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),m.createElement(mu,{onMove:function(i){n({a:i.left})},onKey:function(i){n({a:Zt(r.a+i.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(gu,{className:"react-colorful__alpha-pointer",left:r.a,color:jn(r)})))},Fg=function(e){var t=e.className,r=e.colorModel,n=e.color,a=n===void 0?r.defaultColor:n,o=e.onChange,u=hu(e,["className","colorModel","color","onChange"]),i=we(null);Cg(i);var s=Dg(r,a,o),p=s[0],y=s[1],A=Nr(["react-colorful",t]);return m.createElement("div",vt({},u,{ref:i,className:A}),m.createElement(Eg,{hsva:p,onChange:y}),m.createElement(bg,{hue:p.h,onChange:y}),m.createElement(gO,{hsva:p,onChange:y,className:"react-colorful__last-control"}))},yO={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:oO,fromHsva:jn,equal:vg},Sg=function(e){return m.createElement(Fg,vt({},e,{colorModel:yO}))},bO={defaultColor:"rgba(0, 0, 0, 1)",toHsva:sO,fromHsva:function(e){var t=gg(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:vg},wg=function(e){return m.createElement(Fg,vt({},e,{colorModel:bO}))}});var Ig=F((xae,Tg)=>{"use strict";l();c();d();Tg.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var yu=F((Bae,Og)=>{l();c();d();var Lr=Ig(),_g={};for(let e of Object.keys(Lr))_g[Lr[e]]=e;var V={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Og.exports=V;for(let e of Object.keys(V)){if(!("channels"in V[e]))throw new Error("missing channels property: "+e);if(!("labels"in V[e]))throw new Error("missing channel labels property: "+e);if(V[e].labels.length!==V[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=V[e];delete V[e].channels,delete V[e].labels,Object.defineProperty(V[e],"channels",{value:t}),Object.defineProperty(V[e],"labels",{value:r})}V.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),u=o-a,i,s;o===a?i=0:t===o?i=(r-n)/u:r===o?i=2+(n-t)/u:n===o&&(i=4+(t-r)/u),i=Math.min(i*60,360),i<0&&(i+=360);let p=(a+o)/2;return o===a?s=0:p<=.5?s=u/(o+a):s=u/(2-o-a),[i,s*100,p*100]};V.rgb.hsv=function(e){let t,r,n,a,o,u=e[0]/255,i=e[1]/255,s=e[2]/255,p=Math.max(u,i,s),y=p-Math.min(u,i,s),A=function(g){return(p-g)/6/y+1/2};return y===0?(a=0,o=0):(o=y/p,t=A(u),r=A(i),n=A(s),u===p?a=n-r:i===p?a=1/3+t-n:s===p&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[a*360,o*100,p*100]};V.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],a=V.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,o*100,n*100]};V.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n),o=(1-t-a)/(1-a)||0,u=(1-r-a)/(1-a)||0,i=(1-n-a)/(1-a)||0;return[o*100,u*100,i*100,a*100]};function EO(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}V.rgb.keyword=function(e){let t=_g[e];if(t)return t;let r=1/0,n;for(let a of Object.keys(Lr)){let o=Lr[a],u=EO(e,o);u.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let a=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,u=t*.0193+r*.1192+n*.9505;return[a*100,o*100,u*100]};V.rgb.lab=function(e){let t=V.rgb.xyz(e),r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*n-16,u=500*(r-n),i=200*(n-a);return[o,u,i]};V.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a,o,u;if(r===0)return u=n*255,[u,u,u];n<.5?a=n*(1+r):a=n+r-n*r;let i=2*n-a,s=[0,0,0];for(let p=0;p<3;p++)o=t+1/3*-(p-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(a-i)*6*o:2*o<1?u=a:3*o<2?u=i+(a-i)*(2/3-o)*6:u=i,s[p]=u*255;return s};V.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;let u=(n+r)/2,i=n===0?2*a/(o+a):2*r/(n+r);return[t,i*100,u*100]};V.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),u=255*n*(1-r),i=255*n*(1-r*o),s=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,s,u];case 1:return[i,n,u];case 2:return[u,n,s];case 3:return[u,i,n];case 4:return[s,u,n];case 5:return[n,u,i]}};V.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01),o,u;u=(2-r)*n;let i=(2-r)*a;return o=r*a,o/=i<=1?i:2-i,o=o||0,u/=2,[t,o*100,u*100]};V.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a=r+n,o;a>1&&(r/=a,n/=a);let u=Math.floor(6*t),i=1-n;o=6*t-u,u&1&&(o=1-o);let s=r+o*(i-r),p,y,A;switch(u){default:case 6:case 0:p=i,y=s,A=r;break;case 1:p=s,y=i,A=r;break;case 2:p=r,y=i,A=s;break;case 3:p=r,y=s,A=i;break;case 4:p=s,y=r,A=i;break;case 5:p=i,y=r,A=s;break}return[p*255,y*255,A*255]};V.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100,o=1-Math.min(1,t*(1-a)+a),u=1-Math.min(1,r*(1-a)+a),i=1-Math.min(1,n*(1-a)+a);return[o*255,u*255,i*255]};V.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a,o,u;return a=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,u=t*.0557+r*-.204+n*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),u=Math.min(Math.max(0,u),1),[a*255,o*255,u*255]};V.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let a=116*r-16,o=500*(t-r),u=200*(r-n);return[a,o,u]};V.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],a,o,u;o=(t+16)/116,a=r/500+o,u=o-n/200;let i=o**3,s=a**3,p=u**3;return o=i>.008856?i:(o-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,u=p>.008856?p:(u-16/116)/7.787,a*=95.047,o*=100,u*=108.883,[a,o,u]};V.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],a;a=Math.atan2(n,r)*360/2/Math.PI,a<0&&(a+=360);let u=Math.sqrt(r*r+n*n);return[t,u,a]};V.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),u=r*Math.sin(a);return[t,o,u]};V.rgb.ansi16=function(e,t=null){let[r,n,a]=e,o=t===null?V.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let u=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(u+=60),u};V.hsv.ansi16=function(e){return V.rgb.ansi16(V.hsv.rgb(e),e[2])};V.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};V.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,a=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,a,o]};V.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[r,n,a]};V.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};V.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(i=>i+i).join(""));let n=parseInt(r,16),a=n>>16&255,o=n>>8&255,u=n&255;return[a,o,u]};V.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),u=a-o,i,s;return u<1?i=o/(1-u):i=0,u<=0?s=0:a===t?s=(r-n)/u%6:a===r?s=2+(n-t)/u:s=4+(t-r)/u,s/=6,s%=1,[s*360,u*100,i*100]};V.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],n*100,a*100]};V.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],n*100,a*100]};V.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let a=[0,0,0],o=t%1*6,u=o%1,i=1-u,s=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=u,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=u;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=u,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return s=(1-r)*n,[(r*a[0]+s)*255,(r*a[1]+s)*255,(r*a[2]+s)*255]};V.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),a=0;return n>0&&(a=t/n),[e[0],a*100,n*100]};V.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],a*100,n*100]};V.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};V.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,a=n-t,o=0;return a<1&&(o=(n-a)/(1-a)),[e[0],a*100,o*100]};V.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};V.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};V.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};V.gray.hsl=function(e){return[0,0,e[0]]};V.gray.hsv=V.gray.hsl;V.gray.hwb=function(e){return[0,100,e[0]]};V.gray.cmyk=function(e){return[0,0,0,e[0]]};V.gray.lab=function(e){return[e[0],0,0]};V.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};V.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Pg=F((Oae,Rg)=>{l();c();d();var $n=yu();function AO(){let e={},t=Object.keys($n);for(let r=t.length,n=0;n{l();c();d();var bu=yu(),xO=Pg(),er={},FO=Object.keys(bu);function SO(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function wO(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let a=e(r);if(typeof a=="object")for(let o=a.length,u=0;u{er[e]={},Object.defineProperty(er[e],"channels",{value:bu[e].channels}),Object.defineProperty(er[e],"labels",{value:bu[e].labels});let t=xO(e);Object.keys(t).forEach(n=>{let a=t[n];er[e][n]=wO(a),er[e][n].raw=SO(a)})});kg.exports=er});var qg=F((jae,Lg)=>{l();c();d();var BO=ke(),TO=function(){return BO.Date.now()};Lg.exports=TO});var jg=F((zae,Mg)=>{l();c();d();var IO=/\s/;function _O(e){for(var t=e.length;t--&&IO.test(e.charAt(t)););return t}Mg.exports=_O});var Hg=F((Kae,$g)=>{l();c();d();var OO=jg(),RO=/^\s+/;function PO(e){return e&&e.slice(0,OO(e)+1).replace(RO,"")}$g.exports=PO});var Vg=F((Qae,Gg)=>{l();c();d();var kO=Hg(),Ug=Me(),NO=Ar(),zg=NaN,LO=/^[-+]0x[0-9a-f]+$/i,qO=/^0b[01]+$/i,MO=/^0o[0-7]+$/i,jO=parseInt;function $O(e){if(typeof e=="number")return e;if(NO(e))return zg;if(Ug(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ug(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=kO(e);var r=qO.test(e);return r||MO.test(e)?jO(e.slice(2),r?2:8):LO.test(e)?zg:+e}Gg.exports=$O});var Yg=F((roe,Kg)=>{l();c();d();var HO=Me(),Eu=qg(),Wg=Vg(),UO="Expected a function",zO=Math.max,GO=Math.min;function VO(e,t,r){var n,a,o,u,i,s,p=0,y=!1,A=!1,g=!0;if(typeof e!="function")throw new TypeError(UO);t=Wg(t)||0,HO(r)&&(y=!!r.leading,A="maxWait"in r,o=A?zO(Wg(r.maxWait)||0,t):o,g="trailing"in r?!!r.trailing:g);function h(N){var k=n,U=a;return n=a=void 0,p=N,u=e.apply(U,k),u}function E(N){return p=N,i=setTimeout(B,t),y?h(N):u}function b(N){var k=N-s,U=N-p,W=t-k;return A?GO(W,o-U):W}function x(N){var k=N-s,U=N-p;return s===void 0||k>=t||k<0||A&&U>=o}function B(){var N=Eu();if(x(N))return w(N);i=setTimeout(B,b(N))}function w(N){return i=void 0,g&&n?h(N):(n=a=void 0,u)}function I(){i!==void 0&&clearTimeout(i),p=0,n=s=a=i=void 0}function L(){return i===void 0?u:w(Eu())}function S(){var N=Eu(),k=x(N);if(n=arguments,a=this,s=N,k){if(i===void 0)return E(s);if(A)return clearTimeout(i),i=setTimeout(B,t),h(s)}return i===void 0&&(i=setTimeout(B,t)),u}return S.cancel=I,S.flush=L,S}Kg.exports=VO});var Jg=F((uoe,Xg)=>{l();c();d();var WO=Yg(),KO=Me(),YO="Expected a function";function XO(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(YO);return KO(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),WO(e,t,{leading:n,maxWait:t,trailing:a})}Xg.exports=XO});var ny={};_u(ny,{ColorControl:()=>ry,default:()=>h4});var Pe,ey,JO,QO,ZO,e4,t4,r4,n4,Qg,a4,o4,ty,Hn,u4,i4,s4,Au,l4,c4,Un,Zg,tr,d4,p4,zn,f4,ry,h4,ay=$e(()=>{l();c();d();fa();Ct();Bg();Pe=De(Ng(),1),ey=De(Jg(),1);ga();or();wa();JO=M.div({position:"relative",maxWidth:250}),QO=M(jr)({position:"absolute",zIndex:1,top:4,left:4}),ZO=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),e4=M(sa)(({theme:e})=>({fontFamily:e.typography.fonts.base})),t4=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),r4=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),n4=`url('data:image/svg+xml;charset=utf-8,')`,Qg=({value:e,active:t,onClick:r,style:n,...a})=>{let o=`linear-gradient(${e}, ${e}), ${n4}, linear-gradient(#fff, #fff)`;return m.createElement(r4,{...a,active:t,onClick:r,style:{...n,backgroundImage:o}})},a4=M(He.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),o4=M(di)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),ty=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(ty||{}),Hn=Object.values(ty),u4=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,i4=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,s4=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Au=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,l4=/^\s*#?([0-9a-f]{3})\s*$/i,c4={hex:xg,rgb:wg,hsl:Sg},Un={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Zg=e=>{let t=e?.match(u4);if(!t)return[0,0,0,1];let[,r,n,a,o=1]=t;return[r,n,a,o].map(Number)},tr=e=>{if(!e)return;let t=!0;if(i4.test(e)){let[u,i,s,p]=Zg(e),[y,A,g]=Pe.default.rgb.hsl([u,i,s])||[0,0,0];return{valid:t,value:e,keyword:Pe.default.rgb.keyword([u,i,s]),colorSpace:"rgb",rgb:e,hsl:`hsla(${y}, ${A}%, ${g}%, ${p})`,hex:`#${Pe.default.rgb.hex([u,i,s]).toLowerCase()}`}}if(s4.test(e)){let[u,i,s,p]=Zg(e),[y,A,g]=Pe.default.hsl.rgb([u,i,s])||[0,0,0];return{valid:t,value:e,keyword:Pe.default.hsl.keyword([u,i,s]),colorSpace:"hsl",rgb:`rgba(${y}, ${A}, ${g}, ${p})`,hsl:e,hex:`#${Pe.default.hsl.hex([u,i,s]).toLowerCase()}`}}let r=e.replace("#",""),n=Pe.default.keyword.rgb(r)||Pe.default.hex.rgb(r),a=Pe.default.rgb.hsl(n),o=e;if(/[^#a-f0-9]/i.test(e)?o=r:Au.test(e)&&(o=`#${r}`),o.startsWith("#"))t=Au.test(o);else try{Pe.default.keyword.hex(o)}catch{t=!1}return{valid:t,value:o,keyword:Pe.default.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${a[0]}, ${a[1]}%, ${a[2]}%, 1)`,hex:o}},d4=(e,t,r)=>{if(!e||!t?.valid)return Un[r];if(r!=="hex")return t?.[r]||Un[r];if(!t.hex.startsWith("#"))try{return`#${Pe.default.keyword.hex(t.hex)}`}catch{return Un.hex}let n=t.hex.match(l4);if(!n)return Au.test(t.hex)?t.hex:Un.hex;let[a,o,u]=n[1].split("");return`#${a}${a}${o}${o}${u}${u}`},p4=(e,t)=>{let[r,n]=ne(e||""),[a,o]=ne(()=>tr(r)),[u,i]=ne(a?.colorSpace||"hex");he(()=>{let A=e||"",g=tr(A);n(A),o(g),i(g?.colorSpace||"hex")},[e]);let s=Qe(()=>d4(r,a,u).toLowerCase(),[r,a,u]),p=Ee(A=>{let g=tr(A),h=g?.value||A||"";n(h),h===""&&(o(void 0),t(void 0)),g&&(o(g),i(g.colorSpace),t(g.value))},[t]),y=Ee(()=>{let A=Hn.indexOf(u)+1;A>=Hn.length&&(A=0),i(Hn[A]);let g=a?.[Hn[A]]||"";n(g),t(g)},[a,u,t]);return{value:r,realValue:s,updateValue:p,color:a,colorSpace:u,cycleColorSpace:y}},zn=e=>e.replace(/\s*/,"").toLowerCase(),f4=(e,t,r)=>{let[n,a]=ne(t?.valid?[t]:[]);he(()=>{t===void 0&&a([])},[t]);let o=Qe(()=>(e||[]).map(i=>typeof i=="string"?tr(i):i.title?{...tr(i.color),keyword:i.title}:tr(i.color)).concat(n).filter(Boolean).slice(-27),[e,n]),u=Ee(i=>{i?.valid&&(o.some(s=>zn(s[r])===zn(i[r]))||a(s=>s.concat(i)))},[r,o]);return{presets:o,addPreset:u}},ry=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,presetColors:o,startOpen:u=!1})=>{let i=Ee((0,ey.default)(r,200),[r]),{value:s,realValue:p,updateValue:y,color:A,colorSpace:g,cycleColorSpace:h}=p4(t,i),{presets:E,addPreset:b}=f4(o,A,g),x=c4[g];return m.createElement(JO,null,m.createElement(QO,{startOpen:u,closeOnOutsideClick:!0,onVisibleChange:()=>b(A),tooltip:m.createElement(ZO,null,m.createElement(x,{color:p==="transparent"?"#000000":p,onChange:y,onFocus:n,onBlur:a}),E.length>0&&m.createElement(t4,null,E.map((B,w)=>m.createElement(jr,{key:`${B.value}-${w}`,hasChrome:!1,tooltip:m.createElement(e4,{note:B.keyword||B.value})},m.createElement(Qg,{value:B[g],active:A&&zn(B[g])===zn(A[g]),onClick:()=>y(B.value)})))))},m.createElement(Qg,{value:p,style:{margin:4}})),m.createElement(a4,{id:Be(e),value:s,onChange:B=>y(B.target.value),onFocus:B=>B.target.select(),placeholder:"Choose color..."}),s?m.createElement(o4,{onClick:h}):null)},h4=ry});l();c();d();l();c();d();l();c();d();Ct();l();c();d();var dP=__STORYBOOK_API__,{ActiveTabs:pP,Consumer:fP,ManagerContext:hP,Provider:mP,addons:Qn,combineParameters:gP,controlOrMetaKey:yP,controlOrMetaSymbol:bP,eventMatchesShortcut:EP,eventToShortcut:AP,isMacLike:vP,isShortcutTaken:DP,keyToSymbol:CP,merge:xP,mockChannel:FP,optionOrAltSymbol:SP,shortcutMatchesShortcut:wP,shortcutToHumanString:BP,types:Lu,useAddonState:TP,useArgTypes:Zn,useArgs:qu,useChannel:IP,useGlobalTypes:_P,useGlobals:Mu,useParameter:ju,useSharedState:OP,useStoryPrepared:RP,useStorybookApi:PP,useStorybookState:$u}=__STORYBOOK_API__;or();l();c();d();fa();Ct();ga();or();l();c();d();l();c();d();function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&a<1?(i=o,s=u):a>=1&&a<2?(i=u,s=o):a>=2&&a<3?(s=o,p=u):a>=3&&a<4?(s=u,p=o):a>=4&&a<5?(i=u,p=o):a>=5&&a<6&&(i=o,p=u);var y=r-o/2,A=i+y,g=s+y,h=p+y;return n(A,g,h)}var ei={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function $2(e){if(typeof e!="string")return e;var t=e.toLowerCase();return ei[t]?"#"+ei[t]:e}var H2=/^#[a-fA-F0-9]{6}$/,U2=/^#[a-fA-F0-9]{8}$/,z2=/^#[a-fA-F0-9]{3}$/,G2=/^#[a-fA-F0-9]{4}$/,Da=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,V2=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,W2=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,K2=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function wt(e){if(typeof e!="string")throw new Te(3);var t=$2(e);if(t.match(H2))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(U2)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(z2))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(G2)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Da.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=V2.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var u=W2.exec(t);if(u){var i=parseInt(""+u[1],10),s=parseInt(""+u[2],10)/100,p=parseInt(""+u[3],10)/100,y="rgb("+lr(i,s,p)+")",A=Da.exec(y);if(!A)throw new Te(4,t,y);return{red:parseInt(""+A[1],10),green:parseInt(""+A[2],10),blue:parseInt(""+A[3],10)}}var g=K2.exec(t.substring(0,50));if(g){var h=parseInt(""+g[1],10),E=parseInt(""+g[2],10)/100,b=parseInt(""+g[3],10)/100,x="rgb("+lr(h,E,b)+")",B=Da.exec(x);if(!B)throw new Te(4,t,x);return{red:parseInt(""+B[1],10),green:parseInt(""+B[2],10),blue:parseInt(""+B[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new Te(5)}function Y2(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),u=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var i,s=a-o,p=u>.5?s/(2-a-o):s/(a+o);switch(a){case t:i=(r-n)/s+(r=1?Hr(e,t,r):"rgba("+lr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Hr(e.hue,e.saturation,e.lightness):"rgba("+lr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Te(2)}function Fa(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return xa("#"+dt(e)+dt(t)+dt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return xa("#"+dt(e.red)+dt(e.green)+dt(e.blue));throw new Te(6)}function Le(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=wt(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Fa(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Fa(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Te(7)}var e1=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},t1=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},r1=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},n1=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function et(e){if(typeof e!="object")throw new Te(8);if(t1(e))return Le(e);if(e1(e))return Fa(e);if(n1(e))return Z2(e);if(r1(e))return Q2(e);throw new Te(8)}function ri(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):ri(e,t,a)}}function Oe(e){return ri(e,e.length,[])}function a1(e,t){if(t==="transparent")return t;var r=Ze(t);return et(Ce({},r,{hue:r.hue+parseFloat(e)}))}var mk=Oe(a1);function Bt(e,t,r){return Math.max(e,Math.min(t,r))}function o1(e,t){if(t==="transparent")return t;var r=Ze(t);return et(Ce({},r,{lightness:Bt(0,1,r.lightness-parseFloat(e))}))}var u1=Oe(o1),qe=u1;function i1(e,t){if(t==="transparent")return t;var r=Ze(t);return et(Ce({},r,{saturation:Bt(0,1,r.saturation-parseFloat(e))}))}var gk=Oe(i1);function s1(e,t){if(t==="transparent")return t;var r=Ze(t);return et(Ce({},r,{lightness:Bt(0,1,r.lightness+parseFloat(e))}))}var l1=Oe(s1),tt=l1;function c1(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=wt(t),a=Ce({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),o=wt(r),u=Ce({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),i=a.alpha-u.alpha,s=parseFloat(e)*2-1,p=s*i===-1?s:s+i,y=1+s*i,A=(p/y+1)/2,g=1-A,h={red:Math.floor(a.red*A+u.red*g),green:Math.floor(a.green*A+u.green*g),blue:Math.floor(a.blue*A+u.blue*g),alpha:a.alpha*parseFloat(e)+u.alpha*(1-parseFloat(e))};return Le(h)}var d1=Oe(c1),ni=d1;function p1(e,t){if(t==="transparent")return t;var r=wt(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ce({},r,{alpha:Bt(0,1,(n*100+parseFloat(e)*100)/100)});return Le(a)}var f1=Oe(p1),cr=f1;function h1(e,t){if(t==="transparent")return t;var r=Ze(t);return et(Ce({},r,{saturation:Bt(0,1,r.saturation+parseFloat(e))}))}var yk=Oe(h1);function m1(e,t){return t==="transparent"?t:et(Ce({},Ze(t),{hue:parseFloat(e)}))}var bk=Oe(m1);function g1(e,t){return t==="transparent"?t:et(Ce({},Ze(t),{lightness:parseFloat(e)}))}var Ek=Oe(g1);function y1(e,t){return t==="transparent"?t:et(Ce({},Ze(t),{saturation:parseFloat(e)}))}var Ak=Oe(y1);function b1(e,t){return t==="transparent"?t:ni(parseFloat(e),"rgb(0, 0, 0)",t)}var vk=Oe(b1);function E1(e,t){return t==="transparent"?t:ni(parseFloat(e),"rgb(255, 255, 255)",t)}var Dk=Oe(E1);function A1(e,t){if(t==="transparent")return t;var r=wt(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ce({},r,{alpha:Bt(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Le(a)}var v1=Oe(A1),ie=v1;l();c();d();var pe=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();wa();var gy=De(co(),1);l();c();d();var pF=Object.create,_d=Object.defineProperty,fF=Object.getOwnPropertyDescriptor,hF=Object.getOwnPropertyNames,mF=Object.getPrototypeOf,gF=Object.prototype.hasOwnProperty,yF=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bF=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of hF(t))!gF.call(e,a)&&a!==r&&_d(e,a,{get:()=>t[a],enumerable:!(n=fF(t,a))||n.enumerable});return e},EF=(e,t,r)=>(r=e!=null?pF(mF(e)):{},bF(t||!e||!e.__esModule?_d(r,"default",{value:e,enumerable:!0}):r,e)),AF=yF(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,o){return function u(i,s,p){var y,A,g,h=t.call(i),E=t.call(s);if(i===s)return!0;if(i==null||s==null)return!1;if(p.indexOf(i)>-1&&p.indexOf(s)>-1)return!0;if(p.push(i,s),h!=E||(y=n(i),A=n(s),y.length!=A.length||y.some(function(b){return!u(i[b],s[b],p)})))return!1;switch(h.slice(8,-1)){case"Symbol":return i.valueOf()==s.valueOf();case"Date":case"Number":return+i==+s||+i!=+i&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+i==""+s;case"Set":case"Map":y=i.entries(),A=s.entries();do if(!u((g=y.next()).value,A.next().value,p))return!1;while(!g.done);return!0;case"ArrayBuffer":i=new Uint8Array(i),s=new Uint8Array(s);case"DataView":i=new Uint8Array(i.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(i.length!=s.length)return!1;for(g=0;ge.map(t=>typeof t<"u").filter(Boolean).length,vF=(e,t)=>{let{exists:r,eq:n,neq:a,truthy:o}=e;if(Od([r,n,a,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:a})}`);if(typeof n<"u")return(0,Id.isEqual)(t,n);if(typeof a<"u")return!(0,Id.isEqual)(t,a);if(typeof r<"u"){let u=typeof t<"u";return r?u:!u}return typeof o>"u"||o?!!t:!t},po=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:a}=e.if;if(Od([n,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:a})}`);let o=n?t[n]:r[a];return vF(e.if,o)};l();c();d();var QK=__STORYBOOK_CLIENT_LOGGER__,{deprecate:DF,logger:mt,once:fo,pretty:ZK}=__STORYBOOK_CLIENT_LOGGER__;l();c();d();Ct();function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),Pd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},xF=["style","script"],FF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,SF=/mailto:/i,wF=/\n{2,}$/,jd=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,BF=/^ *> ?/gm,TF=/^ {2,}\n/,IF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,$d=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Hd=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,_F=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,OF=/^(?:\n *)*\n/,RF=/\r\n?/g,PF=/^\[\^([^\]]+)](:.*)\n/,kF=/^\[\^([^\]]+)]/,NF=/\f/g,LF=/^\s*?\[(x|\s)\]/,Ud=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zd=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Gd=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,bo=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,qF=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Vd=/^)/,MF=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Eo=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,jF=/^\{.*\}$/,$F=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,HF=/^<([^ >]+@[^ >]+)>/,UF=/^<([^ >]+:\/[^ >]+)>/,zF=/-([a-z])?/gi,Wd=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,GF=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,VF=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,WF=/^\[([^\]]*)\] ?\[([^\]]*)\]/,KF=/(\[|\])/g,YF=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,XF=/\t/g,JF=/^ *\| */,QF=/(^ *\||\| *$)/g,ZF=/ *$/,eS=/^ *:-+: *$/,tS=/^ *:-+ *$/,rS=/^ *-+: *$/,nS=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,aS=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,oS=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,uS=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,iS=/^\\([^0-9A-Za-z\s])/,sS=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,lS=/^\n+/,cS=/^([ \t]*)/,dS=/\\([^\\])/g,kd=/ *\n+$/,pS=/(?:^|\n)( *)$/,Ao="(?:\\d+\\.)",vo="(?:[*+-])";function Kd(e){return"( *)("+(e===1?Ao:vo)+") +"}var Yd=Kd(1),Xd=Kd(2);function Jd(e){return new RegExp("^"+(e===1?Yd:Xd))}var fS=Jd(1),hS=Jd(2);function Qd(e){return new RegExp("^"+(e===1?Yd:Xd)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Ao:vo)+" )[^\\n]*)*(\\n|$)","gm")}var Zd=Qd(1),ep=Qd(2);function tp(e){let t=e===1?Ao:vo;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var rp=tp(1),np=tp(2);function Nd(e,t){let r=t===1,n=r?rp:np,a=r?Zd:ep,o=r?fS:hS;return{t(u,i,s){let p=pS.exec(s);return p&&(i.o||!i._&&!i.u)?n.exec(u=p[1]+u):null},i:ee.HIGH,l(u,i,s){let p=r?+u[2]:void 0,y=u[0].replace(wF,` +`).match(a),A=!1;return{p:y.map(function(g,h){let E=o.exec(g)[0].length,b=new RegExp("^ {1,"+E+"}","gm"),x=g.replace(b,"").replace(o,""),B=h===y.length-1,w=x.indexOf(` + +`)!==-1||B&&A;A=w;let I=s._,L=s.o,S;s.o=!0,w?(s._=!1,S=x.replace(kd,` + +`)):(s._=!0,S=x.replace(kd,""));let N=i(S,s);return s._=I,s.o=L,N}),m:r,g:p}},h:(u,i,s)=>e(u.m?"ol":"ul",{key:s.k,start:u.g},u.p.map(function(p,y){return e("li",{key:y},i(p,s))}))}}var mS=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,gS=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ap=[jd,$d,Hd,Ud,Gd,zd,Vd,Wd,Zd,rp,ep,np],yS=[...ap,/^[^\n]+(?: \n|\n{2,})/,bo,Eo];function bS(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ES(e){return rS.test(e)?"right":eS.test(e)?"center":tS.test(e)?"left":null}function Ld(e,t,r){let n=r.$;r.$=!0;let a=t(e.trim(),r);r.$=n;let o=[[]];return a.forEach(function(u,i){u.type==="tableSeparator"?i!==0&&i!==a.length-1&&o.push([]):(u.type!=="text"||a[i+1]!=null&&a[i+1].type!=="tableSeparator"||(u.v=u.v.replace(ZF,"")),o[o.length-1].push(u))}),o}function AS(e,t,r){r._=!0;let n=Ld(e[1],t,r),a=e[2].replace(QF,"").split("|").map(ES),o=function(u,i,s){return u.trim().split(` +`).map(function(p){return Ld(p,i,s)})}(e[3],t,r);return r._=!1,{S:a,A:o,L:n,type:"table"}}function qd(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function nt(e){return function(t,r){return r._?e.exec(t):null}}function at(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Ye(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Dr(e){return function(t){return e.exec(t)}}function vS(e,t,r){if(t._||t.u||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(o=>!ap.some(u=>u.test(o))&&(n+=o+` +`,o.trim()));let a=n.trimEnd();return a==""?null:[n,a]}function qt(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function Md(e){return e.replace(dS,"$1")}function fn(e,t,r){let n=r._||!1,a=r.u||!1;r._=!0,r.u=!0;let o=e(t,r);return r._=n,r.u=a,o}function DS(e,t,r){let n=r._||!1,a=r.u||!1;r._=!1,r.u=!0;let o=e(t,r);return r._=n,r.u=a,o}function CS(e,t,r){return r._=!1,e(t,r)}var ho=(e,t,r)=>({v:fn(t,e[1],r)});function mo(){return{}}function go(){return null}function xS(...e){return e.filter(Boolean).join(" ")}function yo(e,t,r){let n=e,a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}var ee;function FS(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||bS,t.namedCodesToUnicode=t.namedCodesToUnicode?gt({},Pd,t.namedCodesToUnicode):Pd;let r=t.createElement||Jn;function n(h,E,...b){let x=yo(t.overrides,`${h}.props`,{});return r(function(B,w){let I=yo(w,B);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:yo(w,`${B}.component`,B):B}(h,t.overrides),gt({},E,x,{className:xS(E?.className,x.className)||void 0}),...b)}function a(h){let E=!1;t.forceInline?E=!0:t.forceBlock||(E=YF.test(h)===!1);let b=y(p(E?h:`${h.trimEnd().replace(lS,"")} + +`,{_:E}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;let x=t.wrapper||(E?"span":"div"),B;if(b.length>1||t.forceWrapper)B=b;else{if(b.length===1)return B=b[0],typeof B=="string"?n("span",{key:"outer"},B):B;B=null}return Jn(x,{key:"outer"},B)}function o(h){let E=h.match(FF);return E?E.reduce(function(b,x,B){let w=x.indexOf("=");if(w!==-1){let I=function(k){return k.indexOf("-")!==-1&&k.match(MF)===null&&(k=k.replace(zF,function(U,W){return W.toUpperCase()})),k}(x.slice(0,w)).trim(),L=function(k){let U=k[0];return(U==='"'||U==="'")&&k.length>=2&&k[k.length-1]===U?k.slice(1,-1):k}(x.slice(w+1).trim()),S=Rd[I]||I,N=b[S]=function(k,U){return k==="style"?U.split(/;\s?/).reduce(function(W,H){let oe=H.slice(0,H.indexOf(":"));return W[oe.replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=H.slice(oe.length+1).trim(),W},{}):k==="href"?qt(U):(U.match(jF)&&(U=U.slice(1,U.length-1)),U==="true"||U!=="false"&&U)}(I,L);typeof N=="string"&&(bo.test(N)||Eo.test(N))&&(b[S]=de(a(N.trim()),{key:B}))}else x!=="style"&&(b[Rd[x]||x]=!0);return b},{}):null}let u=[],i={},s={blockQuote:{t:Ye(jd),i:ee.HIGH,l:(h,E,b)=>({v:E(h[0].replace(BF,""),b)}),h:(h,E,b)=>n("blockquote",{key:b.k},E(h.v,b))},breakLine:{t:Dr(TF),i:ee.HIGH,l:mo,h:(h,E,b)=>n("br",{key:b.k})},breakThematic:{t:Ye(IF),i:ee.HIGH,l:mo,h:(h,E,b)=>n("hr",{key:b.k})},codeBlock:{t:Ye(Hd),i:ee.MAX,l:h=>({v:h[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(h,E,b)=>n("pre",{key:b.k},n("code",gt({},h.O,{className:h.M?`lang-${h.M}`:""}),h.v))},codeFenced:{t:Ye($d),i:ee.MAX,l:h=>({O:o(h[3]||""),v:h[4],M:h[2]||void 0,type:"codeBlock"})},codeInline:{t:at(_F),i:ee.LOW,l:h=>({v:h[2]}),h:(h,E,b)=>n("code",{key:b.k},h.v)},footnote:{t:Ye(PF),i:ee.MAX,l:h=>(u.push({I:h[2],j:h[1]}),{}),h:go},footnoteReference:{t:nt(kF),i:ee.HIGH,l:h=>({v:h[1],B:`#${t.slugify(h[1])}`}),h:(h,E,b)=>n("a",{key:b.k,href:qt(h.B)},n("sup",{key:b.k},h.v))},gfmTask:{t:nt(LF),i:ee.HIGH,l:h=>({R:h[1].toLowerCase()==="x"}),h:(h,E,b)=>n("input",{checked:h.R,key:b.k,readOnly:!0,type:"checkbox"})},heading:{t:Ye(t.enforceAtxHeadings?zd:Ud),i:ee.HIGH,l:(h,E,b)=>({v:fn(E,h[2],b),T:t.slugify(h[2]),C:h[1].length}),h:(h,E,b)=>n(`h${h.C}`,{id:h.T,key:b.k},E(h.v,b))},headingSetext:{t:Ye(Gd),i:ee.MAX,l:(h,E,b)=>({v:fn(E,h[1],b),C:h[2]==="="?1:2,type:"heading"})},htmlComment:{t:Dr(Vd),i:ee.HIGH,l:()=>({}),h:go},image:{t:at(gS),i:ee.HIGH,l:h=>({D:h[1],B:Md(h[2]),F:h[3]}),h:(h,E,b)=>n("img",{key:b.k,alt:h.D||void 0,title:h.F||void 0,src:qt(h.B)})},link:{t:nt(mS),i:ee.LOW,l:(h,E,b)=>({v:DS(E,h[1],b),B:Md(h[2]),F:h[3]}),h:(h,E,b)=>n("a",{key:b.k,href:qt(h.B),title:h.F},E(h.v,b))},linkAngleBraceStyleDetector:{t:nt(UF),i:ee.MAX,l:h=>({v:[{v:h[1],type:"text"}],B:h[1],type:"link"})},linkBareUrlDetector:{t:(h,E)=>E.N?null:nt($F)(h,E),i:ee.MAX,l:h=>({v:[{v:h[1],type:"text"}],B:h[1],F:void 0,type:"link"})},linkMailtoDetector:{t:nt(HF),i:ee.MAX,l(h){let E=h[1],b=h[1];return SF.test(b)||(b="mailto:"+b),{v:[{v:E.replace("mailto:",""),type:"text"}],B:b,type:"link"}}},orderedList:Nd(n,1),unorderedList:Nd(n,2),newlineCoalescer:{t:Ye(OF),i:ee.LOW,l:mo,h:()=>` +`},paragraph:{t:vS,i:ee.LOW,l:ho,h:(h,E,b)=>n("p",{key:b.k},E(h.v,b))},ref:{t:nt(GF),i:ee.MAX,l:h=>(i[h[1]]={B:h[2],F:h[4]},{}),h:go},refImage:{t:at(VF),i:ee.MAX,l:h=>({D:h[1]||void 0,P:h[2]}),h:(h,E,b)=>n("img",{key:b.k,alt:h.D,src:qt(i[h.P].B),title:i[h.P].F})},refLink:{t:nt(WF),i:ee.MAX,l:(h,E,b)=>({v:E(h[1],b),Z:E(h[0].replace(KF,"\\$1"),b),P:h[2]}),h:(h,E,b)=>i[h.P]?n("a",{key:b.k,href:qt(i[h.P].B),title:i[h.P].F},E(h.v,b)):n("span",{key:b.k},E(h.Z,b))},table:{t:Ye(Wd),i:ee.HIGH,l:AS,h:(h,E,b)=>n("table",{key:b.k},n("thead",null,n("tr",null,h.L.map(function(x,B){return n("th",{key:B,style:qd(h,B)},E(x,b))}))),n("tbody",null,h.A.map(function(x,B){return n("tr",{key:B},x.map(function(w,I){return n("td",{key:I,style:qd(h,I)},E(w,b))}))})))},tableSeparator:{t:function(h,E){return E.$?(E._=!0,JF.exec(h)):null},i:ee.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Dr(sS),i:ee.MIN,l:h=>({v:h[0].replace(qF,(E,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:E)}),h:h=>h.v},textBolded:{t:at(nS),i:ee.MED,l:(h,E,b)=>({v:E(h[2],b)}),h:(h,E,b)=>n("strong",{key:b.k},E(h.v,b))},textEmphasized:{t:at(aS),i:ee.LOW,l:(h,E,b)=>({v:E(h[2],b)}),h:(h,E,b)=>n("em",{key:b.k},E(h.v,b))},textEscaped:{t:at(iS),i:ee.HIGH,l:h=>({v:h[1],type:"text"})},textMarked:{t:at(oS),i:ee.LOW,l:ho,h:(h,E,b)=>n("mark",{key:b.k},E(h.v,b))},textStrikethroughed:{t:at(uS),i:ee.LOW,l:ho,h:(h,E,b)=>n("del",{key:b.k},E(h.v,b))}};t.disableParsingRawHTML!==!0&&(s.htmlBlock={t:Dr(bo),i:ee.HIGH,l(h,E,b){let[,x]=h[3].match(cS),B=new RegExp(`^${x}`,"gm"),w=h[3].replace(B,""),I=(L=w,yS.some(U=>U.test(L))?CS:fn);var L;let S=h[1].toLowerCase(),N=xF.indexOf(S)!==-1;b.N=b.N||S==="a";let k=N?h[3]:I(E,w,b);return b.N=!1,{O:o(h[2]),v:k,G:N,H:N?S:h[1]}},h:(h,E,b)=>n(h.H,gt({key:b.k},h.O),h.G?h.v:E(h.v,b))},s.htmlSelfClosing={t:Dr(Eo),i:ee.HIGH,l:h=>({O:o(h[2]||""),H:h[1]}),h:(h,E,b)=>n(h.H,gt({},h.O,{key:b.k}))});let p=function(h){let E=Object.keys(h);function b(x,B){let w=[],I="";for(;x;){let L=0;for(;L{let{children:t,options:r}=e,n=function(a,o){if(a==null)return{};var u,i,s={},p=Object.keys(a);for(i=0;i=0||(s[u]=a[u]);return s}(e,CF);return de(FS(t,r),n)};var yy=De(hn(),1),by=De(Sp(),1),Ey=De(_0(),1);l();c();d();l();c();d();var kJ=__STORYBOOK_CHANNELS__,{Channel:xo,PostMessageTransport:NJ,WebsocketTransport:LJ,createBrowserChannel:qJ}=__STORYBOOK_CHANNELS__;l();c();d();var UJ=__STORYBOOK_CORE_EVENTS__,{CHANNEL_CREATED:zJ,CHANNEL_WS_DISCONNECT:GJ,CONFIG_ERROR:y3,CURRENT_STORY_WAS_SET:b3,DOCS_PREPARED:E3,DOCS_RENDERED:A3,FORCE_REMOUNT:v3,FORCE_RE_RENDER:D3,GLOBALS_UPDATED:O0,NAVIGATE_URL:R0,PLAY_FUNCTION_THREW_EXCEPTION:C3,PRELOAD_ENTRIES:x3,PREVIEW_BUILDER_PROGRESS:VJ,PREVIEW_KEYDOWN:F3,REGISTER_SUBSCRIPTION:WJ,REQUEST_WHATS_NEW_DATA:KJ,RESET_STORY_ARGS:P0,RESULT_WHATS_NEW_DATA:YJ,SELECT_STORY:XJ,SET_CONFIG:JJ,SET_CURRENT_STORY:S3,SET_GLOBALS:w3,SET_INDEX:QJ,SET_STORIES:ZJ,SET_WHATS_NEW_CACHE:eQ,SHARED_STATE_CHANGED:tQ,SHARED_STATE_SET:rQ,STORIES_COLLAPSE_ALL:nQ,STORIES_EXPAND_ALL:aQ,STORY_ARGS_UPDATED:k0,STORY_CHANGED:B3,STORY_ERRORED:T3,STORY_INDEX_INVALIDATED:I3,STORY_MISSING:_3,STORY_PREPARED:O3,STORY_RENDERED:R3,STORY_RENDER_PHASE_CHANGED:P3,STORY_SPECIFIED:k3,STORY_THREW_EXCEPTION:N3,STORY_UNCHANGED:L3,TELEMETRY_ERROR:oQ,TOGGLE_WHATS_NEW_NOTIFICATIONS:uQ,UNHANDLED_ERRORS_WHILE_PLAYING:q3,UPDATE_GLOBALS:M3,UPDATE_QUERY_PARAMS:j3,UPDATE_STORY_ARGS:N0}=__STORYBOOK_CORE_EVENTS__;var fm=De(hn(),1),Ir=De(Fo(),1),LT=De(Ef(),1);l();c();d();l();c();d();l();c();d();l();c();d();function So(e){for(var t=[],r=1;r(e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e))(BB||{});l();c();d();var On=De(Cf(),1);var hm=De(Ff(),1),mm=De(co(),1);l();c();d();var qT=De(lm(),1),MT=Object.create,gm=Object.defineProperty,jT=Object.getOwnPropertyDescriptor,ym=Object.getOwnPropertyNames,$T=Object.getPrototypeOf,HT=Object.prototype.hasOwnProperty,Xe=(e,t)=>function(){return t||(0,e[ym(e)[0]])((t={exports:{}}).exports,t),t.exports},UT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ym(t))!HT.call(e,a)&&a!==r&&gm(e,a,{get:()=>t[a],enumerable:!(n=jT(t,a))||n.enumerable});return e},zT=(e,t,r)=>(r=e!=null?MT($T(e)):{},UT(t||!e||!e.__esModule?gm(r,"default",{value:e,enumerable:!0}):r,e)),bm=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),GT=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),Em=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),VT=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),WT=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(VT()),n=String.fromCodePoint||function(o){var u="";return o>65535&&(o-=65536,u+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),u+=String.fromCharCode(o),u};function a(o){return o>=55296&&o<=57343||o>1114111?"\uFFFD":(o in r.default&&(o=r.default[o]),n(o))}e.default=a}}),cm=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(bm()),n=t(GT()),a=t(Em()),o=t(WT()),u=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=i(a.default),e.decodeHTMLStrict=i(r.default);function i(y){var A=p(y);return function(g){return String(g).replace(u,A)}}var s=function(y,A){return y1?A(w):w.charCodeAt(0)).toString(16).toUpperCase()+";"}function h(w,I){return function(L){return L.replace(I,function(S){return w[S]}).replace(y,g)}}var E=new RegExp(a.source+"|"+y.source,"g");function b(w){return w.replace(E,g)}e.escape=b;function x(w){return w.replace(a,g)}e.escapeUTF8=x;function B(w){return function(I){return I.replace(E,function(L){return w[L]||g(L)})}}}}),KT=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=cm(),r=dm();function n(s,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(s)}e.decode=n;function a(s,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(s)}e.decodeStrict=a;function o(s,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(s)}e.encode=o;var u=dm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var i=cm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return i.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return i.decodeXML}})}}),YT=Xe({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(R,_){if(!(R instanceof _))throw new TypeError("Cannot call a class as a function")}function n(R,_){for(var j=0;j<_.length;j++){var G=_[j];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(R,G.key,G)}}function a(R,_,j){return _&&n(R.prototype,_),j&&n(R,j),R}function o(R){if(typeof Symbol>"u"||R[Symbol.iterator]==null){if(Array.isArray(R)||(R=u(R))){var _=0,j=function(){};return{s:j,n:function(){return _>=R.length?{done:!0}:{done:!1,value:R[_++]}},e:function(ue){throw ue},f:j}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G,X=!0,Y=!1,te;return{s:function(){G=R[Symbol.iterator]()},n:function(){var ue=G.next();return X=ue.done,ue},e:function(ue){Y=!0,te=ue},f:function(){try{!X&&G.return!=null&&G.return()}finally{if(Y)throw te}}}}function u(R,_){if(R){if(typeof R=="string")return i(R,_);var j=Object.prototype.toString.call(R).slice(8,-1);if(j==="Object"&&R.constructor&&(j=R.constructor.name),j==="Map"||j==="Set")return Array.from(j);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return i(R,_)}}function i(R,_){(_==null||_>R.length)&&(_=R.length);for(var j=0,G=new Array(_);j<_;j++)G[j]=R[j];return G}var s=KT(),p={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:y()};function y(){var R={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return w(0,5).forEach(function(_){w(0,5).forEach(function(j){w(0,5).forEach(function(G){return A(_,j,G,R)})})}),w(0,23).forEach(function(_){var j=_+232,G=g(_*10+8);R[j]="#"+G+G+G}),R}function A(R,_,j,G){var X=16+R*36+_*6+j,Y=R>0?R*40+55:0,te=_>0?_*40+55:0,ue=j>0?j*40+55:0;G[X]=h([Y,te,ue])}function g(R){for(var _=R.toString(16);_.length<2;)_="0"+_;return _}function h(R){var _=[],j=o(R),G;try{for(j.s();!(G=j.n()).done;){var X=G.value;_.push(g(X))}}catch(Y){j.e(Y)}finally{j.f()}return"#"+_.join("")}function E(R,_,j,G){var X;return _==="text"?X=S(j,G):_==="display"?X=x(R,j,G):_==="xterm256"?X=U(R,G.colors[j]):_==="rgb"&&(X=b(R,j)),X}function b(R,_){_=_.substring(2).slice(0,-1);var j=+_.substr(0,2),G=_.substring(5).split(";"),X=G.map(function(Y){return("0"+Number(Y).toString(16)).substr(-2)}).join("");return k(R,(j===38?"color:#":"background-color:#")+X)}function x(R,_,j){_=parseInt(_,10);var G={"-1":function(){return"
    "},0:function(){return R.length&&B(R)},1:function(){return N(R,"b")},3:function(){return N(R,"i")},4:function(){return N(R,"u")},8:function(){return k(R,"display:none")},9:function(){return N(R,"strike")},22:function(){return k(R,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return H(R,"i")},24:function(){return H(R,"u")},39:function(){return U(R,j.fg)},49:function(){return W(R,j.bg)},53:function(){return k(R,"text-decoration:overline")}},X;return G[_]?X=G[_]():4<_&&_<7?X=N(R,"blink"):29<_&&_<38?X=U(R,j.colors[_-30]):39<_&&_<48?X=W(R,j.colors[_-40]):89<_&&_<98?X=U(R,j.colors[8+(_-90)]):99<_&&_<108&&(X=W(R,j.colors[8+(_-100)])),X}function B(R){var _=R.slice(0);return R.length=0,_.reverse().map(function(j){return""}).join("")}function w(R,_){for(var j=[],G=R;G<=_;G++)j.push(G);return j}function I(R){return function(_){return(R===null||_.category!==R)&&R!=="all"}}function L(R){R=parseInt(R,10);var _=null;return R===0?_="all":R===1?_="bold":2")}function k(R,_){return N(R,"span",_)}function U(R,_){return N(R,"span","color:"+_)}function W(R,_){return N(R,"span","background-color:"+_)}function H(R,_){var j;if(R.slice(-1)[0]===_&&(j=R.pop()),j)return""}function oe(R,_,j){var G=!1,X=3;function Y(){return""}function te(ae,be){return j("xterm256",be),""}function ue(ae){return _.newline?j("display",-1):j("text",ae),""}function Ie(ae,be){G=!0,be.trim().length===0&&(be="0"),be=be.trimRight(";").split(";");var qr=o(be),Iu;try{for(qr.s();!(Iu=qr.n()).done;){var $y=Iu.value;j("display",$y)}}catch(Hy){qr.e(Hy)}finally{qr.f()}return""}function _e(ae){return j("text",ae),""}function J(ae){return j("rgb",ae),""}var Ne=[{pattern:/^\x08+/,sub:Y},{pattern:/^\x1b\[[012]?K/,sub:Y},{pattern:/^\x1b\[\(B/,sub:Y},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:J},{pattern:/^\x1b\[38;5;(\d+)m/,sub:te},{pattern:/^\n/,sub:ue},{pattern:/^\r+\n/,sub:ue},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Ie},{pattern:/^\x1b\[\d?J/,sub:Y},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:Y},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:Y},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:_e}];function T(ae,be){be>X&&G||(G=!1,R=R.replace(ae.pattern,ae.sub))}var P=[],q=R,O=q.length;e:for(;O>0;){for(var $=0,z=0,ce=Ne.length;z{},send:()=>{}};return new xo({transport:e})}var JT=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=XT();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Zo="__STORYBOOK_ADDONS_PREVIEW";function QT(){return pe[Zo]||(pe[Zo]=new JT),pe[Zo]}var Lre=QT();var qre=(0,fm.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{}));var Mre=Symbol("incompatible");var jre=Symbol("Deeply equal");var ZT=So` +CSF .story annotations deprecated; annotate story functions directly: +- StoryFn.story.name => StoryFn.storyName +- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) +See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. +`,$re=(0,hm.default)(()=>{},ZT);var Rn=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((a,o)=>(Object.entries(o).forEach(([u,i])=>{let s=a[u];Array.isArray(i)||typeof s>"u"?a[u]=i:(0,On.default)(i)&&(0,On.default)(s)?t[u]=!0:typeof i<"u"&&(a[u]=i)}),a),{});return Object.keys(t).forEach(a=>{let o=r.filter(Boolean).map(u=>u[a]).filter(u=>typeof u<"u");o.every(u=>(0,On.default)(u))?n[a]=Rn(...o):n[a]=o[o.length-1]}),n};var eu=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(mt.warn(So` + We've detected a cycle in arg '${t}'. Args should be JSON-serializable. + + Consider using the mapping feature or fully custom args: + - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args + `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?eu(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Ir.default)(e,a=>eu(a,t,new Set(r)))}):{name:"object",value:{}}},e6=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,a=(0,Ir.default)(n,(u,i)=>({name:i,type:eu(u,`${t}.${i}`,new Set)})),o=(0,Ir.default)(r,(u,i)=>({name:i}));return Rn(a,o,r)};e6.secondPass=!0;var pm=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),Am=(e,t,r)=>!t&&!r?e:e&&(0,mm.default)(e,(n,a)=>{let o=n.name||a;return(!t||pm(o,t))&&(!r||!pm(o,r))}),t6=(e,t,r)=>{let{type:n,options:a}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&mt.warn(`Addon controls: Control of type color only supports string, received "${o}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:o}=n;return{control:{type:o?.length<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:a?"select":"object"}}}}},r6=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:a=null,matchers:o={}}={}}}=e;if(!r)return t;let u=Am(t,n,a),i=(0,Ir.default)(u,(s,p)=>s?.type&&t6(s,p,o));return Rn(i,u)};r6.secondPass=!0;var Hre=new Error("prepareAborted"),{AbortController:Ure}=globalThis;var{fetch:zre}=pe;var{history:Gre,document:Vre}=pe;var n6=zT(YT()),{document:Wre}=pe;var a6=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(a6||{});var Kre=new n6.default({escapeXML:!0});var{document:Yre}=pe;l();c();d();var i6=De(Fo(),1),s6=De(Im(),1);var l6=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(l6||{});var _m="storybook/docs",kne=`${_m}/panel`;var c6=`${_m}/snippet-rendered`,Om=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Om||{});l();c();d();l();c();d();var d6=Object.create,Rm=Object.defineProperty,p6=Object.getOwnPropertyDescriptor,Pm=Object.getOwnPropertyNames,f6=Object.getPrototypeOf,h6=Object.prototype.hasOwnProperty,Re=(e,t)=>function(){return t||(0,e[Pm(e)[0]])((t={exports:{}}).exports,t),t.exports},m6=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Pm(t))!h6.call(e,a)&&a!==r&&Rm(e,a,{get:()=>t[a],enumerable:!(n=p6(t,a))||n.enumerable});return e},kn=(e,t,r)=>(r=e!=null?d6(f6(e)):{},m6(t||!e||!e.__esModule?Rm(r,"default",{value:e,enumerable:!0}):r,e)),g6=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],y6=["detail"];function km(e){let t=g6.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&y6.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var Xm=De(hn(),1),$m=Re({"node_modules/has-symbols/shams.js"(e,t){"use strict";t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),o=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var u=42;n[a]=u;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var i=Object.getOwnPropertySymbols(n);if(i.length!==1||i[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,a);if(s.value!==u||s.enumerable!==!0)return!1}return!0}}}),Hm=Re({"node_modules/has-symbols/index.js"(e,t){"use strict";var r=typeof Symbol<"u"&&Symbol,n=$m();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),b6=Re({"node_modules/function-bind/implementation.js"(e,t){"use strict";var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var p=n.call(arguments,1),y,A=function(){if(this instanceof y){var x=s.apply(this,p.concat(n.call(arguments)));return Object(x)===x?x:this}else return s.apply(i,p.concat(n.call(arguments)))},g=Math.max(0,s.length-p.length),h=[],E=0;E"u"?r:A(Uint8Array),E={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":y?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?A(""[Symbol.iterator]()):r,"%Symbol%":y?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":p,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},b=function Q(K){var R;if(K==="%AsyncFunction%")R=u("async function () {}");else if(K==="%GeneratorFunction%")R=u("function* () {}");else if(K==="%AsyncGeneratorFunction%")R=u("async function* () {}");else if(K==="%AsyncGenerator%"){var _=Q("%AsyncGeneratorFunction%");_&&(R=_.prototype)}else if(K==="%AsyncIteratorPrototype%"){var j=Q("%AsyncGenerator%");j&&(R=A(j.prototype))}return E[K]=R,R},x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=ou(),w=E6(),I=B.call(Function.call,Array.prototype.concat),L=B.call(Function.apply,Array.prototype.splice),S=B.call(Function.call,String.prototype.replace),N=B.call(Function.call,String.prototype.slice),k=B.call(Function.call,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,H=function(K){var R=N(K,0,1),_=N(K,-1);if(R==="%"&&_!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(_==="%"&&R!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var j=[];return S(K,U,function(G,X,Y,te){j[j.length]=Y?S(te,W,"$1"):X||G}),j},oe=function(K,R){var _=K,j;if(w(x,_)&&(j=x[_],_="%"+j[0]+"%"),w(E,_)){var G=E[_];if(G===g&&(G=b(_)),typeof G>"u"&&!R)throw new o("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:j,name:_,value:G}}throw new n("intrinsic "+K+" does not exist!")};t.exports=function(K,R){if(typeof K!="string"||K.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof R!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,K)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _=H(K),j=_.length>0?_[0]:"",G=oe("%"+j+"%",R),X=G.name,Y=G.value,te=!1,ue=G.alias;ue&&(j=ue[0],L(_,I([0,1],ue)));for(var Ie=1,_e=!0;Ie<_.length;Ie+=1){var J=_[Ie],Ne=N(J,0,1),T=N(J,-1);if((Ne==='"'||Ne==="'"||Ne==="`"||T==='"'||T==="'"||T==="`")&&Ne!==T)throw new n("property names with quotes must have matching quotes");if((J==="constructor"||!_e)&&(te=!0),j+="."+J,X="%"+j+"%",w(E,X))Y=E[X];else if(Y!=null){if(!(J in Y)){if(!R)throw new o("base intrinsic for "+K+" exists, but the property is not available.");return}if(i&&Ie+1>=_.length){var P=i(Y,J);_e=!!P,_e&&"get"in P&&!("originalValue"in P.get)?Y=P.get:Y=Y[J]}else _e=w(Y,J),Y=Y[J];_e&&!te&&(E[X]=Y)}}return Y}}}),A6=Re({"node_modules/call-bind/index.js"(e,t){"use strict";var r=ou(),n=Um(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),u=n("%Reflect.apply%",!0)||r.call(o,a),i=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(g){var h=u(r,o,arguments);if(i&&s){var E=i(h,"length");E.configurable&&s(h,"length",{value:1+p(0,g.length-(arguments.length-1))})}return h};var y=function(){return u(r,a,arguments)};s?s(t.exports,"apply",{value:y}):t.exports.apply=y}}),v6=Re({"node_modules/call-bind/callBound.js"(e,t){"use strict";var r=Um(),n=A6(),a=n(r("String.prototype.indexOf"));t.exports=function(u,i){var s=r(u,!!i);return typeof s=="function"&&a(u,".prototype.")>-1?n(s):s}}}),D6=Re({"node_modules/has-tostringtag/shams.js"(e,t){"use strict";var r=$m();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),C6=Re({"node_modules/is-regex/index.js"(e,t){"use strict";var r=v6(),n=D6()(),a,o,u,i;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),u={},s=function(){throw u},i={toString:s,valueOf:s},typeof Symbol.toPrimitive=="symbol"&&(i[Symbol.toPrimitive]=s));var s,p=r("Object.prototype.toString"),y=Object.getOwnPropertyDescriptor,A="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var E=y(h,"lastIndex"),b=E&&a(E,"value");if(!b)return!1;try{o(h,i)}catch(x){return x===u}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:p(h)===A}}}),x6=Re({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),F6=Re({"node_modules/is-symbol/index.js"(e,t){"use strict";var r=Object.prototype.toString,n=Hm()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,u=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return u(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,u}}),S6=kn(C6()),w6=kn(x6()),B6=kn(F6());function T6(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var I6=typeof window=="object"&&window&&window.Object===Object&&window,_6=I6,O6=typeof self=="object"&&self&&self.Object===Object&&self,R6=_6||O6||Function("return this")(),uu=R6,P6=uu.Symbol,Yt=P6,zm=Object.prototype,k6=zm.hasOwnProperty,N6=zm.toString,Rr=Yt?Yt.toStringTag:void 0;function L6(e){var t=k6.call(e,Rr),r=e[Rr];try{e[Rr]=void 0;var n=!0}catch{}var a=N6.call(e);return n&&(t?e[Rr]=r:delete e[Rr]),a}var q6=L6,M6=Object.prototype,j6=M6.toString;function $6(e){return j6.call(e)}var H6=$6,U6="[object Null]",z6="[object Undefined]",Nm=Yt?Yt.toStringTag:void 0;function G6(e){return e==null?e===void 0?z6:U6:Nm&&Nm in Object(e)?q6(e):H6(e)}var Gm=G6;function V6(e){return e!=null&&typeof e=="object"}var W6=V6,K6="[object Symbol]";function Y6(e){return typeof e=="symbol"||W6(e)&&Gm(e)==K6}var iu=Y6;function X6(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r-1}var u_=o_;function i_(e,t){var r=this.__data__,n=Ln(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var s_=i_;function Jt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let u=0;uG_(e).replace(/\n\s*/g,"").trim()),W_=function(t,r){let n=r.slice(0,r.indexOf("{")),a=r.slice(r.indexOf("{"));if(n.includes("=>")||n.includes("function"))return r;let o=n;return o=o.replace(t,"function"),o+a},K_=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Y_=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function Jm(e){if(!Nn(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=km(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var X_=function(t){let r,n,a,o;return function(i,s){try{if(i==="")return o=[],r=new Map([[s,"[]"]]),n=new Map,a=[],s;let p=n.get(this)||this;for(;a.length&&p!==a[0];)a.shift(),o.pop();if(typeof s=="boolean")return s;if(s===void 0)return t.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return K_.test(s)?t.allowDate?`_date_${s}`:void 0:s;if((0,S6.default)(s))return t.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,w6.default)(s)){if(!t.allowFunction)return;let{name:A}=s,g=s.toString();return g.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${A}|${(()=>{}).toString()}`:`_function_${A}|${V_(W_(i,g))}`}if((0,B6.default)(s)){if(!t.allowSymbol)return;let A=Symbol.keyFor(s);return A!==void 0?`_gsymbol_${A}`:`_symbol_${s.toString().slice(7,-1)}`}if(a.length>=t.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(o)}`;if(s instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!t.allowClass)return;let y=r.get(s);if(!y){let A=Array.isArray(s)?s:Jm(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&t.allowClass)try{Object.assign(A,{"_constructor-name_":s.constructor.name})}catch{}return o.push(i),a.unshift(A),r.set(s,JSON.stringify(o)),s!==A&&n.set(s,A),A}return`_duplicate_${y}`}catch{return}}},J_=function reviver(options){let refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let n=Y_(r)?JSON.parse(r):r.split(".");n.length===0?t[e]=root:t[e]=z_(root,n)})),key==="_constructor-name_")return value;if(Nn(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(Nn(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=(...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},Qm={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},Q_=(e,t={})=>{let r={...Qm,...t};return JSON.stringify(Jm(e),X_(r),t.space)},Z_=()=>{let e=new Map;return function t(r){Nn(r)&&Object.entries(r).forEach(([n,a])=>{a==="_undefined_"?r[n]=void 0:e.get(a)||(e.set(a,!0),t(a))}),Array.isArray(r)&&r.forEach((n,a)=>{n==="_undefined_"?(e.set(n,!0),r[a]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},Gne=(e,t={})=>{let r={...Qm,...t},n=JSON.parse(e,J_(r));return Z_()(n),n};var Ay=De(dg(),1);var m4=M.div(St,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ie(.3,e.color.defaultText),fontSize:e.typography.size.s2})),vy=e=>m.createElement(m4,{...e,className:"docblock-emptyblock sb-unstyled"}),g4=M(Mr)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),y4=M.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Gn=M.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Ju}`]:{margin:0}})),b4=()=>m.createElement(y4,null,m.createElement(Gn,null),m.createElement(Gn,{style:{width:"80%"}}),m.createElement(Gn,{style:{width:"30%"}}),m.createElement(Gn,{style:{width:"80%"}})),Dy=({isLoading:e,error:t,language:r,code:n,dark:a,format:o,...u})=>{let{typography:i}=ma();if(e)return m.createElement(b4,null);if(t)return m.createElement(vy,null,t);let s=m.createElement(g4,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...u},n);if(typeof a>"u")return s;let p=a?ha.dark:ha.light;return m.createElement(Yu,{theme:Xu({...p,fontCode:i.fonts.mono,fontBase:i.fonts.base})},s)};Dy.defaultProps={format:!1};var ge=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,wu=600,qoe=M.h1(St,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${wu}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Moe=M.h2(St,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${wu}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ie(.25,e.color.defaultText)})),joe=M.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ie(.1,e.color.defaultText):ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ge("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ge("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ge("div")]:t,[ge("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ge("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ge("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ge("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ge("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ge("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ge("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ge("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ge("img")]:{maxWidth:"100%"},[ge("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ge("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ge("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ge("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ge("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ge("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ge("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),$oe=M.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${wu}px)`]:{}}));var Kn=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),E4=M(aa)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),A4=M.div({display:"flex",alignItems:"center",gap:4}),v4=M.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),D4=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>m.createElement(E4,{...o},m.createElement(A4,{key:"left"},e?[1,2,3].map(u=>m.createElement(v4,{key:u})):m.createElement(m.Fragment,null,m.createElement(lt,{key:"zoomin",onClick:u=>{u.preventDefault(),n(.8)},title:"Zoom in"},m.createElement(mi,null)),m.createElement(lt,{key:"zoomout",onClick:u=>{u.preventDefault(),n(1.25)},title:"Zoom out"},m.createElement(gi,null)),m.createElement(lt,{key:"zoomreset",onClick:u=>{u.preventDefault(),a()},title:"Reset zoom"},m.createElement(yi,null))))),C4=ar({scale:1}),{window:Hoe}=pe;var{PREVIEW_URL:Uoe}=pe;var x4=M.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),oy=M(Dy)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":qe(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":qe(.05,e.background.content)}})),F4=M.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Kn(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),S4=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:m.createElement(oy,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:m.createElement(oy,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function w4(e){if(Ou.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var B4=M(D4)({position:"absolute",top:0,left:0,right:0,height:40}),T4=M.div({overflow:"hidden",position:"relative"}),I4=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:u=!1,additionalActions:i,className:s,layout:p="padded",...y})=>{let[A,g]=ne(u),{source:h,actionItem:E}=S4(a,A,g),[b,x]=ne(1),B=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=a?[E]:[],[I,L]=ne(i?[...i]:[]),S=[...w,...I],{window:N}=pe,k=Ee(async W=>{let{createCopyToClipboardFunction:H}=await Promise.resolve().then(()=>(or(),Ku));H()},[]),U=W=>{let H=N.getSelection();H&&H.type==="Range"||(W.preventDefault(),I.filter(oe=>oe.title==="Copied").length===0&&k(h.props.code).then(()=>{L([...I,{title:"Copied",onClick:()=>{}}]),N.setTimeout(()=>L(I.filter(oe=>oe.title!=="Copied")),1500)}))};return m.createElement(F4,{withSource:a,withToolbar:o,...y,className:B.join(" ")},o&&m.createElement(B4,{isLoading:e,border:!0,zoom:W=>x(b*W),resetZoom:()=>x(1),storyId:w4(n),baseUrl:"./iframe.html"}),m.createElement(C4.Provider,{value:{scale:b}},m.createElement(T4,{className:"docs-story",onCopyCapture:a&&U},m.createElement(x4,{isColumn:t||!Array.isArray(n),columns:r,layout:p},m.createElement(ca.Element,{scale:b},Array.isArray(n)?n.map((W,H)=>m.createElement("div",{key:H},W)):m.createElement("div",null,n))),m.createElement(ea,{actionItems:S}))),a&&A&&h)};M(I4)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var _4=M.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Ft({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),O4=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:m.createElement(m.Fragment,null,m.createElement(_4,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>m.createElement("tr",{key:o.name},m.createElement("td",null,m.createElement("code",null,o.name)),m.createElement("td",null,o.description))),a&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,e.returns.description)))))},xu=8,uy=M.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),R4=M.span(Ft,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),P4=M.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),k4=M.div(Ft,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),N4=M.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),L4=M(ii)({marginLeft:4}),q4=M(Sa)({marginLeft:4}),M4=()=>m.createElement("span",null,"-"),Cy=({text:e,simple:t})=>m.createElement(R4,{simple:t},e),j4=(0,yy.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),$4=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return(0,by.default)(t)},iy=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,xu)),r.map(n=>m.createElement(Cy,{key:n,text:n===""?'""':n}))},H4=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=ne(!1),[u,i]=ne(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(Cy,{text:s});let p=$4(s),y=p.length;return y>xu?m.createElement(uy,{isExpanded:u},iy(p,u),m.createElement(P4,{onClick:()=>i(!u)},u?"Show less...":`Show ${y-xu} more...`)):m.createElement(uy,null,iy(p))}return m.createElement(la,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:p=>{o(p)},tooltip:m.createElement(N4,{width:j4(n)},m.createElement(Mr,{language:"jsx",format:!1},n))},m.createElement(k4,{className:"sbdocs-expandable"},m.createElement("span",null,s),a?m.createElement(L4,null):m.createElement(q4,null)))},vu=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(M4,null):m.createElement(H4,{value:e,initialExpandedArgs:t}),U4=M.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ie(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${cr(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${cr(.05,e.appBorderColor)} 0 0 0 2px inset`,color:cr(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${cr(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),z4=e=>e==="true",G4=({name:e,value:t,onChange:r,onBlur:n,onFocus:a})=>{let o=Ee(()=>r(!1),[r]);if(t===void 0)return m.createElement(xt,{variant:"outline",size:"medium",id:ur(e),onClick:o},"Set boolean");let u=Be(e),i=typeof t=="string"?z4(t):t;return m.createElement(U4,{htmlFor:u,"aria-label":e},m.createElement("input",{id:u,type:"checkbox",onChange:s=>r(s.target.checked),checked:i,role:"switch",name:e,onBlur:n,onFocus:a}),m.createElement("span",{"aria-hidden":"true"},"False"),m.createElement("span",{"aria-hidden":"true"},"True"))},V4=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},W4=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},K4=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},Y4=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},X4=M.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),J4=({name:e,value:t,onChange:r,onFocus:n,onBlur:a})=>{let[o,u]=ne(!0),i=we(),s=we();he(()=>{o!==!1&&(i&&i.current&&(i.current.value=K4(t)),s&&s.current&&(s.current.value=Y4(t)))},[t]);let p=g=>{let h=V4(g.target.value),E=new Date(t);E.setFullYear(h.getFullYear(),h.getMonth(),h.getDate());let b=E.getTime();b&&r(b),u(!!b)},y=g=>{let h=W4(g.target.value),E=new Date(t);E.setHours(h.getHours()),E.setMinutes(h.getMinutes());let b=E.getTime();b&&r(b),u(!!b)},A=Be(e);return m.createElement(X4,null,m.createElement(He.Input,{type:"date",max:"9999-12-31",ref:i,id:`${A}-date`,name:`${A}-date`,onChange:p,onFocus:n,onBlur:a}),m.createElement(He.Input,{type:"time",id:`${A}-time`,name:`${A}-time`,ref:s,onChange:y,onFocus:n,onBlur:a}),o?null:m.createElement("div",null,"invalid"))},Q4=M.label({display:"flex"}),Z4=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t};var e9=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:u,onFocus:i})=>{let[s,p]=ne(typeof t=="number"?t:""),[y,A]=ne(!1),[g,h]=ne(null),E=Ee(B=>{p(B.target.value);let w=parseFloat(B.target.value);Number.isNaN(w)?h(new Error(`'${B.target.value}' is not a number`)):(r(w),h(null))},[r,h]),b=Ee(()=>{p("0"),r(0),A(!0)},[A]),x=we(null);return he(()=>{y&&x.current&&x.current.select()},[y]),he(()=>{s!==(typeof t=="number"?t:"")&&p(t)},[t]),!y&&t===void 0?m.createElement(xt,{variant:"outline",size:"medium",id:ur(e),onClick:b},"Set number"):m.createElement(Q4,null,m.createElement(He.Input,{ref:x,id:Be(e),type:"number",onChange:E,size:"flex",placeholder:"Edit number...",value:s,valid:g?"error":null,autoFocus:y,name:e,min:n,max:a,step:o,onFocus:i,onBlur:u}))},xy=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Fu=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],Fy=(e,t)=>e&&t&&e.map(r=>t[r]),t9=M.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),r9=M.span({}),n9=M.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),sy=({name:e,options:t,value:r,onChange:n,isInline:a})=>{if(!t)return mt.warn(`Checkbox with no options: ${e}`),m.createElement(m.Fragment,null,"-");let o=Fu(r,t),[u,i]=ne(o),s=y=>{let A=y.target.value,g=[...u];g.includes(A)?g.splice(g.indexOf(A),1):g.push(A),n(Fy(g,t)),i(g)};he(()=>{i(Fu(r,t))},[r]);let p=Be(e);return m.createElement(t9,{isInline:a},Object.keys(t).map((y,A)=>{let g=`${p}-${A}`;return m.createElement(n9,{key:g,htmlFor:g},m.createElement("input",{type:"checkbox",id:g,name:g,value:y,onChange:s,checked:u?.includes(y)}),m.createElement(r9,null,y))}))},a9=M.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),o9=M.span({}),u9=M.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),ly=({name:e,options:t,value:r,onChange:n,isInline:a})=>{if(!t)return mt.warn(`Radio with no options: ${e}`),m.createElement(m.Fragment,null,"-");let o=xy(r,t),u=Be(e);return m.createElement(a9,{isInline:a},Object.keys(t).map((i,s)=>{let p=`${u}-${s}`;return m.createElement(u9,{key:p,htmlFor:p},m.createElement("input",{type:"radio",id:p,name:p,value:i,onChange:y=>n(t[y.currentTarget.value]),checked:i===o}),m.createElement(o9,null,i))}))},i9={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Sy=M.select(i9,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),wy=M.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),cy="Choose option...",s9=({name:e,value:t,options:r,onChange:n})=>{let a=i=>{n(r[i.currentTarget.value])},o=xy(t,r)||cy,u=Be(e);return m.createElement(wy,null,m.createElement(Sa,null),m.createElement(Sy,{id:u,value:o,onChange:a},m.createElement("option",{key:"no-selection",disabled:!0},cy),Object.keys(r).map(i=>m.createElement("option",{key:i,value:i},i))))},l9=({name:e,value:t,options:r,onChange:n})=>{let a=i=>{let s=Array.from(i.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(Fy(s,r))},o=Fu(t,r),u=Be(e);return m.createElement(wy,null,m.createElement(Sy,{id:u,multiple:!0,value:o,onChange:a},Object.keys(r).map(i=>m.createElement("option",{key:i,value:i},i))))},dy=e=>{let{name:t,options:r}=e;return r?e.isMulti?m.createElement(l9,{...e}):m.createElement(s9,{...e}):(mt.warn(`Select with no options: ${t}`),m.createElement(m.Fragment,null,"-"))},c9=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,d9={check:sy,"inline-check":sy,radio:ly,"inline-radio":ly,select:dy,"multi-select":dy},rr=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,options:n?c9(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=d9[t];if(o)return m.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Bu="value",p9="key",f9="Error",h9="Object",m9="Array",g9="String",y9="Number",b9="Boolean",E9="Date",A9="Null",v9="Undefined",D9="Function",C9="Symbol",By="ADD_DELTA_TYPE",Ty="REMOVE_DELTA_TYPE",Iy="UPDATE_DELTA_TYPE";function Dt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function _y(e,t){let r=Dt(e),n=Dt(t);return(r==="Function"||n==="Function")&&n!==r}var Tu=class extends Je{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:u}=this.state,i={};if(!t){if(!o.value)return;i.key=o.value}i.newValue=r(!1,n,a,i.key,u.value),e(i)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:u}=this.props,i=de(r,{onClick:this.onSubmit}),s=de(n,{onClick:e}),p=a(Bu,o,u),y=de(p,{placeholder:"Value",ref:this.refInputValue}),A=null;if(!t){let g=a(p9,o,u);A=de(g,{placeholder:"Key",ref:this.refInputKey})}return m.createElement("span",{className:"rejt-add-value-node"},A,y,s,i)}};Tu.defaultProps={onlyValue:!1,addButtonElement:m.createElement("button",null,"+"),cancelButtonElement:m.createElement("button",null,"c")};var Oy=class extends Je{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,u=n[e];t(e,a,o,u).then(()=>{let i={keyPath:a,deep:o,key:e,oldValue:u,type:Ty};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:p}=this.props;s(a[a.length-1],n),p(i)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let u=[...t,e];this.setState({data:u}),this.handleAddValueCancel();let{onUpdate:i,onDeltaUpdate:s}=this.props;i(r[r.length-1],u),s({type:By,keyPath:r,deep:n,key:u.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:u,nextDeep:i}=this.state,s=o[e];a(e,u,i,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:p,onDeltaUpdate:y}=this.props;p(u[u.length-1],o),y({type:Iy,keyPath:u,deep:i,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:u,dataType:i,minusMenuElement:s}=this.props,{minus:p,collapsed:y}=u(e,t,r,n,i),A=o(e,t,r,n,i),g=de(s,{onClick:a,className:"rejt-minus-menu",style:p});return m.createElement("span",{className:"rejt-collapsed"},m.createElement("span",{className:"rejt-collapsed-text",style:y,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!A&&g)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:u,handleRemove:i,onDeltaUpdate:s,readOnly:p,getStyle:y,dataType:A,addButtonElement:g,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:B,plusMenuElement:w,beforeRemoveAction:I,beforeAddAction:L,beforeUpdateAction:S,logger:N,onSubmitValueParser:k}=this.props,{minus:U,plus:W,delimiter:H,ul:oe,addForm:Q}=y(e,t,r,n,A),K=p(e,t,r,n,A),R=de(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:W}),_=de(B,{onClick:i,className:"rejt-minus-menu",style:U});return m.createElement("span",{className:"rejt-not-collapsed"},m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:H},"["),!a&&R,m.createElement("ul",{className:"rejt-not-collapsed-list",style:oe},t.map((j,G)=>m.createElement(Yn,{key:G,name:G.toString(),data:j,keyPath:r,deep:o,isCollapsed:u,handleRemove:this.handleRemoveItem(G),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:p,getStyle:y,addButtonElement:g,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:B,plusMenuElement:w,beforeRemoveAction:I,beforeAddAction:L,beforeUpdateAction:S,logger:N,onSubmitValueParser:k}))),!K&&a&&m.createElement("div",{className:"rejt-add-form",style:Q},m.createElement(Tu,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:g,cancelButtonElement:h,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:k})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:H},"]"),!K&&_)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:u}=this.props,i=t?this.renderCollapsed():this.renderNotCollapsed(),s=u(e,r,n,a,o);return m.createElement("div",{className:"rejt-array-node"},m.createElement("span",{onClick:this.handleCollapseMode},m.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),i)}};Oy.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var Ry=class extends Je{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:u,dataType:i}=this.props,s=u(r,n,a,o,i);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:u,deep:i}=this.state;if(!o)return;let s=n(!0,a,i,u,o.value);e({value:s,key:u}).then(()=>{_y(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:u,readOnly:i,dataType:s,getStyle:p,editButtonElement:y,cancelButtonElement:A,textareaElementGenerator:g,minusMenuElement:h,keyPath:E}=this.props,b=p(e,u,n,a,s),x=null,B=null,w=i(e,u,n,a,s);if(r&&!w){let I=g(Bu,E,a,e,u,s),L=de(y,{onClick:this.handleEdit}),S=de(A,{onClick:this.handleCancelEdit}),N=de(I,{ref:this.refInput,defaultValue:u});x=m.createElement("span",{className:"rejt-edit-form",style:b.editForm},N," ",S,L),B=null}else{x=m.createElement("span",{className:"rejt-value",style:b.value,onClick:w?null:this.handleEditMode},t);let I=de(h,{onClick:o,className:"rejt-minus-menu",style:b.minus});B=w?null:I}return m.createElement("li",{className:"rejt-function-value-node",style:b.li},m.createElement("span",{className:"rejt-name",style:b.name},e," :"," "),x,B)}};Ry.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:m.createElement("button",null,"e"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};var Yn=class extends Je{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:u,onUpdate:i,onDeltaUpdate:s,readOnly:p,getStyle:y,addButtonElement:A,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:w,beforeAddAction:I,beforeUpdateAction:L,logger:S,onSubmitValueParser:N}=this.props,k=()=>!0,U=Dt(e);switch(U){case f9:return m.createElement(Su,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:i,onDeltaUpdate:s,readOnly:k,dataType:U,getStyle:y,addButtonElement:A,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:w,beforeAddAction:I,beforeUpdateAction:L,logger:S,onSubmitValueParser:N});case h9:return m.createElement(Su,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:i,onDeltaUpdate:s,readOnly:p,dataType:U,getStyle:y,addButtonElement:A,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:w,beforeAddAction:I,beforeUpdateAction:L,logger:S,onSubmitValueParser:N});case m9:return m.createElement(Oy,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:i,onDeltaUpdate:s,readOnly:p,dataType:U,getStyle:y,addButtonElement:A,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:w,beforeAddAction:I,beforeUpdateAction:L,logger:S,onSubmitValueParser:N});case g9:return m.createElement(st,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:p,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,minusMenuElement:x,logger:S,onSubmitValueParser:N});case y9:return m.createElement(st,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:p,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,minusMenuElement:x,logger:S,onSubmitValueParser:N});case b9:return m.createElement(st,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:p,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,minusMenuElement:x,logger:S,onSubmitValueParser:N});case E9:return m.createElement(st,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:k,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,minusMenuElement:x,logger:S,onSubmitValueParser:N});case A9:return m.createElement(st,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:p,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,minusMenuElement:x,logger:S,onSubmitValueParser:N});case v9:return m.createElement(st,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:p,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,minusMenuElement:x,logger:S,onSubmitValueParser:N});case D9:return m.createElement(Ry,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:p,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,textareaElementGenerator:b,minusMenuElement:x,logger:S,onSubmitValueParser:N});case C9:return m.createElement(st,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:u,readOnly:k,dataType:U,getStyle:y,cancelButtonElement:g,editButtonElement:h,inputElementGenerator:E,minusMenuElement:x,logger:S,onSubmitValueParser:N});default:return null}}};Yn.defaultProps={keyPath:[],deep:0};var Su=class extends Je{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:u}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:i,onDeltaUpdate:s}=this.props;i(n[n.length-1],r),s({type:By,keyPath:n,deep:a,key:e,newValue:t})}).catch(u.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,u=n[e];t(e,a,o,u).then(()=>{let i={keyPath:a,deep:o,key:e,oldValue:u,type:Ty};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:p}=this.props;s(a[a.length-1],n),p(i)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:u,nextDeep:i}=this.state,s=o[e];a(e,u,i,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:p,onDeltaUpdate:y}=this.props;p(u[u.length-1],o),y({type:Iy,keyPath:u,deep:i,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:u,getStyle:i,minusMenuElement:s}=this.props,{minus:p,collapsed:y}=i(e,n,t,r,u),A=Object.getOwnPropertyNames(n),g=o(e,n,t,r,u),h=de(s,{onClick:a,className:"rejt-minus-menu",style:p});return m.createElement("span",{className:"rejt-collapsed"},m.createElement("span",{className:"rejt-collapsed-text",style:y,onClick:this.handleCollapseMode},"{...}"," ",A.length," ",A.length===1?"key":"keys"),!g&&h)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:u,handleRemove:i,onDeltaUpdate:s,readOnly:p,getStyle:y,dataType:A,addButtonElement:g,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:B,plusMenuElement:w,beforeRemoveAction:I,beforeAddAction:L,beforeUpdateAction:S,logger:N,onSubmitValueParser:k}=this.props,{minus:U,plus:W,addForm:H,ul:oe,delimiter:Q}=y(e,t,r,n,A),K=Object.getOwnPropertyNames(t),R=p(e,t,r,n,A),_=de(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:W}),j=de(B,{onClick:i,className:"rejt-minus-menu",style:U}),G=K.map(X=>m.createElement(Yn,{key:X,name:X,data:t[X],keyPath:r,deep:a,isCollapsed:u,handleRemove:this.handleRemoveValue(X),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:p,getStyle:y,addButtonElement:g,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:B,plusMenuElement:w,beforeRemoveAction:I,beforeAddAction:L,beforeUpdateAction:S,logger:N,onSubmitValueParser:k}));return m.createElement("span",{className:"rejt-not-collapsed"},m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},"{"),!R&&_,m.createElement("ul",{className:"rejt-not-collapsed-list",style:oe},G),!R&&o&&m.createElement("div",{className:"rejt-add-form",style:H},m.createElement(Tu,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:g,cancelButtonElement:h,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:k})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},"}"),!R&&j)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:u}=this.props,i=t?this.renderCollapsed():this.renderNotCollapsed(),s=o(e,r,n,a,u);return m.createElement("div",{className:"rejt-object-node"},m.createElement("span",{onClick:this.handleCollapseMode},m.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),i)}};Su.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var st=class extends Je{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:u,dataType:i}=this.props,s=u(r,n,a,o,i);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:u,deep:i}=this.state;if(!o)return;let s=n(!0,a,i,u,o.value);e({value:s,key:u}).then(()=>{_y(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:u,readOnly:i,dataType:s,getStyle:p,editButtonElement:y,cancelButtonElement:A,inputElementGenerator:g,minusMenuElement:h,keyPath:E}=this.props,b=p(e,u,n,a,s),x=i(e,u,n,a,s),B=r&&!x,w=g(Bu,E,a,e,u,s),I=de(y,{onClick:this.handleEdit}),L=de(A,{onClick:this.handleCancelEdit}),S=de(w,{ref:this.refInput,defaultValue:JSON.stringify(u)}),N=de(h,{onClick:o,className:"rejt-minus-menu",style:b.minus});return m.createElement("li",{className:"rejt-value-node",style:b.li},m.createElement("span",{className:"rejt-name",style:b.name},e," : "),B?m.createElement("span",{className:"rejt-edit-form",style:b.editForm},S," ",L,I):m.createElement("span",{className:"rejt-value",style:b.value,onClick:x?null:this.handleEditMode},String(t)),!x&&!B&&N)}};st.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:m.createElement("button",null,"e"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};var x9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},F9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},S9={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function w9(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Py=class extends Je{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:u,cancelButtonElement:i,editButtonElement:s,inputElement:p,textareaElement:y,minusMenuElement:A,plusMenuElement:g,beforeRemoveAction:h,beforeAddAction:E,beforeUpdateAction:b,logger:x,onSubmitValueParser:B,fallback:w=null}=this.props,I=Dt(e),L=a;Dt(a)==="Boolean"&&(L=()=>a);let S=p;p&&Dt(p)!=="Function"&&(S=()=>p);let N=y;return y&&Dt(y)!=="Function"&&(N=()=>y),I==="Object"||I==="Array"?m.createElement("div",{className:"rejt-tree"},m.createElement(Yn,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:L,getStyle:o,addButtonElement:u,cancelButtonElement:i,editButtonElement:s,inputElementGenerator:S,textareaElementGenerator:N,minusMenuElement:A,plusMenuElement:g,handleRemove:this.removeRoot,beforeRemoveAction:h,beforeAddAction:E,beforeUpdateAction:b,logger:x,onSubmitValueParser:B})):w}};Py.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return x9;case"Array":return F9;default:return S9}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>w9(a),inputElement:()=>m.createElement("input",null),textareaElement:()=>m.createElement("textarea",null),fallback:null};var{window:B9}=pe,T9=M.div(({theme:e})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Du=M.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),I9=M(ai)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),_9=M(pi)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),py=M.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),O9=M(lt)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),R9=M(He.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),P9={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},k9=e=>{e.currentTarget.dispatchEvent(new B9.KeyboardEvent("keydown",P9))},N9=e=>{e.currentTarget.select()},L9=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),fy=({name:e,value:t,onChange:r})=>{let n=ma(),a=Qe(()=>t&&(0,Ey.default)(t),[t]),o=a!=null,[u,i]=ne(!o),[s,p]=ne(null),y=Ee(B=>{try{B&&r(JSON.parse(B)),p(void 0)}catch(w){p(w)}},[r]),[A,g]=ne(!1),h=Ee(()=>{r({}),g(!0)},[g]),E=we(null);if(he(()=>{A&&E.current&&E.current.select()},[A]),!o)return m.createElement(xt,{id:ur(e),onClick:h},"Set object");let b=m.createElement(R9,{ref:E,id:Be(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:B=>y(B.target.value),placeholder:"Edit JSON string...",autoFocus:A,valid:s?"error":null}),x=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return m.createElement(T9,null,x&&m.createElement(O9,{onClick:B=>{B.preventDefault(),i(w=>!w)}},u?m.createElement(si,null):m.createElement(li,null),m.createElement("span",null,"RAW")),u?b:m.createElement(Py,{readOnly:!x,isCollapsed:x?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:L9(n),cancelButtonElement:m.createElement(Du,{type:"button"},"Cancel"),editButtonElement:m.createElement(Du,{type:"submit"},"Save"),addButtonElement:m.createElement(Du,{type:"submit",primary:!0},"Save"),plusMenuElement:m.createElement(I9,null),minusMenuElement:m.createElement(_9,null),inputElement:(B,w,I,L)=>L?m.createElement(py,{onFocus:N9,onBlur:k9}):m.createElement(py,null),fallback:b}))},q9=M.input(({theme:e,min:t,max:r,value:n})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${qe(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${qe(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${tt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${tt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Le(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Le(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${qe(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Le(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${qe(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${qe(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${tt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${tt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Le(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Le(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${qe(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${qe(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${qe(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${tt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${tt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Le(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),ky=M.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),M9=M(ky)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),j9=M.div({display:"flex",alignItems:"center",width:"100%"});function $9(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var H9=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:u,onFocus:i})=>{let s=A=>{r(Z4(A.target.value))},p=t!==void 0,y=Qe(()=>$9(o),[o]);return m.createElement(j9,null,m.createElement(ky,null,n),m.createElement(q9,{id:Be(e),type:"range",onChange:s,name:e,value:t,min:n,max:a,step:o,onFocus:i,onBlur:u}),m.createElement(M9,{numberOFDecimalsPlaces:y,max:a},p?t.toFixed(y):"--"," / ",a))},U9=M.label({display:"flex"}),z9=M.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),G9=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o})=>{let u=A=>{r(A.target.value)},[i,s]=ne(!1),p=Ee(()=>{r(""),s(!0)},[s]);if(t===void 0)return m.createElement(xt,{variant:"outline",size:"medium",id:ur(e),onClick:p},"Set string");let y=typeof t=="string";return m.createElement(U9,null,m.createElement(He.Textarea,{id:Be(e),maxLength:o,onChange:u,size:"flex",placeholder:"Edit string...",autoFocus:i,valid:y?null:"error",name:e,value:y?t:"",onFocus:n,onBlur:a}),o&&m.createElement(z9,{isMaxed:t?.length===o},t?.length??0," / ",o))},V9=M(He.Input)({padding:10});function W9(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var K9=({onChange:e,name:t,accept:r="image/*",value:n})=>{let a=we(null);function o(u){if(!u.target.files)return;let i=Array.from(u.target.files).map(s=>URL.createObjectURL(s));e(i),W9(n)}return he(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),m.createElement(V9,{ref:a,id:Be(t),type:"file",name:t,multiple:!0,onChange:o,accept:r,size:"flex"})},Y9=Pu(()=>Promise.resolve().then(()=>(ay(),ny))),X9=e=>m.createElement(Ru,{fallback:m.createElement("div",null)},m.createElement(Y9,{...e})),J9={array:fy,object:fy,boolean:G4,color:X9,date:J4,number:e9,check:rr,"inline-check":rr,radio:rr,"inline-radio":rr,select:rr,"multi-select":rr,range:H9,text:G9,file:K9},hy=()=>m.createElement(m.Fragment,null,"-"),Q9=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[u,i]=ne(!1),[s,p]=ne({value:t});he(()=>{u||p({value:t})},[u,t]);let y=Ee(b=>(p({value:b}),r({[a]:b}),b),[r,a]),A=Ee(()=>i(!1),[]),g=Ee(()=>i(!0),[]);if(!o||o.disable){let b=o?.disable!==!0&&e?.type?.name!=="function";return n&&b?m.createElement(ct,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(hy,null)}let h={name:a,argType:e,value:s.value,onChange:y,onBlur:A,onFocus:g},E=J9[o.type]||hy;return m.createElement(E,{...h,...o,controlType:o.type})},Z9=M.span({fontWeight:"bold"}),eR=M.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),tR=M.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Ft({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),rR=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?4:0})),nR=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),aR=M.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),oR=e=>e&&{summary:typeof e=="string"?e:e.name},Vn=e=>{let[t,r]=ne(!1),{row:n,updateArgs:a,compact:o,expandable:u,initialExpandedArgs:i}=e,{name:s,description:p}=n,y=n.table||{},A=y.type||oR(n.type),g=y.defaultValue||n.defaultValue,h=n.type?.required,E=p!=null&&p!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(aR,{expandable:u},m.createElement(Z9,null,s),h?m.createElement(eR,{title:"Required"},"*"):null),o?null:m.createElement("td",null,E&&m.createElement(tR,null,m.createElement(op,null,p)),y.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(nR,{hasDescription:E},m.createElement(vu,{value:A,initialExpandedArgs:i})),m.createElement(O4,{tags:y.jsDocTags})):m.createElement(rR,{hasDescription:E},m.createElement(vu,{value:A,initialExpandedArgs:i}))),o?null:m.createElement("td",null,m.createElement(vu,{value:g,initialExpandedArgs:i})),a?m.createElement("td",null,m.createElement(Q9,{...e,isHovered:t})):null)},uR=M(oi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),iR=M(ui)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),sR=M.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),lR=M.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),cR=M.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),dR=M.td(()=>({position:"relative"})),pR=M.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${tt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),my=M.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Cu=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,u]=ne(n),i=e==="subsection"?cR:lR,s=r?.length||0,p=e==="subsection"?`${s} item${s!==1?"s":""}`:"",y=`${o?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(pR,{title:y},m.createElement(i,{colSpan:1},m.createElement(my,{onClick:A=>u(!o),tabIndex:0},y),m.createElement(sR,null,o?m.createElement(uR,null):m.createElement(iR,null),t)),m.createElement(dR,{colSpan:a-1},m.createElement(my,{onClick:A=>u(!o),tabIndex:-1,style:{outline:"none"}},y),o?null:p)),o?r:null)},Wn=M.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Fe=M.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ye=M.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Se=[2,4,2,2],fR=()=>m.createElement(m.Fragment,null,m.createElement(Wn,null,m.createElement(Fe,{numColumn:Se[0]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[1]},m.createElement(ye,{width:"30%"})),m.createElement(Fe,{numColumn:Se[2]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[3]},m.createElement(ye,{width:"60%"}))),m.createElement(Wn,null,m.createElement(Fe,{numColumn:Se[0]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[1]},m.createElement(ye,{width:"80%"}),m.createElement(ye,{width:"30%"})),m.createElement(Fe,{numColumn:Se[2]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[3]},m.createElement(ye,{width:"60%"}))),m.createElement(Wn,null,m.createElement(Fe,{numColumn:Se[0]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[1]},m.createElement(ye,{width:"80%"}),m.createElement(ye,{width:"30%"})),m.createElement(Fe,{numColumn:Se[2]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[3]},m.createElement(ye,{width:"60%"}))),m.createElement(Wn,null,m.createElement(Fe,{numColumn:Se[0]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[1]},m.createElement(ye,{width:"80%"}),m.createElement(ye,{width:"30%"})),m.createElement(Fe,{numColumn:Se[2]},m.createElement(ye,{width:"60%"})),m.createElement(Fe,{numColumn:Se[3]},m.createElement(ye,{width:"60%"})))),hR=M.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),mR=M.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),gR=M.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),yR=({inAddonPanel:e})=>{let[t,r]=ne(!0);return he(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(hR,{inAddonPanel:e},m.createElement(na,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:m.createElement(mR,null,e&&m.createElement(m.Fragment,null,m.createElement(ct,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},m.createElement(hi,null)," Watch 5m video"),m.createElement(gR,null),m.createElement(ct,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},m.createElement(Ur,null)," Read docs")),!e&&m.createElement(ct,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},m.createElement(Ur,null)," Learn how to set that up"))}))},bR=M.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ie(.25,e.color.defaultText):ie(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),ER=M(lt)(({theme:e})=>({margin:"-4px -12px -4px 0"})),AR=M.span({display:"flex",justifyContent:"space-between"}),vR={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},DR=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,u])=>{let{category:i,subcategory:s}=u?.table||{};if(i){let p=r.sections[i]||{ungrouped:[],subsections:{}};if(!s)p.ungrouped.push({key:o,...u});else{let y=p.subsections[s]||[];y.push({key:o,...u}),p.subsections[s]=y}r.sections[i]=p}else if(s){let p=r.ungroupedSubsections[s]||[];p.push({key:o,...u}),r.ungroupedSubsections[s]=p}else r.ungrouped.push({key:o,...u})});let n=vR[t],a=o=>n?Object.keys(o).reduce((u,i)=>({...u,[i]:o[i].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,u)=>({...o,[u]:{ungrouped:r.sections[u].ungrouped.sort(n),subsections:a(r.sections[u].subsections)}}),{})}},CR=(e,t,r)=>{try{return po(e,t,r)}catch(n){return fo.warn(n.message),!1}},Ny=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:u="none",isLoading:i}=e;if("error"in e){let{error:w}=e;return m.createElement(vy,null,w,"\xA0",m.createElement(ct,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},m.createElement(Ur,null)," Read the docs"))}if(i)return m.createElement(fR,null);let{rows:s,args:p,globals:y}="rows"in e&&e,A=DR((0,gy.default)(s,w=>!w?.table?.disable&&CR(w,p||{},y||{})),u),g=A.ungrouped.length===0,h=Object.entries(A.sections).length===0,E=Object.entries(A.ungroupedSubsections).length===0;if(g&&h&&E)return m.createElement(yR,{inAddonPanel:a});let b=1;t&&(b+=1),n||(b+=2);let x=Object.keys(A.sections).length>0,B={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return m.createElement(ua,null,m.createElement(bR,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement(AR,null,"Control"," ",!i&&r&&m.createElement(ER,{onClick:()=>r(),title:"Reset controls"},m.createElement(fi,{"aria-hidden":!0})))):null)),m.createElement("tbody",{className:"docblock-argstable-body"},A.ungrouped.map(w=>m.createElement(Vn,{key:w.key,row:w,arg:p&&p[w.key],...B})),Object.entries(A.ungroupedSubsections).map(([w,I])=>m.createElement(Cu,{key:w,label:w,level:"subsection",colSpan:b},I.map(L=>m.createElement(Vn,{key:L.key,row:L,arg:p&&p[L.key],expandable:x,...B})))),Object.entries(A.sections).map(([w,I])=>m.createElement(Cu,{key:w,label:w,level:"section",colSpan:b},I.ungrouped.map(L=>m.createElement(Vn,{key:L.key,row:L,arg:p&&p[L.key],...B})),Object.entries(I.subsections).map(([L,S])=>m.createElement(Cu,{key:L,label:L,level:"subsection",colSpan:b},S.map(N=>m.createElement(Vn,{key:N.key,row:N,arg:p&&p[N.key],expandable:x,...B})))))))))};var zoe=M.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)})),Goe=M.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Voe=M.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Woe=M.div(St,({theme:e})=>({...Kn(e),margin:"25px 0 40px",padding:"30px 20px"}));var Koe=M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),Yoe=M.div(({theme:e})=>({color:e.base==="light"?ie(.2,e.color.defaultText):ie(.6,e.color.defaultText)})),Xoe=M.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),Joe=M.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),Qoe=M.div({display:"flex",flexDirection:"row"}),Zoe=M.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}})),eue=M.div(({theme:e})=>({...Kn(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),tue=M.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),rue=M.div({flex:1,display:"flex",flexDirection:"row"}),nue=M.div({display:"flex",alignItems:"flex-start"}),aue=M.div({flex:"0 0 30%"}),oue=M.div({flex:1}),uue=M.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)})),iue=M.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));var sue=M.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2})),lue=M.div(({theme:e})=>({...Kn(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),cue=M.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),due=M.div({display:"flex",flexFlow:"row wrap"});pe&&pe.__DOCS_CONTEXT__===void 0&&(pe.__DOCS_CONTEXT__=ar(null),pe.__DOCS_CONTEXT__.displayName="DocsContext");var xR=pe?pe.__DOCS_CONTEXT__:ar(null);var pue=ar({sources:{}});var{document:FR}=pe;function SR(e,t){e.channel.emit(R0,t)}var fue=da.a;var Ly=["h1","h2","h3","h4","h5","h6"],wR=Ly.reduce((e,t)=>({...e,[t]:M(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),BR=M.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),TR=({as:e,id:t,children:r,...n})=>{let a=ku(xR),o=wR[e],u=`#${t}`;return m.createElement(o,{id:t,...n},m.createElement(BR,{"aria-hidden":"true",href:u,tabIndex:-1,target:"_self",onClick:i=>{FR.getElementById(t)&&SR(a,u)}},m.createElement(ci,null)),r)},qy=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return m.createElement(TR,{as:t,id:r,...a},n);let o=t,{as:u,...i}=e;return m.createElement(o,{...pa(i,t)})},hue=Ly.reduce((e,t)=>({...e,[t]:r=>m.createElement(qy,{as:t,...r})}),{});var IR=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(IR||{});var mue=M.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),gue=M.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),yue=M.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var{document:bue,window:Eue}=pe;var _R=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return m.createElement(oa,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return m.createElement(qy,{as:"h2",id:n,...r},e)},Aue=M(_R)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));var My="addon-controls",jy="controls",OR=()=>{let[e,t]=ne(!0),[r,n,a]=qu(),[o]=Mu(),u=Zn(),{expanded:i,sort:s,presetColors:p}=ju(jy,{}),{path:y,previewInitialized:A}=$u();he(()=>{A&&t(!1)},[A]);let g=Object.values(u).some(E=>E?.control),h=Object.entries(u).reduce((E,[b,x])=>(x?.control?.type!=="color"||x?.control?.presetColors?E[b]=x:E[b]={...x,control:{...x.control,presetColors:p}},E),{});return m.createElement(Ny,{key:y,compact:!i&&g,rows:h,args:r,globals:o,updateArgs:n,resetArgs:a,inAddonPanel:!0,sort:s,isLoading:e})};function RR(){let e=Zn(),t=Object.values(e).filter(r=>r?.control&&!r?.table?.disable).length;return m.createElement("div",null,m.createElement(ia,{col:1},m.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Controls"),t===0?"":m.createElement(ra,{status:"neutral"},t)))}Qn.register(My,e=>{Qn.add(My,{title:RR,type:Lu.PANEL,paramKey:jy,render:({active:t})=>!t||!e.getCurrentStoryData()?null:m.createElement(ta,{active:t},m.createElement(OR,null))})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/docs/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt b/docs/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..cfea3e7 --- /dev/null +++ b/docs/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt @@ -0,0 +1,18 @@ +Bundled license information: + +telejson/dist/index.mjs: + /*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + /** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ diff --git a/docs/sb-addons/essentials-measure-5/manager-bundle.js b/docs/sb-addons/essentials-measure-5/manager-bundle.js new file mode 100644 index 0000000..9f55edf --- /dev/null +++ b/docs/sb-addons/essentials-measure-5/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var t=__REACT__,{Children:B,Component:f,Fragment:R,Profiler:P,PureComponent:L,StrictMode:E,Suspense:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:w,cloneElement:M,createContext:v,createElement:x,createFactory:H,createRef:U,forwardRef:F,isValidElement:N,lazy:G,memo:W,startTransition:K,unstable_act:Y,useCallback:u,useContext:V,useDebugValue:q,useDeferredValue:Z,useEffect:d,useId:z,useImperativeHandle:J,useInsertionEffect:Q,useLayoutEffect:$,useMemo:j,useReducer:X,useRef:oo,useState:no,useSyncExternalStore:eo,useTransition:co,version:to}=__REACT__;var io=__STORYBOOK_API__,{ActiveTabs:so,Consumer:uo,ManagerContext:mo,Provider:po,addons:l,combineParameters:So,controlOrMetaKey:Co,controlOrMetaSymbol:ho,eventMatchesShortcut:bo,eventToShortcut:To,isMacLike:_o,isShortcutTaken:Ao,keyToSymbol:go,merge:yo,mockChannel:Oo,optionOrAltSymbol:ko,shortcutMatchesShortcut:Bo,shortcutToHumanString:fo,types:m,useAddonState:Ro,useArgTypes:Po,useArgs:Lo,useChannel:Eo,useGlobalTypes:Do,useGlobals:p,useParameter:wo,useSharedState:Mo,useStoryPrepared:vo,useStorybookApi:S,useStorybookState:xo}=__STORYBOOK_API__;var Go=__STORYBOOK_COMPONENTS__,{A:Wo,ActionBar:Ko,AddonPanel:Yo,Badge:Vo,Bar:qo,Blockquote:Zo,Button:zo,ClipboardCode:Jo,Code:Qo,DL:$o,Div:jo,DocumentWrapper:Xo,EmptyTabContent:on,ErrorFormatter:nn,FlexBar:en,Form:cn,H1:tn,H2:rn,H3:In,H4:an,H5:ln,H6:sn,HR:un,IconButton:C,IconButtonSkeleton:dn,Icons:mn,Img:pn,LI:Sn,Link:Cn,ListItem:hn,Loader:bn,OL:Tn,P:_n,Placeholder:An,Pre:gn,ResetWrapper:yn,ScrollArea:On,Separator:kn,Spaced:Bn,Span:fn,StorybookIcon:Rn,StorybookLogo:Pn,Symbols:Ln,SyntaxHighlighter:En,TT:Dn,TabBar:wn,TabButton:Mn,TabWrapper:vn,Table:xn,Tabs:Hn,TabsState:Un,TooltipLinkList:Fn,TooltipMessage:Nn,TooltipNote:Gn,UL:Wn,WithTooltip:Kn,WithTooltipPure:Yn,Zoom:Vn,codeCommon:qn,components:Zn,createCopyToClipboardFunction:zn,getStoryHref:Jn,icons:Qn,interleaveSeparators:$n,nameSpaceClassNames:jn,resetComponents:Xn,withReset:oe}=__STORYBOOK_COMPONENTS__;var re=__STORYBOOK_ICONS__,{AccessibilityAltIcon:Ie,AccessibilityIcon:ae,AddIcon:le,AdminIcon:ie,AlertAltIcon:se,AlertIcon:ue,AlignLeftIcon:de,AlignRightIcon:me,AppleIcon:pe,ArrowDownIcon:Se,ArrowLeftIcon:Ce,ArrowRightIcon:he,ArrowSolidDownIcon:be,ArrowSolidLeftIcon:Te,ArrowSolidRightIcon:_e,ArrowSolidUpIcon:Ae,ArrowUpIcon:ge,AzureDevOpsIcon:ye,BackIcon:Oe,BasketIcon:ke,BatchAcceptIcon:Be,BatchDenyIcon:fe,BeakerIcon:Re,BellIcon:Pe,BitbucketIcon:Le,BoldIcon:Ee,BookIcon:De,BookmarkHollowIcon:we,BookmarkIcon:Me,BottomBarIcon:ve,BottomBarToggleIcon:xe,BoxIcon:He,BranchIcon:Ue,BrowserIcon:Fe,ButtonIcon:Ne,CPUIcon:Ge,CalendarIcon:We,CameraIcon:Ke,CategoryIcon:Ye,CertificateIcon:Ve,ChangedIcon:qe,ChatIcon:Ze,CheckIcon:ze,ChevronDownIcon:Je,ChevronLeftIcon:Qe,ChevronRightIcon:$e,ChevronSmallDownIcon:je,ChevronSmallLeftIcon:Xe,ChevronSmallRightIcon:oc,ChevronSmallUpIcon:nc,ChevronUpIcon:ec,ChromaticIcon:cc,ChromeIcon:tc,CircleHollowIcon:rc,CircleIcon:Ic,ClearIcon:ac,CloseAltIcon:lc,CloseIcon:ic,CloudHollowIcon:sc,CloudIcon:uc,CogIcon:dc,CollapseIcon:mc,CommandIcon:pc,CommentAddIcon:Sc,CommentIcon:Cc,CommentsIcon:hc,CommitIcon:bc,CompassIcon:Tc,ComponentDrivenIcon:_c,ComponentIcon:Ac,ContrastIcon:gc,ControlsIcon:yc,CopyIcon:Oc,CreditIcon:kc,CrossIcon:Bc,DashboardIcon:fc,DatabaseIcon:Rc,DeleteIcon:Pc,DiamondIcon:Lc,DirectionIcon:Ec,DiscordIcon:Dc,DocChartIcon:wc,DocListIcon:Mc,DocumentIcon:vc,DownloadIcon:xc,DragIcon:Hc,EditIcon:Uc,EllipsisIcon:Fc,EmailIcon:Nc,ExpandAltIcon:Gc,ExpandIcon:Wc,EyeCloseIcon:Kc,EyeIcon:Yc,FaceHappyIcon:Vc,FaceNeutralIcon:qc,FaceSadIcon:Zc,FacebookIcon:zc,FailedIcon:Jc,FastForwardIcon:Qc,FigmaIcon:$c,FilterIcon:jc,FlagIcon:Xc,FolderIcon:ot,FormIcon:nt,GDriveIcon:et,GithubIcon:ct,GitlabIcon:tt,GlobeIcon:rt,GoogleIcon:It,GraphBarIcon:at,GraphLineIcon:lt,GraphqlIcon:it,GridAltIcon:st,GridIcon:ut,GrowIcon:dt,HeartHollowIcon:mt,HeartIcon:pt,HomeIcon:St,HourglassIcon:Ct,InfoIcon:ht,ItalicIcon:bt,JumpToIcon:Tt,KeyIcon:_t,LightningIcon:At,LightningOffIcon:gt,LinkBrokenIcon:yt,LinkIcon:Ot,LinkedinIcon:kt,LinuxIcon:Bt,ListOrderedIcon:ft,ListUnorderedIcon:Rt,LocationIcon:Pt,LockIcon:Lt,MarkdownIcon:Et,MarkupIcon:Dt,MediumIcon:wt,MemoryIcon:Mt,MenuIcon:vt,MergeIcon:xt,MirrorIcon:Ht,MobileIcon:Ut,MoonIcon:Ft,NutIcon:Nt,OutboxIcon:Gt,OutlineIcon:Wt,PaintBrushIcon:Kt,PaperClipIcon:Yt,ParagraphIcon:Vt,PassedIcon:qt,PhoneIcon:Zt,PhotoDragIcon:zt,PhotoIcon:Jt,PinAltIcon:Qt,PinIcon:$t,PlayBackIcon:jt,PlayIcon:Xt,PlayNextIcon:or,PlusIcon:nr,PointerDefaultIcon:er,PointerHandIcon:cr,PowerIcon:tr,PrintIcon:rr,ProceedIcon:Ir,ProfileIcon:ar,PullRequestIcon:lr,QuestionIcon:ir,RSSIcon:sr,RedirectIcon:ur,ReduxIcon:dr,RefreshIcon:mr,ReplyIcon:pr,RepoIcon:Sr,RequestChangeIcon:Cr,RewindIcon:hr,RulerIcon:h,SearchIcon:br,ShareAltIcon:Tr,ShareIcon:_r,ShieldIcon:Ar,SideBySideIcon:gr,SidebarAltIcon:yr,SidebarAltToggleIcon:Or,SidebarIcon:kr,SidebarToggleIcon:Br,SpeakerIcon:fr,StackedIcon:Rr,StarHollowIcon:Pr,StarIcon:Lr,StickerIcon:Er,StopAltIcon:Dr,StopIcon:wr,StorybookIcon:Mr,StructureIcon:vr,SubtractIcon:xr,SunIcon:Hr,SupportIcon:Ur,SwitchAltIcon:Fr,SyncIcon:Nr,TabletIcon:Gr,ThumbsUpIcon:Wr,TimeIcon:Kr,TimerIcon:Yr,TransferIcon:Vr,TrashIcon:qr,TwitterIcon:Zr,TypeIcon:zr,UbuntuIcon:Jr,UndoIcon:Qr,UnfoldIcon:$r,UnlockIcon:jr,UnpinIcon:Xr,UploadIcon:oI,UserAddIcon:nI,UserAltIcon:eI,UserIcon:cI,UsersIcon:tI,VSCodeIcon:rI,VerifiedIcon:II,VideoIcon:aI,WandIcon:lI,WatchIcon:iI,WindowsIcon:sI,WrenchIcon:uI,YoutubeIcon:dI,ZoomIcon:mI,ZoomOutIcon:pI,ZoomResetIcon:SI,iconList:CI}=__STORYBOOK_ICONS__;var i="storybook/measure-addon",b=`${i}/tool`,T=()=>{let[r,c]=p(),{measureEnabled:I}=r,s=S(),a=u(()=>c({measureEnabled:!I}),[c,I]);return d(()=>{s.setAddonShortcut(i,{label:"Toggle Measure [M]",defaultShortcut:["M"],actionName:"measure",showInMenu:!1,action:a})},[a,s]),t.createElement(C,{key:b,active:I,title:"Enable measure",onClick:a},t.createElement(h,null))};l.register(i,()=>{l.add(b,{type:m.TOOL,title:"Measure",match:({viewMode:r,tabId:c})=>r==="story"&&!c,render:()=>t.createElement(T,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/docs/sb-addons/essentials-measure-5/manager-bundle.js.LEGAL.txt b/docs/sb-addons/essentials-measure-5/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/docs/sb-addons/essentials-outline-6/manager-bundle.js b/docs/sb-addons/essentials-outline-6/manager-bundle.js new file mode 100644 index 0000000..a02f2ac --- /dev/null +++ b/docs/sb-addons/essentials-outline-6/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var t=__REACT__,{Children:f,Component:P,Fragment:R,Profiler:L,PureComponent:D,StrictMode:E,Suspense:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:v,cloneElement:x,createContext:H,createElement:M,createFactory:U,createRef:F,forwardRef:N,isValidElement:G,lazy:W,memo:u,startTransition:K,unstable_act:Y,useCallback:d,useContext:V,useDebugValue:q,useDeferredValue:Z,useEffect:m,useId:z,useImperativeHandle:J,useInsertionEffect:Q,useLayoutEffect:$,useMemo:j,useReducer:X,useRef:oo,useState:no,useSyncExternalStore:eo,useTransition:co,version:to}=__REACT__;var io=__STORYBOOK_API__,{ActiveTabs:so,Consumer:uo,ManagerContext:mo,Provider:po,addons:l,combineParameters:So,controlOrMetaKey:Co,controlOrMetaSymbol:ho,eventMatchesShortcut:Ao,eventToShortcut:bo,isMacLike:_o,isShortcutTaken:To,keyToSymbol:go,merge:yo,mockChannel:Oo,optionOrAltSymbol:ko,shortcutMatchesShortcut:Bo,shortcutToHumanString:fo,types:p,useAddonState:Po,useArgTypes:Ro,useArgs:Lo,useChannel:Do,useGlobalTypes:Eo,useGlobals:S,useParameter:wo,useSharedState:vo,useStoryPrepared:xo,useStorybookApi:C,useStorybookState:Ho}=__STORYBOOK_API__;var Go=__STORYBOOK_COMPONENTS__,{A:Wo,ActionBar:Ko,AddonPanel:Yo,Badge:Vo,Bar:qo,Blockquote:Zo,Button:zo,ClipboardCode:Jo,Code:Qo,DL:$o,Div:jo,DocumentWrapper:Xo,EmptyTabContent:on,ErrorFormatter:nn,FlexBar:en,Form:cn,H1:tn,H2:rn,H3:In,H4:an,H5:ln,H6:sn,HR:un,IconButton:h,IconButtonSkeleton:dn,Icons:mn,Img:pn,LI:Sn,Link:Cn,ListItem:hn,Loader:An,OL:bn,P:_n,Placeholder:Tn,Pre:gn,ResetWrapper:yn,ScrollArea:On,Separator:kn,Spaced:Bn,Span:fn,StorybookIcon:Pn,StorybookLogo:Rn,Symbols:Ln,SyntaxHighlighter:Dn,TT:En,TabBar:wn,TabButton:vn,TabWrapper:xn,Table:Hn,Tabs:Mn,TabsState:Un,TooltipLinkList:Fn,TooltipMessage:Nn,TooltipNote:Gn,UL:Wn,WithTooltip:Kn,WithTooltipPure:Yn,Zoom:Vn,codeCommon:qn,components:Zn,createCopyToClipboardFunction:zn,getStoryHref:Jn,icons:Qn,interleaveSeparators:$n,nameSpaceClassNames:jn,resetComponents:Xn,withReset:oe}=__STORYBOOK_COMPONENTS__;var re=__STORYBOOK_ICONS__,{AccessibilityAltIcon:Ie,AccessibilityIcon:ae,AddIcon:le,AdminIcon:ie,AlertAltIcon:se,AlertIcon:ue,AlignLeftIcon:de,AlignRightIcon:me,AppleIcon:pe,ArrowDownIcon:Se,ArrowLeftIcon:Ce,ArrowRightIcon:he,ArrowSolidDownIcon:Ae,ArrowSolidLeftIcon:be,ArrowSolidRightIcon:_e,ArrowSolidUpIcon:Te,ArrowUpIcon:ge,AzureDevOpsIcon:ye,BackIcon:Oe,BasketIcon:ke,BatchAcceptIcon:Be,BatchDenyIcon:fe,BeakerIcon:Pe,BellIcon:Re,BitbucketIcon:Le,BoldIcon:De,BookIcon:Ee,BookmarkHollowIcon:we,BookmarkIcon:ve,BottomBarIcon:xe,BottomBarToggleIcon:He,BoxIcon:Me,BranchIcon:Ue,BrowserIcon:Fe,ButtonIcon:Ne,CPUIcon:Ge,CalendarIcon:We,CameraIcon:Ke,CategoryIcon:Ye,CertificateIcon:Ve,ChangedIcon:qe,ChatIcon:Ze,CheckIcon:ze,ChevronDownIcon:Je,ChevronLeftIcon:Qe,ChevronRightIcon:$e,ChevronSmallDownIcon:je,ChevronSmallLeftIcon:Xe,ChevronSmallRightIcon:oc,ChevronSmallUpIcon:nc,ChevronUpIcon:ec,ChromaticIcon:cc,ChromeIcon:tc,CircleHollowIcon:rc,CircleIcon:Ic,ClearIcon:ac,CloseAltIcon:lc,CloseIcon:ic,CloudHollowIcon:sc,CloudIcon:uc,CogIcon:dc,CollapseIcon:mc,CommandIcon:pc,CommentAddIcon:Sc,CommentIcon:Cc,CommentsIcon:hc,CommitIcon:Ac,CompassIcon:bc,ComponentDrivenIcon:_c,ComponentIcon:Tc,ContrastIcon:gc,ControlsIcon:yc,CopyIcon:Oc,CreditIcon:kc,CrossIcon:Bc,DashboardIcon:fc,DatabaseIcon:Pc,DeleteIcon:Rc,DiamondIcon:Lc,DirectionIcon:Dc,DiscordIcon:Ec,DocChartIcon:wc,DocListIcon:vc,DocumentIcon:xc,DownloadIcon:Hc,DragIcon:Mc,EditIcon:Uc,EllipsisIcon:Fc,EmailIcon:Nc,ExpandAltIcon:Gc,ExpandIcon:Wc,EyeCloseIcon:Kc,EyeIcon:Yc,FaceHappyIcon:Vc,FaceNeutralIcon:qc,FaceSadIcon:Zc,FacebookIcon:zc,FailedIcon:Jc,FastForwardIcon:Qc,FigmaIcon:$c,FilterIcon:jc,FlagIcon:Xc,FolderIcon:ot,FormIcon:nt,GDriveIcon:et,GithubIcon:ct,GitlabIcon:tt,GlobeIcon:rt,GoogleIcon:It,GraphBarIcon:at,GraphLineIcon:lt,GraphqlIcon:it,GridAltIcon:st,GridIcon:ut,GrowIcon:dt,HeartHollowIcon:mt,HeartIcon:pt,HomeIcon:St,HourglassIcon:Ct,InfoIcon:ht,ItalicIcon:At,JumpToIcon:bt,KeyIcon:_t,LightningIcon:Tt,LightningOffIcon:gt,LinkBrokenIcon:yt,LinkIcon:Ot,LinkedinIcon:kt,LinuxIcon:Bt,ListOrderedIcon:ft,ListUnorderedIcon:Pt,LocationIcon:Rt,LockIcon:Lt,MarkdownIcon:Dt,MarkupIcon:Et,MediumIcon:wt,MemoryIcon:vt,MenuIcon:xt,MergeIcon:Ht,MirrorIcon:Mt,MobileIcon:Ut,MoonIcon:Ft,NutIcon:Nt,OutboxIcon:Gt,OutlineIcon:A,PaintBrushIcon:Wt,PaperClipIcon:Kt,ParagraphIcon:Yt,PassedIcon:Vt,PhoneIcon:qt,PhotoDragIcon:Zt,PhotoIcon:zt,PinAltIcon:Jt,PinIcon:Qt,PlayBackIcon:$t,PlayIcon:jt,PlayNextIcon:Xt,PlusIcon:or,PointerDefaultIcon:nr,PointerHandIcon:er,PowerIcon:cr,PrintIcon:tr,ProceedIcon:rr,ProfileIcon:Ir,PullRequestIcon:ar,QuestionIcon:lr,RSSIcon:ir,RedirectIcon:sr,ReduxIcon:ur,RefreshIcon:dr,ReplyIcon:mr,RepoIcon:pr,RequestChangeIcon:Sr,RewindIcon:Cr,RulerIcon:hr,SearchIcon:Ar,ShareAltIcon:br,ShareIcon:_r,ShieldIcon:Tr,SideBySideIcon:gr,SidebarAltIcon:yr,SidebarAltToggleIcon:Or,SidebarIcon:kr,SidebarToggleIcon:Br,SpeakerIcon:fr,StackedIcon:Pr,StarHollowIcon:Rr,StarIcon:Lr,StickerIcon:Dr,StopAltIcon:Er,StopIcon:wr,StorybookIcon:vr,StructureIcon:xr,SubtractIcon:Hr,SunIcon:Mr,SupportIcon:Ur,SwitchAltIcon:Fr,SyncIcon:Nr,TabletIcon:Gr,ThumbsUpIcon:Wr,TimeIcon:Kr,TimerIcon:Yr,TransferIcon:Vr,TrashIcon:qr,TwitterIcon:Zr,TypeIcon:zr,UbuntuIcon:Jr,UndoIcon:Qr,UnfoldIcon:$r,UnlockIcon:jr,UnpinIcon:Xr,UploadIcon:oI,UserAddIcon:nI,UserAltIcon:eI,UserIcon:cI,UsersIcon:tI,VSCodeIcon:rI,VerifiedIcon:II,VideoIcon:aI,WandIcon:lI,WatchIcon:iI,WindowsIcon:sI,WrenchIcon:uI,YoutubeIcon:dI,ZoomIcon:mI,ZoomOutIcon:pI,ZoomResetIcon:SI,iconList:CI}=__STORYBOOK_ICONS__;var i="storybook/outline",b="outline",_=u(function(){let[c,r]=S(),s=C(),I=[!0,"true"].includes(c[b]),a=d(()=>r({[b]:!I}),[I]);return m(()=>{s.setAddonShortcut(i,{label:"Toggle Outline",defaultShortcut:["alt","O"],actionName:"outline",showInMenu:!1,action:a})},[a,s]),t.createElement(h,{key:"outline",active:I,title:"Apply outlines to the preview",onClick:a},t.createElement(A,null))});l.register(i,()=>{l.add(i,{title:"Outline",type:p.TOOL,match:({viewMode:c,tabId:r})=>!!(c&&c.match(/^(story|docs)$/))&&!r,render:()=>t.createElement(_,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/docs/sb-addons/essentials-outline-6/manager-bundle.js.LEGAL.txt b/docs/sb-addons/essentials-outline-6/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/docs/sb-addons/essentials-toolbars-4/manager-bundle.js b/docs/sb-addons/essentials-toolbars-4/manager-bundle.js new file mode 100644 index 0000000..5ea78ba --- /dev/null +++ b/docs/sb-addons/essentials-toolbars-4/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var n=__REACT__,{Children:le,Component:ne,Fragment:se,Profiler:ie,PureComponent:ue,StrictMode:ce,Suspense:pe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:me,cloneElement:de,createContext:be,createElement:Se,createFactory:Te,createRef:ye,forwardRef:_e,isValidElement:fe,lazy:Ce,memo:Ie,startTransition:ve,unstable_act:Oe,useCallback:I,useContext:Ee,useDebugValue:xe,useDeferredValue:ge,useEffect:x,useId:he,useImperativeHandle:ke,useInsertionEffect:Ae,useLayoutEffect:Le,useMemo:Re,useReducer:Be,useRef:L,useState:R,useSyncExternalStore:Pe,useTransition:Me,version:Ne}=__REACT__;var Fe=__STORYBOOK_API__,{ActiveTabs:We,Consumer:Ge,ManagerContext:Ke,Provider:Ye,addons:g,combineParameters:$e,controlOrMetaKey:ze,controlOrMetaSymbol:Ue,eventMatchesShortcut:je,eventToShortcut:qe,isMacLike:Ze,isShortcutTaken:Je,keyToSymbol:Qe,merge:Xe,mockChannel:et,optionOrAltSymbol:tt,shortcutMatchesShortcut:ot,shortcutToHumanString:rt,types:B,useAddonState:at,useArgTypes:lt,useArgs:nt,useChannel:st,useGlobalTypes:P,useGlobals:h,useParameter:it,useSharedState:ut,useStoryPrepared:ct,useStorybookApi:M,useStorybookState:pt}=__STORYBOOK_API__;var Tt=__STORYBOOK_COMPONENTS__,{A:yt,ActionBar:_t,AddonPanel:ft,Badge:Ct,Bar:It,Blockquote:vt,Button:Ot,ClipboardCode:Et,Code:xt,DL:gt,Div:ht,DocumentWrapper:kt,EmptyTabContent:At,ErrorFormatter:Lt,FlexBar:Rt,Form:Bt,H1:Pt,H2:Mt,H3:Nt,H4:wt,H5:Vt,H6:Dt,HR:Ht,IconButton:N,IconButtonSkeleton:Ft,Icons:k,Img:Wt,LI:Gt,Link:Kt,ListItem:Yt,Loader:$t,OL:zt,P:Ut,Placeholder:jt,Pre:qt,ResetWrapper:Zt,ScrollArea:Jt,Separator:w,Spaced:Qt,Span:Xt,StorybookIcon:eo,StorybookLogo:to,Symbols:oo,SyntaxHighlighter:ro,TT:ao,TabBar:lo,TabButton:no,TabWrapper:so,Table:io,Tabs:uo,TabsState:co,TooltipLinkList:V,TooltipMessage:po,TooltipNote:mo,UL:bo,WithTooltip:D,WithTooltipPure:So,Zoom:To,codeCommon:yo,components:_o,createCopyToClipboardFunction:fo,getStoryHref:Co,icons:Io,interleaveSeparators:vo,nameSpaceClassNames:Oo,resetComponents:Eo,withReset:xo}=__STORYBOOK_COMPONENTS__;var W=({active:o,title:t,icon:e,description:r,onClick:a})=>n.createElement(N,{active:o,title:r,onClick:a},e&&n.createElement(k,{icon:e,__suppressDeprecationWarning:!0}),t?`\xA0${t}`:null),G=["reset"],K=o=>o.filter(t=>!G.includes(t.type)).map(t=>t.value),b="addon-toolbars",Y=async(o,t,e)=>{e&&e.next&&await o.setAddonShortcut(b,{label:e.next.label,defaultShortcut:e.next.keys,actionName:`${t}:next`,action:e.next.action}),e&&e.previous&&await o.setAddonShortcut(b,{label:e.previous.label,defaultShortcut:e.previous.keys,actionName:`${t}:previous`,action:e.previous.action}),e&&e.reset&&await o.setAddonShortcut(b,{label:e.reset.label,defaultShortcut:e.reset.keys,actionName:`${t}:reset`,action:e.reset.action})},$=o=>t=>{let{id:e,toolbar:{items:r,shortcuts:a}}=t,d=M(),[S,s]=h(),l=L([]),p=S[e],v=I(()=>{s({[e]:""})},[s]),O=I(()=>{let m=l.current,i=m.indexOf(p),c=i===m.length-1?0:i+1,T=l.current[c];s({[e]:T})},[l,p,s]),u=I(()=>{let m=l.current,i=m.indexOf(p),c=i>-1?i:0,T=c===0?m.length-1:c-1,y=l.current[T];s({[e]:y})},[l,p,s]);return x(()=>{a&&Y(d,e,{next:{...a.next,action:O},previous:{...a.previous,action:u},reset:{...a.reset,action:v}})},[d,e,a,O,u,v]),x(()=>{l.current=K(r)},[]),n.createElement(o,{cycleValues:l.current,...t})},H=({currentValue:o,items:t})=>o!=null&&t.find(e=>e.value===o&&e.type!=="reset"),z=({currentValue:o,items:t})=>{let e=H({currentValue:o,items:t});if(e)return e.icon},U=({currentValue:o,items:t})=>{let e=H({currentValue:o,items:t});if(e)return e.title},j=({right:o,title:t,value:e,icon:r,hideIcon:a,onClick:d,currentValue:S})=>{let s=r&&n.createElement(k,{style:{opacity:1},icon:r}),l={id:e??"_reset",active:S===e,right:o,title:t,icon:r,onClick:d};return r&&!a&&(l.icon=s),l},q=$(({id:o,name:t,description:e,toolbar:{icon:r,items:a,title:d,preventDynamicIcon:S,dynamicTitle:s}})=>{let[l,p]=h(),[v,O]=R(!1),u=l[o],m=!!u,i=r,c=d;S||(i=z({currentValue:u,items:a})||i),s&&(c=U({currentValue:u,items:a})||c),!c&&!i&&console.warn(`Toolbar '${t}' has no title or icon`);let T=I(y=>{p({[o]:y})},[u,p]);return n.createElement(D,{placement:"top",tooltip:({onHide:y})=>{let F=a.filter(({type:E})=>{let A=!0;return E==="reset"&&!u&&(A=!1),A}).map(E=>j({...E,currentValue:u,onClick:()=>{T(E.value),y()}}));return n.createElement(V,{links:F})},closeOnOutsideClick:!0,onVisibleChange:O},n.createElement(W,{active:v||m,description:e||"",icon:i,title:c||""}))}),Z={type:"item",value:""},J=(o,t)=>({...t,name:t.name||o,description:t.description||o,toolbar:{...t.toolbar,items:t.toolbar.items.map(e=>{let r=typeof e=="string"?{value:e,title:e}:e;return r.type==="reset"&&t.toolbar.icon&&(r.icon=t.toolbar.icon,r.hideIcon=!0),{...Z,...r}})}}),Q=()=>{let o=P(),t=Object.keys(o).filter(e=>!!o[e].toolbar);return t.length?n.createElement(n.Fragment,null,n.createElement(w,null),t.map(e=>{let r=J(e,o[e]);return n.createElement(q,{key:e,id:e,...r})})):null};g.register(b,()=>g.add(b,{title:b,type:B.TOOL,match:({tabId:o})=>!o,render:()=>n.createElement(Q,null)}));})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/docs/sb-addons/essentials-toolbars-4/manager-bundle.js.LEGAL.txt b/docs/sb-addons/essentials-toolbars-4/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/docs/sb-addons/essentials-viewport-3/manager-bundle.js b/docs/sb-addons/essentials-viewport-3/manager-bundle.js new file mode 100644 index 0000000..de4602c --- /dev/null +++ b/docs/sb-addons/essentials-viewport-3/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var ie=Object.create;var H=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var le=Object.getPrototypeOf,se=Object.prototype.hasOwnProperty;var O=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ue=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ae(t))!se.call(e,a)&&a!==r&&H(e,a,{get:()=>t[a],enumerable:!(l=ce(t,a))||l.enumerable});return e};var pe=(e,t,r)=>(r=e!=null?ie(le(e)):{},ue(t||!e||!e.__esModule?H(r,"default",{value:e,enumerable:!0}):r,e));var d=P(()=>{});var h=P(()=>{});var m=P(()=>{});var $=Ie((Z,D)=>{d();h();m();(function(e){if(typeof Z=="object"&&typeof D<"u")D.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function l(a,S,u){function i(c,I){if(!S[c]){if(!a[c]){var s=typeof O=="function"&&O;if(!I&&s)return s(c,!0);if(o)return o(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var n=S[c]={exports:{}};a[c][0].call(n.exports,function(p){var b=a[c][1][p];return i(b||p)},n,n.exports,l,a,S,u)}return S[c].exports}for(var o=typeof O=="function"&&O,f=0;f=0)return this.lastItem=this.list[o],this.list[o].val},u.prototype.set=function(i,o){var f;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=o,this):(f=this.indexOf(i),f>=0?(this.lastItem=this.list[f],this.list[f].val=o,this):(this.lastItem={key:i,val:o},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),o=this.indexOf(i),o>=0)return this.size--,this.list.splice(o,1)[0]},u.prototype.has=function(i){var o;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(o=this.indexOf(i),o>=0?(this.lastItem=this.list[o],!0):!1)},u.prototype.forEach=function(i,o){var f;for(f=0;f0&&(E[y]={cacheItem:p,arg:arguments[y]},x?i(s,E):s.push(E),s.length>c&&o(s.shift())),n.wasMemoized=x,n.numArgs=y+1,R};return n.limit=c,n.wasMemoized=!1,n.cache=I,n.lru=s,n}};function i(c,I){var s=c.length,g=I.length,n,p,b;for(p=0;p=0&&(s=c[n],g=s.cacheItem.get(s.arg),!g||!g.size);n--)s.cacheItem.delete(s.arg)}function f(c,I){return c===I||c!==c&&I!==I}},{"map-or-similar":1}]},{},[3])(3)})});d();h();m();d();h();m();d();h();m();d();h();m();var w=__REACT__,{Children:De,Component:Ve,Fragment:U,Profiler:Ne,PureComponent:He,StrictMode:Ue,Suspense:ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fe,cloneElement:Ge,createContext:qe,createElement:z,createFactory:We,createRef:Ye,forwardRef:je,isValidElement:Ke,lazy:Ze,memo:F,startTransition:$e,unstable_act:Je,useCallback:Qe,useContext:Xe,useDebugValue:et,useDeferredValue:tt,useEffect:L,useId:ot,useImperativeHandle:nt,useInsertionEffect:rt,useLayoutEffect:it,useMemo:ct,useReducer:at,useRef:G,useState:q,useSyncExternalStore:lt,useTransition:st,version:It}=__REACT__;d();h();m();var ht=__STORYBOOK_API__,{ActiveTabs:mt,Consumer:ft,ManagerContext:gt,Provider:St,addons:M,combineParameters:wt,controlOrMetaKey:bt,controlOrMetaSymbol:yt,eventMatchesShortcut:Ct,eventToShortcut:vt,isMacLike:Tt,isShortcutTaken:_t,keyToSymbol:xt,merge:Ot,mockChannel:At,optionOrAltSymbol:kt,shortcutMatchesShortcut:Rt,shortcutToHumanString:Et,types:W,useAddonState:Lt,useArgTypes:Bt,useArgs:Pt,useChannel:Mt,useGlobalTypes:Dt,useGlobals:Y,useParameter:j,useSharedState:Vt,useStoryPrepared:Nt,useStorybookApi:K,useStorybookState:Ht}=__STORYBOOK_API__;var N=pe($());d();h();m();var Kt=__STORYBOOK_THEMING__,{CacheProvider:Zt,ClassNames:$t,Global:J,ThemeProvider:Jt,background:Qt,color:Xt,convert:eo,create:to,createCache:oo,createGlobal:no,createReset:ro,css:io,darken:co,ensure:ao,ignoreSsrWarning:lo,isPropValid:so,jsx:Io,keyframes:uo,lighten:po,styled:A,themes:ho,typography:mo,useTheme:fo,withTheme:Q}=__STORYBOOK_THEMING__;d();h();m();var yo=__STORYBOOK_COMPONENTS__,{A:Co,ActionBar:vo,AddonPanel:To,Badge:_o,Bar:xo,Blockquote:Oo,Button:Ao,ClipboardCode:ko,Code:Ro,DL:Eo,Div:Lo,DocumentWrapper:Bo,EmptyTabContent:Po,ErrorFormatter:Mo,FlexBar:Do,Form:Vo,H1:No,H2:Ho,H3:Uo,H4:zo,H5:Fo,H6:Go,HR:qo,IconButton:V,IconButtonSkeleton:Wo,Icons:Yo,Img:jo,LI:Ko,Link:Zo,ListItem:$o,Loader:Jo,OL:Qo,P:Xo,Placeholder:en,Pre:tn,ResetWrapper:on,ScrollArea:nn,Separator:rn,Spaced:cn,Span:an,StorybookIcon:ln,StorybookLogo:sn,Symbols:In,SyntaxHighlighter:un,TT:pn,TabBar:dn,TabButton:hn,TabWrapper:mn,Table:fn,Tabs:gn,TabsState:Sn,TooltipLinkList:X,TooltipMessage:wn,TooltipNote:bn,UL:yn,WithTooltip:ee,WithTooltipPure:Cn,Zoom:vn,codeCommon:Tn,components:_n,createCopyToClipboardFunction:xn,getStoryHref:On,icons:An,interleaveSeparators:kn,nameSpaceClassNames:Rn,resetComponents:En,withReset:Ln}=__STORYBOOK_COMPONENTS__;d();h();m();var Vn=__STORYBOOK_ICONS__,{AccessibilityAltIcon:Nn,AccessibilityIcon:Hn,AddIcon:Un,AdminIcon:zn,AlertAltIcon:Fn,AlertIcon:Gn,AlignLeftIcon:qn,AlignRightIcon:Wn,AppleIcon:Yn,ArrowDownIcon:jn,ArrowLeftIcon:Kn,ArrowRightIcon:Zn,ArrowSolidDownIcon:$n,ArrowSolidLeftIcon:Jn,ArrowSolidRightIcon:Qn,ArrowSolidUpIcon:Xn,ArrowUpIcon:er,AzureDevOpsIcon:tr,BackIcon:or,BasketIcon:nr,BatchAcceptIcon:rr,BatchDenyIcon:ir,BeakerIcon:cr,BellIcon:ar,BitbucketIcon:lr,BoldIcon:sr,BookIcon:Ir,BookmarkHollowIcon:ur,BookmarkIcon:pr,BottomBarIcon:dr,BottomBarToggleIcon:hr,BoxIcon:mr,BranchIcon:fr,BrowserIcon:gr,ButtonIcon:Sr,CPUIcon:wr,CalendarIcon:br,CameraIcon:yr,CategoryIcon:Cr,CertificateIcon:vr,ChangedIcon:Tr,ChatIcon:_r,CheckIcon:xr,ChevronDownIcon:Or,ChevronLeftIcon:Ar,ChevronRightIcon:kr,ChevronSmallDownIcon:Rr,ChevronSmallLeftIcon:Er,ChevronSmallRightIcon:Lr,ChevronSmallUpIcon:Br,ChevronUpIcon:Pr,ChromaticIcon:Mr,ChromeIcon:Dr,CircleHollowIcon:Vr,CircleIcon:Nr,ClearIcon:Hr,CloseAltIcon:Ur,CloseIcon:zr,CloudHollowIcon:Fr,CloudIcon:Gr,CogIcon:qr,CollapseIcon:Wr,CommandIcon:Yr,CommentAddIcon:jr,CommentIcon:Kr,CommentsIcon:Zr,CommitIcon:$r,CompassIcon:Jr,ComponentDrivenIcon:Qr,ComponentIcon:Xr,ContrastIcon:ei,ControlsIcon:ti,CopyIcon:oi,CreditIcon:ni,CrossIcon:ri,DashboardIcon:ii,DatabaseIcon:ci,DeleteIcon:ai,DiamondIcon:li,DirectionIcon:si,DiscordIcon:Ii,DocChartIcon:ui,DocListIcon:pi,DocumentIcon:di,DownloadIcon:hi,DragIcon:mi,EditIcon:fi,EllipsisIcon:gi,EmailIcon:Si,ExpandAltIcon:wi,ExpandIcon:bi,EyeCloseIcon:yi,EyeIcon:Ci,FaceHappyIcon:vi,FaceNeutralIcon:Ti,FaceSadIcon:_i,FacebookIcon:xi,FailedIcon:Oi,FastForwardIcon:Ai,FigmaIcon:ki,FilterIcon:Ri,FlagIcon:Ei,FolderIcon:Li,FormIcon:Bi,GDriveIcon:Pi,GithubIcon:Mi,GitlabIcon:Di,GlobeIcon:Vi,GoogleIcon:Ni,GraphBarIcon:Hi,GraphLineIcon:Ui,GraphqlIcon:zi,GridAltIcon:Fi,GridIcon:Gi,GrowIcon:te,HeartHollowIcon:qi,HeartIcon:Wi,HomeIcon:Yi,HourglassIcon:ji,InfoIcon:Ki,ItalicIcon:Zi,JumpToIcon:$i,KeyIcon:Ji,LightningIcon:Qi,LightningOffIcon:Xi,LinkBrokenIcon:ec,LinkIcon:tc,LinkedinIcon:oc,LinuxIcon:nc,ListOrderedIcon:rc,ListUnorderedIcon:ic,LocationIcon:cc,LockIcon:ac,MarkdownIcon:lc,MarkupIcon:sc,MediumIcon:Ic,MemoryIcon:uc,MenuIcon:pc,MergeIcon:dc,MirrorIcon:hc,MobileIcon:mc,MoonIcon:fc,NutIcon:gc,OutboxIcon:Sc,OutlineIcon:wc,PaintBrushIcon:bc,PaperClipIcon:yc,ParagraphIcon:Cc,PassedIcon:vc,PhoneIcon:Tc,PhotoDragIcon:_c,PhotoIcon:xc,PinAltIcon:Oc,PinIcon:Ac,PlayBackIcon:kc,PlayIcon:Rc,PlayNextIcon:Ec,PlusIcon:Lc,PointerDefaultIcon:Bc,PointerHandIcon:Pc,PowerIcon:Mc,PrintIcon:Dc,ProceedIcon:Vc,ProfileIcon:Nc,PullRequestIcon:Hc,QuestionIcon:Uc,RSSIcon:zc,RedirectIcon:Fc,ReduxIcon:Gc,RefreshIcon:qc,ReplyIcon:Wc,RepoIcon:Yc,RequestChangeIcon:jc,RewindIcon:Kc,RulerIcon:Zc,SearchIcon:$c,ShareAltIcon:Jc,ShareIcon:Qc,ShieldIcon:Xc,SideBySideIcon:ea,SidebarAltIcon:ta,SidebarAltToggleIcon:oa,SidebarIcon:na,SidebarToggleIcon:ra,SpeakerIcon:ia,StackedIcon:ca,StarHollowIcon:aa,StarIcon:la,StickerIcon:sa,StopAltIcon:Ia,StopIcon:ua,StorybookIcon:pa,StructureIcon:da,SubtractIcon:ha,SunIcon:ma,SupportIcon:fa,SwitchAltIcon:ga,SyncIcon:Sa,TabletIcon:wa,ThumbsUpIcon:ba,TimeIcon:ya,TimerIcon:Ca,TransferIcon:oe,TrashIcon:va,TwitterIcon:Ta,TypeIcon:_a,UbuntuIcon:xa,UndoIcon:Oa,UnfoldIcon:Aa,UnlockIcon:ka,UnpinIcon:Ra,UploadIcon:Ea,UserAddIcon:La,UserAltIcon:Ba,UserIcon:Pa,UsersIcon:Ma,VSCodeIcon:Da,VerifiedIcon:Va,VideoIcon:Na,WandIcon:Ha,WatchIcon:Ua,WindowsIcon:za,WrenchIcon:Fa,YoutubeIcon:Ga,ZoomIcon:qa,ZoomOutIcon:Wa,ZoomResetIcon:Ya,iconList:ja}=__STORYBOOK_ICONS__;var k="storybook/viewport",he="viewport",me={viewport:"reset",viewportRotated:!1},re=(e,t)=>e.indexOf(t),fe=(e,t)=>{let r=re(e,t);return r===e.length-1?e[0]:e[r+1]},ge=(e,t)=>{let r=re(e,t);return r<1?e[e.length-1]:e[r-1]},Se=async(e,t,r,l)=>{await e.setAddonShortcut(k,{label:"Previous viewport",defaultShortcut:["alt","shift","V"],actionName:"previous",action:()=>{r({viewport:ge(l,t.viewport)})}}),await e.setAddonShortcut(k,{label:"Next viewport",defaultShortcut:["alt","V"],actionName:"next",action:()=>{r({viewport:fe(l,t.viewport)})}}),await e.setAddonShortcut(k,{label:"Reset viewport",defaultShortcut:["alt","control","V"],actionName:"reset",action:()=>{r(me)}})},we={mobile1:{name:"Small mobile",styles:{height:"568px",width:"320px"},type:"mobile"},mobile2:{name:"Large mobile",styles:{height:"896px",width:"414px"},type:"mobile"},tablet:{name:"Tablet",styles:{height:"1112px",width:"834px"},type:"tablet"}},be=(0,N.default)(50)(e=>[...ye,...Object.entries(e).map(([t,{name:r,...l}])=>({...l,id:t,title:r}))]),B={id:"reset",title:"Reset viewport",styles:null,type:"other"},ye=[B],Ce=(0,N.default)(50)((e,t,r,l)=>e.filter(a=>a.id!==B.id||t.id!==a.id).map(a=>({...a,onClick:()=>{r({viewport:a.id}),l()}}))),ve=({width:e,height:t,...r})=>({...r,height:e,width:t}),Te=A.div(()=>({display:"inline-flex",alignItems:"center"})),ne=A.div(({theme:e})=>({display:"inline-block",textDecoration:"none",padding:10,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,lineHeight:"1",height:40,border:"none",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",background:"transparent"})),_e=A(V)(()=>({display:"inline-flex",alignItems:"center"})),xe=A.div(({theme:e})=>({fontSize:e.typography.size.s2-1,marginLeft:10})),Oe=(e,t,r)=>{if(t===null)return;let l=typeof t=="function"?t(e):t;return r?ve(l):l},Ae=F(Q(({theme:e})=>{let[t,r]=Y(),{viewports:l=we,defaultOrientation:a,defaultViewport:S,disable:u}=j(he,{}),i=be(l),o=K(),[f,c]=q(!1);S&&!i.find(n=>n.id===S)&&console.warn(`Cannot find "defaultViewport" of "${S}" in addon-viewport configs, please check the "viewports" setting in the configuration.`),L(()=>{Se(o,t,r,Object.keys(l))},[l,t,t.viewport,r,o]),L(()=>{let n=a==="landscape";(S&&t.viewport!==S||a&&t.viewportRotated!==n)&&r({viewport:S,viewportRotated:n})},[a,S,r]);let I=i.find(n=>n.id===t.viewport)||i.find(n=>n.id===S)||i.find(n=>n.default)||B,s=G(),g=Oe(s.current,I.styles,t.viewportRotated);return L(()=>{s.current=g},[I]),u||Object.entries(l).length===0?null:w.createElement(U,null,w.createElement(ee,{placement:"top",tooltip:({onHide:n})=>w.createElement(X,{links:Ce(i,I,r,n)}),closeOnOutsideClick:!0,onVisibleChange:c},w.createElement(_e,{key:"viewport",title:"Change the size of the preview",active:f||!!g,onDoubleClick:()=>{r({viewport:B.id})}},w.createElement(te,null),g?w.createElement(xe,null,t.viewportRotated?`${I.title} (L)`:`${I.title} (P)`):null)),g?w.createElement(Te,null,w.createElement(J,{styles:{'iframe[data-is-storybook="true"]':{...g||{width:"100%",height:"100%"}}}}),w.createElement(ne,{title:"Viewport width"},g.width.replace("px","")),w.createElement(V,{key:"viewport-rotate",title:"Rotate viewport",onClick:()=>{r({viewportRotated:!t.viewportRotated})}},w.createElement(oe,null)),w.createElement(ne,{title:"Viewport height"},g.height.replace("px",""))):null)}));M.register(k,()=>{M.add(k,{title:"viewport / media-queries",type:W.TOOL,match:({viewMode:e,tabId:t})=>e==="story"&&!t,render:()=>z(Ae,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/docs/sb-addons/essentials-viewport-3/manager-bundle.js.LEGAL.txt b/docs/sb-addons/essentials-viewport-3/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js b/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js new file mode 100644 index 0000000..9235713 --- /dev/null +++ b/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var u=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),w=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},x=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of h(t))!v.call(e,o)&&o!==r&&u(e,o,{get:()=>t[o],enumerable:!(a=T(t,o))||a.enumerable});return e};var A=e=>x(u({},"__esModule",{value:!0}),e);var s=i(()=>{});var l=i(()=>{});var n=i(()=>{});var d={};w(d,{ActiveTabs:()=>M,Consumer:()=>j,ManagerContext:()=>C,Provider:()=>I,addons:()=>F,combineParameters:()=>G,controlOrMetaKey:()=>K,controlOrMetaSymbol:()=>N,default:()=>k,eventMatchesShortcut:()=>R,eventToShortcut:()=>q,isMacLike:()=>B,isShortcutTaken:()=>D,keyToSymbol:()=>L,merge:()=>Y,mockChannel:()=>E,optionOrAltSymbol:()=>H,shortcutMatchesShortcut:()=>J,shortcutToHumanString:()=>z,types:()=>Q,useAddonState:()=>U,useArgTypes:()=>V,useArgs:()=>W,useChannel:()=>X,useGlobalTypes:()=>Z,useGlobals:()=>$,useParameter:()=>ee,useSharedState:()=>te,useStoryPrepared:()=>re,useStorybookApi:()=>oe,useStorybookState:()=>ae});var k,M,j,C,I,F,G,K,N,R,q,B,D,L,Y,E,H,J,z,Q,U,V,W,X,Z,$,ee,te,re,oe,ae,g=i(()=>{s();l();n();k=__STORYBOOK_API__,{ActiveTabs:M,Consumer:j,ManagerContext:C,Provider:I,addons:F,combineParameters:G,controlOrMetaKey:K,controlOrMetaSymbol:N,eventMatchesShortcut:R,eventToShortcut:q,isMacLike:B,isShortcutTaken:D,keyToSymbol:L,merge:Y,mockChannel:E,optionOrAltSymbol:H,shortcutMatchesShortcut:J,shortcutToHumanString:z,types:Q,useAddonState:U,useArgTypes:V,useArgs:W,useChannel:X,useGlobalTypes:Z,useGlobals:$,useParameter:ee,useSharedState:te,useStoryPrepared:re,useStorybookApi:oe,useStorybookState:ae}=__STORYBOOK_API__});var O=P((Pe,f)=>{"use strict";s();l();n();var b=Object.defineProperty,se=Object.getOwnPropertyDescriptor,le=Object.getOwnPropertyNames,ne=Object.prototype.hasOwnProperty,ie=(e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})},ue=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of le(t))!ne.call(e,o)&&o!==r&&b(e,o,{get:()=>t[o],enumerable:!(a=se(t,o))||a.enumerable});return e},pe=e=>ue(b({},"__esModule",{value:!0}),e),y={};ie(y,{global:()=>_e});f.exports=pe(y);var _e=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})()});s();l();n();s();l();n();var ce=(g(),A(d)),be=O(),S="static-filter";ce.addons.register(S,e=>{let t=Object.entries(be.global.TAGS_OPTIONS??{}).reduce((r,a)=>{let[o,m]=a;return m.excludeFromSidebar&&(r[o]=!0),r},{});e.experimental_setFilter(S,r=>(r.tags||[]).filter(a=>t[a]).length===0)});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt b/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/docs/sb-common-assets/fonts.css b/docs/sb-common-assets/fonts.css new file mode 100644 index 0000000..90050cc --- /dev/null +++ b/docs/sb-common-assets/fonts.css @@ -0,0 +1,31 @@ +@font-face { + font-family: 'Nunito Sans'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./nunito-sans-regular.woff2') format('woff2'); +} + +@font-face { + font-family: 'Nunito Sans'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('./nunito-sans-italic.woff2') format('woff2'); +} + +@font-face { + font-family: 'Nunito Sans'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./nunito-sans-bold.woff2') format('woff2'); +} + +@font-face { + font-family: 'Nunito Sans'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('./nunito-sans-bold-italic.woff2') format('woff2'); +} diff --git a/docs/sb-common-assets/nunito-sans-bold-italic.woff2 b/docs/sb-common-assets/nunito-sans-bold-italic.woff2 new file mode 100644 index 0000000..33563d8 Binary files /dev/null and b/docs/sb-common-assets/nunito-sans-bold-italic.woff2 differ diff --git a/docs/sb-common-assets/nunito-sans-bold.woff2 b/docs/sb-common-assets/nunito-sans-bold.woff2 new file mode 100644 index 0000000..19fcc94 Binary files /dev/null and b/docs/sb-common-assets/nunito-sans-bold.woff2 differ diff --git a/docs/sb-common-assets/nunito-sans-italic.woff2 b/docs/sb-common-assets/nunito-sans-italic.woff2 new file mode 100644 index 0000000..827096d Binary files /dev/null and b/docs/sb-common-assets/nunito-sans-italic.woff2 differ diff --git a/docs/sb-common-assets/nunito-sans-regular.woff2 b/docs/sb-common-assets/nunito-sans-regular.woff2 new file mode 100644 index 0000000..c527ba4 Binary files /dev/null and b/docs/sb-common-assets/nunito-sans-regular.woff2 differ diff --git a/docs/sb-manager/WithTooltip-Y7J54OF7-3AIPQNGM.js b/docs/sb-manager/WithTooltip-Y7J54OF7-3AIPQNGM.js new file mode 100644 index 0000000..bcb6806 --- /dev/null +++ b/docs/sb-manager/WithTooltip-Y7J54OF7-3AIPQNGM.js @@ -0,0 +1 @@ +import{WithToolTipState,WithTooltipPure}from"./chunk-VMGB76WP.js";import"./chunk-UOBNU442.js";import"./chunk-XP3HGWTR.js";export{WithToolTipState,WithToolTipState as WithTooltip,WithTooltipPure}; diff --git a/docs/sb-manager/chunk-I53COLQ6.js b/docs/sb-manager/chunk-I53COLQ6.js new file mode 100644 index 0000000..5f5a70f --- /dev/null +++ b/docs/sb-manager/chunk-I53COLQ6.js @@ -0,0 +1,183 @@ +import{Addon_TypesEnum,AlertIcon,ArrowLeftIcon,Badge,BottomBarIcon,BottomBarToggleIcon,Button,CheckIcon,ChevronDownIcon,CircleIcon,CloseAltIcon,CloseIcon,CogIcon,CollapseIcon,DocumentIcon,EmptyTabContent,ErrorFormatter,ExpandAltIcon,ExpandIcon,EyeCloseIcon,EyeIcon,FORCE_REMOUNT,Form,GithubIcon,GlobeIcon,HeartIcon,IconButton,Icons,InfoIcon,LightningIcon,Link2,Link22,LinkIcon,Loader,Location,LocationProvider,LockIcon,ManagerConsumer,ManagerProvider,Match,MenuIcon,PRELOAD_ENTRIES,PREVIEW_BUILDER_PROGRESS,ProviderDoesNotExtendBaseProviderError,Route2,SET_CURRENT_STORY,STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL,SearchIcon,Separator,ShareAltIcon,SidebarAltIcon,Spaced,StorybookIcon,StorybookLogo,SyncIcon,TabBar,TabButton,Tabs,TimeIcon,TooltipLinkList,TrashIcon,WandIcon,WithTooltip,Zoom,ZoomIcon,ZoomOutIcon,ZoomResetIcon,addons,eventToShortcut,getStoryHref,merge_default,require_isObject,require_isSymbol,require_lib,require_root,require_store2,shortcutMatchesShortcut,shortcutToHumanString,typesX,useNavigate2,useStorybookApi,useStorybookState}from"./chunk-L35575BZ.js";import{ScrollArea,_extends}from"./chunk-TZAR34JC.js";import{Global,ThemeProvider,createGlobal,ensure,keyframes,logger,newStyled,require_react,require_react_dom,scope,useTheme,withTheme}from"./chunk-UOBNU442.js";import{__commonJS,__toESM,require_memoizerific}from"./chunk-XP3HGWTR.js";var require_client=__commonJS({"../../node_modules/react-dom/client.js"(exports){"use strict";var m2=require_react_dom();i3=m2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,exports.createRoot=function(c2,o2){i3.usingClientEntryPoint=!0;try{return m2.createRoot(c2,o2)}finally{i3.usingClientEntryPoint=!1}},exports.hydrateRoot=function(c2,h2,o2){i3.usingClientEntryPoint=!0;try{return m2.hydrateRoot(c2,h2,o2)}finally{i3.usingClientEntryPoint=!1}};var i3}});var require_react_is_development=__commonJS({"../../node_modules/react-is/cjs/react-is.development.js"(exports){"use strict";(function(){"use strict";var hasSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_SUSPENSE_LIST_TYPE=hasSymbol?Symbol.for("react.suspense_list"):60120,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,REACT_BLOCK_TYPE=hasSymbol?Symbol.for("react.block"):60121,REACT_FUNDAMENTAL_TYPE=hasSymbol?Symbol.for("react.fundamental"):60117,REACT_RESPONDER_TYPE=hasSymbol?Symbol.for("react.responder"):60118,REACT_SCOPE_TYPE=hasSymbol?Symbol.for("react.scope"):60119;function isValidElementType(type){return typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE)}function typeOf(object){if(typeof object=="object"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment9=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef2(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element2,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment9,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef2,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense,exports.isValidElementType=isValidElementType,exports.typeOf=typeOf})()}});var require_react_is=__commonJS({"../../node_modules/react-is/index.js"(exports,module){"use strict";module.exports=require_react_is_development()}});var require_object_assign=__commonJS({"../../node_modules/object-assign/index.js"(exports,module){"use strict";var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(val==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(val)}function shouldUseNative(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de",Object.getOwnPropertyNames(test1)[0]==="5")return!1;for(var test2={},i3=0;i3<10;i3++)test2["_"+String.fromCharCode(i3)]=i3;var order2=Object.getOwnPropertyNames(test2).map(function(n3){return test2[n3]});if(order2.join("")!=="0123456789")return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter}),Object.keys(Object.assign({},test3)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}module.exports=shouldUseNative()?Object.assign:function(target,source){for(var from,to=toObject(target),symbols,s2=1;s21?printWarning("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):printWarning("Invalid argument supplied to oneOf, expected an array."),emptyFunctionThatReturnsNull;function validate(props,propName,componentName,location,propFullName){for(var propValue=props[propName],i3=0;i30?", expected one of type ["+expectedTypes.join(", ")+"]":"";return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`"+expectedTypesMessage+"."))}return createChainableTypeChecker(validate)}function createNodeChecker(){function validate(props,propName,componentName,location,propFullName){return isNode(props[propName])?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`, expected a ReactNode."))}return createChainableTypeChecker(validate)}function invalidValidatorError(componentName,location,propFullName,key,type){return new PropTypeError((componentName||"React class")+": "+location+" type `"+propFullName+"."+key+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+type+"`.")}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if(propType!=="object")return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."));for(var key in shapeTypes){var checker=shapeTypes[key];if(typeof checker!="function")return invalidValidatorError(componentName,location,propFullName,key,getPreciseType(checker));var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}return null}return createChainableTypeChecker(validate)}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if(propType!=="object")return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."));var allKeys=assign({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(has(shapeTypes,key)&&typeof checker!="function")return invalidValidatorError(componentName,location,propFullName,key,getPreciseType(checker));if(!checker)return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(shapeTypes),null," "));var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}return null}return createChainableTypeChecker(validate)}function isNode(propValue){switch(typeof propValue){case"number":case"string":case"undefined":return!0;case"boolean":return!propValue;case"object":if(Array.isArray(propValue))return propValue.every(isNode);if(propValue===null||isValidElement(propValue))return!0;var iteratorFn=getIteratorFn(propValue);if(iteratorFn){var iterator=iteratorFn.call(propValue),step;if(iteratorFn!==propValue.entries){for(;!(step=iterator.next()).done;)if(!isNode(step.value))return!1}else for(;!(step=iterator.next()).done;){var entry=step.value;if(entry&&!isNode(entry[1]))return!1}}else return!1;return!0;default:return!1}}function isSymbol(propType,propValue){return propType==="symbol"?!0:propValue?propValue["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&propValue instanceof Symbol:!1}function getPropType(propValue){var propType=typeof propValue;return Array.isArray(propValue)?"array":propValue instanceof RegExp?"object":isSymbol(propType,propValue)?"symbol":propType}function getPreciseType(propValue){if(typeof propValue>"u"||propValue===null)return""+propValue;var propType=getPropType(propValue);if(propType==="object"){if(propValue instanceof Date)return"date";if(propValue instanceof RegExp)return"regexp"}return propType}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type}}function getClassName(propValue){return!propValue.constructor||!propValue.constructor.name?ANONYMOUS:propValue.constructor.name}return ReactPropTypes.checkPropTypes=checkPropTypes,ReactPropTypes.resetWarningCache=checkPropTypes.resetWarningCache,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}}});var require_prop_types=__commonJS({"../../node_modules/prop-types/index.js"(exports,module){ReactIs=require_react_is(),throwOnDirectAccess=!0,module.exports=require_factoryWithTypeCheckers()(ReactIs.isElement,throwOnDirectAccess);var ReactIs,throwOnDirectAccess}});var require_react_fast_compare=__commonJS({"../../node_modules/react-fast-compare/index.js"(exports,module){var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(a2,b2){if(a2===b2)return!0;if(a2&&b2&&typeof a2=="object"&&typeof b2=="object"){if(a2.constructor!==b2.constructor)return!1;var length,i3,keys;if(Array.isArray(a2)){if(length=a2.length,length!=b2.length)return!1;for(i3=length;i3--!==0;)if(!equal(a2[i3],b2[i3]))return!1;return!0}var it;if(hasMap&&a2 instanceof Map&&b2 instanceof Map){if(a2.size!==b2.size)return!1;for(it=a2.entries();!(i3=it.next()).done;)if(!b2.has(i3.value[0]))return!1;for(it=a2.entries();!(i3=it.next()).done;)if(!equal(i3.value[1],b2.get(i3.value[0])))return!1;return!0}if(hasSet&&a2 instanceof Set&&b2 instanceof Set){if(a2.size!==b2.size)return!1;for(it=a2.entries();!(i3=it.next()).done;)if(!b2.has(i3.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(a2)&&ArrayBuffer.isView(b2)){if(length=a2.length,length!=b2.length)return!1;for(i3=length;i3--!==0;)if(a2[i3]!==b2[i3])return!1;return!0}if(a2.constructor===RegExp)return a2.source===b2.source&&a2.flags===b2.flags;if(a2.valueOf!==Object.prototype.valueOf&&typeof a2.valueOf=="function"&&typeof b2.valueOf=="function")return a2.valueOf()===b2.valueOf();if(a2.toString!==Object.prototype.toString&&typeof a2.toString=="function"&&typeof b2.toString=="function")return a2.toString()===b2.toString();if(keys=Object.keys(a2),length=keys.length,length!==Object.keys(b2).length)return!1;for(i3=length;i3--!==0;)if(!Object.prototype.hasOwnProperty.call(b2,keys[i3]))return!1;if(hasElementType&&a2 instanceof Element)return!1;for(i3=length;i3--!==0;)if(!((keys[i3]==="_owner"||keys[i3]==="__v"||keys[i3]==="__o")&&a2.$$typeof)&&!equal(a2[keys[i3]],b2[keys[i3]]))return!1;return!0}return a2!==a2&&b2!==b2}module.exports=function(a2,b2){try{return equal(a2,b2)}catch(error){if((error.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw error}}}});var require_browser=__commonJS({"../../node_modules/invariant/browser.js"(exports,module){"use strict";var invariant=function(condition,format2,a2,b2,c2,d2,e3,f2){if(format2===void 0)throw new Error("invariant requires an error message argument");if(!condition){var error;if(format2===void 0)error=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var args=[a2,b2,c2,d2,e3,f2],argIndex=0;error=new Error(format2.replace(/%s/g,function(){return args[argIndex++]})),error.name="Invariant Violation"}throw error.framesToPop=1,error}};module.exports=invariant}});var require_shallowequal=__commonJS({"../../node_modules/shallowequal/index.js"(exports,module){module.exports=function(objA,objB,compare,compareContext){var ret=compare?compare.call(compareContext,objA,objB):void 0;if(ret!==void 0)return!!ret;if(objA===objB)return!0;if(typeof objA!="object"||!objA||typeof objB!="object"||!objB)return!1;var keysA=Object.keys(objA),keysB=Object.keys(objB);if(keysA.length!==keysB.length)return!1;for(var bHasOwnProperty=Object.prototype.hasOwnProperty.bind(objB),idx=0;idx=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,remainingWait(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function cancel(){timerId!==void 0&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0}function flush(){return timerId===void 0?result:trailingEdge(now())}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(timerId===void 0)return leadingEdge(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return timerId===void 0&&(timerId=setTimeout(timerExpired,wait)),result}return debounced.cancel=cancel,debounced.flush=flush,debounced}module.exports=debounce3}});var require_throttle=__commonJS({"../../node_modules/lodash/throttle.js"(exports,module){var debounce3=require_debounce(),isObject=require_isObject(),FUNC_ERROR_TEXT="Expected a function";function throttle2(func,wait,options2){var leading=!0,trailing=!0;if(typeof func!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject(options2)&&(leading="leading"in options2?!!options2.leading:leading,trailing="trailing"in options2?!!options2.trailing:trailing),debounce3(func,wait,{leading,maxWait:wait,trailing})}module.exports=throttle2}});var require_react_is_development2=__commonJS({"../../node_modules/downshift/node_modules/react-is/cjs/react-is.development.js"(exports){"use strict";(function(){"use strict";var REACT_ELEMENT_TYPE=60103,REACT_PORTAL_TYPE=60106,REACT_FRAGMENT_TYPE=60107,REACT_STRICT_MODE_TYPE=60108,REACT_PROFILER_TYPE=60114,REACT_PROVIDER_TYPE=60109,REACT_CONTEXT_TYPE=60110,REACT_FORWARD_REF_TYPE=60112,REACT_SUSPENSE_TYPE=60113,REACT_SUSPENSE_LIST_TYPE=60120,REACT_MEMO_TYPE=60115,REACT_LAZY_TYPE=60116,REACT_BLOCK_TYPE=60121,REACT_SERVER_BLOCK_TYPE=60122,REACT_FUNDAMENTAL_TYPE=60117,REACT_SCOPE_TYPE=60119,REACT_OPAQUE_ID_TYPE=60128,REACT_DEBUG_TRACING_MODE_TYPE=60129,REACT_OFFSCREEN_TYPE=60130,REACT_LEGACY_HIDDEN_TYPE=60131;if(typeof Symbol=="function"&&Symbol.for){var symbolFor=Symbol.for;REACT_ELEMENT_TYPE=symbolFor("react.element"),REACT_PORTAL_TYPE=symbolFor("react.portal"),REACT_FRAGMENT_TYPE=symbolFor("react.fragment"),REACT_STRICT_MODE_TYPE=symbolFor("react.strict_mode"),REACT_PROFILER_TYPE=symbolFor("react.profiler"),REACT_PROVIDER_TYPE=symbolFor("react.provider"),REACT_CONTEXT_TYPE=symbolFor("react.context"),REACT_FORWARD_REF_TYPE=symbolFor("react.forward_ref"),REACT_SUSPENSE_TYPE=symbolFor("react.suspense"),REACT_SUSPENSE_LIST_TYPE=symbolFor("react.suspense_list"),REACT_MEMO_TYPE=symbolFor("react.memo"),REACT_LAZY_TYPE=symbolFor("react.lazy"),REACT_BLOCK_TYPE=symbolFor("react.block"),REACT_SERVER_BLOCK_TYPE=symbolFor("react.server.block"),REACT_FUNDAMENTAL_TYPE=symbolFor("react.fundamental"),REACT_SCOPE_TYPE=symbolFor("react.scope"),REACT_OPAQUE_ID_TYPE=symbolFor("react.opaque.id"),REACT_DEBUG_TRACING_MODE_TYPE=symbolFor("react.debug_trace_mode"),REACT_OFFSCREEN_TYPE=symbolFor("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=symbolFor("react.legacy_hidden")}var enableScopeAPI=!1;function isValidElementType(type){return!!(typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||type===REACT_DEBUG_TRACING_MODE_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||type===REACT_LEGACY_HIDDEN_TYPE||enableScopeAPI||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_BLOCK_TYPE||type[0]===REACT_SERVER_BLOCK_TYPE))}function typeOf(object){if(typeof object=="object"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment9=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef2(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element2,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment9,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef2,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense,exports.isValidElementType=isValidElementType,exports.typeOf=typeOf})()}});var require_react_is2=__commonJS({"../../node_modules/downshift/node_modules/react-is/index.js"(exports,module){"use strict";module.exports=require_react_is_development2()}});var require_fuse=__commonJS({"../../node_modules/fuse.js/dist/fuse.js"(exports,module){(function(e3,t3){typeof exports=="object"&&typeof module=="object"?module.exports=t3():typeof define=="function"&&define.amd?define("Fuse",[],t3):typeof exports=="object"?exports.Fuse=t3():e3.Fuse=t3()})(exports,function(){return function(e3){var t3={};function r3(n3){if(t3[n3])return t3[n3].exports;var o2=t3[n3]={i:n3,l:!1,exports:{}};return e3[n3].call(o2.exports,o2,o2.exports,r3),o2.l=!0,o2.exports}return r3.m=e3,r3.c=t3,r3.d=function(e4,t4,n3){r3.o(e4,t4)||Object.defineProperty(e4,t4,{enumerable:!0,get:n3})},r3.r=function(e4){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e4,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e4,"__esModule",{value:!0})},r3.t=function(e4,t4){if(1&t4&&(e4=r3(e4)),8&t4||4&t4&&typeof e4=="object"&&e4&&e4.__esModule)return e4;var n3=Object.create(null);if(r3.r(n3),Object.defineProperty(n3,"default",{enumerable:!0,value:e4}),2&t4&&typeof e4!="string")for(var o2 in e4)r3.d(n3,o2,(function(t5){return e4[t5]}).bind(null,o2));return n3},r3.n=function(e4){var t4=e4&&e4.__esModule?function(){return e4.default}:function(){return e4};return r3.d(t4,"a",t4),t4},r3.o=function(e4,t4){return Object.prototype.hasOwnProperty.call(e4,t4)},r3.p="",r3(r3.s=0)}([function(e3,t3,r3){function n3(e4){return(n3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e5){return typeof e5}:function(e5){return e5&&typeof Symbol=="function"&&e5.constructor===Symbol&&e5!==Symbol.prototype?"symbol":typeof e5})(e4)}function o2(e4,t4){for(var r4=0;r41)throw new Error('"weight" property in key must bein the range of [0, 1)');i4=i4==null?u2:Math.max(i4,u2),o3=o3==null?u2:Math.min(o3,u2),this._keyWeights[l2]=u2,a4+=u2}if(a4>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(e5){var t5=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`--------- +Search pattern: "`.concat(e5,'"'));var r5=this._prepareSearchers(e5),n4=r5.tokenSearchers,o3=r5.fullSearcher,i4=this._search(n4,o3);return this._computeScore(i4),this.options.shouldSort&&this._sort(i4),t5.limit&&typeof t5.limit=="number"&&(i4=i4.slice(0,t5.limit)),this._format(i4)}},{key:"_prepareSearchers",value:function(){var e5=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t5=[];if(this.options.tokenize)for(var r5=e5.split(this.options.tokenSeparator),n4=0,o3=r5.length;n40&&arguments[0]!==void 0?arguments[0]:[],t5=arguments.length>1?arguments[1]:void 0,r5=this.list,n4={},o3=[];if(typeof r5[0]=="string"){for(var i4=0,a4=r5.length;i4-1&&(C2=(C2+h4)/2),r5._log("Score average:",C2);var j2=!r5.options.tokenize||!r5.options.matchAllTokens||l3>=u2.length;if(r5._log(` +Check Matches: `.concat(j2)),(s4||v3.isMatch)&&j2){var P2={key:n4,arrayIndex:t6,value:o4,score:C2};r5.options.includeMatches&&(P2.matchedIndices=v3.matchedIndices);var I2=p2[a5];I2?I2.output.push(P2):(p2[a5]={item:i5,output:[P2]},g2.push(p2[a5]))}}else if(c2(o4))for(var F2=0,T2=o4.length;F20?Number.EPSILON:l2.score;c3*=Math.pow(v2,f2)}i4.score=c3,this._log(i4)}}},{key:"_sort",value:function(e5){this._log(` + +Sorting....`),e5.sort(this.options.sortFn)}},{key:"_format",value:function(e5){var t5=[];if(this.options.verbose){var r5=[];this._log(` + +Output: + +`,JSON.stringify(e5,function(e6,t6){if(n3(t6)==="object"&&t6!==null){if(r5.indexOf(t6)!==-1)return;r5.push(t6)}return t6},2)),r5=null}var o3=[];this.options.includeMatches&&o3.push(function(e6,t6){var r6=e6.output;t6.matches=[];for(var n4=0,o4=r6.length;n4-1&&(a5.arrayIndex=i5.arrayIndex),t6.matches.push(a5)}}}),this.options.includeScore&&o3.push(function(e6,t6){t6.score=e6.score});for(var i4=0,a4=e5.length;i4c2)return o2(e5,this.pattern,h2);var l2=this.options,u2=l2.location,f2=l2.distance,v2=l2.threshold,p2=l2.findAllMatches,d2=l2.minMatchCharLength;return i3(e5,this.pattern,this.patternAlphabet,{location:u2,distance:f2,threshold:v2,findAllMatches:p2,minMatchCharLength:d2,includeMatches:n4})}}])&&n3(t4.prototype,r4),s3&&n3(t4,s3),e4}();e3.exports=s2},function(e3,t3){var r3=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e3.exports=function(e4,t4){var n3=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,o2=new RegExp(t4.replace(r3,"\\$&").replace(n3,"|")),i3=e4.match(o2),a2=!!i3,s2=[];if(a2)for(var c2=0,h2=i3.length;c2=T2;E2-=1){var W2=E2-1,K2=r4[e4.charAt(W2)];if(K2&&(M2[W2]=1),z2[E2]=(z2[E2+1]<<1|1)&K2,P2!==0&&(z2[E2]|=(A2[E2+1]|A2[E2])<<1|1|A2[E2+1]),z2[E2]&j2&&(O2=n3(t4,{errors:P2,currentLocation:W2,expectedLocation:m2,distance:h2}))<=b2){if(b2=O2,(S2=W2)<=m2)break;T2=Math.max(1,2*m2-S2)}}if(n3(t4,{errors:P2+1,currentLocation:m2,expectedLocation:m2,distance:h2})>b2)break;A2=z2}var $={isMatch:S2>=0,score:O2===0?.001:O2};return y2&&($.matchedIndices=o2(M2,d2)),$}},function(e3,t3){e3.exports=function(e4,t4){var r3=t4.errors,n3=r3===void 0?0:r3,o2=t4.currentLocation,i3=o2===void 0?0:o2,a2=t4.expectedLocation,s2=a2===void 0?0:a2,c2=t4.distance,h2=c2===void 0?100:c2,l2=n3/e4.length,u2=Math.abs(s2-i3);return h2?l2+u2/h2:u2?1:l2}},function(e3,t3){e3.exports=function(){for(var e4=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t4=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r3=[],n3=-1,o2=-1,i3=0,a2=e4.length;i3=t4&&r3.push([n3,o2]),n3=-1)}return e4[i3-1]&&i3-n3>=t4&&r3.push([n3,i3-1]),r3}},function(e3,t3){e3.exports=function(e4){for(var t4={},r3=e4.length,n3=0;n3"u"){debug&&console.warn("unable to use e.clipboardData"),debug&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var format3=clipboardToIE11Formatting[options2.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(format3,text)}else e3.clipboardData.clearData(),e3.clipboardData.setData(options2.format,text);options2.onCopy&&(e3.preventDefault(),options2.onCopy(e3.clipboardData))}),document.body.appendChild(mark),range.selectNodeContents(mark),selection.addRange(range);var successful=document.execCommand("copy");if(!successful)throw new Error("copy command was unsuccessful");success=!0}catch(err){debug&&console.error("unable to copy using execCommand: ",err),debug&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(options2.format||"text",text),options2.onCopy&&options2.onCopy(window.clipboardData),success=!0}catch(err2){debug&&console.error("unable to copy using clipboardData: ",err2),debug&&console.error("falling back to prompt"),message=format2("message"in options2?options2.message:defaultMessage),window.prompt(message,text)}}finally{selection&&(typeof selection.removeRange=="function"?selection.removeRange(range):selection.removeAllRanges()),mark&&document.body.removeChild(mark),reselectPrevious()}return success}module.exports=copy2}});var import_client=__toESM(require_client()),import_react62=__toESM(require_react());var import_react=__toESM(require_react()),import_prop_types=__toESM(require_prop_types()),import_react_fast_compare=__toESM(require_react_fast_compare()),import_invariant=__toESM(require_browser()),import_shallowequal=__toESM(require_shallowequal());function a(){return a=Object.assign||function(t3){for(var e3=1;e3=0||(i3[r3]=t3[r3]);return i3}var l={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},p={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},d={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.keys(l).map(function(t3){return l[t3]}),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},y=Object.keys(m).reduce(function(t3,e3){return t3[m[e3]]=e3,t3},{}),T=function(t3,e3){for(var r3=t3.length-1;r3>=0;r3-=1){var n3=t3[r3];if(Object.prototype.hasOwnProperty.call(n3,e3))return n3[e3]}return null},g=function(t3){var e3=T(t3,l.TITLE),r3=T(t3,"titleTemplate");if(Array.isArray(e3)&&(e3=e3.join("")),r3&&e3)return r3.replace(/%s/g,function(){return e3});var n3=T(t3,"defaultTitle");return e3||n3||void 0},b=function(t3){return T(t3,"onChangeClientState")||function(){}},v=function(t3,e3){return e3.filter(function(e4){return e4[t3]!==void 0}).map(function(e4){return e4[t3]}).reduce(function(t4,e4){return a({},t4,e4)},{})},A=function(t3,e3){return e3.filter(function(t4){return t4[l.BASE]!==void 0}).map(function(t4){return t4[l.BASE]}).reverse().reduce(function(e4,r3){if(!e4.length)for(var n3=Object.keys(r3),i3=0;i3/g,">").replace(/"/g,""").replace(/'/g,"'")},x=function(t3){return Object.keys(t3).reduce(function(e3,r3){var n3=t3[r3]!==void 0?r3+'="'+t3[r3]+'"':""+r3;return e3?e3+" "+n3:n3},"")},L=function(t3,e3){return e3===void 0&&(e3={}),Object.keys(t3).reduce(function(e4,r3){return e4[m[r3]||r3]=t3[r3],e4},e3)},j=function(e3,r3){return r3.map(function(r4,n3){var i3,o2=((i3={key:n3})["data-rh"]=!0,i3);return Object.keys(r4).forEach(function(t3){var e4=m[t3]||t3;e4==="innerHTML"||e4==="cssText"?o2.dangerouslySetInnerHTML={__html:r4.innerHTML||r4.cssText}:o2[e4]=r4[t3]}),import_react.default.createElement(e3,o2)})},M=function(e3,r3,n3){switch(e3){case l.TITLE:return{toComponent:function(){return n4=r3.titleAttributes,(i3={key:e4=r3.title})["data-rh"]=!0,o2=L(n4,i3),[import_react.default.createElement(l.TITLE,o2,e4)];var e4,n4,i3,o2},toString:function(){return function(t3,e4,r4,n4){var i3=x(r4),o2=S(e4);return i3?"<"+t3+' data-rh="true" '+i3+">"+w(o2,n4)+"":"<"+t3+' data-rh="true">'+w(o2,n4)+""}(e3,r3.title,r3.titleAttributes,n3)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return L(r3)},toString:function(){return x(r3)}};default:return{toComponent:function(){return j(e3,r3)},toString:function(){return function(t3,e4,r4){return e4.reduce(function(e5,n4){var i3=Object.keys(n4).filter(function(t4){return!(t4==="innerHTML"||t4==="cssText")}).reduce(function(t4,e6){var i4=n4[e6]===void 0?e6:e6+'="'+w(n4[e6],r4)+'"';return t4?t4+" "+i4:i4},""),o2=n4.innerHTML||n4.cssText||"",a2=P.indexOf(t3)===-1;return e5+"<"+t3+' data-rh="true" '+i3+(a2?"/>":">"+o2+"")},"")}(e3,r3,n3)}}}},k=function(t3){var e3=t3.baseTag,r3=t3.bodyAttributes,n3=t3.encode,i3=t3.htmlAttributes,o2=t3.noscriptTags,a2=t3.styleTags,s2=t3.title,c2=s2===void 0?"":s2,u2=t3.titleAttributes,h2=t3.linkTags,m2=t3.metaTags,y2=t3.scriptTags,T2={toComponent:function(){},toString:function(){return""}};if(t3.prioritizeSeoTags){var g2=function(t4){var e4=t4.linkTags,r4=t4.scriptTags,n4=t4.encode,i4=E(t4.metaTags,d),o3=E(e4,p),a3=E(r4,f);return{priorityMethods:{toComponent:function(){return[].concat(j(l.META,i4.priority),j(l.LINK,o3.priority),j(l.SCRIPT,a3.priority))},toString:function(){return M(l.META,i4.priority,n4)+" "+M(l.LINK,o3.priority,n4)+" "+M(l.SCRIPT,a3.priority,n4)}},metaTags:i4.default,linkTags:o3.default,scriptTags:a3.default}}(t3);T2=g2.priorityMethods,h2=g2.linkTags,m2=g2.metaTags,y2=g2.scriptTags}return{priority:T2,base:M(l.BASE,e3,n3),bodyAttributes:M("bodyAttributes",r3,n3),htmlAttributes:M("htmlAttributes",i3,n3),link:M(l.LINK,h2,n3),meta:M(l.META,m2,n3),noscript:M(l.NOSCRIPT,o2,n3),script:M(l.SCRIPT,y2,n3),style:M(l.STYLE,a2,n3),title:M(l.TITLE,{title:c2,titleAttributes:u2},n3)}},H=[],N=function(t3,e3){var r3=this;e3===void 0&&(e3=typeof document<"u"),this.instances=[],this.value={setHelmet:function(t4){r3.context.helmet=t4},helmetInstances:{get:function(){return r3.canUseDOM?H:r3.instances},add:function(t4){(r3.canUseDOM?H:r3.instances).push(t4)},remove:function(t4){var e4=(r3.canUseDOM?H:r3.instances).indexOf(t4);(r3.canUseDOM?H:r3.instances).splice(e4,1)}}},this.context=t3,this.canUseDOM=e3,e3||(t3.helmet=k({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},R=import_react.default.createContext({}),D=import_prop_types.default.shape({setHelmet:import_prop_types.default.func,helmetInstances:import_prop_types.default.shape({get:import_prop_types.default.func,add:import_prop_types.default.func,remove:import_prop_types.default.func})}),U=typeof document<"u",q=function(e3){function r3(t3){var n3;return(n3=e3.call(this,t3)||this).helmetData=new N(n3.props.context,r3.canUseDOM),n3}return s(r3,e3),r3.prototype.render=function(){return import_react.default.createElement(R.Provider,{value:this.helmetData.value},this.props.children)},r3}(import_react.Component);q.canUseDOM=U,q.propTypes={context:import_prop_types.default.shape({helmet:import_prop_types.default.shape()}),children:import_prop_types.default.node.isRequired},q.defaultProps={context:{}},q.displayName="HelmetProvider";var Y=function(t3,e3){var r3,n3=document.head||document.querySelector(l.HEAD),i3=n3.querySelectorAll(t3+"[data-rh]"),o2=[].slice.call(i3),a2=[];return e3&&e3.length&&e3.forEach(function(e4){var n4=document.createElement(t3);for(var i4 in e4)Object.prototype.hasOwnProperty.call(e4,i4)&&(i4==="innerHTML"?n4.innerHTML=e4.innerHTML:i4==="cssText"?n4.styleSheet?n4.styleSheet.cssText=e4.cssText:n4.appendChild(document.createTextNode(e4.cssText)):n4.setAttribute(i4,e4[i4]===void 0?"":e4[i4]));n4.setAttribute("data-rh","true"),o2.some(function(t4,e5){return r3=e5,n4.isEqualNode(t4)})?o2.splice(r3,1):a2.push(n4)}),o2.forEach(function(t4){return t4.parentNode.removeChild(t4)}),a2.forEach(function(t4){return n3.appendChild(t4)}),{oldTags:o2,newTags:a2}},B=function(t3,e3){var r3=document.getElementsByTagName(t3)[0];if(r3){for(var n3=r3.getAttribute("data-rh"),i3=n3?n3.split(","):[],o2=[].concat(i3),a2=Object.keys(e3),s2=0;s2=0;p2-=1)r3.removeAttribute(o2[p2]);i3.length===o2.length?r3.removeAttribute("data-rh"):r3.getAttribute("data-rh")!==a2.join(",")&&r3.setAttribute("data-rh",a2.join(","))}},K=function(t3,e3){var r3=t3.baseTag,n3=t3.htmlAttributes,i3=t3.linkTags,o2=t3.metaTags,a2=t3.noscriptTags,s2=t3.onChangeClientState,c2=t3.scriptTags,u2=t3.styleTags,p2=t3.title,f2=t3.titleAttributes;B(l.BODY,t3.bodyAttributes),B(l.HTML,n3),function(t4,e4){t4!==void 0&&document.title!==t4&&(document.title=S(t4)),B(l.TITLE,e4)}(p2,f2);var d2={baseTag:Y(l.BASE,r3),linkTags:Y(l.LINK,i3),metaTags:Y(l.META,o2),noscriptTags:Y(l.NOSCRIPT,a2),scriptTags:Y(l.SCRIPT,c2),styleTags:Y(l.STYLE,u2)},h2={},m2={};Object.keys(d2).forEach(function(t4){var e4=d2[t4],r4=e4.newTags,n4=e4.oldTags;r4.length&&(h2[t4]=r4),n4.length&&(m2[t4]=d2[t4].oldTags)}),e3&&e3(),s2(t3,h2,m2)},_=null,z=function(t3){function e3(){for(var e4,r4=arguments.length,n3=new Array(r4),i3=0;i3 elements are self-closing and can not contain children. Refer to our API for more information.")}},o2.flattenArrayTypeChildren=function(t3){var e4,r4=t3.child,n3=t3.arrayTypeChildren;return a({},n3,((e4={})[r4.type]=[].concat(n3[r4.type]||[],[a({},t3.newChildProps,this.mapNestedChildrenToProps(r4,t3.nestedChildren))]),e4))},o2.mapObjectTypeChildren=function(t3){var e4,r4,n3=t3.child,i3=t3.newProps,o3=t3.newChildProps,s2=t3.nestedChildren;switch(n3.type){case l.TITLE:return a({},i3,((e4={})[n3.type]=s2,e4.titleAttributes=a({},o3),e4));case l.BODY:return a({},i3,{bodyAttributes:a({},o3)});case l.HTML:return a({},i3,{htmlAttributes:a({},o3)});default:return a({},i3,((r4={})[n3.type]=a({},o3),r4))}},o2.mapArrayTypeChildrenToProps=function(t3,e4){var r4=a({},e4);return Object.keys(t3).forEach(function(e5){var n3;r4=a({},r4,((n3={})[e5]=t3[e5],n3))}),r4},o2.warnOnInvalidChildren=function(t3,e4){return(0,import_invariant.default)(h.some(function(e5){return t3.type===e5}),typeof t3.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+h.join(", ")+" are allowed. Helmet does not support rendering <"+t3.type+"> elements. Refer to our API for more information."),(0,import_invariant.default)(!e4||typeof e4=="string"||Array.isArray(e4)&&!e4.some(function(t4){return typeof t4!="string"}),"Helmet expects a string as a child of <"+t3.type+">. Did you forget to wrap your children in braces? ( <"+t3.type+">{``} ) Refer to our API for more information."),!0},o2.mapChildrenToProps=function(e4,r4){var n3=this,i3={};return import_react.default.Children.forEach(e4,function(t3){if(t3&&t3.props){var e5=t3.props,o3=e5.children,a2=u(e5,F),s2=Object.keys(a2).reduce(function(t4,e6){return t4[y[e6]||e6]=a2[e6],t4},{}),c2=t3.type;switch(typeof c2=="symbol"?c2=c2.toString():n3.warnOnInvalidChildren(t3,o3),c2){case l.FRAGMENT:r4=n3.mapChildrenToProps(o3,r4);break;case l.LINK:case l.META:case l.NOSCRIPT:case l.SCRIPT:case l.STYLE:i3=n3.flattenArrayTypeChildren({child:t3,arrayTypeChildren:i3,newChildProps:s2,nestedChildren:o3});break;default:r4=n3.mapObjectTypeChildren({child:t3,newProps:r4,newChildProps:s2,nestedChildren:o3})}}}),this.mapArrayTypeChildrenToProps(i3,r4)},o2.render=function(){var e4=this.props,r4=e4.children,n3=u(e4,G),i3=a({},n3),o3=n3.helmetData;return r4&&(i3=this.mapChildrenToProps(r4,i3)),!o3||o3 instanceof N||(o3=new N(o3.context,o3.instances)),o3?import_react.default.createElement(z,a({},i3,{context:o3.value,helmetData:void 0})):import_react.default.createElement(R.Consumer,null,function(e5){return import_react.default.createElement(z,a({},i3,{context:e5}))})},r3}(import_react.Component);W.propTypes={base:import_prop_types.default.object,bodyAttributes:import_prop_types.default.object,children:import_prop_types.default.oneOfType([import_prop_types.default.arrayOf(import_prop_types.default.node),import_prop_types.default.node]),defaultTitle:import_prop_types.default.string,defer:import_prop_types.default.bool,encodeSpecialCharacters:import_prop_types.default.bool,htmlAttributes:import_prop_types.default.object,link:import_prop_types.default.arrayOf(import_prop_types.default.object),meta:import_prop_types.default.arrayOf(import_prop_types.default.object),noscript:import_prop_types.default.arrayOf(import_prop_types.default.object),onChangeClientState:import_prop_types.default.func,script:import_prop_types.default.arrayOf(import_prop_types.default.object),style:import_prop_types.default.arrayOf(import_prop_types.default.object),title:import_prop_types.default.string,titleAttributes:import_prop_types.default.object,titleTemplate:import_prop_types.default.string,prioritizeSeoTags:import_prop_types.default.bool,helmetData:import_prop_types.default.object},W.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},W.displayName="Helmet";var import_react53=__toESM(require_react());var import_react26=__toESM(require_react());var import_react24=__toESM(require_react());var import_react6=__toESM(require_react());var import_react2=__toESM(require_react());var StorybookLogoStyled=newStyled(StorybookLogo)(({theme})=>({width:"auto",height:"22px !important",display:"block",color:theme.base==="light"?theme.color.defaultText:theme.color.lightest})),Img=newStyled.img({display:"block",maxWidth:"150px",maxHeight:"100px"}),LogoLink=newStyled.a(({theme})=>({display:"inline-block",height:"100%",margin:"-3px -4px",padding:"2px 3px",border:"1px solid transparent",borderRadius:3,color:"inherit",textDecoration:"none","&:focus":{outline:0,borderColor:theme.color.secondary}})),Brand=withTheme(({theme})=>{let{title="Storybook",url="./",image,target}=theme.brand,targetValue=target||(url==="./"?"":"_blank");if(image===null)return title===null?null:url?import_react2.default.createElement(LogoLink,{href:url,target:targetValue,dangerouslySetInnerHTML:{__html:title}}):import_react2.default.createElement("div",{dangerouslySetInnerHTML:{__html:title}});let logo=image?import_react2.default.createElement(Img,{src:image,alt:title}):import_react2.default.createElement(StorybookLogoStyled,{alt:title});return url?import_react2.default.createElement(LogoLink,{title,href:url,target:targetValue},logo):import_react2.default.createElement("div",null,logo)});var import_react5=__toESM(require_react());function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _setPrototypeOf(o2,p2){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o3,p3){return o3.__proto__=p3,o3},_setPrototypeOf(o2,p2)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o2){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o3){return o3.__proto__||Object.getPrototypeOf(o3)},_getPrototypeOf(o2)}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1}catch{return typeof fn=="function"}}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args2,Class2){var a2=[null];a2.push.apply(a2,args2);var Constructor=Function.bind.apply(Parent2,a2),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper3)}function Wrapper3(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper3.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper3,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper3,Class2)},_wrapNativeSuper(Class)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). + +`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). + +`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. + +`,4:`Couldn't generate valid rgb string from %s, it returned %s. + +`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. + +`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). + +`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). + +`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. + +`,9:`Please provide a number of steps to the modularScale helper. + +`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" + +`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. + +`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. + +`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. + +`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. + +`,16:`You must provide a template to this method. + +`,17:`You passed an unsupported selector state to this method. + +`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,19:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. + +`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,25:`fontFace expects localFonts to be an array. + +`,26:`fontFace expects fileFormats to be an array. + +`,27:`radialGradient requries at least 2 color-stops to properly render. + +`,28:`Please supply a filename to retinaImage() as the first argument. + +`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation + +`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) +To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') + +`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation + +`,34:`borderRadius expects a radius value as a string or number as the second argument. + +`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,36:`Property must be a string value. + +`,37:`Syntax Error at %s. + +`,38:`Formula contains a function that needs parentheses at %s. + +`,39:`Formula is missing closing parenthesis at %s. + +`,40:`Formula has too many closing parentheses at %s. + +`,41:`All values in a formula must have the same unit or be unitless. + +`,42:`Please provide a number of steps to the modularScale helper. + +`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. + +`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. + +`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. + +`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,48:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. + +`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. + +`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,53:`fontFace expects localFonts to be an array. + +`,54:`fontFace expects fileFormats to be an array. + +`,55:`fontFace expects a name of a font-family. + +`,56:`linearGradient requries at least 2 color-stops to properly render. + +`,57:`radialGradient requries at least 2 color-stops to properly render. + +`,58:`Please supply a filename to retinaImage() as the first argument. + +`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. + +`,62:`borderRadius expects a radius value as a string or number as the second argument. + +`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. + +`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). + +`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. + +`,67:`You must provide a template to this method. + +`,68:`You passed an unsupported selector state to this method. + +`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. + +`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. + +`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. + +`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. + +`,73:`Please provide a valid CSS variable. + +`,74:`CSS variable not found and no default was provided. + +`,75:`important requires a valid style object, got a %s instead. + +`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. + +`,77:`remToPx expects a value in "rem" but you provided it in "%s". + +`,78:`base must be set in "px" or "%" but you set it in "%s". +`};function format(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var a2=args[0],b2=[],c2;for(c2=1;c21?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return _this=_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args)))||this,_assertThisInitialized(_this)}return PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color){return Math.round(color*255)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert){if(convert===void 0&&(convert=convertToInt),saturation===0)return convert(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert(finalRed,finalGreen,finalBlue)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color){if(typeof color!="string")return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if(typeof color!="string")throw new PolishedError(3);var normalizedColor=nameToHex(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(""+hslMatched[1],10),saturation=parseInt(""+hslMatched[2],10)/100,lightness=parseInt(""+hslMatched[3],10)/100,rgbColorString="rgb("+hslToRgb(hue,saturation,lightness)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(""+hslaMatched[1],10),_saturation=parseInt(""+hslaMatched[2],10)/100,_lightness=parseInt(""+hslaMatched[3],10)/100,_rgbColorString="rgb("+hslToRgb(_hue,_saturation,_lightness)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}var reduceHexValue=function(value){return value.length===7&&value[1]===value[2]&&value[3]===value[4]&&value[5]===value[6]?"#"+value[1]+value[3]+value[5]:value},reduceHexValue$1=reduceHexValue;function numberToHex(value){var hex=value.toString(16);return hex.length===1?"0"+hex:hex}function rgb(value,green,blue){if(typeof value=="number"&&typeof green=="number"&&typeof blue=="number")return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if(typeof value=="object"&&green===void 0&&blue===void 0)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue=="string"&&typeof secondValue=="number"){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}else{if(typeof firstValue=="number"&&typeof secondValue=="number"&&typeof thirdValue=="number"&&typeof fourthValue=="number")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if(typeof firstValue=="object"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")"}throw new PolishedError(7)}function curried(f2,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f2.apply(this,combined):curried(f2,length,combined)}}function curry(f2){return curried(f2,f2.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function transparentize(amount,color){if(color==="transparent")return color;var parsedColor=parseToRgb(color),alpha=typeof parsedColor.alpha=="number"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize;var import_react4=__toESM(require_react());var import_react3=__toESM(require_react());function useMediaQuery(query){let getMatches=queryMatch=>typeof window<"u"?window.matchMedia(queryMatch).matches:!1,[matches,setMatches]=(0,import_react3.useState)(getMatches(query));function handleChange(){setMatches(getMatches(query))}return(0,import_react3.useEffect)(()=>{let matchMedia=window.matchMedia(query);return handleChange(),matchMedia.addEventListener("change",handleChange),()=>{matchMedia.removeEventListener("change",handleChange)}},[query]),matches}var MEDIA_DESKTOP_BREAKPOINT="@media (min-width: 600px)";var LayoutContext=(0,import_react4.createContext)({isMobileMenuOpen:!1,setMobileMenuOpen:()=>{},isMobileAboutOpen:!1,setMobileAboutOpen:()=>{},isMobilePanelOpen:!1,setMobilePanelOpen:()=>{},isDesktop:!1,isMobile:!1}),LayoutProvider=({children})=>{let[isMobileMenuOpen,setMobileMenuOpen]=(0,import_react4.useState)(!1),[isMobileAboutOpen,setMobileAboutOpen]=(0,import_react4.useState)(!1),[isMobilePanelOpen,setMobilePanelOpen]=(0,import_react4.useState)(!1),isDesktop=useMediaQuery(`(min-width: ${600}px)`),isMobile=!isDesktop,contextValue=(0,import_react4.useMemo)(()=>({isMobileMenuOpen,setMobileMenuOpen,isMobileAboutOpen,setMobileAboutOpen,isMobilePanelOpen,setMobilePanelOpen,isDesktop,isMobile}),[isMobileMenuOpen,setMobileMenuOpen,isMobileAboutOpen,setMobileAboutOpen,isMobilePanelOpen,setMobilePanelOpen,isDesktop,isMobile]);return import_react4.default.createElement(LayoutContext.Provider,{value:contextValue},children)},useLayout=()=>(0,import_react4.useContext)(LayoutContext);var SidebarIconButton=newStyled(IconButton)(({highlighted,theme})=>({position:"relative",overflow:"visible",marginTop:0,zIndex:1,...highlighted&&{"&:before, &:after":{content:'""',position:"absolute",top:6,right:6,width:5,height:5,zIndex:2,borderRadius:"50%",background:theme.background.app,border:`1px solid ${theme.background.app}`,boxShadow:`0 0 0 2px ${theme.background.app}`},"&:after":{background:theme.color.positive,border:"1px solid rgba(0, 0, 0, 0.1)",boxShadow:`0 0 0 2px ${theme.background.app}`},"&:hover:after, &:focus-visible:after":{boxShadow:`0 0 0 2px ${curriedTransparentize$1(.88,theme.color.secondary)}`}}})),MenuButtonGroup=newStyled.div({display:"flex",gap:4}),SidebarMenuList=({menu,onHide})=>{let links=(0,import_react5.useMemo)(()=>menu.map(({onClick,...rest})=>({...rest,onClick:(event,item)=>{onClick&&onClick(event,item),onHide()}})),[menu,onHide]);return import_react5.default.createElement(TooltipLinkList,{links})},SidebarMenu=({menu,isHighlighted,onClick})=>{let[isTooltipVisible,setIsTooltipVisible]=(0,import_react5.useState)(!1),{isMobile,setMobileMenuOpen}=useLayout();return isMobile?import_react5.default.createElement(MenuButtonGroup,null,import_react5.default.createElement(SidebarIconButton,{title:"About Storybook","aria-label":"About Storybook",highlighted:isHighlighted,active:!1,onClick},import_react5.default.createElement(CogIcon,null)),import_react5.default.createElement(IconButton,{title:"Close menu","aria-label":"Close menu",onClick:()=>setMobileMenuOpen(!1)},import_react5.default.createElement(CloseIcon,null))):import_react5.default.createElement(WithTooltip,{placement:"top",closeOnOutsideClick:!0,tooltip:({onHide})=>import_react5.default.createElement(SidebarMenuList,{onHide,menu}),onVisibleChange:setIsTooltipVisible},import_react5.default.createElement(SidebarIconButton,{title:"Shortcuts","aria-label":"Shortcuts",highlighted:isHighlighted,active:isTooltipVisible},import_react5.default.createElement(CogIcon,null)))};var BrandArea=newStyled.div(({theme})=>({fontSize:theme.typography.size.s2,fontWeight:theme.typography.weight.bold,color:theme.color.defaultText,marginRight:20,display:"flex",width:"100%",alignItems:"center",minHeight:22,"& > * > *":{maxWidth:"100%"},"& > *":{maxWidth:"100%",height:"auto",display:"block",flex:"1 1 auto"}})),HeadingWrapper=newStyled.div({display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",minHeight:42,paddingLeft:8}),SkipToCanvasLink=newStyled(Button)(({theme})=>({display:"none","@media (min-width: 600px)":{display:"block",position:"absolute",fontSize:theme.typography.size.s1,zIndex:3,border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",opacity:0,transition:"opacity 150ms ease-out","&:focus":{width:"100%",height:"inherit",padding:"10px 15px",margin:0,clip:"unset",overflow:"unset",opacity:1}}})),Heading=({menuHighlighted=!1,menu,skipLinkHref,extra,isLoading,onMenuClick,...props})=>import_react6.default.createElement(HeadingWrapper,{...props},skipLinkHref&&import_react6.default.createElement(SkipToCanvasLink,{asChild:!0},import_react6.default.createElement("a",{href:skipLinkHref,tabIndex:0},"Skip to canvas")),import_react6.default.createElement(BrandArea,null,import_react6.default.createElement(Brand,null)),isLoading?null:extra.map(({id,render:Render})=>import_react6.default.createElement(Render,{key:id})),import_react6.default.createElement(SidebarMenu,{menu,isHighlighted:menuHighlighted,onClick:onMenuClick}));var import_react19=__toESM(require_react());var import_react16=__toESM(require_react());var import_react8=__toESM(require_react());var import_react7=__toESM(require_react());var LOADER_SEQUENCE=[0,0,1,1,2,3,3,3,1,1,1,2,2,2,3],Loadingitem=newStyled.div({cursor:"progress",fontSize:13,height:"16px",marginTop:4,marginBottom:4,alignItems:"center",overflow:"hidden"},({depth=0})=>({marginLeft:depth*15,maxWidth:85-depth*5}),({theme})=>theme.animation.inlineGlow,({theme})=>({background:theme.appBorderColor})),Contained=newStyled.div({display:"flex",flexDirection:"column",paddingLeft:20,paddingRight:20}),Loader2=({size})=>{let repeats=Math.ceil(size/LOADER_SEQUENCE.length),sequence=Array.from(Array(repeats)).fill(LOADER_SEQUENCE).flat().slice(0,size);return import_react7.default.createElement(import_react7.Fragment,null,sequence.map((depth,index)=>import_react7.default.createElement(Loadingitem,{depth,key:index})))};var{window:globalWindow}=scope,TextStyle=newStyled.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",margin:0})),Text=newStyled.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",margin:0,code:{fontSize:theme.typography.size.s1},ul:{paddingLeft:20,marginTop:8,marginBottom:8}})),ErrorDisplay=newStyled.pre({width:420,boxSizing:"border-box",borderRadius:8,overflow:"auto",whiteSpace:"pre"},({theme})=>({color:theme.color.dark})),AuthBlock=({loginUrl,id})=>{let[isAuthAttempted,setAuthAttempted]=(0,import_react8.useState)(!1),refresh=(0,import_react8.useCallback)(()=>{globalWindow.document.location.reload()},[]),open=(0,import_react8.useCallback)(e3=>{e3.preventDefault();let childWindow=globalWindow.open(loginUrl,`storybook_auth_${id}`,"resizable,scrollbars"),timer=setInterval(()=>{childWindow?childWindow.closed&&(clearInterval(timer),setAuthAttempted(!0)):(logger.error("unable to access loginUrl window"),clearInterval(timer))},1e3)},[]);return import_react8.default.createElement(Contained,null,import_react8.default.createElement(Spaced,null,isAuthAttempted?import_react8.default.createElement(import_react8.Fragment,null,import_react8.default.createElement(Text,null,"Authentication on ",import_react8.default.createElement("strong",null,loginUrl)," concluded. Refresh the page to fetch this Storybook."),import_react8.default.createElement("div",null,import_react8.default.createElement(Button,{small:!0,gray:!0,onClick:refresh},import_react8.default.createElement(SyncIcon,null),"Refresh now"))):import_react8.default.createElement(import_react8.Fragment,null,import_react8.default.createElement(Text,null,"Sign in to browse this Storybook."),import_react8.default.createElement("div",null,import_react8.default.createElement(Button,{small:!0,gray:!0,onClick:open},import_react8.default.createElement(LockIcon,null),"Sign in")))))},ErrorBlock=({error})=>import_react8.default.createElement(Contained,null,import_react8.default.createElement(Spaced,null,import_react8.default.createElement(TextStyle,null,"Oh no! Something went wrong loading this Storybook.",import_react8.default.createElement("br",null),import_react8.default.createElement(WithTooltip,{tooltip:import_react8.default.createElement(ErrorDisplay,null,import_react8.default.createElement(ErrorFormatter,{error}))},import_react8.default.createElement(Link22,{isButton:!0},"View error ",import_react8.default.createElement(ChevronDownIcon,null)))," ",import_react8.default.createElement(Link22,{withArrow:!0,href:"https://storybook.js.org/docs",cancel:!1,target:"_blank"},"View docs")))),FlexSpaced=newStyled(Spaced)({display:"flex"}),WideSpaced=newStyled(Spaced)({flex:1}),EmptyBlock=({isMain})=>import_react8.default.createElement(Contained,null,import_react8.default.createElement(FlexSpaced,{col:1},import_react8.default.createElement(WideSpaced,null,import_react8.default.createElement(Text,null,isMain?import_react8.default.createElement(import_react8.default.Fragment,null,"Oh no! Your Storybook is empty. Possible reasons why:",import_react8.default.createElement("ul",null,import_react8.default.createElement("li",null,"The glob specified in ",import_react8.default.createElement("code",null,"main.js")," isn't correct."),import_react8.default.createElement("li",null,"No stories are defined in your story files."),import_react8.default.createElement("li",null,"You're using filter-functions, and all stories are filtered away."))," "):import_react8.default.createElement(import_react8.default.Fragment,null,"This composed storybook is empty, maybe you're using filter-functions, and all stories are filtered away."))))),LoaderBlock=({isMain})=>import_react8.default.createElement(Contained,null,import_react8.default.createElement(Loader2,{size:isMain?17:5}));var import_react9=__toESM(require_react());var{document:document2,window:globalWindow2}=scope,IndicatorPlacement=newStyled.aside(({theme})=>({height:16,display:"flex",alignItems:"center","& > * + *":{marginLeft:theme.layoutMargin}})),IndicatorClickTarget=newStyled.button(({theme})=>({height:20,width:20,padding:0,margin:0,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",outline:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",color:theme.base==="light"?curriedTransparentize$1(.3,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"&:hover":{color:theme.barSelectedColor},"&:focus":{color:theme.barSelectedColor,borderColor:theme.color.secondary},svg:{height:10,width:10,transition:"all 150ms ease-out",color:"inherit"}})),MessageTitle=newStyled.span(({theme})=>({fontWeight:theme.typography.weight.bold})),Message=newStyled.a(({theme})=>({textDecoration:"none",lineHeight:"16px",padding:15,display:"flex",flexDirection:"row",alignItems:"flex-start",color:theme.color.defaultText,"&:not(:last-child)":{borderBottom:`1px solid ${theme.appBorderColor}`},"&:hover":{background:theme.background.hoverable,color:theme.color.darker},"&:link":{color:theme.color.darker},"&:active":{color:theme.color.darker},"&:focus":{color:theme.color.darker},"& > *":{flex:1},"& > svg":{marginTop:3,width:16,height:16,marginRight:10,flex:"unset"}})),MessageWrapper=newStyled.div({width:280,boxSizing:"border-box",borderRadius:8,overflow:"hidden"}),Version=newStyled.div(({theme})=>({display:"flex",alignItems:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.regular,color:theme.base==="light"?curriedTransparentize$1(.3,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"& > * + *":{marginLeft:4},svg:{height:10,width:10}})),CurrentVersion=({url,versions})=>{let currentVersionId=(0,import_react9.useMemo)(()=>{let c2=Object.entries(versions).find(([k2,v2])=>v2===url);return c2&&c2[0]?c2[0]:"current"},[url,versions]);return import_react9.default.createElement(Version,null,import_react9.default.createElement("span",null,currentVersionId),import_react9.default.createElement(ChevronDownIcon,null))},RefIndicator=import_react9.default.memo((0,import_react9.forwardRef)(({state,...ref},forwardedRef)=>{let api=useStorybookApi(),list=(0,import_react9.useMemo)(()=>Object.values(ref.index||{}),[ref.index]),componentCount=(0,import_react9.useMemo)(()=>list.filter(v2=>v2.type==="component").length,[list]),leafCount=(0,import_react9.useMemo)(()=>list.filter(v2=>v2.type==="docs"||v2.type==="story").length,[list]);return import_react9.default.createElement(IndicatorPlacement,{ref:forwardedRef},import_react9.default.createElement(WithTooltip,{placement:"bottom-start",trigger:"click",closeOnOutsideClick:!0,tooltip:import_react9.default.createElement(MessageWrapper,null,import_react9.default.createElement(Spaced,{row:0},state==="loading"&&import_react9.default.createElement(LoadingMessage,{url:ref.url}),(state==="error"||state==="empty")&&import_react9.default.createElement(ErrorOccurredMessage,{url:ref.url}),state==="ready"&&import_react9.default.createElement(ReadyMessage,{url:ref.url,componentCount,leafCount}),state==="auth"&&import_react9.default.createElement(LoginRequiredMessage,{...ref}),ref.type==="auto-inject"&&state!=="error"&&import_react9.default.createElement(PerformanceDegradedMessage,null),state!=="loading"&&import_react9.default.createElement(ReadDocsMessage,null)))},import_react9.default.createElement(IndicatorClickTarget,{"data-action":"toggle-indicator","aria-label":"toggle indicator"},import_react9.default.createElement(GlobeIcon,null))),ref.versions&&Object.keys(ref.versions).length?import_react9.default.createElement(WithTooltip,{placement:"bottom-start",trigger:"click",closeOnOutsideClick:!0,tooltip:tooltip=>import_react9.default.createElement(TooltipLinkList,{links:Object.entries(ref.versions).map(([id,href])=>({icon:href===ref.url?"check":void 0,id,title:id,href,onClick:(event,item)=>{event.preventDefault(),api.changeRefVersion(ref.id,item.href),tooltip.onHide()}}))})},import_react9.default.createElement(CurrentVersion,{url:ref.url,versions:ref.versions})):null)})),ReadyMessage=({url,componentCount,leafCount})=>{let theme=useTheme();return import_react9.default.createElement(Message,{href:url.replace(/\/?$/,"/index.html"),target:"_blank"},import_react9.default.createElement(GlobeIcon,{color:theme.color.secondary}),import_react9.default.createElement("div",null,import_react9.default.createElement(MessageTitle,null,"View external Storybook"),import_react9.default.createElement("div",null,"Explore ",componentCount," components and ",leafCount," stories in a new browser tab.")))},LoginRequiredMessage=({loginUrl,id})=>{let theme=useTheme(),open=(0,import_react9.useCallback)(e3=>{e3.preventDefault();let childWindow=globalWindow2.open(loginUrl,`storybook_auth_${id}`,"resizable,scrollbars"),timer=setInterval(()=>{childWindow?childWindow.closed&&(clearInterval(timer),document2.location.reload()):clearInterval(timer)},1e3)},[]);return import_react9.default.createElement(Message,{onClick:open},import_react9.default.createElement(LockIcon,{color:theme.color.gold}),import_react9.default.createElement("div",null,import_react9.default.createElement(MessageTitle,null,"Log in required"),import_react9.default.createElement("div",null,"You need to authenticate to view this Storybook's components.")))},ReadDocsMessage=()=>{let theme=useTheme();return import_react9.default.createElement(Message,{href:"https://storybook.js.org/docs/react/sharing/storybook-composition",target:"_blank"},import_react9.default.createElement(DocumentIcon,{color:theme.color.green}),import_react9.default.createElement("div",null,import_react9.default.createElement(MessageTitle,null,"Read Composition docs"),import_react9.default.createElement("div",null,"Learn how to combine multiple Storybooks into one.")))},ErrorOccurredMessage=({url})=>{let theme=useTheme();return import_react9.default.createElement(Message,{href:url.replace(/\/?$/,"/index.html"),target:"_blank"},import_react9.default.createElement(AlertIcon,{color:theme.color.negative}),import_react9.default.createElement("div",null,import_react9.default.createElement(MessageTitle,null,"Something went wrong"),import_react9.default.createElement("div",null,"This external Storybook didn't load. Debug it in a new tab now.")))},LoadingMessage=({url})=>{let theme=useTheme();return import_react9.default.createElement(Message,{href:url.replace(/\/?$/,"/index.html"),target:"_blank"},import_react9.default.createElement(TimeIcon,{color:theme.color.secondary}),import_react9.default.createElement("div",null,import_react9.default.createElement(MessageTitle,null,"Please wait"),import_react9.default.createElement("div",null,"This Storybook is loading.")))},PerformanceDegradedMessage=()=>{let theme=useTheme();return import_react9.default.createElement(Message,{href:"https://storybook.js.org/docs/react/sharing/storybook-composition#improve-your-storybook-composition",target:"_blank"},import_react9.default.createElement(LightningIcon,{color:theme.color.gold}),import_react9.default.createElement("div",null,import_react9.default.createElement(MessageTitle,null,"Reduce lag"),import_react9.default.createElement("div",null,"Learn how to speed up Composition performance.")))};var import_react15=__toESM(require_react());var import_react12=__toESM(require_react());var import_react10=__toESM(require_react()),Svg=newStyled.svg` + position: absolute; + width: 0; + height: 0; + display: inline-block; + shape-rendering: inherit; + vertical-align: middle; +`,GROUP_ID="icon--group",COMPONENT_ID="icon--component",DOCUMENT_ID="icon--document",STORY_ID="icon--story",IconSymbols=()=>import_react10.default.createElement(Svg,{"data-chromatic":"ignore"},import_react10.default.createElement("symbol",{id:GROUP_ID},import_react10.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z",fill:"currentColor"})),import_react10.default.createElement("symbol",{id:COMPONENT_ID},import_react10.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1.004a2.5 2.5 0 00-2.5 2.5v7a2.5 2.5 0 002.5 2.5h7a2.5 2.5 0 002.5-2.5v-7a2.5 2.5 0 00-2.5-2.5h-7zm8.5 5.5H7.5v-4.5h3a1.5 1.5 0 011.5 1.5v3zm0 1v3a1.5 1.5 0 01-1.5 1.5h-3v-4.5H12zm-5.5 4.5v-4.5H2v3a1.5 1.5 0 001.5 1.5h3zM2 6.504h4.5v-4.5h-3a1.5 1.5 0 00-1.5 1.5v3z",fill:"currentColor"})),import_react10.default.createElement("symbol",{id:DOCUMENT_ID},import_react10.default.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:"currentColor"}),import_react10.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:"currentColor"})),import_react10.default.createElement("symbol",{id:STORY_ID},import_react10.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5zM4 12.413l2.664-2.284a.454.454 0 01.377-.128.498.498 0 01.284.12L10 12.412V1H4v11.413z",fill:"currentColor"}))),UseSymbol=({type})=>type==="group"?import_react10.default.createElement("use",{xlinkHref:`#${GROUP_ID}`}):type==="component"?import_react10.default.createElement("use",{xlinkHref:`#${COMPONENT_ID}`}):type==="document"?import_react10.default.createElement("use",{xlinkHref:`#${DOCUMENT_ID}`}):type==="story"?import_react10.default.createElement("use",{xlinkHref:`#${STORY_ID}`}):null;var import_react11=__toESM(require_react());var CollapseIconWrapper=newStyled.div(({theme,isExpanded})=>({width:8,height:8,display:"flex",justifyContent:"center",alignItems:"center",color:curriedTransparentize$1(.4,theme.textMutedColor),transform:isExpanded?"rotateZ(90deg)":"none",transition:"transform .1s ease-out"})),CollapseIcon2=({isExpanded})=>import_react11.default.createElement(CollapseIconWrapper,{isExpanded},import_react11.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",fill:"none"},import_react11.default.createElement("path",{fill:"#73828C",fillRule:"evenodd",d:"M1.896 7.146a.5.5 0 1 0 .708.708l3.5-3.5a.5.5 0 0 0 0-.708l-3.5-3.5a.5.5 0 1 0-.708.708L5.043 4 1.896 7.146Z",clipRule:"evenodd"})));var TypeIcon=newStyled.svg(({theme,type})=>({width:14,height:14,flex:"0 0 auto",color:type==="group"?theme.base==="dark"?theme.color.primary:theme.color.ultraviolet:type==="component"?theme.color.secondary:type==="document"?theme.base==="dark"?theme.color.gold:"#ff8300":type==="story"?theme.color.seafoam:"currentColor"})),BranchNode=newStyled.button(({theme,depth=0,isExpandable=!1})=>({width:"100%",border:"none",cursor:"pointer",display:"flex",alignItems:"start",textAlign:"left",paddingLeft:`${(isExpandable?8:22)+depth*18}px`,color:"inherit",fontSize:`${theme.typography.size.s2}px`,background:"transparent",minHeight:28,borderRadius:4,gap:6,paddingTop:5,paddingBottom:4,"&:hover, &:focus":{background:curriedTransparentize$1(.93,theme.color.secondary),outline:"none"}})),LeafNode=newStyled.a(({theme,depth=0})=>({cursor:"pointer",color:"inherit",display:"flex",gap:6,flex:1,alignItems:"start",paddingLeft:`${22+depth*18}px`,paddingTop:5,paddingBottom:4,fontSize:`${theme.typography.size.s2}px`,textDecoration:"none",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word"})),RootNode=newStyled.div(({theme})=>({display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:16,marginBottom:4,fontSize:`${theme.typography.size.s1-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:"16px",minHeight:28,letterSpacing:"0.16em",textTransform:"uppercase",color:theme.textMutedColor})),Wrapper=newStyled.div({display:"flex",alignItems:"center",gap:6,marginTop:2}),GroupNode=import_react12.default.memo(function({children,isExpanded=!1,isExpandable=!1,...props}){return import_react12.default.createElement(BranchNode,{isExpandable,tabIndex:-1,...props},import_react12.default.createElement(Wrapper,null,isExpandable&&import_react12.default.createElement(CollapseIcon2,{isExpanded}),import_react12.default.createElement(TypeIcon,{viewBox:"0 0 14 14",width:"14",height:"14",type:"group"},import_react12.default.createElement(UseSymbol,{type:"group"}))),children)}),ComponentNode=import_react12.default.memo(function({theme,children,isExpanded,isExpandable,isSelected,...props}){return import_react12.default.createElement(BranchNode,{isExpandable,tabIndex:-1,...props},import_react12.default.createElement(Wrapper,null,isExpandable&&import_react12.default.createElement(CollapseIcon2,{isExpanded}),import_react12.default.createElement(TypeIcon,{viewBox:"0 0 14 14",width:"12",height:"12",type:"component"},import_react12.default.createElement(UseSymbol,{type:"component"}))),children)}),DocumentNode=import_react12.default.memo(function({theme,children,docsMode,...props}){return import_react12.default.createElement(LeafNode,{tabIndex:-1,...props},import_react12.default.createElement(Wrapper,null,import_react12.default.createElement(TypeIcon,{viewBox:"0 0 14 14",width:"12",height:"12",type:"document"},import_react12.default.createElement(UseSymbol,{type:"document"}))),children)}),StoryNode=import_react12.default.memo(function({theme,children,...props}){return import_react12.default.createElement(LeafNode,{tabIndex:-1,...props},import_react12.default.createElement(Wrapper,null,import_react12.default.createElement(TypeIcon,{viewBox:"0 0 14 14",width:"12",height:"12",type:"story"},import_react12.default.createElement(UseSymbol,{type:"story"}))),children)});var import_throttle=__toESM(require_throttle()),import_react13=__toESM(require_react());var codeToKeyMap={Space:" ",Slash:"/",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Escape:"Escape",Enter:"Enter"},allFalse={alt:!1,ctrl:!1,meta:!1,shift:!1},matchesModifiers=(modifiers,event)=>{let{alt,ctrl,meta,shift}=modifiers===!1?allFalse:modifiers;return!(typeof alt=="boolean"&&alt!==event.altKey||typeof ctrl=="boolean"&&ctrl!==event.ctrlKey||typeof meta=="boolean"&&meta!==event.metaKey||typeof shift=="boolean"&&shift!==event.shiftKey)},matchesKeyCode=(code,event)=>event.code?event.code===code:event.key===codeToKeyMap[code];var import_memoizerific=__toESM(require_memoizerific());var{document:document3,window:globalWindow3}=scope,createId=(itemId,refId)=>!refId||refId===DEFAULT_REF_ID?itemId:`${refId}_${itemId}`,getLink=(item,refId)=>`${document3.location.pathname}?path=/${item.type}/${createId(item.id,refId)}`;var get=(0,import_memoizerific.default)(1e3)((id,dataset)=>dataset[id]),getParent=(0,import_memoizerific.default)(1e3)((id,dataset)=>{let item=get(id,dataset);return item&&item.type!=="root"?get(item.parent,dataset):void 0}),getParents=(0,import_memoizerific.default)(1e3)((id,dataset)=>{let parent=getParent(id,dataset);return parent?[parent,...getParents(parent.id,dataset)]:[]}),getAncestorIds=(0,import_memoizerific.default)(1e3)((data,id)=>getParents(id,data).map(item=>item.id)),getDescendantIds=(0,import_memoizerific.default)(1e3)((data,id,skipLeafs)=>{let entry=data[id];return(entry.type==="story"||entry.type==="docs"?[]:entry.children).reduce((acc,childId)=>{let child=data[childId];return!child||skipLeafs&&(child.type==="story"||child.type==="docs")||acc.push(childId,...getDescendantIds(data,childId,skipLeafs)),acc},[])});function getPath(item,ref){let parent=item.type!=="root"&&item.parent?ref.index[item.parent]:null;return parent?[...getPath(parent,ref),parent.name]:ref.id===DEFAULT_REF_ID?[]:[ref.title||ref.id]}var searchItem=(item,ref)=>({...item,refId:ref.id,path:getPath(item,ref)});function cycle(array,index,delta){let next=index+delta%array.length;return next<0&&(next=array.length+next),next>=array.length&&(next-=array.length),next}var scrollIntoView=(element,center=!1)=>{if(!element)return;let{top,bottom}=element.getBoundingClientRect();top>=0&&bottom<=(globalWindow3.innerHeight||document3.documentElement.clientHeight)||element.scrollIntoView({block:center?"center":"nearest"})},getStateType=(isLoading,isAuthRequired,isError,isEmpty)=>{switch(!0){case isAuthRequired:return"auth";case isError:return"error";case isLoading:return"loading";case isEmpty:return"empty";default:return"ready"}},isAncestor=(element,maybeAncestor)=>!element||!maybeAncestor?!1:element===maybeAncestor?!0:isAncestor(element.parentElement,maybeAncestor),removeNoiseFromName=storyName=>storyName.replaceAll(/(\s|-|_)/gi,""),isStoryHoistable=(storyName,componentName)=>removeNoiseFromName(storyName)===removeNoiseFromName(componentName);var{document:document4}=scope,initializeExpanded=({refId,data,initialExpanded,highlightedRef,rootIds})=>{let highlightedAncestors=highlightedRef.current?.refId===refId?getAncestorIds(data,highlightedRef.current?.itemId):[];return[...rootIds,...highlightedAncestors].reduce((acc,id)=>Object.assign(acc,{[id]:id in initialExpanded?initialExpanded[id]:!0}),{})},noop=()=>{},useExpanded=({containerRef,isBrowsing,refId,data,initialExpanded,rootIds,highlightedRef,setHighlightedItemId,selectedStoryId,onSelectStoryId})=>{let api=useStorybookApi(),[expanded,setExpanded]=(0,import_react13.useReducer)((state,{ids,value})=>ids.reduce((acc,id)=>Object.assign(acc,{[id]:value}),{...state}),{refId,data,highlightedRef,rootIds,initialExpanded},initializeExpanded),getElementByDataItemId=(0,import_react13.useCallback)(id=>containerRef.current?.querySelector(`[data-item-id="${id}"]`),[containerRef]),highlightElement=(0,import_react13.useCallback)(element=>{setHighlightedItemId(element.getAttribute("data-item-id")),scrollIntoView(element)},[setHighlightedItemId]),updateExpanded=(0,import_react13.useCallback)(({ids,value})=>{if(setExpanded({ids,value}),ids.length===1){let element=containerRef.current?.querySelector(`[data-item-id="${ids[0]}"][data-ref-id="${refId}"]`);element&&highlightElement(element)}},[containerRef,highlightElement,refId]);(0,import_react13.useEffect)(()=>{setExpanded({ids:getAncestorIds(data,selectedStoryId),value:!0})},[data,selectedStoryId]);let collapseAll=(0,import_react13.useCallback)(()=>{let ids=Object.keys(data).filter(id=>!rootIds.includes(id));setExpanded({ids,value:!1})},[data,rootIds]),expandAll=(0,import_react13.useCallback)(()=>{setExpanded({ids:Object.keys(data),value:!0})},[data]);return(0,import_react13.useEffect)(()=>api?(api.on(STORIES_COLLAPSE_ALL,collapseAll),api.on(STORIES_EXPAND_ALL,expandAll),()=>{api.off(STORIES_COLLAPSE_ALL,collapseAll),api.off(STORIES_EXPAND_ALL,expandAll)}):noop,[api,collapseAll,expandAll]),(0,import_react13.useEffect)(()=>{let menuElement=document4.getElementById("storybook-explorer-menu"),navigateTree=(0,import_throttle.default)(event=>{let highlightedItemId=highlightedRef.current?.refId===refId&&highlightedRef.current?.itemId;if(!isBrowsing||!containerRef.current||!highlightedItemId||event.repeat||!matchesModifiers(!1,event))return;let isEnter=matchesKeyCode("Enter",event),isSpace=matchesKeyCode("Space",event),isArrowLeft=matchesKeyCode("ArrowLeft",event),isArrowRight=matchesKeyCode("ArrowRight",event);if(!(isEnter||isSpace||isArrowLeft||isArrowRight))return;let highlightedElement=getElementByDataItemId(highlightedItemId);if(!highlightedElement||highlightedElement.getAttribute("data-ref-id")!==refId)return;let target=event.target;if(!isAncestor(menuElement,target)&&!isAncestor(target,menuElement))return;if(target.hasAttribute("data-action")){if(isEnter||isSpace)return;target.blur()}let type=highlightedElement.getAttribute("data-nodetype");(isEnter||isSpace)&&["component","story","document"].includes(type)&&onSelectStoryId(highlightedItemId);let isExpanded=highlightedElement.getAttribute("aria-expanded");if(isArrowLeft){if(isExpanded==="true"){setExpanded({ids:[highlightedItemId],value:!1});return}let parentId=highlightedElement.getAttribute("data-parent-id"),parentElement=parentId&&getElementByDataItemId(parentId);if(parentElement&&parentElement.getAttribute("data-highlightable")==="true"){highlightElement(parentElement);return}setExpanded({ids:getDescendantIds(data,highlightedItemId,!0),value:!1});return}isArrowRight&&(isExpanded==="false"?updateExpanded({ids:[highlightedItemId],value:!0}):isExpanded==="true"&&updateExpanded({ids:getDescendantIds(data,highlightedItemId,!0),value:!0}))},60);return document4.addEventListener("keydown",navigateTree),()=>document4.removeEventListener("keydown",navigateTree)},[containerRef,isBrowsing,refId,data,highlightedRef,setHighlightedItemId,onSelectStoryId]),[expanded,updateExpanded]};var import_react14=__toESM(require_react());var SmallIcons=newStyled(CircleIcon)({"&&&":{width:6,height:6}}),LoadingIcons=newStyled(SmallIcons)(({theme:{animation,color,base}})=>({animation:`${animation.glow} 1.5s ease-in-out infinite`,color:base==="light"?color.mediumdark:color.darker})),statusPriority=["unknown","pending","success","warn","error"],statusMapping={unknown:[null,null],pending:[import_react14.default.createElement(LoadingIcons,{key:"icon"}),"currentColor"],success:[import_react14.default.createElement(SmallIcons,{key:"icon",style:{color:"green"}}),"currentColor"],warn:[import_react14.default.createElement(SmallIcons,{key:"icon",style:{color:"orange"}}),"#A15C20"],error:[import_react14.default.createElement(SmallIcons,{key:"icon",style:{color:"red"}}),"brown"]},getHighestStatus=statuses=>statusPriority.reduce((acc,status)=>statuses.includes(status)?status:acc,"unknown");function getGroupStatus(collapsedData,status){return Object.values(collapsedData).reduce((acc,item)=>{if(item.type==="group"||item.type==="component"){let leafs=getDescendantIds(collapsedData,item.id,!1).map(id=>collapsedData[id]).filter(i3=>i3.type==="story"),combinedStatus=getHighestStatus(leafs.flatMap(story=>Object.values(status?.[story.id]||{})).map(s2=>s2.status));combinedStatus&&(acc[item.id]=combinedStatus)}return acc},{})}var Container=newStyled.div(props=>({marginTop:props.hasOrphans?20:0,marginBottom:20})),Action=newStyled.button(({theme,height,width})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",width:width||20,height:height||20,boxSizing:"border-box",margin:0,marginLeft:"auto",padding:0,outline:0,lineHeight:"normal",background:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",transition:"all 150ms ease-out",color:theme.base==="light"?curriedTransparentize$1(.3,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"&:hover":{color:theme.color.secondary},"&:focus":{color:theme.color.secondary,borderColor:theme.color.secondary,"&:not(:focus-visible)":{borderColor:"transparent"}},svg:{width:10,height:10}})),CollapseButton=newStyled.button(({theme})=>({all:"unset",display:"flex",padding:"0px 8px",borderRadius:4,transition:"color 150ms, box-shadow 150ms",gap:6,alignItems:"center",cursor:"pointer",height:28,"&:hover, &:focus":{outline:"none",background:curriedTransparentize$1(.93,theme.color.secondary)}})),LeafNodeStyleWrapper=newStyled.div(({theme})=>({position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:20,color:theme.color.defaultText,background:"transparent",minHeight:28,borderRadius:4,"&:hover, &:focus":{outline:"none",background:curriedTransparentize$1(.93,theme.color.secondary)},'&[data-selected="true"]':{color:theme.color.lightest,background:theme.color.secondary,fontWeight:theme.typography.weight.bold,"&:hover, &:focus":{background:theme.color.secondary},svg:{color:theme.color.lightest}},a:{color:"currentColor"}})),SkipToContentLink=newStyled(Button)(({theme})=>({display:"none","@media (min-width: 600px)":{display:"block",fontSize:"10px",overflow:"hidden",width:1,height:"20px",boxSizing:"border-box",opacity:0,padding:0,"&:focus":{opacity:1,padding:"5px 10px",background:"white",color:theme.color.secondary,width:"auto"}}})),Node=import_react15.default.memo(function({item,status,refId,docsMode,isOrphan,isDisplayed,isSelected,isFullyExpanded,color,setFullyExpanded,isExpanded,setExpanded,onSelectStoryId,api}){let{isDesktop,isMobile,setMobileMenuOpen}=useLayout();if(!isDisplayed)return null;let id=createId(item.id,refId);if(item.type==="story"||item.type==="docs"){let LeafNode2=item.type==="docs"?DocumentNode:StoryNode,statusValue=getHighestStatus(Object.values(status||{}).map(s2=>s2.status)),[icon,textColor]=statusMapping[statusValue];return import_react15.default.createElement(LeafNodeStyleWrapper,{"data-selected":isSelected,"data-ref-id":refId,"data-item-id":item.id,"data-parent-id":item.parent,"data-nodetype":item.type==="docs"?"document":"story","data-highlightable":isDisplayed,className:"sidebar-item"},import_react15.default.createElement(LeafNode2,{style:isSelected?{}:{color:textColor},key:id,href:getLink(item,refId),id,depth:isOrphan?item.depth:item.depth-1,onClick:event=>{event.preventDefault(),onSelectStoryId(item.id),isMobile&&setMobileMenuOpen(!1)},...item.type==="docs"&&{docsMode}},item.renderLabel?.(item)||item.name),isSelected&&import_react15.default.createElement(SkipToContentLink,{asChild:!0},import_react15.default.createElement("a",{href:"#storybook-preview-wrapper"},"Skip to canvas")),icon?import_react15.default.createElement(WithTooltip,{placement:"top",style:{display:"flex"},tooltip:()=>import_react15.default.createElement(TooltipLinkList,{links:Object.entries(status||{}).map(([k2,v2])=>({id:k2,title:v2.title,description:v2.description,right:statusMapping[v2.status][0]}))}),closeOnOutsideClick:!0},import_react15.default.createElement(Action,{type:"button",height:22},icon)):null)}if(item.type==="root")return import_react15.default.createElement(RootNode,{key:id,id,className:"sidebar-subheading","data-ref-id":refId,"data-item-id":item.id,"data-nodetype":"root"},import_react15.default.createElement(CollapseButton,{type:"button","data-action":"collapse-root",onClick:event=>{event.preventDefault(),setExpanded({ids:[item.id],value:!isExpanded})},"aria-expanded":isExpanded},import_react15.default.createElement(CollapseIcon2,{isExpanded}),item.renderLabel?.(item)||item.name),isExpanded&&import_react15.default.createElement(IconButton,{className:"sidebar-subheading-action","aria-label":isFullyExpanded?"Expand":"Collapse","data-action":"expand-all","data-expanded":isFullyExpanded,onClick:event=>{event.preventDefault(),setFullyExpanded()}},isFullyExpanded?import_react15.default.createElement(CollapseIcon,null):import_react15.default.createElement(ExpandAltIcon,null)));if(item.type==="component"||item.type==="group"){let BranchNode2=item.type==="component"?ComponentNode:GroupNode;return import_react15.default.createElement(BranchNode2,{key:id,id,style:color?{color}:{},className:"sidebar-item","data-ref-id":refId,"data-item-id":item.id,"data-parent-id":item.parent,"data-nodetype":item.type==="component"?"component":"group","data-highlightable":isDisplayed,"aria-controls":item.children&&item.children[0],"aria-expanded":isExpanded,depth:isOrphan?item.depth:item.depth-1,isComponent:item.type==="component",isExpandable:item.children&&item.children.length>0,isExpanded,onClick:event=>{event.preventDefault(),setExpanded({ids:[item.id],value:!isExpanded}),item.type==="component"&&!isExpanded&&isDesktop&&onSelectStoryId(item.id)},onMouseEnter:()=>{item.type==="component"&&api.emit(PRELOAD_ENTRIES,{ids:[item.children[0]],options:{target:refId}})}},item.renderLabel?.(item)||item.name)}return null}),Root=import_react15.default.memo(function({setExpanded,isFullyExpanded,expandableDescendants,...props}){let setFullyExpanded=(0,import_react15.useCallback)(()=>setExpanded({ids:expandableDescendants,value:!isFullyExpanded}),[setExpanded,isFullyExpanded,expandableDescendants]);return import_react15.default.createElement(Node,{...props,setExpanded,isFullyExpanded,setFullyExpanded})}),Tree=import_react15.default.memo(function({isBrowsing,isMain,refId,data,status,docsMode,highlightedRef,setHighlightedItemId,selectedStoryId,onSelectStoryId}){let containerRef=(0,import_react15.useRef)(null),api=useStorybookApi(),[rootIds,orphanIds,initialExpanded]=(0,import_react15.useMemo)(()=>Object.keys(data).reduce((acc,id)=>{let item=data[id];return item.type==="root"?acc[0].push(id):item.parent||acc[1].push(id),item.type==="root"&&item.startCollapsed&&(acc[2][id]=!1),acc},[[],[],{}]),[data]),{expandableDescendants}=(0,import_react15.useMemo)(()=>[...orphanIds,...rootIds].reduce((acc,nodeId)=>(acc.expandableDescendants[nodeId]=getDescendantIds(data,nodeId,!1).filter(d2=>!["story","docs"].includes(data[d2].type)),acc),{orphansFirst:[],expandableDescendants:{}}),[data,rootIds,orphanIds]),singleStoryComponentIds=(0,import_react15.useMemo)(()=>Object.keys(data).filter(id=>{let entry=data[id];if(entry.type!=="component")return!1;let{children=[],name}=entry;if(children.length!==1)return!1;let onlyChild=data[children[0]];return onlyChild.type==="docs"?!0:onlyChild.type==="story"?isStoryHoistable(onlyChild.name,name):!1}),[data]),collapsedItems=(0,import_react15.useMemo)(()=>Object.keys(data).filter(id=>!singleStoryComponentIds.includes(id)),[singleStoryComponentIds]),collapsedData=(0,import_react15.useMemo)(()=>singleStoryComponentIds.reduce((acc,id)=>{let{children,parent,name}=data[id],[childId]=children;if(parent){let siblings=[...data[parent].children];siblings[siblings.indexOf(id)]=childId,acc[parent]={...data[parent],children:siblings}}return acc[childId]={...data[childId],name,parent,depth:data[childId].depth-1},acc},{...data}),[data]),ancestry=(0,import_react15.useMemo)(()=>collapsedItems.reduce((acc,id)=>Object.assign(acc,{[id]:getAncestorIds(collapsedData,id)}),{}),[collapsedItems,collapsedData]),[expanded,setExpanded]=useExpanded({containerRef,isBrowsing,refId,data:collapsedData,initialExpanded,rootIds,highlightedRef,setHighlightedItemId,selectedStoryId,onSelectStoryId}),groupStatus=(0,import_react15.useMemo)(()=>getGroupStatus(collapsedData,status),[collapsedData,status]),treeItems=(0,import_react15.useMemo)(()=>collapsedItems.map(itemId=>{let item=collapsedData[itemId],id=createId(itemId,refId);if(item.type==="root"){let descendants=expandableDescendants[item.id],isFullyExpanded=descendants.every(d2=>expanded[d2]);return import_react15.default.createElement(Root,{key:id,item,refId,isOrphan:!1,isDisplayed:!0,isSelected:selectedStoryId===itemId,isExpanded:!!expanded[itemId],setExpanded,isFullyExpanded,expandableDescendants:descendants,onSelectStoryId})}let isDisplayed=!item.parent||ancestry[itemId].every(a2=>expanded[a2]),color=groupStatus[itemId]?statusMapping[groupStatus[itemId]][1]:null;return import_react15.default.createElement(Node,{api,key:id,item,status:status?.[itemId],refId,color,docsMode,isOrphan:orphanIds.some(oid=>itemId===oid||itemId.startsWith(`${oid}-`)),isDisplayed,isSelected:selectedStoryId===itemId,isExpanded:!!expanded[itemId],setExpanded,onSelectStoryId})}),[ancestry,api,collapsedData,collapsedItems,docsMode,expandableDescendants,expanded,groupStatus,onSelectStoryId,orphanIds,refId,selectedStoryId,setExpanded,status]);return import_react15.default.createElement(Container,{ref:containerRef,hasOrphans:isMain&&orphanIds.length>0},import_react15.default.createElement(IconSymbols,null),treeItems)});var Wrapper2=newStyled.div(({isMain})=>({position:"relative",marginTop:isMain?void 0:0})),RefHead=newStyled.div(({theme})=>({fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2,textDecoration:"none",lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",width:"100%",marginTop:20,paddingTop:16,paddingBottom:12,borderTop:`1px solid ${theme.appBorderColor}`,color:theme.base==="light"?theme.color.defaultText:curriedTransparentize$1(.2,theme.color.defaultText)})),RefTitle=newStyled.div({textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,overflow:"hidden",marginLeft:2}),CollapseButton2=newStyled.button(({theme})=>({all:"unset",display:"flex",padding:"0px 8px",gap:6,alignItems:"center",cursor:"pointer",overflow:"hidden","&:focus":{borderColor:theme.color.secondary,"span:first-of-type":{borderLeftColor:theme.color.secondary}}})),Ref=import_react16.default.memo(function(props){let{docsOptions}=useStorybookState(),api=useStorybookApi(),{index,id:refId,title=refId,isLoading:isLoadingMain,isBrowsing,selectedStoryId,highlightedRef,setHighlighted,loginUrl,type,expanded=!0,indexError,previewInitialized}=props,length=(0,import_react16.useMemo)(()=>index?Object.keys(index).length:0,[index]),indicatorRef=(0,import_react16.useRef)(null),isMain=refId===DEFAULT_REF_ID,isLoading=isLoadingMain||(type==="auto-inject"&&!previewInitialized||type==="server-checked")||type==="unknown",state=getStateType(isLoading,!!loginUrl&&length===0,!!indexError,!isLoading&&length===0),[isExpanded,setExpanded]=(0,import_react16.useState)(expanded);(0,import_react16.useEffect)(()=>{index&&selectedStoryId&&index[selectedStoryId]&&setExpanded(!0)},[setExpanded,index,selectedStoryId]);let handleClick=(0,import_react16.useCallback)(()=>setExpanded(value=>!value),[setExpanded]),setHighlightedItemId=(0,import_react16.useCallback)(itemId=>setHighlighted({itemId,refId}),[setHighlighted]),onSelectStoryId=(0,import_react16.useCallback)(storyId=>api&&api.selectStory(storyId,void 0,{ref:!isMain&&refId}),[api,isMain,refId]);return import_react16.default.createElement(import_react16.default.Fragment,null,isMain||import_react16.default.createElement(RefHead,{"aria-label":`${isExpanded?"Hide":"Show"} ${title} stories`,"aria-expanded":isExpanded},import_react16.default.createElement(CollapseButton2,{"data-action":"collapse-ref",onClick:handleClick},import_react16.default.createElement(CollapseIcon2,{isExpanded}),import_react16.default.createElement(RefTitle,{title},title)),import_react16.default.createElement(RefIndicator,{...props,state,ref:indicatorRef})),isExpanded&&import_react16.default.createElement(Wrapper2,{"data-title":title,isMain},state==="auth"&&import_react16.default.createElement(AuthBlock,{id:refId,loginUrl}),state==="error"&&import_react16.default.createElement(ErrorBlock,{error:indexError}),state==="loading"&&import_react16.default.createElement(LoaderBlock,{isMain}),state==="empty"&&import_react16.default.createElement(EmptyBlock,{isMain}),state==="ready"&&import_react16.default.createElement(Tree,{status:props.status,isBrowsing,isMain,refId,data:index,docsMode:docsOptions.docsMode,selectedStoryId,onSelectStoryId,highlightedRef,setHighlightedItemId})))});var import_react17=__toESM(require_react());var{document:document5,window:globalWindow4}=scope,fromSelection=selection=>selection?{itemId:selection.storyId,refId:selection.refId}:null,useHighlighted=({containerRef,isLoading,isBrowsing,dataset,selected})=>{let initialHighlight=fromSelection(selected),highlightedRef=(0,import_react17.useRef)(initialHighlight),[highlighted,setHighlighted]=(0,import_react17.useState)(initialHighlight),api=useStorybookApi(),updateHighlighted=(0,import_react17.useCallback)(highlight=>{highlightedRef.current=highlight,setHighlighted(highlight)},[highlightedRef]),highlightElement=(0,import_react17.useCallback)((element,center=!1)=>{let itemId=element.getAttribute("data-item-id"),refId=element.getAttribute("data-ref-id");!itemId||!refId||(updateHighlighted({itemId,refId}),scrollIntoView(element,center))},[updateHighlighted]);return(0,import_react17.useEffect)(()=>{let highlight=fromSelection(selected);if(updateHighlighted(highlight),highlight){let{itemId,refId}=highlight;setTimeout(()=>{scrollIntoView(containerRef.current?.querySelector(`[data-item-id="${itemId}"][data-ref-id="${refId}"]`),!0)},0)}},[dataset,highlightedRef,containerRef,selected]),(0,import_react17.useEffect)(()=>{let menuElement=document5.getElementById("storybook-explorer-menu"),lastRequestId,navigateTree=event=>{if(isLoading||!isBrowsing||!containerRef.current||!matchesModifiers(!1,event))return;let isArrowUp=matchesKeyCode("ArrowUp",event),isArrowDown=matchesKeyCode("ArrowDown",event);if(!(isArrowUp||isArrowDown))return;let requestId=globalWindow4.requestAnimationFrame(()=>{globalWindow4.cancelAnimationFrame(lastRequestId),lastRequestId=requestId;let target=event.target;if(!isAncestor(menuElement,target)&&!isAncestor(target,menuElement))return;target.hasAttribute("data-action")&&target.blur();let highlightable=Array.from(containerRef.current.querySelectorAll("[data-highlightable=true]")),currentIndex=highlightable.findIndex(el=>el.getAttribute("data-item-id")===highlightedRef.current?.itemId&&el.getAttribute("data-ref-id")===highlightedRef.current?.refId),nextIndex=cycle(highlightable,currentIndex,isArrowUp?-1:1),didRunAround=isArrowUp?nextIndex===highlightable.length-1:nextIndex===0;if(highlightElement(highlightable[nextIndex],didRunAround),highlightable[nextIndex].getAttribute("data-nodetype")==="component"){let{itemId,refId}=highlightedRef.current,item=api.resolveStory(itemId,refId==="storybook_internal"?void 0:refId);item.type==="component"&&api.emit(PRELOAD_ENTRIES,{ids:[item.children[0]],options:{target:refId}})}})};return document5.addEventListener("keydown",navigateTree),()=>document5.removeEventListener("keydown",navigateTree)},[isLoading,isBrowsing,highlightedRef,highlightElement]),[highlighted,updateHighlighted,highlightedRef]};var import_react18=__toESM(require_react());var HighlightStyles=({refId,itemId})=>import_react18.default.createElement(Global,{styles:({color})=>{let background=curriedTransparentize$1(.85,color.secondary);return{[`[data-ref-id="${refId}"][data-item-id="${itemId}"]:not([data-selected="true"])`]:{'&[data-nodetype="component"], &[data-nodetype="group"]':{background,"&:hover, &:focus":{background}},'&[data-nodetype="story"], &[data-nodetype="document"]':{color:color.defaultText,background,"&:hover, &:focus":{background}}}}}});var Explorer=import_react19.default.memo(function({isLoading,isBrowsing,dataset,selected}){let containerRef=(0,import_react19.useRef)(null),[highlighted,setHighlighted,highlightedRef]=useHighlighted({containerRef,isLoading,isBrowsing,dataset,selected});return import_react19.default.createElement("div",{ref:containerRef,id:"storybook-explorer-tree","data-highlighted-ref-id":highlighted?.refId,"data-highlighted-item-id":highlighted?.itemId},highlighted&&import_react19.default.createElement(HighlightStyles,{...highlighted}),dataset.entries.map(([refId,ref])=>import_react19.default.createElement(Ref,{...ref,key:refId,isLoading,isBrowsing,selectedStoryId:selected?.refId===ref.id?selected.storyId:null,highlightedRef,setHighlighted})))});var import_prop_types2=__toESM(require_prop_types()),import_react20=__toESM(require_react()),import_react_is=__toESM(require_react_is2());function t2(t3){return typeof t3=="object"&&t3!=null&&t3.nodeType===1}function e2(t3,e3){return(!e3||t3!=="hidden")&&t3!=="visible"&&t3!=="clip"}function n2(t3,n3){if(t3.clientHeighte3||o2>t3&&l2=e3&&d2>=n3?o2-t3-r3:l2>e3&&d2n3?l2-e3+i3:0}var i2=function(e3,i3){var o2=window,l2=i3.scrollMode,d2=i3.block,f2=i3.inline,h2=i3.boundary,u2=i3.skipOverflowHiddenElements,s2=typeof h2=="function"?h2:function(t3){return t3!==h2};if(!t2(e3))throw new TypeError("Invalid target");for(var a2,c2,g2=document.scrollingElement||document.documentElement,p2=[],m2=e3;t2(m2)&&s2(m2);){if((m2=(c2=(a2=m2).parentElement)==null?a2.getRootNode().host||null:c2)===g2){p2.push(m2);break}m2!=null&&m2===document.body&&n2(m2)&&!n2(document.documentElement)||m2!=null&&n2(m2,u2)&&p2.push(m2)}for(var w2=o2.visualViewport?o2.visualViewport.width:innerWidth,v2=o2.visualViewport?o2.visualViewport.height:innerHeight,W2=window.scrollX||pageXOffset,H2=window.scrollY||pageYOffset,b2=e3.getBoundingClientRect(),y2=b2.height,E2=b2.width,M2=b2.top,V=b2.right,x2=b2.bottom,I2=b2.left,C2=d2==="start"||d2==="nearest"?M2:d2==="end"?x2:M2+y2/2,R2=f2==="center"?I2+E2/2:f2==="end"?V:I2,T2=[],k2=0;k2=0&&I2>=0&&x2<=v2&&V<=w2&&M2>=Y2&&x2<=S2&&I2>=j2&&V<=L2)return T2;var N2=getComputedStyle(B2),q2=parseInt(N2.borderLeftWidth,10),z2=parseInt(N2.borderTopWidth,10),A2=parseInt(N2.borderRightWidth,10),F2=parseInt(N2.borderBottomWidth,10),G2=0,J=0,K2="offsetWidth"in B2?B2.offsetWidth-B2.clientWidth-q2-A2:0,P2="offsetHeight"in B2?B2.offsetHeight-B2.clientHeight-z2-F2:0,Q="offsetWidth"in B2?B2.offsetWidth===0?0:X/B2.offsetWidth:0,U2="offsetHeight"in B2?B2.offsetHeight===0?0:O2/B2.offsetHeight:0;if(g2===B2)G2=d2==="start"?C2:d2==="end"?C2-v2:d2==="nearest"?r2(H2,H2+v2,v2,z2,F2,H2+C2,H2+C2+y2,y2):C2-v2/2,J=f2==="start"?R2:f2==="center"?R2-w2/2:f2==="end"?R2-w2:r2(W2,W2+w2,w2,q2,A2,W2+R2,W2+R2+E2,E2),G2=Math.max(0,G2+H2),J=Math.max(0,J+W2);else{G2=d2==="start"?C2-Y2-z2:d2==="end"?C2-S2+F2+P2:d2==="nearest"?r2(Y2,S2,O2,z2,F2+P2,C2,C2+y2,y2):C2-(Y2+O2/2)+P2/2,J=f2==="start"?R2-j2-q2:f2==="center"?R2-(j2+X/2)+K2/2:f2==="end"?R2-L2+A2+K2:r2(j2,L2,X,q2,A2+K2,R2,R2+E2,E2);var Z=B2.scrollLeft,$=B2.scrollTop;C2+=$-(G2=Math.max(0,Math.min($+G2/U2,B2.scrollHeight-O2/U2+P2))),R2+=Z-(J=Math.max(0,Math.min(Z+J/Q,B2.scrollWidth-X/Q+K2)))}T2.push({el:B2,top:G2,left:J})}return T2};var __assign=function(){return __assign=Object.assign||function(t3){for(var s2,i3=1,n3=arguments.length;i3{let{el,top,left}=_ref;el.scrollTop=top,el.scrollLeft=left})}function isOrContainsNode(parent,child,environment){return parent===child||child instanceof environment.Node&&parent.contains&&parent.contains(child)}function debounce(fn,time){let timeoutId;function cancel(){timeoutId&&clearTimeout(timeoutId)}function wrapper(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];cancel(),timeoutId=setTimeout(()=>{timeoutId=null,fn(...args)},time)}return wrapper.cancel=cancel,wrapper}function callAllEventHandlers(){for(var _len2=arguments.length,fns=new Array(_len2),_key2=0;_key2<_len2;_key2++)fns[_key2]=arguments[_key2];return function(event){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return fns.some(fn=>(fn&&fn(event,...args),event.preventDownshiftDefault||event.hasOwnProperty("nativeEvent")&&event.nativeEvent.preventDownshiftDefault))}}function handleRefs(){for(var _len4=arguments.length,refs=new Array(_len4),_key4=0;_key4<_len4;_key4++)refs[_key4]=arguments[_key4];return node=>{refs.forEach(ref=>{typeof ref=="function"?ref(node):ref&&(ref.current=node)})}}function generateId(){return String(idCounter++)}function getA11yStatusMessage$1(_ref2){let{isOpen,resultCount,previousResultCount}=_ref2;return isOpen?resultCount?resultCount!==previousResultCount?`${resultCount} result${resultCount===1?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function unwrapArray(arg,defaultValue){return arg=Array.isArray(arg)?arg[0]:arg,!arg&&defaultValue?defaultValue:arg}function isDOMElement(element){return typeof element.type=="string"}function getElementProps(element){return element.props}function requiredProp(fnName,propName){console.error(`The property "${propName}" is required in "${fnName}"`)}var stateKeys=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function pickState(state){state===void 0&&(state={});let result={};return stateKeys.forEach(k2=>{state.hasOwnProperty(k2)&&(result[k2]=state[k2])}),result}function getState(state,props){return Object.keys(state).reduce((prevState,key)=>(prevState[key]=isControlledProp(props,key)?props[key]:state[key],prevState),{})}function isControlledProp(props,key){return props[key]!==void 0}function normalizeArrowKey(event){let{key,keyCode}=event;return keyCode>=37&&keyCode<=40&&key.indexOf("Arrow")!==0?`Arrow${key}`:key}function isPlainObject(obj){return Object.prototype.toString.call(obj)==="[object Object]"}function getNextWrappingIndex(moveAmount,baseIndex,itemCount,getItemNodeFromIndex,circular){if(circular===void 0&&(circular=!0),itemCount===0)return-1;let itemsLastIndex=itemCount-1;(typeof baseIndex!="number"||baseIndex<0||baseIndex>=itemCount)&&(baseIndex=moveAmount>0?-1:itemsLastIndex+1);let newIndex=baseIndex+moveAmount;newIndex<0?newIndex=circular?itemsLastIndex:0:newIndex>itemsLastIndex&&(newIndex=circular?0:itemsLastIndex);let nonDisabledNewIndex=getNextNonDisabledIndex(moveAmount,newIndex,itemCount,getItemNodeFromIndex,circular);return nonDisabledNewIndex===-1?baseIndex>=itemCount?-1:baseIndex:nonDisabledNewIndex}function getNextNonDisabledIndex(moveAmount,baseIndex,itemCount,getItemNodeFromIndex,circular){let currentElementNode=getItemNodeFromIndex(baseIndex);if(!currentElementNode||!currentElementNode.hasAttribute("disabled"))return baseIndex;if(moveAmount>0){for(let index=baseIndex+1;index=0;index--)if(!getItemNodeFromIndex(index).hasAttribute("disabled"))return index;return circular?moveAmount>0?getNextNonDisabledIndex(1,0,itemCount,getItemNodeFromIndex,!1):getNextNonDisabledIndex(-1,itemCount-1,itemCount,getItemNodeFromIndex,!1):-1}function targetWithinDownshift(target,downshiftElements,environment,checkActiveElement){return checkActiveElement===void 0&&(checkActiveElement=!0),downshiftElements.some(contextNode=>contextNode&&(isOrContainsNode(contextNode,target,environment)||checkActiveElement&&isOrContainsNode(contextNode,environment.document.activeElement,environment)))}var validateControlledUnchanged=noop2;validateControlledUnchanged=(state,prevProps,nextProps)=>{let warningDescription="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(state).forEach(propKey=>{prevProps[propKey]!==void 0&&nextProps[propKey]===void 0?console.error(`downshift: A component has changed the controlled prop "${propKey}" to be uncontrolled. ${warningDescription}`):prevProps[propKey]===void 0&&nextProps[propKey]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "${propKey}" to be controlled. ${warningDescription}`)})};var cleanupStatus=debounce(documentProp=>{getStatusDiv(documentProp).textContent=""},500);function setStatus(status,documentProp){let div=getStatusDiv(documentProp);status&&(div.textContent=status,cleanupStatus(documentProp))}function getStatusDiv(documentProp){documentProp===void 0&&(documentProp=document);let statusDiv=documentProp.getElementById("a11y-status-message");return statusDiv||(statusDiv=documentProp.createElement("div"),statusDiv.setAttribute("id","a11y-status-message"),statusDiv.setAttribute("role","status"),statusDiv.setAttribute("aria-live","polite"),statusDiv.setAttribute("aria-relevant","additions text"),Object.assign(statusDiv.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),documentProp.body.appendChild(statusDiv),statusDiv)}var unknown="__autocomplete_unknown__",mouseUp="__autocomplete_mouseup__",itemMouseEnter="__autocomplete_item_mouseenter__",keyDownArrowUp="__autocomplete_keydown_arrow_up__",keyDownArrowDown="__autocomplete_keydown_arrow_down__",keyDownEscape="__autocomplete_keydown_escape__",keyDownEnter="__autocomplete_keydown_enter__",keyDownHome="__autocomplete_keydown_home__",keyDownEnd="__autocomplete_keydown_end__",clickItem="__autocomplete_click_item__",blurInput="__autocomplete_blur_input__",changeInput="__autocomplete_change_input__",keyDownSpaceButton="__autocomplete_keydown_space_button__",clickButton="__autocomplete_click_button__",blurButton="__autocomplete_blur_button__",controlledPropUpdatedSelectedItem="__autocomplete_controlled_prop_updated_selected_item__",touchEnd="__autocomplete_touchend__",stateChangeTypes$3=Object.freeze({__proto__:null,unknown,mouseUp,itemMouseEnter,keyDownArrowUp,keyDownArrowDown,keyDownEscape,keyDownEnter,keyDownHome,keyDownEnd,clickItem,blurInput,changeInput,keyDownSpaceButton,clickButton,blurButton,controlledPropUpdatedSelectedItem,touchEnd}),Downshift=(()=>{class Downshift2 extends import_react20.Component{constructor(_props){var _this;super(_props),_this=this,this.id=this.props.id||`downshift-${generateId()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(index=>`${this.id}-item-${index}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(fn,time)=>{let id=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(i3=>i3!==id),fn()},time);this.timeoutIds.push(id)},this.setItemCount=count=>{this.itemCount=count},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(highlightedIndex,otherStateToSet){highlightedIndex===void 0&&(highlightedIndex=_this.props.defaultHighlightedIndex),otherStateToSet===void 0&&(otherStateToSet={}),otherStateToSet=pickState(otherStateToSet),_this.internalSetState({highlightedIndex,...otherStateToSet})},this.clearSelection=cb=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},cb)},this.selectItem=(item,otherStateToSet,cb)=>{otherStateToSet=pickState(otherStateToSet),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:item,inputValue:this.props.itemToString(item),...otherStateToSet},cb)},this.selectItemAtIndex=(itemIndex,otherStateToSet,cb)=>{let item=this.items[itemIndex];item!=null&&this.selectItem(item,otherStateToSet,cb)},this.selectHighlightedItem=(otherStateToSet,cb)=>this.selectItemAtIndex(this.getState().highlightedIndex,otherStateToSet,cb),this.internalSetState=(stateToSet,cb)=>{let isItemSelected,onChangeArg,onStateChangeArg={},isStateToSetFunction=typeof stateToSet=="function";return!isStateToSetFunction&&stateToSet.hasOwnProperty("inputValue")&&this.props.onInputValueChange(stateToSet.inputValue,{...this.getStateAndHelpers(),...stateToSet}),this.setState(state=>{state=this.getState(state);let newStateToSet=isStateToSetFunction?stateToSet(state):stateToSet;newStateToSet=this.props.stateReducer(state,newStateToSet),isItemSelected=newStateToSet.hasOwnProperty("selectedItem");let nextState={};return isItemSelected&&newStateToSet.selectedItem!==state.selectedItem&&(onChangeArg=newStateToSet.selectedItem),newStateToSet.type=newStateToSet.type||unknown,Object.keys(newStateToSet).forEach(key=>{state[key]!==newStateToSet[key]&&(onStateChangeArg[key]=newStateToSet[key]),key!=="type"&&(newStateToSet[key],isControlledProp(this.props,key)||(nextState[key]=newStateToSet[key]))}),isStateToSetFunction&&newStateToSet.hasOwnProperty("inputValue")&&this.props.onInputValueChange(newStateToSet.inputValue,{...this.getStateAndHelpers(),...newStateToSet}),nextState},()=>{cbToCb(cb)(),Object.keys(onStateChangeArg).length>1&&this.props.onStateChange(onStateChangeArg,this.getStateAndHelpers()),isItemSelected&&this.props.onSelect(stateToSet.selectedItem,this.getStateAndHelpers()),onChangeArg!==void 0&&this.props.onChange(onChangeArg,this.getStateAndHelpers()),this.props.onUserAction(onStateChangeArg,this.getStateAndHelpers())})},this.rootRef=node=>this._rootNode=node,this.getRootProps=function(_temp,_temp2){let{refKey="ref",ref,...rest}=_temp===void 0?{}:_temp,{suppressRefError=!1}=_temp2===void 0?{}:_temp2;_this.getRootProps.called=!0,_this.getRootProps.refKey=refKey,_this.getRootProps.suppressRefError=suppressRefError;let{isOpen}=_this.getState();return{[refKey]:handleRefs(ref,_this.rootRef),role:"combobox","aria-expanded":isOpen,"aria-haspopup":"listbox","aria-owns":isOpen?_this.menuId:null,"aria-labelledby":_this.labelId,...rest}},this.keyDownHandlers={ArrowDown(event){if(event.preventDefault(),this.getState().isOpen){let amount=event.shiftKey?5:1;this.moveHighlightedIndex(amount,{type:keyDownArrowDown})}else this.internalSetState({isOpen:!0,type:keyDownArrowDown},()=>{let itemCount=this.getItemCount();if(itemCount>0){let{highlightedIndex}=this.getState(),nextHighlightedIndex=getNextWrappingIndex(1,highlightedIndex,itemCount,index=>this.getItemNodeFromIndex(index));this.setHighlightedIndex(nextHighlightedIndex,{type:keyDownArrowDown})}})},ArrowUp(event){if(event.preventDefault(),this.getState().isOpen){let amount=event.shiftKey?-5:-1;this.moveHighlightedIndex(amount,{type:keyDownArrowUp})}else this.internalSetState({isOpen:!0,type:keyDownArrowUp},()=>{let itemCount=this.getItemCount();if(itemCount>0){let{highlightedIndex}=this.getState(),nextHighlightedIndex=getNextWrappingIndex(-1,highlightedIndex,itemCount,index=>this.getItemNodeFromIndex(index));this.setHighlightedIndex(nextHighlightedIndex,{type:keyDownArrowUp})}})},Enter(event){if(event.which===229)return;let{isOpen,highlightedIndex}=this.getState();if(isOpen&&highlightedIndex!=null){event.preventDefault();let item=this.items[highlightedIndex],itemNode=this.getItemNodeFromIndex(highlightedIndex);if(item==null||itemNode&&itemNode.hasAttribute("disabled"))return;this.selectHighlightedItem({type:keyDownEnter})}},Escape(event){event.preventDefault(),this.reset({type:keyDownEscape,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(event){event.preventDefault(),this.toggleMenu({type:keyDownSpaceButton})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(event){let{isOpen}=this.getState();if(!isOpen)return;event.preventDefault();let itemCount=this.getItemCount();if(itemCount<=0||!isOpen)return;let newHighlightedIndex=getNextNonDisabledIndex(1,0,itemCount,index=>this.getItemNodeFromIndex(index),!1);this.setHighlightedIndex(newHighlightedIndex,{type:keyDownHome})},End(event){let{isOpen}=this.getState();if(!isOpen)return;event.preventDefault();let itemCount=this.getItemCount();if(itemCount<=0||!isOpen)return;let newHighlightedIndex=getNextNonDisabledIndex(-1,itemCount-1,itemCount,index=>this.getItemNodeFromIndex(index),!1);this.setHighlightedIndex(newHighlightedIndex,{type:keyDownEnd})}},this.getToggleButtonProps=function(_temp3){let{onClick,onPress,onKeyDown,onKeyUp,onBlur,...rest}=_temp3===void 0?{}:_temp3,{isOpen}=_this.getState(),enabledEventHandlers={onClick:callAllEventHandlers(onClick,_this.buttonHandleClick),onKeyDown:callAllEventHandlers(onKeyDown,_this.buttonHandleKeyDown),onKeyUp:callAllEventHandlers(onKeyUp,_this.buttonHandleKeyUp),onBlur:callAllEventHandlers(onBlur,_this.buttonHandleBlur)},eventHandlers=rest.disabled?{}:enabledEventHandlers;return{type:"button",role:"button","aria-label":isOpen?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...eventHandlers,...rest}},this.buttonHandleKeyUp=event=>{event.preventDefault()},this.buttonHandleKeyDown=event=>{let key=normalizeArrowKey(event);this.buttonKeyDownHandlers[key]&&this.buttonKeyDownHandlers[key].call(this,event)},this.buttonHandleClick=event=>{event.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&event.target.focus(),this.internalSetTimeout(()=>this.toggleMenu({type:clickButton}))},this.buttonHandleBlur=event=>{let blurTarget=event.target;this.internalSetTimeout(()=>{!this.isMouseDown&&(this.props.environment.document.activeElement==null||this.props.environment.document.activeElement.id!==this.inputId)&&this.props.environment.document.activeElement!==blurTarget&&this.reset({type:blurButton})})},this.getLabelProps=props=>({htmlFor:this.inputId,id:this.labelId,...props}),this.getInputProps=function(_temp4){let{onKeyDown,onBlur,onChange,onInput,onChangeText,...rest}=_temp4===void 0?{}:_temp4,onChangeKey,eventHandlers={};onChangeKey="onChange";let{inputValue,isOpen,highlightedIndex}=_this.getState();return rest.disabled||(eventHandlers={[onChangeKey]:callAllEventHandlers(onChange,onInput,_this.inputHandleChange),onKeyDown:callAllEventHandlers(onKeyDown,_this.inputHandleKeyDown),onBlur:callAllEventHandlers(onBlur,_this.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":isOpen&&typeof highlightedIndex=="number"&&highlightedIndex>=0?_this.getItemId(highlightedIndex):null,"aria-controls":isOpen?_this.menuId:null,"aria-labelledby":_this.labelId,autoComplete:"off",value:inputValue,id:_this.inputId,...eventHandlers,...rest}},this.inputHandleKeyDown=event=>{let key=normalizeArrowKey(event);key&&this.inputKeyDownHandlers[key]&&this.inputKeyDownHandlers[key].call(this,event)},this.inputHandleChange=event=>{this.internalSetState({type:changeInput,isOpen:!0,inputValue:event.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{let downshiftButtonIsActive=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);!this.isMouseDown&&!downshiftButtonIsActive&&this.reset({type:blurInput})})},this.menuRef=node=>{this._menuNode=node},this.getMenuProps=function(_temp5,_temp6){let{refKey="ref",ref,...props}=_temp5===void 0?{}:_temp5,{suppressRefError=!1}=_temp6===void 0?{}:_temp6;return _this.getMenuProps.called=!0,_this.getMenuProps.refKey=refKey,_this.getMenuProps.suppressRefError=suppressRefError,{[refKey]:handleRefs(ref,_this.menuRef),role:"listbox","aria-labelledby":props&&props["aria-label"]?null:_this.labelId,id:_this.menuId,...props}},this.getItemProps=function(_temp7){let{onMouseMove,onMouseDown,onClick,onPress,index,item=requiredProp("getItemProps","item"),...rest}=_temp7===void 0?{}:_temp7;index===void 0?(_this.items.push(item),index=_this.items.indexOf(item)):_this.items[index]=item;let onSelectKey="onClick",customClickHandler=onClick,enabledEventHandlers={onMouseMove:callAllEventHandlers(onMouseMove,()=>{index!==_this.getState().highlightedIndex&&(_this.setHighlightedIndex(index,{type:itemMouseEnter}),_this.avoidScrolling=!0,_this.internalSetTimeout(()=>_this.avoidScrolling=!1,250))}),onMouseDown:callAllEventHandlers(onMouseDown,event=>{event.preventDefault()}),[onSelectKey]:callAllEventHandlers(customClickHandler,()=>{_this.selectItemAtIndex(index,{type:clickItem})})},eventHandlers=rest.disabled?{onMouseDown:enabledEventHandlers.onMouseDown}:enabledEventHandlers;return{id:_this.getItemId(index),role:"option","aria-selected":_this.getState().highlightedIndex===index,...eventHandlers,...rest}},this.clearItems=()=>{this.items=[]},this.reset=function(otherStateToSet,cb){otherStateToSet===void 0&&(otherStateToSet={}),otherStateToSet=pickState(otherStateToSet),_this.internalSetState(_ref=>{let{selectedItem}=_ref;return{isOpen:_this.props.defaultIsOpen,highlightedIndex:_this.props.defaultHighlightedIndex,inputValue:_this.props.itemToString(selectedItem),...otherStateToSet}},cb)},this.toggleMenu=function(otherStateToSet,cb){otherStateToSet===void 0&&(otherStateToSet={}),otherStateToSet=pickState(otherStateToSet),_this.internalSetState(_ref2=>{let{isOpen}=_ref2;return{isOpen:!isOpen,...isOpen&&{highlightedIndex:_this.props.defaultHighlightedIndex},...otherStateToSet}},()=>{let{isOpen,highlightedIndex}=_this.getState();isOpen&&_this.getItemCount()>0&&typeof highlightedIndex=="number"&&_this.setHighlightedIndex(highlightedIndex,otherStateToSet),cbToCb(cb)()})},this.openMenu=cb=>{this.internalSetState({isOpen:!0},cb)},this.closeMenu=cb=>{this.internalSetState({isOpen:!1},cb)},this.updateStatus=debounce(()=>{let state=this.getState(),item=this.items[state.highlightedIndex],resultCount=this.getItemCount(),status=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount,highlightedItem:item,...state});this.previousResultCount=resultCount,setStatus(status,this.props.environment.document)},200);let{defaultHighlightedIndex,initialHighlightedIndex:_highlightedIndex=defaultHighlightedIndex,defaultIsOpen,initialIsOpen:_isOpen=defaultIsOpen,initialInputValue:_inputValue="",initialSelectedItem:_selectedItem=null}=this.props,_state=this.getState({highlightedIndex:_highlightedIndex,isOpen:_isOpen,inputValue:_inputValue,selectedItem:_selectedItem});_state.selectedItem!=null&&this.props.initialInputValue===void 0&&(_state.inputValue=this.props.itemToString(_state.selectedItem)),this.state=_state}internalClearTimeouts(){this.timeoutIds.forEach(id=>{clearTimeout(id)}),this.timeoutIds=[]}getState(stateToMerge){return stateToMerge===void 0&&(stateToMerge=this.state),getState(stateToMerge,this.props)}getItemCount(){let itemCount=this.items.length;return this.itemCount!=null?itemCount=this.itemCount:this.props.itemCount!==void 0&&(itemCount=this.props.itemCount),itemCount}getItemNodeFromIndex(index){return this.props.environment.document.getElementById(this.getItemId(index))}scrollHighlightedItemIntoView(){{let node=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(node,this._menuNode)}}moveHighlightedIndex(amount,otherStateToSet){let itemCount=this.getItemCount(),{highlightedIndex}=this.getState();if(itemCount>0){let nextHighlightedIndex=getNextWrappingIndex(amount,highlightedIndex,itemCount,index=>this.getItemNodeFromIndex(index));this.setHighlightedIndex(nextHighlightedIndex,otherStateToSet)}}getStateAndHelpers(){let{highlightedIndex,inputValue,selectedItem,isOpen}=this.getState(),{itemToString:itemToString2}=this.props,{id}=this,{getRootProps,getToggleButtonProps,getLabelProps,getMenuProps,getInputProps,getItemProps,openMenu,closeMenu,toggleMenu,selectItem,selectItemAtIndex,selectHighlightedItem,setHighlightedIndex,clearSelection,clearItems,reset,setItemCount,unsetItemCount,internalSetState:setState}=this;return{getRootProps,getToggleButtonProps,getLabelProps,getMenuProps,getInputProps,getItemProps,reset,openMenu,closeMenu,toggleMenu,selectItem,selectItemAtIndex,selectHighlightedItem,setHighlightedIndex,clearSelection,clearItems,setItemCount,unsetItemCount,setState,itemToString:itemToString2,id,highlightedIndex,inputValue,isOpen,selectedItem}}componentDidMount(){this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&validateGetMenuPropsCalledCorrectly(this._menuNode,this.getMenuProps);{let onMouseDown=()=>{this.isMouseDown=!0},onMouseUp=event=>{this.isMouseDown=!1,!targetWithinDownshift(event.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:mouseUp},()=>this.props.onOuterClick(this.getStateAndHelpers()))},onTouchStart=()=>{this.isTouchMove=!1},onTouchMove=()=>{this.isTouchMove=!0},onTouchEnd=event=>{let contextWithinDownshift=targetWithinDownshift(event.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!contextWithinDownshift&&this.getState().isOpen&&this.reset({type:touchEnd},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment}=this.props;environment.addEventListener("mousedown",onMouseDown),environment.addEventListener("mouseup",onMouseUp),environment.addEventListener("touchstart",onTouchStart),environment.addEventListener("touchmove",onTouchMove),environment.addEventListener("touchend",onTouchEnd),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),environment.removeEventListener("mousedown",onMouseDown),environment.removeEventListener("mouseup",onMouseUp),environment.removeEventListener("touchstart",onTouchStart),environment.removeEventListener("touchmove",onTouchMove),environment.removeEventListener("touchend",onTouchEnd)}}}shouldScroll(prevState,prevProps){let{highlightedIndex:currentHighlightedIndex}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:prevHighlightedIndex}=prevProps.highlightedIndex===void 0?prevState:prevProps;return currentHighlightedIndex&&this.getState().isOpen&&!prevState.isOpen||currentHighlightedIndex!==prevHighlightedIndex}componentDidUpdate(prevProps,prevState){validateControlledUnchanged(this.state,prevProps,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&validateGetMenuPropsCalledCorrectly(this._menuNode,this.getMenuProps),isControlledProp(this.props,"selectedItem")&&this.props.selectedItemChanged(prevProps.selectedItem,this.props.selectedItem)&&this.internalSetState({type:controlledPropUpdatedSelectedItem,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(prevState,prevProps)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){let children=unwrapArray(this.props.children,noop2);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;let element=unwrapArray(children(this.getStateAndHelpers()));if(!element)return null;if(this.getRootProps.called||this.props.suppressRefError)return!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&validateGetRootPropsCalledCorrectly(element,this.getRootProps),element;if(isDOMElement(element))return(0,import_react20.cloneElement)(element,this.getRootProps(getElementProps(element)));throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")}}return Downshift2.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:getA11yStatusMessage$1,itemToString:i3=>i3==null?"":(isPlainObject(i3)&&!i3.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",i3),String(i3)),onStateChange:noop2,onInputValueChange:noop2,onUserAction:noop2,onChange:noop2,onSelect:noop2,onOuterClick:noop2,selectedItemChanged:(prevItem,item)=>prevItem!==item,environment:typeof window>"u"?{}:window,stateReducer:(state,stateToSet)=>stateToSet,suppressRefError:!1,scrollIntoView:scrollIntoView2},Downshift2.stateChangeTypes=stateChangeTypes$3,Downshift2})();Downshift.propTypes={children:import_prop_types2.default.func,defaultHighlightedIndex:import_prop_types2.default.number,defaultIsOpen:import_prop_types2.default.bool,initialHighlightedIndex:import_prop_types2.default.number,initialSelectedItem:import_prop_types2.default.any,initialInputValue:import_prop_types2.default.string,initialIsOpen:import_prop_types2.default.bool,getA11yStatusMessage:import_prop_types2.default.func,itemToString:import_prop_types2.default.func,onChange:import_prop_types2.default.func,onSelect:import_prop_types2.default.func,onStateChange:import_prop_types2.default.func,onInputValueChange:import_prop_types2.default.func,onUserAction:import_prop_types2.default.func,onOuterClick:import_prop_types2.default.func,selectedItemChanged:import_prop_types2.default.func,stateReducer:import_prop_types2.default.func,itemCount:import_prop_types2.default.number,id:import_prop_types2.default.string,environment:import_prop_types2.default.shape({addEventListener:import_prop_types2.default.func,removeEventListener:import_prop_types2.default.func,document:import_prop_types2.default.shape({getElementById:import_prop_types2.default.func,activeElement:import_prop_types2.default.any,body:import_prop_types2.default.any})}),suppressRefError:import_prop_types2.default.bool,scrollIntoView:import_prop_types2.default.func,selectedItem:import_prop_types2.default.any,isOpen:import_prop_types2.default.bool,inputValue:import_prop_types2.default.string,highlightedIndex:import_prop_types2.default.number,labelId:import_prop_types2.default.string,inputId:import_prop_types2.default.string,menuId:import_prop_types2.default.string,getItemId:import_prop_types2.default.func};var Downshift$1=Downshift;function validateGetMenuPropsCalledCorrectly(node,_ref3){let{refKey}=_ref3;node||console.error(`downshift: The ref prop "${refKey}" from getMenuProps was not applied correctly on your menu element.`)}function validateGetRootPropsCalledCorrectly(element,_ref4){let{refKey}=_ref4,refKeySpecified=refKey!=="ref",isComposite=!isDOMElement(element);isComposite&&!refKeySpecified&&!(0,import_react_is.isForwardRef)(element)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!isComposite&&refKeySpecified&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${refKey}"`),!(0,import_react_is.isForwardRef)(element)&&!getElementProps(element)[refKey]&&console.error(`downshift: You must apply the ref prop "${refKey}" from getRootProps onto your root element.`)}var dropdownDefaultStateValues={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function callOnChangeProps(action,state,newState){let{props,type}=action,changes={};Object.keys(state).forEach(key=>{invokeOnChangeHandler(key,action,state,newState),newState[key]!==state[key]&&(changes[key]=newState[key])}),props.onStateChange&&Object.keys(changes).length&&props.onStateChange({type,...changes})}function invokeOnChangeHandler(key,action,state,newState){let{props,type}=action,handler=`on${capitalizeString(key)}Change`;props[handler]&&newState[key]!==void 0&&newState[key]!==state[key]&&props[handler]({type,...newState})}function stateReducer(s2,a2){return a2.changes}function getA11ySelectionMessage(selectionParameters){let{selectedItem,itemToString:itemToStringLocal}=selectionParameters;return selectedItem?`${itemToStringLocal(selectedItem)} has been selected.`:""}var updateA11yStatus=debounce((getA11yMessage,document10)=>{setStatus(getA11yMessage(),document10)},200),useIsomorphicLayoutEffect=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?import_react20.useLayoutEffect:import_react20.useEffect;function useElementIds(_ref){let{id=`downshift-${generateId()}`,labelId,menuId,getItemId,toggleButtonId,inputId}=_ref;return(0,import_react20.useRef)({labelId:labelId||`${id}-label`,menuId:menuId||`${id}-menu`,getItemId:getItemId||(index=>`${id}-item-${index}`),toggleButtonId:toggleButtonId||`${id}-toggle-button`,inputId:inputId||`${id}-input`}).current}function getItemIndex(index,item,items){return index!==void 0?index:items.length===0?-1:items.indexOf(item)}function itemToString(item){return item?String(item):""}function isAcceptedCharacterKey(key){return/^\S{1}$/.test(key)}function capitalizeString(string){return`${string.slice(0,1).toUpperCase()}${string.slice(1)}`}function useLatestRef(val){let ref=(0,import_react20.useRef)(val);return ref.current=val,ref}function useEnhancedReducer(reducer,initialState,props){let prevStateRef=(0,import_react20.useRef)(),actionRef=(0,import_react20.useRef)(),enhancedReducer=(0,import_react20.useCallback)((state2,action2)=>{actionRef.current=action2,state2=getState(state2,action2.props);let changes=reducer(state2,action2);return action2.props.stateReducer(state2,{...action2,changes})},[reducer]),[state,dispatch]=(0,import_react20.useReducer)(enhancedReducer,initialState),propsRef=useLatestRef(props),dispatchWithProps=(0,import_react20.useCallback)(action2=>dispatch({props:propsRef.current,...action2}),[propsRef]),action=actionRef.current;return(0,import_react20.useEffect)(()=>{action&&prevStateRef.current&&prevStateRef.current!==state&&callOnChangeProps(action,getState(prevStateRef.current,action.props),state),prevStateRef.current=state},[state,props,action]),[state,dispatchWithProps]}function useControlledReducer$1(reducer,initialState,props){let[state,dispatch]=useEnhancedReducer(reducer,initialState,props);return[getState(state,props),dispatch]}var defaultProps$3={itemToString,stateReducer,getA11ySelectionMessage,scrollIntoView:scrollIntoView2,circularNavigation:!1,environment:typeof window>"u"?{}:window};function getDefaultValue$1(props,propKey,defaultStateValues2){defaultStateValues2===void 0&&(defaultStateValues2=dropdownDefaultStateValues);let defaultValue=props[`default${capitalizeString(propKey)}`];return defaultValue!==void 0?defaultValue:defaultStateValues2[propKey]}function getInitialValue$1(props,propKey,defaultStateValues2){defaultStateValues2===void 0&&(defaultStateValues2=dropdownDefaultStateValues);let value=props[propKey];if(value!==void 0)return value;let initialValue=props[`initial${capitalizeString(propKey)}`];return initialValue!==void 0?initialValue:getDefaultValue$1(props,propKey,defaultStateValues2)}function getInitialState$2(props){let selectedItem=getInitialValue$1(props,"selectedItem"),isOpen=getInitialValue$1(props,"isOpen"),highlightedIndex=getInitialValue$1(props,"highlightedIndex"),inputValue=getInitialValue$1(props,"inputValue");return{highlightedIndex:highlightedIndex<0&&selectedItem&&isOpen?props.items.indexOf(selectedItem):highlightedIndex,isOpen,selectedItem,inputValue}}function getHighlightedIndexOnOpen(props,state,offset,getItemNodeFromIndex){let{items,initialHighlightedIndex,defaultHighlightedIndex}=props,{selectedItem,highlightedIndex}=state;return items.length===0?-1:initialHighlightedIndex!==void 0&&highlightedIndex===initialHighlightedIndex?initialHighlightedIndex:defaultHighlightedIndex!==void 0?defaultHighlightedIndex:selectedItem?offset===0?items.indexOf(selectedItem):getNextWrappingIndex(offset,items.indexOf(selectedItem),items.length,getItemNodeFromIndex,!1):offset===0?-1:offset<0?items.length-1:0}function useMouseAndTouchTracker(isOpen,downshiftElementRefs,environment,handleBlur){let mouseAndTouchTrackersRef=(0,import_react20.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,import_react20.useEffect)(()=>{let onMouseDown=()=>{mouseAndTouchTrackersRef.current.isMouseDown=!0},onMouseUp=event=>{mouseAndTouchTrackersRef.current.isMouseDown=!1,isOpen&&!targetWithinDownshift(event.target,downshiftElementRefs.map(ref=>ref.current),environment)&&handleBlur()},onTouchStart=()=>{mouseAndTouchTrackersRef.current.isTouchMove=!1},onTouchMove=()=>{mouseAndTouchTrackersRef.current.isTouchMove=!0},onTouchEnd=event=>{isOpen&&!mouseAndTouchTrackersRef.current.isTouchMove&&!targetWithinDownshift(event.target,downshiftElementRefs.map(ref=>ref.current),environment,!1)&&handleBlur()};return environment.addEventListener("mousedown",onMouseDown),environment.addEventListener("mouseup",onMouseUp),environment.addEventListener("touchstart",onTouchStart),environment.addEventListener("touchmove",onTouchMove),environment.addEventListener("touchend",onTouchEnd),function(){environment.removeEventListener("mousedown",onMouseDown),environment.removeEventListener("mouseup",onMouseUp),environment.removeEventListener("touchstart",onTouchStart),environment.removeEventListener("touchmove",onTouchMove),environment.removeEventListener("touchend",onTouchEnd)}},[isOpen,environment]),mouseAndTouchTrackersRef}var useGetterPropsCalledChecker=()=>noop2;useGetterPropsCalledChecker=function(){let isInitialMountRef=(0,import_react20.useRef)(!0);for(var _len=arguments.length,propKeys=new Array(_len),_key=0;_key<_len;_key++)propKeys[_key]=arguments[_key];let getterPropsCalledRef=(0,import_react20.useRef)(propKeys.reduce((acc,propKey)=>(acc[propKey]={},acc),{}));return(0,import_react20.useEffect)(()=>{Object.keys(getterPropsCalledRef.current).forEach(propKey=>{let propCallInfo=getterPropsCalledRef.current[propKey];if(isInitialMountRef.current&&!Object.keys(propCallInfo).length){console.error(`downshift: You forgot to call the ${propKey} getter function on your component / element.`);return}let{suppressRefError,refKey,elementRef}=propCallInfo;(!elementRef||!elementRef.current)&&!suppressRefError&&console.error(`downshift: The ref prop "${refKey}" from ${propKey} was not applied correctly on your element.`)}),isInitialMountRef.current=!1}),(0,import_react20.useCallback)((propKey,suppressRefError,refKey,elementRef)=>{getterPropsCalledRef.current[propKey]={suppressRefError,refKey,elementRef}},[])};function useA11yMessageSetter(getA11yMessage,dependencyArray,_ref2){let{isInitialMount,highlightedIndex,items,environment,...rest}=_ref2;(0,import_react20.useEffect)(()=>{isInitialMount||updateA11yStatus(()=>getA11yMessage({highlightedIndex,highlightedItem:items[highlightedIndex],resultCount:items.length,...rest}),environment.document)},dependencyArray)}function useScrollIntoView(_ref3){let{highlightedIndex,isOpen,itemRefs,getItemNodeFromIndex,menuElement,scrollIntoView:scrollIntoViewProp}=_ref3,shouldScrollRef=(0,import_react20.useRef)(!0);return useIsomorphicLayoutEffect(()=>{highlightedIndex<0||!isOpen||!Object.keys(itemRefs.current).length||(shouldScrollRef.current===!1?shouldScrollRef.current=!0:scrollIntoViewProp(getItemNodeFromIndex(highlightedIndex),menuElement))},[highlightedIndex]),shouldScrollRef}var useControlPropsValidator=noop2;useControlPropsValidator=_ref4=>{let{isInitialMount,props,state}=_ref4,prevPropsRef=(0,import_react20.useRef)(props);(0,import_react20.useEffect)(()=>{isInitialMount||(validateControlledUnchanged(state,prevPropsRef.current,props),prevPropsRef.current=props)},[state,props,isInitialMount])};function downshiftCommonReducer(state,action,stateChangeTypes2){let{type,props}=action,changes;switch(type){case stateChangeTypes2.ItemMouseMove:changes={highlightedIndex:action.disabled?-1:action.index};break;case stateChangeTypes2.MenuMouseLeave:changes={highlightedIndex:-1};break;case stateChangeTypes2.ToggleButtonClick:case stateChangeTypes2.FunctionToggleMenu:changes={isOpen:!state.isOpen,highlightedIndex:state.isOpen?-1:getHighlightedIndexOnOpen(props,state,0)};break;case stateChangeTypes2.FunctionOpenMenu:changes={isOpen:!0,highlightedIndex:getHighlightedIndexOnOpen(props,state,0)};break;case stateChangeTypes2.FunctionCloseMenu:changes={isOpen:!1};break;case stateChangeTypes2.FunctionSetHighlightedIndex:changes={highlightedIndex:action.highlightedIndex};break;case stateChangeTypes2.FunctionSetInputValue:changes={inputValue:action.inputValue};break;case stateChangeTypes2.FunctionReset:changes={highlightedIndex:getDefaultValue$1(props,"highlightedIndex"),isOpen:getDefaultValue$1(props,"isOpen"),selectedItem:getDefaultValue$1(props,"selectedItem"),inputValue:getDefaultValue$1(props,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...state,...changes}}function getItemIndexByCharacterKey(_a){for(var keysSoFar=_a.keysSoFar,highlightedIndex=_a.highlightedIndex,items=_a.items,itemToString2=_a.itemToString,getItemNodeFromIndex=_a.getItemNodeFromIndex,lowerCasedKeysSoFar=keysSoFar.toLowerCase(),index=0;index=0&&{selectedItem:props.items[itemIndex]}}}break;case ToggleButtonKeyDownArrowDown:changes={highlightedIndex:getHighlightedIndexOnOpen(props,state,1,action.getItemNodeFromIndex),isOpen:!0};break;case ToggleButtonKeyDownArrowUp:changes={highlightedIndex:getHighlightedIndexOnOpen(props,state,-1,action.getItemNodeFromIndex),isOpen:!0};break;case MenuKeyDownEnter:case MenuKeyDownSpaceButton:changes={isOpen:getDefaultValue$1(props,"isOpen"),highlightedIndex:getDefaultValue$1(props,"highlightedIndex"),...state.highlightedIndex>=0&&{selectedItem:props.items[state.highlightedIndex]}};break;case MenuKeyDownHome:changes={highlightedIndex:getNextNonDisabledIndex(1,0,props.items.length,action.getItemNodeFromIndex,!1)};break;case MenuKeyDownEnd:changes={highlightedIndex:getNextNonDisabledIndex(-1,props.items.length-1,props.items.length,action.getItemNodeFromIndex,!1)};break;case MenuKeyDownEscape:changes={isOpen:!1,highlightedIndex:-1};break;case MenuBlur:changes={isOpen:!1,highlightedIndex:-1};break;case MenuKeyDownCharacter:{let lowercasedKey=action.key,inputValue=`${state.inputValue}${lowercasedKey}`,highlightedIndex=getItemIndexByCharacterKey({keysSoFar:inputValue,highlightedIndex:state.highlightedIndex,items:props.items,itemToString:props.itemToString,getItemNodeFromIndex:action.getItemNodeFromIndex});changes={inputValue,...highlightedIndex>=0&&{highlightedIndex}}}break;case MenuKeyDownArrowDown:changes={highlightedIndex:getNextWrappingIndex(shiftKey?5:1,state.highlightedIndex,props.items.length,action.getItemNodeFromIndex,props.circularNavigation)};break;case MenuKeyDownArrowUp:changes={highlightedIndex:getNextWrappingIndex(shiftKey?-5:-1,state.highlightedIndex,props.items.length,action.getItemNodeFromIndex,props.circularNavigation)};break;case FunctionSelectItem$1:changes={selectedItem:action.selectedItem};break;default:return downshiftCommonReducer(state,action,stateChangeTypes$2)}return{...state,...changes}}useSelect.stateChangeTypes=stateChangeTypes$2;function useSelect(userProps){userProps===void 0&&(userProps={}),validatePropTypes$2(userProps,useSelect);let props={...defaultProps$2,...userProps},{items,scrollIntoView:scrollIntoView3,environment,initialIsOpen,defaultIsOpen,itemToString:itemToString2,getA11ySelectionMessage:getA11ySelectionMessage2,getA11yStatusMessage:getA11yStatusMessage2}=props,initialState=getInitialState$2(props),[state,dispatch]=useControlledReducer$1(downshiftSelectReducer,initialState,props),{isOpen,highlightedIndex,selectedItem,inputValue}=state,toggleButtonRef=(0,import_react20.useRef)(null),menuRef=(0,import_react20.useRef)(null),itemRefs=(0,import_react20.useRef)({}),shouldBlurRef=(0,import_react20.useRef)(!0),clearTimeoutRef=(0,import_react20.useRef)(null),elementIds=useElementIds(props),previousResultCountRef=(0,import_react20.useRef)(),isInitialMountRef=(0,import_react20.useRef)(!0),latest=useLatestRef({state,props}),getItemNodeFromIndex=(0,import_react20.useCallback)(index=>itemRefs.current[elementIds.getItemId(index)],[elementIds]);useA11yMessageSetter(getA11yStatusMessage2,[isOpen,highlightedIndex,inputValue,items],{isInitialMount:isInitialMountRef.current,previousResultCount:previousResultCountRef.current,items,environment,itemToString:itemToString2,...state}),useA11yMessageSetter(getA11ySelectionMessage2,[selectedItem],{isInitialMount:isInitialMountRef.current,previousResultCount:previousResultCountRef.current,items,environment,itemToString:itemToString2,...state});let shouldScrollRef=useScrollIntoView({menuElement:menuRef.current,highlightedIndex,isOpen,itemRefs,scrollIntoView:scrollIntoView3,getItemNodeFromIndex});(0,import_react20.useEffect)(()=>(clearTimeoutRef.current=debounce(outerDispatch=>{outerDispatch({type:FunctionSetInputValue$1,inputValue:""})},500),()=>{clearTimeoutRef.current.cancel()}),[]),(0,import_react20.useEffect)(()=>{inputValue&&clearTimeoutRef.current(dispatch)},[dispatch,inputValue]),useControlPropsValidator({isInitialMount:isInitialMountRef.current,props,state}),(0,import_react20.useEffect)(()=>{if(isInitialMountRef.current){(initialIsOpen||defaultIsOpen||isOpen)&&menuRef.current&&menuRef.current.focus();return}if(isOpen){menuRef.current&&menuRef.current.focus();return}environment.document.activeElement===menuRef.current&&toggleButtonRef.current&&(shouldBlurRef.current=!1,toggleButtonRef.current.focus())},[isOpen]),(0,import_react20.useEffect)(()=>{isInitialMountRef.current||(previousResultCountRef.current=items.length)});let mouseAndTouchTrackersRef=useMouseAndTouchTracker(isOpen,[menuRef,toggleButtonRef],environment,()=>{dispatch({type:MenuBlur})}),setGetterPropCallInfo=useGetterPropsCalledChecker("getMenuProps","getToggleButtonProps");(0,import_react20.useEffect)(()=>{isInitialMountRef.current=!1},[]),(0,import_react20.useEffect)(()=>{isOpen||(itemRefs.current={})},[isOpen]);let toggleButtonKeyDownHandlers=(0,import_react20.useMemo)(()=>({ArrowDown(event){event.preventDefault(),dispatch({type:ToggleButtonKeyDownArrowDown,getItemNodeFromIndex,shiftKey:event.shiftKey})},ArrowUp(event){event.preventDefault(),dispatch({type:ToggleButtonKeyDownArrowUp,getItemNodeFromIndex,shiftKey:event.shiftKey})}}),[dispatch,getItemNodeFromIndex]),menuKeyDownHandlers=(0,import_react20.useMemo)(()=>({ArrowDown(event){event.preventDefault(),dispatch({type:MenuKeyDownArrowDown,getItemNodeFromIndex,shiftKey:event.shiftKey})},ArrowUp(event){event.preventDefault(),dispatch({type:MenuKeyDownArrowUp,getItemNodeFromIndex,shiftKey:event.shiftKey})},Home(event){event.preventDefault(),dispatch({type:MenuKeyDownHome,getItemNodeFromIndex})},End(event){event.preventDefault(),dispatch({type:MenuKeyDownEnd,getItemNodeFromIndex})},Escape(){dispatch({type:MenuKeyDownEscape})},Enter(event){event.preventDefault(),dispatch({type:MenuKeyDownEnter})}," "(event){event.preventDefault(),dispatch({type:MenuKeyDownSpaceButton})}}),[dispatch,getItemNodeFromIndex]),toggleMenu=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionToggleMenu$1})},[dispatch]),closeMenu=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionCloseMenu$1})},[dispatch]),openMenu=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionOpenMenu$1})},[dispatch]),setHighlightedIndex=(0,import_react20.useCallback)(newHighlightedIndex=>{dispatch({type:FunctionSetHighlightedIndex$1,highlightedIndex:newHighlightedIndex})},[dispatch]),selectItem=(0,import_react20.useCallback)(newSelectedItem=>{dispatch({type:FunctionSelectItem$1,selectedItem:newSelectedItem})},[dispatch]),reset=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionReset$2})},[dispatch]),setInputValue=(0,import_react20.useCallback)(newInputValue=>{dispatch({type:FunctionSetInputValue$1,inputValue:newInputValue})},[dispatch]),getLabelProps=(0,import_react20.useCallback)(labelProps=>({id:elementIds.labelId,htmlFor:elementIds.toggleButtonId,...labelProps}),[elementIds]),getMenuProps=(0,import_react20.useCallback)(function(_temp,_temp2){let{onMouseLeave,refKey="ref",onKeyDown,onBlur,ref,...rest}=_temp===void 0?{}:_temp,{suppressRefError=!1}=_temp2===void 0?{}:_temp2,latestState=latest.current.state,menuHandleKeyDown=event=>{let key=normalizeArrowKey(event);key&&menuKeyDownHandlers[key]?menuKeyDownHandlers[key](event):isAcceptedCharacterKey(key)&&dispatch({type:MenuKeyDownCharacter,key,getItemNodeFromIndex})},menuHandleBlur=()=>{if(shouldBlurRef.current===!1){shouldBlurRef.current=!0;return}!mouseAndTouchTrackersRef.current.isMouseDown&&dispatch({type:MenuBlur})},menuHandleMouseLeave=()=>{dispatch({type:MenuMouseLeave$1})};return setGetterPropCallInfo("getMenuProps",suppressRefError,refKey,menuRef),{[refKey]:handleRefs(ref,menuNode=>{menuRef.current=menuNode}),id:elementIds.menuId,role:"listbox","aria-labelledby":elementIds.labelId,tabIndex:-1,...latestState.isOpen&&latestState.highlightedIndex>-1&&{"aria-activedescendant":elementIds.getItemId(latestState.highlightedIndex)},onMouseLeave:callAllEventHandlers(onMouseLeave,menuHandleMouseLeave),onKeyDown:callAllEventHandlers(onKeyDown,menuHandleKeyDown),onBlur:callAllEventHandlers(onBlur,menuHandleBlur),...rest}},[dispatch,latest,menuKeyDownHandlers,mouseAndTouchTrackersRef,setGetterPropCallInfo,elementIds,getItemNodeFromIndex]),getToggleButtonProps=(0,import_react20.useCallback)(function(_temp3,_temp4){let{onClick,onKeyDown,refKey="ref",ref,...rest}=_temp3===void 0?{}:_temp3,{suppressRefError=!1}=_temp4===void 0?{}:_temp4,toggleButtonHandleClick=()=>{dispatch({type:ToggleButtonClick$1})},toggleButtonHandleKeyDown=event=>{let key=normalizeArrowKey(event);key&&toggleButtonKeyDownHandlers[key]?toggleButtonKeyDownHandlers[key](event):isAcceptedCharacterKey(key)&&dispatch({type:ToggleButtonKeyDownCharacter,key,getItemNodeFromIndex})},toggleProps={[refKey]:handleRefs(ref,toggleButtonNode=>{toggleButtonRef.current=toggleButtonNode}),id:elementIds.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":latest.current.state.isOpen,"aria-labelledby":`${elementIds.labelId} ${elementIds.toggleButtonId}`,...rest};return rest.disabled||(toggleProps.onClick=callAllEventHandlers(onClick,toggleButtonHandleClick),toggleProps.onKeyDown=callAllEventHandlers(onKeyDown,toggleButtonHandleKeyDown)),setGetterPropCallInfo("getToggleButtonProps",suppressRefError,refKey,toggleButtonRef),toggleProps},[dispatch,latest,toggleButtonKeyDownHandlers,setGetterPropCallInfo,elementIds,getItemNodeFromIndex]),getItemProps=(0,import_react20.useCallback)(function(_temp5){let{item,index,onMouseMove,onClick,refKey="ref",ref,disabled,...rest}=_temp5===void 0?{}:_temp5,{state:latestState,props:latestProps}=latest.current,itemHandleMouseMove=()=>{index!==latestState.highlightedIndex&&(shouldScrollRef.current=!1,dispatch({type:ItemMouseMove$1,index,disabled}))},itemHandleClick=()=>{dispatch({type:ItemClick$1,index})},itemIndex=getItemIndex(index,item,latestProps.items);if(itemIndex<0)throw new Error("Pass either item or item index in getItemProps!");let itemProps={disabled,role:"option","aria-selected":`${itemIndex===latestState.highlightedIndex}`,id:elementIds.getItemId(itemIndex),[refKey]:handleRefs(ref,itemNode=>{itemNode&&(itemRefs.current[elementIds.getItemId(itemIndex)]=itemNode)}),...rest};return disabled||(itemProps.onClick=callAllEventHandlers(onClick,itemHandleClick)),itemProps.onMouseMove=callAllEventHandlers(onMouseMove,itemHandleMouseMove),itemProps},[dispatch,latest,shouldScrollRef,elementIds]);return{getToggleButtonProps,getLabelProps,getMenuProps,getItemProps,toggleMenu,openMenu,closeMenu,setHighlightedIndex,selectItem,reset,setInputValue,highlightedIndex,isOpen,selectedItem,inputValue}}var InputKeyDownArrowDown="__input_keydown_arrow_down__",InputKeyDownArrowUp="__input_keydown_arrow_up__",InputKeyDownEscape="__input_keydown_escape__",InputKeyDownHome="__input_keydown_home__",InputKeyDownEnd="__input_keydown_end__",InputKeyDownEnter="__input_keydown_enter__",InputChange="__input_change__",InputBlur="__input_blur__",MenuMouseLeave="__menu_mouse_leave__",ItemMouseMove="__item_mouse_move__",ItemClick="__item_click__",ToggleButtonClick="__togglebutton_click__",FunctionToggleMenu="__function_toggle_menu__",FunctionOpenMenu="__function_open_menu__",FunctionCloseMenu="__function_close_menu__",FunctionSetHighlightedIndex="__function_set_highlighted_index__",FunctionSelectItem="__function_select_item__",FunctionSetInputValue="__function_set_input_value__",FunctionReset$1="__function_reset__",ControlledPropUpdatedSelectedItem="__controlled_prop_updated_selected_item__",stateChangeTypes$1=Object.freeze({__proto__:null,InputKeyDownArrowDown,InputKeyDownArrowUp,InputKeyDownEscape,InputKeyDownHome,InputKeyDownEnd,InputKeyDownEnter,InputChange,InputBlur,MenuMouseLeave,ItemMouseMove,ItemClick,ToggleButtonClick,FunctionToggleMenu,FunctionOpenMenu,FunctionCloseMenu,FunctionSetHighlightedIndex,FunctionSelectItem,FunctionSetInputValue,FunctionReset:FunctionReset$1,ControlledPropUpdatedSelectedItem});function getInitialState$1(props){let initialState=getInitialState$2(props),{selectedItem}=initialState,{inputValue}=initialState;return inputValue===""&&selectedItem&&props.defaultInputValue===void 0&&props.initialInputValue===void 0&&props.inputValue===void 0&&(inputValue=props.itemToString(selectedItem)),{...initialState,inputValue}}var propTypes$1={items:import_prop_types2.default.array.isRequired,itemToString:import_prop_types2.default.func,getA11yStatusMessage:import_prop_types2.default.func,getA11ySelectionMessage:import_prop_types2.default.func,circularNavigation:import_prop_types2.default.bool,highlightedIndex:import_prop_types2.default.number,defaultHighlightedIndex:import_prop_types2.default.number,initialHighlightedIndex:import_prop_types2.default.number,isOpen:import_prop_types2.default.bool,defaultIsOpen:import_prop_types2.default.bool,initialIsOpen:import_prop_types2.default.bool,selectedItem:import_prop_types2.default.any,initialSelectedItem:import_prop_types2.default.any,defaultSelectedItem:import_prop_types2.default.any,inputValue:import_prop_types2.default.string,defaultInputValue:import_prop_types2.default.string,initialInputValue:import_prop_types2.default.string,id:import_prop_types2.default.string,labelId:import_prop_types2.default.string,menuId:import_prop_types2.default.string,getItemId:import_prop_types2.default.func,inputId:import_prop_types2.default.string,toggleButtonId:import_prop_types2.default.string,stateReducer:import_prop_types2.default.func,onSelectedItemChange:import_prop_types2.default.func,onHighlightedIndexChange:import_prop_types2.default.func,onStateChange:import_prop_types2.default.func,onIsOpenChange:import_prop_types2.default.func,onInputValueChange:import_prop_types2.default.func,environment:import_prop_types2.default.shape({addEventListener:import_prop_types2.default.func,removeEventListener:import_prop_types2.default.func,document:import_prop_types2.default.shape({getElementById:import_prop_types2.default.func,activeElement:import_prop_types2.default.any,body:import_prop_types2.default.any})})};function useControlledReducer(reducer,initialState,props){let previousSelectedItemRef=(0,import_react20.useRef)(),[state,dispatch]=useEnhancedReducer(reducer,initialState,props);return(0,import_react20.useEffect)(()=>{isControlledProp(props,"selectedItem")&&(previousSelectedItemRef.current!==props.selectedItem&&dispatch({type:ControlledPropUpdatedSelectedItem,inputValue:props.itemToString(props.selectedItem)}),previousSelectedItemRef.current=state.selectedItem===previousSelectedItemRef.current?props.selectedItem:state.selectedItem)}),[getState(state,props),dispatch]}var validatePropTypes$1=noop2;validatePropTypes$1=(options2,caller)=>{import_prop_types2.default.checkPropTypes(propTypes$1,options2,"prop",caller.name)};var defaultProps$1={...defaultProps$3,getA11yStatusMessage:getA11yStatusMessage$1,circularNavigation:!0};function downshiftUseComboboxReducer(state,action){let{type,props,shiftKey}=action,changes;switch(type){case ItemClick:changes={isOpen:getDefaultValue$1(props,"isOpen"),highlightedIndex:getDefaultValue$1(props,"highlightedIndex"),selectedItem:props.items[action.index],inputValue:props.itemToString(props.items[action.index])};break;case InputKeyDownArrowDown:state.isOpen?changes={highlightedIndex:getNextWrappingIndex(shiftKey?5:1,state.highlightedIndex,props.items.length,action.getItemNodeFromIndex,props.circularNavigation)}:changes={highlightedIndex:getHighlightedIndexOnOpen(props,state,1,action.getItemNodeFromIndex),isOpen:props.items.length>=0};break;case InputKeyDownArrowUp:state.isOpen?changes={highlightedIndex:getNextWrappingIndex(shiftKey?-5:-1,state.highlightedIndex,props.items.length,action.getItemNodeFromIndex,props.circularNavigation)}:changes={highlightedIndex:getHighlightedIndexOnOpen(props,state,-1,action.getItemNodeFromIndex),isOpen:props.items.length>=0};break;case InputKeyDownEnter:changes={...state.isOpen&&state.highlightedIndex>=0&&{selectedItem:props.items[state.highlightedIndex],isOpen:getDefaultValue$1(props,"isOpen"),highlightedIndex:getDefaultValue$1(props,"highlightedIndex"),inputValue:props.itemToString(props.items[state.highlightedIndex])}};break;case InputKeyDownEscape:changes={isOpen:!1,highlightedIndex:-1,...!state.isOpen&&{selectedItem:null,inputValue:""}};break;case InputKeyDownHome:changes={highlightedIndex:getNextNonDisabledIndex(1,0,props.items.length,action.getItemNodeFromIndex,!1)};break;case InputKeyDownEnd:changes={highlightedIndex:getNextNonDisabledIndex(-1,props.items.length-1,props.items.length,action.getItemNodeFromIndex,!1)};break;case InputBlur:changes={isOpen:!1,highlightedIndex:-1,...state.highlightedIndex>=0&&action.selectItem&&{selectedItem:props.items[state.highlightedIndex],inputValue:props.itemToString(props.items[state.highlightedIndex])}};break;case InputChange:changes={isOpen:!0,highlightedIndex:getDefaultValue$1(props,"highlightedIndex"),inputValue:action.inputValue};break;case FunctionSelectItem:changes={selectedItem:action.selectedItem,inputValue:props.itemToString(action.selectedItem)};break;case ControlledPropUpdatedSelectedItem:changes={inputValue:action.inputValue};break;default:return downshiftCommonReducer(state,action,stateChangeTypes$1)}return{...state,...changes}}useCombobox.stateChangeTypes=stateChangeTypes$1;function useCombobox(userProps){userProps===void 0&&(userProps={}),validatePropTypes$1(userProps,useCombobox);let props={...defaultProps$1,...userProps},{initialIsOpen,defaultIsOpen,items,scrollIntoView:scrollIntoView3,environment,getA11yStatusMessage:getA11yStatusMessage2,getA11ySelectionMessage:getA11ySelectionMessage2,itemToString:itemToString2}=props,initialState=getInitialState$1(props),[state,dispatch]=useControlledReducer(downshiftUseComboboxReducer,initialState,props),{isOpen,highlightedIndex,selectedItem,inputValue}=state,menuRef=(0,import_react20.useRef)(null),itemRefs=(0,import_react20.useRef)({}),inputRef=(0,import_react20.useRef)(null),toggleButtonRef=(0,import_react20.useRef)(null),comboboxRef=(0,import_react20.useRef)(null),isInitialMountRef=(0,import_react20.useRef)(!0),elementIds=useElementIds(props),previousResultCountRef=(0,import_react20.useRef)(),latest=useLatestRef({state,props}),getItemNodeFromIndex=(0,import_react20.useCallback)(index=>itemRefs.current[elementIds.getItemId(index)],[elementIds]);useA11yMessageSetter(getA11yStatusMessage2,[isOpen,highlightedIndex,inputValue,items],{isInitialMount:isInitialMountRef.current,previousResultCount:previousResultCountRef.current,items,environment,itemToString:itemToString2,...state}),useA11yMessageSetter(getA11ySelectionMessage2,[selectedItem],{isInitialMount:isInitialMountRef.current,previousResultCount:previousResultCountRef.current,items,environment,itemToString:itemToString2,...state});let shouldScrollRef=useScrollIntoView({menuElement:menuRef.current,highlightedIndex,isOpen,itemRefs,scrollIntoView:scrollIntoView3,getItemNodeFromIndex});useControlPropsValidator({isInitialMount:isInitialMountRef.current,props,state}),(0,import_react20.useEffect)(()=>{(initialIsOpen||defaultIsOpen||isOpen)&&inputRef.current&&inputRef.current.focus()},[]),(0,import_react20.useEffect)(()=>{isInitialMountRef.current||(previousResultCountRef.current=items.length)});let mouseAndTouchTrackersRef=useMouseAndTouchTracker(isOpen,[comboboxRef,menuRef,toggleButtonRef],environment,()=>{dispatch({type:InputBlur,selectItem:!1})}),setGetterPropCallInfo=useGetterPropsCalledChecker("getInputProps","getComboboxProps","getMenuProps");(0,import_react20.useEffect)(()=>{isInitialMountRef.current=!1},[]),(0,import_react20.useEffect)(()=>{isOpen||(itemRefs.current={})},[isOpen]);let inputKeyDownHandlers=(0,import_react20.useMemo)(()=>({ArrowDown(event){event.preventDefault(),dispatch({type:InputKeyDownArrowDown,shiftKey:event.shiftKey,getItemNodeFromIndex})},ArrowUp(event){event.preventDefault(),dispatch({type:InputKeyDownArrowUp,shiftKey:event.shiftKey,getItemNodeFromIndex})},Home(event){latest.current.state.isOpen&&(event.preventDefault(),dispatch({type:InputKeyDownHome,getItemNodeFromIndex}))},End(event){latest.current.state.isOpen&&(event.preventDefault(),dispatch({type:InputKeyDownEnd,getItemNodeFromIndex}))},Escape(event){let latestState=latest.current.state;(latestState.isOpen||latestState.inputValue||latestState.selectedItem||latestState.highlightedIndex>-1)&&(event.preventDefault(),dispatch({type:InputKeyDownEscape}))},Enter(event){let latestState=latest.current.state;!latestState.isOpen||latestState.highlightedIndex<0||event.which===229||(event.preventDefault(),dispatch({type:InputKeyDownEnter,getItemNodeFromIndex}))}}),[dispatch,latest,getItemNodeFromIndex]),getLabelProps=(0,import_react20.useCallback)(labelProps=>({id:elementIds.labelId,htmlFor:elementIds.inputId,...labelProps}),[elementIds]),getMenuProps=(0,import_react20.useCallback)(function(_temp,_temp2){let{onMouseLeave,refKey="ref",ref,...rest}=_temp===void 0?{}:_temp,{suppressRefError=!1}=_temp2===void 0?{}:_temp2;return setGetterPropCallInfo("getMenuProps",suppressRefError,refKey,menuRef),{[refKey]:handleRefs(ref,menuNode=>{menuRef.current=menuNode}),id:elementIds.menuId,role:"listbox","aria-labelledby":elementIds.labelId,onMouseLeave:callAllEventHandlers(onMouseLeave,()=>{dispatch({type:MenuMouseLeave})}),...rest}},[dispatch,setGetterPropCallInfo,elementIds]),getItemProps=(0,import_react20.useCallback)(function(_temp3){let{item,index,refKey="ref",ref,onMouseMove,onMouseDown,onClick,onPress,disabled,...rest}=_temp3===void 0?{}:_temp3,{props:latestProps,state:latestState}=latest.current,itemIndex=getItemIndex(index,item,latestProps.items);if(itemIndex<0)throw new Error("Pass either item or item index in getItemProps!");let onSelectKey="onClick",customClickHandler=onClick,itemHandleMouseMove=()=>{index!==latestState.highlightedIndex&&(shouldScrollRef.current=!1,dispatch({type:ItemMouseMove,index,disabled}))},itemHandleClick=()=>{dispatch({type:ItemClick,index})},itemHandleMouseDown=e3=>e3.preventDefault();return{[refKey]:handleRefs(ref,itemNode=>{itemNode&&(itemRefs.current[elementIds.getItemId(itemIndex)]=itemNode)}),disabled,role:"option","aria-selected":`${itemIndex===latestState.highlightedIndex}`,id:elementIds.getItemId(itemIndex),...!disabled&&{[onSelectKey]:callAllEventHandlers(customClickHandler,itemHandleClick)},onMouseMove:callAllEventHandlers(onMouseMove,itemHandleMouseMove),onMouseDown:callAllEventHandlers(onMouseDown,itemHandleMouseDown),...rest}},[dispatch,latest,shouldScrollRef,elementIds]),getToggleButtonProps=(0,import_react20.useCallback)(function(_temp4){let{onClick,onPress,refKey="ref",ref,...rest}=_temp4===void 0?{}:_temp4,toggleButtonHandleClick=()=>{dispatch({type:ToggleButtonClick}),!latest.current.state.isOpen&&inputRef.current&&inputRef.current.focus()};return{[refKey]:handleRefs(ref,toggleButtonNode=>{toggleButtonRef.current=toggleButtonNode}),id:elementIds.toggleButtonId,tabIndex:-1,...!rest.disabled&&{onClick:callAllEventHandlers(onClick,toggleButtonHandleClick)},...rest}},[dispatch,latest,elementIds]),getInputProps=(0,import_react20.useCallback)(function(_temp5,_temp6){let{onKeyDown,onChange,onInput,onBlur,onChangeText,refKey="ref",ref,...rest}=_temp5===void 0?{}:_temp5,{suppressRefError=!1}=_temp6===void 0?{}:_temp6;setGetterPropCallInfo("getInputProps",suppressRefError,refKey,inputRef);let latestState=latest.current.state,inputHandleKeyDown=event=>{let key=normalizeArrowKey(event);key&&inputKeyDownHandlers[key]&&inputKeyDownHandlers[key](event)},inputHandleChange=event=>{dispatch({type:InputChange,inputValue:event.target.value})},inputHandleBlur=()=>{latestState.isOpen&&!mouseAndTouchTrackersRef.current.isMouseDown&&dispatch({type:InputBlur,selectItem:!0})},onChangeKey="onChange",eventHandlers={};return rest.disabled||(eventHandlers={[onChangeKey]:callAllEventHandlers(onChange,onInput,inputHandleChange),onKeyDown:callAllEventHandlers(onKeyDown,inputHandleKeyDown),onBlur:callAllEventHandlers(onBlur,inputHandleBlur)}),{[refKey]:handleRefs(ref,inputNode=>{inputRef.current=inputNode}),id:elementIds.inputId,"aria-autocomplete":"list","aria-controls":elementIds.menuId,...latestState.isOpen&&latestState.highlightedIndex>-1&&{"aria-activedescendant":elementIds.getItemId(latestState.highlightedIndex)},"aria-labelledby":elementIds.labelId,autoComplete:"off",value:latestState.inputValue,...eventHandlers,...rest}},[dispatch,inputKeyDownHandlers,latest,mouseAndTouchTrackersRef,setGetterPropCallInfo,elementIds]),getComboboxProps=(0,import_react20.useCallback)(function(_temp7,_temp8){let{refKey="ref",ref,...rest}=_temp7===void 0?{}:_temp7,{suppressRefError=!1}=_temp8===void 0?{}:_temp8;return setGetterPropCallInfo("getComboboxProps",suppressRefError,refKey,comboboxRef),{[refKey]:handleRefs(ref,comboboxNode=>{comboboxRef.current=comboboxNode}),role:"combobox","aria-haspopup":"listbox","aria-owns":elementIds.menuId,"aria-expanded":latest.current.state.isOpen,...rest}},[latest,setGetterPropCallInfo,elementIds]),toggleMenu=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionToggleMenu})},[dispatch]),closeMenu=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionCloseMenu})},[dispatch]),openMenu=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionOpenMenu})},[dispatch]),setHighlightedIndex=(0,import_react20.useCallback)(newHighlightedIndex=>{dispatch({type:FunctionSetHighlightedIndex,highlightedIndex:newHighlightedIndex})},[dispatch]),selectItem=(0,import_react20.useCallback)(newSelectedItem=>{dispatch({type:FunctionSelectItem,selectedItem:newSelectedItem})},[dispatch]),setInputValue=(0,import_react20.useCallback)(newInputValue=>{dispatch({type:FunctionSetInputValue,inputValue:newInputValue})},[dispatch]),reset=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionReset$1})},[dispatch]);return{getItemProps,getLabelProps,getMenuProps,getInputProps,getComboboxProps,getToggleButtonProps,toggleMenu,openMenu,closeMenu,setHighlightedIndex,setInputValue,selectItem,reset,highlightedIndex,isOpen,selectedItem,inputValue}}var defaultStateValues={activeIndex:-1,selectedItems:[]};function getInitialValue(props,propKey){return getInitialValue$1(props,propKey,defaultStateValues)}function getDefaultValue(props,propKey){return getDefaultValue$1(props,propKey,defaultStateValues)}function getInitialState(props){let activeIndex=getInitialValue(props,"activeIndex"),selectedItems=getInitialValue(props,"selectedItems");return{activeIndex,selectedItems}}function isKeyDownOperationPermitted(event){if(event.shiftKey||event.metaKey||event.ctrlKey||event.altKey)return!1;let element=event.target;return!(element instanceof HTMLInputElement&&element.value!==""&&(element.selectionStart!==0||element.selectionEnd!==0))}function getA11yRemovalMessage(selectionParameters){let{removedSelectedItem,itemToString:itemToStringLocal}=selectionParameters;return`${itemToStringLocal(removedSelectedItem)} has been removed.`}var propTypes={selectedItems:import_prop_types2.default.array,initialSelectedItems:import_prop_types2.default.array,defaultSelectedItems:import_prop_types2.default.array,itemToString:import_prop_types2.default.func,getA11yRemovalMessage:import_prop_types2.default.func,stateReducer:import_prop_types2.default.func,activeIndex:import_prop_types2.default.number,initialActiveIndex:import_prop_types2.default.number,defaultActiveIndex:import_prop_types2.default.number,onActiveIndexChange:import_prop_types2.default.func,onSelectedItemsChange:import_prop_types2.default.func,keyNavigationNext:import_prop_types2.default.string,keyNavigationPrevious:import_prop_types2.default.string,environment:import_prop_types2.default.shape({addEventListener:import_prop_types2.default.func,removeEventListener:import_prop_types2.default.func,document:import_prop_types2.default.shape({getElementById:import_prop_types2.default.func,activeElement:import_prop_types2.default.any,body:import_prop_types2.default.any})})},defaultProps={itemToString:defaultProps$3.itemToString,stateReducer:defaultProps$3.stateReducer,environment:defaultProps$3.environment,getA11yRemovalMessage,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},validatePropTypes=noop2;validatePropTypes=(options2,caller)=>{import_prop_types2.default.checkPropTypes(propTypes,options2,"prop",caller.name)};var SelectedItemClick="__selected_item_click__",SelectedItemKeyDownDelete="__selected_item_keydown_delete__",SelectedItemKeyDownBackspace="__selected_item_keydown_backspace__",SelectedItemKeyDownNavigationNext="__selected_item_keydown_navigation_next__",SelectedItemKeyDownNavigationPrevious="__selected_item_keydown_navigation_previous__",DropdownKeyDownNavigationPrevious="__dropdown_keydown_navigation_previous__",DropdownKeyDownBackspace="__dropdown_keydown_backspace__",DropdownClick="__dropdown_click__",FunctionAddSelectedItem="__function_add_selected_item__",FunctionRemoveSelectedItem="__function_remove_selected_item__",FunctionSetSelectedItems="__function_set_selected_items__",FunctionSetActiveIndex="__function_set_active_index__",FunctionReset="__function_reset__",stateChangeTypes=Object.freeze({__proto__:null,SelectedItemClick,SelectedItemKeyDownDelete,SelectedItemKeyDownBackspace,SelectedItemKeyDownNavigationNext,SelectedItemKeyDownNavigationPrevious,DropdownKeyDownNavigationPrevious,DropdownKeyDownBackspace,DropdownClick,FunctionAddSelectedItem,FunctionRemoveSelectedItem,FunctionSetSelectedItems,FunctionSetActiveIndex,FunctionReset});function downshiftMultipleSelectionReducer(state,action){let{type,index,props,selectedItem}=action,{activeIndex,selectedItems}=state,changes;switch(type){case SelectedItemClick:changes={activeIndex:index};break;case SelectedItemKeyDownNavigationPrevious:changes={activeIndex:activeIndex-1<0?0:activeIndex-1};break;case SelectedItemKeyDownNavigationNext:changes={activeIndex:activeIndex+1>=selectedItems.length?-1:activeIndex+1};break;case SelectedItemKeyDownBackspace:case SelectedItemKeyDownDelete:{let newActiveIndex=activeIndex;selectedItems.length===1?newActiveIndex=-1:activeIndex===selectedItems.length-1&&(newActiveIndex=selectedItems.length-2),changes={selectedItems:[...selectedItems.slice(0,activeIndex),...selectedItems.slice(activeIndex+1)],activeIndex:newActiveIndex};break}case DropdownKeyDownNavigationPrevious:changes={activeIndex:selectedItems.length-1};break;case DropdownKeyDownBackspace:changes={selectedItems:selectedItems.slice(0,selectedItems.length-1)};break;case FunctionAddSelectedItem:changes={selectedItems:[...selectedItems,selectedItem]};break;case DropdownClick:changes={activeIndex:-1};break;case FunctionRemoveSelectedItem:{let newActiveIndex=activeIndex,selectedItemIndex=selectedItems.indexOf(selectedItem);selectedItemIndex>=0&&(selectedItems.length===1?newActiveIndex=-1:selectedItemIndex===selectedItems.length-1&&(newActiveIndex=selectedItems.length-2),changes={selectedItems:[...selectedItems.slice(0,selectedItemIndex),...selectedItems.slice(selectedItemIndex+1)],activeIndex:newActiveIndex});break}case FunctionSetSelectedItems:{let{selectedItems:newSelectedItems}=action;changes={selectedItems:newSelectedItems};break}case FunctionSetActiveIndex:{let{activeIndex:newActiveIndex}=action;changes={activeIndex:newActiveIndex};break}case FunctionReset:changes={activeIndex:getDefaultValue(props,"activeIndex"),selectedItems:getDefaultValue(props,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return{...state,...changes}}useMultipleSelection.stateChangeTypes=stateChangeTypes;function useMultipleSelection(userProps){userProps===void 0&&(userProps={}),validatePropTypes(userProps,useMultipleSelection);let props={...defaultProps,...userProps},{getA11yRemovalMessage:getA11yRemovalMessage2,itemToString:itemToString2,environment,keyNavigationNext,keyNavigationPrevious}=props,[state,dispatch]=useControlledReducer$1(downshiftMultipleSelectionReducer,getInitialState(props),props),{activeIndex,selectedItems}=state,isInitialMountRef=(0,import_react20.useRef)(!0),dropdownRef=(0,import_react20.useRef)(null),previousSelectedItemsRef=(0,import_react20.useRef)(selectedItems),selectedItemRefs=(0,import_react20.useRef)();selectedItemRefs.current=[];let latest=useLatestRef({state,props});(0,import_react20.useEffect)(()=>{if(!isInitialMountRef.current){if(selectedItems.lengthselectedItems.indexOf(item)<0);setStatus(getA11yRemovalMessage2({itemToString:itemToString2,resultCount:selectedItems.length,removedSelectedItem,activeIndex,activeSelectedItem:selectedItems[activeIndex]}),environment.document)}previousSelectedItemsRef.current=selectedItems}},[selectedItems.length]),(0,import_react20.useEffect)(()=>{isInitialMountRef.current||(activeIndex===-1&&dropdownRef.current?dropdownRef.current.focus():selectedItemRefs.current[activeIndex]&&selectedItemRefs.current[activeIndex].focus())},[activeIndex]),useControlPropsValidator({isInitialMount:isInitialMountRef.current,props,state});let setGetterPropCallInfo=useGetterPropsCalledChecker("getDropdownProps");(0,import_react20.useEffect)(()=>{isInitialMountRef.current=!1},[]);let selectedItemKeyDownHandlers=(0,import_react20.useMemo)(()=>({[keyNavigationPrevious](){dispatch({type:SelectedItemKeyDownNavigationPrevious})},[keyNavigationNext](){dispatch({type:SelectedItemKeyDownNavigationNext})},Delete(){dispatch({type:SelectedItemKeyDownDelete})},Backspace(){dispatch({type:SelectedItemKeyDownBackspace})}}),[dispatch,keyNavigationNext,keyNavigationPrevious]),dropdownKeyDownHandlers=(0,import_react20.useMemo)(()=>({[keyNavigationPrevious](event){isKeyDownOperationPermitted(event)&&dispatch({type:DropdownKeyDownNavigationPrevious})},Backspace(event){isKeyDownOperationPermitted(event)&&dispatch({type:DropdownKeyDownBackspace})}}),[dispatch,keyNavigationPrevious]),getSelectedItemProps=(0,import_react20.useCallback)(function(_temp){let{refKey="ref",ref,onClick,onKeyDown,selectedItem,index,...rest}=_temp===void 0?{}:_temp,{state:latestState}=latest.current;if(getItemIndex(index,selectedItem,latestState.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");let selectedItemHandleClick=()=>{dispatch({type:SelectedItemClick,index})},selectedItemHandleKeyDown=event=>{let key=normalizeArrowKey(event);key&&selectedItemKeyDownHandlers[key]&&selectedItemKeyDownHandlers[key](event)};return{[refKey]:handleRefs(ref,selectedItemNode=>{selectedItemNode&&selectedItemRefs.current.push(selectedItemNode)}),tabIndex:index===latestState.activeIndex?0:-1,onClick:callAllEventHandlers(onClick,selectedItemHandleClick),onKeyDown:callAllEventHandlers(onKeyDown,selectedItemHandleKeyDown),...rest}},[dispatch,latest,selectedItemKeyDownHandlers]),getDropdownProps=(0,import_react20.useCallback)(function(_temp2,_temp3){let{refKey="ref",ref,onKeyDown,onClick,preventKeyAction=!1,...rest}=_temp2===void 0?{}:_temp2,{suppressRefError=!1}=_temp3===void 0?{}:_temp3;setGetterPropCallInfo("getDropdownProps",suppressRefError,refKey,dropdownRef);let dropdownHandleKeyDown=event=>{let key=normalizeArrowKey(event);key&&dropdownKeyDownHandlers[key]&&dropdownKeyDownHandlers[key](event)},dropdownHandleClick=()=>{dispatch({type:DropdownClick})};return{[refKey]:handleRefs(ref,dropdownNode=>{dropdownNode&&(dropdownRef.current=dropdownNode)}),...!preventKeyAction&&{onKeyDown:callAllEventHandlers(onKeyDown,dropdownHandleKeyDown),onClick:callAllEventHandlers(onClick,dropdownHandleClick)},...rest}},[dispatch,dropdownKeyDownHandlers,setGetterPropCallInfo]),addSelectedItem=(0,import_react20.useCallback)(selectedItem=>{dispatch({type:FunctionAddSelectedItem,selectedItem})},[dispatch]),removeSelectedItem=(0,import_react20.useCallback)(selectedItem=>{dispatch({type:FunctionRemoveSelectedItem,selectedItem})},[dispatch]),setSelectedItems=(0,import_react20.useCallback)(newSelectedItems=>{dispatch({type:FunctionSetSelectedItems,selectedItems:newSelectedItems})},[dispatch]),setActiveIndex=(0,import_react20.useCallback)(newActiveIndex=>{dispatch({type:FunctionSetActiveIndex,activeIndex:newActiveIndex})},[dispatch]),reset=(0,import_react20.useCallback)(()=>{dispatch({type:FunctionReset})},[dispatch]);return{getSelectedItemProps,getDropdownProps,addSelectedItem,removeSelectedItem,setSelectedItems,setActiveIndex,reset,selectedItems,activeIndex}}var import_fuse=__toESM(require_fuse());var import_react21=__toESM(require_react());function isExpandType(x2){return!!(x2&&x2.showAll)}function isSearchResult(x2){return!!(x2&&x2.item)}var{document:document6}=scope,DEFAULT_MAX_SEARCH_RESULTS=50,options={shouldSort:!0,tokenize:!0,findAllMatches:!0,includeScore:!0,includeMatches:!0,threshold:.2,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"name",weight:.7},{name:"path",weight:.3}]},ScreenReaderLabel=newStyled.label({position:"absolute",left:-1e4,top:"auto",width:1,height:1,overflow:"hidden"}),SearchIconWrapper=newStyled.div(({theme})=>({position:"absolute",top:0,left:8,zIndex:1,pointerEvents:"none",color:theme.textMutedColor,display:"flex",alignItems:"center",height:"100%"})),SearchField=newStyled.div({display:"flex",flexDirection:"column",position:"relative"}),Input=newStyled.input(({theme})=>({appearance:"none",height:32,paddingLeft:28,paddingRight:28,border:`1px solid ${theme.appBorderColor}`,background:"transparent",borderRadius:4,fontSize:`${theme.typography.size.s1+1}px`,fontFamily:"inherit",transition:"all 150ms",color:theme.color.defaultText,width:"100%","&:focus, &:active":{outline:0,borderColor:theme.color.secondary,background:theme.background.app},"&::placeholder":{color:theme.textMutedColor,opacity:1},"&:valid ~ code, &:focus ~ code":{display:"none"},"&:invalid ~ svg":{display:"none"},"&:valid ~ svg":{display:"block"},"&::-ms-clear":{display:"none"},"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{display:"none"}})),FocusKey=newStyled.code(({theme})=>({position:"absolute",top:8,right:9,height:16,zIndex:1,lineHeight:"16px",textAlign:"center",fontSize:"11px",color:theme.base==="light"?theme.color.dark:theme.textMutedColor,userSelect:"none",pointerEvents:"none",display:"flex",alignItems:"center",gap:4})),FocusKeyCmd=newStyled.span({fontSize:"14px"}),ClearIcon=newStyled.div(({theme})=>({position:"absolute",top:0,right:8,zIndex:1,color:theme.textMutedColor,cursor:"pointer",display:"flex",alignItems:"center",height:"100%"})),FocusContainer=newStyled.div({outline:0}),Search=import_react21.default.memo(function({children,dataset,enableShortcuts=!0,getLastViewed,initialQuery=""}){let api=useStorybookApi(),inputRef=(0,import_react21.useRef)(null),[inputPlaceholder,setPlaceholder]=(0,import_react21.useState)("Find components"),[allComponents,showAllComponents]=(0,import_react21.useState)(!1),searchShortcut=api?shortcutToHumanString(api.getShortcutKeys().search):"/",selectStory=(0,import_react21.useCallback)((id,refId)=>{api&&api.selectStory(id,void 0,{ref:refId!==DEFAULT_REF_ID&&refId}),inputRef.current.blur(),showAllComponents(!1)},[api,inputRef,showAllComponents,DEFAULT_REF_ID]),makeFuse=(0,import_react21.useCallback)(()=>{let list=dataset.entries.reduce((acc,[refId,{index,status}])=>{let groupStatus=getGroupStatus(index||{},status);return index&&acc.push(...Object.values(index).map(item=>{let statusValue=status&&status[item.id]?getHighestStatus(Object.values(status[item.id]||{}).map(s2=>s2.status)):null;return{...searchItem(item,dataset.hash[refId]),status:statusValue||groupStatus[item.id]||null}})),acc},[]);return new import_fuse.default(list,options)},[dataset]),getResults=(0,import_react21.useCallback)(input=>{let fuse=makeFuse();if(!input)return[];let results=[],resultIds=new Set,distinctResults=fuse.search(input).filter(({item})=>!(item.type==="component"||item.type==="docs"||item.type==="story")||resultIds.has(item.parent)?!1:(resultIds.add(item.id),!0));return distinctResults.length&&(results=distinctResults.slice(0,allComponents?1e3:DEFAULT_MAX_SEARCH_RESULTS),distinctResults.length>DEFAULT_MAX_SEARCH_RESULTS&&!allComponents&&results.push({showAll:()=>showAllComponents(!0),totalCount:distinctResults.length,moreCount:distinctResults.length-DEFAULT_MAX_SEARCH_RESULTS})),results},[allComponents,makeFuse]),stateReducer2=(0,import_react21.useCallback)((state,changes)=>{switch(changes.type){case Downshift$1.stateChangeTypes.blurInput:return{...changes,inputValue:state.inputValue,isOpen:state.inputValue&&!state.selectedItem,selectedItem:null};case Downshift$1.stateChangeTypes.mouseUp:return{};case Downshift$1.stateChangeTypes.keyDownEscape:return state.inputValue?{...changes,inputValue:"",isOpen:!0,selectedItem:null}:(inputRef.current.blur(),{...changes,isOpen:!1,selectedItem:null});case Downshift$1.stateChangeTypes.clickItem:case Downshift$1.stateChangeTypes.keyDownEnter:{if(isSearchResult(changes.selectedItem)){let{id,refId}=changes.selectedItem.item;return selectStory(id,refId),{...changes,inputValue:state.inputValue,isOpen:!1}}return isExpandType(changes.selectedItem)?(changes.selectedItem.showAll(),{}):changes}case Downshift$1.stateChangeTypes.changeInput:return showAllComponents(!1),changes;default:return changes}},[inputRef,selectStory,showAllComponents]),{isMobile}=useLayout();return import_react21.default.createElement(Downshift$1,{initialInputValue:initialQuery,stateReducer:stateReducer2,itemToString:result=>result?.item?.name||"",scrollIntoView:e3=>scrollIntoView(e3)},({isOpen,openMenu,closeMenu,inputValue,clearSelection,getInputProps,getItemProps,getLabelProps,getMenuProps,getRootProps,highlightedIndex})=>{let input=inputValue?inputValue.trim():"",results=input?getResults(input):[],lastViewed=!input&&getLastViewed();lastViewed&&lastViewed.length&&(results=lastViewed.reduce((acc,{storyId,refId})=>{let data=dataset.hash[refId];if(data&&data.index&&data.index[storyId]){let story=data.index[storyId],item=story.type==="story"?data.index[story.parent]:story;acc.some(res=>res.item.refId===refId&&res.item.id===item.id)||acc.push({item:searchItem(item,dataset.hash[refId]),matches:[],score:0})}return acc},[]));let inputId="storybook-explorer-searchfield",inputProps=getInputProps({id:inputId,ref:inputRef,required:!0,type:"search",placeholder:inputPlaceholder,onFocus:()=>{openMenu(),setPlaceholder("Type to find...")},onBlur:()=>setPlaceholder("Find components")}),labelProps=getLabelProps({htmlFor:inputId});return import_react21.default.createElement(import_react21.default.Fragment,null,import_react21.default.createElement(ScreenReaderLabel,{...labelProps},"Search for components"),import_react21.default.createElement(SearchField,{...getRootProps({refKey:""},{suppressRefError:!0}),className:"search-field"},import_react21.default.createElement(SearchIconWrapper,null,import_react21.default.createElement(SearchIcon,null)),import_react21.default.createElement(Input,{...inputProps}),!isMobile&&enableShortcuts&&!isOpen&&import_react21.default.createElement(FocusKey,null,searchShortcut==="\u2318 K"?import_react21.default.createElement(import_react21.default.Fragment,null,import_react21.default.createElement(FocusKeyCmd,null,"\u2318"),"K"):searchShortcut),isOpen&&import_react21.default.createElement(ClearIcon,{onClick:()=>clearSelection()},import_react21.default.createElement(CloseIcon,null))),import_react21.default.createElement(FocusContainer,{tabIndex:0,id:"storybook-explorer-menu"},children({query:input,results,isBrowsing:!isOpen&&document6.activeElement!==inputRef.current,closeMenu,getMenuProps,getItemProps,highlightedIndex})))})});var import_react22=__toESM(require_react());var{document:document7}=scope,ResultsList=newStyled.ol({listStyle:"none",margin:0,padding:0}),ResultRow=newStyled.li(({theme,isHighlighted})=>({width:"100%",border:"none",cursor:"pointer",display:"flex",alignItems:"start",textAlign:"left",color:"inherit",fontSize:`${theme.typography.size.s2}px`,background:isHighlighted?theme.background.hoverable:"transparent",minHeight:28,borderRadius:4,gap:6,paddingTop:7,paddingBottom:7,paddingLeft:8,paddingRight:8,"&:hover, &:focus":{background:curriedTransparentize$1(.93,theme.color.secondary),outline:"none"}})),IconWrapper=newStyled.div({marginTop:2}),ResultRowContent=newStyled.div(()=>({display:"flex",flexDirection:"column"})),NoResults=newStyled.div(({theme})=>({marginTop:20,textAlign:"center",fontSize:`${theme.typography.size.s2}px`,lineHeight:"18px",color:theme.color.defaultText,small:{color:theme.barTextColor,fontSize:`${theme.typography.size.s1}px`}})),Mark=newStyled.mark(({theme})=>({background:"transparent",color:theme.color.secondary})),MoreWrapper=newStyled.div({marginTop:8}),RecentlyOpenedTitle=newStyled.div(({theme})=>({display:"flex",justifyContent:"space-between",fontSize:`${theme.typography.size.s1-1}px`,fontWeight:theme.typography.weight.bold,minHeight:28,letterSpacing:"0.16em",textTransform:"uppercase",color:theme.textMutedColor,marginTop:16,marginBottom:4,alignItems:"center",".search-result-recentlyOpened-clear":{visibility:"hidden"},"&:hover":{".search-result-recentlyOpened-clear":{visibility:"visible"}}})),Highlight=import_react22.default.memo(function({children,match}){if(!match)return children;let{value,indices}=match,{nodes:result}=indices.reduce(({cursor,nodes},[start,end],index,{length})=>(nodes.push(import_react22.default.createElement("span",{key:`${index}-1`},value.slice(cursor,start))),nodes.push(import_react22.default.createElement(Mark,{key:`${index}-2`},value.slice(start,end+1))),index===length-1&&nodes.push(import_react22.default.createElement("span",{key:`${index}-3`},value.slice(end+1))),{cursor:end+1,nodes}),{cursor:0,nodes:[]});return import_react22.default.createElement("span",null,result)}),Title=newStyled.div(({theme})=>({display:"grid",justifyContent:"start",gridAutoColumns:"auto",gridAutoFlow:"column",color:theme.textMutedColor,"& > span":{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),Path=newStyled.div(({theme})=>({display:"grid",justifyContent:"start",gridAutoColumns:"auto",gridAutoFlow:"column",color:theme.textMutedColor,fontSize:`${theme.typography.size.s1-1}px`,"& > span":{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"& > span + span":{"&:before":{content:"' / '"}}})),Result=import_react22.default.memo(function({item,matches,icon,onClick,...props}){let click=(0,import_react22.useCallback)(event=>{event.preventDefault(),onClick(event)},[onClick]),api=useStorybookApi();(0,import_react22.useEffect)(()=>{api&&props.isHighlighted&&item.type==="component"&&api.emit(PRELOAD_ENTRIES,{ids:[item.children[0]]},{options:{target:item.refId}})},[props.isHighlighted,item]);let nameMatch=matches.find(match=>match.key==="name"),pathMatches=matches.filter(match=>match.key==="path"),[i3]=item.status?statusMapping[item.status]:[];return import_react22.default.createElement(ResultRow,{...props,onClick:click},import_react22.default.createElement(IconWrapper,null,item.type==="component"&&import_react22.default.createElement(TypeIcon,{viewBox:"0 0 14 14",width:"14",height:"14",type:"component"},import_react22.default.createElement(UseSymbol,{type:"component"})),item.type==="story"&&import_react22.default.createElement(TypeIcon,{viewBox:"0 0 14 14",width:"14",height:"14",type:"story"},import_react22.default.createElement(UseSymbol,{type:"story"})),!(item.type==="component"||item.type==="story")&&import_react22.default.createElement(TypeIcon,{viewBox:"0 0 14 14",width:"14",height:"14",type:"document"},import_react22.default.createElement(UseSymbol,{type:"document"}))),import_react22.default.createElement(ResultRowContent,{className:"search-result-item--label"},import_react22.default.createElement(Title,null,import_react22.default.createElement(Highlight,{match:nameMatch},item.name)),import_react22.default.createElement(Path,null,item.path.map((group,index)=>import_react22.default.createElement("span",{key:index},import_react22.default.createElement(Highlight,{match:pathMatches.find(match=>match.arrayIndex===index)},group))))),item.status?i3:null)}),SearchResults=import_react22.default.memo(function({query,results,closeMenu,getMenuProps,getItemProps,highlightedIndex,isLoading=!1,enableShortcuts=!0,clearLastViewed}){let api=useStorybookApi();(0,import_react22.useEffect)(()=>{let handleEscape=event=>{if(!(!enableShortcuts||isLoading||event.repeat)&&matchesModifiers(!1,event)&&matchesKeyCode("Escape",event)){if(event.target?.id==="storybook-explorer-searchfield")return;event.preventDefault(),closeMenu()}};return document7.addEventListener("keydown",handleEscape),()=>document7.removeEventListener("keydown",handleEscape)},[closeMenu,enableShortcuts,isLoading]);let mouseOverHandler=(0,import_react22.useCallback)(event=>{if(!api)return;let currentTarget=event.currentTarget,storyId=currentTarget.getAttribute("data-id"),refId=currentTarget.getAttribute("data-refid"),item=api.resolveStory(storyId,refId==="storybook_internal"?void 0:refId);item?.type==="component"&&api.emit(PRELOAD_ENTRIES,{ids:[item.isLeaf?item.id:item.children[0]],options:{target:refId}})},[]),handleClearLastViewed=()=>{clearLastViewed(),closeMenu()};return import_react22.default.createElement(ResultsList,{...getMenuProps()},results.length>0&&!query&&import_react22.default.createElement(RecentlyOpenedTitle,{className:"search-result-recentlyOpened"},"Recently opened",import_react22.default.createElement(IconButton,{className:"search-result-recentlyOpened-clear",onClick:handleClearLastViewed},import_react22.default.createElement(TrashIcon,null))),results.length===0&&query&&import_react22.default.createElement("li",null,import_react22.default.createElement(NoResults,null,import_react22.default.createElement("strong",null,"No components found"),import_react22.default.createElement("br",null),import_react22.default.createElement("small",null,"Find components by name or path."))),results.map((result,index)=>{if(isExpandType(result))return import_react22.default.createElement(MoreWrapper,{key:"search-result-expand"},import_react22.default.createElement(Button,{...result,...getItemProps({key:index,index,item:result}),size:"small"},"Show ",result.moreCount," more results"));let{item}=result,key=`${item.refId}::${item.id}`;return import_react22.default.createElement(Result,{key:item.id,...result,...getItemProps({key,index,item:result}),isHighlighted:highlightedIndex===index,"data-id":result.item.id,"data-refid":result.item.refId,onMouseOver:mouseOverHandler,className:"search-result-item"})}))});var import_debounce=__toESM(require_debounce()),import_react23=__toESM(require_react()),import_store2=__toESM(require_store2()),save=(0,import_debounce.default)(value=>import_store2.default.set("lastViewedStoryIds",value),1e3),useLastViewed=selection=>{let initialLastViewedStoryIds=(0,import_react23.useMemo)(()=>{let items=import_store2.default.get("lastViewedStoryIds");return!items||!Array.isArray(items)?[]:items.some(item=>typeof item=="object"&&item.storyId&&item.refId)?items:[]},[import_store2.default]),lastViewedRef=(0,import_react23.useRef)(initialLastViewedStoryIds),updateLastViewed=(0,import_react23.useCallback)(story=>{let items=lastViewedRef.current,index=items.findIndex(({storyId,refId})=>storyId===story.storyId&&refId===story.refId);index!==0&&(index===-1?lastViewedRef.current=[story,...items]:lastViewedRef.current=[story,...items.slice(0,index),...items.slice(index+1)],save(lastViewedRef.current))},[lastViewedRef]);return(0,import_react23.useEffect)(()=>{selection&&updateLastViewed(selection)},[selection]),{getLastViewed:(0,import_react23.useCallback)(()=>lastViewedRef.current,[lastViewedRef]),clearLastViewed:(0,import_react23.useCallback)(()=>{lastViewedRef.current=lastViewedRef.current.slice(0,1),save(lastViewedRef.current)},[lastViewedRef])}};var DEFAULT_REF_ID="storybook_internal",Container2=newStyled.nav(({theme})=>({position:"absolute",zIndex:1,left:0,top:0,bottom:0,right:0,width:"100%",height:"100%",display:"flex",flexDirection:"column",background:theme.background.content,[MEDIA_DESKTOP_BREAKPOINT]:{background:theme.background.app}})),Top=newStyled(Spaced)({paddingLeft:12,paddingRight:12,paddingBottom:20,paddingTop:16,flex:1}),Bottom=newStyled.div(({theme})=>({borderTop:`1px solid ${theme.appBorderColor}`,padding:theme.layoutMargin/2,display:"flex",flexWrap:"wrap",gap:theme.layoutMargin/2,backgroundColor:theme.barBg,"&:empty":{display:"none"}})),Swap=import_react24.default.memo(function({children,condition}){let[a2,b2]=import_react24.default.Children.toArray(children);return import_react24.default.createElement(import_react24.default.Fragment,null,import_react24.default.createElement("div",{style:{display:condition?"block":"none"}},a2),import_react24.default.createElement("div",{style:{display:condition?"none":"block"}},b2))}),useCombination=(index,indexError,previewInitialized,status,refs)=>{let hash=(0,import_react24.useMemo)(()=>({[DEFAULT_REF_ID]:{index,indexError,previewInitialized,status,title:null,id:DEFAULT_REF_ID,url:"iframe.html"},...refs}),[refs,index,indexError,previewInitialized,status]);return(0,import_react24.useMemo)(()=>({hash,entries:Object.entries(hash)}),[hash])},Sidebar=import_react24.default.memo(function({storyId=null,refId=DEFAULT_REF_ID,index,indexError,status,previewInitialized,menu,extra,bottom=[],menuHighlighted=!1,enableShortcuts=!0,refs={},onMenuClick}){let selected=(0,import_react24.useMemo)(()=>storyId&&{storyId,refId},[storyId,refId]),dataset=useCombination(index,indexError,previewInitialized,status,refs),isLoading=!index&&!indexError,lastViewedProps=useLastViewed(selected);return import_react24.default.createElement(Container2,{className:"container sidebar-container"},import_react24.default.createElement(ScrollArea,{vertical:!0,offset:3,scrollbarSize:6},import_react24.default.createElement(Top,{row:1.6},import_react24.default.createElement(Heading,{className:"sidebar-header",menuHighlighted,menu,extra,skipLinkHref:"#storybook-preview-wrapper",isLoading,onMenuClick}),import_react24.default.createElement(Search,{dataset,enableShortcuts,...lastViewedProps},({query,results,isBrowsing,closeMenu,getMenuProps,getItemProps,highlightedIndex})=>import_react24.default.createElement(Swap,{condition:isBrowsing},import_react24.default.createElement(Explorer,{dataset,selected,isLoading,isBrowsing}),import_react24.default.createElement(SearchResults,{query,results,closeMenu,getMenuProps,getItemProps,highlightedIndex,enableShortcuts,isLoading,clearLastViewed:lastViewedProps.clearLastViewed}))))),isLoading?null:import_react24.default.createElement(Bottom,{className:"sb-bar"},bottom.map(({id,render:Render})=>import_react24.default.createElement(Render,{key:id}))))});var import_react25=__toESM(require_react());var focusableUIElements={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},Key=newStyled.span(({theme})=>({display:"inline-block",height:16,lineHeight:"16px",textAlign:"center",fontSize:"11px",background:theme.base==="light"?"rgba(0,0,0,0.05)":"rgba(255,255,255,0.05)",color:theme.base==="light"?theme.color.dark:theme.textMutedColor,borderRadius:2,userSelect:"none",pointerEvents:"none",padding:"0 6px"})),KeyChild=newStyled.code(({theme})=>` + padding: 0; + vertical-align: middle; + + & + & { + margin-left: 6px; + } +`),Shortcut=({keys})=>import_react25.default.createElement(import_react25.default.Fragment,null,import_react25.default.createElement(Key,null,keys.map((key,index)=>import_react25.default.createElement(KeyChild,{key},shortcutToHumanString([key]))))),useMenu=(state,api,showToolbar,isFullscreen,isPanelShown,isNavShown,enableShortcuts)=>{let theme=useTheme(),shortcutKeys=api.getShortcutKeys(),about=(0,import_react25.useMemo)(()=>({id:"about",title:"About your Storybook",onClick:()=>api.changeSettingsTab("about"),icon:import_react25.default.createElement(InfoIcon,null)}),[api]),documentation=(0,import_react25.useMemo)(()=>({id:"documentation",title:"Documentation",href:api.getDocsUrl({versioned:!0,renderer:!0}),icon:import_react25.default.createElement(ShareAltIcon,null)}),[api]),whatsNewNotificationsEnabled=state.whatsNewData?.status==="SUCCESS"&&!state.disableWhatsNewNotifications,isWhatsNewUnread=api.isWhatsNewUnread(),whatsNew=(0,import_react25.useMemo)(()=>({id:"whats-new",title:"What's new?",onClick:()=>api.changeSettingsTab("whats-new"),right:whatsNewNotificationsEnabled&&isWhatsNewUnread&&import_react25.default.createElement(Badge,{status:"positive"},"Check it out"),icon:import_react25.default.createElement(WandIcon,null)}),[api,whatsNewNotificationsEnabled,isWhatsNewUnread]),shortcuts=(0,import_react25.useMemo)(()=>({id:"shortcuts",title:"Keyboard shortcuts",onClick:()=>api.changeSettingsTab("shortcuts"),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.shortcutsPage}):null,style:{borderBottom:`4px solid ${theme.appBorderColor}`}}),[api,enableShortcuts,shortcutKeys.shortcutsPage,theme.appBorderColor]),sidebarToggle=(0,import_react25.useMemo)(()=>({id:"S",title:"Show sidebar",onClick:()=>api.toggleNav(),active:isNavShown,right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.toggleNav}):null,icon:isNavShown?import_react25.default.createElement(CheckIcon,null):null}),[api,enableShortcuts,shortcutKeys,isNavShown]),toolbarToogle=(0,import_react25.useMemo)(()=>({id:"T",title:"Show toolbar",onClick:()=>api.toggleToolbar(),active:showToolbar,right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.toolbar}):null,icon:showToolbar?import_react25.default.createElement(CheckIcon,null):null}),[api,enableShortcuts,shortcutKeys,showToolbar]),addonsToggle=(0,import_react25.useMemo)(()=>({id:"A",title:"Show addons",onClick:()=>api.togglePanel(),active:isPanelShown,right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.togglePanel}):null,icon:isPanelShown?import_react25.default.createElement(CheckIcon,null):null}),[api,enableShortcuts,shortcutKeys,isPanelShown]),addonsOrientationToggle=(0,import_react25.useMemo)(()=>({id:"D",title:"Change addons orientation",onClick:()=>api.togglePanelPosition(),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.panelPosition}):null}),[api,enableShortcuts,shortcutKeys]),fullscreenToggle=(0,import_react25.useMemo)(()=>({id:"F",title:"Go full screen",onClick:()=>api.toggleFullscreen(),active:isFullscreen,right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.fullScreen}):null,icon:isFullscreen?import_react25.default.createElement(CheckIcon,null):null}),[api,enableShortcuts,shortcutKeys,isFullscreen]),searchToggle=(0,import_react25.useMemo)(()=>({id:"/",title:"Search",onClick:()=>api.focusOnUIElement(focusableUIElements.storySearchField),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.search}):null}),[api,enableShortcuts,shortcutKeys]),up=(0,import_react25.useMemo)(()=>({id:"up",title:"Previous component",onClick:()=>api.jumpToComponent(-1),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.prevComponent}):null}),[api,enableShortcuts,shortcutKeys]),down=(0,import_react25.useMemo)(()=>({id:"down",title:"Next component",onClick:()=>api.jumpToComponent(1),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.nextComponent}):null}),[api,enableShortcuts,shortcutKeys]),prev=(0,import_react25.useMemo)(()=>({id:"prev",title:"Previous story",onClick:()=>api.jumpToStory(-1),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.prevStory}):null}),[api,enableShortcuts,shortcutKeys]),next=(0,import_react25.useMemo)(()=>({id:"next",title:"Next story",onClick:()=>api.jumpToStory(1),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.nextStory}):null}),[api,enableShortcuts,shortcutKeys]),collapse=(0,import_react25.useMemo)(()=>({id:"collapse",title:"Collapse all",onClick:()=>api.collapseAll(),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:shortcutKeys.collapseAll}):null}),[api,enableShortcuts,shortcutKeys]),getAddonsShortcuts=(0,import_react25.useCallback)(()=>{let addonsShortcuts=api.getAddonsShortcuts(),keys=shortcutKeys;return Object.entries(addonsShortcuts).filter(([_2,{showInMenu}])=>showInMenu).map(([actionName,{label,action}])=>({id:actionName,title:label,onClick:()=>action(),right:enableShortcuts?import_react25.default.createElement(Shortcut,{keys:keys[actionName]}):null}))},[api,enableShortcuts,shortcutKeys]);return(0,import_react25.useMemo)(()=>[about,...state.whatsNewData?.status==="SUCCESS"?[whatsNew]:[],documentation,shortcuts,sidebarToggle,toolbarToogle,addonsToggle,addonsOrientationToggle,fullscreenToggle,searchToggle,up,down,prev,next,collapse,...getAddonsShortcuts()],[about,state,whatsNew,documentation,shortcuts,sidebarToggle,toolbarToogle,addonsToggle,addonsOrientationToggle,fullscreenToggle,searchToggle,up,down,prev,next,collapse,getAddonsShortcuts])};var Sidebar3=import_react26.default.memo(function({onMenuClick}){return import_react26.default.createElement(ManagerConsumer,{filter:({state,api})=>{let{ui:{name,url,enableShortcuts},viewMode,storyId,refId,layout:{showToolbar},index,status,indexError,previewInitialized,refs}=state,menu=useMenu(state,api,showToolbar,api.getIsFullscreen(),api.getIsPanelShown(),api.getIsNavShown(),enableShortcuts),whatsNewNotificationsEnabled=state.whatsNewData?.status==="SUCCESS"&&!state.disableWhatsNewNotifications,bottomItems=api.getElements(Addon_TypesEnum.experimental_SIDEBAR_BOTTOM),topItems=api.getElements(Addon_TypesEnum.experimental_SIDEBAR_TOP),bottom=(0,import_react26.useMemo)(()=>Object.values(bottomItems),[Object.keys(bottomItems).join("")]),top=(0,import_react26.useMemo)(()=>Object.values(topItems),[Object.keys(topItems).join("")]);return{title:name,url,index,indexError,status,previewInitialized,refs,storyId,refId,viewMode,menu,menuHighlighted:whatsNewNotificationsEnabled&&api.isWhatsNewUnread(),enableShortcuts,bottom,extra:top}}},fromState=>import_react26.default.createElement(Sidebar,{...fromState,onMenuClick}))}),Sidebar_default=Sidebar3;var import_react38=__toESM(require_react()),import_memoizerific2=__toESM(require_memoizerific());var import_react36=__toESM(require_react());var PreviewContainer=newStyled.main({display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"hidden"}),FrameWrap=newStyled.div({overflow:"auto",width:"100%",zIndex:3,background:"transparent",flex:1}),CanvasWrap=newStyled.div({alignContent:"center",alignItems:"center",justifyContent:"center",justifyItems:"center",overflow:"auto",gridTemplateColumns:"100%",gridTemplateRows:"100%",position:"relative",width:"100%",height:"100%"},({show})=>({display:show?"grid":"none"})),UnstyledLink=newStyled(Link2)({color:"inherit",textDecoration:"inherit",display:"inline-block"}),DesktopOnly=newStyled.span({"@media (max-width: 599px)":{display:"none"}}),IframeWrapper=newStyled.div(({theme})=>({alignContent:"center",alignItems:"center",justifyContent:"center",justifyItems:"center",overflow:"auto",display:"grid",gridTemplateColumns:"100%",gridTemplateRows:"100%",position:"relative",width:"100%",height:"100%"})),LoaderWrapper=newStyled.div(({theme})=>({position:"absolute",top:0,left:0,bottom:0,right:0,background:theme.background.preview,zIndex:1}));var import_react27=__toESM(require_react());var initialZoom=1,Context=(0,import_react27.createContext)({value:initialZoom,set:v2=>{}}),ZoomProvider=class extends import_react27.Component{constructor(){super(...arguments);this.state={value:initialZoom};this.set=value=>this.setState({value})}render(){let{children,shouldScale}=this.props,{set}=this,{value}=this.state;return import_react27.default.createElement(Context.Provider,{value:{value:shouldScale?value:initialZoom,set}},children)}},{Consumer:ZoomConsumer}=Context,Zoom2=(0,import_react27.memo)(function({zoomIn,zoomOut,reset}){return import_react27.default.createElement(import_react27.default.Fragment,null,import_react27.default.createElement(IconButton,{key:"zoomin",onClick:zoomIn,title:"Zoom in"},import_react27.default.createElement(ZoomIcon,null)),import_react27.default.createElement(IconButton,{key:"zoomout",onClick:zoomOut,title:"Zoom out"},import_react27.default.createElement(ZoomOutIcon,null)),import_react27.default.createElement(IconButton,{key:"zoomreset",onClick:reset,title:"Reset zoom"},import_react27.default.createElement(ZoomResetIcon,null)))});var ZoomWrapper=(0,import_react27.memo)(function({set,value}){let zoomIn=(0,import_react27.useCallback)(e3=>{e3.preventDefault(),set(.8*value)},[set,value]),zoomOut=(0,import_react27.useCallback)(e3=>{e3.preventDefault(),set(1.25*value)},[set,value]),reset=(0,import_react27.useCallback)(e3=>{e3.preventDefault(),set(initialZoom)},[set,initialZoom]);return import_react27.default.createElement(Zoom2,{key:"zoom",zoomIn,zoomOut,reset})});function ZoomToolRenderer(){return import_react27.default.createElement(import_react27.default.Fragment,null,import_react27.default.createElement(ZoomConsumer,null,({set,value})=>import_react27.default.createElement(ZoomWrapper,{set,value})),import_react27.default.createElement(Separator,null))}var zoomTool={title:"zoom",id:"zoom",type:typesX.TOOL,match:({viewMode,tabId})=>viewMode==="story"&&!tabId,render:ZoomToolRenderer};var import_react28=__toESM(require_react());var ApplyWrappers=({wrappers,id,storyId,children})=>import_react28.default.createElement(import_react28.Fragment,null,wrappers.reduceRight((acc,wrapper,index)=>import_react28.default.createElement(wrapper.render,{index,children:acc,id,storyId}),children)),defaultWrappers=[{id:"iframe-wrapper",type:Addon_TypesEnum.PREVIEW,render:p2=>import_react28.default.createElement(IframeWrapper,{id:"storybook-preview-wrapper"},p2.children)}];var import_react33=__toESM(require_react());var import_react29=__toESM(require_react()),import_copy_to_clipboard=__toESM(require_copy_to_clipboard());var{PREVIEW_URL,document:document8}=scope,copyMapper=({state})=>{let{storyId,refId,refs}=state,{location}=document8,ref=refs[refId],baseUrl=`${location.origin}${location.pathname}`;return baseUrl.endsWith("/")||(baseUrl+="/"),{refId,baseUrl:ref?`${ref.url}/iframe.html`:PREVIEW_URL||`${baseUrl}iframe.html`,storyId,queryParams:state.customQueryParams}},copyTool={title:"copy",id:"copy",type:typesX.TOOL,match:({viewMode,tabId})=>viewMode==="story"&&!tabId,render:()=>import_react29.default.createElement(ManagerConsumer,{filter:copyMapper},({baseUrl,storyId,queryParams})=>storyId?import_react29.default.createElement(IconButton,{key:"copy",onClick:()=>(0,import_copy_to_clipboard.default)(getStoryHref(baseUrl,storyId,queryParams)),title:"Copy canvas link"},import_react29.default.createElement(LinkIcon,null)):null)};var import_react30=__toESM(require_react());var{PREVIEW_URL:PREVIEW_URL2}=scope,ejectMapper=({state})=>{let{storyId,refId,refs}=state,ref=refs[refId];return{refId,baseUrl:ref?`${ref.url}/iframe.html`:PREVIEW_URL2||"iframe.html",storyId,queryParams:state.customQueryParams}},ejectTool={title:"eject",id:"eject",type:typesX.TOOL,match:({viewMode,tabId})=>viewMode==="story"&&!tabId,render:()=>import_react30.default.createElement(ManagerConsumer,{filter:ejectMapper},({baseUrl,storyId,queryParams})=>storyId?import_react30.default.createElement(IconButton,{key:"opener",asChild:!0},import_react30.default.createElement("a",{href:getStoryHref(baseUrl,storyId,queryParams),target:"_blank",rel:"noopener noreferrer",title:"Open canvas in new tab"},import_react30.default.createElement(ShareAltIcon,null))):null)};var import_react31=__toESM(require_react());var menuMapper=({api,state})=>({isVisible:api.getIsPanelShown(),singleStory:state.singleStory,panelPosition:state.layout.panelPosition,toggle:()=>api.togglePanel()}),addonsTool={title:"addons",id:"addons",type:typesX.TOOL,match:({viewMode,tabId})=>viewMode==="story"&&!tabId,render:()=>import_react31.default.createElement(ManagerConsumer,{filter:menuMapper},({isVisible,toggle,singleStory,panelPosition})=>!singleStory&&!isVisible&&import_react31.default.createElement(import_react31.default.Fragment,null,import_react31.default.createElement(IconButton,{"aria-label":"Show addons",key:"addons",onClick:toggle,title:"Show addons"},panelPosition==="bottom"?import_react31.default.createElement(BottomBarIcon,null):import_react31.default.createElement(SidebarAltIcon,null))))};var import_react32=__toESM(require_react());var StyledAnimatedIconButton=newStyled(IconButton)(({theme,animating,disabled})=>({opacity:disabled?.5:1,svg:{animation:animating&&`${theme.animation.rotate360} 1000ms ease-out`}})),menuMapper2=({api,state})=>{let{storyId}=state;return{storyId,remount:()=>api.emit(FORCE_REMOUNT,{storyId:state.storyId}),api}},remountTool={title:"remount",id:"remount",type:typesX.TOOL,match:({viewMode,tabId})=>viewMode==="story"&&!tabId,render:()=>import_react32.default.createElement(ManagerConsumer,{filter:menuMapper2},({remount,storyId,api})=>{let[isAnimating,setIsAnimating]=(0,import_react32.useState)(!1),remountComponent=()=>{storyId&&remount()};return api.on(FORCE_REMOUNT,()=>{setIsAnimating(!0)}),import_react32.default.createElement(StyledAnimatedIconButton,{key:"remount",title:"Remount component",onClick:remountComponent,onAnimationEnd:()=>setIsAnimating(!1),animating:isAnimating,disabled:!storyId},import_react32.default.createElement(SyncIcon,null))})};var fullScreenMapper=({api,state})=>({toggle:api.toggleFullscreen,isFullscreen:api.getIsFullscreen(),shortcut:shortcutToHumanString(api.getShortcutKeys().fullScreen),hasPanel:Object.keys(api.getElements(Addon_TypesEnum.PANEL)).length>0,singleStory:state.singleStory}),fullScreenTool={title:"fullscreen",id:"fullscreen",type:typesX.TOOL,match:p2=>["story","docs"].includes(p2.viewMode),render:()=>{let{isMobile}=useLayout();return isMobile?null:import_react33.default.createElement(ManagerConsumer,{filter:fullScreenMapper},({toggle,isFullscreen,shortcut,hasPanel,singleStory})=>(!singleStory||singleStory&&hasPanel)&&import_react33.default.createElement(IconButton,{key:"full",onClick:toggle,title:`${isFullscreen?"Exit full screen":"Go full screen"} [${shortcut}]`,"aria-label":isFullscreen?"Exit full screen":"Go full screen"},isFullscreen?import_react33.default.createElement(CloseIcon,null):import_react33.default.createElement(ExpandIcon,null)))}};var ToolbarComp=import_react33.default.memo(function({isShown,tools,toolsExtra,tabs,tabId,api}){return tabs||tools||toolsExtra?import_react33.default.createElement(Toolbar,{className:"sb-bar",key:"toolbar",shown:isShown,"data-test-id":"sb-preview-toolbar"},import_react33.default.createElement(ToolbarInner,null,import_react33.default.createElement(ToolbarLeft,null,tabs.length>1?import_react33.default.createElement(import_react33.Fragment,null,import_react33.default.createElement(TabBar,{key:"tabs"},tabs.map((tab,index)=>import_react33.default.createElement(TabButton,{disabled:tab.disabled,active:tab.id===tabId||tab.id==="canvas"&&!tabId,onClick:()=>{api.applyQueryParams({tab:tab.id==="canvas"?void 0:tab.id})},key:tab.id||`tab-${index}`},tab.title))),import_react33.default.createElement(Separator,null)):null,import_react33.default.createElement(Tools,{key:"left",list:tools})),import_react33.default.createElement(ToolbarRight,null,import_react33.default.createElement(Tools,{key:"right",list:toolsExtra})))):null}),Tools=import_react33.default.memo(function({list}){return import_react33.default.createElement(import_react33.default.Fragment,null,list.filter(Boolean).map(({render:Render,id,...t3},index)=>import_react33.default.createElement(Render,{key:id||t3.key||`f-${index}`})))});function toolbarItemHasBeenExcluded(item,entry){let parameters=entry?.type==="story"&&entry?.prepared?entry?.parameters:{},toolbarItemsFromStoryParameters="toolbar"in parameters?parameters.toolbar:void 0,{toolbar:toolbarItemsFromAddonsConfig}=addons.getConfig(),toolbarItems=merge_default(toolbarItemsFromAddonsConfig,toolbarItemsFromStoryParameters);return toolbarItems?!!toolbarItems[item?.id]?.hidden:!1}function filterToolsSide(tools,entry,viewMode,location,path,tabId){let filter=item=>item&&(!item.match||item.match({storyId:entry?.id,refId:entry?.refId,viewMode,location,path,tabId}))&&!toolbarItemHasBeenExcluded(item,entry);return tools.filter(filter)}var Toolbar=newStyled.div(({theme,shown})=>({position:"relative",color:theme.barTextColor,width:"100%",height:40,flexShrink:0,overflowX:"auto",overflowY:"hidden",marginTop:shown?0:-40,boxShadow:`${theme.appBorderColor} 0 -1px 0 0 inset`,background:theme.barBg,zIndex:4})),ToolbarInner=newStyled.div({position:"absolute",width:"calc(100% - 20px)",display:"flex",justifyContent:"space-between",flexWrap:"nowrap",flexShrink:0,height:40,marginLeft:10,marginRight:10}),ToolbarLeft=newStyled.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",gap:6,alignItems:"center"}),ToolbarRight=newStyled(ToolbarLeft)({marginLeft:30});var import_react35=__toESM(require_react());var import_react34=__toESM(require_react());var StyledIframe=newStyled.iframe(({theme})=>({backgroundColor:theme.background.preview,display:"block",boxSizing:"content-box",height:"100%",width:"100%",border:"0 none",transition:"background-position 0s, visibility 0s",backgroundPosition:"-1px -1px, -1px -1px, -1px -1px, -1px -1px",margin:"auto",boxShadow:"0 0 100px 100vw rgba(0,0,0,0.5)"}));function IFrame(props){let{active,id,title,src,allowFullScreen,scale,...rest}=props,iFrameRef=import_react34.default.useRef(null);return import_react34.default.createElement(Zoom.IFrame,{scale,active,iFrameRef},import_react34.default.createElement(StyledIframe,{"data-is-storybook":active?"true":"false",onLoad:e3=>e3.currentTarget.setAttribute("data-is-loaded","true"),id,title,src,allow:"clipboard-write;",allowFullScreen,ref:iFrameRef,...rest}))}var import_qs=__toESM(require_lib()),stringifyQueryParams=queryParams=>import_qs.default.stringify(queryParams,{addQueryPrefix:!0,encode:!1}).replace(/^\?/,"&");var getActive=(refId,refs)=>refId&&refs[refId]?`storybook-ref-${refId}`:"storybook-preview-iframe",SkipToSidebarLink=newStyled(Button)(({theme})=>({display:"none","@media (min-width: 600px)":{position:"absolute",display:"block",top:10,right:15,padding:"10px 15px",fontSize:theme.typography.size.s1,transform:"translateY(-100px)","&:focus":{transform:"translateY(0)",zIndex:1}}})),whenSidebarIsVisible=({api,state})=>({isFullscreen:api.getIsFullscreen(),isNavShown:api.getIsNavShown(),selectedStoryId:state.storyId}),styles={'#root [data-is-storybook="false"]':{display:"none"},'#root [data-is-storybook="true"]':{display:"block"}},FramesRenderer=({refs,scale,viewMode="story",refId,queryParams={},baseUrl,storyId="*"})=>{let version=refs[refId]?.version,stringifiedQueryParams=stringifyQueryParams({...queryParams,...version&&{version}}),active=getActive(refId,refs),{current:frames}=(0,import_react35.useRef)({}),refsToLoad=Object.values(refs).filter(ref=>ref.type==="auto-inject"||ref.id===refId,{});return frames["storybook-preview-iframe"]||(frames["storybook-preview-iframe"]=getStoryHref(baseUrl,storyId,{...queryParams,...version&&{version},viewMode})),refsToLoad.forEach(ref=>{let id=`storybook-ref-${ref.id}`,existingUrl=frames[id]?.split("/iframe.html")[0];if(!existingUrl||ref.url!==existingUrl){let newUrl=`${ref.url}/iframe.html?id=${storyId}&viewMode=${viewMode}&refId=${ref.id}${stringifiedQueryParams}`;frames[id]=newUrl}}),import_react35.default.createElement(import_react35.Fragment,null,import_react35.default.createElement(Global,{styles}),import_react35.default.createElement(ManagerConsumer,{filter:whenSidebarIsVisible},({isFullscreen,isNavShown,selectedStoryId})=>isFullscreen||!isNavShown||!selectedStoryId?null:import_react35.default.createElement(SkipToSidebarLink,{asChild:!0},import_react35.default.createElement("a",{href:`#${selectedStoryId}`,tabIndex:0,title:"Skip to sidebar"},"Skip to sidebar"))),Object.entries(frames).map(([id,src])=>import_react35.default.createElement(import_react35.Fragment,{key:id},import_react35.default.createElement(IFrame,{active:id===active,key:id,id,title:id,src,allowFullScreen:!0,scale}))))};var canvasMapper=({state,api})=>({storyId:state.storyId,refId:state.refId,viewMode:state.viewMode,customCanvas:api.renderPreview,queryParams:state.customQueryParams,getElements:api.getElements,entry:api.getData(state.storyId,state.refId),previewInitialized:state.previewInitialized,refs:state.refs}),createCanvasTab=()=>({id:"canvas",type:typesX.TAB,title:"Canvas",route:({storyId,refId})=>refId?`/story/${refId}_${storyId}`:`/story/${storyId}`,match:({viewMode})=>!!(viewMode&&viewMode.match(/^(story|docs)$/)),render:()=>null}),Preview=import_react36.default.memo(function(props){let{api,id:previewId,options:options2,viewMode,storyId,entry=void 0,description,baseUrl,withLoader=!0,tools,toolsExtra,tabs,wrappers,tabId}=props,tabContent=tabs.find(tab=>tab.id===tabId)?.render,shouldScale=viewMode==="story",{showToolbar}=options2,previousStoryId=(0,import_react36.useRef)(storyId);return(0,import_react36.useEffect)(()=>{if(entry&&viewMode){if(storyId===previousStoryId.current)return;if(previousStoryId.current=storyId,viewMode.match(/docs|story/)){let{refId,id}=entry;api.emit(SET_CURRENT_STORY,{storyId:id,viewMode,options:{target:refId}})}}},[entry,viewMode,storyId,api]),import_react36.default.createElement(import_react36.Fragment,null,previewId==="main"&&import_react36.default.createElement(W,{key:"description"},import_react36.default.createElement("title",null,description)),import_react36.default.createElement(ZoomProvider,{shouldScale},import_react36.default.createElement(PreviewContainer,null,import_react36.default.createElement(ToolbarComp,{key:"tools",isShown:showToolbar,tabId,tabs,tools,toolsExtra,api}),import_react36.default.createElement(FrameWrap,{key:"frame"},tabContent&&import_react36.default.createElement(IframeWrapper,null,tabContent({active:!0})),import_react36.default.createElement(CanvasWrap,{show:!tabId},import_react36.default.createElement(Canvas,{withLoader,baseUrl,wrappers}))))))});var Canvas=({baseUrl,withLoader,wrappers})=>import_react36.default.createElement(ManagerConsumer,{filter:canvasMapper},({entry,refs,customCanvas,storyId,refId,viewMode,queryParams,previewInitialized})=>{let id="canvas",[progress,setProgress]=(0,import_react36.useState)(void 0);(0,import_react36.useEffect)(()=>{if(scope.CONFIG_TYPE==="DEVELOPMENT")try{addons.getChannel().on(PREVIEW_BUILDER_PROGRESS,options2=>{setProgress(options2)})}catch{}},[]);let refLoading=!!refs[refId]&&!refs[refId].previewInitialized,isBuilding=!(progress?.value===1||progress===void 0),rootLoading=!refId&&(!previewInitialized||isBuilding),isLoading=entry&&refLoading||rootLoading;return import_react36.default.createElement(ZoomConsumer,null,({value:scale})=>import_react36.default.createElement(import_react36.default.Fragment,null,withLoader&&isLoading&&import_react36.default.createElement(LoaderWrapper,null,import_react36.default.createElement(Loader,{id:"preview-loader",role:"progressbar",progress})),import_react36.default.createElement(ApplyWrappers,{id,storyId,viewMode,wrappers},customCanvas?customCanvas(storyId,viewMode,id,baseUrl,scale,queryParams):import_react36.default.createElement(FramesRenderer,{baseUrl,refs,scale,entry,viewMode,refId,queryParams,storyId}))))});function filterTabs(panels,parameters){let{previewTabs}=addons.getConfig(),parametersTabs=parameters?parameters.previewTabs:void 0;if(previewTabs||parametersTabs){let tabs=merge_default(previewTabs,parametersTabs),arrTabs=Object.keys(tabs).map((key,index)=>({index,...typeof tabs[key]=="string"?{title:tabs[key]}:tabs[key],id:key}));return panels.filter(panel=>{let t3=arrTabs.find(tab=>tab.id===panel.id);return t3===void 0||t3.id==="canvas"||!t3.hidden}).map((panel,index)=>({...panel,index})).sort((p1,p2)=>{let tab_1=arrTabs.find(tab=>tab.id===p1.id),index_1=tab_1?tab_1.index:arrTabs.length+p1.index,tab_2=arrTabs.find(tab=>tab.id===p2.id),index_2=tab_2?tab_2.index:arrTabs.length+p2.index;return index_1-index_2}).map(panel=>{let t3=arrTabs.find(tab=>tab.id===panel.id);return t3?{...panel,title:t3.title||panel.title,disabled:t3.disabled,hidden:t3.hidden}:panel})}return panels}var import_react37=__toESM(require_react());var menuMapper3=({api,state})=>({isVisible:api.getIsNavShown(),singleStory:state.singleStory,toggle:()=>api.toggleNav()}),menuTool={title:"menu",id:"menu",type:typesX.TOOL,match:({viewMode})=>["story","docs"].includes(viewMode),render:()=>import_react37.default.createElement(ManagerConsumer,{filter:menuMapper3},({isVisible,toggle,singleStory})=>!singleStory&&!isVisible&&import_react37.default.createElement(import_react37.default.Fragment,null,import_react37.default.createElement(IconButton,{"aria-label":"Show sidebar",key:"menu",onClick:toggle,title:"Show sidebar"},import_react37.default.createElement(MenuIcon,null)),import_react37.default.createElement(Separator,null)))};var defaultTabs=[createCanvasTab()],defaultTools=[menuTool,remountTool,zoomTool],defaultToolsExtra=[addonsTool,fullScreenTool,ejectTool,copyTool],emptyTabsList=[],memoizedTabs=(0,import_memoizerific2.default)(1)((_2,tabElements,parameters,showTabs)=>showTabs?filterTabs([...defaultTabs,...Object.values(tabElements)],parameters):emptyTabsList),memoizedTools=(0,import_memoizerific2.default)(1)((_2,toolElements,filterProps)=>filterToolsSide([...defaultTools,...Object.values(toolElements)],...filterProps)),memoizedExtra=(0,import_memoizerific2.default)(1)((_2,extraElements,filterProps)=>filterToolsSide([...defaultToolsExtra,...Object.values(extraElements)],...filterProps)),memoizedWrapper=(0,import_memoizerific2.default)(1)((_2,previewElements)=>[...defaultWrappers,...Object.values(previewElements)]),{PREVIEW_URL:PREVIEW_URL3}=scope,splitTitleAddExtraSpace=input=>input.split("/").join(" / ").replace(/\s\s/," "),getDescription=item=>{if(item?.type==="story"||item?.type==="docs"){let{title,name}=item;return title&&name?splitTitleAddExtraSpace(`${title} - ${name} \u22C5 Storybook`):"Storybook"}return item?.name?`${item.name} \u22C5 Storybook`:"Storybook"},mapper=({api,state})=>{let{layout,location,customQueryParams,storyId,refs,viewMode,path,refId}=state,entry=api.getData(storyId,refId),tabsList=Object.values(api.getElements(Addon_TypesEnum.TAB)),wrapperList=Object.values(api.getElements(Addon_TypesEnum.PREVIEW)),toolsList=Object.values(api.getElements(Addon_TypesEnum.TOOL)),toolsExtraList=Object.values(api.getElements(Addon_TypesEnum.TOOLEXTRA)),tabId=api.getQueryParam("tab"),tools=memoizedTools(toolsList.length,api.getElements(Addon_TypesEnum.TOOL),[entry,viewMode,location,path,tabId]),toolsExtra=memoizedExtra(toolsExtraList.length,api.getElements(Addon_TypesEnum.TOOLEXTRA),[entry,viewMode,location,path,tabId]);return{api,entry,options:layout,description:getDescription(entry),viewMode,refs,storyId,baseUrl:PREVIEW_URL3||"iframe.html",queryParams:customQueryParams,tools,toolsExtra,tabs:memoizedTabs(tabsList.length,api.getElements(Addon_TypesEnum.TAB),entry?entry.parameters:void 0,layout.showTabs),wrappers:memoizedWrapper(wrapperList.length,api.getElements(Addon_TypesEnum.PREVIEW)),tabId}},PreviewConnected=import_react38.default.memo(function(props){return import_react38.default.createElement(ManagerConsumer,{filter:mapper},fromState=>import_react38.default.createElement(Preview,{...props,...fromState}))}),Preview_default=PreviewConnected;var import_react40=__toESM(require_react()),import_memoizerific3=__toESM(require_memoizerific());var import_react39=__toESM(require_react());var SafeTab=class extends import_react39.Component{constructor(props){super(props),this.state={hasError:!1}}componentDidCatch(error,info){this.setState({hasError:!0}),console.error(error,info)}render(){let{hasError}=this.state,{children}=this.props;return hasError?import_react39.default.createElement("h1",null,"Something went wrong."):children}},AddonPanel=import_react39.default.memo(({panels,shortcuts,actions,selectedPanel=null,panelPosition="right",absolute=!0})=>{let{isDesktop,setMobilePanelOpen}=useLayout();return import_react39.default.createElement(Tabs,{absolute,...selectedPanel?{selected:selectedPanel}:{},menuName:"Addons",actions,showToolsWhenEmpty:!0,emptyState:import_react39.default.createElement(EmptyTabContent,{title:"Storybook add-ons",description:import_react39.default.createElement(import_react39.default.Fragment,null,"Integrate your tools with Storybook to connect workflows and unlock advanced features."),footer:import_react39.default.createElement(Link22,{href:"https://storybook.js.org/integrations",target:"_blank",withArrow:!0},import_react39.default.createElement(DocumentIcon,null)," Explore integrations catalog")}),tools:import_react39.default.createElement(Actions,null,isDesktop?import_react39.default.createElement(import_react39.default.Fragment,null,import_react39.default.createElement(IconButton,{key:"position",onClick:actions.togglePosition,title:`Change addon orientation [${shortcutToHumanString(shortcuts.panelPosition)}]`},panelPosition==="bottom"?import_react39.default.createElement(SidebarAltIcon,null):import_react39.default.createElement(BottomBarIcon,null)),import_react39.default.createElement(IconButton,{key:"visibility",onClick:actions.toggleVisibility,title:`Hide addons [${shortcutToHumanString(shortcuts.togglePanel)}]`},import_react39.default.createElement(CloseIcon,null))):import_react39.default.createElement(IconButton,{onClick:()=>setMobilePanelOpen(!1),title:"Close addon panel"},import_react39.default.createElement(CloseIcon,null))),id:"storybook-panel-root"},Object.entries(panels).map(([k2,v2])=>import_react39.default.createElement(SafeTab,{key:k2,id:k2,title:typeof v2.title=="function"?import_react39.default.createElement(v2.title,null):v2.title},v2.render)))});AddonPanel.displayName="AddonPanel";var Actions=newStyled.div({display:"flex",alignItems:"center",gap:6});var createPanelActions=(0,import_memoizerific3.default)(1)(api=>({onSelect:panel=>api.setSelectedPanel(panel),toggleVisibility:()=>api.togglePanel(),togglePosition:()=>api.togglePanelPosition()})),getPanels=api=>{let allPanels=api.getElements(Addon_TypesEnum.PANEL),story=api.getCurrentStoryData();if(!allPanels||!story||story.type!=="story")return allPanels;let{parameters}=story,filteredPanels={};return Object.entries(allPanels).forEach(([id,panel])=>{let{paramKey}=panel;paramKey&¶meters&¶meters[paramKey]&¶meters[paramKey].disable||(filteredPanels[id]=panel)}),filteredPanels},mapper2=({state,api})=>({panels:getPanels(api),selectedPanel:api.getSelectedPanel(),panelPosition:state.layout.panelPosition,actions:createPanelActions(api),shortcuts:api.getShortcutKeys()}),Panel=props=>import_react40.default.createElement(ManagerConsumer,{filter:mapper2},customProps=>import_react40.default.createElement(AddonPanel,{...props,...customProps})),Panel_default=Panel;var import_react52=__toESM(require_react());var import_react41=__toESM(require_react()),SNAP_THRESHOLD_PX=30,SIDEBAR_MIN_WIDTH_PX=240,RIGHT_PANEL_MIN_WIDTH_PX=270,MIN_WIDTH_STIFFNESS=.9;function clamp(value,min,max){return Math.min(Math.max(value,min),max)}function interpolate(relativeValue,min,max){return min+(max-min)*relativeValue}function useDragging({setState,isPanelShown,isDesktop}){let panelResizerRef=(0,import_react41.useRef)(null),sidebarResizerRef=(0,import_react41.useRef)(null);return(0,import_react41.useEffect)(()=>{let panelResizer=panelResizerRef.current,sidebarResizer=sidebarResizerRef.current,previewIframe=document.querySelector("#storybook-preview-iframe"),draggedElement=null,onDragStart=e3=>{e3.preventDefault(),setState(state=>({...state,isDragging:!0})),e3.currentTarget===panelResizer?draggedElement=panelResizer:e3.currentTarget===sidebarResizer&&(draggedElement=sidebarResizer),window.addEventListener("mousemove",onDrag),window.addEventListener("mouseup",onDragEnd),previewIframe&&(previewIframe.style.pointerEvents="none")},onDragEnd=e3=>{setState(state=>draggedElement===sidebarResizer&&state.navSize0?{...state,isDragging:!1,navSize:SIDEBAR_MIN_WIDTH_PX}:draggedElement===panelResizer&&state.panelPosition==="right"&&state.rightPanelWidth0?{...state,isDragging:!1,rightPanelWidth:RIGHT_PANEL_MIN_WIDTH_PX}:{...state,isDragging:!1}),window.removeEventListener("mousemove",onDrag),window.removeEventListener("mouseup",onDragEnd),previewIframe?.removeAttribute("style"),draggedElement=null},onDrag=e3=>{if(e3.buttons===0){onDragEnd(e3);return}setState(state=>{if(draggedElement===sidebarResizer){let sidebarDragX=e3.clientX;return sidebarDragX===state.navSize?state:sidebarDragX<=SNAP_THRESHOLD_PX?{...state,navSize:0}:sidebarDragX<=SIDEBAR_MIN_WIDTH_PX?{...state,navSize:interpolate(MIN_WIDTH_STIFFNESS,sidebarDragX,SIDEBAR_MIN_WIDTH_PX)}:{...state,navSize:clamp(sidebarDragX,0,e3.view.innerWidth)}}if(draggedElement===panelResizer){let sizeAxisState=state.panelPosition==="bottom"?"bottomPanelHeight":"rightPanelWidth",panelDragSize=state.panelPosition==="bottom"?e3.view.innerHeight-e3.clientY:e3.view.innerWidth-e3.clientX;if(panelDragSize===state[sizeAxisState])return state;if(panelDragSize<=SNAP_THRESHOLD_PX)return{...state,[sizeAxisState]:0};if(state.panelPosition==="right"&&panelDragSize<=RIGHT_PANEL_MIN_WIDTH_PX)return{...state,[sizeAxisState]:interpolate(MIN_WIDTH_STIFFNESS,panelDragSize,RIGHT_PANEL_MIN_WIDTH_PX)};let sizeAxisMax=state.panelPosition==="bottom"?e3.view.innerHeight:e3.view.innerWidth;return{...state,[sizeAxisState]:clamp(panelDragSize,0,sizeAxisMax)}}return state})};return panelResizer?.addEventListener("mousedown",onDragStart),sidebarResizer?.addEventListener("mousedown",onDragStart),()=>{panelResizer?.removeEventListener("mousedown",onDragStart),sidebarResizer?.removeEventListener("mousedown",onDragStart),previewIframe?.removeAttribute("style")}},[isPanelShown,isDesktop,setState]),{panelResizerRef,sidebarResizerRef}}var import_react48=__toESM(require_react());var import_react46=__toESM(require_react());function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i3;for(i3=0;i3=0)&&(target[key]=source[key]);return target}var import_prop_types4=__toESM(require_prop_types()),import_react43=__toESM(require_react()),import_react_dom=__toESM(require_react_dom());var config_default={disabled:!1};var import_prop_types3=__toESM(require_prop_types()),timeoutsShape=import_prop_types3.default.oneOfType([import_prop_types3.default.number,import_prop_types3.default.shape({enter:import_prop_types3.default.number,exit:import_prop_types3.default.number,appear:import_prop_types3.default.number}).isRequired]),classNamesShape=import_prop_types3.default.oneOfType([import_prop_types3.default.string,import_prop_types3.default.shape({enter:import_prop_types3.default.string,exit:import_prop_types3.default.string,active:import_prop_types3.default.string}),import_prop_types3.default.shape({enter:import_prop_types3.default.string,enterDone:import_prop_types3.default.string,enterActive:import_prop_types3.default.string,exit:import_prop_types3.default.string,exitDone:import_prop_types3.default.string,exitActive:import_prop_types3.default.string})]);var import_react42=__toESM(require_react()),TransitionGroupContext_default=import_react42.default.createContext(null);var forceReflow=function(node){return node.scrollTop};var UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(_React$Component){_inheritsLoose(Transition2,_React$Component);function Transition2(props,context){var _this;_this=_React$Component.call(this,props,context)||this;var parentGroup=context,appear=parentGroup&&!parentGroup.isMounting?props.enter:props.appear,initialStatus;return _this.appearStatus=null,props.in?appear?(initialStatus=EXITED,_this.appearStatus=ENTERING):initialStatus=ENTERED:props.unmountOnExit||props.mountOnEnter?initialStatus=UNMOUNTED:initialStatus=EXITED,_this.state={status:initialStatus},_this.nextCallback=null,_this}Transition2.getDerivedStateFromProps=function(_ref,prevState){var nextIn=_ref.in;return nextIn&&prevState.status===UNMOUNTED?{status:EXITED}:null};var _proto=Transition2.prototype;return _proto.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},_proto.componentDidUpdate=function(prevProps){var nextStatus=null;if(prevProps!==this.props){var status=this.state.status;this.props.in?status!==ENTERING&&status!==ENTERED&&(nextStatus=ENTERING):(status===ENTERING||status===ENTERED)&&(nextStatus=EXITING)}this.updateStatus(!1,nextStatus)},_proto.componentWillUnmount=function(){this.cancelNextCallback()},_proto.getTimeouts=function(){var timeout2=this.props.timeout,exit,enter,appear;return exit=enter=appear=timeout2,timeout2!=null&&typeof timeout2!="number"&&(exit=timeout2.exit,enter=timeout2.enter,appear=timeout2.appear!==void 0?timeout2.appear:enter),{exit,enter,appear}},_proto.updateStatus=function(mounting,nextStatus){if(mounting===void 0&&(mounting=!1),nextStatus!==null)if(this.cancelNextCallback(),nextStatus===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var node=this.props.nodeRef?this.props.nodeRef.current:import_react_dom.default.findDOMNode(this);node&&forceReflow(node)}this.performEnter(mounting)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},_proto.performEnter=function(mounting){var _this2=this,enter=this.props.enter,appearing=this.context?this.context.isMounting:mounting,_ref2=this.props.nodeRef?[appearing]:[import_react_dom.default.findDOMNode(this),appearing],maybeNode=_ref2[0],maybeAppearing=_ref2[1],timeouts=this.getTimeouts(),enterTimeout=appearing?timeouts.appear:timeouts.enter;if(!mounting&&!enter||config_default.disabled){this.safeSetState({status:ENTERED},function(){_this2.props.onEntered(maybeNode)});return}this.props.onEnter(maybeNode,maybeAppearing),this.safeSetState({status:ENTERING},function(){_this2.props.onEntering(maybeNode,maybeAppearing),_this2.onTransitionEnd(enterTimeout,function(){_this2.safeSetState({status:ENTERED},function(){_this2.props.onEntered(maybeNode,maybeAppearing)})})})},_proto.performExit=function(){var _this3=this,exit=this.props.exit,timeouts=this.getTimeouts(),maybeNode=this.props.nodeRef?void 0:import_react_dom.default.findDOMNode(this);if(!exit||config_default.disabled){this.safeSetState({status:EXITED},function(){_this3.props.onExited(maybeNode)});return}this.props.onExit(maybeNode),this.safeSetState({status:EXITING},function(){_this3.props.onExiting(maybeNode),_this3.onTransitionEnd(timeouts.exit,function(){_this3.safeSetState({status:EXITED},function(){_this3.props.onExited(maybeNode)})})})},_proto.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},_proto.safeSetState=function(nextState,callback){callback=this.setNextCallback(callback),this.setState(nextState,callback)},_proto.setNextCallback=function(callback){var _this4=this,active=!0;return this.nextCallback=function(event){active&&(active=!1,_this4.nextCallback=null,callback(event))},this.nextCallback.cancel=function(){active=!1},this.nextCallback},_proto.onTransitionEnd=function(timeout2,handler){this.setNextCallback(handler);var node=this.props.nodeRef?this.props.nodeRef.current:import_react_dom.default.findDOMNode(this),doesNotHaveTimeoutOrListener=timeout2==null&&!this.props.addEndListener;if(!node||doesNotHaveTimeoutOrListener){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var _ref3=this.props.nodeRef?[this.nextCallback]:[node,this.nextCallback],maybeNode=_ref3[0],maybeNextCallback=_ref3[1];this.props.addEndListener(maybeNode,maybeNextCallback)}timeout2!=null&&setTimeout(this.nextCallback,timeout2)},_proto.render=function(){var status=this.state.status;if(status===UNMOUNTED)return null;var _this$props=this.props,children=_this$props.children,_in=_this$props.in,_mountOnEnter=_this$props.mountOnEnter,_unmountOnExit=_this$props.unmountOnExit,_appear=_this$props.appear,_enter=_this$props.enter,_exit=_this$props.exit,_timeout=_this$props.timeout,_addEndListener=_this$props.addEndListener,_onEnter=_this$props.onEnter,_onEntering=_this$props.onEntering,_onEntered=_this$props.onEntered,_onExit=_this$props.onExit,_onExiting=_this$props.onExiting,_onExited=_this$props.onExited,_nodeRef=_this$props.nodeRef,childProps=_objectWithoutPropertiesLoose(_this$props,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return import_react43.default.createElement(TransitionGroupContext_default.Provider,{value:null},typeof children=="function"?children(status,childProps):import_react43.default.cloneElement(import_react43.default.Children.only(children),childProps))},Transition2}(import_react43.default.Component);Transition.contextType=TransitionGroupContext_default;Transition.propTypes={nodeRef:import_prop_types4.default.shape({current:typeof Element>"u"?import_prop_types4.default.any:function(propValue,key,componentName,location,propFullName,secret){var value=propValue[key];return import_prop_types4.default.instanceOf(value&&"ownerDocument"in value?value.ownerDocument.defaultView.Element:Element)(propValue,key,componentName,location,propFullName,secret)}}),children:import_prop_types4.default.oneOfType([import_prop_types4.default.func.isRequired,import_prop_types4.default.element.isRequired]).isRequired,in:import_prop_types4.default.bool,mountOnEnter:import_prop_types4.default.bool,unmountOnExit:import_prop_types4.default.bool,appear:import_prop_types4.default.bool,enter:import_prop_types4.default.bool,exit:import_prop_types4.default.bool,timeout:function(props){var pt=timeoutsShape;props.addEndListener||(pt=pt.isRequired);for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return pt.apply(void 0,[props].concat(args))},addEndListener:import_prop_types4.default.func,onEnter:import_prop_types4.default.func,onEntering:import_prop_types4.default.func,onEntered:import_prop_types4.default.func,onExit:import_prop_types4.default.func,onExiting:import_prop_types4.default.func,onExited:import_prop_types4.default.func};function noop3(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop3,onEntering:noop3,onEntered:noop3,onExit:noop3,onExiting:noop3,onExited:noop3};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var Transition_default=Transition;var import_react45=__toESM(require_react());var import_react44=__toESM(require_react());var UpgradeBlock=({onNavigateToWhatsNew})=>{let api=useStorybookApi(),[activeTab,setActiveTab]=(0,import_react44.useState)("npm");return import_react44.default.createElement(Container3,null,import_react44.default.createElement("strong",null,"You are on Storybook ",api.getCurrentVersion().version),import_react44.default.createElement("p",null,"Run the following script to check for updates and upgrade to the latest version."),import_react44.default.createElement(Tabs2,null,import_react44.default.createElement(ButtonTab,{active:activeTab==="npm",onClick:()=>setActiveTab("npm")},"npm"),import_react44.default.createElement(ButtonTab,{active:activeTab==="pnpm",onClick:()=>setActiveTab("pnpm")},"pnpm")),import_react44.default.createElement(Code,null,activeTab==="npm"?"npx storybook@latest upgrade":"pnpm dlx storybook@latest upgrade"),onNavigateToWhatsNew&&import_react44.default.createElement(Link22,{onClick:onNavigateToWhatsNew},"See what's new in Storybook"))},Container3=newStyled.div(({theme})=>({border:"1px solid",borderRadius:5,padding:20,marginTop:0,borderColor:theme.appBorderColor,fontSize:theme.typography.size.s2,width:"100%",[MEDIA_DESKTOP_BREAKPOINT]:{maxWidth:400}})),Tabs2=newStyled.div({display:"flex",gap:2}),Code=newStyled.pre(({theme})=>({background:theme.base==="light"?"rgba(0, 0, 0, 0.05)":theme.appBorderColor,fontSize:theme.typography.size.s2-1,margin:"4px 0 16px"})),ButtonTab=newStyled.button(({theme,active})=>({all:"unset",alignItems:"center",gap:10,color:theme.color.defaultText,fontSize:theme.typography.size.s2-1,borderBottom:"2px solid transparent",borderBottomColor:active?theme.color.secondary:"none",padding:"0 10px 5px",marginBottom:"5px",cursor:"pointer"}));var MobileAbout=()=>{let{isMobileAboutOpen,setMobileAboutOpen}=useLayout(),aboutRef=(0,import_react45.useRef)(null);return import_react45.default.createElement(Transition_default,{nodeRef:aboutRef,in:isMobileAboutOpen,timeout:300,appear:!0,mountOnEnter:!0,unmountOnExit:!0},state=>import_react45.default.createElement(Container4,{ref:aboutRef,state,transitionDuration:300},import_react45.default.createElement(Button2,{onClick:()=>setMobileAboutOpen(!1),title:"Close about section"},import_react45.default.createElement(ArrowLeftIcon,null),"Back"),import_react45.default.createElement(LinkContainer,null,import_react45.default.createElement(LinkLine,{href:"https://github.com/storybookjs/storybook",target:"_blank"},import_react45.default.createElement(LinkLeft,null,import_react45.default.createElement(GithubIcon,null),import_react45.default.createElement("span",null,"Github")),import_react45.default.createElement(ShareAltIcon,{width:12})),import_react45.default.createElement(LinkLine,{href:"https://storybook.js.org/docs/react/get-started/install/",target:"_blank"},import_react45.default.createElement(LinkLeft,null,import_react45.default.createElement(StorybookIcon,null),import_react45.default.createElement("span",null,"Documentation")),import_react45.default.createElement(ShareAltIcon,{width:12}))),import_react45.default.createElement(UpgradeBlock,null),import_react45.default.createElement(BottomText,null,"Open source software maintained by"," ",import_react45.default.createElement(Link22,{href:"https://chromatic.com",target:"_blank"},"Chromatic")," ","and the"," ",import_react45.default.createElement(Link22,{href:"https://github.com/storybookjs/storybook/graphs/contributors"},"Storybook Community"))))},Container4=newStyled.div(({theme,state,transitionDuration})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,zIndex:11,transition:`all ${transitionDuration}ms ease-in-out`,overflow:"scroll",padding:"25px 10px 10px",color:theme.color.defaultText,background:theme.background.content,opacity:`${(()=>{switch(state){case"entering":case"entered":return 1;case"exiting":case"exited":return 0;default:return 0}})()}`,transform:`${(()=>{switch(state){case"entering":case"entered":return"translateX(0)";case"exiting":case"exited":return"translateX(20px)";default:return"translateX(0)"}})()}`})),LinkContainer=newStyled.div({marginTop:20,marginBottom:20}),LinkLine=newStyled.a(({theme})=>({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:theme.typography.size.s2-1,height:52,borderBottom:`1px solid ${theme.appBorderColor}`,cursor:"pointer",padding:"0 10px","&:last-child":{borderBottom:"none"}})),LinkLeft=newStyled.div(({theme})=>({display:"flex",alignItems:"center",fontSize:theme.typography.size.s2-1,height:40,gap:5})),BottomText=newStyled.div(({theme})=>({fontSize:theme.typography.size.s2-1,marginTop:30})),Button2=newStyled.button(({theme})=>({all:"unset",display:"flex",alignItems:"center",gap:10,color:"currentColor",fontSize:theme.typography.size.s2-1,padding:"0 10px"}));var MobileMenuDrawer=({children})=>{let containerRef=(0,import_react46.useRef)(null),sidebarRef=(0,import_react46.useRef)(null),overlayRef=(0,import_react46.useRef)(null),{isMobileMenuOpen,setMobileMenuOpen,isMobileAboutOpen,setMobileAboutOpen}=useLayout();return import_react46.default.createElement(import_react46.default.Fragment,null,import_react46.default.createElement(Transition_default,{nodeRef:containerRef,in:isMobileMenuOpen,timeout:300,mountOnEnter:!0,unmountOnExit:!0,onExited:()=>setMobileAboutOpen(!1)},state=>import_react46.default.createElement(Container5,{ref:containerRef,state},import_react46.default.createElement(Transition_default,{nodeRef:sidebarRef,in:!isMobileAboutOpen,timeout:300},sidebarState=>import_react46.default.createElement(SidebarContainer,{ref:sidebarRef,state:sidebarState},children)),import_react46.default.createElement(MobileAbout,null))),import_react46.default.createElement(Transition_default,{nodeRef:overlayRef,in:isMobileMenuOpen,timeout:300,mountOnEnter:!0,unmountOnExit:!0},state=>import_react46.default.createElement(Overlay,{ref:overlayRef,state,onClick:()=>setMobileMenuOpen(!1),"aria-label":"Close navigation menu"})))},Container5=newStyled.div(({theme,state})=>({position:"fixed",boxSizing:"border-box",width:"100%",background:theme.background.content,height:"80%",bottom:0,left:0,zIndex:11,borderRadius:"10px 10px 0 0",transition:`all ${300}ms ease-in-out`,overflow:"hidden",transform:`${state==="entering"||state==="entered"?"translateY(0)":state==="exiting"||state==="exited"?"translateY(100%)":"translateY(0)"}`})),SidebarContainer=newStyled.div(({theme,state})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,zIndex:1,transition:`all ${300}ms ease-in-out`,overflow:"hidden",opacity:`${state==="entered"||state==="entering"?1:state==="exiting"||state==="exited"?0:1}`,transform:`${(()=>{switch(state){case"entering":case"entered":return"translateX(0)";case"exiting":case"exited":return"translateX(-20px)";default:return"translateX(0)"}})()}`})),Overlay=newStyled.div(({state})=>({position:"fixed",boxSizing:"border-box",background:"rgba(0, 0, 0, 0.5)",top:0,bottom:0,right:0,left:0,zIndex:10,transition:`all ${300}ms ease-in-out`,cursor:"pointer",opacity:`${(()=>{switch(state){case"entering":case"entered":return 1;case"exiting":case"exited":return 0;default:return 0}})()}`,"&:hover":{background:"rgba(0, 0, 0, 0.6)"}}));var import_react47=__toESM(require_react());var Container6=newStyled.div(({theme})=>({position:"relative",boxSizing:"border-box",width:"100%",background:theme.background.content,height:"42vh",zIndex:11,overflow:"hidden"})),MobileAddonsDrawer=({children})=>import_react47.default.createElement(Container6,null,children);var useFullStoryName=()=>{let{index}=useStorybookState(),currentStory=useStorybookApi().getCurrentStoryData();if(!currentStory)return"";let fullStoryName=currentStory.renderLabel?.(currentStory)||currentStory.name,node=index[currentStory.id];for(;"parent"in node&&node.parent&&index[node.parent]&&fullStoryName.length<24;)node=index[node.parent],fullStoryName=`${node.renderLabel?.(node)||node.name}/${fullStoryName}`;return fullStoryName},MobileNavigation=({menu,panel,showPanel})=>{let{isMobileMenuOpen,isMobilePanelOpen,setMobileMenuOpen,setMobilePanelOpen}=useLayout(),fullStoryName=useFullStoryName();return import_react48.default.createElement(Container7,null,import_react48.default.createElement(MobileMenuDrawer,null,menu),isMobilePanelOpen?import_react48.default.createElement(MobileAddonsDrawer,null,panel):import_react48.default.createElement(Nav,{className:"sb-bar"},import_react48.default.createElement(Button3,{onClick:()=>setMobileMenuOpen(!isMobileMenuOpen),title:"Open navigation menu"},import_react48.default.createElement(MenuIcon,null),import_react48.default.createElement(Text2,null,fullStoryName)),showPanel&&import_react48.default.createElement(IconButton,{onClick:()=>setMobilePanelOpen(!0),title:"Open addon panel"},import_react48.default.createElement(BottomBarToggleIcon,null))))},Container7=newStyled.div(({theme})=>({bottom:0,left:0,width:"100%",zIndex:10,background:theme.barBg,borderTop:`1px solid ${theme.appBorderColor}`})),Nav=newStyled.div({display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:40,padding:"0 6px"}),Button3=newStyled.button(({theme})=>({all:"unset",display:"flex",alignItems:"center",gap:10,color:theme.barTextColor,fontSize:`${theme.typography.size.s2-1}px`,padding:"0 7px",fontWeight:theme.typography.weight.bold,WebkitLineClamp:1,"> svg":{width:14,height:14,flexShrink:0}})),Text2=newStyled.p({display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"});var import_react51=__toESM(require_react());var import_react50=__toESM(require_react());var import_react49=__toESM(require_react());var Notification=newStyled.div(({theme})=>({position:"relative",display:"flex",padding:15,width:280,borderRadius:4,alignItems:"center",background:theme.base==="light"?"hsla(203, 50%, 20%, .97)":"hsla(203, 30%, 95%, .97)",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)",color:theme.color.inverseText,textDecoration:"none"})),NotificationWithInteractiveStates=newStyled(Notification)(()=>({transition:"all 150ms ease-out",transform:"translate3d(0, 0, 0)","&:hover":{transform:"translate3d(0, -3px, 0)",boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"},"&:active":{transform:"translate3d(0, 0, 0)",boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"},"&:focus":{boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"}})),NotificationLink=NotificationWithInteractiveStates.withComponent(Link2),NotificationIconWrapper=newStyled.div(()=>({display:"flex",marginRight:10,alignItems:"center",svg:{width:16,height:16}})),NotificationTextWrapper=newStyled.div(({theme})=>({width:"100%",display:"flex",flexDirection:"column",color:theme.base==="dark"?theme.color.mediumdark:theme.color.mediumlight})),Headline=newStyled.div(({theme,hasIcon})=>({height:"100%",width:hasIcon?205:230,alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:theme.typography.size.s1,lineHeight:"16px",fontWeight:theme.typography.weight.bold})),SubHeadline=newStyled.div(({theme})=>({color:curriedTransparentize$1(.25,theme.color.inverseText),fontSize:theme.typography.size.s1-1,lineHeight:"14px",marginTop:2})),ItemContent=({icon,content:{headline,subHeadline}})=>{let theme=useTheme(),defaultColor=theme.base==="dark"?theme.color.mediumdark:theme.color.mediumlight;return import_react49.default.createElement(import_react49.default.Fragment,null,!icon||import_react49.default.createElement(NotificationIconWrapper,null,import_react49.default.isValidElement(icon)?icon:typeof icon=="object"&&"name"in icon&&import_react49.default.createElement(Icons,{icon:icon.name,color:icon.color||defaultColor})),import_react49.default.createElement(NotificationTextWrapper,null,import_react49.default.createElement(Headline,{title:headline,hasIcon:!!icon},headline),subHeadline&&import_react49.default.createElement(SubHeadline,null,subHeadline)))},DismissButtonWrapper=newStyled(IconButton)(({theme})=>({alignSelf:"center",marginTop:0,color:theme.base==="light"?"rgba(255,255,255,0.7)":" #999999"})),DismissNotificationItem=({onDismiss})=>import_react49.default.createElement(DismissButtonWrapper,{title:"Dismiss notification",onClick:e3=>{e3.preventDefault(),onDismiss()}},import_react49.default.createElement(CloseAltIcon,{size:12})),NotificationItemSpacer=newStyled.div({height:48}),NotificationItem=({notification:{content,link,onClear,id,icon},onDismissNotification})=>{let dismissNotificationItem=()=>{onDismissNotification(id),onClear&&onClear({dismissed:!0})};return link?import_react49.default.createElement(NotificationLink,{to:link},import_react49.default.createElement(ItemContent,{icon,content}),import_react49.default.createElement(DismissNotificationItem,{onDismiss:dismissNotificationItem})):import_react49.default.createElement(Notification,null,import_react49.default.createElement(ItemContent,{icon,content}),import_react49.default.createElement(DismissNotificationItem,{onDismiss:dismissNotificationItem}))},NotificationItem_default=NotificationItem;var NotificationList=({notifications,clearNotification})=>import_react50.default.createElement(List,null,notifications&¬ifications.map(notification=>import_react50.default.createElement(NotificationItem_default,{key:notification.id,onDismissNotification:id=>clearNotification(id),notification}))),List=newStyled.div({zIndex:200,position:"fixed",left:20,bottom:60,[MEDIA_DESKTOP_BREAKPOINT]:{bottom:20},"> * + *":{marginTop:10},"&:empty":{display:"none"}});var mapper3=({state,api})=>({notifications:state.notifications,clearNotification:api.clearNotification}),Notifications=props=>import_react51.default.createElement(ManagerConsumer,{filter:mapper3},fromState=>import_react51.default.createElement(NotificationList,{...props,...fromState}));var MINIMUM_CONTENT_WIDTH_PX=100,layoutStateIsEqual=(state,other)=>state.navSize===other.navSize&&state.bottomPanelHeight===other.bottomPanelHeight&&state.rightPanelWidth===other.rightPanelWidth&&state.panelPosition===other.panelPosition,useLayoutSyncingState=({managerLayoutState,setManagerLayoutState,isDesktop,hasTab})=>{let prevManagerLayoutStateRef=import_react52.default.useRef(managerLayoutState),[internalDraggingSizeState,setInternalDraggingSizeState]=(0,import_react52.useState)({...managerLayoutState,isDragging:!1});(0,import_react52.useEffect)(()=>{internalDraggingSizeState.isDragging||layoutStateIsEqual(managerLayoutState,prevManagerLayoutStateRef.current)||(prevManagerLayoutStateRef.current=managerLayoutState,setInternalDraggingSizeState(state=>({...state,...managerLayoutState})))},[internalDraggingSizeState.isDragging,managerLayoutState,setInternalDraggingSizeState]),(0,import_react52.useLayoutEffect)(()=>{if(internalDraggingSizeState.isDragging||layoutStateIsEqual(prevManagerLayoutStateRef.current,internalDraggingSizeState))return;let nextState={navSize:internalDraggingSizeState.navSize,bottomPanelHeight:internalDraggingSizeState.bottomPanelHeight,rightPanelWidth:internalDraggingSizeState.rightPanelWidth};prevManagerLayoutStateRef.current={...prevManagerLayoutStateRef.current,...nextState},setManagerLayoutState(nextState)},[internalDraggingSizeState,setManagerLayoutState]);let isPagesShown=managerLayoutState.viewMode!=="story"&&managerLayoutState.viewMode!=="docs",isPanelShown=managerLayoutState.viewMode==="story"&&!hasTab,{panelResizerRef,sidebarResizerRef}=useDragging({setState:setInternalDraggingSizeState,isPanelShown,isDesktop}),{navSize,rightPanelWidth,bottomPanelHeight}=internalDraggingSizeState.isDragging?internalDraggingSizeState:managerLayoutState;return{navSize,rightPanelWidth,bottomPanelHeight,panelPosition:managerLayoutState.panelPosition,panelResizerRef,sidebarResizerRef,showPages:isPagesShown,showPanel:isPanelShown,isDragging:internalDraggingSizeState.isDragging}},Layout=({managerLayoutState,setManagerLayoutState,hasTab,...slots})=>{let{isDesktop,isMobile}=useLayout(),{navSize,rightPanelWidth,bottomPanelHeight,panelPosition,panelResizerRef,sidebarResizerRef,showPages,showPanel,isDragging}=useLayoutSyncingState({managerLayoutState,setManagerLayoutState,isDesktop,hasTab});return import_react52.default.createElement(LayoutContainer,{navSize,rightPanelWidth,bottomPanelHeight,panelPosition:managerLayoutState.panelPosition,isDragging,viewMode:managerLayoutState.viewMode,showPanel},import_react52.default.createElement(Notifications,null),showPages&&import_react52.default.createElement(PagesContainer,null,slots.slotPages),import_react52.default.createElement(Match,{path:/(^\/story|docs|onboarding\/|^\/$)/,startsWith:!1},({match})=>import_react52.default.createElement(ContentContainer,{shown:!!match},slots.slotMain)),isDesktop&&import_react52.default.createElement(import_react52.default.Fragment,null,import_react52.default.createElement(SidebarContainer2,null,import_react52.default.createElement(Drag,{ref:sidebarResizerRef}),slots.slotSidebar),showPanel&&import_react52.default.createElement(PanelContainer,{position:panelPosition},import_react52.default.createElement(Drag,{orientation:panelPosition==="bottom"?"horizontal":"vertical",position:panelPosition==="bottom"?"left":"right",ref:panelResizerRef}),slots.slotPanel)),isMobile&&import_react52.default.createElement(MobileNavigation,{menu:slots.slotSidebar,panel:slots.slotPanel,showPanel}))},LayoutContainer=newStyled.div(({navSize,rightPanelWidth,bottomPanelHeight,viewMode,panelPosition,showPanel})=>({width:"100%",height:["100vh","100dvh"],overflow:"hidden",display:"flex",flexDirection:"column",[MEDIA_DESKTOP_BREAKPOINT]:{display:"grid",gap:0,gridTemplateColumns:`minmax(0, ${navSize}px) minmax(${MINIMUM_CONTENT_WIDTH_PX}px, 1fr) minmax(0, ${rightPanelWidth}px)`,gridTemplateRows:`1fr minmax(0, ${bottomPanelHeight}px)`,gridTemplateAreas:viewMode==="docs"||!showPanel?`"sidebar content content" + "sidebar content content"`:panelPosition==="right"?`"sidebar content panel" + "sidebar content panel"`:`"sidebar content content" + "sidebar panel panel"`}})),SidebarContainer2=newStyled.div(({theme})=>({backgroundColor:theme.background.app,gridArea:"sidebar",position:"relative",borderRight:`1px solid ${theme.color.border}`})),ContentContainer=newStyled.div(({theme,shown})=>({flex:1,position:"relative",backgroundColor:theme.background.content,display:shown?"grid":"none",overflow:"auto",[MEDIA_DESKTOP_BREAKPOINT]:{flex:"auto",gridArea:"content"}})),PagesContainer=newStyled.div(({theme})=>({gridRowStart:"sidebar-start",gridRowEnd:"-1",gridColumnStart:"sidebar-end",gridColumnEnd:"-1",backgroundColor:theme.background.content,zIndex:1})),PanelContainer=newStyled.div(({theme,position})=>({gridArea:"panel",position:"relative",backgroundColor:theme.background.content,borderTop:position==="bottom"?`1px solid ${theme.color.border}`:null,borderLeft:position==="right"?`1px solid ${theme.color.border}`:null})),Drag=newStyled.div(({theme})=>({position:"absolute",opacity:0,transition:"opacity 0.2s ease-in-out",zIndex:100,"&:after":{content:'""',display:"block",backgroundColor:theme.color.secondary},"&:hover":{opacity:1}}),({orientation="vertical",position="left"})=>orientation==="vertical"?{width:position==="left"?10:13,height:"100%",top:0,right:position==="left"?"-7px":null,left:position==="right"?"-7px":null,"&:after":{width:1,height:"100%",marginLeft:position==="left"?3:6},"&:hover":{cursor:"col-resize"}}:{width:"100%",height:"13px",top:"-7px",left:0,"&:after":{width:"100%",height:1,marginTop:6},"&:hover":{cursor:"row-resize"}});var App=({managerLayoutState,setManagerLayoutState,pages,hasTab})=>{let{setMobileAboutOpen}=useLayout();return import_react53.default.createElement(import_react53.default.Fragment,null,import_react53.default.createElement(Global,{styles:createGlobal}),import_react53.default.createElement(Layout,{hasTab,managerLayoutState,setManagerLayoutState,slotMain:import_react53.default.createElement(Preview_default,{id:"main",withLoader:!0}),slotSidebar:import_react53.default.createElement(Sidebar_default,{onMenuClick:()=>setMobileAboutOpen(state=>!state)}),slotPanel:import_react53.default.createElement(Panel_default,null),slotPages:pages.map(({id,render:Content2})=>import_react53.default.createElement(Content2,{key:id}))}))};var Provider=class{getElements(_type){throw new Error("Provider.getElements() is not implemented!")}handleAPI(_api){throw new Error("Provider.handleAPI() is not implemented!")}getConfig(){return console.error("Provider.getConfig() is not implemented!"),{}}};var import_react61=__toESM(require_react());var import_react55=__toESM(require_react());var import_react54=__toESM(require_react());var Container8=newStyled.div({display:"flex",alignItems:"center",flexDirection:"column",marginTop:40}),Header=newStyled.header({marginBottom:32,alignItems:"center",display:"flex","> svg":{height:48,width:"auto",marginRight:8}}),Footer=newStyled.div(({theme})=>({marginBottom:24,display:"flex",flexDirection:"column",alignItems:"center",color:theme.base==="light"?theme.color.dark:theme.color.lightest,fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s2})),Actions2=newStyled.div({display:"flex",flexDirection:"row",alignItems:"center",marginBottom:24,marginTop:24,gap:16}),StyledLink=newStyled(Link22)(({theme})=>({"&&":{fontWeight:theme.typography.weight.bold,color:theme.base==="light"?theme.color.dark:theme.color.light},"&:hover":{color:theme.base==="light"?theme.color.darkest:theme.color.lightest}})),AboutScreen=({onNavigateToWhatsNew})=>import_react54.default.createElement(Container8,null,import_react54.default.createElement(Header,null,import_react54.default.createElement(StorybookLogo,{alt:"Storybook"})),import_react54.default.createElement(UpgradeBlock,{onNavigateToWhatsNew}),import_react54.default.createElement(Footer,null,import_react54.default.createElement(Actions2,null,import_react54.default.createElement(Button,{asChild:!0},import_react54.default.createElement("a",{href:"https://github.com/storybookjs/storybook"},import_react54.default.createElement(GithubIcon,null),"GitHub")),import_react54.default.createElement(Button,{asChild:!0},import_react54.default.createElement("a",{href:"https://storybook.js.org/docs"},import_react54.default.createElement(DocumentIcon,{style:{display:"inline",marginRight:5}}),"Documentation"))),import_react54.default.createElement("div",null,"Open source software maintained by"," ",import_react54.default.createElement(StyledLink,{href:"https://www.chromatic.com/"},"Chromatic")," and the"," ",import_react54.default.createElement(StyledLink,{href:"https://github.com/storybookjs/storybook/graphs/contributors"},"Storybook Community"))));var NotificationClearer=class extends import_react55.Component{componentDidMount(){let{api,notificationId}=this.props;api.clearNotification(notificationId)}render(){let{children}=this.props;return children}},AboutPage=()=>{let api=useStorybookApi(),state=useStorybookState(),onNavigateToWhatsNew=(0,import_react55.useCallback)(()=>{api.changeSettingsTab("whats-new")},[api]);return import_react55.default.createElement(NotificationClearer,{api,notificationId:"update"},import_react55.default.createElement(AboutScreen,{onNavigateToWhatsNew:state.whatsNewData?.status==="SUCCESS"?onNavigateToWhatsNew:void 0}))};var import_react58=__toESM(require_react());var import_react57=__toESM(require_react());var import_react56=__toESM(require_react());var Footer2=newStyled.div(({theme})=>({display:"flex",paddingTop:20,marginTop:20,borderTop:`1px solid ${theme.appBorderColor}`,fontWeight:theme.typography.weight.bold,"& > * + *":{marginLeft:20}})),SettingsFooter=props=>import_react56.default.createElement(Footer2,{...props},import_react56.default.createElement(Link22,{secondary:!0,href:"https://storybook.js.org",cancel:!1,target:"_blank"},"Docs"),import_react56.default.createElement(Link22,{secondary:!0,href:"https://github.com/storybookjs/storybook",cancel:!1,target:"_blank"},"GitHub"),import_react56.default.createElement(Link22,{secondary:!0,href:"https://storybook.js.org/community#support",cancel:!1,target:"_blank"},"Support")),SettingsFooter_default=SettingsFooter;var Header2=newStyled.header(({theme})=>({marginBottom:20,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,alignItems:"center",display:"flex"})),HeaderItem=newStyled.div(({theme})=>({fontWeight:theme.typography.weight.bold})),GridHeaderRow=newStyled.div({alignSelf:"flex-end",display:"grid",margin:"10px 0",gridTemplateColumns:"1fr 1fr 12px","& > *:last-of-type":{gridColumn:"2 / 2",justifySelf:"flex-end",gridRow:"1"}}),Row=newStyled.div(({theme})=>({padding:"6px 0",borderTop:`1px solid ${theme.appBorderColor}`,display:"grid",gridTemplateColumns:"1fr 1fr 0px"})),GridWrapper=newStyled.div({display:"grid",gridTemplateColumns:"1fr",gridAutoRows:"minmax(auto, auto)",marginBottom:20}),Description=newStyled.div({alignSelf:"center"}),TextInput=newStyled(Form.Input)(({valid,theme})=>valid==="error"?{animation:`${theme.animation.jiggle} 700ms ease-out`}:{},{display:"flex",width:80,flexDirection:"column",justifySelf:"flex-end",paddingLeft:4,paddingRight:4,textAlign:"center"}),Fade=keyframes` +0%,100% { opacity: 0; } + 50% { opacity: 1; } +`,SuccessIcon=newStyled(CheckIcon)(({valid,theme})=>valid==="valid"?{color:theme.color.positive,animation:`${Fade} 2s ease forwards`}:{opacity:0},{alignSelf:"center",display:"flex",marginLeft:10,height:14,width:14}),Container9=newStyled.div(({theme})=>({fontSize:theme.typography.size.s2,padding:"3rem 20px",maxWidth:600,margin:"0 auto"})),shortcutLabels={fullScreen:"Go full screen",togglePanel:"Toggle addons",panelPosition:"Toggle addons orientation",toggleNav:"Toggle sidebar",toolbar:"Toggle canvas toolbar",search:"Focus search",focusNav:"Focus sidebar",focusIframe:"Focus canvas",focusPanel:"Focus addons",prevComponent:"Previous component",nextComponent:"Next component",prevStory:"Previous story",nextStory:"Next story",shortcutsPage:"Go to shortcuts page",aboutPage:"Go to about page",collapseAll:"Collapse all items on sidebar",expandAll:"Expand all items on sidebar",remount:"Remount component"},fixedShortcuts=["escape"];function toShortcutState(shortcutKeys){return Object.entries(shortcutKeys).reduce((acc,[feature,shortcut])=>fixedShortcuts.includes(feature)?acc:{...acc,[feature]:{shortcut,error:!1}},{})}var ShortcutsScreen=class extends import_react57.Component{constructor(props){super(props);this.onKeyDown=e3=>{let{activeFeature,shortcutKeys}=this.state;if(e3.key==="Backspace")return this.restoreDefault();let shortcut=eventToShortcut(e3);if(!shortcut)return!1;let error=!!Object.entries(shortcutKeys).find(([feature,{shortcut:existingShortcut}])=>feature!==activeFeature&&existingShortcut&&shortcutMatchesShortcut(shortcut,existingShortcut));return this.setState({shortcutKeys:{...shortcutKeys,[activeFeature]:{shortcut,error}}})};this.onFocus=focusedInput=>()=>{let{shortcutKeys}=this.state;this.setState({activeFeature:focusedInput,shortcutKeys:{...shortcutKeys,[focusedInput]:{shortcut:null,error:!1}}})};this.onBlur=async()=>{let{shortcutKeys,activeFeature}=this.state;if(shortcutKeys[activeFeature]){let{shortcut,error}=shortcutKeys[activeFeature];return!shortcut||error?this.restoreDefault():this.saveShortcut()}return!1};this.saveShortcut=async()=>{let{activeFeature,shortcutKeys}=this.state,{setShortcut}=this.props;await setShortcut(activeFeature,shortcutKeys[activeFeature].shortcut),this.setState({successField:activeFeature})};this.restoreDefaults=async()=>{let{restoreAllDefaultShortcuts}=this.props,defaultShortcuts=await restoreAllDefaultShortcuts();return this.setState({shortcutKeys:toShortcutState(defaultShortcuts)})};this.restoreDefault=async()=>{let{activeFeature,shortcutKeys}=this.state,{restoreDefaultShortcut}=this.props,defaultShortcut=await restoreDefaultShortcut(activeFeature);return this.setState({shortcutKeys:{...shortcutKeys,...toShortcutState({[activeFeature]:defaultShortcut})}})};this.displaySuccessMessage=activeElement=>{let{successField,shortcutKeys}=this.state;return activeElement===successField&&shortcutKeys[activeElement].error===!1?"valid":void 0};this.displayError=activeElement=>{let{activeFeature,shortcutKeys}=this.state;return activeElement===activeFeature&&shortcutKeys[activeElement].error===!0?"error":void 0};this.renderKeyInput=()=>{let{shortcutKeys,addonsShortcutLabels}=this.state;return Object.entries(shortcutKeys).map(([feature,{shortcut}])=>import_react57.default.createElement(Row,{key:feature},import_react57.default.createElement(Description,null,shortcutLabels[feature]||addonsShortcutLabels[feature]),import_react57.default.createElement(TextInput,{spellCheck:"false",valid:this.displayError(feature),className:"modalInput",onBlur:this.onBlur,onFocus:this.onFocus(feature),onKeyDown:this.onKeyDown,value:shortcut?shortcutToHumanString(shortcut):"",placeholder:"Type keys",readOnly:!0}),import_react57.default.createElement(SuccessIcon,{valid:this.displaySuccessMessage(feature)})))};this.renderKeyForm=()=>import_react57.default.createElement(GridWrapper,null,import_react57.default.createElement(GridHeaderRow,null,import_react57.default.createElement(HeaderItem,null,"Commands"),import_react57.default.createElement(HeaderItem,null,"Shortcut")),this.renderKeyInput());this.state={activeFeature:void 0,successField:void 0,shortcutKeys:toShortcutState(props.shortcutKeys),addonsShortcutLabels:props.addonsShortcutLabels}}render(){let layout=this.renderKeyForm();return import_react57.default.createElement(Container9,null,import_react57.default.createElement(Header2,null,"Keyboard shortcuts"),layout,import_react57.default.createElement(Button,{variant:"outline",size:"small",id:"restoreDefaultsHotkeys",onClick:this.restoreDefaults},"Restore defaults"),import_react57.default.createElement(SettingsFooter_default,null))}};var ShortcutsPage=()=>import_react58.default.createElement(ManagerConsumer,null,({api:{getShortcutKeys,getAddonsShortcutLabels,setShortcut,restoreDefaultShortcut,restoreAllDefaultShortcuts}})=>import_react58.default.createElement(ShortcutsScreen,{shortcutKeys:getShortcutKeys(),addonsShortcutLabels:getAddonsShortcutLabels(),setShortcut,restoreDefaultShortcut,restoreAllDefaultShortcuts}));var import_react60=__toESM(require_react());var import_react59=__toESM(require_react());var Centered=newStyled.div({top:"50%",position:"absolute",transform:"translateY(-50%)",width:"100%",textAlign:"center"}),LoaderWrapper2=newStyled.div({position:"relative",height:"32px"}),Message2=newStyled.div(({theme})=>({paddingTop:"12px",color:theme.textMutedColor,maxWidth:"295px",margin:"0 auto",fontSize:`${theme.typography.size.s1}px`,lineHeight:"16px"})),Container10=newStyled.div(({theme})=>({position:"absolute",width:"100%",bottom:"40px",background:theme.background.bar,fontSize:"13px",borderTop:"1px solid",borderColor:theme.appBorderColor,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"})),WhatsNewFooter=({isNotificationsEnabled,onToggleNotifications,onCopyLink})=>{let theme=useTheme(),[copyText,setCopyText]=(0,import_react59.useState)("Copy Link"),copyLink=()=>{onCopyLink(),setCopyText("Copied!"),setTimeout(()=>setCopyText("Copy Link"),4e3)};return import_react59.default.createElement(Container10,null,import_react59.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:10}},import_react59.default.createElement(HeartIcon,{color:theme.color.mediumdark}),import_react59.default.createElement("div",null,"Share this with your team."),import_react59.default.createElement(Button,{onClick:copyLink,size:"small",variant:"ghost"},copyText)),isNotificationsEnabled?import_react59.default.createElement(Button,{size:"small",variant:"ghost",onClick:onToggleNotifications},import_react59.default.createElement(EyeCloseIcon,null),"Hide notifications"):import_react59.default.createElement(Button,{size:"small",variant:"ghost",onClick:onToggleNotifications},import_react59.default.createElement(EyeIcon,null),"Show notifications"))},Iframe=newStyled.iframe({position:"absolute",top:0,left:0,right:0,bottom:0,border:0,margin:0,padding:0,width:"100%",height:"calc(100% - 80px)",background:"white"},({isLoaded})=>({visibility:isLoaded?"visible":"hidden"})),AlertIcon2=newStyled(props=>import_react59.default.createElement(AlertIcon,{...props}))(({theme})=>({color:theme.textMutedColor,width:32,height:32,margin:"0 auto"})),WhatsNewLoader=()=>import_react59.default.createElement(Centered,null,import_react59.default.createElement(LoaderWrapper2,null,import_react59.default.createElement(Loader,null)),import_react59.default.createElement(Message2,null,"Loading...")),MaxWaitTimeMessaging=()=>import_react59.default.createElement(Centered,null,import_react59.default.createElement(AlertIcon2,null),import_react59.default.createElement(Message2,null,"The page couldn't be loaded. Check your internet connection and try again.")),PureWhatsNewScreen=({didHitMaxWaitTime,isLoaded,onLoad,url,onCopyLink,onToggleNotifications,isNotificationsEnabled})=>import_react59.default.createElement(import_react59.Fragment,null,!isLoaded&&!didHitMaxWaitTime&&import_react59.default.createElement(WhatsNewLoader,null),didHitMaxWaitTime?import_react59.default.createElement(MaxWaitTimeMessaging,null):import_react59.default.createElement(import_react59.default.Fragment,null,import_react59.default.createElement(Iframe,{isLoaded,onLoad,src:url,title:"What's new?"}),import_react59.default.createElement(WhatsNewFooter,{isNotificationsEnabled,onToggleNotifications,onCopyLink}))),MAX_WAIT_TIME=1e4,WhatsNewScreen=()=>{let api=useStorybookApi(),state=useStorybookState(),{whatsNewData}=state,[isLoaded,setLoaded]=(0,import_react59.useState)(!1),[didHitMaxWaitTime,setDidHitMaxWaitTime]=(0,import_react59.useState)(!1);if((0,import_react59.useEffect)(()=>{let timer=setTimeout(()=>!isLoaded&&setDidHitMaxWaitTime(!0),MAX_WAIT_TIME);return()=>clearTimeout(timer)},[isLoaded]),whatsNewData?.status!=="SUCCESS")return null;let isNotificationsEnabled=!whatsNewData.disableWhatsNewNotifications;return import_react59.default.createElement(PureWhatsNewScreen,{didHitMaxWaitTime,isLoaded,onLoad:()=>{api.whatsNewHasBeenRead(),setLoaded(!0)},url:whatsNewData.url,isNotificationsEnabled,onCopyLink:()=>{navigator.clipboard?.writeText(whatsNewData.blogUrl??whatsNewData.url)},onToggleNotifications:()=>{isNotificationsEnabled?scope.confirm("All update notifications will no longer be shown. Are you sure?")&&api.toggleWhatsNewNotifications():api.toggleWhatsNewNotifications()}})};var WhatsNewPage=()=>import_react60.default.createElement(WhatsNewScreen,null);var{document:document9}=scope,Header3=newStyled.div(({theme})=>({display:"flex",justifyContent:"space-between",alignItems:"center",height:40,boxShadow:`${theme.appBorderColor} 0 -1px 0 0 inset`,background:theme.barBg,paddingRight:8})),TabBarButton=import_react61.default.memo(function({changeTab,id,title}){return import_react61.default.createElement(Location,null,({path})=>{let active=path.includes(`settings/${id}`);return import_react61.default.createElement(TabButton,{id:`tabbutton-${id}`,className:["tabbutton"].concat(active?["tabbutton-active"]:[]).join(" "),type:"button",key:"id",active,onClick:()=>changeTab(id),role:"tab"},title)})}),Content=newStyled(ScrollArea)(({theme})=>({background:theme.background.content})),Pages=({changeTab,onClose,enableShortcuts=!0,enableWhatsNew})=>(import_react61.default.useEffect(()=>{let handleEscape=event=>{!enableShortcuts||event.repeat||matchesModifiers(!1,event)&&matchesKeyCode("Escape",event)&&(event.preventDefault(),onClose())};return document9.addEventListener("keydown",handleEscape),()=>document9.removeEventListener("keydown",handleEscape)},[enableShortcuts,onClose]),import_react61.default.createElement(import_react61.Fragment,null,import_react61.default.createElement(Header3,{className:"sb-bar"},import_react61.default.createElement(TabBar,{role:"tablist"},import_react61.default.createElement(TabBarButton,{id:"about",title:"About",changeTab}),enableWhatsNew&&import_react61.default.createElement(TabBarButton,{id:"whats-new",title:"What's new?",changeTab}),import_react61.default.createElement(TabBarButton,{id:"shortcuts",title:"Keyboard shortcuts",changeTab})),import_react61.default.createElement(IconButton,{onClick:e3=>(e3.preventDefault(),onClose()),title:"Close settings page"},import_react61.default.createElement(CloseIcon,null))),import_react61.default.createElement(Content,{vertical:!0,horizontal:!1},import_react61.default.createElement(Route2,{path:"about"},import_react61.default.createElement(AboutPage,{key:"about"})),import_react61.default.createElement(Route2,{path:"whats-new"},import_react61.default.createElement(WhatsNewPage,{key:"whats-new"})),import_react61.default.createElement(Route2,{path:"shortcuts"},import_react61.default.createElement(ShortcutsPage,{key:"shortcuts"}))))),SettingsPages=()=>{let api=useStorybookApi(),state=useStorybookState(),changeTab=tab=>api.changeSettingsTab(tab);return import_react61.default.createElement(Pages,{enableWhatsNew:state.whatsNewData?.status==="SUCCESS",enableShortcuts:state.ui.enableShortcuts,changeTab,onClose:api.closeSettings})},settingsPageAddon={id:"settings",url:"/settings/",title:"Settings",type:typesX.experimental_PAGE,render:()=>import_react61.default.createElement(Route2,{path:"/settings/",startsWith:!0},import_react61.default.createElement(SettingsPages,null))};ThemeProvider.displayName="ThemeProvider";q.displayName="HelmetProvider";var Root3=({provider})=>import_react62.default.createElement(q,{key:"helmet.Provider"},import_react62.default.createElement(LocationProvider,{key:"location.provider"},import_react62.default.createElement(Main,{provider}))),Main=({provider})=>{let navigate=useNavigate2();return import_react62.default.createElement(Location,{key:"location.consumer"},locationData=>import_react62.default.createElement(ManagerProvider,{key:"manager",provider,...locationData,navigate,docsOptions:scope?.DOCS_OPTIONS||{}},combo=>{let{state,api}=combo,setManagerLayoutState=(0,import_react62.useCallback)(sizes=>{api.setSizes(sizes)},[api]),pages=(0,import_react62.useMemo)(()=>[settingsPageAddon,...Object.values(api.getElements(typesX.experimental_PAGE))],[Object.keys(api.getElements(typesX.experimental_PAGE)).join()]);return import_react62.default.createElement(ThemeProvider,{key:"theme.provider",theme:ensure(state.theme)},import_react62.default.createElement(LayoutProvider,null,import_react62.default.createElement(App,{key:"app",pages,managerLayoutState:{...state.layout,viewMode:state.viewMode},hasTab:!!api.getQueryParam("tab"),setManagerLayoutState})))}))};function renderStorybookUI(domNode,provider){if(!(provider instanceof Provider))throw new ProviderDoesNotExtendBaseProviderError;(0,import_client.createRoot)(domNode).render(import_react62.default.createElement(Root3,{key:"root",provider}))}export{Provider,Root3 as Root,renderStorybookUI}; diff --git a/docs/sb-manager/chunk-L35575BZ.js b/docs/sb-manager/chunk-L35575BZ.js new file mode 100644 index 0000000..bd9806c --- /dev/null +++ b/docs/sb-manager/chunk-L35575BZ.js @@ -0,0 +1,234 @@ +import{$5e63c961fc1ce211$export$8c6ed5c666ac1360,ActionBar,ScrollArea,SyntaxHighlighter2,createCopyToClipboardFunction}from"./chunk-TZAR34JC.js";import{WithToolTipState}from"./chunk-VMGB76WP.js";import{_extends,_objectWithoutPropertiesLoose,color,create,deprecate,ignoreSsrWarning,isPropValid,keyframes,logger,newStyled,once,pretty,require_react,scope,typography}from"./chunk-UOBNU442.js";import{__commonJS,__export,__toESM,require_memoizerific}from"./chunk-XP3HGWTR.js";var require_es_errors=__commonJS({"../../node_modules/es-errors/index.js"(exports,module){"use strict";module.exports=Error}});var require_eval=__commonJS({"../../node_modules/es-errors/eval.js"(exports,module){"use strict";module.exports=EvalError}});var require_range=__commonJS({"../../node_modules/es-errors/range.js"(exports,module){"use strict";module.exports=RangeError}});var require_ref=__commonJS({"../../node_modules/es-errors/ref.js"(exports,module){"use strict";module.exports=ReferenceError}});var require_syntax=__commonJS({"../../node_modules/es-errors/syntax.js"(exports,module){"use strict";module.exports=SyntaxError}});var require_type=__commonJS({"../../node_modules/es-errors/type.js"(exports,module){"use strict";module.exports=TypeError}});var require_uri=__commonJS({"../../node_modules/es-errors/uri.js"(exports,module){"use strict";module.exports=URIError}});var require_shams=__commonJS({"../../node_modules/has-symbols/shams.js"(exports,module){"use strict";module.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var obj={},sym=Symbol("test"),symObj=Object(sym);if(typeof sym=="string"||Object.prototype.toString.call(sym)!=="[object Symbol]"||Object.prototype.toString.call(symObj)!=="[object Symbol]")return!1;var symVal=42;obj[sym]=symVal;for(sym in obj)return!1;if(typeof Object.keys=="function"&&Object.keys(obj).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(obj).length!==0)return!1;var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==!0)return!1}return!0}}});var require_has_symbols=__commonJS({"../../node_modules/has-symbols/index.js"(exports,module){"use strict";var origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=require_shams();module.exports=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()}}});var require_has_proto=__commonJS({"../../node_modules/has-proto/index.js"(exports,module){"use strict";var test={__proto__:null,foo:{}},$Object=Object;module.exports=function(){return{__proto__:test}.foo===test.foo&&!(test instanceof $Object)}}});var require_implementation=__commonJS({"../../node_modules/function-bind/implementation.js"(exports,module){"use strict";var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(a,b2){for(var arr=[],i=0;i"u"||!getProto?undefined2:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined2:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined2,"%AsyncFromSyncIteratorPrototype%":undefined2,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined2:Atomics,"%BigInt%":typeof BigInt>"u"?undefined2:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined2:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined2:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined2:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined2:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined2,"%JSON%":typeof JSON=="object"?JSON:undefined2,"%Map%":typeof Map>"u"?undefined2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined2:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined2:Promise,"%Proxy%":typeof Proxy>"u"?undefined2:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined2:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined2,"%Symbol%":hasSymbols?Symbol:undefined2,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":typeof Uint8Array>"u"?undefined2:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined2:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined2:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined2:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined2:WeakSet};if(getProto)try{null.error}catch(e){errorProto=getProto(getProto(e)),INTRINSICS["%Error.prototype%"]=errorProto}var errorProto,doEval=function doEval2(name2){var value2;if(name2==="%AsyncFunction%")value2=getEvalledConstructor("async function () {}");else if(name2==="%GeneratorFunction%")value2=getEvalledConstructor("function* () {}");else if(name2==="%AsyncGeneratorFunction%")value2=getEvalledConstructor("async function* () {}");else if(name2==="%AsyncGenerator%"){var fn=doEval2("%AsyncGeneratorFunction%");fn&&(value2=fn.prototype)}else if(name2==="%AsyncIteratorPrototype%"){var gen=doEval2("%AsyncGenerator%");gen&&getProto&&(value2=getProto(gen.prototype))}return INTRINSICS[name2]=value2,value2},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=require_function_bind(),hasOwn=require_hasown(),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar2=/\\(\\)?/g,stringToPath2=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if(first==="%"&&last!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(last==="%"&&first!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result2=[];return $replace(string,rePropName2,function(match,number,quote,subString){result2[result2.length]=quote?$replace(subString,reEscapeChar2,"$1"):number||match}),result2},getBaseIntrinsic=function(name2,allowMissing){var intrinsicName=name2,alias;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(alias=LEGACY_ALIASES[intrinsicName],intrinsicName="%"+alias[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value2=INTRINSICS[intrinsicName];if(value2===needsEval&&(value2=doEval(intrinsicName)),typeof value2>"u"&&!allowMissing)throw new $TypeError("intrinsic "+name2+" exists, but is not available. Please file an issue!");return{alias,name:intrinsicName,value:value2}}throw new $SyntaxError("intrinsic "+name2+" does not exist!")};module.exports=function(name2,allowMissing){if(typeof name2!="string"||name2.length===0)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof allowMissing!="boolean")throw new $TypeError('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,name2)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=stringToPath2(name2),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value2=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i=1,isOwn=!0;i=parts.length){var desc=$gOPD(value2,part);isOwn=!!desc,isOwn&&"get"in desc&&!("originalValue"in desc.get)?value2=desc.get:value2=value2[part]}else isOwn=hasOwn(value2,part),value2=value2[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value2)}}return value2}}});var require_es_define_property=__commonJS({"../../node_modules/es-define-property/index.js"(exports,module){"use strict";var GetIntrinsic=require_get_intrinsic(),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0)||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}module.exports=$defineProperty}});var require_gopd=__commonJS({"../../node_modules/gopd/index.js"(exports,module){"use strict";var GetIntrinsic=require_get_intrinsic(),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}module.exports=$gOPD}});var require_define_data_property=__commonJS({"../../node_modules/define-data-property/index.js"(exports,module){"use strict";var $defineProperty=require_es_define_property(),$SyntaxError=require_syntax(),$TypeError=require_type(),gopd=require_gopd();module.exports=function(obj,property,value2){if(!obj||typeof obj!="object"&&typeof obj!="function")throw new $TypeError("`obj` must be an object or a function`");if(typeof property!="string"&&typeof property!="symbol")throw new $TypeError("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError("`loose`, if provided, must be a boolean");var nonEnumerable=arguments.length>3?arguments[3]:null,nonWritable=arguments.length>4?arguments[4]:null,nonConfigurable=arguments.length>5?arguments[5]:null,loose=arguments.length>6?arguments[6]:!1,desc=!!gopd&&gopd(obj,property);if($defineProperty)$defineProperty(obj,property,{configurable:nonConfigurable===null&&desc?desc.configurable:!nonConfigurable,enumerable:nonEnumerable===null&&desc?desc.enumerable:!nonEnumerable,value:value2,writable:nonWritable===null&&desc?desc.writable:!nonWritable});else if(loose||!nonEnumerable&&!nonWritable&&!nonConfigurable)obj[property]=value2;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}});var require_has_property_descriptors=__commonJS({"../../node_modules/has-property-descriptors/index.js"(exports,module){"use strict";var $defineProperty=require_es_define_property(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};module.exports=hasPropertyDescriptors}});var require_set_function_length=__commonJS({"../../node_modules/set-function-length/index.js"(exports,module){"use strict";var GetIntrinsic=require_get_intrinsic(),define=require_define_data_property(),hasDescriptors=require_has_property_descriptors()(),gOPD=require_gopd(),$TypeError=require_type(),$floor=GetIntrinsic("%Math.floor%");module.exports=function(fn,length){if(typeof fn!="function")throw new $TypeError("`fn` is not a function");if(typeof length!="number"||length<0||length>4294967295||$floor(length)!==length)throw new $TypeError("`length` must be a positive 32-bit integer");var loose=arguments.length>2&&!!arguments[2],functionLengthIsConfigurable=!0,functionLengthIsWritable=!0;if("length"in fn&&gOPD){var desc=gOPD(fn,"length");desc&&!desc.configurable&&(functionLengthIsConfigurable=!1),desc&&!desc.writable&&(functionLengthIsWritable=!1)}return(functionLengthIsConfigurable||functionLengthIsWritable||!loose)&&(hasDescriptors?define(fn,"length",length,!0,!0):define(fn,"length",length)),fn}}});var require_call_bind=__commonJS({"../../node_modules/call-bind/index.js"(exports,module){"use strict";var bind=require_function_bind(),GetIntrinsic=require_get_intrinsic(),setFunctionLength=require_set_function_length(),$TypeError=require_type(),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$defineProperty=require_es_define_property(),$max=GetIntrinsic("%Math.max%");module.exports=function(originalFunction){if(typeof originalFunction!="function")throw new $TypeError("a function is required");var func=$reflectApply(bind,$call,arguments);return setFunctionLength(func,1+$max(0,originalFunction.length-(arguments.length-1)),!0)};var applyBind=function(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind}});var require_callBound=__commonJS({"../../node_modules/call-bind/callBound.js"(exports,module){"use strict";var GetIntrinsic=require_get_intrinsic(),callBind=require_call_bind(),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function(name2,allowMissing){var intrinsic=GetIntrinsic(name2,!!allowMissing);return typeof intrinsic=="function"&&$indexOf(name2,".prototype.")>-1?callBind(intrinsic):intrinsic}}});var require_util=__commonJS({"(disabled):../../node_modules/object-inspect/util.inspect"(){}});var require_object_inspect=__commonJS({"../../node_modules/object-inspect/index.js"(exports,module){var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString2=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||!0)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(O){return O.__proto__}:null);function addNumericSeparator(num,str){if(num===1/0||num===-1/0||num!==num||num&&num>-1e3&&num<1e3||$test.call(/e/,str))return str;var sepRegex=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof num=="number"){var int=num<0?-$floor(-num):$floor(num);if(int!==num){var intStr=String(int),dec=$slice.call(str,intStr.length+1);return $replace.call(intStr,sepRegex,"$&_")+"."+$replace.call($replace.call(dec,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(str,sepRegex,"$&_")}var utilInspect=require_util(),inspectCustom=utilInspect.custom,inspectSymbol=isSymbol2(inspectCustom)?inspectCustom:null;module.exports=function inspect_(obj,options2,depth,seen){var opts=options2||{};if(has3(opts,"quoteStyle")&&opts.quoteStyle!=="single"&&opts.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has3(opts,"maxStringLength")&&(typeof opts.maxStringLength=="number"?opts.maxStringLength<0&&opts.maxStringLength!==1/0:opts.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var customInspect=has3(opts,"customInspect")?opts.customInspect:!0;if(typeof customInspect!="boolean"&&customInspect!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has3(opts,"indent")&&opts.indent!==null&&opts.indent!==" "&&!(parseInt(opts.indent,10)===opts.indent&&opts.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has3(opts,"numericSeparator")&&typeof opts.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var numericSeparator=opts.numericSeparator;if(typeof obj>"u")return"undefined";if(obj===null)return"null";if(typeof obj=="boolean")return obj?"true":"false";if(typeof obj=="string")return inspectString(obj,opts);if(typeof obj=="number"){if(obj===0)return 1/0/obj>0?"0":"-0";var str=String(obj);return numericSeparator?addNumericSeparator(obj,str):str}if(typeof obj=="bigint"){var bigIntStr=String(obj)+"n";return numericSeparator?addNumericSeparator(obj,bigIntStr):bigIntStr}var maxDepth=typeof opts.depth>"u"?5:opts.depth;if(typeof depth>"u"&&(depth=0),depth>=maxDepth&&maxDepth>0&&typeof obj=="object")return isArray2(obj)?"[Array]":"[Object]";var indent=getIndent(opts,depth);if(typeof seen>"u")seen=[];else if(indexOf(seen,obj)>=0)return"[Circular]";function inspect(value2,from,noIndent){if(from&&(seen=$arrSlice.call(seen),seen.push(from)),noIndent){var newOpts={depth:opts.depth};return has3(opts,"quoteStyle")&&(newOpts.quoteStyle=opts.quoteStyle),inspect_(value2,newOpts,depth+1,seen)}return inspect_(value2,opts,depth+1,seen)}if(typeof obj=="function"&&!isRegExp(obj)){var name2=nameOf(obj),keys2=arrObjKeys(obj,inspect);return"[Function"+(name2?": "+name2:" (anonymous)")+"]"+(keys2.length>0?" { "+$join.call(keys2,", ")+" }":"")}if(isSymbol2(obj)){var symString=hasShammedSymbols?$replace.call(String(obj),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(obj);return typeof obj=="object"&&!hasShammedSymbols?markBoxed(symString):symString}if(isElement(obj)){for(var s="<"+$toLowerCase.call(String(obj.nodeName)),attrs=obj.attributes||[],i=0;i",s}if(isArray2(obj)){if(obj.length===0)return"[]";var xs=arrObjKeys(obj,inspect);return indent&&!singleLineValues(xs)?"["+indentedJoin(xs,indent)+"]":"[ "+$join.call(xs,", ")+" ]"}if(isError(obj)){var parts=arrObjKeys(obj,inspect);return!("cause"in Error.prototype)&&"cause"in obj&&!isEnumerable.call(obj,"cause")?"{ ["+String(obj)+"] "+$join.call($concat.call("[cause]: "+inspect(obj.cause),parts),", ")+" }":parts.length===0?"["+String(obj)+"]":"{ ["+String(obj)+"] "+$join.call(parts,", ")+" }"}if(typeof obj=="object"&&customInspect){if(inspectSymbol&&typeof obj[inspectSymbol]=="function"&&utilInspect)return utilInspect(obj,{depth:maxDepth-depth});if(customInspect!=="symbol"&&typeof obj.inspect=="function")return obj.inspect()}if(isMap(obj)){var mapParts=[];return mapForEach&&mapForEach.call(obj,function(value2,key2){mapParts.push(inspect(key2,obj,!0)+" => "+inspect(value2,obj))}),collectionOf("Map",mapSize.call(obj),mapParts,indent)}if(isSet(obj)){var setParts=[];return setForEach&&setForEach.call(obj,function(value2){setParts.push(inspect(value2,obj))}),collectionOf("Set",setSize.call(obj),setParts,indent)}if(isWeakMap(obj))return weakCollectionOf("WeakMap");if(isWeakSet(obj))return weakCollectionOf("WeakSet");if(isWeakRef(obj))return weakCollectionOf("WeakRef");if(isNumber(obj))return markBoxed(inspect(Number(obj)));if(isBigInt(obj))return markBoxed(inspect(bigIntValueOf.call(obj)));if(isBoolean(obj))return markBoxed(booleanValueOf.call(obj));if(isString(obj))return markBoxed(inspect(String(obj)));if(typeof window<"u"&&obj===window)return"{ [object Window] }";if(obj===global)return"{ [object globalThis] }";if(!isDate(obj)&&!isRegExp(obj)){var ys=arrObjKeys(obj,inspect),isPlainObject=gPO?gPO(obj)===Object.prototype:obj instanceof Object||obj.constructor===Object,protoTag=obj instanceof Object?"":"null prototype",stringTag=!isPlainObject&&toStringTag&&Object(obj)===obj&&toStringTag in obj?$slice.call(toStr(obj),8,-1):protoTag?"Object":"",constructorTag=isPlainObject||typeof obj.constructor!="function"?"":obj.constructor.name?obj.constructor.name+" ":"",tag=constructorTag+(stringTag||protoTag?"["+$join.call($concat.call([],stringTag||[],protoTag||[]),": ")+"] ":"");return ys.length===0?tag+"{}":indent?tag+"{"+indentedJoin(ys,indent)+"}":tag+"{ "+$join.call(ys,", ")+" }"}return String(obj)};function wrapQuotes(s,defaultStyle,opts){var quoteChar=(opts.quoteStyle||defaultStyle)==="double"?'"':"'";return quoteChar+s+quoteChar}function quote(s){return $replace.call(String(s),/"/g,""")}function isArray2(obj){return toStr(obj)==="[object Array]"&&(!toStringTag||!(typeof obj=="object"&&toStringTag in obj))}function isDate(obj){return toStr(obj)==="[object Date]"&&(!toStringTag||!(typeof obj=="object"&&toStringTag in obj))}function isRegExp(obj){return toStr(obj)==="[object RegExp]"&&(!toStringTag||!(typeof obj=="object"&&toStringTag in obj))}function isError(obj){return toStr(obj)==="[object Error]"&&(!toStringTag||!(typeof obj=="object"&&toStringTag in obj))}function isString(obj){return toStr(obj)==="[object String]"&&(!toStringTag||!(typeof obj=="object"&&toStringTag in obj))}function isNumber(obj){return toStr(obj)==="[object Number]"&&(!toStringTag||!(typeof obj=="object"&&toStringTag in obj))}function isBoolean(obj){return toStr(obj)==="[object Boolean]"&&(!toStringTag||!(typeof obj=="object"&&toStringTag in obj))}function isSymbol2(obj){if(hasShammedSymbols)return obj&&typeof obj=="object"&&obj instanceof Symbol;if(typeof obj=="symbol")return!0;if(!obj||typeof obj!="object"||!symToString)return!1;try{return symToString.call(obj),!0}catch{}return!1}function isBigInt(obj){if(!obj||typeof obj!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(obj),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(key2){return key2 in this};function has3(obj,key2){return hasOwn.call(obj,key2)}function toStr(obj){return objectToString2.call(obj)}function nameOf(f3){if(f3.name)return f3.name;var m=$match.call(functionToString.call(f3),/^function\s*([\w$]+)/);return m?m[1]:null}function indexOf(xs,x2){if(xs.indexOf)return xs.indexOf(x2);for(var i=0,l=xs.length;iopts.maxStringLength){var remaining=str.length-opts.maxStringLength,trailer="... "+remaining+" more character"+(remaining>1?"s":"");return inspectString($slice.call(str,0,opts.maxStringLength),opts)+trailer}var s=$replace.call($replace.call(str,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(s,"single",opts)}function lowbyte(c2){var n=c2.charCodeAt(0),x2={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return x2?"\\"+x2:"\\x"+(n<16?"0":"")+$toUpperCase.call(n.toString(16))}function markBoxed(str){return"Object("+str+")"}function weakCollectionOf(type){return type+" { ? }"}function collectionOf(type,size,entries,indent){var joinedEntries=indent?indentedJoin(entries,indent):$join.call(entries,", ");return type+" ("+size+") {"+joinedEntries+"}"}function singleLineValues(xs){for(var i=0;i=0)return!1;return!0}function getIndent(opts,depth){var baseIndent;if(opts.indent===" ")baseIndent=" ";else if(typeof opts.indent=="number"&&opts.indent>0)baseIndent=$join.call(Array(opts.indent+1)," ");else return null;return{base:baseIndent,prev:$join.call(Array(depth+1),baseIndent)}}function indentedJoin(xs,indent){if(xs.length===0)return"";var lineJoiner=` +`+indent.prev+indent.base;return lineJoiner+$join.call(xs,","+lineJoiner)+` +`+indent.prev}function arrObjKeys(obj,inspect){var isArr=isArray2(obj),xs=[];if(isArr){xs.length=obj.length;for(var i=0;i1;){var item=queue.pop(),obj=item.obj[item.prop];if(isArray2(obj)){for(var compacted=[],j=0;j=48&&c2<=57||c2>=65&&c2<=90||c2>=97&&c2<=122||format2===formats.RFC1738&&(c2===40||c2===41)){out+=string.charAt(i);continue}if(c2<128){out=out+hexTable[c2];continue}if(c2<2048){out=out+(hexTable[192|c2>>6]+hexTable[128|c2&63]);continue}if(c2<55296||c2>=57344){out=out+(hexTable[224|c2>>12]+hexTable[128|c2>>6&63]+hexTable[128|c2&63]);continue}i+=1,c2=65536+((c2&1023)<<10|string.charCodeAt(i)&1023),out+=hexTable[240|c2>>18]+hexTable[128|c2>>12&63]+hexTable[128|c2>>6&63]+hexTable[128|c2&63]}return out},compact=function(value2){for(var queue=[{obj:{o:value2},prop:"o"}],refs2=[],i=0;i"u"&&(step=0)}if(typeof filter=="function"?obj=filter(prefix2,obj):obj instanceof Date?obj=serializeDate(obj):generateArrayPrefix==="comma"&&isArray2(obj)&&(obj=utils.maybeMap(obj,function(value3){return value3 instanceof Date?serializeDate(value3):value3})),obj===null){if(strictNullHandling)return encoder&&!encodeValuesOnly?encoder(prefix2,defaults.encoder,charset,"key",format2):prefix2;obj=""}if(isNonNullishPrimitive(obj)||utils.isBuffer(obj)){if(encoder){var keyValue=encodeValuesOnly?prefix2:encoder(prefix2,defaults.encoder,charset,"key",format2);return[formatter(keyValue)+"="+formatter(encoder(obj,defaults.encoder,charset,"value",format2))]}return[formatter(prefix2)+"="+formatter(String(obj))]}var values=[];if(typeof obj>"u")return values;var objKeys;if(generateArrayPrefix==="comma"&&isArray2(obj))encodeValuesOnly&&encoder&&(obj=utils.maybeMap(obj,encoder)),objKeys=[{value:obj.length>0?obj.join(",")||null:void 0}];else if(isArray2(filter))objKeys=filter;else{var keys2=Object.keys(obj);objKeys=sort?keys2.sort(sort):keys2}for(var adjustedPrefix=commaRoundTrip&&isArray2(obj)&&obj.length===1?prefix2+"[]":prefix2,j=0;j"u"?defaults.allowDots:!!opts.allowDots,charset,charsetSentinel:typeof opts.charsetSentinel=="boolean"?opts.charsetSentinel:defaults.charsetSentinel,delimiter:typeof opts.delimiter>"u"?defaults.delimiter:opts.delimiter,encode:typeof opts.encode=="boolean"?opts.encode:defaults.encode,encoder:typeof opts.encoder=="function"?opts.encoder:defaults.encoder,encodeValuesOnly:typeof opts.encodeValuesOnly=="boolean"?opts.encodeValuesOnly:defaults.encodeValuesOnly,filter,format:format2,formatter,serializeDate:typeof opts.serializeDate=="function"?opts.serializeDate:defaults.serializeDate,skipNulls:typeof opts.skipNulls=="boolean"?opts.skipNulls:defaults.skipNulls,sort:typeof opts.sort=="function"?opts.sort:null,strictNullHandling:typeof opts.strictNullHandling=="boolean"?opts.strictNullHandling:defaults.strictNullHandling}};module.exports=function(object,opts){var obj=object,options2=normalizeStringifyOptions(opts),objKeys,filter;typeof options2.filter=="function"?(filter=options2.filter,obj=filter("",obj)):isArray2(options2.filter)&&(filter=options2.filter,objKeys=filter);var keys2=[];if(typeof obj!="object"||obj===null)return"";var arrayFormat;opts&&opts.arrayFormat in arrayPrefixGenerators?arrayFormat=opts.arrayFormat:opts&&"indices"in opts?arrayFormat=opts.indices?"indices":"repeat":arrayFormat="indices";var generateArrayPrefix=arrayPrefixGenerators[arrayFormat];if(opts&&"commaRoundTrip"in opts&&typeof opts.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var commaRoundTrip=generateArrayPrefix==="comma"&&opts&&opts.commaRoundTrip;objKeys||(objKeys=Object.keys(obj)),options2.sort&&objKeys.sort(options2.sort);for(var sideChannel=getSideChannel(),i=0;i0?prefix2+joined:""}}});var require_parse=__commonJS({"../../node_modules/qs/lib/parse.js"(exports,module){"use strict";var utils=require_utils(),has3=Object.prototype.hasOwnProperty,isArray2=Array.isArray,defaults={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(str){return str.replace(/&#(\d+);/g,function($0,numberStr){return String.fromCharCode(parseInt(numberStr,10))})},parseArrayValue=function(val,options2){return val&&typeof val=="string"&&options2.comma&&val.indexOf(",")>-1?val.split(","):val},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(str,options2){var obj={__proto__:null},cleanStr=options2.ignoreQueryPrefix?str.replace(/^\?/,""):str,limit=options2.parameterLimit===1/0?void 0:options2.parameterLimit,parts=cleanStr.split(options2.delimiter,limit),skipIndex=-1,i,charset=options2.charset;if(options2.charsetSentinel)for(i=0;i-1&&(val=isArray2(val)?[val]:val),has3.call(obj,key2)?obj[key2]=utils.combine(obj[key2],val):obj[key2]=val}return obj},parseObject=function(chain,val,options2,valuesParsed){for(var leaf=valuesParsed?val:parseArrayValue(val,options2),i=chain.length-1;i>=0;--i){var obj,root3=chain[i];if(root3==="[]"&&options2.parseArrays)obj=[].concat(leaf);else{obj=options2.plainObjects?Object.create(null):{};var cleanRoot=root3.charAt(0)==="["&&root3.charAt(root3.length-1)==="]"?root3.slice(1,-1):root3,index3=parseInt(cleanRoot,10);!options2.parseArrays&&cleanRoot===""?obj={0:leaf}:!isNaN(index3)&&root3!==cleanRoot&&String(index3)===cleanRoot&&index3>=0&&options2.parseArrays&&index3<=options2.arrayLimit?(obj=[],obj[index3]=leaf):cleanRoot!=="__proto__"&&(obj[cleanRoot]=leaf)}leaf=obj}return leaf},parseKeys=function(givenKey,val,options2,valuesParsed){if(givenKey){var key2=options2.allowDots?givenKey.replace(/\.([^.[]+)/g,"[$1]"):givenKey,brackets=/(\[[^[\]]*])/,child=/(\[[^[\]]*])/g,segment=options2.depth>0&&brackets.exec(key2),parent=segment?key2.slice(0,segment.index):key2,keys2=[];if(parent){if(!options2.plainObjects&&has3.call(Object.prototype,parent)&&!options2.allowPrototypes)return;keys2.push(parent)}for(var i=0;options2.depth>0&&(segment=child.exec(key2))!==null&&i"u"?defaults.charset:opts.charset;return{allowDots:typeof opts.allowDots>"u"?defaults.allowDots:!!opts.allowDots,allowPrototypes:typeof opts.allowPrototypes=="boolean"?opts.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof opts.allowSparse=="boolean"?opts.allowSparse:defaults.allowSparse,arrayLimit:typeof opts.arrayLimit=="number"?opts.arrayLimit:defaults.arrayLimit,charset,charsetSentinel:typeof opts.charsetSentinel=="boolean"?opts.charsetSentinel:defaults.charsetSentinel,comma:typeof opts.comma=="boolean"?opts.comma:defaults.comma,decoder:typeof opts.decoder=="function"?opts.decoder:defaults.decoder,delimiter:typeof opts.delimiter=="string"||utils.isRegExp(opts.delimiter)?opts.delimiter:defaults.delimiter,depth:typeof opts.depth=="number"||opts.depth===!1?+opts.depth:defaults.depth,ignoreQueryPrefix:opts.ignoreQueryPrefix===!0,interpretNumericEntities:typeof opts.interpretNumericEntities=="boolean"?opts.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof opts.parameterLimit=="number"?opts.parameterLimit:defaults.parameterLimit,parseArrays:opts.parseArrays!==!1,plainObjects:typeof opts.plainObjects=="boolean"?opts.plainObjects:defaults.plainObjects,strictNullHandling:typeof opts.strictNullHandling=="boolean"?opts.strictNullHandling:defaults.strictNullHandling}};module.exports=function(str,opts){var options2=normalizeParseOptions(opts);if(str===""||str===null||typeof str>"u")return options2.plainObjects?Object.create(null):{};for(var tempObj=typeof str=="string"?parseValues(str,options2):str,obj=options2.plainObjects?Object.create(null):{},keys2=Object.keys(tempObj),i=0;i-1}module.exports=listCacheHas2}});var require_listCacheSet=__commonJS({"../../node_modules/lodash/_listCacheSet.js"(exports,module){var assocIndexOf2=require_assocIndexOf();function listCacheSet2(key2,value2){var data=this.__data__,index3=assocIndexOf2(data,key2);return index3<0?(++this.size,data.push([key2,value2])):data[index3][1]=value2,this}module.exports=listCacheSet2}});var require_ListCache=__commonJS({"../../node_modules/lodash/_ListCache.js"(exports,module){var listCacheClear2=require_listCacheClear(),listCacheDelete2=require_listCacheDelete(),listCacheGet2=require_listCacheGet(),listCacheHas2=require_listCacheHas(),listCacheSet2=require_listCacheSet();function ListCache2(entries){var index3=-1,length=entries==null?0:entries.length;for(this.clear();++index3-1&&value2%1==0&&value2<=MAX_SAFE_INTEGER}module.exports=isLength}});var require_isArrayLike=__commonJS({"../../node_modules/lodash/isArrayLike.js"(exports,module){var isFunction2=require_isFunction(),isLength=require_isLength();function isArrayLike(value2){return value2!=null&&isLength(value2.length)&&!isFunction2(value2)}module.exports=isArrayLike}});var require_isArrayLikeObject=__commonJS({"../../node_modules/lodash/isArrayLikeObject.js"(exports,module){var isArrayLike=require_isArrayLike(),isObjectLike2=require_isObjectLike2();function isArrayLikeObject(value2){return isObjectLike2(value2)&&isArrayLike(value2)}module.exports=isArrayLikeObject}});var require_stubFalse=__commonJS({"../../node_modules/lodash/stubFalse.js"(exports,module){function stubFalse(){return!1}module.exports=stubFalse}});var require_isBuffer=__commonJS({"../../node_modules/lodash/isBuffer.js"(exports,module){var root3=require_root2(),stubFalse=require_stubFalse(),freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root3.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer}});var require_isPlainObject2=__commonJS({"../../node_modules/lodash/isPlainObject.js"(exports,module){var baseGetTag2=require_baseGetTag2(),getPrototype=require_getPrototype2(),isObjectLike2=require_isObjectLike2(),objectTag="[object Object]",funcProto3=Function.prototype,objectProto6=Object.prototype,funcToString3=funcProto3.toString,hasOwnProperty5=objectProto6.hasOwnProperty,objectCtorString=funcToString3.call(Object);function isPlainObject(value2){if(!isObjectLike2(value2)||baseGetTag2(value2)!=objectTag)return!1;var proto=getPrototype(value2);if(proto===null)return!0;var Ctor=hasOwnProperty5.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString3.call(Ctor)==objectCtorString}module.exports=isPlainObject}});var require_baseIsTypedArray=__commonJS({"../../node_modules/lodash/_baseIsTypedArray.js"(exports,module){var baseGetTag2=require_baseGetTag2(),isLength=require_isLength(),isObjectLike2=require_isObjectLike2(),argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag2="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag2]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray(value2){return isObjectLike2(value2)&&isLength(value2.length)&&!!typedArrayTags[baseGetTag2(value2)]}module.exports=baseIsTypedArray}});var require_baseUnary=__commonJS({"../../node_modules/lodash/_baseUnary.js"(exports,module){function baseUnary(func){return function(value2){return func(value2)}}module.exports=baseUnary}});var require_nodeUtil=__commonJS({"../../node_modules/lodash/_nodeUtil.js"(exports,module){var freeGlobal2=require_freeGlobal2(),freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal2.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();module.exports=nodeUtil}});var require_isTypedArray=__commonJS({"../../node_modules/lodash/isTypedArray.js"(exports,module){var baseIsTypedArray=require_baseIsTypedArray(),baseUnary=require_baseUnary(),nodeUtil=require_nodeUtil(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray}});var require_safeGet=__commonJS({"../../node_modules/lodash/_safeGet.js"(exports,module){function safeGet(object,key2){if(!(key2==="constructor"&&typeof object[key2]=="function")&&key2!="__proto__")return object[key2]}module.exports=safeGet}});var require_assignValue=__commonJS({"../../node_modules/lodash/_assignValue.js"(exports,module){var baseAssignValue=require_baseAssignValue(),eq2=require_eq(),objectProto6=Object.prototype,hasOwnProperty5=objectProto6.hasOwnProperty;function assignValue(object,key2,value2){var objValue=object[key2];(!(hasOwnProperty5.call(object,key2)&&eq2(objValue,value2))||value2===void 0&&!(key2 in object))&&baseAssignValue(object,key2,value2)}module.exports=assignValue}});var require_copyObject=__commonJS({"../../node_modules/lodash/_copyObject.js"(exports,module){var assignValue=require_assignValue(),baseAssignValue=require_baseAssignValue();function copyObject(source2,props,object,customizer){var isNew=!object;object||(object={});for(var index3=-1,length=props.length;++index3-1&&value2%1==0&&value20){if(++count>=HOT_COUNT)return arguments[0]}else count=0;return func.apply(void 0,arguments)}}module.exports=shortOut}});var require_setToString=__commonJS({"../../node_modules/lodash/_setToString.js"(exports,module){var baseSetToString=require_baseSetToString(),shortOut=require_shortOut(),setToString=shortOut(baseSetToString);module.exports=setToString}});var require_baseRest=__commonJS({"../../node_modules/lodash/_baseRest.js"(exports,module){var identity=require_identity(),overRest=require_overRest(),setToString=require_setToString();function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}module.exports=baseRest}});var require_isIterateeCall=__commonJS({"../../node_modules/lodash/_isIterateeCall.js"(exports,module){var eq2=require_eq(),isArrayLike=require_isArrayLike(),isIndex=require_isIndex(),isObject4=require_isObject();function isIterateeCall(value2,index3,object){if(!isObject4(object))return!1;var type=typeof index3;return(type=="number"?isArrayLike(object)&&isIndex(index3,object.length):type=="string"&&index3 in object)?eq2(object[index3],value2):!1}module.exports=isIterateeCall}});var require_createAssigner=__commonJS({"../../node_modules/lodash/_createAssigner.js"(exports,module){var baseRest=require_baseRest(),isIterateeCall=require_isIterateeCall();function createAssigner(assigner){return baseRest(function(object,sources){var index3=-1,length=sources.length,customizer=length>1?sources[length-1]:void 0,guard2=length>2?sources[2]:void 0;for(customizer=assigner.length>3&&typeof customizer=="function"?(length--,customizer):void 0,guard2&&isIterateeCall(sources[0],sources[1],guard2)&&(customizer=length<3?void 0:customizer,length=1),object=Object(object);++index3_.length(this._area)&&(m--,i--)}return fill||this},keys:function(fillList){return this.each(function(k,v2,list){list.push(k)},fillList||[])},get:function(key2,alt){var s=_.get(this._area,this._in(key2)),fn;return typeof alt=="function"&&(fn=alt,alt=null),s!==null?_.parse(s,fn):alt??s},getAll:function(fillObj){return this.each(function(k,v2,all){all[k]=v2},fillObj||{})},transact:function(key2,fn,alt){var val=this.get(key2,alt),ret=fn(val);return this.set(key2,ret===void 0?val:ret),this},set:function(key2,data,overwrite){var d=this.get(key2),replacer3;return d!=null&&overwrite===!1?data:(typeof overwrite=="function"&&(replacer3=overwrite,overwrite=void 0),_.set(this._area,this._in(key2),_.stringify(data,replacer3),overwrite)||d)},setAll:function(data,overwrite){var changed,val;for(var key2 in data)val=data[key2],this.set(key2,val,overwrite)!==val&&(changed=!0);return changed},add:function(key2,data,replacer3){var d=this.get(key2);if(d instanceof Array)data=d.concat(data);else if(d!==null){var type=typeof d;if(type===typeof data&&type==="object"){for(var k in data)d[k]=data[k];data=d}else data=d+data}return _.set(this._area,this._in(key2),_.stringify(data,replacer3)),data},remove:function(key2,alt){var d=this.get(key2,alt);return _.remove(this._area,this._in(key2)),d},clear:function(){return this._ns?this.each(function(k){_.remove(this._area,this._in(k))},1):_.clear(this._area),this},clearAll:function(){var area=this._area;for(var id in _.areas)_.areas.hasOwnProperty(id)&&(this._area=_.areas[id],this.clear());return this._area=area,this},_in:function(k){return typeof k!="string"&&(k=_.stringify(k)),this._ns?this._ns+k:k},_out:function(k){return this._ns?k&&k.indexOf(this._ns)===0?k.substring(this._ns.length):void 0:k}},storage:function(name2){return _.inherit(_.storageAPI,{items:{},name:name2})},storageAPI:{length:0,has:function(k){return this.items.hasOwnProperty(k)},key:function(i){var c2=0;for(var k in this.items)if(this.has(k)&&i===c2++)return k},setItem:function(k,v2){this.has(k)||this.length++,this.items[k]=v2},removeItem:function(k){this.has(k)&&(delete this.items[k],this.length--)},getItem:function(k){return this.has(k)?this.items[k]:null},clear:function(){for(var k in this.items)this.removeItem(k)}}},store2=_.Store("local",function(){try{return localStorage}catch{}}());store2.local=store2,store2._=_,store2.area("session",function(){try{return sessionStorage}catch{}}()),store2.area("page",_.storage("page")),typeof define=="function"&&define.amd!==void 0?define("store2",[],function(){return store2}):typeof module<"u"&&module.exports?module.exports=store2:(window2.store&&(_.conflict=window2.store),window2.store=store2)})(exports,exports&&exports.define)}});var require_setCacheAdd=__commonJS({"../../node_modules/lodash/_setCacheAdd.js"(exports,module){var HASH_UNDEFINED3="__lodash_hash_undefined__";function setCacheAdd(value2){return this.__data__.set(value2,HASH_UNDEFINED3),this}module.exports=setCacheAdd}});var require_setCacheHas=__commonJS({"../../node_modules/lodash/_setCacheHas.js"(exports,module){function setCacheHas(value2){return this.__data__.has(value2)}module.exports=setCacheHas}});var require_SetCache=__commonJS({"../../node_modules/lodash/_SetCache.js"(exports,module){var MapCache2=require_MapCache(),setCacheAdd=require_setCacheAdd(),setCacheHas=require_setCacheHas();function SetCache(values){var index3=-1,length=values==null?0:values.length;for(this.__data__=new MapCache2;++index3arrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index3=-1,result2=!0,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index30&&predicate(value2)?depth>1?baseFlatten(value2,depth-1,predicate,isStrict,result2):arrayPush(result2,value2):isStrict||(result2[result2.length]=value2)}return result2}module.exports=baseFlatten}});var require_flatten=__commonJS({"../../node_modules/lodash/flatten.js"(exports,module){var baseFlatten=require_baseFlatten();function flatten(array){var length=array==null?0:array.length;return length?baseFlatten(array,1):[]}module.exports=flatten}});var require_flatRest=__commonJS({"../../node_modules/lodash/_flatRest.js"(exports,module){var flatten=require_flatten(),overRest=require_overRest(),setToString=require_setToString();function flatRest(func){return setToString(overRest(func,void 0,flatten),func+"")}module.exports=flatRest}});var require_pick=__commonJS({"../../node_modules/lodash/pick.js"(exports,module){var basePick=require_basePick(),flatRest=require_flatRest(),pick3=flatRest(function(object,paths){return object==null?{}:basePick(object,paths)});module.exports=pick3}});var dist_exports={};__export(dist_exports,{BaseLocationProvider:()=>BaseLocationProvider,DEEPLY_EQUAL:()=>DEEPLY_EQUAL,Link:()=>Link2,Location:()=>Location,LocationProvider:()=>LocationProvider,Match:()=>Match,Route:()=>Route2,buildArgsParam:()=>buildArgsParam,deepDiff:()=>deepDiff,getMatch:()=>getMatch,parsePath:()=>parsePath,queryFromLocation:()=>queryFromLocation,queryFromString:()=>queryFromString,stringifyQuery:()=>stringifyQuery,useNavigate:()=>useNavigate2});var import_memoizerific=__toESM(require_memoizerific(),1),import_qs=__toESM(require_lib(),1),__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key2 of __getOwnPropNames(from))!__hasOwnProp.call(to,key2)&&key2!==except&&__defProp(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc(from,key2))||desc.enumerable});return to},__toESM2=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),require_freeGlobal=__commonJS2({"../../node_modules/lodash/_freeGlobal.js"(exports,module){var freeGlobal2=typeof global=="object"&&global&&global.Object===Object&&global;module.exports=freeGlobal2}}),require_root=__commonJS2({"../../node_modules/lodash/_root.js"(exports,module){var freeGlobal2=require_freeGlobal(),freeSelf2=typeof self=="object"&&self&&self.Object===Object&&self,root3=freeGlobal2||freeSelf2||Function("return this")();module.exports=root3}}),require_Symbol=__commonJS2({"../../node_modules/lodash/_Symbol.js"(exports,module){var root3=require_root(),Symbol22=root3.Symbol;module.exports=Symbol22}}),require_getRawTag=__commonJS2({"../../node_modules/lodash/_getRawTag.js"(exports,module){var Symbol22=require_Symbol(),objectProto6=Object.prototype,hasOwnProperty5=objectProto6.hasOwnProperty,nativeObjectToString3=objectProto6.toString,symToStringTag3=Symbol22?Symbol22.toStringTag:void 0;function getRawTag2(value2){var isOwn=hasOwnProperty5.call(value2,symToStringTag3),tag=value2[symToStringTag3];try{value2[symToStringTag3]=void 0;var unmasked=!0}catch{}var result2=nativeObjectToString3.call(value2);return unmasked&&(isOwn?value2[symToStringTag3]=tag:delete value2[symToStringTag3]),result2}module.exports=getRawTag2}}),require_objectToString=__commonJS2({"../../node_modules/lodash/_objectToString.js"(exports,module){var objectProto6=Object.prototype,nativeObjectToString3=objectProto6.toString;function objectToString2(value2){return nativeObjectToString3.call(value2)}module.exports=objectToString2}}),require_baseGetTag=__commonJS2({"../../node_modules/lodash/_baseGetTag.js"(exports,module){var Symbol22=require_Symbol(),getRawTag2=require_getRawTag(),objectToString2=require_objectToString(),nullTag2="[object Null]",undefinedTag2="[object Undefined]",symToStringTag3=Symbol22?Symbol22.toStringTag:void 0;function baseGetTag2(value2){return value2==null?value2===void 0?undefinedTag2:nullTag2:symToStringTag3&&symToStringTag3 in Object(value2)?getRawTag2(value2):objectToString2(value2)}module.exports=baseGetTag2}}),require_overArg=__commonJS2({"../../node_modules/lodash/_overArg.js"(exports,module){function overArg(func,transform){return function(arg){return func(transform(arg))}}module.exports=overArg}}),require_getPrototype=__commonJS2({"../../node_modules/lodash/_getPrototype.js"(exports,module){var overArg=require_overArg(),getPrototype=overArg(Object.getPrototypeOf,Object);module.exports=getPrototype}}),require_isObjectLike=__commonJS2({"../../node_modules/lodash/isObjectLike.js"(exports,module){function isObjectLike2(value2){return value2!=null&&typeof value2=="object"}module.exports=isObjectLike2}}),require_isPlainObject=__commonJS2({"../../node_modules/lodash/isPlainObject.js"(exports,module){var baseGetTag2=require_baseGetTag(),getPrototype=require_getPrototype(),isObjectLike2=require_isObjectLike(),objectTag="[object Object]",funcProto3=Function.prototype,objectProto6=Object.prototype,funcToString3=funcProto3.toString,hasOwnProperty5=objectProto6.hasOwnProperty,objectCtorString=funcToString3.call(Object);function isPlainObject2(value2){if(!isObjectLike2(value2)||baseGetTag2(value2)!=objectTag)return!1;var proto=getPrototype(value2);if(proto===null)return!0;var Ctor=hasOwnProperty5.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString3.call(Ctor)==objectCtorString}module.exports=isPlainObject2}}),has=Object.prototype.hasOwnProperty;function find(iter,tar,key2){for(key2 of iter.keys())if(dequal(key2,tar))return key2}function dequal(foo,bar){var ctor,len,tmp;if(foo===bar)return!0;if(foo&&bar&&(ctor=foo.constructor)===bar.constructor){if(ctor===Date)return foo.getTime()===bar.getTime();if(ctor===RegExp)return foo.toString()===bar.toString();if(ctor===Array){if((len=foo.length)===bar.length)for(;len--&&dequal(foo[len],bar[len]););return len===-1}if(ctor===Set){if(foo.size!==bar.size)return!1;for(len of foo)if(tmp=len,tmp&&typeof tmp=="object"&&(tmp=find(bar,tmp),!tmp)||!bar.has(tmp))return!1;return!0}if(ctor===Map){if(foo.size!==bar.size)return!1;for(len of foo)if(tmp=len[0],tmp&&typeof tmp=="object"&&(tmp=find(bar,tmp),!tmp)||!dequal(len[1],bar.get(tmp)))return!1;return!0}if(ctor===ArrayBuffer)foo=new Uint8Array(foo),bar=new Uint8Array(bar);else if(ctor===DataView){if((len=foo.byteLength)===bar.byteLength)for(;len--&&foo.getInt8(len)===bar.getInt8(len););return len===-1}if(ArrayBuffer.isView(foo)){if((len=foo.byteLength)===bar.byteLength)for(;len--&&foo[len]===bar[len];);return len===-1}if(!ctor||typeof foo=="object"){len=0;for(ctor in foo)if(has.call(foo,ctor)&&++len&&!has.call(bar,ctor)||!(ctor in bar)||!dequal(foo[ctor],bar[ctor]))return!1;return Object.keys(bar).length===len}}return foo!==foo&&bar!==bar}var import_isPlainObject=__toESM2(require_isPlainObject());function dedent(templ){for(var values=[],_i=1;_i{let result2={viewMode:void 0,storyId:void 0,refId:void 0};if(path){let[,viewMode,refId,storyId]=path.toLowerCase().match(splitPathRegex)||[];viewMode&&Object.assign(result2,{viewMode,storyId,refId})}return result2}),DEEPLY_EQUAL=Symbol("Deeply equal"),deepDiff=(value2,update2)=>{if(typeof value2!=typeof update2)return update2;if(dequal(value2,update2))return DEEPLY_EQUAL;if(Array.isArray(value2)&&Array.isArray(update2)){let res=update2.reduce((acc,upd,index3)=>{let diff=deepDiff(value2[index3],upd);return diff!==DEEPLY_EQUAL&&(acc[index3]=diff),acc},new Array(update2.length));return update2.length>=value2.length?res:res.concat(new Array(value2.length-update2.length).fill(void 0))}return(0,import_isPlainObject.default)(value2)&&(0,import_isPlainObject.default)(update2)?Object.keys({...value2,...update2}).reduce((acc,key2)=>{let diff=deepDiff(value2?.[key2],update2?.[key2]);return diff===DEEPLY_EQUAL?acc:Object.assign(acc,{[key2]:diff})},{}):update2},VALIDATION_REGEXP=/^[a-zA-Z0-9 _-]*$/,NUMBER_REGEXP=/^-?[0-9]+(\.[0-9]+)?$/,HEX_REGEXP=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,COLOR_REGEXP=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,validateArgs=(key2="",value2)=>key2===null||key2===""||!VALIDATION_REGEXP.test(key2)?!1:value2==null||value2 instanceof Date||typeof value2=="number"||typeof value2=="boolean"?!0:typeof value2=="string"?VALIDATION_REGEXP.test(value2)||NUMBER_REGEXP.test(value2)||HEX_REGEXP.test(value2)||COLOR_REGEXP.test(value2):Array.isArray(value2)?value2.every(v2=>validateArgs(key2,v2)):(0,import_isPlainObject.default)(value2)?Object.entries(value2).every(([k,v2])=>validateArgs(k,v2)):!1,encodeSpecialValues=value2=>value2===void 0?"!undefined":value2===null?"!null":typeof value2=="string"?HEX_REGEXP.test(value2)?`!hex(${value2.slice(1)})`:COLOR_REGEXP.test(value2)?`!${value2.replace(/[\s%]/g,"")}`:value2:typeof value2=="boolean"?`!${value2}`:Array.isArray(value2)?value2.map(encodeSpecialValues):(0,import_isPlainObject.default)(value2)?Object.entries(value2).reduce((acc,[key2,val])=>Object.assign(acc,{[key2]:encodeSpecialValues(val)}),{}):value2,QS_OPTIONS={encode:!1,delimiter:";",allowDots:!0,format:"RFC1738",serializeDate:date=>`!date(${date.toISOString()})`},buildArgsParam=(initialArgs,args2)=>{let update2=deepDiff(initialArgs,args2);if(!update2||update2===DEEPLY_EQUAL)return"";let object=Object.entries(update2).reduce((acc,[key2,value2])=>validateArgs(key2,value2)?Object.assign(acc,{[key2]:value2}):(once.warn(dedent` + Omitted potentially unsafe URL args. + + More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url + `),acc),{});return import_qs.default.stringify(encodeSpecialValues(object),QS_OPTIONS).replace(/ /g,"+").split(";").map(part=>part.replace("=",":")).join(";")},queryFromString=(0,import_memoizerific.default)(1e3)(s=>s!==void 0?import_qs.default.parse(s,{ignoreQueryPrefix:!0}):{}),queryFromLocation=location3=>queryFromString(location3.search),stringifyQuery=query=>import_qs.default.stringify(query,{addQueryPrefix:!0,encode:!1}),getMatch=(0,import_memoizerific.default)(1e3)((current,target,startsWith=!0)=>{if(startsWith){if(typeof target!="string")throw new Error("startsWith only works with string targets");return current&¤t.startsWith(target)?{path:current}:null}let currentIsTarget=typeof target=="string"&¤t===target,matchTarget=current&&target&¤t.match(target);return currentIsTarget||matchTarget?{path:current}:null});var import_react=__toESM(require_react(),1),scope2=(()=>{let win;return typeof window<"u"?win=window:typeof globalThis<"u"?win=globalThis:typeof global<"u"?win=global:typeof self<"u"?win=self:win={},win})();function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0&&(parsedPath.hash=path.substr(hashIndex),path=path.substr(0,hashIndex));var searchIndex=path.indexOf("?");searchIndex>=0&&(parsedPath.search=path.substr(searchIndex),path=path.substr(0,searchIndex)),path&&(parsedPath.pathname=path)}return parsedPath}function invariant(cond,message){if(!cond)throw new Error(message)}function warning2(cond,message){if(!cond){typeof console<"u"&&console.warn(message);try{throw new Error(message)}catch{}}}var NavigationContext=(0,import_react.createContext)(null);NavigationContext.displayName="Navigation";var LocationContext=(0,import_react.createContext)(null);LocationContext.displayName="Location";var RouteContext=(0,import_react.createContext)({outlet:null,matches:[]});RouteContext.displayName="Route";function Router(_ref3){let{basename:basenameProp="/",children=null,location:locationProp,navigationType=Action.Pop,navigator:navigator3,static:staticProp=!1}=_ref3;useInRouterContext()&&invariant(!1,"You cannot render a inside another . You should never have more than one in your app.");let basename=normalizePathname(basenameProp),navigationContext=(0,import_react.useMemo)(()=>({basename,navigator:navigator3,static:staticProp}),[basename,navigator3,staticProp]);typeof locationProp=="string"&&(locationProp=parsePath2(locationProp));let{pathname="/",search="",hash="",state=null,key:key2="default"}=locationProp,location3=(0,import_react.useMemo)(()=>{let trailingPathname=stripBasename(pathname,basename);return trailingPathname==null?null:{pathname:trailingPathname,search,hash,state,key:key2}},[basename,pathname,search,hash,state,key2]);return warning2(location3!=null,' is not able to match the URL '+('"'+pathname+search+hash+'" because it does not start with the ')+"basename, so the won't render anything."),location3==null?null:(0,import_react.createElement)(NavigationContext.Provider,{value:navigationContext},(0,import_react.createElement)(LocationContext.Provider,{children,value:{location:location3,navigationType}}))}function useHref(to){useInRouterContext()||invariant(!1,"useHref() may be used only in the context of a component.");let{basename,navigator:navigator3}=(0,import_react.useContext)(NavigationContext),{hash,pathname,search}=useResolvedPath(to),joinedPathname=pathname;if(basename!=="/"){let toPathname=getToPathname(to),endsWithSlash=toPathname!=null&&toPathname.endsWith("/");joinedPathname=pathname==="/"?basename+(endsWithSlash?"/":""):joinPaths([basename,pathname])}return navigator3.createHref({pathname:joinedPathname,search,hash})}function useInRouterContext(){return(0,import_react.useContext)(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant(!1,"useLocation() may be used only in the context of a component."),(0,import_react.useContext)(LocationContext).location}function useNavigate(){useInRouterContext()||invariant(!1,"useNavigate() may be used only in the context of a component.");let{basename,navigator:navigator3}=(0,import_react.useContext)(NavigationContext),{matches}=(0,import_react.useContext)(RouteContext),{pathname:locationPathname}=useLocation(),routePathnamesJson=JSON.stringify(matches.map(match=>match.pathnameBase)),activeRef=(0,import_react.useRef)(!1);return(0,import_react.useEffect)(()=>{activeRef.current=!0}),(0,import_react.useCallback)(function(to,options2){if(options2===void 0&&(options2={}),warning2(activeRef.current,"You should call navigate() in a React.useEffect(), not when your component is first rendered."),!activeRef.current)return;if(typeof to=="number"){navigator3.go(to);return}let path=resolveTo(to,JSON.parse(routePathnamesJson),locationPathname);basename!=="/"&&(path.pathname=joinPaths([basename,path.pathname])),(options2.replace?navigator3.replace:navigator3.push)(path,options2.state)},[basename,navigator3,routePathnamesJson,locationPathname])}function useResolvedPath(to){let{matches}=(0,import_react.useContext)(RouteContext),{pathname:locationPathname}=useLocation(),routePathnamesJson=JSON.stringify(matches.map(match=>match.pathnameBase));return(0,import_react.useMemo)(()=>resolveTo(to,JSON.parse(routePathnamesJson),locationPathname),[to,routePathnamesJson,locationPathname])}function resolvePath(to,fromPathname){fromPathname===void 0&&(fromPathname="/");let{pathname:toPathname,search="",hash=""}=typeof to=="string"?parsePath2(to):to;return{pathname:toPathname?toPathname.startsWith("/")?toPathname:resolvePathname(toPathname,fromPathname):fromPathname,search:normalizeSearch(search),hash:normalizeHash(hash)}}function resolvePathname(relativePath,fromPathname){let segments=fromPathname.replace(/\/+$/,"").split("/");return relativePath.split("/").forEach(segment=>{segment===".."?segments.length>1&&segments.pop():segment!=="."&&segments.push(segment)}),segments.length>1?segments.join("/"):"/"}function resolveTo(toArg,routePathnames,locationPathname){let to=typeof toArg=="string"?parsePath2(toArg):toArg,toPathname=toArg===""||to.pathname===""?"/":to.pathname,from;if(toPathname==null)from=locationPathname;else{let routePathnameIndex=routePathnames.length-1;if(toPathname.startsWith("..")){let toSegments=toPathname.split("/");for(;toSegments[0]==="..";)toSegments.shift(),routePathnameIndex-=1;to.pathname=toSegments.join("/")}from=routePathnameIndex>=0?routePathnames[routePathnameIndex]:"/"}let path=resolvePath(to,from);return toPathname&&toPathname!=="/"&&toPathname.endsWith("/")&&!path.pathname.endsWith("/")&&(path.pathname+="/"),path}function getToPathname(to){return to===""||to.pathname===""?"/":typeof to=="string"?parsePath2(to).pathname:to.pathname}function stripBasename(pathname,basename){if(basename==="/")return pathname;if(!pathname.toLowerCase().startsWith(basename.toLowerCase()))return null;let nextChar=pathname.charAt(basename.length);return nextChar&&nextChar!=="/"?null:pathname.slice(basename.length)||"/"}var joinPaths=paths=>paths.join("/").replace(/\/\/+/g,"/"),normalizePathname=pathname=>pathname.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=search=>!search||search==="?"?"":search.startsWith("?")?search:"?"+search,normalizeHash=hash=>!hash||hash==="#"?"":hash.startsWith("#")?hash:"#"+hash;function _extends22(){return _extends22=Object.assign||function(target){for(var i=1;i=0)&&(target[key2]=source2[key2]);return target}var _excluded=["onClick","reloadDocument","replace","state","target","to"],_excluded2=["aria-current","caseSensitive","className","end","style","to"];function BrowserRouter(_ref){let{basename,children,window:window2}=_ref,historyRef=(0,import_react.useRef)();historyRef.current==null&&(historyRef.current=createBrowserHistory({window:window2}));let history=historyRef.current,[state,setState]=(0,import_react.useState)({action:history.action,location:history.location});return(0,import_react.useLayoutEffect)(()=>history.listen(setState),[history]),(0,import_react.createElement)(Router,{basename,children,location:state.location,navigationType:state.action,navigator:history})}function isModifiedEvent(event){return!!(event.metaKey||event.altKey||event.ctrlKey||event.shiftKey)}var Link=(0,import_react.forwardRef)(function(_ref3,ref){let{onClick,reloadDocument,replace=!1,state,target,to}=_ref3,rest=_objectWithoutPropertiesLoose2(_ref3,_excluded),href=useHref(to),internalOnClick=useLinkClickHandler(to,{replace,state,target});function handleClick(event){onClick&&onClick(event),!event.defaultPrevented&&!reloadDocument&&internalOnClick(event)}return(0,import_react.createElement)("a",_extends22({},rest,{href,onClick:handleClick,ref,target}))});Link.displayName="Link";var NavLink=(0,import_react.forwardRef)(function(_ref4,ref){let{"aria-current":ariaCurrentProp="page",caseSensitive=!1,className:classNameProp="",end=!1,style:styleProp,to}=_ref4,rest=_objectWithoutPropertiesLoose2(_ref4,_excluded2),location3=useLocation(),path=useResolvedPath(to),locationPathname=location3.pathname,toPathname=path.pathname;caseSensitive||(locationPathname=locationPathname.toLowerCase(),toPathname=toPathname.toLowerCase());let isActive=locationPathname===toPathname||!end&&locationPathname.startsWith(toPathname)&&locationPathname.charAt(toPathname.length)==="/",ariaCurrent=isActive?ariaCurrentProp:void 0,className;typeof classNameProp=="function"?className=classNameProp({isActive}):className=[classNameProp,isActive?"active":null].filter(Boolean).join(" ");let style=typeof styleProp=="function"?styleProp({isActive}):styleProp;return(0,import_react.createElement)(Link,_extends22({},rest,{"aria-current":ariaCurrent,className,ref,style,to}))});NavLink.displayName="NavLink";function useLinkClickHandler(to,_temp){let{target,replace:replaceProp,state}=_temp===void 0?{}:_temp,navigate=useNavigate(),location3=useLocation(),path=useResolvedPath(to);return(0,import_react.useCallback)(event=>{if(event.button===0&&(!target||target==="_self")&&!isModifiedEvent(event)){event.preventDefault();let replace=!!replaceProp||createPath(location3)===createPath(path);navigate(to,{replace,state})}},[location3,navigate,path,replaceProp,state,target,to])}var{document:document2}=scope2,getBase=()=>`${document2.location.pathname}?`,useNavigate2=()=>{let navigate=useNavigate();return(0,import_react.useCallback)((to,{plain,...options2}={})=>{if(typeof to=="string"&&to.startsWith("#")){document2.location.hash=to;return}if(typeof to=="string"){let target=plain?to:`?path=${to}`;return navigate(target,options2)}if(typeof to=="number")return navigate(to)},[])},Link2=({to,children,...rest})=>import_react.default.createElement(Link,{to:`${getBase()}path=${to}`,...rest},children);Link2.displayName="QueryLink";var Location=({children})=>{let location3=useLocation(),{path,singleStory}=queryFromString(location3.search),{viewMode,storyId,refId}=parsePath(path);return import_react.default.createElement(import_react.default.Fragment,null,children({path:path||"/",location:location3,viewMode,storyId,refId,singleStory:singleStory==="true"}))};Location.displayName="QueryLocation";function Match({children,path:targetPath,startsWith=!1}){return import_react.default.createElement(Location,null,({path:urlPath,...rest})=>children({match:getMatch(urlPath,targetPath,startsWith),...rest}))}Match.displayName="QueryMatch";function Route2(input){let{children,...rest}=input;return rest.startsWith===void 0&&(rest.startsWith=!1),import_react.default.createElement(Match,{...rest},({match})=>match?children:null)}Route2.displayName="Route";var LocationProvider=(...args2)=>BrowserRouter(...args2),BaseLocationProvider=(...args2)=>Router(...args2);var dist_exports2={};__export(dist_exports2,{CHANNEL_CREATED:()=>CHANNEL_CREATED,CHANNEL_WS_DISCONNECT:()=>CHANNEL_WS_DISCONNECT,CONFIG_ERROR:()=>CONFIG_ERROR,CURRENT_STORY_WAS_SET:()=>CURRENT_STORY_WAS_SET,DOCS_PREPARED:()=>DOCS_PREPARED,DOCS_RENDERED:()=>DOCS_RENDERED,FORCE_REMOUNT:()=>FORCE_REMOUNT,FORCE_RE_RENDER:()=>FORCE_RE_RENDER,GLOBALS_UPDATED:()=>GLOBALS_UPDATED,NAVIGATE_URL:()=>NAVIGATE_URL,PLAY_FUNCTION_THREW_EXCEPTION:()=>PLAY_FUNCTION_THREW_EXCEPTION,PRELOAD_ENTRIES:()=>PRELOAD_ENTRIES,PREVIEW_BUILDER_PROGRESS:()=>PREVIEW_BUILDER_PROGRESS,PREVIEW_KEYDOWN:()=>PREVIEW_KEYDOWN,REGISTER_SUBSCRIPTION:()=>REGISTER_SUBSCRIPTION,REQUEST_WHATS_NEW_DATA:()=>REQUEST_WHATS_NEW_DATA,RESET_STORY_ARGS:()=>RESET_STORY_ARGS,RESULT_WHATS_NEW_DATA:()=>RESULT_WHATS_NEW_DATA,SELECT_STORY:()=>SELECT_STORY,SET_CONFIG:()=>SET_CONFIG,SET_CURRENT_STORY:()=>SET_CURRENT_STORY,SET_GLOBALS:()=>SET_GLOBALS,SET_INDEX:()=>SET_INDEX,SET_STORIES:()=>SET_STORIES,SET_WHATS_NEW_CACHE:()=>SET_WHATS_NEW_CACHE,SHARED_STATE_CHANGED:()=>SHARED_STATE_CHANGED,SHARED_STATE_SET:()=>SHARED_STATE_SET,STORIES_COLLAPSE_ALL:()=>STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL:()=>STORIES_EXPAND_ALL,STORY_ARGS_UPDATED:()=>STORY_ARGS_UPDATED,STORY_CHANGED:()=>STORY_CHANGED,STORY_ERRORED:()=>STORY_ERRORED,STORY_INDEX_INVALIDATED:()=>STORY_INDEX_INVALIDATED,STORY_MISSING:()=>STORY_MISSING,STORY_PREPARED:()=>STORY_PREPARED,STORY_RENDERED:()=>STORY_RENDERED,STORY_RENDER_PHASE_CHANGED:()=>STORY_RENDER_PHASE_CHANGED,STORY_SPECIFIED:()=>STORY_SPECIFIED,STORY_THREW_EXCEPTION:()=>STORY_THREW_EXCEPTION,STORY_UNCHANGED:()=>STORY_UNCHANGED,TELEMETRY_ERROR:()=>TELEMETRY_ERROR,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>TOGGLE_WHATS_NEW_NOTIFICATIONS,UNHANDLED_ERRORS_WHILE_PLAYING:()=>UNHANDLED_ERRORS_WHILE_PLAYING,UPDATE_GLOBALS:()=>UPDATE_GLOBALS,UPDATE_QUERY_PARAMS:()=>UPDATE_QUERY_PARAMS,UPDATE_STORY_ARGS:()=>UPDATE_STORY_ARGS,default:()=>src_default});var events=(events2=>(events2.CHANNEL_WS_DISCONNECT="channelWSDisconnect",events2.CHANNEL_CREATED="channelCreated",events2.CONFIG_ERROR="configError",events2.STORY_INDEX_INVALIDATED="storyIndexInvalidated",events2.STORY_SPECIFIED="storySpecified",events2.SET_CONFIG="setConfig",events2.SET_STORIES="setStories",events2.SET_INDEX="setIndex",events2.SET_CURRENT_STORY="setCurrentStory",events2.CURRENT_STORY_WAS_SET="currentStoryWasSet",events2.FORCE_RE_RENDER="forceReRender",events2.FORCE_REMOUNT="forceRemount",events2.PRELOAD_ENTRIES="preloadStories",events2.STORY_PREPARED="storyPrepared",events2.DOCS_PREPARED="docsPrepared",events2.STORY_CHANGED="storyChanged",events2.STORY_UNCHANGED="storyUnchanged",events2.STORY_RENDERED="storyRendered",events2.STORY_MISSING="storyMissing",events2.STORY_ERRORED="storyErrored",events2.STORY_THREW_EXCEPTION="storyThrewException",events2.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",events2.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",events2.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",events2.UPDATE_STORY_ARGS="updateStoryArgs",events2.STORY_ARGS_UPDATED="storyArgsUpdated",events2.RESET_STORY_ARGS="resetStoryArgs",events2.SET_GLOBALS="setGlobals",events2.UPDATE_GLOBALS="updateGlobals",events2.GLOBALS_UPDATED="globalsUpdated",events2.REGISTER_SUBSCRIPTION="registerSubscription",events2.PREVIEW_KEYDOWN="previewKeydown",events2.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",events2.SELECT_STORY="selectStory",events2.STORIES_COLLAPSE_ALL="storiesCollapseAll",events2.STORIES_EXPAND_ALL="storiesExpandAll",events2.DOCS_RENDERED="docsRendered",events2.SHARED_STATE_CHANGED="sharedStateChanged",events2.SHARED_STATE_SET="sharedStateSet",events2.NAVIGATE_URL="navigateUrl",events2.UPDATE_QUERY_PARAMS="updateQueryParams",events2.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",events2.RESULT_WHATS_NEW_DATA="resultWhatsNewData",events2.SET_WHATS_NEW_CACHE="setWhatsNewCache",events2.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",events2.TELEMETRY_ERROR="telemetryError",events2))(events||{}),src_default=events,{CHANNEL_WS_DISCONNECT,CHANNEL_CREATED,CONFIG_ERROR,CURRENT_STORY_WAS_SET,DOCS_PREPARED,DOCS_RENDERED,FORCE_RE_RENDER,FORCE_REMOUNT,GLOBALS_UPDATED,NAVIGATE_URL,PLAY_FUNCTION_THREW_EXCEPTION,UNHANDLED_ERRORS_WHILE_PLAYING,PRELOAD_ENTRIES,PREVIEW_BUILDER_PROGRESS,PREVIEW_KEYDOWN,REGISTER_SUBSCRIPTION,RESET_STORY_ARGS,SELECT_STORY,SET_CONFIG,SET_CURRENT_STORY,SET_GLOBALS,SET_INDEX,SET_STORIES,SHARED_STATE_CHANGED,SHARED_STATE_SET,STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL,STORY_ARGS_UPDATED,STORY_CHANGED,STORY_ERRORED,STORY_INDEX_INVALIDATED,STORY_MISSING,STORY_PREPARED,STORY_RENDER_PHASE_CHANGED,STORY_RENDERED,STORY_SPECIFIED,STORY_THREW_EXCEPTION,STORY_UNCHANGED,UPDATE_GLOBALS,UPDATE_QUERY_PARAMS,UPDATE_STORY_ARGS,REQUEST_WHATS_NEW_DATA,RESULT_WHATS_NEW_DATA,SET_WHATS_NEW_CACHE,TOGGLE_WHATS_NEW_NOTIFICATIONS,TELEMETRY_ERROR}=events;var dist_exports3={};__export(dist_exports3,{Channel:()=>Channel,PostMessageTransport:()=>PostMessageTransport,WebsocketTransport:()=>WebsocketTransport,createBrowserChannel:()=>createBrowserChannel,default:()=>src_default2});var __create2=Object.create,__defProp2=Object.defineProperty,__getOwnPropDesc2=Object.getOwnPropertyDescriptor,__getOwnPropNames2=Object.getOwnPropertyNames,__getProtoOf2=Object.getPrototypeOf,__hasOwnProp2=Object.prototype.hasOwnProperty,__commonJS3=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames2(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__copyProps2=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key2 of __getOwnPropNames2(from))!__hasOwnProp2.call(to,key2)&&key2!==except&&__defProp2(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc2(from,key2))||desc.enumerable});return to},__toESM3=(mod,isNodeMode,target)=>(target=mod!=null?__create2(__getProtoOf2(mod)):{},__copyProps2(isNodeMode||!mod||!mod.__esModule?__defProp2(target,"default",{value:mod,enumerable:!0}):target,mod)),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];function extractEventHiddenProperties(event){let rebuildEvent=eventProperties.filter(value2=>event[value2]!==void 0).reduce((acc,value2)=>({...acc,[value2]:event[value2]}),{});return event instanceof CustomEvent&&customEventSpecificProperties.filter(value2=>event[value2]!==void 0).forEach(value2=>{rebuildEvent[value2]=event[value2]}),rebuildEvent}var import_memoizerific2=__toESM(require_memoizerific(),1),require_shams2=__commonJS3({"node_modules/has-symbols/shams.js"(exports,module){"use strict";module.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var obj={},sym=Symbol("test"),symObj=Object(sym);if(typeof sym=="string"||Object.prototype.toString.call(sym)!=="[object Symbol]"||Object.prototype.toString.call(symObj)!=="[object Symbol]")return!1;var symVal=42;obj[sym]=symVal;for(sym in obj)return!1;if(typeof Object.keys=="function"&&Object.keys(obj).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(obj).length!==0)return!1;var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==!0)return!1}return!0}}}),require_has_symbols2=__commonJS3({"node_modules/has-symbols/index.js"(exports,module){"use strict";var origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=require_shams2();module.exports=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()}}}),require_implementation2=__commonJS3({"node_modules/function-bind/implementation.js"(exports,module){"use strict";var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice=Array.prototype.slice,toStr=Object.prototype.toString,funcType="[object Function]";module.exports=function(that){var target=this;if(typeof target!="function"||toStr.call(target)!==funcType)throw new TypeError(ERROR_MESSAGE+target);for(var args2=slice.call(arguments,1),bound,binder=function(){if(this instanceof bound){var result2=target.apply(this,args2.concat(slice.call(arguments)));return Object(result2)===result2?result2:this}else return target.apply(that,args2.concat(slice.call(arguments)))},boundLength=Math.max(0,target.length-args2.length),boundArgs=[],i=0;i"u"?undefined2:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined2:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined2:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined2,"%AsyncFromSyncIteratorPrototype%":undefined2,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined2:Atomics,"%BigInt%":typeof BigInt>"u"?undefined2:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined2:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined2:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined2:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined2:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined2:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined2:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined2:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined2,"%JSON%":typeof JSON=="object"?JSON:undefined2,"%Map%":typeof Map>"u"?undefined2:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined2:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined2:Promise,"%Proxy%":typeof Proxy>"u"?undefined2:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined2:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined2:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined2:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined2:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined2,"%Symbol%":hasSymbols?Symbol:undefined2,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":typeof Uint8Array>"u"?undefined2:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined2:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined2:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined2:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined2:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined2:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined2:WeakSet},doEval=function doEval2(name2){var value2;if(name2==="%AsyncFunction%")value2=getEvalledConstructor("async function () {}");else if(name2==="%GeneratorFunction%")value2=getEvalledConstructor("function* () {}");else if(name2==="%AsyncGeneratorFunction%")value2=getEvalledConstructor("async function* () {}");else if(name2==="%AsyncGenerator%"){var fn=doEval2("%AsyncGeneratorFunction%");fn&&(value2=fn.prototype)}else if(name2==="%AsyncIteratorPrototype%"){var gen=doEval2("%AsyncGenerator%");gen&&(value2=getProto(gen.prototype))}return INTRINSICS[name2]=value2,value2},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=require_function_bind2(),hasOwn=require_src(),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar2=/\\(\\)?/g,stringToPath2=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if(first==="%"&&last!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(last==="%"&&first!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result2=[];return $replace(string,rePropName2,function(match,number,quote,subString){result2[result2.length]=quote?$replace(subString,reEscapeChar2,"$1"):number||match}),result2},getBaseIntrinsic=function(name2,allowMissing){var intrinsicName=name2,alias;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(alias=LEGACY_ALIASES[intrinsicName],intrinsicName="%"+alias[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value2=INTRINSICS[intrinsicName];if(value2===needsEval&&(value2=doEval(intrinsicName)),typeof value2>"u"&&!allowMissing)throw new $TypeError("intrinsic "+name2+" exists, but is not available. Please file an issue!");return{alias,name:intrinsicName,value:value2}}throw new $SyntaxError("intrinsic "+name2+" does not exist!")};module.exports=function(name2,allowMissing){if(typeof name2!="string"||name2.length===0)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof allowMissing!="boolean")throw new $TypeError('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,name2)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=stringToPath2(name2),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value2=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i=1,isOwn=!0;i=parts.length){var desc=$gOPD(value2,part);isOwn=!!desc,isOwn&&"get"in desc&&!("originalValue"in desc.get)?value2=desc.get:value2=value2[part]}else isOwn=hasOwn(value2,part),value2=value2[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value2)}}return value2}}}),require_call_bind2=__commonJS3({"node_modules/call-bind/index.js"(exports,module){"use strict";var bind=require_function_bind2(),GetIntrinsic=require_get_intrinsic2(),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0),$max=GetIntrinsic("%Math.max%");if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=null}module.exports=function(originalFunction){var func=$reflectApply(bind,$call,arguments);if($gOPD&&$defineProperty){var desc=$gOPD(func,"length");desc.configurable&&$defineProperty(func,"length",{value:1+$max(0,originalFunction.length-(arguments.length-1))})}return func};var applyBind=function(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind}}),require_callBound2=__commonJS3({"node_modules/call-bind/callBound.js"(exports,module){"use strict";var GetIntrinsic=require_get_intrinsic2(),callBind=require_call_bind2(),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function(name2,allowMissing){var intrinsic=GetIntrinsic(name2,!!allowMissing);return typeof intrinsic=="function"&&$indexOf(name2,".prototype.")>-1?callBind(intrinsic):intrinsic}}}),require_shams22=__commonJS3({"node_modules/has-tostringtag/shams.js"(exports,module){"use strict";var hasSymbols=require_shams2();module.exports=function(){return hasSymbols()&&!!Symbol.toStringTag}}}),require_is_regex=__commonJS3({"node_modules/is-regex/index.js"(exports,module){"use strict";var callBound=require_callBound2(),hasToStringTag=require_shams22()(),has3,$exec,isRegexMarker,badStringifier;hasToStringTag&&(has3=callBound("Object.prototype.hasOwnProperty"),$exec=callBound("RegExp.prototype.exec"),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker},typeof Symbol.toPrimitive=="symbol"&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker));var throwRegexMarker,$toString=callBound("Object.prototype.toString"),gOPD=Object.getOwnPropertyDescriptor,regexClass="[object RegExp]";module.exports=hasToStringTag?function(value2){if(!value2||typeof value2!="object")return!1;var descriptor=gOPD(value2,"lastIndex"),hasLastIndexDataProperty=descriptor&&has3(descriptor,"value");if(!hasLastIndexDataProperty)return!1;try{$exec(value2,badStringifier)}catch(e){return e===isRegexMarker}}:function(value2){return!value2||typeof value2!="object"&&typeof value2!="function"?!1:$toString(value2)===regexClass}}}),require_is_function=__commonJS3({"node_modules/is-function/index.js"(exports,module){module.exports=isFunction3;var toString2=Object.prototype.toString;function isFunction3(fn){if(!fn)return!1;var string=toString2.call(fn);return string==="[object Function]"||typeof fn=="function"&&string!=="[object RegExp]"||typeof window<"u"&&(fn===window.setTimeout||fn===window.alert||fn===window.confirm||fn===window.prompt)}}}),require_is_symbol=__commonJS3({"node_modules/is-symbol/index.js"(exports,module){"use strict";var toStr=Object.prototype.toString,hasSymbols=require_has_symbols2()();hasSymbols?(symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function(value2){return typeof value2.valueOf()!="symbol"?!1:symStringRegex.test(symToStr.call(value2))},module.exports=function(value2){if(typeof value2=="symbol")return!0;if(toStr.call(value2)!=="[object Symbol]")return!1;try{return isSymbolObject(value2)}catch{return!1}}):module.exports=function(value2){return!1};var symToStr,symStringRegex,isSymbolObject}}),import_is_regex=__toESM3(require_is_regex()),import_is_function=__toESM3(require_is_function()),import_is_symbol=__toESM3(require_is_symbol());function isObject(val){return val!=null&&typeof val=="object"&&Array.isArray(val)===!1}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root2=freeGlobal_default||freeSelf||Function("return this")(),root_default=root2,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(value2){var isOwn=hasOwnProperty.call(value2,symToStringTag),tag=value2[symToStringTag];try{value2[symToStringTag]=void 0;var unmasked=!0}catch{}var result2=nativeObjectToString.call(value2);return unmasked&&(isOwn?value2[symToStringTag]=tag:delete value2[symToStringTag]),result2}var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(value2){return nativeObjectToString2.call(value2)}var objectToString_default=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(value2){return value2==null?value2===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(value2)?getRawTag_default(value2):objectToString_default(value2)}var baseGetTag_default=baseGetTag;function isObjectLike(value2){return value2!=null&&typeof value2=="object"}var isObjectLike_default=isObjectLike,symbolTag="[object Symbol]";function isSymbol(value2){return typeof value2=="symbol"||isObjectLike_default(value2)&&baseGetTag_default(value2)==symbolTag}var isSymbol_default=isSymbol;function arrayMap(array,iteratee){for(var index3=-1,length=array==null?0:array.length,result2=Array(length);++index3-1}var listCacheHas_default=listCacheHas;function listCacheSet(key2,value2){var data=this.__data__,index3=assocIndexOf_default(data,key2);return index3<0?(++this.size,data.push([key2,value2])):data[index3][1]=value2,this}var listCacheSet_default=listCacheSet;function ListCache(entries){var index3=-1,length=entries==null?0:entries.length;for(this.clear();++index3{let inQuoteChar=null,inBlockComment=!1,inLineComment=!1,inRegexLiteral=!1,newCode="";if(code.indexOf("//")>=0||code.indexOf("/*")>=0)for(let i=0;iremoveCodeComments(code).replace(/\n\s*/g,"").trim()),convertShorthandMethods=function(key2,stringified){let fnHead=stringified.slice(0,stringified.indexOf("{")),fnBody=stringified.slice(stringified.indexOf("{"));if(fnHead.includes("=>")||fnHead.includes("function"))return stringified;let modifiedHead=fnHead;return modifiedHead=modifiedHead.replace(key2,"function"),modifiedHead+fnBody},dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,isJSON=input=>input.match(/^[\[\{\"\}].*[\]\}\"]$/);function convertUnconventionalData(data){if(!isObject3(data))return data;let result2=data,wasMutated=!1;return typeof Event<"u"&&data instanceof Event&&(result2=extractEventHiddenProperties(result2),wasMutated=!0),result2=Object.keys(result2).reduce((acc,key2)=>{try{result2[key2]&&result2[key2].toJSON,acc[key2]=result2[key2]}catch{wasMutated=!0}return acc},{}),wasMutated?result2:data}var replacer=function(options2){let objects,map2,stack,keys2;return function(key2,value2){try{if(key2==="")return keys2=[],objects=new Map([[value2,"[]"]]),map2=new Map,stack=[],value2;let origin=map2.get(this)||this;for(;stack.length&&origin!==stack[0];)stack.shift(),keys2.pop();if(typeof value2=="boolean")return value2;if(value2===void 0)return options2.allowUndefined?"_undefined_":void 0;if(value2===null)return null;if(typeof value2=="number")return value2===-1/0?"_-Infinity_":value2===1/0?"_Infinity_":Number.isNaN(value2)?"_NaN_":value2;if(typeof value2=="bigint")return`_bigint_${value2.toString()}`;if(typeof value2=="string")return dateFormat.test(value2)?options2.allowDate?`_date_${value2}`:void 0:value2;if((0,import_is_regex.default)(value2))return options2.allowRegExp?`_regexp_${value2.flags}|${value2.source}`:void 0;if((0,import_is_function.default)(value2)){if(!options2.allowFunction)return;let{name:name2}=value2,stringified=value2.toString();return stringified.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${name2}|${(()=>{}).toString()}`:`_function_${name2}|${cleanCode(convertShorthandMethods(key2,stringified))}`}if((0,import_is_symbol.default)(value2)){if(!options2.allowSymbol)return;let globalRegistryKey=Symbol.keyFor(value2);return globalRegistryKey!==void 0?`_gsymbol_${globalRegistryKey}`:`_symbol_${value2.toString().slice(7,-1)}`}if(stack.length>=options2.maxDepth)return Array.isArray(value2)?`[Array(${value2.length})]`:"[Object]";if(value2===this)return`_duplicate_${JSON.stringify(keys2)}`;if(value2 instanceof Error&&options2.allowError)return{__isConvertedError__:!0,errorProperties:{...value2.cause?{cause:value2.cause}:{},...value2,name:value2.name,message:value2.message,stack:value2.stack,"_constructor-name_":value2.constructor.name}};if(value2.constructor&&value2.constructor.name&&value2.constructor.name!=="Object"&&!Array.isArray(value2)&&!options2.allowClass)return;let found=objects.get(value2);if(!found){let converted=Array.isArray(value2)?value2:convertUnconventionalData(value2);if(value2.constructor&&value2.constructor.name&&value2.constructor.name!=="Object"&&!Array.isArray(value2)&&options2.allowClass)try{Object.assign(converted,{"_constructor-name_":value2.constructor.name})}catch{}return keys2.push(key2),stack.unshift(converted),objects.set(value2,JSON.stringify(keys2)),value2!==converted&&map2.set(value2,converted),converted}return`_duplicate_${found}`}catch{return}}},reviver2=function reviver(options){let refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target,container,replacement})=>{let replacementArr=isJSON(replacement)?JSON.parse(replacement):replacement.split(".");replacementArr.length===0?container[target]=root:container[target]=get_default(root,replacementArr)})),key==="_constructor-name_")return value;if(isObject3(value)&&value.__isConvertedError__){let{message,...properties}=value.errorProperties,error=new Error(message);return Object.assign(error,properties),error}if(isObject3(value)&&value["_constructor-name_"]&&options.allowFunction){let name2=value["_constructor-name_"];if(name2!=="Object"){let Fn=new Function(`return function ${name2.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new Fn)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=(...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,flags,source2]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(source2,flags)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=(data,options2={})=>{let mergedOptions={...defaultOptions,...options2};return JSON.stringify(convertUnconventionalData(data),replacer(mergedOptions),options2.space)},mutator=()=>{let mutated=new Map;return function mutateUndefined(value2){isObject3(value2)&&Object.entries(value2).forEach(([k,v2])=>{v2==="_undefined_"?value2[k]=void 0:mutated.get(v2)||(mutated.set(v2,!0),mutateUndefined(v2))}),Array.isArray(value2)&&value2.forEach((v2,index3)=>{v2==="_undefined_"?(mutated.set(v2,!0),value2[index3]=void 0):mutated.get(v2)||(mutated.set(v2,!0),mutateUndefined(v2))})}},parse=(data,options2={})=>{let mergedOptions={...defaultOptions,...options2},result2=JSON.parse(data,reviver2(mergedOptions));return mutator()(result2),result2};var isProduction=!1,prefix="Invariant failed";function invariant2(condition,message){if(!condition){if(isProduction)throw new Error(prefix);var provided=typeof message=="function"?message():message,value2=provided?"".concat(prefix,": ").concat(provided):prefix;throw new Error(value2)}}var isMulti=args2=>args2.transports!==void 0,generateRandomId=()=>Math.random().toString(16).slice(2),Channel=class{constructor(input={}){this.sender=generateRandomId(),this.events={},this.data={},this.transports=[],this.isAsync=input.async||!1,isMulti(input)?(this.transports=input.transports||[],this.transports.forEach(t=>{t.setHandler(event=>this.handleEvent(event))})):this.transports=input.transport?[input.transport]:[],this.transports.forEach(t=>{t.setHandler(event=>this.handleEvent(event))})}get hasTransport(){return this.transports.length>0}addListener(eventName,listener){this.events[eventName]=this.events[eventName]||[],this.events[eventName].push(listener)}emit(eventName,...args2){let event={type:eventName,args:args2,from:this.sender},options2={};args2.length>=1&&args2[0]&&args2[0].options&&(options2=args2[0].options);let handler=()=>{this.transports.forEach(t=>{t.send(event,options2)}),this.handleEvent(event)};this.isAsync?setImmediate(handler):handler()}last(eventName){return this.data[eventName]}eventNames(){return Object.keys(this.events)}listenerCount(eventName){let listeners=this.listeners(eventName);return listeners?listeners.length:0}listeners(eventName){return this.events[eventName]||void 0}once(eventName,listener){let onceListener=this.onceListener(eventName,listener);this.addListener(eventName,onceListener)}removeAllListeners(eventName){eventName?this.events[eventName]&&delete this.events[eventName]:this.events={}}removeListener(eventName,listener){let listeners=this.listeners(eventName);listeners&&(this.events[eventName]=listeners.filter(l=>l!==listener))}on(eventName,listener){this.addListener(eventName,listener)}off(eventName,listener){this.removeListener(eventName,listener)}handleEvent(event){let listeners=this.listeners(event.type);listeners&&listeners.length&&listeners.forEach(fn=>{fn.apply(event,event.args)}),this.data[event.type]=event.args}onceListener(eventName,listener){let onceListener=(...args2)=>(this.removeListener(eventName,onceListener),listener(...args2));return onceListener}},getEventSourceUrl=event=>{let frames=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[frame,...remainder]=frames.filter(element=>{try{return element.contentWindow?.location.origin===event.source.location.origin&&element.contentWindow?.location.pathname===event.source.location.pathname}catch{}try{return element.contentWindow===event.source}catch{}let src2=element.getAttribute("src"),origin;try{if(!src2)return!1;({origin}=new URL(src2,document.location.toString()))}catch{return!1}return origin===event.origin}),src=frame?.getAttribute("src");if(src&&remainder.length===0){let{protocol,host,pathname}=new URL(src,document.location.toString());return`${protocol}//${host}${pathname}`}return remainder.length>0&&logger.error("found multiple candidates for event source"),null},{document:document22,location}=scope,KEY="storybook-channel",defaultEventOptions={allowFunction:!1,maxDepth:25},PostMessageTransport=class{constructor(config){if(this.config=config,this.connected=!1,this.buffer=[],typeof scope?.addEventListener=="function"&&scope.addEventListener("message",this.handleEvent.bind(this),!1),config.page!=="manager"&&config.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${config.page}"`)}setHandler(handler){this.handler=(...args2)=>{handler.apply(this,args2),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(event,options2){let{target,allowRegExp,allowFunction,allowSymbol,allowDate,allowError,allowUndefined,allowClass,maxDepth,space,lazyEval}=options2||{},eventOptions=Object.fromEntries(Object.entries({allowRegExp,allowFunction,allowSymbol,allowDate,allowError,allowUndefined,allowClass,maxDepth,space,lazyEval}).filter(([k,v2])=>typeof v2<"u")),stringifyOptions={...defaultEventOptions,...scope.CHANNEL_OPTIONS||{},...eventOptions},frames=this.getFrames(target),query=new URLSearchParams(location?.search||""),data=stringify({key:KEY,event,refId:query.get("refId")},stringifyOptions);return frames.length?(this.buffer.length&&this.flush(),frames.forEach(f3=>{try{f3.postMessage(data,"*")}catch{logger.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((resolve,reject)=>{this.buffer.push({event,resolve,reject})})}flush(){let{buffer}=this;this.buffer=[],buffer.forEach(item=>{this.send(item.event).then(item.resolve).catch(item.reject)})}getFrames(target){if(this.config.page==="manager"){let list=Array.from(document22.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(e=>{try{return e.contentWindow&&e.dataset.isStorybook!==void 0&&e.id===target?[e.contentWindow]:[]}catch{return[]}});return list?.length?list:this.getCurrentFrames()}return scope&&scope.parent&&scope.parent!==scope.self?[scope.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(document22.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):scope&&scope.parent?[scope.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(document22.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):scope&&scope.parent?[scope.parent]:[]}handleEvent(rawEvent){try{let{data}=rawEvent,{key:key2,event,refId}=typeof data=="string"&&isJSON(data)?parse(data,scope.CHANNEL_OPTIONS||{}):data;if(key2===KEY){let pageString=this.config.page==="manager"?' manager ':' preview ',eventString=Object.values(dist_exports2).includes(event.type)?`${event.type}`:`${event.type}`;if(refId&&(event.refId=refId),event.source=this.config.page==="preview"?rawEvent.origin:getEventSourceUrl(rawEvent),!event.source){pretty.error(`${pageString} received ${eventString} but was unable to determine the source of the event`);return}let message=`${pageString} received ${eventString} (${data.length})`;pretty.debug(location.origin!==event.source?message:`${message} (on ${location.origin} from ${event.source})`,...event.args),invariant2(this.handler,"ChannelHandler should be set"),this.handler(event)}}catch(error){logger.error(error)}}},{WebSocket}=scope,WebsocketTransport=class{constructor({url,onError,page}){this.buffer=[],this.isReady=!1,this.socket=new WebSocket(url),this.socket.onopen=()=>{this.isReady=!0,this.flush()},this.socket.onmessage=({data})=>{let event=typeof data=="string"&&isJSON(data)?parse(data):data;invariant2(this.handler,"WebsocketTransport handler should be set"),this.handler(event)},this.socket.onerror=e=>{onError&&onError(e)},this.socket.onclose=()=>{invariant2(this.handler,"WebsocketTransport handler should be set"),this.handler({type:CHANNEL_WS_DISCONNECT,args:[],from:page||"preview"})}}setHandler(handler){this.handler=handler}send(event){this.isReady?this.sendNow(event):this.sendLater(event)}sendLater(event){this.buffer.push(event)}sendNow(event){let data=stringify(event,{maxDepth:15,allowFunction:!1,...scope.CHANNEL_OPTIONS});this.socket.send(data)}flush(){let{buffer}=this;this.buffer=[],buffer.forEach(event=>this.send(event))}},{CONFIG_TYPE}=scope,src_default2=Channel;function createBrowserChannel({page,extraTransports=[]}){let transports=[new PostMessageTransport({page}),...extraTransports];if(CONFIG_TYPE==="DEVELOPMENT"){let protocol=window.location.protocol==="http:"?"ws":"wss",{hostname,port}=window.location,channelUrl=`${protocol}://${hostname}:${port}/storybook-server-channel`;transports.push(new WebsocketTransport({url:channelUrl,onError:()=>{},page}))}return new Channel({transports})}var dist_exports6={};__export(dist_exports6,{ActiveTabs:()=>ActiveTabs2,Consumer:()=>ManagerConsumer,ManagerContext:()=>ManagerContext,Provider:()=>ManagerProvider,addons:()=>addons,combineParameters:()=>combineParameters,controlOrMetaKey:()=>controlOrMetaKey,controlOrMetaSymbol:()=>controlOrMetaSymbol,eventMatchesShortcut:()=>eventMatchesShortcut,eventToShortcut:()=>eventToShortcut,isMacLike:()=>isMacLike,isShortcutTaken:()=>isShortcutTaken,keyToSymbol:()=>keyToSymbol,merge:()=>merge_default,mockChannel:()=>mockChannel,optionOrAltSymbol:()=>optionOrAltSymbol,shortcutMatchesShortcut:()=>shortcutMatchesShortcut,shortcutToHumanString:()=>shortcutToHumanString,types:()=>typesX,useAddonState:()=>useAddonState,useArgTypes:()=>useArgTypes,useArgs:()=>useArgs,useChannel:()=>useChannel,useGlobalTypes:()=>useGlobalTypes,useGlobals:()=>useGlobals,useParameter:()=>useParameter,useSharedState:()=>useSharedState,useStoryPrepared:()=>useStoryPrepared,useStorybookApi:()=>useStorybookApi,useStorybookState:()=>useStorybookState});var import_react2=__toESM(require_react(),1),import_mergeWith=__toESM(require_mergeWith(),1);var import_store2=__toESM(require_store2(),1);var import_isEqual=__toESM(require_isEqual(),1);var dist_exports4={};__export(dist_exports4,{Addon_TypesEnum:()=>Addon_TypesEnum});var Addon_TypesEnum=(Addon_TypesEnum2=>(Addon_TypesEnum2.TAB="tab",Addon_TypesEnum2.PANEL="panel",Addon_TypesEnum2.TOOL="tool",Addon_TypesEnum2.TOOLEXTRA="toolextra",Addon_TypesEnum2.PREVIEW="preview",Addon_TypesEnum2.experimental_PAGE="page",Addon_TypesEnum2.experimental_SIDEBAR_BOTTOM="sidebar-bottom",Addon_TypesEnum2.experimental_SIDEBAR_TOP="sidebar-top",Addon_TypesEnum2))(Addon_TypesEnum||{});var B=Object.create,R=Object.defineProperty,b=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,h=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,I=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),E=(r,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of C(e))!w.call(r,a)&&a!==n&&R(r,a,{get:()=>e[a],enumerable:!(t=b(e,a))||t.enumerable});return r},v=(r,e,n)=>(n=r!=null?B(h(r)):{},E(e||!r||!r.__esModule?R(n,"default",{value:r,enumerable:!0}):n,r)),x=I(T=>{Object.defineProperty(T,"__esModule",{value:!0}),T.isEqual=function(){var r=Object.prototype.toString,e=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:Object.keys;return function(t,a){return function i(o,s,p){var y,g,d,A3=r.call(o),F=r.call(s);if(o===s)return!0;if(o==null||s==null)return!1;if(p.indexOf(o)>-1&&p.indexOf(s)>-1)return!0;if(p.push(o,s),A3!=F||(y=n(o),g=n(s),y.length!=g.length||y.some(function(l){return!i(o[l],s[l],p)})))return!1;switch(A3.slice(8,-1)){case"Symbol":return o.valueOf()==s.valueOf();case"Date":case"Number":return+o==+s||+o!=+o&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+o==""+s;case"Set":case"Map":y=o.entries(),g=s.entries();do if(!i((d=y.next()).value,g.next().value,p))return!1;while(!d.done);return!0;case"ArrayBuffer":o=new Uint8Array(o),s=new Uint8Array(s);case"DataView":o=new Uint8Array(o.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(o.length!=s.length)return!1;for(d=0;dr.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),f2=(r,e)=>{let n=L(r);if(n==="")throw new Error(`Invalid ${e} '${r}', must include alphanumeric characters`);return n},N=(r,e)=>`${f2(r,"kind")}${e?`--${f2(e,"name")}`:""}`;function dedent2(templ){for(var values=[],_i=1;_iAccessibilityAltIcon,AccessibilityIcon:()=>AccessibilityIcon,AddIcon:()=>AddIcon,AdminIcon:()=>AdminIcon,AlertAltIcon:()=>AlertAltIcon,AlertIcon:()=>AlertIcon,AlignLeftIcon:()=>AlignLeftIcon,AlignRightIcon:()=>AlignRightIcon,AppleIcon:()=>AppleIcon,ArrowDownIcon:()=>ArrowDownIcon,ArrowLeftIcon:()=>ArrowLeftIcon,ArrowRightIcon:()=>ArrowRightIcon,ArrowSolidDownIcon:()=>ArrowSolidDownIcon,ArrowSolidLeftIcon:()=>ArrowSolidLeftIcon,ArrowSolidRightIcon:()=>ArrowSolidRightIcon,ArrowSolidUpIcon:()=>ArrowSolidUpIcon,ArrowUpIcon:()=>ArrowUpIcon,AzureDevOpsIcon:()=>AzureDevOpsIcon,BackIcon:()=>BackIcon,BasketIcon:()=>BasketIcon,BatchAcceptIcon:()=>BatchAcceptIcon,BatchDenyIcon:()=>BatchDenyIcon,BeakerIcon:()=>BeakerIcon,BellIcon:()=>BellIcon,BitbucketIcon:()=>BitbucketIcon,BoldIcon:()=>BoldIcon,BookIcon:()=>BookIcon,BookmarkHollowIcon:()=>BookmarkHollowIcon,BookmarkIcon:()=>BookmarkIcon,BottomBarIcon:()=>BottomBarIcon,BottomBarToggleIcon:()=>BottomBarToggleIcon,BoxIcon:()=>BoxIcon,BranchIcon:()=>BranchIcon,BrowserIcon:()=>BrowserIcon,ButtonIcon:()=>ButtonIcon,CPUIcon:()=>CPUIcon,CalendarIcon:()=>CalendarIcon,CameraIcon:()=>CameraIcon,CategoryIcon:()=>CategoryIcon,CertificateIcon:()=>CertificateIcon,ChangedIcon:()=>ChangedIcon,ChatIcon:()=>ChatIcon,CheckIcon:()=>CheckIcon,ChevronDownIcon:()=>ChevronDownIcon,ChevronLeftIcon:()=>ChevronLeftIcon,ChevronRightIcon:()=>ChevronRightIcon,ChevronSmallDownIcon:()=>ChevronSmallDownIcon,ChevronSmallLeftIcon:()=>ChevronSmallLeftIcon,ChevronSmallRightIcon:()=>ChevronSmallRightIcon,ChevronSmallUpIcon:()=>ChevronSmallUpIcon,ChevronUpIcon:()=>ChevronUpIcon,ChromaticIcon:()=>ChromaticIcon,ChromeIcon:()=>ChromeIcon,CircleHollowIcon:()=>CircleHollowIcon,CircleIcon:()=>CircleIcon,ClearIcon:()=>ClearIcon,CloseAltIcon:()=>CloseAltIcon,CloseIcon:()=>CloseIcon,CloudHollowIcon:()=>CloudHollowIcon,CloudIcon:()=>CloudIcon,CogIcon:()=>CogIcon,CollapseIcon:()=>CollapseIcon,CommandIcon:()=>CommandIcon,CommentAddIcon:()=>CommentAddIcon,CommentIcon:()=>CommentIcon,CommentsIcon:()=>CommentsIcon,CommitIcon:()=>CommitIcon,CompassIcon:()=>CompassIcon,ComponentDrivenIcon:()=>ComponentDrivenIcon,ComponentIcon:()=>ComponentIcon,ContrastIcon:()=>ContrastIcon,ControlsIcon:()=>ControlsIcon,CopyIcon:()=>CopyIcon,CreditIcon:()=>CreditIcon,CrossIcon:()=>CrossIcon,DashboardIcon:()=>DashboardIcon,DatabaseIcon:()=>DatabaseIcon,DeleteIcon:()=>DeleteIcon,DiamondIcon:()=>DiamondIcon,DirectionIcon:()=>DirectionIcon,DiscordIcon:()=>DiscordIcon,DocChartIcon:()=>DocChartIcon,DocListIcon:()=>DocListIcon,DocumentIcon:()=>DocumentIcon,DownloadIcon:()=>DownloadIcon,DragIcon:()=>DragIcon,EditIcon:()=>EditIcon,EllipsisIcon:()=>EllipsisIcon,EmailIcon:()=>EmailIcon,ExpandAltIcon:()=>ExpandAltIcon,ExpandIcon:()=>ExpandIcon,EyeCloseIcon:()=>EyeCloseIcon,EyeIcon:()=>EyeIcon,FaceHappyIcon:()=>FaceHappyIcon,FaceNeutralIcon:()=>FaceNeutralIcon,FaceSadIcon:()=>FaceSadIcon,FacebookIcon:()=>FacebookIcon,FailedIcon:()=>FailedIcon,FastForwardIcon:()=>FastForwardIcon,FigmaIcon:()=>FigmaIcon,FilterIcon:()=>FilterIcon,FlagIcon:()=>FlagIcon,FolderIcon:()=>FolderIcon,FormIcon:()=>FormIcon,GDriveIcon:()=>GDriveIcon,GithubIcon:()=>GithubIcon,GitlabIcon:()=>GitlabIcon,GlobeIcon:()=>GlobeIcon,GoogleIcon:()=>GoogleIcon,GraphBarIcon:()=>GraphBarIcon,GraphLineIcon:()=>GraphLineIcon,GraphqlIcon:()=>GraphqlIcon,GridAltIcon:()=>GridAltIcon,GridIcon:()=>GridIcon,GrowIcon:()=>GrowIcon,HeartHollowIcon:()=>HeartHollowIcon,HeartIcon:()=>HeartIcon,HomeIcon:()=>HomeIcon,HourglassIcon:()=>HourglassIcon,InfoIcon:()=>InfoIcon,ItalicIcon:()=>ItalicIcon,JumpToIcon:()=>JumpToIcon,KeyIcon:()=>KeyIcon,LightningIcon:()=>LightningIcon,LightningOffIcon:()=>LightningOffIcon,LinkBrokenIcon:()=>LinkBrokenIcon,LinkIcon:()=>LinkIcon,LinkedinIcon:()=>LinkedinIcon,LinuxIcon:()=>LinuxIcon,ListOrderedIcon:()=>ListOrderedIcon,ListUnorderedIcon:()=>ListUnorderedIcon,LocationIcon:()=>LocationIcon,LockIcon:()=>LockIcon,MarkdownIcon:()=>MarkdownIcon,MarkupIcon:()=>MarkupIcon,MediumIcon:()=>MediumIcon,MemoryIcon:()=>MemoryIcon,MenuIcon:()=>MenuIcon,MergeIcon:()=>MergeIcon,MirrorIcon:()=>MirrorIcon,MobileIcon:()=>MobileIcon,MoonIcon:()=>MoonIcon,NutIcon:()=>NutIcon,OutboxIcon:()=>OutboxIcon,OutlineIcon:()=>OutlineIcon,PaintBrushIcon:()=>PaintBrushIcon,PaperClipIcon:()=>PaperClipIcon,ParagraphIcon:()=>ParagraphIcon,PassedIcon:()=>PassedIcon,PhoneIcon:()=>PhoneIcon,PhotoDragIcon:()=>PhotoDragIcon,PhotoIcon:()=>PhotoIcon,PinAltIcon:()=>PinAltIcon,PinIcon:()=>PinIcon,PlayBackIcon:()=>PlayBackIcon,PlayIcon:()=>PlayIcon,PlayNextIcon:()=>PlayNextIcon,PlusIcon:()=>PlusIcon,PointerDefaultIcon:()=>PointerDefaultIcon,PointerHandIcon:()=>PointerHandIcon,PowerIcon:()=>PowerIcon,PrintIcon:()=>PrintIcon,ProceedIcon:()=>ProceedIcon,ProfileIcon:()=>ProfileIcon,PullRequestIcon:()=>PullRequestIcon,QuestionIcon:()=>QuestionIcon,RSSIcon:()=>RSSIcon,RedirectIcon:()=>RedirectIcon,ReduxIcon:()=>ReduxIcon,RefreshIcon:()=>RefreshIcon,ReplyIcon:()=>ReplyIcon,RepoIcon:()=>RepoIcon,RequestChangeIcon:()=>RequestChangeIcon,RewindIcon:()=>RewindIcon,RulerIcon:()=>RulerIcon,SearchIcon:()=>SearchIcon,ShareAltIcon:()=>ShareAltIcon,ShareIcon:()=>ShareIcon,ShieldIcon:()=>ShieldIcon,SideBySideIcon:()=>SideBySideIcon,SidebarAltIcon:()=>SidebarAltIcon,SidebarAltToggleIcon:()=>SidebarAltToggleIcon,SidebarIcon:()=>SidebarIcon,SidebarToggleIcon:()=>SidebarToggleIcon,SpeakerIcon:()=>SpeakerIcon,StackedIcon:()=>StackedIcon,StarHollowIcon:()=>StarHollowIcon,StarIcon:()=>StarIcon,StickerIcon:()=>StickerIcon,StopAltIcon:()=>StopAltIcon,StopIcon:()=>StopIcon,StorybookIcon:()=>StorybookIcon,StructureIcon:()=>StructureIcon,SubtractIcon:()=>SubtractIcon,SunIcon:()=>SunIcon,SupportIcon:()=>SupportIcon,SwitchAltIcon:()=>SwitchAltIcon,SyncIcon:()=>SyncIcon,TabletIcon:()=>TabletIcon,ThumbsUpIcon:()=>ThumbsUpIcon,TimeIcon:()=>TimeIcon,TimerIcon:()=>TimerIcon,TransferIcon:()=>TransferIcon,TrashIcon:()=>TrashIcon,TwitterIcon:()=>TwitterIcon,TypeIcon:()=>TypeIcon,UbuntuIcon:()=>UbuntuIcon,UndoIcon:()=>UndoIcon,UnfoldIcon:()=>UnfoldIcon,UnlockIcon:()=>UnlockIcon,UnpinIcon:()=>UnpinIcon,UploadIcon:()=>UploadIcon,UserAddIcon:()=>UserAddIcon,UserAltIcon:()=>UserAltIcon,UserIcon:()=>UserIcon,UsersIcon:()=>UsersIcon,VSCodeIcon:()=>VSCodeIcon,VerifiedIcon:()=>VerifiedIcon,VideoIcon:()=>VideoIcon,WandIcon:()=>WandIcon,WatchIcon:()=>WatchIcon,WindowsIcon:()=>WindowsIcon,WrenchIcon:()=>WrenchIcon,YoutubeIcon:()=>YoutubeIcon,ZoomIcon:()=>ZoomIcon,ZoomOutIcon:()=>ZoomOutIcon,ZoomResetIcon:()=>ZoomResetIcon,iconList:()=>iconList});var React33=__toESM(require_react(),1),iconList=[{name:"Images",icons:["PhotoIcon","ComponentIcon","GridIcon","OutlineIcon","PhotoDragIcon","GridAltIcon","SearchIcon","ZoomIcon","ZoomOutIcon","ZoomResetIcon","EyeIcon","EyeCloseIcon","LightningIcon","LightningOffIcon","ContrastIcon","SwitchAltIcon","MirrorIcon","GrowIcon","PaintBrushIcon","RulerIcon","StopIcon","CameraIcon","VideoIcon","SpeakerIcon","PlayIcon","PlayBackIcon","PlayNextIcon","RewindIcon","FastForwardIcon","StopAltIcon","SideBySideIcon","StackedIcon","SunIcon","MoonIcon"]},{name:"Documents",icons:["BookIcon","DocumentIcon","CopyIcon","CategoryIcon","FolderIcon","PrintIcon","GraphLineIcon","CalendarIcon","GraphBarIcon","AlignLeftIcon","AlignRightIcon","FilterIcon","DocChartIcon","DocListIcon","DragIcon","MenuIcon"]},{name:"Editing",icons:["MarkupIcon","BoldIcon","ItalicIcon","PaperClipIcon","ListOrderedIcon","ListUnorderedIcon","ParagraphIcon","MarkdownIcon"]},{name:"Git",icons:["RepoIcon","CommitIcon","BranchIcon","PullRequestIcon","MergeIcon"]},{name:"OS",icons:["AppleIcon","LinuxIcon","UbuntuIcon","WindowsIcon","ChromeIcon"]},{name:"Logos",icons:["StorybookIcon","AzureDevOpsIcon","BitbucketIcon","ChromaticIcon","ComponentDrivenIcon","DiscordIcon","FacebookIcon","FigmaIcon","GDriveIcon","GithubIcon","GitlabIcon","GoogleIcon","GraphqlIcon","MediumIcon","ReduxIcon","TwitterIcon","YoutubeIcon","VSCodeIcon","LinkedinIcon"]},{name:"Devices",icons:["BrowserIcon","TabletIcon","MobileIcon","WatchIcon","SidebarIcon","SidebarAltIcon","SidebarAltToggleIcon","SidebarToggleIcon","BottomBarIcon","BottomBarToggleIcon","CPUIcon","DatabaseIcon","MemoryIcon","StructureIcon","BoxIcon","PowerIcon"]},{name:"CRUD",icons:["EditIcon","CogIcon","NutIcon","WrenchIcon","EllipsisIcon","WandIcon","CheckIcon","FormIcon","BatchDenyIcon","BatchAcceptIcon","ControlsIcon","PlusIcon","CloseAltIcon","CrossIcon","TrashIcon","PinAltIcon","UnpinIcon","AddIcon","SubtractIcon","CloseIcon","DeleteIcon","PassedIcon","ChangedIcon","FailedIcon","ClearIcon","CommentIcon","CommentAddIcon","RequestChangeIcon","CommentsIcon","ChatIcon","LockIcon","UnlockIcon","KeyIcon","OutboxIcon","CreditIcon","ButtonIcon","TypeIcon","PointerDefaultIcon","PointerHandIcon","CommandIcon"]},{name:"Communicate",icons:["InfoIcon","QuestionIcon","SupportIcon","AlertIcon","AlertAltIcon","EmailIcon","PhoneIcon","LinkIcon","LinkBrokenIcon","BellIcon","RSSIcon","ShareAltIcon","ShareIcon","JumpToIcon","CircleHollowIcon","CircleIcon","BookmarkHollowIcon","BookmarkIcon","DiamondIcon","HeartHollowIcon","HeartIcon","StarHollowIcon","StarIcon","CertificateIcon","VerifiedIcon","ThumbsUpIcon","ShieldIcon","BasketIcon","BeakerIcon","HourglassIcon","FlagIcon","CloudHollowIcon","CloudIcon","StickerIcon"]},{name:"Wayfinding",icons:["ChevronUpIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronSmallUpIcon","ChevronSmallDownIcon","ChevronSmallLeftIcon","ChevronSmallRightIcon","ArrowUpIcon","ArrowDownIcon","ArrowLeftIcon","ArrowRightIcon","ArrowSolidUpIcon","ArrowSolidDownIcon","ArrowSolidLeftIcon","ArrowSolidRightIcon","ExpandAltIcon","CollapseIcon","ExpandIcon","UnfoldIcon","TransferIcon","RedirectIcon","UndoIcon","ReplyIcon","SyncIcon","UploadIcon","DownloadIcon","BackIcon","ProceedIcon","RefreshIcon","GlobeIcon","CompassIcon","LocationIcon","PinIcon","TimeIcon","DashboardIcon","TimerIcon","HomeIcon","AdminIcon","DirectionIcon"]},{name:"People",icons:["UserIcon","UserAltIcon","UserAddIcon","UsersIcon","ProfileIcon","FaceHappyIcon","FaceNeutralIcon","FaceSadIcon","AccessibilityIcon","AccessibilityAltIcon"]}],PhotoIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",fill:color2}))),ComponentIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1.004a2.5 2.5 0 00-2.5 2.5v7a2.5 2.5 0 002.5 2.5h7a2.5 2.5 0 002.5-2.5v-7a2.5 2.5 0 00-2.5-2.5h-7zm8.5 5.5H7.5v-4.5h3a1.5 1.5 0 011.5 1.5v3zm0 1v3a1.5 1.5 0 01-1.5 1.5h-3v-4.5H12zm-5.5 4.5v-4.5H2v3a1.5 1.5 0 001.5 1.5h3zM2 6.504h4.5v-4.5h-3a1.5 1.5 0 00-1.5 1.5v3z",fill:color2}))),GridIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5H6a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H1.5a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5h3.5v3.5H2zM7.5 1.504a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5zM1.5 7.504a.5.5 0 00-.5.5v4.5a.5.5 0 00.5.5H6a.5.5 0 00.5-.5v-4.5a.5.5 0 00-.5-.5H1.5zm.5 1v3.5h3.5v-3.5H2zM7.5 8.004a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5z",fill:color2}))),OutlineIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2 2.004v2H1v-2.5a.5.5 0 01.5-.5H4v1H2zM1 9.004v-4h1v4H1zM1 10.004v2.5a.5.5 0 00.5.5H4v-1H2v-2H1zM10 13.004h2.5a.5.5 0 00.5-.5v-2.5h-1v2h-2v1zM12 4.004h1v-2.5a.5.5 0 00-.5-.5H10v1h2v2zM9 12.004v1H5v-1h4zM9 1.004v1H5v-1h4zM13 9.004h-1v-4h1v4zM7 8.004a1 1 0 100-2 1 1 0 000 2z",fill:color2}))),PhotoDragIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 3.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7.003v-6.5a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v2.5h1v-2h2v6.5a.5.5 0 00.5.5H10v2H8v1h2.5a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-3.5zm-10-6v5.794L5.646 5.15a.5.5 0 01.708 0L7.5 6.297l2.646-2.647a.5.5 0 01.708 0L13 5.797V1.004H4zm9 6.208l-2.5-2.5-2.293 2.293L9.354 8.15a.5.5 0 11-.708.707L6 6.211l-2 2v1.793h9V7.21z",fill:color2}),React33.createElement("path",{d:"M0 10.004v-3h1v3H0zM0 13.504v-2.5h1v2h2v1H.5a.5.5 0 01-.5-.5zM7 14.004H4v-1h3v1z",fill:color2}))),GridAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4 3V1h1v2H4zM4 6v2h1V6H4zM4 11v2h1v-2H4zM9 11v2h1v-2H9zM9 8V6h1v2H9zM9 1v2h1V1H9zM13 5h-2V4h2v1zM11 10h2V9h-2v1zM3 10H1V9h2v1zM1 5h2V4H1v1zM8 5H6V4h2v1zM6 10h2V9H6v1zM4 4h1v1H4V4zM10 4H9v1h1V4zM9 9h1v1H9V9zM5 9H4v1h1V9z",fill:color2}))),SearchIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:color2}))),ZoomIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:color2}))),ZoomOutIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:color2}))),ZoomResetIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:color2}))),EyeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:color2}))),EyeCloseIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:color2}),React33.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:color2}))),LightningIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.522 6.6a.566.566 0 00-.176.544.534.534 0 00.382.41l2.781.721-1.493 5.013a.563.563 0 00.216.627.496.496 0 00.63-.06l6.637-6.453a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L2.522 6.6zm7.72.63l-3.067-.804L9.02 2.29 3.814 6.803l2.95.764-1.277 4.285 4.754-4.622zM4.51 13.435l.037.011-.037-.011z",fill:color2}))),LightningOffIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:color2}))),ContrastIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",fill:color2}))),SwitchAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004v-2.5a.5.5 0 01.5-.5h10a.5.5 0 01.5.5v10a.5.5 0 01-.5.5H11v2.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H3zm1 0v-2h9v9h-2v-6.5a.5.5 0 00-.5-.5H4zm6 8v2H1v-9h2v6.5a.5.5 0 00.5.5H10zm0-1H4v-6h6v6z",fill:color2}))),MirrorIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5h10v-10l-10 10z",fill:color2}))),GrowIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.5 1.004a.5.5 0 100 1H12v10.5a.5.5 0 001 0v-10.5a1 1 0 00-1-1H1.5z",fill:color2}),React33.createElement("path",{d:"M1 3.504a.5.5 0 01.5-.5H10a1 1 0 011 1v8.5a.5.5 0 01-1 0v-8.5H1.5a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 5.004a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h7a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5h-7zm.5 1v6h6v-6H2z",fill:color2}))),PaintBrushIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.854.146a.5.5 0 00-.708 0L2.983 8.31a2.24 2.24 0 00-1.074.6C.677 10.14.24 11.902.085 12.997 0 13.6 0 14 0 14s.4 0 1.002-.085c1.095-.155 2.857-.592 4.089-1.824a2.24 2.24 0 00.6-1.074l8.163-8.163a.5.5 0 000-.708l-2-2zM5.6 9.692l.942-.942L5.25 7.457l-.942.943A2.242 2.242 0 015.6 9.692zm1.649-1.65L12.793 2.5 11.5 1.207 5.957 6.75 7.25 8.043zM4.384 9.617a1.25 1.25 0 010 1.768c-.767.766-1.832 1.185-2.78 1.403-.17.04-.335.072-.49.098.027-.154.06-.318.099-.49.219-.947.637-2.012 1.403-2.779a1.25 1.25 0 011.768 0z",fill:color2}))),RulerIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.5 1.004a.5.5 0 01.5.5v.5h10v-.5a.5.5 0 011 0v2a.5.5 0 01-1 0v-.5H2v.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 6a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5h-11zM2 7v5h10V7h-1v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H7.5v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H4v2.5a.5.5 0 01-1 0V7H2z",fill:color2}))),StopIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),CameraIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7a3 3 0 11-6 0 3 3 0 016 0zM9 7a2 2 0 11-4 0 2 2 0 014 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 1a.5.5 0 00-.5.5v.504H.5a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H6V1.5a.5.5 0 00-.5-.5h-3zM1 3.004v8h12v-8H1z",fill:color2}))),VideoIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:color2}))),SpeakerIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4.5v5a.5.5 0 00.5.5H4l3.17 2.775a.5.5 0 00.83-.377V1.602a.5.5 0 00-.83-.376L4 4H1.5a.5.5 0 00-.5.5zM4 9V5H2v4h2zm.998.545A.504.504 0 005 9.5v-5c0-.015 0-.03-.002-.044L7 2.704v8.592L4.998 9.545z",fill:color2}),React33.createElement("path",{d:"M10.15 1.752a.5.5 0 00-.3.954 4.502 4.502 0 010 8.588.5.5 0 00.3.954 5.502 5.502 0 000-10.496z",fill:color2}),React33.createElement("path",{d:"M10.25 3.969a.5.5 0 00-.5.865 2.499 2.499 0 010 4.332.5.5 0 10.5.866 3.499 3.499 0 000-6.063z",fill:color2}))),PlayIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",fill:color2}))),PlayBackIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.24 12.035L3.697 7.427A.494.494 0 013.5 7.2v4.05a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0V6.8a.494.494 0 01.198-.227l7.541-4.608A.5.5 0 0112 2.39v9.217a.5.5 0 01-.76.427z",fill:color2}))),PlayNextIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2.76 12.035l7.542-4.608A.495.495 0 0010.5 7.2v4.05a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0V6.8a.495.495 0 00-.198-.227L2.76 1.965A.5.5 0 002 2.39v9.217a.5.5 0 00.76.427z",fill:color2}))),RewindIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M9 2.42v2.315l4.228-2.736a.5.5 0 01.772.42v9.162a.5.5 0 01-.772.42L9 9.263v2.317a.5.5 0 01-.772.42L1.5 7.647v3.603a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0v3.603L8.228 2A.5.5 0 019 2.42z",fill:color2}))),FastForwardIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5 2.42v2.315L.772 1.999a.5.5 0 00-.772.42v9.162a.5.5 0 00.772.42L5 9.263v2.317a.5.5 0 00.772.42L12.5 7.647v3.603a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0v3.603L5.772 2A.5.5 0 005 2.42z",fill:color2}))),StopAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:color2}))),SideBySideIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5v-10h5v10H2z",fill:color2}))),StackedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 1.004a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11zm-10.5 1h10v5H2v-5z",fill:color2}))),SunIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3492)",fill:color2},React33.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0V2a.5.5 0 001 0V.5z"}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10a3 3 0 100-6 3 3 0 000 6zm0-1a2 2 0 100-4 2 2 0 000 4z"}),React33.createElement("path",{d:"M7 11.5a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V12a.5.5 0 01.5-.5zM11.5 7a.5.5 0 01.5-.5h1.5a.5.5 0 010 1H12a.5.5 0 01-.5-.5zM.5 6.5a.5.5 0 000 1H2a.5.5 0 000-1H.5zM3.818 10.182a.5.5 0 010 .707l-1.06 1.06a.5.5 0 11-.708-.706l1.06-1.06a.5.5 0 01.708 0zM11.95 2.757a.5.5 0 10-.707-.707l-1.061 1.061a.5.5 0 10.707.707l1.06-1.06zM10.182 10.182a.5.5 0 01.707 0l1.06 1.06a.5.5 0 11-.706.708l-1.061-1.06a.5.5 0 010-.708zM2.757 2.05a.5.5 0 10-.707.707l1.06 1.061a.5.5 0 00.708-.707l-1.06-1.06z"})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3492"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),MoonIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3493)"},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.335.047l-.15-.015a7.499 7.499 0 106.14 10.577c.103-.229-.156-.447-.386-.346a5.393 5.393 0 01-.771.27A5.356 5.356 0 019.153.691C9.37.568 9.352.23 9.106.175a7.545 7.545 0 00-.77-.128zM6.977 1.092a6.427 6.427 0 005.336 10.671A6.427 6.427 0 116.977 1.092z",fill:color2})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3493"},React33.createElement("path",{fill:"#fff",transform:"scale(1.07124)",d:"M0 0h14.001v14.002H0z"}))))),BookIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 2a2 2 0 00-2-2H1.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5H11a2 2 0 002-2V2zM3 13h8a1 1 0 001-1V2a1 1 0 00-1-1H7v6.004a.5.5 0 01-.856.352l-.002-.002L5.5 6.71l-.645.647A.5.5 0 014 7.009V1H3v12zM5 1v4.793l.146-.146a.5.5 0 01.743.039l.111.11V1H5z",fill:color2}))),DocumentIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:color2}))),CopyIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:color2}))),CategoryIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3 1.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM2 3.504a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-7zM2 12V6h10v6H2z",fill:color2}))),FolderIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z",fill:color2}))),PrintIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4.5 8.004a.5.5 0 100 1h5a.5.5 0 000-1h-5zM4.5 10.004a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 1.504a.5.5 0 01.5-.5h8a.498.498 0 01.357.15l.993.993c.093.09.15.217.15.357v1.5h1.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5H12v2.5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5H2v-2.5zm11 7.5h-1v-2.5a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v2.5H1v-4h12v4zm-2-6v1H3v-2h7v.5a.5.5 0 00.5.5h.5zm-8 9h8v-5H3v5z",fill:color2}))),GraphLineIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.146 6.15a.5.5 0 01.708 0L7 7.297 9.146 5.15a.5.5 0 01.708 0l1 1a.5.5 0 01-.708.707L9.5 6.211 7.354 8.357a.5.5 0 01-.708 0L5.5 7.211 3.854 8.857a.5.5 0 11-.708-.707l2-2z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 1.004a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11zm.5 1v10h10v-10H2z",fill:color2}))),CalendarIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0a.5.5 0 01.5.5V1h6V.5a.5.5 0 011 0V1h1.5a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5H3V.5a.5.5 0 01.5-.5zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 4v2.3h3V4H9zM5.5 6.3h3V4h-3v2.3z",fill:color2}))),GraphBarIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M12 2.5a.5.5 0 00-1 0v10a.5.5 0 001 0v-10zM9 4.5a.5.5 0 00-1 0v8a.5.5 0 001 0v-8zM5.5 7a.5.5 0 01.5.5v5a.5.5 0 01-1 0v-5a.5.5 0 01.5-.5zM3 10.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2z",fill:color2}))),AlignLeftIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M13 2a.5.5 0 010 1H1a.5.5 0 010-1h12zM10 5a.5.5 0 010 1H1a.5.5 0 010-1h9zM11.5 8.5A.5.5 0 0011 8H1a.5.5 0 000 1h10a.5.5 0 00.5-.5zM7.5 11a.5.5 0 010 1H1a.5.5 0 010-1h6.5z",fill:color2}))),AlignRightIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM4 5a.5.5 0 000 1h9a.5.5 0 000-1H4zM2.5 8.5A.5.5 0 013 8h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1H13a.5.5 0 000-1H6.5z",fill:color2}))),FilterIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM3 5a.5.5 0 000 1h8a.5.5 0 000-1H3zM4.5 8.5A.5.5 0 015 8h4a.5.5 0 010 1H5a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:color2}))),DocChartIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 6.3h3V4H9v2.3zm-3.5 0h3V4h-3v2.3z",fill:color2}))),DocListIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.5 6.5A.5.5 0 014 6h6a.5.5 0 010 1H4a.5.5 0 01-.5-.5zM4 9a.5.5 0 000 1h6a.5.5 0 000-1H4z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v8h10V4H2z",fill:color2}))),DragIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M13 4a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 9.5A.5.5 0 0013 9H1a.5.5 0 000 1h12a.5.5 0 00.5-.5z",fill:color2}))),MenuIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M13 3.5a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 10a.5.5 0 00-.5-.5H1a.5.5 0 000 1h12a.5.5 0 00.5-.5zM13 6.5a.5.5 0 010 1H1a.5.5 0 010-1h12z",fill:color2}))),MarkupIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:color2}))),BoldIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2v1.5h1v7H3V12h5a3 3 0 001.791-5.407A2.75 2.75 0 008 2.011V2H3zm5 5.5H5.5v3H8a1.5 1.5 0 100-3zm-.25-4H5.5V6h2.25a1.25 1.25 0 100-2.5z",fill:color2}))),ItalicIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2z",fill:color2}))),PaperClipIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M10.553 2.268a1.5 1.5 0 00-2.12 0L2.774 7.925a2.5 2.5 0 003.536 3.535l3.535-3.535a.5.5 0 11.707.707l-3.535 3.536-.002.002a3.5 3.5 0 01-4.959-4.941l.011-.011L7.725 1.56l.007-.008a2.5 2.5 0 013.53 3.541l-.002.002-5.656 5.657-.003.003a1.5 1.5 0 01-2.119-2.124l3.536-3.536a.5.5 0 11.707.707L4.189 9.34a.5.5 0 00.707.707l5.657-5.657a1.5 1.5 0 000-2.121z",fill:color2}))),ListOrderedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5 2.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2.5 2H1v1h1v3h1V2.5a.5.5 0 00-.5-.5zM3 8.5v1a.5.5 0 01-1 0V9h-.5a.5.5 0 010-1h1a.5.5 0 01.5.5zM2 10.5a.5.5 0 00-1 0V12h2v-1H2v-.5z",fill:color2}))),ListUnorderedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2.75 2.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM5.5 2a.5.5 0 000 1h7a.5.5 0 000-1h-7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2 12.25a.75.75 0 100-1.5.75.75 0 000 1.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM2 7.75a.75.75 0 100-1.5.75.75 0 000 1.5z",fill:color2}))),ParagraphIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",fill:color2}))),MarkdownIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2 4.5h1.5L5 6.375 6.5 4.5H8v5H6.5V7L5 8.875 3.5 7v2.5H2v-5zM9.75 4.5h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 2a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5zM1 3v8h12V3H1z",fill:color2}))),RepoIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5 2.5a.5.5 0 11-1 0 .5.5 0 011 0zM4.5 5a.5.5 0 100-1 .5.5 0 000 1zM5 6.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0a2 2 0 012 2v10a2 2 0 01-2 2H1.5a.5.5 0 01-.5-.5V.5a.5.5 0 01.5-.5H11zm0 1H3v12h8a1 1 0 001-1V2a1 1 0 00-1-1z",fill:color2}))),CommitIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.031 7.5a4 4 0 007.938 0H13.5a.5.5 0 000-1h-2.53a4 4 0 00-7.94 0H.501a.5.5 0 000 1h2.531zM7 10a3 3 0 100-6 3 3 0 000 6z",fill:color2}))),BranchIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5a1.5 1.5 0 01-1 1.415v4.053C5.554 7.4 6.367 7 7.5 7c.89 0 1.453-.252 1.812-.557.218-.184.374-.4.482-.62a1.5 1.5 0 111.026.143c-.155.423-.425.87-.86 1.24C9.394 7.685 8.59 8 7.5 8c-1.037 0-1.637.42-1.994.917a2.81 2.81 0 00-.472 1.18A1.5 1.5 0 114 10.086v-6.17A1.5 1.5 0 116 2.5zm-2 9a.5.5 0 111 0 .5.5 0 01-1 0zm1-9a.5.5 0 11-1 0 .5.5 0 011 0zm6 2a.5.5 0 11-1 0 .5.5 0 011 0z",fill:color2}))),PullRequestIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.354 1.354L7.707 2H8.5A2.5 2.5 0 0111 4.5v5.585a1.5 1.5 0 11-1 0V4.5A1.5 1.5 0 008.5 3h-.793l.647.646a.5.5 0 11-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708zM11 11.5a.5.5 0 11-1 0 .5.5 0 011 0zM4 3.915a1.5 1.5 0 10-1 0v6.17a1.5 1.5 0 101 0v-6.17zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zm0-8a.5.5 0 100-1 .5.5 0 000 1z",fill:color2}))),MergeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.108 3.872A1.5 1.5 0 103 3.915v6.17a1.5 1.5 0 101 0V6.41c.263.41.573.77.926 1.083 1.108.98 2.579 1.433 4.156 1.5A1.5 1.5 0 109.09 7.99c-1.405-.065-2.62-.468-3.5-1.248-.723-.64-1.262-1.569-1.481-2.871zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zM4 2.5a.5.5 0 11-1 0 .5.5 0 011 0zm7 6a.5.5 0 11-1 0 .5.5 0 011 0z",fill:color2}))),AppleIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.03 8.103a3.044 3.044 0 01-.202-1.744 2.697 2.697 0 011.4-1.935c-.749-1.18-1.967-1.363-2.35-1.403-.835-.086-2.01.56-2.648.57h-.016c-.639-.01-1.814-.656-2.649-.57-.415.044-1.741.319-2.541 1.593-.281.447-.498 1.018-.586 1.744a6.361 6.361 0 00-.044.85c.005.305.028.604.07.895.09.62.259 1.207.477 1.744.242.595.543 1.13.865 1.585.712 1.008 1.517 1.59 1.971 1.6.934.021 1.746-.61 2.416-.594.006.002.014.003.02.002h.017c.007 0 .014 0 .021-.002.67-.017 1.481.615 2.416.595.453-.011 1.26-.593 1.971-1.6a7.95 7.95 0 00.97-1.856c-.697-.217-1.27-.762-1.578-1.474zm-2.168-5.97c.717-.848.69-2.07.624-2.125-.065-.055-1.25.163-1.985.984-.735.82-.69 2.071-.624 2.125.064.055 1.268-.135 1.985-.984z",fill:color2}))),LinuxIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a3 3 0 013 3v1.24c.129.132.25.27.362.415.113.111.283.247.515.433l.194.155c.325.261.711.582 1.095.966.765.765 1.545 1.806 1.823 3.186a.501.501 0 01-.338.581 3.395 3.395 0 01-1.338.134 2.886 2.886 0 01-1.049-.304 5.535 5.535 0 01-.17.519 2 2 0 11-2.892 2.55A5.507 5.507 0 017 13c-.439 0-.838-.044-1.201-.125a2 2 0 11-2.892-2.55 5.553 5.553 0 01-.171-.519c-.349.182-.714.27-1.05.304A3.395 3.395 0 01.35 9.977a.497.497 0 01-.338-.582c.278-1.38 1.058-2.42 1.823-3.186.384-.384.77-.705 1.095-.966l.194-.155c.232-.186.402-.322.515-.433.112-.145.233-.283.362-.414V3a3 3 0 013-3zm1.003 11.895a2 2 0 012.141-1.89c.246-.618.356-1.322.356-2.005 0-.514-.101-1.07-.301-1.599l-.027-.017a6.387 6.387 0 00-.857-.42 6.715 6.715 0 00-1.013-.315l-.852.638a.75.75 0 01-.9 0l-.852-.638a6.716 6.716 0 00-1.693.634 4.342 4.342 0 00-.177.101l-.027.017A4.6 4.6 0 003.501 8c0 .683.109 1.387.355 2.005a2 2 0 012.142 1.89c.295.067.627.105 1.002.105s.707-.038 1.003-.105zM5 12a1 1 0 11-2 0 1 1 0 012 0zm6 0a1 1 0 11-2 0 1 1 0 012 0zM6.1 4.3a1.5 1.5 0 011.8 0l.267.2L7 5.375 5.833 4.5l.267-.2zM8.5 2a.5.5 0 01.5.5V3a.5.5 0 01-1 0v-.5a.5.5 0 01.5-.5zM6 2.5a.5.5 0 00-1 0V3a.5.5 0 001 0v-.5z",fill:color2}))),UbuntuIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3497)",fill:color2},React33.createElement("path",{d:"M12.261 2.067c0 1.142-.89 2.068-1.988 2.068-1.099 0-1.99-.926-1.99-2.068C8.283.926 9.174 0 10.273 0c1.098 0 1.989.926 1.989 2.067zM3.978 6.6c0 1.142-.89 2.068-1.989 2.068C.891 8.668 0 7.742 0 6.601c0-1.142.89-2.068 1.989-2.068 1.099 0 1.989.926 1.989 2.068zM6.475 11.921A4.761 4.761 0 014.539 11a4.993 4.993 0 01-1.367-1.696 2.765 2.765 0 01-1.701.217 6.725 6.725 0 001.844 2.635 6.379 6.379 0 004.23 1.577 3.033 3.033 0 01-.582-1.728 4.767 4.767 0 01-.488-.083zM11.813 11.933c0 1.141-.89 2.067-1.989 2.067-1.098 0-1.989-.926-1.989-2.067 0-1.142.891-2.068 1.99-2.068 1.098 0 1.989.926 1.989 2.068zM12.592 11.173a6.926 6.926 0 001.402-3.913 6.964 6.964 0 00-1.076-4.023A2.952 2.952 0 0111.8 4.6c.398.78.592 1.656.564 2.539a5.213 5.213 0 01-.724 2.495c.466.396.8.935.952 1.54zM1.987 3.631c-.05 0-.101.002-.151.004C3.073 1.365 5.504.024 8.005.23a3.07 3.07 0 00-.603 1.676 4.707 4.707 0 00-2.206.596 4.919 4.919 0 00-1.7 1.576 2.79 2.79 0 00-1.509-.447z"})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3497"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),WindowsIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M6.5 1H1v5.5h5.5V1zM13 1H7.5v5.5H13V1zM7.5 7.5H13V13H7.5V7.5zM6.5 7.5H1V13h5.5V7.5z",fill:color2}))),ChromeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3496)"},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.023 3.431a.115.115 0 01-.099.174H7.296A3.408 3.408 0 003.7 6.148a.115.115 0 01-.21.028l-1.97-3.413a.115.115 0 01.01-.129A6.97 6.97 0 017 0a6.995 6.995 0 016.023 3.431zM7 9.615A2.619 2.619 0 014.384 7 2.62 2.62 0 017 4.383 2.619 2.619 0 019.616 7 2.619 2.619 0 017 9.615zm1.034.71a.115.115 0 00-.121-.041 3.4 3.4 0 01-.913.124 3.426 3.426 0 01-3.091-1.973L1.098 3.567a.115.115 0 00-.2.001 7.004 7.004 0 005.058 10.354l.017.001c.04 0 .078-.021.099-.057l1.971-3.414a.115.115 0 00-.009-.128zm1.43-5.954h3.947c.047 0 .09.028.107.072.32.815.481 1.675.481 2.557a6.957 6.957 0 01-2.024 4.923A6.957 6.957 0 017.08 14h-.001a.115.115 0 01-.1-.172L9.794 8.95A3.384 3.384 0 0010.408 7c0-.921-.364-1.785-1.024-2.433a.115.115 0 01.08-.196z",fill:color2})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3496"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),StorybookIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:color2}))),AzureDevOpsIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3503)"},React33.createElement("path",{d:"M0 5.176l1.31-1.73 4.902-1.994V.014l4.299 3.144-8.78 1.706v4.8L0 9.162V5.176zm14-2.595v8.548l-3.355 2.857-5.425-1.783v1.783L1.73 9.661l8.784 1.047v-7.55L14 2.581z",fill:color2})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3503"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),BitbucketIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.522a.411.411 0 00-.412.476l1.746 10.597a.56.56 0 00.547.466h8.373a.411.411 0 00.412-.345l1.017-6.248h-3.87L8.35 9.18H5.677l-.724-3.781h7.904L13.412 2A.411.411 0 0013 1.524L1 1.522z",fill:color2}))),ChromaticIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1014 0A7 7 0 000 7zm5.215-3.869a1.967 1.967 0 013.747.834v1.283l-3.346-1.93a2.486 2.486 0 00-.401-.187zm3.484 2.58l-3.346-1.93a1.968 1.968 0 00-2.685.72 1.954 1.954 0 00.09 2.106 2.45 2.45 0 01.362-.254l1.514-.873a.27.27 0 01.268 0l2.1 1.21 1.697-.978zm-.323 4.972L6.86 9.81a.268.268 0 01-.134-.231V7.155l-1.698-.98v3.86a1.968 1.968 0 003.747.835 2.488 2.488 0 01-.4-.187zm.268-.464a1.967 1.967 0 002.685-.719 1.952 1.952 0 00-.09-2.106c-.112.094-.233.18-.361.253L7.53 9.577l1.113.642zm-4.106.257a1.974 1.974 0 01-1.87-.975A1.95 1.95 0 012.47 8.01c.136-.507.461-.93.916-1.193L4.5 6.175v3.86c0 .148.013.295.039.44zM11.329 4.5a1.973 1.973 0 00-1.87-.976c.025.145.039.292.039.44v1.747a.268.268 0 01-.135.232l-2.1 1.211v1.96l3.346-1.931a1.966 1.966 0 00.72-2.683z",fill:color2}))),ComponentDrivenIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M10.847 2.181L8.867.201a.685.685 0 00-.97 0l-4.81 4.81a.685.685 0 000 .969l2.466 2.465-2.405 2.404a.685.685 0 000 .97l1.98 1.98a.685.685 0 00.97 0l4.81-4.81a.685.685 0 000-.969L8.441 5.555l2.405-2.404a.685.685 0 000-.97z",fill:color2}))),DiscordIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.852 2.885c-.893-.41-1.85-.712-2.85-.884a.043.043 0 00-.046.021c-.123.22-.26.505-.355.73a10.658 10.658 0 00-3.2 0 7.377 7.377 0 00-.36-.73.045.045 0 00-.046-.021c-1 .172-1.957.474-2.85.884a.04.04 0 00-.019.016C.311 5.612-.186 8.257.058 10.869a.048.048 0 00.018.033 11.608 11.608 0 003.496 1.767.045.045 0 00.049-.016c.27-.368.51-.755.715-1.163a.044.044 0 00-.024-.062 7.661 7.661 0 01-1.092-.52.045.045 0 01-.005-.075c.074-.055.147-.112.217-.17a.043.043 0 01.046-.006c2.29 1.046 4.771 1.046 7.035 0a.043.043 0 01.046.006c.07.057.144.115.218.17a.045.045 0 01-.004.075 7.186 7.186 0 01-1.093.52.045.045 0 00-.024.062c.21.407.45.795.715 1.162.011.016.03.023.05.017a11.57 11.57 0 003.5-1.767.045.045 0 00.019-.032c.292-3.02-.49-5.643-2.07-7.969a.036.036 0 00-.018-.016zM4.678 9.279c-.69 0-1.258-.634-1.258-1.411 0-.778.558-1.411 1.258-1.411.707 0 1.27.639 1.259 1.41 0 .778-.558 1.412-1.259 1.412zm4.652 0c-.69 0-1.258-.634-1.258-1.411 0-.778.557-1.411 1.258-1.411.707 0 1.27.639 1.258 1.41 0 .778-.551 1.412-1.258 1.412z",fill:color2}))),FacebookIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.399 14H5.06V7H3.5V4.588l1.56-.001-.002-1.421C5.058 1.197 5.533 0 7.6 0h1.721v2.413H8.246c-.805 0-.844.337-.844.966l-.003 1.208h1.934l-.228 2.412L7.401 7l-.002 7z",fill:color2}))),FigmaIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2 0H4.803A2.603 2.603 0 003.41 4.802a2.603 2.603 0 000 4.396 2.602 2.602 0 103.998 2.199v-2.51a2.603 2.603 0 103.187-4.085A2.604 2.604 0 009.2 0zM7.407 7a1.793 1.793 0 103.586 0 1.793 1.793 0 00-3.586 0zm-.81 2.603H4.803a1.793 1.793 0 101.794 1.794V9.603zM4.803 4.397h1.794V.81H4.803a1.793 1.793 0 000 3.587zm0 .81a1.793 1.793 0 000 3.586h1.794V5.207H4.803zm4.397-.81H7.407V.81H9.2a1.794 1.794 0 010 3.587z",fill:color2}))),GDriveIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M6.37 8.768l-2.042 3.537h6.755l2.042-3.537H6.37zm6.177-1.003l-3.505-6.07H4.96l3.504 6.07h4.084zM4.378 2.7L.875 8.77l2.042 3.536L6.42 6.236 4.378 2.7z",fill:color2}))),GithubIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0C3.132 0 0 3.132 0 7a6.996 6.996 0 004.786 6.641c.35.062.482-.149.482-.332 0-.166-.01-.718-.01-1.304-1.758.324-2.213-.429-2.353-.823-.079-.2-.42-.822-.717-.988-.246-.132-.596-.455-.01-.464.552-.009.946.508 1.077.717.63 1.06 1.636.762 2.039.578.061-.455.245-.761.446-.936-1.558-.175-3.185-.779-3.185-3.457 0-.76.271-1.39.717-1.88-.07-.176-.314-.893.07-1.856 0 0 .587-.183 1.925.718a6.495 6.495 0 011.75-.236c.595 0 1.19.078 1.75.236 1.34-.91 1.926-.718 1.926-.718.385.963.14 1.68.07 1.855.446.49.717 1.111.717 1.881 0 2.687-1.636 3.282-3.194 3.457.254.218.473.638.473 1.295 0 .936-.009 1.688-.009 1.925 0 .184.131.402.481.332A7.012 7.012 0 0014 7c0-3.868-3.133-7-7-7z",fill:color2}))),GitlabIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.068 5.583l1.487-4.557a.256.256 0 01.487 0L4.53 5.583H1.068L7 13.15 4.53 5.583h4.941l-2.47 7.565 5.931-7.565H9.471l1.488-4.557a.256.256 0 01.486 0l1.488 4.557.75 2.3a.508.508 0 01-.185.568L7 13.148v.001H7L.503 8.452a.508.508 0 01-.186-.57l.75-2.299z",fill:color2}))),GoogleIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M10.925 1.094H7.262c-1.643 0-3.189 1.244-3.189 2.685 0 1.473 1.12 2.661 2.791 2.661.116 0 .23-.002.34-.01a1.49 1.49 0 00-.186.684c0 .41.22.741.498 1.012-.21 0-.413.006-.635.006-2.034 0-3.6 1.296-3.6 2.64 0 1.323 1.717 2.15 3.75 2.15 2.32 0 3.6-1.315 3.6-2.639 0-1.06-.313-1.696-1.28-2.38-.331-.235-.965-.805-.965-1.14 0-.392.112-.586.703-1.047.606-.474 1.035-1.14 1.035-1.914 0-.92-.41-1.819-1.18-2.115h1.161l.82-.593zm-1.335 8.96c.03.124.045.25.045.378 0 1.07-.688 1.905-2.665 1.905-1.406 0-2.421-.89-2.421-1.96 0-1.047 1.259-1.92 2.665-1.904.328.004.634.057.911.146.764.531 1.311.832 1.465 1.436zM7.34 6.068c-.944-.028-1.841-1.055-2.005-2.295-.162-1.24.47-2.188 1.415-2.16.943.029 1.84 1.023 2.003 2.262.163 1.24-.47 2.222-1.414 2.193z",fill:color2}))),GraphqlIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.873 11.608a1.167 1.167 0 00-1.707-.027L3.46 10.018l.01-.04h7.072l.022.076-2.69 1.554zM6.166 2.42l.031.03-3.535 6.124a1.265 1.265 0 00-.043-.012V5.438a1.166 1.166 0 00.84-1.456L6.167 2.42zm4.387 1.562a1.165 1.165 0 00.84 1.456v3.124l-.043.012-3.536-6.123a1.2 1.2 0 00.033-.032l2.706 1.563zM3.473 9.42a1.168 1.168 0 00-.327-.568L6.68 2.73a1.17 1.17 0 00.652 0l3.536 6.123a1.169 1.169 0 00-.327.567H3.473zm8.79-.736a1.169 1.169 0 00-.311-.124V5.44a1.17 1.17 0 10-1.122-1.942L8.13 1.938a1.168 1.168 0 00-1.122-1.5 1.17 1.17 0 00-1.121 1.5l-2.702 1.56a1.168 1.168 0 00-1.86.22 1.17 1.17 0 00.739 1.722v3.12a1.168 1.168 0 00-.74 1.721 1.17 1.17 0 001.861.221l2.701 1.56a1.169 1.169 0 102.233-.035l2.687-1.552a1.168 1.168 0 101.457-1.791z",fill:color2}))),MediumIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M0 0v14h14V0H0zm11.63 3.317l-.75.72a.22.22 0 00-.083.212v-.001 5.289a.22.22 0 00.083.21l.733.72v.159H7.925v-.158l.76-.738c.074-.074.074-.096.074-.21V5.244l-2.112 5.364h-.285l-2.46-5.364V8.84a.494.494 0 00.136.413h.001l.988 1.198v.158H2.226v-.158l.988-1.198a.477.477 0 00.126-.416v.003-4.157a.363.363 0 00-.118-.307l-.878-1.058v-.158h2.727l2.107 4.622L9.031 3.16h2.6v.158z",fill:color2}))),ReduxIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.06 9.689c.016.49.423.88.912.88h.032a.911.911 0 00.88-.945.916.916 0 00-.912-.88h-.033c-.033 0-.08 0-.113.016-.669-1.108-.946-2.314-.848-3.618.065-.978.391-1.825.961-2.526.473-.603 1.386-.896 2.005-.913 1.728-.032 2.461 2.119 2.51 2.983.212.049.57.163.815.244C10.073 2.29 8.444.92 6.88.92c-1.467 0-2.82 1.06-3.357 2.625-.75 2.086-.261 4.09.651 5.671a.74.74 0 00-.114.473zm8.279-2.298c-1.239-1.45-3.064-2.249-5.15-2.249h-.261a.896.896 0 00-.798-.489h-.033A.912.912 0 006.13 6.48h.031a.919.919 0 00.8-.554h.293c1.239 0 2.412.358 3.472 1.059.814.538 1.401 1.238 1.727 2.086.277.684.261 1.353-.033 1.923-.456.864-1.222 1.337-2.232 1.337a4.16 4.16 0 01-1.597-.343 9.58 9.58 0 01-.734.587c.7.326 1.418.505 2.102.505 1.565 0 2.722-.863 3.162-1.727.473-.946.44-2.575-.782-3.961zm-7.433 5.51a4.005 4.005 0 01-.977.113c-1.206 0-2.298-.505-2.836-1.32C.376 10.603.13 8.289 2.494 6.577c.05.261.147.62.212.832-.31.228-.798.685-1.108 1.303-.44.864-.391 1.729.13 2.527.359.537.93.864 1.663.962.896.114 1.793-.05 2.657-.505 1.271-.669 2.119-1.467 2.672-2.56a.944.944 0 01-.26-.603.913.913 0 01.88-.945h.033a.915.915 0 01.098 1.825c-.897 1.842-2.478 3.08-4.565 3.488z",fill:color2}))),TwitterIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2.547a5.632 5.632 0 01-1.65.464 2.946 2.946 0 001.263-1.63 5.67 5.67 0 01-1.823.715 2.837 2.837 0 00-2.097-.93c-1.586 0-2.872 1.319-2.872 2.946 0 .23.025.456.074.67C4.508 4.66 2.392 3.488.975 1.706c-.247.435-.389.941-.389 1.481 0 1.022.507 1.923 1.278 2.452a2.806 2.806 0 01-1.3-.368l-.001.037c0 1.427.99 2.617 2.303 2.888a2.82 2.82 0 01-1.297.05c.366 1.17 1.427 2.022 2.683 2.045A5.671 5.671 0 010 11.51a7.985 7.985 0 004.403 1.323c5.283 0 8.172-4.488 8.172-8.38 0-.128-.003-.255-.009-.38A5.926 5.926 0 0014 2.546z",fill:color2}))),YoutubeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.99 8.172c.005-.281.007-.672.007-1.172 0-.5-.002-.89-.007-1.172a14.952 14.952 0 00-.066-1.066 9.638 9.638 0 00-.169-1.153c-.083-.38-.264-.7-.542-.96a1.667 1.667 0 00-.972-.454C11.084 2.065 9.337 2 6.999 2s-4.085.065-5.241.195a1.65 1.65 0 00-.969.453c-.276.26-.455.58-.539.961a8.648 8.648 0 00-.176 1.153c-.039.43-.061.785-.066 1.066C.002 6.11 0 6.5 0 7c0 .5.002.89.008 1.172.005.281.027.637.066 1.067.04.43.095.813.168 1.152.084.38.265.7.543.96.279.261.603.412.973.453 1.156.13 2.902.196 5.24.196 2.34 0 4.087-.065 5.243-.196a1.65 1.65 0 00.967-.453c.276-.26.456-.58.54-.96.077-.339.136-.722.175-1.152.04-.43.062-.786.067-1.067zM9.762 6.578A.45.45 0 019.997 7a.45.45 0 01-.235.422l-3.998 2.5a.442.442 0 01-.266.078.538.538 0 01-.242-.063.465.465 0 01-.258-.437v-5c0-.197.086-.343.258-.437a.471.471 0 01.508.016l3.998 2.5z",fill:color2}))),VSCodeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.243.04a.87.87 0 01.38.087l2.881 1.386a.874.874 0 01.496.79V11.713a.875.875 0 01-.496.775l-2.882 1.386a.872.872 0 01-.994-.17L4.11 8.674l-2.404 1.823a.583.583 0 01-.744-.034l-.771-.7a.583.583 0 010-.862L2.274 7 .19 5.1a.583.583 0 010-.862l.772-.701a.583.583 0 01.744-.033L4.11 5.327 9.628.296a.871.871 0 01.615-.255zm.259 3.784L6.315 7l4.187 3.176V3.824z",fill:color2}))),LinkedinIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.667 13H2.333A1.333 1.333 0 011 11.667V2.333C1 1.597 1.597 1 2.333 1h9.334C12.403 1 13 1.597 13 2.333v9.334c0 .736-.597 1.333-1.333 1.333zm-2.114-1.667h1.78V7.675c0-1.548-.877-2.296-2.102-2.296-1.226 0-1.742.955-1.742.955v-.778H5.773v5.777h1.716V8.3c0-.812.374-1.296 1.09-1.296.658 0 .974.465.974 1.296v3.033zm-6.886-7.6c0 .589.474 1.066 1.058 1.066.585 0 1.058-.477 1.058-1.066 0-.589-.473-1.066-1.058-1.066-.584 0-1.058.477-1.058 1.066zm1.962 7.6h-1.79V5.556h1.79v5.777z",fill:color2}))),BrowserIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-8h12v8H1zm1-9.5a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0z",fill:color2}))),TabletIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5.004a1.5 1.5 0 00-1.5 1.5v11a1.5 1.5 0 001.5 1.5h7a1.5 1.5 0 001.5-1.5v-11a1.5 1.5 0 00-1.5-1.5h-7zm0 1h7a.5.5 0 01.5.5v9.5H3v-9.5a.5.5 0 01.5-.5zm2.5 11a.5.5 0 000 1h2a.5.5 0 000-1H6z",fill:color2}))),MobileIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1.504a1.5 1.5 0 011.5-1.5h5a1.5 1.5 0 011.5 1.5v11a1.5 1.5 0 01-1.5 1.5h-5a1.5 1.5 0 01-1.5-1.5v-11zm1 10.5v-10h6v10H4z",fill:color2}))),WatchIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 .504a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zm5.5 2.5h-5a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm-5-1a1.5 1.5 0 00-1.5 1.5v7a1.5 1.5 0 001.5 1.5h5a1.5 1.5 0 001.5-1.5v-7a1.5 1.5 0 00-1.5-1.5h-5zm2.5 2a.5.5 0 01.5.5v2h1a.5.5 0 110 1H7a.5.5 0 01-.5-.5v-2.5a.5.5 0 01.5-.5zm-2.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:color2}))),SidebarIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5zM3 6.004a.5.5 0 100 1h1a.5.5 0 000-1H3zM2.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h3v10H2zm4-10h6v10H6v-10z",fill:color2}))),SidebarAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M9.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM10 6.004a.5.5 0 100 1h1a.5.5 0 000-1h-1zM9.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h6v10H2zm7-10h3v10H9v-10z",fill:color2}))),SidebarAltToggleIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.5 4.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5zM11 6.004a.5.5 0 010 1h-1a.5.5 0 010-1h1zM11.5 8.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm7.5-1h3v-10H9v10zm-1 0H2v-10h6v4.5H5.207l.65-.65a.5.5 0 10-.707-.708L3.646 6.65a.5.5 0 000 .707l1.497 1.497a.5.5 0 10.707-.708l-.643-.642H8v4.5z",fill:color2}))),SidebarToggleIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5zM2 6.004a.5.5 0 100 1h1a.5.5 0 000-1H2zM1.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-10h3v10H1zm4 0v-4.5h2.793l-.643.642a.5.5 0 10.707.708l1.497-1.497a.5.5 0 000-.707L7.85 5.146a.5.5 0 10-.707.708l.65.65H5v-4.5h6v10H5z",fill:color2}))),BottomBarIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM6.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM9 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 6.5v-6h10v6H2zm10 1v3H2v-3h10z",fill:color2}))),BottomBarToggleIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM6 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM9.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12.504v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5zm1-.5v-3h10v3H2zm4.5-4H2v-6h10v6H7.5V5.21l.646.646a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0l-1.5 1.5a.5.5 0 10.708.707l.646-.646v2.793z",fill:color2}))),CPUIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5.504a.5.5 0 01.5-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5v-3zm1 2.5v-2h2v2H6z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.004a.5.5 0 01.5.5v1.5h2v-1.5a.5.5 0 011 0v1.5h2.5a.5.5 0 01.5.5v2.5h1.5a.5.5 0 010 1H12v2h1.5a.5.5 0 010 1H12v2.5a.5.5 0 01-.5.5H9v1.5a.5.5 0 01-1 0v-1.5H6v1.5a.5.5 0 01-1 0v-1.5H2.5a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 010-1H2v-2H.5a.5.5 0 010-1H2v-2.5a.5.5 0 01.5-.5H5v-1.5a.5.5 0 01.5-.5zm5.5 3H3v8h8v-8z",fill:color2}))),DatabaseIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3c0-1.105-2.239-2-5-2s-5 .895-5 2v8c0 .426.26.752.544.977.29.228.68.413 1.116.558.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.436-.145.825-.33 1.116-.558.285-.225.544-.551.544-.977V3zm-1.03 0a.787.787 0 00-.05-.052c-.13-.123-.373-.28-.756-.434C9.404 2.21 8.286 2 7 2c-1.286 0-2.404.21-3.164.514-.383.153-.625.31-.756.434A.756.756 0 003.03 3a.756.756 0 00.05.052c.13.123.373.28.756.434C4.596 3.79 5.714 4 7 4c1.286 0 2.404-.21 3.164-.514.383-.153.625-.31.756-.434A.787.787 0 0010.97 3zM11 5.75V4.2c-.912.486-2.364.8-4 .8-1.636 0-3.088-.314-4-.8v1.55l.002.008a.147.147 0 00.016.033.618.618 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.62.62 0 00.146-.15.149.149 0 00.015-.033A.03.03 0 0011 5.75zM3 7.013c.2.103.423.193.66.272.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.237-.079.46-.17.66-.272V8.5l-.002.008a.149.149 0 01-.015.033.62.62 0 01-.146.15c-.165.13-.435.27-.813.395-.751.25-1.82.414-3.024.414s-2.273-.163-3.024-.414c-.378-.126-.648-.265-.813-.395a.618.618 0 01-.145-.15.147.147 0 01-.016-.033A.027.027 0 013 8.5V7.013zm0 2.75V11l.002.008a.147.147 0 00.016.033.617.617 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.619.619 0 00.146-.15.148.148 0 00.015-.033L11 11V9.763c-.2.103-.423.193-.66.272-.878.293-2.059.465-3.34.465-1.281 0-2.462-.172-3.34-.465A4.767 4.767 0 013 9.763z",fill:color2}))),MemoryIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5 3a.5.5 0 00-1 0v3a.5.5 0 001 0V3zM7 2.5a.5.5 0 01.5.5v3a.5.5 0 01-1 0V3a.5.5 0 01.5-.5zM10 4.504a.5.5 0 10-1 0V6a.5.5 0 001 0V4.504z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.54l-.001-.002a.499.499 0 00-.145-.388l-3-3a.499.499 0 00-.388-.145L8.464.004H2.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h9a.5.5 0 00.5-.5V3.54zM3 1.004h5.293L11 3.71v5.293H3v-8zm0 9v3h8v-3H3z",fill:color2}))),StructureIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.164 3.446a1.5 1.5 0 10-2.328 0L1.81 10.032A1.503 1.503 0 000 11.5a1.5 1.5 0 002.915.5h8.17a1.5 1.5 0 101.104-1.968L8.164 3.446zm-1.475.522a1.506 1.506 0 00.622 0l4.025 6.586a1.495 1.495 0 00-.25.446H2.914a1.497 1.497 0 00-.25-.446l4.024-6.586z",fill:color2}))),BoxIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.21.046l6.485 2.994A.5.5 0 0114 3.51v6.977a.495.495 0 01-.23.432.481.481 0 01-.071.038L7.23 13.944a.499.499 0 01-.46 0L.3 10.958a.498.498 0 01-.3-.47V3.511a.497.497 0 01.308-.473L6.78.051a.499.499 0 01.43-.005zM1 4.282v5.898l5.5 2.538V6.82L1 4.282zm6.5 8.436L13 10.18V4.282L7.5 6.82v5.898zM12.307 3.5L7 5.95 1.693 3.5 7 1.05l5.307 2.45z",fill:color2}))),PowerIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6a.5.5 0 001 0v-6z",fill:color2}),React33.createElement("path",{d:"M4.273 2.808a.5.5 0 00-.546-.837 6 6 0 106.546 0 .5.5 0 00-.546.837 5 5 0 11-5.454 0z",fill:color2}))),EditIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:color2}))),CogIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",fill:color2}))),NutIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.585 8.414a2 2 0 113.277-.683.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 00-.365-.93 2 2 0 01-2.146-.449z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5.289a1 1 0 011 0l5.062 2.922a1 1 0 01.5.866v5.846a1 1 0 01-.5.866L7.5 13.71a1 1 0 01-1 0L1.437 10.79a1 1 0 01-.5-.866V4.077a1 1 0 01.5-.866L6.5.29zm.5.866l5.062 2.922v5.846L7 12.845 1.937 9.923V4.077L7 1.155z",fill:color2}))),WrenchIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 1c.441 0 .564.521.252.833l-.806.807a.51.51 0 000 .72l.694.694a.51.51 0 00.72 0l.807-.806c.312-.312.833-.19.833.252a2.5 2.5 0 01-3.414 2.328l-6.879 6.88a1 1 0 01-1.414-1.415l6.88-6.88A2.5 2.5 0 0110.5 1zM2 12.5a.5.5 0 100-1 .5.5 0 000 1z",fill:color2}))),EllipsisIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fill:color2}))),WandIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.634l-.485.271a.107.107 0 01-.158-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.131a.214.214 0 00-.12.37l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12.797l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.04l1.293 1.293zM.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2z",fill:color2}))),CheckIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",fill:color2}))),FormIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1V6.393a.5.5 0 00-1 0v5.61H2v-10h7.5a.5.5 0 000-1H2z",fill:color2}),React33.createElement("path",{d:"M6.354 9.857l7.5-7.5a.5.5 0 00-.708-.707L6 8.797 3.854 6.65a.5.5 0 10-.708.707l2.5 2.5a.5.5 0 00.708 0z",fill:color2}))),BatchDenyIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8.854 2.646a.5.5 0 010 .708L5.207 7l3.647 3.646a.5.5 0 01-.708.708L4.5 7.707.854 11.354a.5.5 0 01-.708-.708L3.793 7 .146 3.354a.5.5 0 11.708-.708L4.5 6.293l3.646-3.647a.5.5 0 01.708 0zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:color2}))),BatchAcceptIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:color2}))),ControlsIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M10.5 1a.5.5 0 01.5.5V2h1.5a.5.5 0 010 1H11v.5a.5.5 0 01-1 0V3H1.5a.5.5 0 010-1H10v-.5a.5.5 0 01.5-.5zM1.5 11a.5.5 0 000 1H10v.5a.5.5 0 001 0V12h1.5a.5.5 0 000-1H11v-.5a.5.5 0 00-1 0v.5H1.5zM1 7a.5.5 0 01.5-.5H3V6a.5.5 0 011 0v.5h8.5a.5.5 0 010 1H4V8a.5.5 0 01-1 0v-.5H1.5A.5.5 0 011 7z",fill:color2}))),PlusIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6h-6a.5.5 0 000 1h6v6a.5.5 0 001 0v-6h6a.5.5 0 000-1h-6v-6z",fill:color2}))),CloseAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2.03.97A.75.75 0 00.97 2.03L5.94 7 .97 11.97a.75.75 0 101.06 1.06L7 8.06l4.97 4.97a.75.75 0 101.06-1.06L8.06 7l4.97-4.97A.75.75 0 0011.97.97L7 5.94 2.03.97z",fill:color2}))),CrossIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:color2}))),TrashIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.5 4.5A.5.5 0 016 5v5a.5.5 0 01-1 0V5a.5.5 0 01.5-.5zM9 5a.5.5 0 00-1 0v5a.5.5 0 001 0V5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5.5A.5.5 0 015 0h4a.5.5 0 01.5.5V2h3a.5.5 0 010 1H12v8a2 2 0 01-2 2H4a2 2 0 01-2-2V3h-.5a.5.5 0 010-1h3V.5zM3 3v8a1 1 0 001 1h6a1 1 0 001-1V3H3zm2.5-2h3v1h-3V1z",fill:color2}))),PinAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3502)"},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5 5H3.657A4 4 0 00.828 6.17l-.474.475a.5.5 0 000 .707l2.793 2.793-3 3a.5.5 0 00.707.708l3-3 2.792 2.792a.5.5 0 00.708 0l.474-.475A4 4 0 009 10.343V9l2-2a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM11 5.585l-3 3v1.757a3 3 0 01-.879 2.121L7 12.586 1.414 7l.122-.122A3 3 0 013.656 6h1.758l3-3-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586z",fill:color2})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3502"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),UnpinIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3501)",fill:color2},React33.createElement("path",{d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5.707 4.293 6.414 5l2-2-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586l-2 2 .707.707L11 7a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM.828 6.171a4 4 0 012.758-1.17l1 .999h-.93a3 3 0 00-2.12.878L1.414 7 7 12.586l.121-.122A3 3 0 008 10.343v-.929l1 1a4 4 0 01-1.172 2.757l-.474.475a.5.5 0 01-.708 0l-2.792-2.792-3 3a.5.5 0 01-.708-.708l3-3L.355 7.353a.5.5 0 010-.707l.474-.475zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z"})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3501"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),AddIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color2}))),SubtractIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),CloseIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color2}))),DeleteIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0a6 6 0 01-9.874 4.582l8.456-8.456A5.976 5.976 0 0113 7zM2.418 10.874l8.456-8.456a6 6 0 00-8.456 8.456z",fill:color2}))),PassedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:color2}))),ChangedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:color2}))),FailedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:color2}))),ClearIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h7a2 2 0 012 2v6a2 2 0 01-2 2H5a1.994 1.994 0 01-1.414-.586l-3-3a2 2 0 010-2.828l3-3A1.994 1.994 0 015 2zm1.146 3.146a.5.5 0 01.708 0L8 6.293l1.146-1.147a.5.5 0 11.708.708L8.707 7l1.147 1.146a.5.5 0 01-.708.708L8 7.707 6.854 8.854a.5.5 0 11-.708-.708L7.293 7 6.146 5.854a.5.5 0 010-.708z",fill:color2}))),CommentIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.5 5.004a.5.5 0 100 1h7a.5.5 0 000-1h-7zM3 8.504a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 12.004H5.707l-1.853 1.854a.5.5 0 01-.351.146h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5zm-10.5-1v-8h10v8H2z",fill:color2}))),CommentAddIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.5 5.004a.5.5 0 10-1 0v1.5H5a.5.5 0 100 1h1.5v1.5a.5.5 0 001 0v-1.5H9a.5.5 0 000-1H7.5v-1.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:color2}))),RequestChangeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M9.854 6.65a.5.5 0 010 .707l-2 2a.5.5 0 11-.708-.707l1.15-1.15-3.796.004a.5.5 0 010-1L8.29 6.5 7.145 5.357a.5.5 0 11.708-.707l2 2z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:color2}))),CommentsIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M8.5 7.004a.5.5 0 000-1h-5a.5.5 0 100 1h5zM9 8.504a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 11.504v-1.5h1.5a.5.5 0 00.5-.5v-8a.5.5 0 00-.5-.5h-11a.5.5 0 00-.5.5v1.5H.5a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H2v1.5a.499.499 0 00.497.5h.006a.498.498 0 00.35-.146l1.854-1.854H11.5a.5.5 0 00.5-.5zm-9-8.5v-1h10v7h-1v-5.5a.5.5 0 00-.5-.5H3zm-2 8v-7h10v7H1z",fill:color2}))),ChatIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 2a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H6.986a.444.444 0 01-.124.103l-3.219 1.84A.43.43 0 013 13.569V12a2 2 0 01-2-2V2zm3.42 4.78a.921.921 0 110-1.843.921.921 0 010 1.842zm1.658-.922a.921.921 0 101.843 0 .921.921 0 00-1.843 0zm2.58 0a.921.921 0 101.842 0 .921.921 0 00-1.843 0z",fill:color2}))),LockIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",fill:color2}))),UnlockIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3614)",fill:color2},React33.createElement("path",{d:"M6.5 8.87a1 1 0 111 0v1.634a.5.5 0 01-1 0V8.87z"}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1a3 3 0 00-3 3v1.004h8.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3V4a4 4 0 017.755-1.381.5.5 0 01-.939.345A3.001 3.001 0 007 1zM2 6.004h10v7H2v-7z"})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3614"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),KeyIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11 4a1 1 0 11-2 0 1 1 0 012 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 8.532V9.5a.5.5 0 01-.5.5H5.5v1.5a.5.5 0 01-.5.5H3.5v1.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-2a.5.5 0 01.155-.362l5.11-5.11A4.5 4.5 0 117.5 8.532zM6 4.5a3.5 3.5 0 111.5 2.873c-.29-.203-1-.373-1 .481V9H5a.5.5 0 00-.5.5V11H3a.5.5 0 00-.5.5V13H1v-1.293l5.193-5.193a.552.552 0 00.099-.613A3.473 3.473 0 016 4.5z",fill:color2}))),OutboxIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.354.15a.5.5 0 00-.708 0l-2 2a.5.5 0 10.708.707L6.5 1.711v6.793a.5.5 0 001 0V1.71l1.146 1.146a.5.5 0 10.708-.707l-2-2z",fill:color2}),React33.createElement("path",{d:"M2 7.504a.5.5 0 10-1 0v5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-5a.5.5 0 00-1 0v4.5H2v-4.5z",fill:color2}))),CreditIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2.5 8.004a.5.5 0 100 1h3a.5.5 0 000-1h-3z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11.504a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v9zm1-8.5v1h12v-1H1zm0 8h12v-5H1v5z",fill:color2}))),ButtonIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1 3.004a1 1 0 00-1 1v5a1 1 0 001 1h3.5a.5.5 0 100-1H1v-5h12v5h-1a.5.5 0 000 1h1a1 1 0 001-1v-5a1 1 0 00-1-1H1z",fill:color2}),React33.createElement("path",{d:"M6.45 7.006a.498.498 0 01.31.07L10.225 9.1a.5.5 0 01-.002.873l-1.074.621.75 1.3a.75.75 0 01-1.3.75l-.75-1.3-1.074.62a.497.497 0 01-.663-.135.498.498 0 01-.095-.3L6 7.515a.497.497 0 01.45-.509z",fill:color2}))),TypeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4 1.504a.5.5 0 01.5-.5h5a.5.5 0 110 1h-2v10h2a.5.5 0 010 1h-5a.5.5 0 010-1h2v-10h-2a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{d:"M0 4.504a.5.5 0 01.5-.5h4a.5.5 0 110 1H1v4h3.5a.5.5 0 110 1h-4a.5.5 0 01-.5-.5v-5zM9.5 4.004a.5.5 0 100 1H13v4H9.5a.5.5 0 100 1h4a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-4z",fill:color2}))),PointerDefaultIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.943 12.457a.27.27 0 00.248-.149L7.77 9.151l2.54 2.54a.257.257 0 00.188.073c.082 0 .158-.03.21-.077l.788-.79a.27.27 0 000-.392L8.891 7.9l3.416-1.708a.29.29 0 00.117-.106.222.222 0 00.033-.134.332.332 0 00-.053-.161.174.174 0 00-.092-.072l-.02-.007-10.377-4.15a.274.274 0 00-.355.354l4.15 10.372a.275.275 0 00.233.169zm-.036 1l-.02-.002c-.462-.03-.912-.31-1.106-.796L.632 2.287A1.274 1.274 0 012.286.633l10.358 4.143c.516.182.782.657.81 1.114a1.25 1.25 0 01-.7 1.197L10.58 8.174l1.624 1.624a1.27 1.27 0 010 1.807l-.8.801-.008.007c-.491.46-1.298.48-1.792-.014l-1.56-1.56-.957 1.916a1.27 1.27 0 01-1.142.702h-.037z",fill:color2}))),PointerHandIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.87 6.008a.505.505 0 00-.003-.028v-.002c-.026-.27-.225-.48-.467-.498a.5.5 0 00-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47V5.17a.6.6 0 00-.002-.05c-.023-.268-.223-.49-.468-.5a.5.5 0 00-.52.5v1.65a.486.486 0 01-.47.47.48.48 0 01-.47-.47V4.62a.602.602 0 00-.002-.05v-.002c-.023-.266-.224-.48-.468-.498a.5.5 0 00-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 01-.47-.47V1.8c0-.017 0-.034-.002-.05-.022-.268-.214-.49-.468-.5a.5.5 0 00-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47l.001-.1c.001-.053.002-.104 0-.155a.775.775 0 00-.06-.315.65.65 0 00-.16-.22 29.67 29.67 0 01-.21-.189c-.2-.182-.4-.365-.617-.532l-.003-.003A6.366 6.366 0 003.06 7l-.01-.007c-.433-.331-.621-.243-.69-.193-.26.14-.29.5-.13.74l1.73 2.6v.01h-.016l-.035.023.05-.023s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.039-.591.036-1.189.032-1.783l-.002-.507v-.032zm.969 2.376c-.057 1.285-.254 2.667-1.082 3.72-.88 1.118-2.283 1.646-4.227 1.646-1.574 0-2.714-.87-3.406-1.623a6.958 6.958 0 01-1.046-1.504l-.006-.012-1.674-2.516a1.593 1.593 0 01-.25-1.107 1.44 1.44 0 01.69-1.041c.195-.124.485-.232.856-.186.357.044.681.219.976.446.137.106.272.22.4.331V1.75A1.5 1.5 0 015.63.25c.93.036 1.431.856 1.431 1.55v1.335a1.5 1.5 0 01.53-.063h.017c.512.04.915.326 1.153.71a1.5 1.5 0 01.74-.161c.659.025 1.115.458 1.316.964a1.493 1.493 0 01.644-.103h.017c.856.067 1.393.814 1.393 1.558l.002.48c.004.596.007 1.237-.033 1.864z",fill:color2}))),CommandIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 6A2.5 2.5 0 116 3.5V5h2V3.5A2.5 2.5 0 1110.5 6H9v2h1.5A2.5 2.5 0 118 10.5V9H6v1.5A2.5 2.5 0 113.5 8H5V6H3.5zM2 3.5a1.5 1.5 0 113 0V5H3.5A1.5 1.5 0 012 3.5zM6 6v2h2V6H6zm3-1h1.5A1.5 1.5 0 109 3.5V5zM3.5 9H5v1.5A1.5 1.5 0 113.5 9zM9 9v1.5A1.5 1.5 0 1010.5 9H9z",fill:color2}))),InfoIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color2}))),QuestionIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),SupportIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",fill:color2}))),AlertIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",fill:color2}))),AlertAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM6.5 8a.5.5 0 001 0V4a.5.5 0 00-1 0v4zm-.25 2.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0z",fill:color2}))),EmailIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.504a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-9zm1 1.012v7.488h12V3.519L7.313 7.894a.496.496 0 01-.526.062.497.497 0 01-.1-.062L1 3.516zm11.03-.512H1.974L7 6.874l5.03-3.87z",fill:color2}))),PhoneIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.76 8.134l-.05.05a.2.2 0 01-.28.03 6.76 6.76 0 01-1.63-1.65.21.21 0 01.04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 00-.51.13A3.23 3.23 0 00.9 3.424c-.13 1.1.26 2.37 1.17 3.78a16.679 16.679 0 004.55 4.6 6.57 6.57 0 003.53 1.32 3.2 3.2 0 002.85-1.66c.14-.24.24-.64-.07-1.18a7.803 7.803 0 00-1.73-1.81c-.64-.5-1.52-1.11-2.13-1.11a.97.97 0 00-.34.06c-.472.164-.74.458-.947.685l-.023.025zm4.32 2.678a6.801 6.801 0 00-1.482-1.54l-.007-.005-.006-.005a8.418 8.418 0 00-.957-.662 2.7 2.7 0 00-.4-.193.683.683 0 00-.157-.043l-.004.002-.009.003c-.224.078-.343.202-.56.44l-.014.016-.046.045a1.2 1.2 0 01-1.602.149A7.76 7.76 0 014.98 7.134l-.013-.019-.013-.02a1.21 1.21 0 01.195-1.522l.06-.06.026-.024c.219-.19.345-.312.422-.533l.003-.01v-.008a.518.518 0 00-.032-.142c-.06-.178-.203-.453-.502-.872l-.005-.008-.005-.007A10.18 10.18 0 004.013 2.59l-.005-.005c-.31-.314-.543-.5-.716-.605-.147-.088-.214-.096-.222-.097h-.016l-.006.003-.01.006a2.23 2.23 0 00-1.145 1.656c-.09.776.175 1.806 1.014 3.108a15.68 15.68 0 004.274 4.32l.022.014.022.016a5.57 5.57 0 002.964 1.117 2.2 2.2 0 001.935-1.141l.006-.012.004-.007a.182.182 0 00-.007-.038.574.574 0 00-.047-.114z",fill:color2}))),LinkIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:color2}),React33.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:color2}))),LinkBrokenIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.452 7.952l1.305-1.305.708.707-1.306 1.305a2.25 2.25 0 103.182 3.182l1.306-1.305.707.707-1.306 1.305a3.25 3.25 0 01-4.596-4.596zM12.548 6.048l-1.305 1.306-.707-.708 1.305-1.305a2.25 2.25 0 10-3.182-3.182L7.354 3.464l-.708-.707 1.306-1.305a3.25 3.25 0 014.596 4.596zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.707-.707l-11-11z",fill:color2}))),BellIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.994 1.11a1 1 0 10-1.988 0A4.502 4.502 0 002.5 5.5v3.882l-.943 1.885a.497.497 0 00-.053.295.5.5 0 00.506.438h3.575a1.5 1.5 0 102.83 0h3.575a.5.5 0 00.453-.733L11.5 9.382V5.5a4.502 4.502 0 00-3.506-4.39zM2.81 11h8.382l-.5-1H3.31l-.5 1zM10.5 9V5.5a3.5 3.5 0 10-7 0V9h7zm-4 3.5a.5.5 0 111 0 .5.5 0 01-1 0z",fill:color2}))),RSSIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.5.5A.5.5 0 012 0c6.627 0 12 5.373 12 12a.5.5 0 01-1 0C13 5.925 8.075 1 2 1a.5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{d:"M1.5 4.5A.5.5 0 012 4a8 8 0 018 8 .5.5 0 01-1 0 7 7 0 00-7-7 .5.5 0 01-.5-.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11a2 2 0 11-4 0 2 2 0 014 0zm-1 0a1 1 0 11-2 0 1 1 0 012 0z",fill:color2}))),ShareAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:color2}),React33.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:color2}))),ShareIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M6.646.15a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.707L7.5 1.711v6.793a.5.5 0 01-1 0V1.71L5.354 2.857a.5.5 0 11-.708-.707l2-2z",fill:color2}),React33.createElement("path",{d:"M2 4.004a1 1 0 00-1 1v7a1 1 0 001 1h10a1 1 0 001-1v-7a1 1 0 00-1-1H9.5a.5.5 0 100 1H12v7H2v-7h2.5a.5.5 0 000-1H2z",fill:color2}))),JumpToIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M13.854 6.646a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L12.293 7.5H5.5a.5.5 0 010-1h6.793l-1.147-1.146a.5.5 0 01.708-.708l2 2z",fill:color2}),React33.createElement("path",{d:"M10 2a1 1 0 00-1-1H2a1 1 0 00-1 1v10a1 1 0 001 1h7a1 1 0 001-1V9.5a.5.5 0 00-1 0V12H2V2h7v2.5a.5.5 0 001 0V2z",fill:color2}))),CircleHollowIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",fill:color2}))),CircleIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M14 7A7 7 0 110 7a7 7 0 0114 0z",fill:color2}))),BookmarkHollowIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5zM4 12.413l2.664-2.284a.454.454 0 01.377-.128.498.498 0 01.284.12L10 12.412V1H4v11.413z",fill:color2}))),BookmarkIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5z",fill:color2}))),DiamondIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1449_588)"},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",fill:color2})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1449_588"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),HeartHollowIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584zM1.2 3.526c.128-.333.304-.598.52-.806.218-.212.497-.389.849-.522m-1.37 1.328A3.324 3.324 0 001 4.708c0 .225.032.452.101.686.082.265.183.513.307.737.135.246.294.484.479.716.188.237.386.454.59.652l.001.002 4.514 4.355 4.519-4.344c.2-.193.398-.41.585-.648l.003-.003c.184-.23.345-.472.486-.726l.004-.007c.131-.23.232-.474.31-.732v-.002c.068-.224.101-.45.101-.686 0-.457-.07-.849-.195-1.185a2.177 2.177 0 00-.515-.802l.007-.012-.008.009a2.383 2.383 0 00-.85-.518l-.003-.001C11.1 2.072 10.692 2 10.203 2c-.21 0-.406.03-.597.09h-.001c-.22.07-.443.167-.663.289l-.007.003c-.22.12-.434.262-.647.426-.226.174-.42.341-.588.505l-.684.672-.7-.656a9.967 9.967 0 00-.615-.527 4.82 4.82 0 00-.635-.422l-.01-.005a3.289 3.289 0 00-.656-.281l-.008-.003A2.014 2.014 0 003.785 2c-.481 0-.881.071-1.217.198",fill:color2}))),HeartIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584z",fill:color2}))),StarHollowIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.319.783a.75.75 0 011.362 0l1.63 3.535 3.867.458a.75.75 0 01.42 1.296L10.74 8.715l.76 3.819a.75.75 0 01-1.103.8L7 11.434l-3.398 1.902a.75.75 0 01-1.101-.801l.758-3.819L.401 6.072a.75.75 0 01.42-1.296l3.867-.458L6.318.783zm.68.91l-1.461 3.17a.75.75 0 01-.593.431l-3.467.412 2.563 2.37a.75.75 0 01.226.697l-.68 3.424 3.046-1.705a.75.75 0 01.733 0l3.047 1.705-.68-3.424a.75.75 0 01.226-.697l2.563-2.37-3.467-.412a.75.75 0 01-.593-.43L7 1.694z",fill:color2}))),StarIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.68.783a.75.75 0 00-1.361 0l-1.63 3.535-3.867.458A.75.75 0 00.4 6.072l2.858 2.643-.758 3.819a.75.75 0 001.101.8L7 11.434l3.397 1.902a.75.75 0 001.102-.801l-.759-3.819L13.6 6.072a.75.75 0 00-.421-1.296l-3.866-.458L7.68.783z",fill:color2}))),CertificateIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7.854a4.5 4.5 0 10-6 0V13a.5.5 0 00.497.5h.006c.127 0 .254-.05.35-.146L7 11.207l2.146 2.147A.5.5 0 0010 13V7.854zM7 8a3.5 3.5 0 100-7 3.5 3.5 0 000 7zm-.354 2.146a.5.5 0 01.708 0L9 11.793v-3.26C8.398 8.831 7.718 9 7 9a4.481 4.481 0 01-2-.468v3.26l1.646-1.646z",fill:color2}))),VerifiedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.565 13.123a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97c.25.473.83.661 1.31.426l.987-.482zm4.289-8.477a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:color2}))),ThumbsUpIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.493 5.493 0 01-1.3-.16c-.42-.1-.91-.25-1.47-.45a5.056 5.056 0 00-.95-.27H2.88a.84.84 0 01-.62-.26.84.84 0 01-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 01.62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 01.62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7.15.31.23.73.23 1.27a3 3 0 01-.32 1.31h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98a2.05 2.05 0 01-.4 1.51 1.9 1.9 0 01-.57 1.5zm.473-5.33a.965.965 0 00.027-.25.742.742 0 00-.227-.513.683.683 0 00-.523-.227H7.927l.73-1.45a2 2 0 00.213-.867c0-.444-.068-.695-.127-.822a.53.53 0 00-.245-.244 1.296 1.296 0 00-.539-.116.989.989 0 00-.141.28 9.544 9.544 0 00-.174.755c-.069.387-.213.779-.484 1.077l-.009.01-.009.01c-.195.202-.41.46-.67.798l-.003.004c-.235.3-.44.555-.613.753-.151.173-.343.381-.54.516l-.255.176H5v4.133l.018.003c.384.07.76.176 1.122.318.532.189.98.325 1.352.413l.007.002a4.5 4.5 0 001.063.131h.878c.429 0 .683-.115.871-.285a.9.9 0 00.262-.702l-.028-.377.229-.3a1.05 1.05 0 00.205-.774l-.044-.333.165-.292a.969.969 0 00.13-.487.457.457 0 00-.019-.154l-.152-.458.263-.404a1.08 1.08 0 00.152-.325zM3.5 10.8a.5.5 0 100-1 .5.5 0 000 1z",fill:color2}))),ShieldIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.765 2.076A.5.5 0 0112 2.5v6.009a.497.497 0 01-.17.366L7.337 12.87a.497.497 0 01-.674 0L2.17 8.875l-.009-.007a.498.498 0 01-.16-.358L2 8.5v-6a.5.5 0 01.235-.424l.018-.011c.016-.01.037-.024.065-.04.056-.032.136-.077.24-.128a6.97 6.97 0 01.909-.371C4.265 1.26 5.443 1 7 1s2.735.26 3.533.526c.399.133.702.267.91.37a4.263 4.263 0 01.304.169l.018.01zM3 2.793v5.482l1.068.95 6.588-6.588a6.752 6.752 0 00-.44-.163C9.517 2.24 8.444 2 7 2c-1.443 0-2.515.24-3.217.474-.351.117-.61.233-.778.317L3 2.793zm4 9.038l-2.183-1.94L11 3.706v4.568l-4 3.556z",fill:color2}))),BasketIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M10.354 2.854a.5.5 0 10-.708-.708l-3 3a.5.5 0 10.708.708l3-3z",fill:color2}),React33.createElement("path",{d:"M2.09 6H4.5a.5.5 0 000-1H1.795a.75.75 0 00-.74.873l.813 4.874A1.5 1.5 0 003.348 12h7.305a1.5 1.5 0 001.48-1.253l.812-4.874a.75.75 0 00-.74-.873H10a.5.5 0 000 1h1.91l-.764 4.582a.5.5 0 01-.493.418H3.347a.5.5 0 01-.493-.418L2.09 6z",fill:color2}),React33.createElement("path",{d:"M4.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 7.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2zM6.5 9.5v-2a.5.5 0 011 0v2a.5.5 0 01-1 0z",fill:color2}))),BeakerIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2h.75v3.866l-3.034 5.26A1.25 1.25 0 003.299 13H10.7a1.25 1.25 0 001.083-1.875L8.75 5.866V2h.75a.5.5 0 100-1h-5a.5.5 0 000 1zm1.75 4V2h1.5v4.134l.067.116L8.827 8H5.173l1.01-1.75.067-.116V6zM4.597 9l-1.515 2.625A.25.25 0 003.3 12H10.7a.25.25 0 00.217-.375L9.404 9H4.597z",fill:color2}))),HourglassIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.5 10.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1a.5.5 0 00-.5.5c0 1.063.137 1.892.678 2.974.346.692.858 1.489 1.598 2.526-.89 1.247-1.455 2.152-1.798 2.956-.377.886-.477 1.631-.478 2.537v.007a.5.5 0 00.5.5h7c.017 0 .034 0 .051-.003A.5.5 0 0011 12.5v-.007c0-.906-.1-1.65-.478-2.537-.343-.804-.909-1.709-1.798-2.956.74-1.037 1.252-1.834 1.598-2.526C10.863 3.392 11 2.563 11 1.5a.5.5 0 00-.5-.5h-7zm6.487 11a4.675 4.675 0 00-.385-1.652c-.277-.648-.735-1.407-1.499-2.494-.216.294-.448.606-.696.937a.497.497 0 01-.195.162.5.5 0 01-.619-.162c-.248-.331-.48-.643-.696-.937-.764 1.087-1.222 1.846-1.499 2.494A4.675 4.675 0 004.013 12h5.974zM6.304 6.716c.212.293.443.609.696.948a90.058 90.058 0 00.709-.965c.48-.664.86-1.218 1.163-1.699H5.128a32.672 32.672 0 001.176 1.716zM4.559 4h4.882c.364-.735.505-1.312.546-2H4.013c.04.688.182 1.265.546 2z",fill:color2}))),FlagIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 1h-9a.5.5 0 00-.5.5v11a.5.5 0 001 0V8h8.5a.5.5 0 00.354-.854L9.207 4.5l2.647-2.646A.499.499 0 0011.5 1zM8.146 4.146L10.293 2H3v5h7.293L8.146 4.854a.5.5 0 010-.708z",fill:color2}))),CloudHollowIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7V6a3 3 0 00-5.91-.736l-.17.676-.692.075A2.5 2.5 0 003.5 11h3c.063 0 .125-.002.187-.007l.076-.005.076.006c.053.004.106.006.161.006h4a2 2 0 100-4h-1zM3.12 5.02A3.5 3.5 0 003.5 12h3c.087 0 .174-.003.26-.01.079.007.16.01.24.01h4a3 3 0 100-6 4 4 0 00-7.88-.98z",fill:color2}))),CloudIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7 2a4 4 0 014 4 3 3 0 110 6H7c-.08 0-.161-.003-.24-.01-.086.007-.173.01-.26.01h-3a3.5 3.5 0 01-.38-6.98A4.002 4.002 0 017 2z",fill:color2}))),StickerIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 7a4 4 0 11-8 0 4 4 0 018 0zm-1 0a3 3 0 11-6 0 3 3 0 016 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.268 13.18c.25.472.83.66 1.31.425l.987-.482a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97zm5.096-1.44l-.511.963-.979-.478a1.99 1.99 0 00-1.748 0l-.979.478-.51-.962a1.991 1.991 0 00-1.415-1.028l-1.073-.188.152-1.079a1.991 1.991 0 00-.54-1.663L1.004 7l.757-.783a1.991 1.991 0 00.54-1.663L2.15 3.475l1.073-.188A1.991 1.991 0 004.636 2.26l.511-.962.979.478a1.99 1.99 0 001.748 0l.979-.478.51.962c.288.543.81.922 1.415 1.028l1.073.188-.152 1.079a1.99 1.99 0 00.54 1.663l.757.783-.757.783a1.99 1.99 0 00-.54 1.663l.152 1.079-1.073.188a1.991 1.991 0 00-1.414 1.028z",fill:color2}))),ChevronUpIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.354 3.896l5.5 5.5a.5.5 0 01-.708.708L7 4.957l-5.146 5.147a.5.5 0 01-.708-.708l5.5-5.5a.5.5 0 01.708 0z",fill:color2}))),ChevronDownIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:color2}))),ChevronLeftIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",fill:color2}))),ChevronRightIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:color2}))),ChevronSmallUpIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:color2}))),ChevronSmallDownIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:color2}))),ChevronSmallLeftIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:color2}))),ChevronSmallRightIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:color2}))),ArrowUpIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M11.854 4.646l-4.5-4.5a.5.5 0 00-.708 0l-4.5 4.5a.5.5 0 10.708.708L6.5 1.707V13.5a.5.5 0 001 0V1.707l3.646 3.647a.5.5 0 00.708-.708z",fill:color2}))),ArrowDownIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v11.793L2.854 8.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.351.146h.006c.127 0 .254-.05.35-.146l4.5-4.5a.5.5 0 00-.707-.708L7.5 12.293V.5z",fill:color2}))),ArrowLeftIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.354 2.146a.5.5 0 010 .708L1.707 6.5H13.5a.5.5 0 010 1H1.707l3.647 3.646a.5.5 0 01-.708.708l-4.5-4.5a.5.5 0 010-.708l4.5-4.5a.5.5 0 01.708 0z",fill:color2}))),ArrowRightIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M8.646 2.146a.5.5 0 01.708 0l4.5 4.5a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708L12.293 7.5H.5a.5.5 0 010-1h11.793L8.646 2.854a.5.5 0 010-.708z",fill:color2}))),ArrowSolidUpIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.772 3.59c.126-.12.33-.12.456 0l5.677 5.387c.203.193.06.523-.228.523H1.323c-.287 0-.431-.33-.228-.523L6.772 3.59z",fill:color2}))),ArrowSolidDownIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.228 10.41a.335.335 0 01-.456 0L1.095 5.023c-.203-.193-.06-.523.228-.523h11.354c.287 0 .431.33.228.523L7.228 10.41z",fill:color2}))),ArrowSolidLeftIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.712 7.212a.3.3 0 010-.424l5.276-5.276a.3.3 0 01.512.212v10.552a.3.3 0 01-.512.212L3.712 7.212z",fill:color2}))),ArrowSolidRightIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.288 7.212a.3.3 0 000-.424L5.012 1.512a.3.3 0 00-.512.212v10.552a.3.3 0 00.512.212l5.276-5.276z",fill:color2}))),ExpandAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",fill:color2}))),CollapseIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",fill:color2}))),ExpandIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.5 1h2a.5.5 0 010 1h-.793l3.147 3.146a.5.5 0 11-.708.708L2 2.707V3.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 1.5a.5.5 0 01.5-.5h2a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-.793L8.854 5.854a.5.5 0 11-.708-.708L11.293 2H10.5a.5.5 0 01-.5-.5zM12.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 010-1h.793L8.146 8.854a.5.5 0 11.708-.708L12 11.293V10.5a.5.5 0 01.5-.5zM2 11.293V10.5a.5.5 0 00-1 0v2a.5.5 0 00.5.5h2a.5.5 0 000-1h-.793l3.147-3.146a.5.5 0 10-.708-.708L2 11.293z",fill:color2}))),UnfoldIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M6.646.147l-1.5 1.5a.5.5 0 10.708.707l.646-.647V5a.5.5 0 001 0V1.707l.646.647a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0z",fill:color2}),React33.createElement("path",{d:"M1.309 4.038a.498.498 0 00-.16.106l-.005.005a.498.498 0 00.002.705L3.293 7 1.146 9.146A.498.498 0 001.5 10h3a.5.5 0 000-1H2.707l1.5-1.5h5.586l2.353 2.354a.5.5 0 00.708-.708L10.707 7l2.146-2.146.11-.545-.107.542A.499.499 0 0013 4.503v-.006a.5.5 0 00-.144-.348l-.005-.005A.498.498 0 0012.5 4h-3a.5.5 0 000 1h1.793l-1.5 1.5H4.207L2.707 5H4.5a.5.5 0 000-1h-3a.498.498 0 00-.191.038z",fill:color2}),React33.createElement("path",{d:"M7 8.5a.5.5 0 01.5.5v3.293l.646-.647a.5.5 0 01.708.708l-1.5 1.5a.5.5 0 01-.708 0l-1.5-1.5a.5.5 0 01.708-.708l.646.647V9a.5.5 0 01.5-.5zM9 9.5a.5.5 0 01.5-.5h3a.5.5 0 010 1h-3a.5.5 0 01-.5-.5z",fill:color2}))),TransferIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",fill:color2}))),RedirectIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.5 1a.5.5 0 01.5.5V10a2 2 0 004 0V4a3 3 0 016 0v7.793l1.146-1.147a.5.5 0 01.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 01.708-.708L11 11.793V4a2 2 0 10-4 0v6.002a3 3 0 01-6 0V1.5a.5.5 0 01.5-.5z",fill:color2}))),UndoIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:color2}))),ReplyIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4.354 2.146a.5.5 0 010 .708L1.707 5.5H9.5A4.5 4.5 0 0114 10v1.5a.5.5 0 01-1 0V10a3.5 3.5 0 00-3.5-3.5H1.707l2.647 2.646a.5.5 0 11-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0z",fill:color2}))),SyncIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:color2}))),UploadIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M8.646 5.854L7.5 4.707V10.5a.5.5 0 01-1 0V4.707L5.354 5.854a.5.5 0 11-.708-.708l2-2a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.708z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),DownloadIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.354 8.146L6.5 9.293V3.5a.5.5 0 011 0v5.793l1.146-1.147a.5.5 0 11.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm1 0a6 6 0 1112 0A6 6 0 011 7z",fill:color2}))),BackIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M5.854 5.354L4.707 6.5H10.5a.5.5 0 010 1H4.707l1.147 1.146a.5.5 0 11-.708.708l-2-2a.5.5 0 010-.708l2-2a.5.5 0 11.708.708z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a7 7 0 110 14A7 7 0 017 0zm0 1a6 6 0 110 12A6 6 0 017 1z",fill:color2}))),ProceedIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.5 6.5h5.793L8.146 5.354a.5.5 0 11.708-.708l2 2a.5.5 0 010 .708l-2 2a.5.5 0 11-.708-.708L9.293 7.5H3.5a.5.5 0 010-1z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 117 0a7 7 0 010 14zm0-1A6 6 0 117 1a6 6 0 010 12z",fill:color2}))),RefreshIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:color2}))),GlobeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z",fill:color2}))),CompassIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.087 3.397L5.95 5.793a.374.374 0 00-.109.095.377.377 0 00-.036.052l-2.407 4.147a.374.374 0 00-.004.384c.104.179.334.24.513.136l4.142-2.404a.373.373 0 00.148-.143l2.406-4.146a.373.373 0 00-.037-.443.373.373 0 00-.478-.074zM4.75 9.25l2.847-1.652-1.195-1.195L4.75 9.25z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),LocationIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",fill:color2}))),PinIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5a2 2 0 11-4 0 2 2 0 014 0zM8 5a1 1 0 11-2 0 1 1 0 012 0z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5A5 5 0 002 5c0 2.633 2.273 6.154 4.65 8.643.192.2.508.2.7 0C9.726 11.153 12 7.633 12 5zM7 1a4 4 0 014 4c0 1.062-.471 2.42-1.303 3.88-.729 1.282-1.69 2.562-2.697 3.67-1.008-1.108-1.968-2.388-2.697-3.67C3.47 7.42 3 6.063 3 5a4 4 0 014-4z",fill:color2}))),TimeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7 2a.5.5 0 01.5.5v4H10a.5.5 0 010 1H7a.5.5 0 01-.5-.5V2.5A.5.5 0 017 2z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color2}))),DashboardIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M9.79 4.093a.5.5 0 01.117.698L7.91 7.586a1 1 0 11-.814-.581l1.997-2.796a.5.5 0 01.698-.116z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.069 12.968a7 7 0 119.863 0A12.962 12.962 0 007 12c-1.746 0-3.41.344-4.931.968zm9.582-1.177a6 6 0 10-9.301 0A13.98 13.98 0 017 11c1.629 0 3.194.279 4.65.791z",fill:color2}))),TimerIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",fill:color2}))),HomeIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.354 1.146l5.5 5.5a.5.5 0 01-.708.708L12 7.207V12.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V9H6v3.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V7.207l-.146.147a.5.5 0 11-.708-.708l1-1 4.5-4.5a.5.5 0 01.708 0zM3 6.207V12h2V8.5a.5.5 0 01.5-.5h3a.5.5 0 01.5.5V12h2V6.207l-4-4-4 4z",fill:color2}))),AdminIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.213 4.094a.5.5 0 01.056-.034l5.484-2.995a.498.498 0 01.494 0L12.73 4.06a.507.507 0 01.266.389.498.498 0 01-.507.555H1.51a.5.5 0 01-.297-.91zm2.246-.09h7.082L7 2.07 3.459 4.004z",fill:color2}),React33.createElement("path",{d:"M4 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM11 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM5.75 5.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM8.75 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM1.5 12.504a.5.5 0 01.5-.5h10a.5.5 0 010 1H2a.5.5 0 01-.5-.5z",fill:color2}))),DirectionIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("g",{clipPath:"url(#prefix__clip0_1107_3594)"},React33.createElement("path",{d:"M11.451.537l.01 12.922h0L7.61 8.946a1.077 1.077 0 00-.73-.374L.964 8.087 11.45.537h0z",stroke:color2,strokeWidth:1.077})),React33.createElement("defs",null,React33.createElement("clipPath",{id:"prefix__clip0_1107_3594"},React33.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),UserIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",fill:color2}))),UserAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M7.275 13.16a11.388 11.388 0 005.175-1.232v-.25c0-1.566-3.237-2.994-4.104-3.132-.27-.043-.276-.783-.276-.783s.791-.783.964-1.836c.463 0 .75-1.119.286-1.513C9.34 4 9.916 1.16 6.997 1.16c-2.92 0-2.343 2.84-2.324 3.254-.463.394-.177 1.513.287 1.513.172 1.053.963 1.836.963 1.836s-.006.74-.275.783c-.858.136-4.036 1.536-4.103 3.082a11.388 11.388 0 005.73 1.532z",fill:color2}))),UserAddIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M1.183 11.906a10.645 10.645 0 01-1.181-.589c.062-1.439 3.02-2.74 3.818-2.868.25-.04.256-.728.256-.728s-.736-.729-.896-1.709c-.432 0-.698-1.041-.267-1.408A2.853 2.853 0 002.9 4.46c-.072-.672-.31-2.884 2.175-2.884 2.486 0 2.248 2.212 2.176 2.884-.007.062-.012.112-.014.144.432.367.165 1.408-.266 1.408-.16.98-.896 1.709-.896 1.709s.005.688.256.728c.807.129 3.82 1.457 3.82 2.915v.233a10.598 10.598 0 01-4.816 1.146c-1.441 0-2.838-.282-4.152-.837zM11.5 2.16a.5.5 0 01.5.5v1.5h1.5a.5.5 0 010 1H12v1.5a.5.5 0 01-1 0v-1.5H9.5a.5.5 0 110-1H11v-1.5a.5.5 0 01.5-.5z",fill:color2}))),UsersIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M9.21 11.623a10.586 10.586 0 01-4.031.787A10.585 10.585 0 010 11.07c.06-1.354 2.933-2.578 3.708-2.697.243-.038.249-.685.249-.685s-.715-.685-.87-1.607c-.42 0-.679-.979-.26-1.323a2.589 2.589 0 00-.013-.136c-.07-.632-.3-2.712 2.113-2.712 2.414 0 2.183 2.08 2.113 2.712-.007.059-.012.105-.013.136.419.344.16 1.323-.259 1.323-.156.922-.87 1.607-.87 1.607s.005.647.248.685c.784.12 3.71 1.37 3.71 2.74v.22c-.212.103-.427.2-.646.29z",fill:color2}),React33.createElement("path",{d:"M8.81 8.417a9.643 9.643 0 00-.736-.398c.61-.42 1.396-.71 1.7-.757.167-.026.171-.471.171-.471s-.491-.471-.598-1.104c-.288 0-.466-.674-.178-.91-.001-.022-.005-.053-.01-.094-.048-.434-.206-1.864 1.453-1.864 1.66 0 1.5 1.43 1.453 1.864l-.01.094c.289.236.11.91-.178.91-.107.633-.598 1.104-.598 1.104s.004.445.171.47c.539.084 2.55.942 2.55 1.884v.628a10.604 10.604 0 01-3.302.553 2.974 2.974 0 00-.576-.879c-.375-.408-.853-.754-1.312-1.03z",fill:color2}))),ProfileIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M9.106 7.354c-.627.265-1.295.4-1.983.4a5.062 5.062 0 01-2.547-.681c.03-.688 1.443-1.31 1.824-1.37.12-.02.122-.348.122-.348s-.351-.348-.428-.816c-.206 0-.333-.498-.127-.673 0-.016-.003-.04-.007-.07C5.926 3.477 5.812 2.42 7 2.42c1.187 0 1.073 1.057 1.039 1.378l-.007.069c.207.175.08.673-.127.673-.076.468-.428.816-.428.816s.003.329.122.348c.386.06 1.825.696 1.825 1.392v.111c-.104.053-.21.102-.318.148zM3.75 11.25A.25.25 0 014 11h6a.25.25 0 110 .5H4a.25.25 0 01-.25-.25zM4 9a.25.25 0 000 .5h6a.25.25 0 100-.5H4z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 .5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v13a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5V.5zM2 13V1h10v12H2z",fill:color2}))),FaceHappyIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.968 8.75a.5.5 0 00-.866.5A4.498 4.498 0 007 11.5c1.666 0 3.12-.906 3.898-2.25a.5.5 0 10-.866-.5A3.498 3.498 0 017 10.5a3.498 3.498 0 01-3.032-1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),FaceNeutralIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M4.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),FaceSadIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.968 10.25a.5.5 0 01-.866-.5A4.498 4.498 0 017 7.5c1.666 0 3.12.906 3.898 2.25a.5.5 0 11-.866.5A3.498 3.498 0 007 8.5a3.498 3.498 0 00-3.032 1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color2}))),AccessibilityIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{d:"M3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:color2}),React33.createElement("path",{d:"M7 4.5a1 1 0 100-2 1 1 0 000 2z",fill:color2}),React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color2}))),AccessibilityAltIcon=React33.forwardRef(({color:color2="currentColor",size=14,...props},forwardedRef)=>React33.createElement("svg",{width:size,height:size,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},React33.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM8 3.5a1 1 0 11-2 0 1 1 0 012 0zM3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:color2})));var __create3=Object.create,__defProp3=Object.defineProperty,__getOwnPropDesc3=Object.getOwnPropertyDescriptor,__getOwnPropNames3=Object.getOwnPropertyNames,__getProtoOf3=Object.getPrototypeOf,__hasOwnProp3=Object.prototype.hasOwnProperty,__commonJS4=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames3(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export2=(target,all)=>{for(var name2 in all)__defProp3(target,name2,{get:all[name2],enumerable:!0})},__copyProps3=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key2 of __getOwnPropNames3(from))!__hasOwnProp3.call(to,key2)&&key2!==except&&__defProp3(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc3(from,key2))||desc.enumerable});return to},__toESM4=(mod,isNodeMode,target)=>(target=mod!=null?__create3(__getProtoOf3(mod)):{},__copyProps3(isNodeMode||!mod||!mod.__esModule?__defProp3(target,"default",{value:mod,enumerable:!0}):target,mod)),require_constants=__commonJS4({"../../node_modules/semver/internal/constants.js"(exports,module){var SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=250,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),require_debug=__commonJS4({"../../node_modules/semver/internal/debug.js"(exports,module){var debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args2)=>console.error("SEMVER",...args2):()=>{};module.exports=debug}}),require_re=__commonJS4({"../../node_modules/semver/internal/re.js"(exports,module){var{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH}=require_constants(),debug=require_debug();exports=module.exports={};var re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={},R2=0,LETTERDASHNUMBER="[a-zA-Z0-9-]",safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value2=>{for(let[token,max]of safeRegexReplacements)value2=value2.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value2},createToken=(name2,value2,isGlobal)=>{let safe=makeSafeRegex(value2),index3=R2++;debug(name2,index3,value2),t[name2]=index3,src[index3]=value2,re[index3]=new RegExp(value2,isGlobal?"g":void 0),safeRe[index3]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER",`${LETTERDASHNUMBER}+`),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),require_parse_options=__commonJS4({"../../node_modules/semver/internal/parse-options.js"(exports,module){var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options2=>options2?typeof options2!="object"?looseOption:options2:emptyOpts;module.exports=parseOptions}}),require_identifiers=__commonJS4({"../../node_modules/semver/internal/identifiers.js"(exports,module){var numeric=/^[0-9]+$/,compareIdentifiers=(a,b2)=>{let anum=numeric.test(a),bnum=numeric.test(b2);return anum&&bnum&&(a=+a,b2=+b2),a===b2?0:anum&&!bnum?-1:bnum&&!anum?1:acompareIdentifiers(b2,a);module.exports={compareIdentifiers,rcompareIdentifiers}}}),require_semver=__commonJS4({"../../node_modules/semver/classes/semver.js"(exports,module){var debug=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re,t}=require_re(),parseOptions=require_parse_options(),{compareIdentifiers}=require_identifiers(),SemVer=class _SemVer{constructor(version2,options2){if(options2=parseOptions(options2),version2 instanceof _SemVer){if(version2.loose===!!options2.loose&&version2.includePrerelease===!!options2.includePrerelease)return version2;version2=version2.version}else if(typeof version2!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);if(version2.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version2,options2),this.options=options2,this.loose=!!options2.loose,this.includePrerelease=!!options2.includePrerelease;let m=version2.trim().match(options2.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version2}`);if(this.raw=version2,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};module.exports=SemVer}}),require_parse2=__commonJS4({"../../node_modules/semver/functions/parse.js"(exports,module){var SemVer=require_semver(),parse2=(version2,options2,throwErrors=!1)=>{if(version2 instanceof SemVer)return version2;try{return new SemVer(version2,options2)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse2}}),require_valid=__commonJS4({"../../node_modules/semver/functions/valid.js"(exports,module){var parse2=require_parse2(),valid=(version2,options2)=>{let v2=parse2(version2,options2);return v2?v2.version:null};module.exports=valid}}),require_clean=__commonJS4({"../../node_modules/semver/functions/clean.js"(exports,module){var parse2=require_parse2(),clean=(version2,options2)=>{let s=parse2(version2.trim().replace(/^[=v]+/,""),options2);return s?s.version:null};module.exports=clean}}),require_inc=__commonJS4({"../../node_modules/semver/functions/inc.js"(exports,module){var SemVer=require_semver(),inc=(version2,release,options2,identifier,identifierBase)=>{typeof options2=="string"&&(identifierBase=identifier,identifier=options2,options2=void 0);try{return new SemVer(version2 instanceof SemVer?version2.version:version2,options2).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc}}),require_diff=__commonJS4({"../../node_modules/semver/functions/diff.js"(exports,module){var parse2=require_parse2(),diff=(version1,version2)=>{let v1=parse2(version1,null,!0),v2=parse2(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(lowVersion.prerelease.length&&!highHasPre)return!lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";let prefix2=highHasPre?"pre":"";return v1.major!==v2.major?prefix2+"major":v1.minor!==v2.minor?prefix2+"minor":v1.patch!==v2.patch?prefix2+"patch":"prerelease"};module.exports=diff}}),require_major=__commonJS4({"../../node_modules/semver/functions/major.js"(exports,module){var SemVer=require_semver(),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major}}),require_minor=__commonJS4({"../../node_modules/semver/functions/minor.js"(exports,module){var SemVer=require_semver(),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor}}),require_patch=__commonJS4({"../../node_modules/semver/functions/patch.js"(exports,module){var SemVer=require_semver(),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch}}),require_prerelease=__commonJS4({"../../node_modules/semver/functions/prerelease.js"(exports,module){var parse2=require_parse2(),prerelease=(version2,options2)=>{let parsed=parse2(version2,options2);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease}}),require_compare=__commonJS4({"../../node_modules/semver/functions/compare.js"(exports,module){var SemVer=require_semver(),compare=(a,b2,loose)=>new SemVer(a,loose).compare(new SemVer(b2,loose));module.exports=compare}}),require_rcompare=__commonJS4({"../../node_modules/semver/functions/rcompare.js"(exports,module){var compare=require_compare(),rcompare=(a,b2,loose)=>compare(b2,a,loose);module.exports=rcompare}}),require_compare_loose=__commonJS4({"../../node_modules/semver/functions/compare-loose.js"(exports,module){var compare=require_compare(),compareLoose=(a,b2)=>compare(a,b2,!0);module.exports=compareLoose}}),require_compare_build=__commonJS4({"../../node_modules/semver/functions/compare-build.js"(exports,module){var SemVer=require_semver(),compareBuild=(a,b2,loose)=>{let versionA=new SemVer(a,loose),versionB=new SemVer(b2,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild}}),require_sort=__commonJS4({"../../node_modules/semver/functions/sort.js"(exports,module){var compareBuild=require_compare_build(),sort=(list,loose)=>list.sort((a,b2)=>compareBuild(a,b2,loose));module.exports=sort}}),require_rsort=__commonJS4({"../../node_modules/semver/functions/rsort.js"(exports,module){var compareBuild=require_compare_build(),rsort=(list,loose)=>list.sort((a,b2)=>compareBuild(b2,a,loose));module.exports=rsort}}),require_gt=__commonJS4({"../../node_modules/semver/functions/gt.js"(exports,module){var compare=require_compare(),gt=(a,b2,loose)=>compare(a,b2,loose)>0;module.exports=gt}}),require_lt=__commonJS4({"../../node_modules/semver/functions/lt.js"(exports,module){var compare=require_compare(),lt=(a,b2,loose)=>compare(a,b2,loose)<0;module.exports=lt}}),require_eq2=__commonJS4({"../../node_modules/semver/functions/eq.js"(exports,module){var compare=require_compare(),eq2=(a,b2,loose)=>compare(a,b2,loose)===0;module.exports=eq2}}),require_neq=__commonJS4({"../../node_modules/semver/functions/neq.js"(exports,module){var compare=require_compare(),neq=(a,b2,loose)=>compare(a,b2,loose)!==0;module.exports=neq}}),require_gte=__commonJS4({"../../node_modules/semver/functions/gte.js"(exports,module){var compare=require_compare(),gte=(a,b2,loose)=>compare(a,b2,loose)>=0;module.exports=gte}}),require_lte=__commonJS4({"../../node_modules/semver/functions/lte.js"(exports,module){var compare=require_compare(),lte=(a,b2,loose)=>compare(a,b2,loose)<=0;module.exports=lte}}),require_cmp=__commonJS4({"../../node_modules/semver/functions/cmp.js"(exports,module){var eq2=require_eq2(),neq=require_neq(),gt=require_gt(),gte=require_gte(),lt=require_lt(),lte=require_lte(),cmp=(a,op,b2,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b2=="object"&&(b2=b2.version),a===b2;case"!==":return typeof a=="object"&&(a=a.version),typeof b2=="object"&&(b2=b2.version),a!==b2;case"":case"=":case"==":return eq2(a,b2,loose);case"!=":return neq(a,b2,loose);case">":return gt(a,b2,loose);case">=":return gte(a,b2,loose);case"<":return lt(a,b2,loose);case"<=":return lte(a,b2,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp}}),require_coerce=__commonJS4({"../../node_modules/semver/functions/coerce.js"(exports,module){var SemVer=require_semver(),parse2=require_parse2(),{safeRe:re,t}=require_re(),coerce=(version2,options2)=>{if(version2 instanceof SemVer)return version2;if(typeof version2=="number"&&(version2=String(version2)),typeof version2!="string")return null;options2=options2||{};let match=null;if(!options2.rtl)match=version2.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version2))&&(!match||match.index+match[0].length!==version2.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse2(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options2)};module.exports=coerce}}),require_iterator=__commonJS4({"../../node_modules/yallist/iterator.js"(exports,module){module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value}}}}),require_yallist=__commonJS4({"../../node_modules/yallist/yallist.js"(exports,module){module.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item)});else if(arguments.length>0)for(var i=0,l=arguments.length;i1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(tothis.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&ithis.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i1,LRUCache=class{constructor(options2){if(typeof options2=="number"&&(options2={max:options2}),options2||(options2={}),options2.max&&(typeof options2.max!="number"||options2.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=options2.max||1/0;let lc=options2.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options2.stale||!1,options2.maxAge&&typeof options2.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options2.maxAge||0,this[DISPOSE]=options2.dispose,this[NO_DISPOSE_ON_SET]=options2.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options2.updateAgeOnGet||!1,this.reset()}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){let prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){let next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h2=>h2)}dumpLru(){return this[LRU_LIST]}set(key2,value2,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");let now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value2,key2);if(this[CACHE].has(key2)){if(len>this[MAX])return del(this,this[CACHE].get(key2)),!1;let item=this[CACHE].get(key2).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key2,item.value)),item.now=now,item.maxAge=maxAge,item.value=value2,this[LENGTH]+=len-item.length,item.length=len,this.get(key2),trim(this),!0}let hit=new Entry(key2,value2,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key2,value2),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key2,this[LRU_LIST].head),trim(this),!0)}has(key2){if(!this[CACHE].has(key2))return!1;let hit=this[CACHE].get(key2).value;return!isStale(this,hit)}get(key2){return get22(this,key2,!0)}peek(key2){return get22(this,key2,!1)}pop(){let node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key2){del(this,this[CACHE].get(key2))}load(arr){this.reset();let now=Date.now();for(let l=arr.length-1;l>=0;l--){let hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else{let maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach((value2,key2)=>get22(this,key2,!1))}},get22=(self2,key2,doUse)=>{let node=self2[CACHE].get(key2);if(node){let hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return!1;let diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){let prev=walker.prev;del(self2,walker),walker=prev}},del=(self2,node)=>{if(node){let hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node)}},Entry=class{constructor(key2,value2,length,now,maxAge){this.key=key2,this.value=value2,this.length=length,this.now=now,this.maxAge=maxAge||0}},forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2)};module.exports=LRUCache}}),require_range2=__commonJS4({"../../node_modules/semver/classes/range.js"(exports,module){var Range=class _Range{constructor(range,options2){if(options2=parseOptions(options2),range instanceof _Range)return range.loose===!!options2.loose&&range.includePrerelease===!!options2.includePrerelease?range:new _Range(range.raw,options2);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options2,this.loose=!!options2.loose,this.includePrerelease=!!options2.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(c2=>c2.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c2=>!isNullSet(c2[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c2 of this.set)if(c2.length===1&&isAny(c2[0])){this.set=[c2];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){let memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");let result2=[...rangeMap.values()];return cache.set(memoKey,result2),result2}intersects(range,options2){if(!(range instanceof _Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options2)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options2)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options2)))))}test(version2){if(!version2)return!1;if(typeof version2=="string")try{version2=new SemVer(version2,this.options)}catch{return!1}for(let i=0;ic2.value==="<0.0.0-0",isAny=c2=>c2.value==="",isSatisfiable=(comparators,options2)=>{let result2=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result2&&remainingComparators.length;)result2=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options2)),testComparator=remainingComparators.pop();return result2},parseComparator=(comp,options2)=>(debug("comp",comp,options2),comp=replaceCarets(comp,options2),debug("caret",comp),comp=replaceTildes(comp,options2),debug("tildes",comp),comp=replaceXRanges(comp,options2),debug("xrange",comp),comp=replaceStars(comp,options2),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options2)=>comp.trim().split(/\s+/).map(c2=>replaceTilde(c2,options2)).join(" "),replaceTilde=(comp,options2)=>{let r=options2.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options2)=>comp.trim().split(/\s+/).map(c2=>replaceCaret(c2,options2)).join(" "),replaceCaret=(comp,options2)=>{debug("caret",comp,options2);let r=options2.loose?re[t.CARETLOOSE]:re[t.CARET],z=options2.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options2)=>(debug("replaceXRanges",comp,options2),comp.split(/\s+/).map(c2=>replaceXRange(c2,options2)).join(" ")),replaceXRange=(comp,options2)=>{comp=comp.trim();let r=options2.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);let xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options2.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options2)=>(debug("replaceStars",comp,options2),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options2)=>(debug("replaceGTE0",comp,options2),comp.trim().replace(re[options2.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set2,version2,options2)=>{for(let i=0;i0){let allowed=set2[i].semver;if(allowed.major===version2.major&&allowed.minor===version2.minor&&allowed.patch===version2.patch)return!0}return!1}return!0}}}),require_comparator=__commonJS4({"../../node_modules/semver/classes/comparator.js"(exports,module){var ANY=Symbol("SemVer ANY"),Comparator=class _Comparator{static get ANY(){return ANY}constructor(comp,options2){if(options2=parseOptions(options2),comp instanceof _Comparator){if(comp.loose===!!options2.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options2),this.options=options2,this.loose=!!options2.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version2){if(debug("Comparator.test",version2,this.options.loose),this.semver===ANY||version2===ANY)return!0;if(typeof version2=="string")try{version2=new SemVer(version2,this.options)}catch{return!1}return cmp(version2,this.operator,this.semver,this.options)}intersects(comp,options2){if(!(comp instanceof _Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options2).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options2).test(comp.semver):(options2=parseOptions(options2),options2.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options2.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options2)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options2)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}};module.exports=Comparator;var parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp=require_cmp(),debug=require_debug(),SemVer=require_semver(),Range=require_range2()}}),require_satisfies=__commonJS4({"../../node_modules/semver/functions/satisfies.js"(exports,module){var Range=require_range2(),satisfies=(version2,range,options2)=>{try{range=new Range(range,options2)}catch{return!1}return range.test(version2)};module.exports=satisfies}}),require_to_comparators=__commonJS4({"../../node_modules/semver/ranges/to-comparators.js"(exports,module){var Range=require_range2(),toComparators=(range,options2)=>new Range(range,options2).set.map(comp=>comp.map(c2=>c2.value).join(" ").trim().split(" "));module.exports=toComparators}}),require_max_satisfying=__commonJS4({"../../node_modules/semver/ranges/max-satisfying.js"(exports,module){var SemVer=require_semver(),Range=require_range2(),maxSatisfying=(versions,range,options2)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options2)}catch{return null}return versions.forEach(v2=>{rangeObj.test(v2)&&(!max||maxSV.compare(v2)===-1)&&(max=v2,maxSV=new SemVer(max,options2))}),max};module.exports=maxSatisfying}}),require_min_satisfying=__commonJS4({"../../node_modules/semver/ranges/min-satisfying.js"(exports,module){var SemVer=require_semver(),Range=require_range2(),minSatisfying=(versions,range,options2)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options2)}catch{return null}return versions.forEach(v2=>{rangeObj.test(v2)&&(!min||minSV.compare(v2)===1)&&(min=v2,minSV=new SemVer(min,options2))}),min};module.exports=minSatisfying}}),require_min_version=__commonJS4({"../../node_modules/semver/ranges/min-version.js"(exports,module){var SemVer=require_semver(),Range=require_range2(),gt=require_gt(),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i{let compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion}}),require_valid2=__commonJS4({"../../node_modules/semver/ranges/valid.js"(exports,module){var Range=require_range2(),validRange=(range,options2)=>{try{return new Range(range,options2).range||"*"}catch{return null}};module.exports=validRange}}),require_outside=__commonJS4({"../../node_modules/semver/ranges/outside.js"(exports,module){var SemVer=require_semver(),Comparator=require_comparator(),{ANY}=Comparator,Range=require_range2(),satisfies=require_satisfies(),gt=require_gt(),lt=require_lt(),lte=require_lte(),gte=require_gte(),outside=(version2,range,hilo,options2)=>{version2=new SemVer(version2,options2),range=new Range(range,options2);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version2,range,options2))return!1;for(let i=0;i{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options2)?high=comparator:ltfn(comparator.semver,low.semver,options2)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version2,low.semver)||low.operator===ecomp&<fn(version2,low.semver))return!1}return!0};module.exports=outside}}),require_gtr=__commonJS4({"../../node_modules/semver/ranges/gtr.js"(exports,module){var outside=require_outside(),gtr=(version2,range,options2)=>outside(version2,range,">",options2);module.exports=gtr}}),require_ltr=__commonJS4({"../../node_modules/semver/ranges/ltr.js"(exports,module){var outside=require_outside(),ltr=(version2,range,options2)=>outside(version2,range,"<",options2);module.exports=ltr}}),require_intersects=__commonJS4({"../../node_modules/semver/ranges/intersects.js"(exports,module){var Range=require_range2(),intersects=(r1,r2,options2)=>(r1=new Range(r1,options2),r2=new Range(r2,options2),r1.intersects(r2,options2));module.exports=intersects}}),require_simplify=__commonJS4({"../../node_modules/semver/ranges/simplify.js"(exports,module){var satisfies=require_satisfies(),compare=require_compare();module.exports=(versions,range,options2)=>{let set2=[],first=null,prev=null,v2=versions.sort((a,b2)=>compare(a,b2,options2));for(let version2 of v2)satisfies(version2,range,options2)?(prev=version2,first||(first=version2)):(prev&&set2.push([first,prev]),prev=null,first=null);first&&set2.push([first,null]);let ranges=[];for(let[min,max]of set2)min===max?ranges.push(min):!max&&min===v2[0]?ranges.push("*"):max?min===v2[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);let simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length{if(sub===dom)return!0;sub=new Range(sub,options2),dom=new Range(dom,options2);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options2);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options2)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;options2.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options2.includePrerelease)return!0;dom=minimumVersion}let eqSet=new Set,gt,lt;for(let c2 of sub)c2.operator===">"||c2.operator===">="?gt=higherGT(gt,c2,options2):c2.operator==="<"||c2.operator==="<="?lt=lowerLT(lt,c2,options2):eqSet.add(c2.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<&&(gtltComp=compare(gt.semver,lt.semver,options2),gtltComp>0||gtltComp===0&&(gt.operator!==">="||lt.operator!=="<=")))return null;for(let eq2 of eqSet){if(gt&&!satisfies(eq2,String(gt),options2)||lt&&!satisfies(eq2,String(lt),options2))return null;for(let c2 of dom)if(!satisfies(eq2,String(c2),options2))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options2.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options2.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c2 of dom){if(hasDomGT=hasDomGT||c2.operator===">"||c2.operator===">=",hasDomLT=hasDomLT||c2.operator==="<"||c2.operator==="<=",gt){if(needDomGTPre&&c2.semver.prerelease&&c2.semver.prerelease.length&&c2.semver.major===needDomGTPre.major&&c2.semver.minor===needDomGTPre.minor&&c2.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c2.operator===">"||c2.operator===">="){if(higher=higherGT(gt,c2,options2),higher===c2&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c2),options2))return!1}if(lt){if(needDomLTPre&&c2.semver.prerelease&&c2.semver.prerelease.length&&c2.semver.major===needDomLTPre.major&&c2.semver.minor===needDomLTPre.minor&&c2.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c2.operator==="<"||c2.operator==="<="){if(lower=lowerLT(lt,c2,options2),lower===c2&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c2),options2))return!1}if(!c2.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b2,options2)=>{if(!a)return b2;let comp=compare(a.semver,b2.semver,options2);return comp>0?a:comp<0||b2.operator===">"&&a.operator===">="?b2:a},lowerLT=(a,b2,options2)=>{if(!a)return b2;let comp=compare(a.semver,b2.semver,options2);return comp<0?a:comp>0||b2.operator==="<"&&a.operator==="<="?b2:a};module.exports=subset}}),require_semver2=__commonJS4({"../../node_modules/semver/index.js"(exports,module){var internalRe=require_re(),constants=require_constants(),SemVer=require_semver(),identifiers=require_identifiers(),parse2=require_parse2(),valid=require_valid(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq2=require_eq2(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator(),Range=require_range2(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid2(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse:parse2,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq:eq2,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}}),createContext2=({api,state})=>(0,import_react2.createContext)({api,state}),store_setup_default=_=>{_.fn("set",function(key2,data){return _.set(this._area,this._in(key2),stringify(data,{maxDepth:50}))}),_.fn("get",function(key2,alt){let value2=_.get(this._area,this._in(key2));return value2!==null?parse(value2):alt||value2})};store_setup_default(import_store2.default._);var STORAGE_KEY="@storybook/manager/store";function get2(storage){return storage.get(STORAGE_KEY)||{}}function set(storage,value2){return storage.set(STORAGE_KEY,value2)}function update(storage,patch){let previous=get2(storage);return set(storage,{...previous,...patch})}var Store=class{constructor({setState,getState}){this.upstreamSetState=setState,this.upstreamGetState=getState}getInitialState(base){return{...base,...get2(import_store2.default.local),...get2(import_store2.default.session)}}getState(){return this.upstreamGetState()}async setState(inputPatch,cbOrOptions,inputOptions){let callback,options2;typeof cbOrOptions=="function"?(callback=cbOrOptions,options2=inputOptions):options2=cbOrOptions;let{persistence="none"}=options2||{},patch={},delta={};typeof inputPatch=="function"?patch=state=>(delta=inputPatch(state),delta):(patch=inputPatch,delta=patch);let newState=await new Promise(resolve=>{this.upstreamSetState(patch,()=>{resolve(this.getState())})});if(persistence!=="none"){let storage=persistence==="session"?import_store2.default.session:import_store2.default.local;await update(storage,delta)}return callback&&callback(newState),newState}},merge_default=(a,b2)=>(0,import_mergeWith.default)({},a,b2,(objValue,srcValue)=>{if(Array.isArray(srcValue)&&Array.isArray(objValue))return srcValue.forEach(s=>{objValue.find(o=>o===s||(0,import_isEqual.default)(o,s))||objValue.push(s)}),objValue;if(Array.isArray(objValue))return logger.log(["the types mismatch, picking",objValue]),objValue}),main=(...additions)=>additions.reduce((acc,item)=>merge_default(acc,item),{}),initial_state_default=main,provider_exports={};__export2(provider_exports,{init:()=>init});var init=({provider,fullAPI})=>({api:provider.renderPreview?{renderPreview:provider.renderPreview}:{},state:{},init:()=>{provider.handleAPI(fullAPI)}}),addons_exports={};__export2(addons_exports,{ensurePanel:()=>ensurePanel,init:()=>init2});function ensurePanel(panels,selectedPanel,currentPanel){let keys2=Object.keys(panels);return keys2.indexOf(selectedPanel)>=0?selectedPanel:keys2.length?keys2[0]:currentPanel}var init2=({provider,store:store2,fullAPI})=>{let api={getElements:type=>provider.getElements(type),getSelectedPanel:()=>{let{selectedPanel}=store2.getState();return ensurePanel(api.getElements(Addon_TypesEnum.PANEL),selectedPanel,selectedPanel)},setSelectedPanel:panelName=>{store2.setState({selectedPanel:panelName},{persistence:"session"})},setAddonState(addonId,newStateOrMerger,options2){let merger=typeof newStateOrMerger=="function"?newStateOrMerger:()=>newStateOrMerger;return store2.setState(s=>({...s,addons:{...s.addons,[addonId]:merger(s.addons[addonId])}}),options2).then(()=>api.getAddonState(addonId))},getAddonState:addonId=>store2.getState().addons[addonId]||globalThis?.STORYBOOK_ADDON_STATE[addonId]};return{api,state:{selectedPanel:ensurePanel(api.getElements(Addon_TypesEnum.PANEL),store2.getState().selectedPanel),addons:{}}}},channel_exports={};__export2(channel_exports,{init:()=>init3});var init3=({provider})=>({api:{getChannel:()=>provider.channel,on:(type,handler)=>(provider.channel?.on(type,handler),()=>provider.channel?.off(type,handler)),off:(type,handler)=>provider.channel?.off(type,handler),once:(type,handler)=>provider.channel?.once(type,handler),emit:(type,data,...args2)=>{data?.options?.target&&data.options.target!=="storybook-preview-iframe"&&!data.options.target.startsWith("storybook-ref-")&&(data.options.target=data.options.target!=="storybook_internal"?`storybook-ref-${data.options.target}`:"storybook-preview-iframe"),provider.channel?.emit(type,data,...args2)}},state:{}}),notifications_exports={};__export2(notifications_exports,{init:()=>init4});var init4=({store:store2})=>{let api={addNotification:notification=>{api.clearNotification(notification.id);let{notifications}=store2.getState();store2.setState({notifications:[...notifications,notification]})},clearNotification:id=>{let{notifications}=store2.getState();store2.setState({notifications:notifications.filter(n=>n.id!==id)});let notification=notifications.find(n=>n.id===id);notification&¬ification.onClear&¬ification.onClear({dismissed:!1})}};return{api,state:{notifications:[]}}},settings_exports={};__export2(settings_exports,{init:()=>init5});var init5=({store:store2,navigate,fullAPI})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId}}=store2.getState();lastTrackedStoryId?fullAPI.selectStory(lastTrackedStoryId):fullAPI.selectFirstStory()},changeSettingsTab:path=>{navigate(`/settings/${path}`)},isSettingsScreenActive:()=>{let{path}=fullAPI.getUrlState();return!!(path||"").match(/^\/settings/)},retrieveSelection(){let{settings}=store2.getState();return settings.lastTrackedStoryId},storeSelection:async()=>{let{storyId,settings}=store2.getState();await store2.setState({settings:{...settings,lastTrackedStoryId:storyId}})}}}),stories_exports={};__export2(stories_exports,{init:()=>init7});var refs_exports={};__export2(refs_exports,{defaultStoryMapper:()=>defaultStoryMapper,getSourceType:()=>getSourceType,init:()=>init6});var TITLE_PATH_SEPARATOR=/\s*\/\s*/,denormalizeStoryParameters=({globalParameters,kindParameters,stories})=>(0,import_mapValues.default)(stories,storyData=>({...storyData,parameters:combineParameters(globalParameters,kindParameters[storyData.kind],storyData.parameters)})),transformSetStoriesStoryDataToPreparedStoryIndex=stories=>({v:4,entries:Object.entries(stories).reduce((acc,[id,story])=>{if(!story)return acc;let{docsOnly,fileName,...parameters}=story.parameters,base={title:story.kind,id,name:story.name,importPath:fileName};if(docsOnly)acc[id]={type:"docs",tags:["stories-mdx"],storiesImports:[],...base};else{let{argTypes,args:args2,initialArgs}=story;acc[id]={type:"story",...base,parameters,argTypes,args:args2,initialArgs}}return acc},{})}),transformStoryIndexV2toV3=index3=>({v:3,stories:Object.values(index3.stories).reduce((acc,entry)=>(acc[entry.id]={...entry,title:entry.kind,name:entry.name||entry.story,importPath:entry.parameters.fileName||""},acc),{})}),transformStoryIndexV3toV4=index3=>{let countByTitle=(0,import_countBy.default)(Object.values(index3.stories),"title");return{v:4,entries:Object.values(index3.stories).reduce((acc,entry)=>{let type="story";return(entry.parameters?.docsOnly||entry.name==="Page"&&countByTitle[entry.title]===1)&&(type="docs"),acc[entry.id]={type,...type==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...entry},delete acc[entry.id].story,delete acc[entry.id].kind,acc},{})}},transformStoryIndexToStoriesHash=(input,{provider,docsOptions,filters,status})=>{if(!input.v)throw new Error("Composition: Missing stories.json version");let index3=input;index3=index3.v===2?transformStoryIndexV2toV3(index3):index3,index3=index3.v===3?transformStoryIndexV3toV4(index3):index3,index3=index3;let entryValues=Object.values(index3.entries).filter(entry=>{let result2=!0;return Object.values(filters).forEach(filter=>{result2!==!1&&(result2=filter({...entry,status:status[entry.id]}))}),result2}),{sidebar={}}=provider.getConfig(),{showRoots,collapsedRoots=[],renderLabel}=sidebar,setShowRoots=typeof showRoots<"u",storiesHashOutOfOrder=entryValues.reduce((acc,item)=>{if(docsOptions.docsMode&&item.type!=="docs")return acc;let{title}=item,groups=title.trim().split(TITLE_PATH_SEPARATOR),root3=(!setShowRoots||showRoots)&&groups.length>1?[groups.shift()]:[],names=[...root3,...groups],paths=names.reduce((list,name2,idx)=>{let parent=idx>0&&list[idx-1],id=L(parent?`${parent}-${name2}`:name2);if(parent===id)throw new Error(dedent2` + Invalid part '${name2}', leading to id === parentId ('${id}'), inside title '${title}' + + Did you create a path that uses the separator char accidentally, such as 'Vue ' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128 + `);return list.push(id),list},[]);return paths.forEach((id,idx)=>{let childId=paths[idx+1]||item.id;root3.length&&idx===0?acc[id]=merge_default(acc[id]||{},{type:"root",id,name:names[idx],depth:idx,renderLabel,startCollapsed:collapsedRoots.includes(id),children:[childId]}):(!acc[id]||acc[id].type==="component")&&idx===paths.length-1?acc[id]=merge_default(acc[id]||{},{type:"component",id,name:names[idx],parent:paths[idx-1],depth:idx,renderLabel,...childId&&{children:[childId]}}):acc[id]=merge_default(acc[id]||{},{type:"group",id,name:names[idx],parent:paths[idx-1],depth:idx,renderLabel,...childId&&{children:[childId]}})}),acc[item.id]={type:"story",...item,depth:paths.length,parent:paths[paths.length-1],renderLabel,prepared:!!item.parameters},acc},{});function addItem(acc,item){return acc[item.id]||(acc[item.id]=item,(item.type==="root"||item.type==="group"||item.type==="component")&&item.children.forEach(childId=>addItem(acc,storiesHashOutOfOrder[childId]))),acc}let orphanHash=Object.values(storiesHashOutOfOrder).filter(i=>i.type!=="root"&&!i.parent).reduce(addItem,{});return Object.values(storiesHashOutOfOrder).filter(i=>i.type==="root").reduce(addItem,orphanHash)},addPreparedStories=(newHash,oldHash)=>oldHash?Object.fromEntries(Object.entries(newHash).map(([id,newEntry])=>{let oldEntry=oldHash[id];return newEntry.type==="story"&&oldEntry?.type==="story"&&oldEntry.prepared?[id,{...oldEntry,...newEntry,prepared:!0}]:[id,newEntry]})):newHash,getComponentLookupList=(0,import_memoizerific3.default)(1)(hash=>Object.entries(hash).reduce((acc,i)=>{let value2=i[1];return value2.type==="component"&&acc.push([...value2.children]),acc},[])),getStoriesLookupList=(0,import_memoizerific3.default)(1)(hash=>Object.keys(hash).filter(k=>["story","docs"].includes(hash[k].type))),{location:location2,fetch}=scope,getSourceType=(source2,refId)=>{let{origin:localOrigin,pathname:localPathname}=location2,{origin:sourceOrigin,pathname:sourcePathname}=new URL(source2),localFull=`${localOrigin+localPathname}`.replace("/iframe.html","").replace(/\/$/,""),sourceFull=`${sourceOrigin+sourcePathname}`.replace("/iframe.html","").replace(/\/$/,"");return localFull===sourceFull?["local",sourceFull]:refId||source2?["external",sourceFull]:[null,null]},defaultStoryMapper=(b2,a)=>({...a,kind:a.kind.replace("|","/")}),addRefIds=(input,ref)=>Object.entries(input).reduce((acc,[id,item])=>({...acc,[id]:{...item,refId:ref.id}}),{});async function handleRequest(request){if(!request)return{};try{let response=await request;if(response===!1||response===!0)throw new Error("Unexpected boolean response");if(!response.ok)throw new Error(`Unexpected response not OK: ${response.statusText}`);let json=await response.json();return json.entries||json.stories?{storyIndex:json}:json}catch(err){return{indexError:err}}}var parseUrl=url=>{let credentialsRegex=/https?:\/\/(.+:.+)@/,cleanUrl=url,authorization,[,credentials]=url.match(credentialsRegex)||[];return credentials&&(cleanUrl=url.replace(`${credentials}@`,""),authorization=btoa(`${credentials}`)),{url:cleanUrl,authorization}},map=(input,ref,options2)=>{let{storyMapper}=options2;return storyMapper?Object.entries(input).reduce((acc,[id,item])=>({...acc,[id]:storyMapper(ref,item)}),{}):input},init6=({store:store2,provider,singleStory,docsOptions={}},{runCheck=!0}={})=>{let api={findRef:source2=>{let refs22=api.getRefs();return Object.values(refs22).find(({url})=>url.match(source2))},changeRefVersion:async(id,url)=>{let{versions,title}=api.getRefs()[id],ref={id,url,versions,title,index:{},expanded:!0};await api.setRef(id,{...ref,type:"unknown"},!1),await api.checkRef(ref)},changeRefState:(id,previewInitialized)=>{let{[id]:ref,...updated}=api.getRefs();updated[id]={...ref,previewInitialized},store2.setState({refs:updated})},checkRef:async ref=>{let{id,url,version:version2,type}=ref,isPublic=type==="server-checked",loadedData={},query=version2?`?version=${version2}`:"",credentials=isPublic?"omit":"include",urlParseResult=parseUrl(url),headers={Accept:"application/json"};urlParseResult.authorization&&Object.assign(headers,{Authorization:`Basic ${urlParseResult.authorization}`});let[indexResult,storiesResult]=await Promise.all(["index.json","stories.json"].map(async file=>handleRequest(fetch(`${urlParseResult.url}/${file}${query}`,{headers,credentials}))));if(!indexResult.indexError||!storiesResult.indexError){let metadata=await handleRequest(fetch(`${urlParseResult.url}/metadata.json${query}`,{headers,credentials,cache:"no-cache"}).catch(()=>!1));Object.assign(loadedData,{...indexResult.indexError?storiesResult:indexResult,...!metadata.indexError&&metadata})}else isPublic||(loadedData.indexError={message:dedent2` + Error: Loading of ref failed + at fetch (lib/api/src/modules/refs.ts) + + URL: ${urlParseResult.url} + + We weren't able to load the above URL, + it's possible a CORS error happened. + + Please check your dev-tools network tab. + `});let versions=ref.versions&&Object.keys(ref.versions).length?ref.versions:loadedData.versions;await api.setRef(id,{id,url:urlParseResult.url,...loadedData,...versions?{versions}:{},type:loadedData.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:refs22={}}=store2.getState();return refs22},setRef:async(id,{storyIndex,setStoriesData,...rest},ready=!1)=>{if(singleStory)return;let internal_index,index3,{filters}=store2.getState(),{storyMapper=defaultStoryMapper}=provider.getConfig(),ref=api.getRefs()[id];(storyIndex||setStoriesData)&&(internal_index=setStoriesData?transformSetStoriesStoryDataToPreparedStoryIndex(map(setStoriesData,ref,{storyMapper})):storyIndex,index3=transformStoryIndexToStoriesHash(storyIndex,{provider,docsOptions,filters,status:{}})),index3&&(index3=addRefIds(index3,ref)),await api.updateRef(id,{...ref,...rest,index:index3,internal_index})},updateRef:async(id,data)=>{let{[id]:ref,...updated}=api.getRefs();updated[id]={...ref,...data};let ordered=Object.keys(initialState).reduce((obj,key2)=>(obj[key2]=updated[key2],obj),{});await store2.setState({refs:ordered})}},refs2=!singleStory&&scope.REFS||{},initialState=refs2;return runCheck&&new Promise(async resolve=>{for(let ref of Object.values(refs2))await api.checkRef({...ref,stories:{}});resolve(void 0)}),{api,state:{refs:initialState}}},getEventMetadata=(context,fullAPI)=>{let{source:source2,refId,type}=context,[sourceType,sourceLocation]=getSourceType(source2,refId),ref;(refId||sourceType==="external")&&(ref=refId&&fullAPI.getRefs()[refId]?fullAPI.getRefs()[refId]:fullAPI.findRef(sourceLocation));let meta={source:source2,sourceType,sourceLocation,refId,ref,type};switch(!0){case typeof refId=="string":case sourceType==="local":case sourceType==="external":return meta;default:return logger.warn(`Received a ${type} frame that was not configured as a ref`),null}},{fetch:fetch2}=scope,STORY_INDEX_PATH="./index.json",removedOptions=["enableShortcuts","theme","showRoots"];function removeRemovedOptions(options2){if(!options2||typeof options2=="string")return options2;let result2={...options2};return removedOptions.forEach(option=>{option in result2&&delete result2[option]}),result2}var init7=({fullAPI,store:store2,navigate,provider,storyId:initialStoryId,viewMode:initialViewMode,docsOptions={}})=>{let api={storyId:N,getData:(storyId,refId)=>{let result2=api.resolveStory(storyId,refId);if(result2?.type==="story"||result2?.type==="docs")return result2},isPrepared:(storyId,refId)=>{let data=api.getData(storyId,refId);return data?data.type==="story"?data.prepared:!0:!1},resolveStory:(storyId,refId)=>{let{refs:refs2,index:index3}=store2.getState();if(!(refId&&!refs2[refId]))return refId?refs2[refId].index?refs2[refId].index[storyId]:void 0:index3?index3[storyId]:void 0},getCurrentStoryData:()=>{let{storyId,refId}=store2.getState();return api.getData(storyId,refId)},getParameters:(storyIdOrCombo,parameterName)=>{let{storyId,refId}=typeof storyIdOrCombo=="string"?{storyId:storyIdOrCombo,refId:void 0}:storyIdOrCombo,data=api.getData(storyId,refId);if(["story","docs"].includes(data?.type)){let{parameters}=data;if(parameters)return parameterName?parameters[parameterName]:parameters}return null},getCurrentParameter:parameterName=>{let{storyId,refId}=store2.getState();return api.getParameters({storyId,refId},parameterName)||void 0},jumpToComponent:direction=>{let{index:index3,storyId,refs:refs2,refId}=store2.getState();if(!api.getData(storyId,refId))return;let hash=refId?refs2[refId].index||{}:index3;if(!hash)return;let result2=api.findSiblingStoryId(storyId,hash,direction,!0);result2&&api.selectStory(result2,void 0,{ref:refId})},jumpToStory:direction=>{let{index:index3,storyId,refs:refs2,refId}=store2.getState(),story=api.getData(storyId,refId);if(!story)return;let hash=story.refId?refs2[story.refId].index:index3;if(!hash)return;let result2=api.findSiblingStoryId(storyId,hash,direction,!1);result2&&api.selectStory(result2,void 0,{ref:refId})},selectFirstStory:()=>{let{index:index3}=store2.getState();if(!index3)return;let firstStory=Object.keys(index3).find(id=>index3[id].type==="story");if(firstStory){api.selectStory(firstStory);return}navigate("/")},selectStory:(titleOrId=void 0,name2=void 0,options2={})=>{let{ref}=options2,{storyId,index:index3,refs:refs2}=store2.getState(),hash=ref?refs2[ref].index:index3,kindSlug=storyId?.split("--",2)[0];if(hash)if(name2)if(titleOrId){let id=ref?`${ref}_${N(titleOrId,name2)}`:N(titleOrId,name2);if(hash[id])api.selectStory(id,void 0,options2);else{let entry=hash[L(titleOrId)];if(entry?.type==="component"){let foundId=entry.children.find(childId=>hash[childId].name===name2);foundId&&api.selectStory(foundId,void 0,options2)}}}else{let id=N(kindSlug,name2);api.selectStory(id,void 0,options2)}else{let entry=titleOrId?hash[titleOrId]||hash[L(titleOrId)]:hash[kindSlug];if(!entry)throw new Error(`Unknown id or title: '${titleOrId}'`);store2.setState({settings:{...store2.getState().settings,lastTrackedStoryId:entry.id}});let leafEntry=api.findLeafEntry(hash,entry.id),fullId=leafEntry.refId?`${leafEntry.refId}_${leafEntry.id}`:leafEntry.id;navigate(`/${leafEntry.type}/${fullId}`)}},findLeafEntry(index3,storyId){let entry=index3[storyId];if(entry.type==="docs"||entry.type==="story")return entry;let childStoryId=entry.children[0];return api.findLeafEntry(index3,childStoryId)},findLeafStoryId(index3,storyId){return api.findLeafEntry(index3,storyId)?.id},findSiblingStoryId(storyId,index3,direction,toSiblingGroup){if(toSiblingGroup){let lookupList2=getComponentLookupList(index3),position2=lookupList2.findIndex(i=>i.includes(storyId));return position2===lookupList2.length-1&&direction>0||position2===0&&direction<0?void 0:lookupList2[position2+direction]?lookupList2[position2+direction][0]:void 0}let lookupList=getStoriesLookupList(index3),position=lookupList.indexOf(storyId);if(!(position===lookupList.length-1&&direction>0)&&!(position===0&&direction<0))return lookupList[position+direction]},updateStoryArgs:(story,updatedArgs)=>{let{id:storyId,refId}=story;provider.channel?.emit(UPDATE_STORY_ARGS,{storyId,updatedArgs,options:{target:refId}})},resetStoryArgs:(story,argNames)=>{let{id:storyId,refId}=story;provider.channel?.emit(RESET_STORY_ARGS,{storyId,argNames,options:{target:refId}})},fetchIndex:async()=>{try{let result2=await fetch2(STORY_INDEX_PATH);if(result2.status!==200)throw new Error(await result2.text());let storyIndex=await result2.json();if(storyIndex.v<3){logger.warn(`Skipping story index with version v${storyIndex.v}, awaiting SET_STORIES.`);return}await api.setIndex(storyIndex)}catch(err){await store2.setState({indexError:err})}},setIndex:async input=>{let{index:oldHash,status,filters}=store2.getState(),newHash=transformStoryIndexToStoriesHash(input,{provider,docsOptions,status,filters}),output=addPreparedStories(newHash,oldHash);await store2.setState({internal_index:input,index:output,indexError:void 0})},updateStory:async(storyId,update2,ref)=>{if(ref){let{id:refId,index:index3}=ref;index3[storyId]={...index3[storyId],...update2},await fullAPI.updateRef(refId,{index:index3})}else{let{index:index3}=store2.getState();if(!index3)return;index3[storyId]={...index3[storyId],...update2},await store2.setState({index:index3})}},updateDocs:async(docsId,update2,ref)=>{if(ref){let{id:refId,index:index3}=ref;index3[docsId]={...index3[docsId],...update2},await fullAPI.updateRef(refId,{index:index3})}else{let{index:index3}=store2.getState();if(!index3)return;index3[docsId]={...index3[docsId],...update2},await store2.setState({index:index3})}},setPreviewInitialized:async ref=>{ref?fullAPI.updateRef(ref.id,{previewInitialized:!0}):store2.setState({previewInitialized:!0})},experimental_updateStatus:async(id,input)=>{let{status,internal_index:index3}=store2.getState(),newStatus={...status},update2=typeof input=="function"?input(status):input;if(Object.keys(update2).length!==0&&(Object.entries(update2).forEach(([storyId,value2])=>{newStatus[storyId]={...newStatus[storyId]||{}},value2===null?delete newStatus[storyId][id]:newStatus[storyId][id]=value2,Object.keys(newStatus[storyId]).length===0&&delete newStatus[storyId]}),await store2.setState({status:newStatus},{persistence:"session"}),index3)){await api.setIndex(index3);let refs2=await fullAPI.getRefs();Object.entries(refs2).forEach(([refId,{internal_index,...ref}])=>{fullAPI.setRef(refId,{...ref,storyIndex:internal_index},!0)})}},experimental_setFilter:async(id,filterFunction)=>{let{internal_index:index3}=store2.getState();if(await store2.setState({filters:{...store2.getState().filters,[id]:filterFunction}}),index3){await api.setIndex(index3);let refs2=await fullAPI.getRefs();Object.entries(refs2).forEach(([refId,{internal_index,...ref}])=>{fullAPI.setRef(refId,{...ref,storyIndex:internal_index},!0)})}}};provider.channel?.on(STORY_SPECIFIED,function({storyId,viewMode}){let{sourceType}=getEventMetadata(this,fullAPI);if(sourceType==="local"){let state=store2.getState(),isCanvasRoute=state.path==="/"||state.viewMode==="story"||state.viewMode==="docs",stateHasSelection=state.viewMode&&state.storyId,stateSelectionDifferent=state.viewMode!==viewMode||state.storyId!==storyId,{type}=state.index?.[state.storyId]||{};isCanvasRoute&&(stateHasSelection&&stateSelectionDifferent&&!(type==="root"||type==="component"||type==="group")?provider.channel?.emit(SET_CURRENT_STORY,{storyId:state.storyId,viewMode:state.viewMode}):stateSelectionDifferent&&navigate(`/${viewMode}/${storyId}`))}}),provider.channel?.on(CURRENT_STORY_WAS_SET,function(){let{ref}=getEventMetadata(this,fullAPI);api.setPreviewInitialized(ref)}),provider.channel?.on(STORY_CHANGED,function(){let{sourceType}=getEventMetadata(this,fullAPI);if(sourceType==="local"){let options2=api.getCurrentParameter("options");options2&&fullAPI.setOptions(removeRemovedOptions(options2))}}),provider.channel?.on(STORY_PREPARED,function({id,...update2}){let{ref,sourceType}=getEventMetadata(this,fullAPI);if(api.updateStory(id,{...update2,prepared:!0},ref),!ref&&!store2.getState().hasCalledSetOptions){let{options:options2}=update2.parameters;fullAPI.setOptions(removeRemovedOptions(options2)),store2.setState({hasCalledSetOptions:!0})}if(sourceType==="local"){let{storyId,index:index3,refId}=store2.getState();if(!index3)return;let toBePreloaded=Array.from(new Set([api.findSiblingStoryId(storyId,index3,1,!0),api.findSiblingStoryId(storyId,index3,-1,!0)])).filter(Boolean);provider.channel?.emit(PRELOAD_ENTRIES,{ids:toBePreloaded,options:{target:refId}})}}),provider.channel?.on(DOCS_PREPARED,function({id,...update2}){let{ref}=getEventMetadata(this,fullAPI);api.updateStory(id,{...update2,prepared:!0},ref)}),provider.channel?.on(SET_INDEX,function(index3){let{ref}=getEventMetadata(this,fullAPI);if(ref)fullAPI.setRef(ref.id,{...ref,storyIndex:index3},!0);else{api.setIndex(index3);let options2=api.getCurrentParameter("options");fullAPI.setOptions(removeRemovedOptions(options2))}}),provider.channel?.on(SET_STORIES,function(data){let{ref}=getEventMetadata(this,fullAPI),setStoriesData=data.v?denormalizeStoryParameters(data):data.stories;if(ref)fullAPI.setRef(ref.id,{...ref,setStoriesData},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),provider.channel?.on(SELECT_STORY,function({kind,title=kind,story,name:name2=story,storyId,...rest}){let{ref}=getEventMetadata(this,fullAPI);ref?fullAPI.selectStory(storyId||title,name2,{...rest,ref:ref.id}):fullAPI.selectStory(storyId||title,name2,rest)}),provider.channel?.on(STORY_ARGS_UPDATED,function({storyId,args:args2}){let{ref}=getEventMetadata(this,fullAPI);api.updateStory(storyId,{args:args2},ref)}),provider.channel?.on(CONFIG_ERROR,function(err){let{ref}=getEventMetadata(this,fullAPI);api.setPreviewInitialized(ref)}),provider.channel?.on(STORY_MISSING,function(err){let{ref}=getEventMetadata(this,fullAPI);api.setPreviewInitialized(ref)}),provider.channel?.on(SET_CONFIG,()=>{let config2=provider.getConfig();config2?.sidebar?.filters&&store2.setState({filters:{...store2.getState().filters,...config2?.sidebar?.filters}})});let config=provider.getConfig();return{api,state:{storyId:initialStoryId,viewMode:initialViewMode,hasCalledSetOptions:!1,previewInitialized:!1,status:{},filters:config?.sidebar?.filters||{}},init:async()=>{provider.channel?.on(STORY_INDEX_INVALIDATED,()=>api.fetchIndex()),await api.fetchIndex()}}},layout_exports={};__export2(layout_exports,{ActiveTabs:()=>ActiveTabs,defaultLayoutState:()=>defaultLayoutState,focusableUIElements:()=>focusableUIElements,init:()=>init8});var{document:document3}=scope,ActiveTabs={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},defaultLayoutState={ui:{enableShortcuts:!0},layout:{initialActive:ActiveTabs.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:"bottom",showTabs:!0},selectedPanel:void 0,theme:create()},focusableUIElements={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},getIsNavShown=state=>state.layout.navSize>0,getIsPanelShown=state=>{let{bottomPanelHeight,rightPanelWidth,panelPosition}=state.layout;return panelPosition==="bottom"&&bottomPanelHeight>0||panelPosition==="right"&&rightPanelWidth>0},getIsFullscreen=state=>!getIsNavShown(state)&&!getIsPanelShown(state),getRecentVisibleSizes=layoutState=>({navSize:layoutState.navSize>0?layoutState.navSize:layoutState.recentVisibleSizes.navSize,bottomPanelHeight:layoutState.bottomPanelHeight>0?layoutState.bottomPanelHeight:layoutState.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:layoutState.rightPanelWidth>0?layoutState.rightPanelWidth:layoutState.recentVisibleSizes.rightPanelWidth}),init8=({store:store2,provider,singleStory})=>{let api={toggleFullscreen(nextState){return store2.setState(state=>{let isFullscreen=getIsFullscreen(state),shouldFullscreen=typeof nextState=="boolean"?nextState:!isFullscreen;return shouldFullscreen===isFullscreen?{layout:state.layout}:shouldFullscreen?{layout:{...state.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:getRecentVisibleSizes(state.layout)}}:{layout:{...state.layout,navSize:state.singleStory?0:state.layout.recentVisibleSizes.navSize,bottomPanelHeight:state.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:state.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(nextState){return store2.setState(state=>{let isPanelShown=getIsPanelShown(state),shouldShowPanel=typeof nextState=="boolean"?nextState:!isPanelShown;return shouldShowPanel===isPanelShown?{layout:state.layout}:shouldShowPanel?{layout:{...state.layout,bottomPanelHeight:state.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:state.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...state.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:getRecentVisibleSizes(state.layout)}}},{persistence:"session"})},togglePanelPosition(position){return store2.setState(state=>{let nextPosition=position||(state.layout.panelPosition==="right"?"bottom":"right");return{layout:{...state.layout,panelPosition:nextPosition,bottomPanelHeight:state.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:state.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(nextState){return store2.setState(state=>{if(state.singleStory)return{layout:state.layout};let isNavShown=getIsNavShown(state),shouldShowNav=typeof nextState=="boolean"?nextState:!isNavShown;return shouldShowNav===isNavShown?{layout:state.layout}:shouldShowNav?{layout:{...state.layout,navSize:state.layout.recentVisibleSizes.navSize}}:{layout:{...state.layout,navSize:0,recentVisibleSizes:getRecentVisibleSizes(state.layout)}}},{persistence:"session"})},toggleToolbar(toggled){return store2.setState(state=>{let value2=typeof toggled<"u"?toggled:!state.layout.showToolbar;return{layout:{...state.layout,showToolbar:value2}}},{persistence:"session"})},setSizes({navSize,bottomPanelHeight,rightPanelWidth}){return store2.setState(state=>{let nextLayoutState={...state.layout,navSize:navSize??state.layout.navSize,bottomPanelHeight:bottomPanelHeight??state.layout.bottomPanelHeight,rightPanelWidth:rightPanelWidth??state.layout.rightPanelWidth};return{layout:{...nextLayoutState,recentVisibleSizes:getRecentVisibleSizes(nextLayoutState)}}},{persistence:"session"})},focusOnUIElement(elementId,select){if(!elementId)return;let element=document3.getElementById(elementId);element&&(element.focus(),select&&element.select())},getInitialOptions(){let{theme,selectedPanel,...options2}=provider.getConfig();return{...defaultLayoutState,layout:{...defaultLayoutState.layout,...(0,import_pick.default)(options2,Object.keys(defaultLayoutState.layout)),...singleStory&&{navSize:0}},ui:{...defaultLayoutState.ui,...(0,import_pick.default)(options2,Object.keys(defaultLayoutState.ui))},selectedPanel:selectedPanel||defaultLayoutState.selectedPanel,theme:theme||defaultLayoutState.theme}},getIsFullscreen(){return getIsFullscreen(store2.getState())},getIsPanelShown(){return getIsPanelShown(store2.getState())},getIsNavShown(){return getIsNavShown(store2.getState())},setOptions:options2=>{let{layout,ui,selectedPanel,theme}=store2.getState();if(!options2)return;let updatedLayout={...layout,...options2.layout,...(0,import_pick.default)(options2,Object.keys(layout)),...singleStory&&{navSize:0}},updatedUi={...ui,...options2.ui,...(0,import_pick.default)(options2,Object.keys(ui))},updatedTheme={...theme,...options2.theme},modification={};dequal2(ui,updatedUi)||(modification.ui=updatedUi),dequal2(layout,updatedLayout)||(modification.layout=updatedLayout),options2.selectedPanel&&!dequal2(selectedPanel,options2.selectedPanel)&&(modification.selectedPanel=options2.selectedPanel),Object.keys(modification).length&&store2.setState(modification,{persistence:"permanent"}),dequal2(theme,updatedTheme)||store2.setState({theme:updatedTheme})}},persisted=(0,import_pick.default)(store2.getState(),"layout","selectedPanel");return provider.channel?.on(SET_CONFIG,()=>{api.setOptions(merge_default(api.getInitialOptions(),persisted))}),{api,state:merge_default(api.getInitialOptions(),persisted)}},shortcuts_exports={};__export2(shortcuts_exports,{controlOrMetaKey:()=>controlOrMetaKey2,defaultShortcuts:()=>defaultShortcuts,init:()=>init9,isMacLike:()=>isMacLike2,keys:()=>keys});var{navigator}=scope,isMacLike=()=>navigator&&navigator.platform?!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,controlOrMetaSymbol=()=>isMacLike()?"\u2318":"ctrl",controlOrMetaKey=()=>isMacLike()?"meta":"control",optionOrAltSymbol=()=>isMacLike()?"\u2325":"alt",isShortcutTaken=(arr1,arr2)=>JSON.stringify(arr1)===JSON.stringify(arr2),eventToShortcut=e=>{if(["Meta","Alt","Control","Shift"].includes(e.key))return null;let keys2=[];if(e.altKey&&keys2.push("alt"),e.ctrlKey&&keys2.push("control"),e.metaKey&&keys2.push("meta"),e.shiftKey&&keys2.push("shift"),e.key&&e.key.length===1&&e.key!==" "){let key2=e.key.toUpperCase(),code=e.code?.toUpperCase().replace("KEY","").replace("DIGIT","");code&&code.length===1&&code!==key2?keys2.push([key2,code]):keys2.push(key2)}return e.key===" "&&keys2.push("space"),e.key==="Escape"&&keys2.push("escape"),e.key==="ArrowRight"&&keys2.push("ArrowRight"),e.key==="ArrowDown"&&keys2.push("ArrowDown"),e.key==="ArrowUp"&&keys2.push("ArrowUp"),e.key==="ArrowLeft"&&keys2.push("ArrowLeft"),keys2.length>0?keys2:null},shortcutMatchesShortcut=(inputShortcut,shortcut)=>!inputShortcut||!shortcut||(inputShortcut.join("").startsWith("shift/")&&inputShortcut.shift(),inputShortcut.length!==shortcut.length)?!1:!inputShortcut.find((input,i)=>Array.isArray(input)?!input.includes(shortcut[i]):input!==shortcut[i]),eventMatchesShortcut=(e,shortcut)=>shortcutMatchesShortcut(eventToShortcut(e),shortcut),keyToSymbol=key2=>key2==="alt"?optionOrAltSymbol():key2==="control"?"\u2303":key2==="meta"?"\u2318":key2==="shift"?"\u21E7\u200B":key2==="Enter"||key2==="Backspace"||key2==="Esc"||key2==="escape"?"":key2===" "?"SPACE":key2==="ArrowUp"?"\u2191":key2==="ArrowDown"?"\u2193":key2==="ArrowLeft"?"\u2190":key2==="ArrowRight"?"\u2192":key2.toUpperCase(),shortcutToHumanString=shortcut=>shortcut.map(keyToSymbol).join(" "),{navigator:navigator2,document:document23}=scope,isMacLike2=()=>navigator2&&navigator2.platform?!!navigator2.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,controlOrMetaKey2=()=>isMacLike2()?"meta":"control";function keys(o){return Object.keys(o)}var defaultShortcuts=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[controlOrMetaKey2(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[controlOrMetaKey2(),"shift",","],aboutPage:[controlOrMetaKey2(),","],escape:["escape"],collapseAll:[controlOrMetaKey2(),"shift","ArrowUp"],expandAll:[controlOrMetaKey2(),"shift","ArrowDown"],remount:["alt","R"]}),addonsShortcuts={};function focusInInput(event){let target=event.target;return/input|textarea/i.test(target.tagName)||target.getAttribute("contenteditable")!==null}var init9=({store:store2,fullAPI,provider})=>{let api={getShortcutKeys(){return store2.getState().shortcuts},getDefaultShortcuts(){return{...defaultShortcuts,...api.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return addonsShortcuts},getAddonsShortcutLabels(){let labels={};return Object.entries(api.getAddonsShortcuts()).forEach(([actionName,{label}])=>{labels[actionName]=label}),labels},getAddonsShortcutDefaults(){let defaults={};return Object.entries(api.getAddonsShortcuts()).forEach(([actionName,{defaultShortcut}])=>{defaults[actionName]=defaultShortcut}),defaults},async setShortcuts(shortcuts){return await store2.setState({shortcuts},{persistence:"permanent"}),shortcuts},async restoreAllDefaultShortcuts(){return api.setShortcuts(api.getDefaultShortcuts())},async setShortcut(action,value2){let shortcuts=api.getShortcutKeys();return await api.setShortcuts({...shortcuts,[action]:value2}),value2},async setAddonShortcut(addon,shortcut){let shortcuts=api.getShortcutKeys();return await api.setShortcuts({...shortcuts,[`${addon}-${shortcut.actionName}`]:shortcut.defaultShortcut}),addonsShortcuts[`${addon}-${shortcut.actionName}`]=shortcut,shortcut},async restoreDefaultShortcut(action){let defaultShortcut=api.getDefaultShortcuts()[action];return api.setShortcut(action,defaultShortcut)},handleKeydownEvent(event){let shortcut=eventToShortcut(event),shortcuts=api.getShortcutKeys(),matchedFeature=keys(shortcuts).find(feature=>shortcutMatchesShortcut(shortcut,shortcuts[feature]));matchedFeature&&api.handleShortcutFeature(matchedFeature,event)},handleShortcutFeature(feature,event){let{ui:{enableShortcuts},storyId}=store2.getState();if(enableShortcuts)switch(event?.preventDefault&&event.preventDefault(),feature){case"escape":{fullAPI.getIsFullscreen()?fullAPI.toggleFullscreen(!1):fullAPI.getIsNavShown()&&fullAPI.toggleNav(!0);break}case"focusNav":{fullAPI.getIsFullscreen()&&fullAPI.toggleFullscreen(!1),fullAPI.getIsNavShown()||fullAPI.toggleNav(!0),fullAPI.focusOnUIElement(focusableUIElements.storyListMenu);break}case"search":{fullAPI.getIsFullscreen()&&fullAPI.toggleFullscreen(!1),fullAPI.getIsNavShown()||fullAPI.toggleNav(!0),setTimeout(()=>{fullAPI.focusOnUIElement(focusableUIElements.storySearchField,!0)},0);break}case"focusIframe":{let element=document23.getElementById("storybook-preview-iframe");if(element)try{element.contentWindow.focus()}catch{}break}case"focusPanel":{fullAPI.getIsFullscreen()&&fullAPI.toggleFullscreen(!1),fullAPI.getIsPanelShown()||fullAPI.togglePanel(!0),fullAPI.focusOnUIElement(focusableUIElements.storyPanelRoot);break}case"nextStory":{fullAPI.jumpToStory(1);break}case"prevStory":{fullAPI.jumpToStory(-1);break}case"nextComponent":{fullAPI.jumpToComponent(1);break}case"prevComponent":{fullAPI.jumpToComponent(-1);break}case"fullScreen":{fullAPI.toggleFullscreen();break}case"togglePanel":{fullAPI.togglePanel();break}case"toggleNav":{fullAPI.toggleNav();break}case"toolbar":{fullAPI.toggleToolbar();break}case"panelPosition":{fullAPI.getIsFullscreen()&&fullAPI.toggleFullscreen(!1),fullAPI.getIsPanelShown()||fullAPI.togglePanel(!0),fullAPI.togglePanelPosition();break}case"aboutPage":{fullAPI.navigate("/settings/about");break}case"shortcutsPage":{fullAPI.navigate("/settings/shortcuts");break}case"collapseAll":{fullAPI.collapseAll();break}case"expandAll":{fullAPI.expandAll();break}case"remount":{fullAPI.emit(FORCE_REMOUNT,{storyId});break}default:addonsShortcuts[feature].action();break}}},{shortcuts:persistedShortcuts=defaultShortcuts}=store2.getState(),state={shortcuts:keys(defaultShortcuts).reduce((acc,key2)=>({...acc,[key2]:persistedShortcuts[key2]||defaultShortcuts[key2]}),defaultShortcuts)};return{api,state,init:()=>{document23.addEventListener("keydown",event=>{focusInInput(event)||api.handleKeydownEvent(event)}),provider.channel?.on(PREVIEW_KEYDOWN,data=>{api.handleKeydownEvent(data.event)})}}},url_exports={};__export2(url_exports,{init:()=>init10});var{window:globalWindow}=scope,parseBoolean=value2=>{if(value2==="true"||value2==="1")return!0;if(value2==="false"||value2==="0")return!1},prevParams,initialUrlSupport=({state:{location:location22,path,viewMode,storyId:storyIdFromUrl},singleStory})=>{let{full,panel,nav,shortcuts,addonPanel,tabs,path:queryPath,...otherParams}=queryFromLocation(location22),navSize,bottomPanelHeight,rightPanelWidth;parseBoolean(full)===!0?(navSize=0,bottomPanelHeight=0,rightPanelWidth=0):parseBoolean(full)===!1&&(navSize=defaultLayoutState.layout.navSize,bottomPanelHeight=defaultLayoutState.layout.bottomPanelHeight,rightPanelWidth=defaultLayoutState.layout.rightPanelWidth),singleStory||(parseBoolean(nav)===!0&&(navSize=defaultLayoutState.layout.navSize),parseBoolean(nav)===!1&&(navSize=0)),parseBoolean(panel)===!1&&(bottomPanelHeight=0,rightPanelWidth=0);let layout={navSize,bottomPanelHeight,rightPanelWidth,panelPosition:["right","bottom"].includes(panel)?panel:void 0,showTabs:parseBoolean(tabs)},ui={enableShortcuts:parseBoolean(shortcuts)},selectedPanel=addonPanel||void 0,storyId=storyIdFromUrl,customQueryParams=dequal2(prevParams,otherParams)?prevParams:otherParams;return prevParams=customQueryParams,{viewMode,layout,ui,selectedPanel,location:location22,path,customQueryParams,storyId}},init10=moduleArgs=>{let{store:store2,navigate,provider,fullAPI}=moduleArgs,navigateTo=(path,queryParams={},options2={})=>{let params=Object.entries(queryParams).filter(([,v2])=>v2).sort(([a],[b2])=>a`${k}=${v2}`),to=[path,...params].join("&");return navigate(to,options2)},api={getQueryParam(key2){let{customQueryParams}=store2.getState();return customQueryParams?customQueryParams[key2]:void 0},getUrlState(){let{path,customQueryParams,storyId,url,viewMode}=store2.getState();return{path,queryParams:customQueryParams,storyId,url,viewMode}},setQueryParams(input){let{customQueryParams}=store2.getState(),queryParams={},update2={...customQueryParams,...Object.entries(input).reduce((acc,[key2,value2])=>(value2!==null&&(acc[key2]=value2),acc),queryParams)};dequal2(customQueryParams,update2)||(store2.setState({customQueryParams:update2}),provider.channel?.emit(UPDATE_QUERY_PARAMS,update2))},applyQueryParams(input){let{path,queryParams}=api.getUrlState();navigateTo(path,{...queryParams,...input}),api.setQueryParams(input)},navigateUrl(url,options2){navigate(url,{plain:!0,...options2})}},updateArgsParam=()=>{let{path,queryParams,viewMode}=api.getUrlState();if(viewMode!=="story")return;let currentStory=fullAPI.getCurrentStoryData();if(currentStory?.type!=="story")return;let{args:args2,initialArgs}=currentStory,argsString=buildArgsParam(initialArgs,args2);navigateTo(path,{...queryParams,args:argsString},{replace:!0}),api.setQueryParams({args:argsString})};provider.channel?.on(SET_CURRENT_STORY,()=>updateArgsParam());let handleOrId;return provider.channel?.on(STORY_ARGS_UPDATED,()=>{"requestIdleCallback"in globalWindow?(handleOrId&&globalWindow.cancelIdleCallback(handleOrId),handleOrId=globalWindow.requestIdleCallback(updateArgsParam,{timeout:1e3})):(handleOrId&&clearTimeout(handleOrId),setTimeout(updateArgsParam,100))}),provider.channel?.on(GLOBALS_UPDATED,({globals,initialGlobals})=>{let{path,queryParams}=api.getUrlState(),globalsString=buildArgsParam(initialGlobals,globals);navigateTo(path,{...queryParams,globals:globalsString},{replace:!0}),api.setQueryParams({globals:globalsString})}),provider.channel?.on(NAVIGATE_URL,(url,options2)=>{api.navigateUrl(url,options2)}),{api,state:initialUrlSupport(moduleArgs)}},versions_exports={};__export2(versions_exports,{init:()=>init11});var import_semver=__toESM4(require_semver2()),version="8.0.6",{VERSIONCHECK}=scope,getVersionCheckData=(0,import_memoizerific3.default)(1)(()=>{try{return{...JSON.parse(VERSIONCHECK).data||{}}}catch{return{}}}),normalizeRendererName=renderer=>renderer.includes("vue")?"vue":renderer,init11=({store:store2})=>{let{dismissedVersionNotification}=store2.getState(),state={versions:{current:{version},...getVersionCheckData()},dismissedVersionNotification},api={getCurrentVersion:()=>{let{versions:{current}}=store2.getState();return current},getLatestVersion:()=>{let{versions:{latest,next,current}}=store2.getState();return current&&import_semver.default.prerelease(current.version)&&next?latest&&import_semver.default.gt(latest.version,next.version)?latest:next:latest},getDocsUrl:({subpath,versioned,renderer})=>{let{versions:{latest,current}}=store2.getState(),url="https://storybook.js.org/docs/";if(versioned&¤t?.version&&latest?.version){let versionDiff=import_semver.default.diff(latest.version,current.version);versionDiff==="patch"||versionDiff===null||(url+=`${import_semver.default.major(current.version)}.${import_semver.default.minor(current.version)}/`)}if(subpath&&(url+=`${subpath}/`),renderer&&typeof scope.STORYBOOK_RENDERER<"u"){let rendererName=scope.STORYBOOK_RENDERER.split("/").pop()?.toLowerCase();rendererName&&(url+=`?renderer=${normalizeRendererName(rendererName)}`)}return url},versionUpdateAvailable:()=>{let latest=api.getLatestVersion(),current=api.getCurrentVersion();if(latest){if(!latest.version||!current.version)return!0;let actualCurrent=import_semver.default.prerelease(current.version)?`${import_semver.default.major(current.version)}.${import_semver.default.minor(current.version)}.${import_semver.default.patch(current.version)}`:current.version,diff=import_semver.default.diff(actualCurrent,latest.version);return import_semver.default.gt(latest.version,actualCurrent)&&diff!=="patch"&&!diff.includes("pre")}return!1}};return{init:async()=>{let{versions={}}=store2.getState(),{latest,next}=getVersionCheckData();await store2.setState({versions:{...versions,latest,next}})},state,api}},whatsnew_exports={};__export2(whatsnew_exports,{init:()=>init12});var WHATS_NEW_NOTIFICATION_ID="whats-new",init12=({fullAPI,store:store2,provider})=>{let state={whatsNewData:void 0};function setWhatsNewState(newState){store2.setState({whatsNewData:newState}),state.whatsNewData=newState}let api={isWhatsNewUnread(){return state.whatsNewData?.status==="SUCCESS"&&!state.whatsNewData.postIsRead},whatsNewHasBeenRead(){state.whatsNewData?.status==="SUCCESS"&&(setWhatsNewCache({lastReadPost:state.whatsNewData.url}),setWhatsNewState({...state.whatsNewData,postIsRead:!0}),fullAPI.clearNotification(WHATS_NEW_NOTIFICATION_ID))},toggleWhatsNewNotifications(){state.whatsNewData?.status==="SUCCESS"&&(setWhatsNewState({...state.whatsNewData,disableWhatsNewNotifications:!state.whatsNewData.disableWhatsNewNotifications}),provider.channel?.emit(TOGGLE_WHATS_NEW_NOTIFICATIONS,{disableWhatsNewNotifications:state.whatsNewData.disableWhatsNewNotifications}))}};function getLatestWhatsNewPost(){return provider.channel?.emit(REQUEST_WHATS_NEW_DATA),new Promise(resolve=>provider.channel?.once(RESULT_WHATS_NEW_DATA,({data})=>resolve(data)))}function setWhatsNewCache(cache){provider.channel?.emit(SET_WHATS_NEW_CACHE,cache)}return{init:async()=>{if(scope.CONFIG_TYPE!=="DEVELOPMENT")return;let whatsNewData=await getLatestWhatsNewPost();setWhatsNewState(whatsNewData);let urlState=fullAPI.getUrlState();!(urlState?.path==="/onboarding"||urlState.queryParams?.onboarding==="true")&&whatsNewData.status==="SUCCESS"&&!whatsNewData.disableWhatsNewNotifications&&whatsNewData.showNotification&&fullAPI.addNotification({id:WHATS_NEW_NOTIFICATION_ID,link:"/settings/whats-new",content:{headline:whatsNewData.title,subHeadline:"Learn what's new in Storybook"},icon:import_react2.default.createElement(StorybookIcon,null),onClear({dismissed}){dismissed&&setWhatsNewCache({lastDismissedPost:whatsNewData.url})}})},state,api}},globals_exports={};__export2(globals_exports,{init:()=>init13});var init13=({store:store2,fullAPI,provider})=>{let api={getGlobals(){return store2.getState().globals},getGlobalTypes(){return store2.getState().globalTypes},updateGlobals(newGlobals){provider.channel?.emit(UPDATE_GLOBALS,{globals:newGlobals,options:{target:"storybook-preview-iframe"}})}},state={globals:{},globalTypes:{}},updateGlobals=globals=>{let currentGlobals=store2.getState()?.globals;dequal2(globals,currentGlobals)||store2.setState({globals})};return provider.channel?.on(GLOBALS_UPDATED,function({globals}){let{ref}=getEventMetadata(this,fullAPI);ref?logger.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):updateGlobals(globals)}),provider.channel?.on(SET_GLOBALS,function({globals,globalTypes}){let{ref}=getEventMetadata(this,fullAPI),currentGlobals=store2.getState()?.globals;ref?Object.keys(globals).length>0&&logger.warn("received globals from a non-local ref. This is not currently supported."):store2.setState({globals,globalTypes}),currentGlobals&&Object.keys(currentGlobals).length!==0&&!dequal2(globals,currentGlobals)&&api.updateGlobals(currentGlobals)}),{api,state}};function mockChannel(){let transport={setHandler:()=>{},send:()=>{}};return new Channel({transport})}var AddonStore=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(mockChannel()),this.channel),this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=channel=>{this.channel=channel,this.resolve()},this.setConfig=value2=>{Object.assign(this.config,value2),this.hasChannel()?this.getChannel().emit(SET_CONFIG,this.config):this.ready().then(channel=>{channel.emit(SET_CONFIG,this.config)})},this.getConfig=()=>this.config,this.register=(id,callback)=>{this.loaders[id]&&logger.warn(`${id} was loaded twice, this could have bad side-effects`),this.loaders[id]=callback},this.loadAddons=api=>{Object.values(this.loaders).forEach(value2=>value2(api))},this.promise=new Promise(res=>{this.resolve=()=>res(this.getChannel())})}getElements(type){return this.elements[type]||(this.elements[type]={}),this.elements[type]}add(id,addon){let{type}=addon,collection=this.getElements(type);collection[id]={...addon,id}}},KEY2="__STORYBOOK_ADDONS_MANAGER";function getAddonsStore(){return scope[KEY2]||(scope[KEY2]=new AddonStore),scope[KEY2]}var addons=getAddonsStore(),{ActiveTabs:ActiveTabs2}=layout_exports,ManagerContext=createContext2({api:void 0,state:initial_state_default({})}),combineParameters=(...parameterSets)=>(0,import_mergeWith.default)({},...parameterSets,(objValue,srcValue)=>{if(Array.isArray(srcValue))return srcValue}),ManagerProvider=class extends import_react2.Component{constructor(props){super(props),this.api={},this.initModules=()=>{this.modules.forEach(module=>{"init"in module&&module.init()})};let{location:location22,path,refId,viewMode=props.docsOptions.docsMode?"docs":props.viewMode,singleStory,storyId,docsOptions,navigate}=props,store2=new Store({getState:()=>this.state,setState:(stateChange,callback)=>(this.setState(stateChange,()=>callback(this.state)),this.state)}),routeData={location:location22,path,viewMode,singleStory,storyId,refId},optionsData={docsOptions};this.state=store2.getInitialState(initial_state_default({...routeData,...optionsData}));let apiData={navigate,store:store2,provider:props.provider};this.modules=[provider_exports,channel_exports,addons_exports,layout_exports,notifications_exports,settings_exports,shortcuts_exports,stories_exports,refs_exports,globals_exports,url_exports,versions_exports,whatsnew_exports].map(m=>m.init({...routeData,...optionsData,...apiData,state:this.state,fullAPI:this.api}));let state=initial_state_default(this.state,...this.modules.map(m=>m.state)),api=Object.assign(this.api,{navigate},...this.modules.map(m=>m.api));this.state=state,this.api=api}static getDerivedStateFromProps(props,state){return state.path!==props.path?{...state,location:props.location,path:props.path,refId:props.refId,viewMode:props.viewMode,storyId:props.storyId}:null}shouldComponentUpdate(nextProps,nextState){let prevState=this.state,prevProps=this.props;return prevState!==nextState||prevProps.path!==nextProps.path}render(){let{children}=this.props,value2={state:this.state,api:this.api};return import_react2.default.createElement(EffectOnMount,{effect:this.initModules},import_react2.default.createElement(ManagerContext.Provider,{value:value2},import_react2.default.createElement(ManagerConsumer,null,children)))}};ManagerProvider.displayName="Manager";var EffectOnMount=({children,effect})=>(import_react2.default.useEffect(effect,[]),children),defaultFilter=c2=>c2;function ManagerConsumer({filter=defaultFilter,children}){let managerContext=(0,import_react2.useContext)(ManagerContext),renderer=(0,import_react2.useRef)(children),filterer=(0,import_react2.useRef)(filter);if(typeof renderer.current!="function")return import_react2.default.createElement(import_react2.Fragment,null,renderer.current);let comboData=filterer.current(managerContext),comboDataArray=(0,import_react2.useMemo)(()=>[...Object.entries(comboData).reduce((acc,keyval)=>acc.concat(keyval),[])],[managerContext.state]);return(0,import_react2.useMemo)(()=>{let Child=renderer.current;return import_react2.default.createElement(Child,{...comboData})},comboDataArray)}function useStorybookState(){let{state}=(0,import_react2.useContext)(ManagerContext);return{...state,get storiesHash(){return deprecate("state.storiesHash is deprecated, please use state.index"),this.index||{}},get storiesConfigured(){return deprecate("state.storiesConfigured is deprecated, please use state.previewInitialized"),this.previewInitialized},get storiesFailed(){return deprecate("state.storiesFailed is deprecated, please use state.indexError"),this.indexError}}}function useStorybookApi(){let{api}=(0,import_react2.useContext)(ManagerContext);return api}function orDefault(fromStore,defaultState){return typeof fromStore>"u"?defaultState:fromStore}var useChannel=(eventMap,deps=[])=>{let api=useStorybookApi();return(0,import_react2.useEffect)(()=>(Object.entries(eventMap).forEach(([type,listener])=>api.on(type,listener)),()=>{Object.entries(eventMap).forEach(([type,listener])=>api.off(type,listener))}),deps),api.emit};function useStoryPrepared(storyId){return useStorybookApi().isPrepared(storyId)}function useParameter(parameterKey,defaultValue){let result2=useStorybookApi().getCurrentParameter(parameterKey);return orDefault(result2,defaultValue)}globalThis.STORYBOOK_ADDON_STATE={};var{STORYBOOK_ADDON_STATE}=globalThis;function useSharedState(stateId,defaultState){let api=useStorybookApi(),existingState=api.getAddonState(stateId)||STORYBOOK_ADDON_STATE[stateId],state=orDefault(existingState,STORYBOOK_ADDON_STATE[stateId]?STORYBOOK_ADDON_STATE[stateId]:defaultState),quicksync=!1;state===defaultState&&defaultState!==void 0&&(STORYBOOK_ADDON_STATE[stateId]=defaultState,quicksync=!0),(0,import_react2.useEffect)(()=>{quicksync&&api.setAddonState(stateId,defaultState)},[quicksync]);let setState=async(s,options2)=>{await api.setAddonState(stateId,s,options2);let result2=api.getAddonState(stateId);return STORYBOOK_ADDON_STATE[stateId]=result2,result2},allListeners=(0,import_react2.useMemo)(()=>{let stateChangeHandlers={[`${SHARED_STATE_CHANGED}-client-${stateId}`]:setState,[`${SHARED_STATE_SET}-client-${stateId}`]:setState},stateInitializationHandlers={[SET_STORIES]:async()=>{let currentState=api.getAddonState(stateId);currentState?(STORYBOOK_ADDON_STATE[stateId]=currentState,api.emit(`${SHARED_STATE_SET}-manager-${stateId}`,currentState)):STORYBOOK_ADDON_STATE[stateId]?(await setState(STORYBOOK_ADDON_STATE[stateId]),api.emit(`${SHARED_STATE_SET}-manager-${stateId}`,STORYBOOK_ADDON_STATE[stateId])):defaultState!==void 0&&(await setState(defaultState),STORYBOOK_ADDON_STATE[stateId]=defaultState,api.emit(`${SHARED_STATE_SET}-manager-${stateId}`,defaultState))},[STORY_CHANGED]:()=>{let currentState=api.getAddonState(stateId);currentState!==void 0&&api.emit(`${SHARED_STATE_SET}-manager-${stateId}`,currentState)}};return{...stateChangeHandlers,...stateInitializationHandlers}},[stateId]),emit=useChannel(allListeners);return[state,async(newStateOrMerger,options2)=>{await setState(newStateOrMerger,options2);let result2=api.getAddonState(stateId);emit(`${SHARED_STATE_CHANGED}-manager-${stateId}`,result2)}]}function useAddonState(addonId,defaultState){return useSharedState(addonId,defaultState)}function useArgs(){let{getCurrentStoryData,updateStoryArgs,resetStoryArgs}=useStorybookApi(),data=getCurrentStoryData(),args2=data?.type==="story"?data.args:{},updateArgs=(0,import_react2.useCallback)(newArgs=>updateStoryArgs(data,newArgs),[data,updateStoryArgs]),resetArgs=(0,import_react2.useCallback)(argNames=>resetStoryArgs(data,argNames),[data,resetStoryArgs]);return[args2,updateArgs,resetArgs]}function useGlobals(){let api=useStorybookApi();return[api.getGlobals(),api.updateGlobals]}function useGlobalTypes(){return useStorybookApi().getGlobalTypes()}function useCurrentStory(){let{getCurrentStoryData}=useStorybookApi();return getCurrentStoryData()}function useArgTypes(){let current=useCurrentStory();return current?.type==="story"&¤t.argTypes||{}}var typesX=Addon_TypesEnum;var manager_errors_exports={};__export(manager_errors_exports,{Category:()=>Category,ProviderDoesNotExtendBaseProviderError:()=>ProviderDoesNotExtendBaseProviderError,UncaughtManagerError:()=>UncaughtManagerError});var StorybookError=class extends Error{constructor(){super(...arguments),this.data={},this.documentation=!1,this.fromStorybook=!0}get fullErrorCode(){let paddedCode=String(this.code).padStart(4,"0");return`SB_${this.category}_${paddedCode}`}get name(){let errorName=this.constructor.name;return`${this.fullErrorCode} (${errorName})`}get message(){let page;return this.documentation===!0?page=`https://storybook.js.org/error/${this.fullErrorCode}`:typeof this.documentation=="string"?page=this.documentation:Array.isArray(this.documentation)&&(page=` +${this.documentation.map(doc=>` - ${doc}`).join(` +`)}`),`${this.template()}${page!=null?` + +More info: ${page} +`:""}`}};var Category=(Category2=>(Category2.MANAGER_UNCAUGHT="MANAGER_UNCAUGHT",Category2.MANAGER_UI="MANAGER_UI",Category2.MANAGER_API="MANAGER_API",Category2.MANAGER_CLIENT_LOGGER="MANAGER_CLIENT-LOGGER",Category2.MANAGER_CHANNELS="MANAGER_CHANNELS",Category2.MANAGER_CORE_EVENTS="MANAGER_CORE-EVENTS",Category2.MANAGER_ROUTER="MANAGER_ROUTER",Category2.MANAGER_THEMING="MANAGER_THEMING",Category2))(Category||{}),ProviderDoesNotExtendBaseProviderError=class extends StorybookError{constructor(){super(...arguments),this.category="MANAGER_UI",this.code=1}template(){return"The Provider passed into Storybook's UI is not extended from the base Provider. Please check your Provider implementation."}},UncaughtManagerError=class extends StorybookError{constructor(data){super(data.error.message),this.data=data,this.category="MANAGER_UNCAUGHT",this.code=1,this.stack=data.error.stack}template(){return this.message}};var dist_exports7={};__export(dist_exports7,{A:()=>A,ActionBar:()=>ActionBar,AddonPanel:()=>AddonPanel,Badge:()=>Badge,Bar:()=>Bar,Blockquote:()=>Blockquote,Button:()=>Button,ClipboardCode:()=>ClipboardCode,Code:()=>Code,DL:()=>DL,Div:()=>Div,DocumentWrapper:()=>DocumentWrapper,EmptyTabContent:()=>EmptyTabContent,ErrorFormatter:()=>ErrorFormatter,FlexBar:()=>FlexBar,Form:()=>Form,H1:()=>H1,H2:()=>H2,H3:()=>H3,H4:()=>H4,H5:()=>H5,H6:()=>H6,HR:()=>HR,IconButton:()=>IconButton,IconButtonSkeleton:()=>IconButtonSkeleton,Icons:()=>Icons,Img:()=>Img,LI:()=>LI,Link:()=>Link22,ListItem:()=>ListItem_default,Loader:()=>Loader,OL:()=>OL,P:()=>P,Placeholder:()=>Placeholder,Pre:()=>Pre,ResetWrapper:()=>ResetWrapper,ScrollArea:()=>ScrollArea,Separator:()=>Separator,Spaced:()=>Spaced,Span:()=>Span,StorybookIcon:()=>StorybookIcon2,StorybookLogo:()=>StorybookLogo,Symbols:()=>Symbols,SyntaxHighlighter:()=>SyntaxHighlighter22,TT:()=>TT,TabBar:()=>TabBar,TabButton:()=>TabButton,TabWrapper:()=>TabWrapper,Table:()=>Table,Tabs:()=>Tabs,TabsState:()=>TabsState,TooltipLinkList:()=>TooltipLinkList,TooltipMessage:()=>TooltipMessage,TooltipNote:()=>TooltipNote,UL:()=>UL,WithTooltip:()=>WithTooltip,WithTooltipPure:()=>WithTooltipPure,Zoom:()=>Zoom,codeCommon:()=>codeCommon,components:()=>components2,createCopyToClipboardFunction:()=>createCopyToClipboardFunction,getStoryHref:()=>getStoryHref,icons:()=>icons,interleaveSeparators:()=>interleaveSeparators,nameSpaceClassNames:()=>nameSpaceClassNames,resetComponents:()=>resetComponents,withReset:()=>withReset});var React3=__toESM(require_react(),1),import_react3=__toESM(require_react(),1);var import_memoizerific4=__toESM(require_memoizerific(),1);var nameSpaceClassNames=({...props},key2)=>{let classes=[props.class,props.className];return delete props.class,props.className=["sbdocs",`sbdocs-${key2}`,...classes].filter(Boolean).join(" "),props};function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1}catch{return typeof fn=="function"}}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(Parent,args2,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args22,Class2){var a=[null];a.push.apply(a,args22);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper4)}function Wrapper4(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper4.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper4,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper4,Class2)},_wrapNativeSuper(Class)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). + +`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). + +`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. + +`,4:`Couldn't generate valid rgb string from %s, it returned %s. + +`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. + +`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). + +`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). + +`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. + +`,9:`Please provide a number of steps to the modularScale helper. + +`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" + +`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. + +`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. + +`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. + +`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. + +`,16:`You must provide a template to this method. + +`,17:`You passed an unsupported selector state to this method. + +`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,19:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. + +`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,25:`fontFace expects localFonts to be an array. + +`,26:`fontFace expects fileFormats to be an array. + +`,27:`radialGradient requries at least 2 color-stops to properly render. + +`,28:`Please supply a filename to retinaImage() as the first argument. + +`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation + +`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) +To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') + +`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation + +`,34:`borderRadius expects a radius value as a string or number as the second argument. + +`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,36:`Property must be a string value. + +`,37:`Syntax Error at %s. + +`,38:`Formula contains a function that needs parentheses at %s. + +`,39:`Formula is missing closing parenthesis at %s. + +`,40:`Formula has too many closing parentheses at %s. + +`,41:`All values in a formula must have the same unit or be unitless. + +`,42:`Please provide a number of steps to the modularScale helper. + +`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. + +`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. + +`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. + +`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,48:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. + +`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. + +`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,53:`fontFace expects localFonts to be an array. + +`,54:`fontFace expects fileFormats to be an array. + +`,55:`fontFace expects a name of a font-family. + +`,56:`linearGradient requries at least 2 color-stops to properly render. + +`,57:`radialGradient requries at least 2 color-stops to properly render. + +`,58:`Please supply a filename to retinaImage() as the first argument. + +`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. + +`,62:`borderRadius expects a radius value as a string or number as the second argument. + +`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. + +`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). + +`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. + +`,67:`You must provide a template to this method. + +`,68:`You passed an unsupported selector state to this method. + +`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. + +`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. + +`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. + +`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. + +`,73:`Please provide a valid CSS variable. + +`,74:`CSS variable not found and no default was provided. + +`,75:`important requires a valid style object, got a %s instead. + +`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. + +`,77:`remToPx expects a value in "rem" but you provided it in "%s". + +`,78:`base must be set in "px" or "%" but you set it in "%s". +`};function format(){for(var _len=arguments.length,args2=new Array(_len),_key=0;_key<_len;_key++)args2[_key]=arguments[_key];var a=args2[0],b2=[],c2;for(c2=1;c21?_len2-1:0),_key2=1;_key2<_len2;_key2++)args2[_key2-1]=arguments[_key2];return _this=_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args2)))||this,_assertThisInitialized(_this)}return PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color2){return Math.round(color2*255)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert){if(convert===void 0&&(convert=convertToInt),saturation===0)return convert(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert(finalRed,finalGreen,finalBlue)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color2){if(typeof color2!="string")return color2;var normalizedColorName=color2.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color2}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color2){if(typeof color2!="string")throw new PolishedError(3);var normalizedColor=nameToHex(color2);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(""+hslMatched[1],10),saturation=parseInt(""+hslMatched[2],10)/100,lightness=parseInt(""+hslMatched[3],10)/100,rgbColorString="rgb("+hslToRgb(hue,saturation,lightness)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(""+hslaMatched[1],10),_saturation=parseInt(""+hslaMatched[2],10)/100,_lightness=parseInt(""+hslaMatched[3],10)/100,_rgbColorString="rgb("+hslToRgb(_hue,_saturation,_lightness)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color2){var red=color2.red/255,green=color2.green/255,blue=color2.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return color2.alpha!==void 0?{hue:0,saturation:0,lightness,alpha:color2.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value2,saturation,lightness):"rgba("+hslToRgb(value2,saturation,lightness)+","+alpha+")";if(typeof value2=="object"&&saturation===void 0&&lightness===void 0&&alpha===void 0)return value2.alpha>=1?hslToHex(value2.hue,value2.saturation,value2.lightness):"rgba("+hslToRgb(value2.hue,value2.saturation,value2.lightness)+","+value2.alpha+")";throw new PolishedError(2)}function rgb(value2,green,blue){if(typeof value2=="number"&&typeof green=="number"&&typeof blue=="number")return reduceHexValue$1("#"+numberToHex(value2)+numberToHex(green)+numberToHex(blue));if(typeof value2=="object"&&green===void 0&&blue===void 0)return reduceHexValue$1("#"+numberToHex(value2.red)+numberToHex(value2.green)+numberToHex(value2.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue=="string"&&typeof secondValue=="number"){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}else{if(typeof firstValue=="number"&&typeof secondValue=="number"&&typeof thirdValue=="number"&&typeof fourthValue=="number")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if(typeof firstValue=="object"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")"}throw new PolishedError(7)}var isRgb=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isRgba=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&typeof color2.alpha=="number"},isHsl=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isHsla=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&typeof color2.alpha=="number"};function toColorString(color2){if(typeof color2!="object")throw new PolishedError(8);if(isRgba(color2))return rgba(color2);if(isRgb(color2))return rgb(color2);if(isHsla(color2))return hsla(color2);if(isHsl(color2))return hsl(color2);throw new PolishedError(8)}function curried(f3,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f3.apply(this,combined):curried(f3,length,combined)}}function curry(f3){return curried(f3,f3.length,[])}function guard(lowerBoundary,upperBoundary,value2){return Math.max(lowerBoundary,Math.min(upperBoundary,value2))}function darken(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function transparentize(amount,color2){if(color2==="transparent")return color2;var parsedColor=parseToRgb(color2),alpha=typeof parsedColor.alpha=="number"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize,headerCommon=({theme})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),codeCommon=({theme})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base==="light"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:theme.base==="light"?theme.color.lighter:theme.color.border}),withReset=({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),withMargin={margin:"16px 0"},Link3=({href:input,...props})=>{let href=/^\//.test(input)?`./?path=${input}`:input,target=/^#.*/.test(input)?"_self":"_top";return import_react3.default.createElement("a",{href,target,...props})},A=newStyled(Link3)(withReset,({theme})=>({fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),Blockquote=newStyled.blockquote(withReset,withMargin,({theme})=>({borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),isReactChildString=child=>typeof child=="string",isInlineCodeRegex=/[\n\r]/g,DefaultCodeBlock=newStyled.code(({theme})=>({fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),codeCommon),StyledSyntaxHighlighter=newStyled(SyntaxHighlighter2)(({theme})=>({fontFamily:theme.typography.fonts.mono,fontSize:`${theme.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Code=({className,children,...props})=>{let language=(className||"").match(/lang-(\S+)/),childrenArray=import_react3.Children.toArray(children);return childrenArray.filter(isReactChildString).some(child=>child.match(isInlineCodeRegex))?import_react3.default.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,language:language?.[1]??"text",format:!1,...props},children):import_react3.default.createElement(DefaultCodeBlock,{...props,className},childrenArray)},Div=newStyled.div(withReset),DL=newStyled.dl(withReset,withMargin,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),H1=newStyled.h1(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold})),H2=newStyled.h2(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`})),H3=newStyled.h3(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.m1}px`})),H4=newStyled.h4(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s3}px`})),H5=newStyled.h5(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s2}px`})),H6=newStyled.h6(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark})),HR=newStyled.hr(({theme})=>({border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0})),Img=newStyled.img({maxWidth:"100%"}),LI=newStyled.li(withReset,({theme})=>({fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":codeCommon({theme})})),listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},OL=newStyled.ol(withReset,withMargin,listCommon,{listStyle:"decimal"}),P=newStyled.p(withReset,withMargin,({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":codeCommon({theme})})),Pre=newStyled.pre(withReset,withMargin,({theme})=>({fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),Span=newStyled.span(withReset,({theme})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),Table=newStyled.table(withReset,withMargin,({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:theme.base==="dark"?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),TT=newStyled.title(codeCommon),listCommon2={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},UL=newStyled.ul(withReset,withMargin,listCommon2,{listStyle:"disc"}),ResetWrapper=newStyled.div(withReset),components={h1:props=>import_react3.default.createElement(H1,{...nameSpaceClassNames(props,"h1")}),h2:props=>import_react3.default.createElement(H2,{...nameSpaceClassNames(props,"h2")}),h3:props=>import_react3.default.createElement(H3,{...nameSpaceClassNames(props,"h3")}),h4:props=>import_react3.default.createElement(H4,{...nameSpaceClassNames(props,"h4")}),h5:props=>import_react3.default.createElement(H5,{...nameSpaceClassNames(props,"h5")}),h6:props=>import_react3.default.createElement(H6,{...nameSpaceClassNames(props,"h6")}),pre:props=>import_react3.default.createElement(Pre,{...nameSpaceClassNames(props,"pre")}),a:props=>import_react3.default.createElement(A,{...nameSpaceClassNames(props,"a")}),hr:props=>import_react3.default.createElement(HR,{...nameSpaceClassNames(props,"hr")}),dl:props=>import_react3.default.createElement(DL,{...nameSpaceClassNames(props,"dl")}),blockquote:props=>import_react3.default.createElement(Blockquote,{...nameSpaceClassNames(props,"blockquote")}),table:props=>import_react3.default.createElement(Table,{...nameSpaceClassNames(props,"table")}),img:props=>import_react3.default.createElement(Img,{...nameSpaceClassNames(props,"img")}),div:props=>import_react3.default.createElement(Div,{...nameSpaceClassNames(props,"div")}),span:props=>import_react3.default.createElement(Span,{...nameSpaceClassNames(props,"span")}),li:props=>import_react3.default.createElement(LI,{...nameSpaceClassNames(props,"li")}),ul:props=>import_react3.default.createElement(UL,{...nameSpaceClassNames(props,"ul")}),ol:props=>import_react3.default.createElement(OL,{...nameSpaceClassNames(props,"ol")}),p:props=>import_react3.default.createElement(P,{...nameSpaceClassNames(props,"p")}),code:props=>import_react3.default.createElement(Code,{...nameSpaceClassNames(props,"code")}),tt:props=>import_react3.default.createElement(TT,{...nameSpaceClassNames(props,"tt")}),resetwrapper:props=>import_react3.default.createElement(ResetWrapper,{...nameSpaceClassNames(props,"resetwrapper")})},BadgeWrapper=newStyled.div(({theme})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:theme.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme,status})=>{switch(status){case"critical":return{color:theme.color.critical,background:theme.background.critical};case"negative":return{color:theme.color.negativeText,background:theme.background.negative,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.negativeText)}`:"none"};case"warning":return{color:theme.color.warningText,background:theme.background.warning,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.warningText)}`:"none"};case"neutral":return{color:theme.color.dark,background:theme.color.mediumlight,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.dark)}`:"none"};case"positive":return{color:theme.color.positiveText,background:theme.background.positive,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.positiveText)}`:"none"};default:return{}}}),Badge=({...props})=>import_react3.default.createElement(BadgeWrapper,{...props}),LEFT_BUTTON=0,isPlainLeftClick=e=>e.button===LEFT_BUTTON&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,cancelled=(e,cb)=>{isPlainLeftClick(e)&&(e.preventDefault(),cb(e))},LinkInner=newStyled.span(({withArrow})=>withArrow?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon})=>containsIcon?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),A2=newStyled.a(({theme})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:theme.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1(.07,theme.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1(.07,theme.color.secondary)}},"&:active":{color:curriedDarken$1(.1,theme.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1(.1,theme.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:theme.color.secondary}}}),({theme,secondary,tertiary})=>{let colors;return secondary&&(colors=[theme.textMutedColor,theme.color.dark,theme.color.darker]),tertiary&&(colors=[theme.color.dark,theme.color.darkest,theme.textMutedColor]),colors?{color:colors[0],"svg path:not([fill])":{fill:colors[0]},"&:hover":{color:colors[1],"svg path:not([fill])":{fill:colors[1]}},"&:active":{color:colors[2],"svg path:not([fill])":{fill:colors[2]}}}:{}},({nochrome})=>nochrome?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme,inverse})=>inverse?{color:theme.color.lightest,":not([fill])":{fill:theme.color.lightest},"&:hover":{color:theme.color.lighter,"svg path:not([fill])":{fill:theme.color.lighter}},"&:active":{color:theme.color.light,"svg path:not([fill])":{fill:theme.color.light}}}:{},({isButton:isButton2})=>isButton2?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Link22=({cancel=!0,children,onClick=void 0,withArrow=!1,containsIcon=!1,className=void 0,style=void 0,...rest})=>import_react3.default.createElement(A2,{...rest,onClick:onClick&&cancel?e=>cancelled(e,onClick):onClick,className},import_react3.default.createElement(LinkInner,{withArrow,containsIcon},children,withArrow&&import_react3.default.createElement(ChevronRightIcon,null))),DocumentWrapper=newStyled.div(({theme})=>({fontSize:`${theme.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},h2:{fontSize:`${theme.typography.size.m2}px`,borderBottom:`1px solid ${theme.appBorderColor}`},h3:{fontSize:`${theme.typography.size.m1}px`},h4:{fontSize:`${theme.typography.size.s3}px`},h5:{fontSize:`${theme.typography.size.s2}px`},h6:{fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:theme.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${theme.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${theme.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:theme.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${theme.color.mediumlight}`,backgroundColor:theme.color.lighter,borderRadius:3,color:theme.base==="dark"&&theme.color.darkest}})),languages=[],Comp=null,LazySyntaxHighlighter=(0,import_react3.lazy)(async()=>{let{SyntaxHighlighter:SyntaxHighlighter3}=await import("./syntaxhighlighter-JOJW2KGS-7BF26SBB.js");return languages.length>0&&(languages.forEach(args2=>{SyntaxHighlighter3.registerLanguage(...args2)}),languages=[]),Comp===null&&(Comp=SyntaxHighlighter3),{default:props=>import_react3.default.createElement(SyntaxHighlighter3,{...props})}}),LazySyntaxHighlighterWithFormatter=(0,import_react3.lazy)(async()=>{let[{SyntaxHighlighter:SyntaxHighlighter3},{formatter}]=await Promise.all([import("./syntaxhighlighter-JOJW2KGS-7BF26SBB.js"),import("./formatter-B5HCVTEV-7DCBOGO6.js")]);return languages.length>0&&(languages.forEach(args2=>{SyntaxHighlighter3.registerLanguage(...args2)}),languages=[]),Comp===null&&(Comp=SyntaxHighlighter3),{default:props=>import_react3.default.createElement(SyntaxHighlighter3,{...props,formatter})}}),SyntaxHighlighter22=props=>import_react3.default.createElement(import_react3.Suspense,{fallback:import_react3.default.createElement("div",null)},props.format!==!1?import_react3.default.createElement(LazySyntaxHighlighterWithFormatter,{...props}):import_react3.default.createElement(LazySyntaxHighlighter,{...props}));SyntaxHighlighter22.registerLanguage=(...args2)=>{if(Comp!==null){Comp.registerLanguage(...args2);return}languages.push(args2)};var toNumber=input=>typeof input=="number"?input:Number(input),Container=newStyled.div(({theme,col,row=1})=>col?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:col*theme.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${ignoreSsrWarning}`]:{marginLeft:0}}:{"& > *":{marginTop:row*theme.layoutMargin},[`& > *:first-child${ignoreSsrWarning}`]:{marginTop:0}},({theme,outer,col,row})=>{switch(!0){case!!(outer&&col):return{marginLeft:outer*theme.layoutMargin,marginRight:outer*theme.layoutMargin};case!!(outer&&row):return{marginTop:outer*theme.layoutMargin,marginBottom:outer*theme.layoutMargin};default:return{}}}),Spaced=({col,row,outer,children,...rest})=>{let outerAmount=toNumber(typeof outer=="number"||!outer?outer:col||row);return import_react3.default.createElement(Container,{col,row,outer:outerAmount,...rest},children)},Title=newStyled.div(({theme})=>({fontWeight:theme.typography.weight.bold})),Desc=newStyled.div(),Message=newStyled.div(({theme})=>({padding:30,textAlign:"center",color:theme.color.defaultText,fontSize:theme.typography.size.s2-1})),Placeholder=({children,...props})=>{let[title,desc]=import_react3.Children.toArray(children);return import_react3.default.createElement(Message,{...props},import_react3.default.createElement(Title,null,title),desc&&import_react3.default.createElement(Desc,null,desc))};function useResolvedElement(subscriber,refOrElement){var lastReportRef=(0,import_react3.useRef)(null),refOrElementRef=(0,import_react3.useRef)(null);refOrElementRef.current=refOrElement;var cbElementRef=(0,import_react3.useRef)(null);(0,import_react3.useEffect)(function(){evaluateSubscription()});var evaluateSubscription=(0,import_react3.useCallback)(function(){var cbElement=cbElementRef.current,refOrElement2=refOrElementRef.current,element=cbElement||(refOrElement2?refOrElement2 instanceof Element?refOrElement2:refOrElement2.current:null);lastReportRef.current&&lastReportRef.current.element===element&&lastReportRef.current.subscriber===subscriber||(lastReportRef.current&&lastReportRef.current.cleanup&&lastReportRef.current.cleanup(),lastReportRef.current={element,subscriber,cleanup:element?subscriber(element):void 0})},[subscriber]);return(0,import_react3.useEffect)(function(){return function(){lastReportRef.current&&lastReportRef.current.cleanup&&(lastReportRef.current.cleanup(),lastReportRef.current=null)}},[]),(0,import_react3.useCallback)(function(element){cbElementRef.current=element,evaluateSubscription()},[evaluateSubscription])}function extractSize(entry,boxProp,sizeType){return entry[boxProp]?entry[boxProp][0]?entry[boxProp][0][sizeType]:entry[boxProp][sizeType]:boxProp==="contentBoxSize"?entry.contentRect[sizeType==="inlineSize"?"width":"height"]:void 0}function useResizeObserver(opts){opts===void 0&&(opts={});var onResize=opts.onResize,onResizeRef=(0,import_react3.useRef)(void 0);onResizeRef.current=onResize;var round=opts.round||Math.round,resizeObserverRef=(0,import_react3.useRef)(),_useState=(0,import_react3.useState)({width:void 0,height:void 0}),size=_useState[0],setSize=_useState[1],didUnmount=(0,import_react3.useRef)(!1);(0,import_react3.useEffect)(function(){return didUnmount.current=!1,function(){didUnmount.current=!0}},[]);var previous=(0,import_react3.useRef)({width:void 0,height:void 0}),refCallback=useResolvedElement((0,import_react3.useCallback)(function(element){return(!resizeObserverRef.current||resizeObserverRef.current.box!==opts.box||resizeObserverRef.current.round!==round)&&(resizeObserverRef.current={box:opts.box,round,instance:new ResizeObserver(function(entries){var entry=entries[0],boxProp=opts.box==="border-box"?"borderBoxSize":opts.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",reportedWidth=extractSize(entry,boxProp,"inlineSize"),reportedHeight=extractSize(entry,boxProp,"blockSize"),newWidth=reportedWidth?round(reportedWidth):void 0,newHeight=reportedHeight?round(reportedHeight):void 0;if(previous.current.width!==newWidth||previous.current.height!==newHeight){var newSize={width:newWidth,height:newHeight};previous.current.width=newWidth,previous.current.height=newHeight,onResizeRef.current?onResizeRef.current(newSize):didUnmount.current||setSize(newSize)}})}),resizeObserverRef.current.instance.observe(element,{box:opts.box}),function(){resizeObserverRef.current&&resizeObserverRef.current.instance.unobserve(element)}},[opts.box,round]),opts.ref);return(0,import_react3.useMemo)(function(){return{ref:refCallback,width:size.width,height:size.height}},[refCallback,size.width,size.height])}var ZoomElementWrapper=newStyled.div(({scale=1,elementHeight})=>({height:elementHeight||"auto",transformOrigin:"top left",transform:`scale(${1/scale})`}));function ZoomElement({scale,children}){let componentWrapperRef=(0,import_react3.useRef)(null),[elementHeight,setElementHeight]=(0,import_react3.useState)(0),onResize=(0,import_react3.useCallback)(({height})=>{height&&setElementHeight(height/scale)},[scale]);return(0,import_react3.useEffect)(()=>{componentWrapperRef.current&&setElementHeight(componentWrapperRef.current.getBoundingClientRect().height)},[scale]),useResizeObserver({ref:componentWrapperRef,onResize}),import_react3.default.createElement(ZoomElementWrapper,{scale,elementHeight},import_react3.default.createElement("div",{ref:componentWrapperRef,className:"innerZoomElementWrapper"},children))}var ZoomIFrame=class extends import_react3.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef}=this.props;this.iframe=iFrameRef.current}shouldComponentUpdate(nextProps){let{scale,active}=this.props;return scale!==nextProps.scale&&this.setIframeInnerZoom(nextProps.scale),active!==nextProps.active&&this.iframe.setAttribute("data-is-storybook",nextProps.active?"true":"false"),nextProps.children.props.src!==this.props.children.props.src}setIframeInnerZoom(scale){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:"top left"})}catch{this.setIframeZoom(scale)}}setIframeZoom(scale){Object.assign(this.iframe.style,{width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:"top left"})}render(){let{children}=this.props;return import_react3.default.createElement(import_react3.default.Fragment,null,children)}},Zoom={Element:ZoomElement,IFrame:ZoomIFrame},{document:document24}=scope,ErrorName=newStyled.strong(({theme})=>({color:theme.color.orange})),ErrorImportant=newStyled.strong(({theme})=>({color:theme.color.ancillary,textDecoration:"underline"})),ErrorDetail=newStyled.em(({theme})=>({color:theme.textMutedColor})),firstLineRegex=/(Error): (.*)\n/,linesRegexChromium=/at (?:(.*) )?\(?(.+)\)?/,linesRegexFirefox=/([^@]+)?(?:\/<)?@(.+)?/,linesRegexSafari=/([^@]+)?@(.+)?/,ErrorFormatter=({error})=>{if(!error)return import_react3.default.createElement(import_react3.Fragment,null,"This error has no stack or message");if(!error.stack)return import_react3.default.createElement(import_react3.Fragment,null,error.message||"This error has no stack or message");let input=error.stack.toString();input&&error.message&&!input.includes(error.message)&&(input=`Error: ${error.message} + +${input}`);let match=input.match(firstLineRegex);if(!match)return import_react3.default.createElement(import_react3.Fragment,null,input);let[,type,name2]=match,rawLines=input.split(/\n/).slice(1),[,...lines]=rawLines.map(line=>{let result2=line.match(linesRegexChromium)||line.match(linesRegexFirefox)||line.match(linesRegexSafari);return result2?{name:(result2[1]||"").replace("/<",""),location:result2[2].replace(document24.location.origin,"")}:null}).filter(Boolean);return import_react3.default.createElement(import_react3.Fragment,null,import_react3.default.createElement("span",null,type),": ",import_react3.default.createElement(ErrorName,null,name2),import_react3.default.createElement("br",null),lines.map((l,i)=>l.name?import_react3.default.createElement(import_react3.Fragment,{key:i}," ","at ",import_react3.default.createElement(ErrorImportant,null,l.name)," (",import_react3.default.createElement(ErrorDetail,null,l.location),")",import_react3.default.createElement("br",null)):import_react3.default.createElement(import_react3.Fragment,{key:i}," ","at ",import_react3.default.createElement(ErrorDetail,null,l.location),import_react3.default.createElement("br",null))))},Button=(0,import_react3.forwardRef)(({asChild=!1,animation="none",size="small",variant="outline",padding="medium",disabled=!1,active=!1,onClick,...props},ref)=>{let Comp2="button";props.isLink&&(Comp2="a"),asChild&&(Comp2=$5e63c961fc1ce211$export$8c6ed5c666ac1360);let localVariant=variant,localSize=size,[isAnimating,setIsAnimating]=(0,import_react3.useState)(!1),handleClick=event=>{onClick&&onClick(event),animation!=="none"&&setIsAnimating(!0)};if((0,import_react3.useEffect)(()=>{let timer=setTimeout(()=>{isAnimating&&setIsAnimating(!1)},1e3);return()=>clearTimeout(timer)},[isAnimating]),props.primary&&(localVariant="solid",localSize="medium"),(props.secondary||props.tertiary||props.gray||props.outline||props.inForm)&&(localVariant="outline",localSize="medium"),props.small||props.isLink||props.primary||props.secondary||props.tertiary||props.gray||props.outline||props.inForm||props.containsIcon){let buttonContent=import_react3.default.Children.toArray(props.children).filter(e=>typeof e=="string"&&e!=="");deprecate(`Use of deprecated props in the button ${buttonContent.length>0?`"${buttonContent.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return import_react3.default.createElement(StyledButton,{as:Comp2,ref,variant:localVariant,size:localSize,padding,disabled,active,animating:isAnimating,animation,onClick:handleClick,...props})});Button.displayName="Button";var StyledButton=newStyled("button",{shouldForwardProp:prop=>isPropValid(prop)})(({theme,variant,size,disabled,active,animating,animation,padding})=>({border:0,cursor:disabled?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:padding==="small"&&size==="small"?"0 7px":padding==="small"&&size==="medium"?"0 9px":size==="small"?"0 10px":size==="medium"?"0 12px":0,height:size==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:disabled?.5:1,margin:0,fontSize:`${theme.typography.size.s1}px`,fontWeight:theme.typography.weight.bold,lineHeight:"1",background:variant==="solid"?theme.color.secondary:variant==="outline"?theme.button.background:variant==="ghost"&&active?theme.background.hoverable:"transparent",...variant==="ghost"?{".sb-bar &":{background:active?curriedTransparentize$1(.9,theme.barTextColor):"transparent",color:active?theme.barSelectedColor:theme.barTextColor,"&:hover":{color:theme.barHoverColor,background:curriedTransparentize$1(.86,theme.barHoverColor)},"&:active":{color:theme.barSelectedColor,background:curriedTransparentize$1(.9,theme.barSelectedColor)},"&:focus":{boxShadow:`${rgba(theme.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:variant==="solid"?theme.color.lightest:variant==="outline"?theme.input.color:variant==="ghost"&&active?theme.color.secondary:variant==="ghost"?theme.color.mediumdark:theme.input.color,boxShadow:variant==="outline"?`${theme.button.border} 0 0 0 1px inset`:"none",borderRadius:theme.input.borderRadius,flexShrink:0,"&:hover":{color:variant==="ghost"?theme.color.secondary:null,background:(()=>{let bgColor=theme.color.secondary;return variant==="solid"&&(bgColor=theme.color.secondary),variant==="outline"&&(bgColor=theme.button.background),variant==="ghost"?curriedTransparentize$1(.86,theme.color.secondary):theme.base==="light"?curriedDarken$1(.02,bgColor):curriedLighten$1(.03,bgColor)})()},"&:active":{color:variant==="ghost"?theme.color.secondary:null,background:(()=>{let bgColor=theme.color.secondary;return variant==="solid"&&(bgColor=theme.color.secondary),variant==="outline"&&(bgColor=theme.button.background),variant==="ghost"?theme.background.hoverable:theme.base==="light"?curriedDarken$1(.02,bgColor):curriedLighten$1(.03,bgColor)})()},"&:focus":{boxShadow:`${rgba(theme.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:animating&&animation!=="none"?`${theme.animation[animation]} 1000ms ease-out`:""}})),IconButton=(0,import_react3.forwardRef)(({padding="small",variant="ghost",...props},ref)=>import_react3.default.createElement(Button,{padding,variant,ref,...props}));IconButton.displayName="IconButton";var Wrapper=newStyled.label(({theme})=>({display:"flex",borderBottom:`1px solid ${theme.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Label=newStyled.span(({theme})=>({minWidth:100,fontWeight:theme.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Field=({label,children,...props})=>import_react3.default.createElement(Wrapper,{...props},label?import_react3.default.createElement(Label,null,import_react3.default.createElement("span",null,label)):null,children);Field.defaultProps={label:void 0};var index=import_react3.useLayoutEffect,use_isomorphic_layout_effect_browser_esm_default=index,useLatest=function(value2){var ref=React3.useRef(value2);return use_isomorphic_layout_effect_browser_esm_default(function(){ref.current=value2}),ref},updateRef=function(ref,value2){if(typeof ref=="function"){ref(value2);return}ref.current=value2},useComposedRef=function(libRef,userRef){var prevUserRef=(0,import_react3.useRef)();return(0,import_react3.useCallback)(function(instance){libRef.current=instance,prevUserRef.current&&updateRef(prevUserRef.current,null),prevUserRef.current=userRef,userRef&&updateRef(userRef,instance)},[userRef])},use_composed_ref_esm_default=useComposedRef,HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function(node){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key2){node.style.setProperty(key2,HIDDEN_TEXTAREA_STYLE[key2],"important")})},forceHiddenStyles$1=forceHiddenStyles,hiddenTextarea=null,getHeight=function(node,sizingData){var height=node.scrollHeight;return sizingData.sizingStyle.boxSizing==="border-box"?height+sizingData.borderSize:height-sizingData.paddingSize};function calculateNodeHeight(sizingData,value2,minRows,maxRows){minRows===void 0&&(minRows=1),maxRows===void 0&&(maxRows=1/0),hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles$1(hiddenTextarea)),hiddenTextarea.parentNode===null&&document.body.appendChild(hiddenTextarea);var paddingSize=sizingData.paddingSize,borderSize=sizingData.borderSize,sizingStyle=sizingData.sizingStyle,boxSizing=sizingStyle.boxSizing;Object.keys(sizingStyle).forEach(function(_key){var key2=_key;hiddenTextarea.style[key2]=sizingStyle[key2]}),forceHiddenStyles$1(hiddenTextarea),hiddenTextarea.value=value2;var height=getHeight(hiddenTextarea,sizingData);hiddenTextarea.value=value2,height=getHeight(hiddenTextarea,sizingData),hiddenTextarea.value="x";var rowHeight=hiddenTextarea.scrollHeight-paddingSize,minHeight=rowHeight*minRows;boxSizing==="border-box"&&(minHeight=minHeight+paddingSize+borderSize),height=Math.max(minHeight,height);var maxHeight=rowHeight*maxRows;return boxSizing==="border-box"&&(maxHeight=maxHeight+paddingSize+borderSize),height=Math.min(maxHeight,height),[height,rowHeight]}var noop=function(){},pick2=function(props,obj){return props.reduce(function(acc,prop){return acc[prop]=obj[prop],acc},{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE=!!document.documentElement.currentStyle,getSizingData=function(node){var style=window.getComputedStyle(node);if(style===null)return null;var sizingStyle=pick2(SIZING_STYLE,style),boxSizing=sizingStyle.boxSizing;if(boxSizing==="")return null;isIE&&boxSizing==="border-box"&&(sizingStyle.width=parseFloat(sizingStyle.width)+parseFloat(sizingStyle.borderRightWidth)+parseFloat(sizingStyle.borderLeftWidth)+parseFloat(sizingStyle.paddingRight)+parseFloat(sizingStyle.paddingLeft)+"px");var paddingSize=parseFloat(sizingStyle.paddingBottom)+parseFloat(sizingStyle.paddingTop),borderSize=parseFloat(sizingStyle.borderBottomWidth)+parseFloat(sizingStyle.borderTopWidth);return{sizingStyle,paddingSize,borderSize}},getSizingData$1=getSizingData;function useListener(target,type,listener){var latestListener=useLatest(listener);React3.useLayoutEffect(function(){var handler=function(ev){return latestListener.current(ev)};if(target)return target.addEventListener(type,handler),function(){return target.removeEventListener(type,handler)}},[])}var useWindowResizeListener=function(listener){useListener(window,"resize",listener)},useFontsLoadedListener=function(listener){useListener(document.fonts,"loadingdone",listener)},_excluded3=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],TextareaAutosize=function(_ref,userRef){var cacheMeasurements=_ref.cacheMeasurements,maxRows=_ref.maxRows,minRows=_ref.minRows,_ref$onChange=_ref.onChange,onChange=_ref$onChange===void 0?noop:_ref$onChange,_ref$onHeightChange=_ref.onHeightChange,onHeightChange=_ref$onHeightChange===void 0?noop:_ref$onHeightChange,props=_objectWithoutPropertiesLoose(_ref,_excluded3),isControlled=props.value!==void 0,libRef=React3.useRef(null),ref=use_composed_ref_esm_default(libRef,userRef),heightRef=React3.useRef(0),measurementsCacheRef=React3.useRef(),resizeTextarea=function(){var node=libRef.current,nodeSizingData=cacheMeasurements&&measurementsCacheRef.current?measurementsCacheRef.current:getSizingData$1(node);if(nodeSizingData){measurementsCacheRef.current=nodeSizingData;var _calculateNodeHeight=calculateNodeHeight(nodeSizingData,node.value||node.placeholder||"x",minRows,maxRows),height=_calculateNodeHeight[0],rowHeight=_calculateNodeHeight[1];heightRef.current!==height&&(heightRef.current=height,node.style.setProperty("height",height+"px","important"),onHeightChange(height,{rowHeight}))}},handleChange=function(event){isControlled||resizeTextarea(),onChange(event)};return React3.useLayoutEffect(resizeTextarea),useWindowResizeListener(resizeTextarea),useFontsLoadedListener(resizeTextarea),React3.createElement("textarea",_extends({},props,{onChange:handleChange,ref}))},index2=React3.forwardRef(TextareaAutosize),styleResets={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=({theme})=>({...styleResets,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:theme.input.color||"inherit",background:theme.input.background,boxShadow:`${theme.input.border} 0 0 0 1px inset`,borderRadius:theme.input.borderRadius,fontSize:theme.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${theme.color.lightest} inset`},"&::placeholder":{color:theme.textMutedColor,opacity:1}}),sizes=({size})=>{switch(size){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},alignment=({align})=>{switch(align){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},validation=({valid,theme})=>{switch(valid){case"valid":return{boxShadow:`${theme.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${theme.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${theme.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},Input=Object.assign(newStyled((0,import_react3.forwardRef)(function({size,valid,align,...props},ref){return import_react3.default.createElement("input",{...props,ref})}))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign(newStyled((0,import_react3.forwardRef)(function({size,valid,align,...props},ref){return import_react3.default.createElement("select",{...props,ref})}))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign(newStyled((0,import_react3.forwardRef)(function({size,valid,align,...props},ref){return import_react3.default.createElement(index2,{...props,ref})}))(styles,sizes,alignment,validation,({height=400})=>({overflow:"visible",maxHeight:height})),{displayName:"Textarea"}),Form=Object.assign(newStyled.form({boxSizing:"border-box",width:"100%"}),{Field,Input,Select,Textarea,Button}),LazyWithTooltip=(0,import_react3.lazy)(()=>import("./WithTooltip-Y7J54OF7-3AIPQNGM.js").then(mod=>({default:mod.WithTooltip}))),WithTooltip=props=>import_react3.default.createElement(import_react3.Suspense,{fallback:import_react3.default.createElement("div",null)},import_react3.default.createElement(LazyWithTooltip,{...props})),LazyWithTooltipPure=(0,import_react3.lazy)(()=>import("./WithTooltip-Y7J54OF7-3AIPQNGM.js").then(mod=>({default:mod.WithTooltipPure}))),WithTooltipPure=props=>import_react3.default.createElement(import_react3.Suspense,{fallback:import_react3.default.createElement("div",null)},import_react3.default.createElement(LazyWithTooltipPure,{...props})),Title2=newStyled.div(({theme})=>({fontWeight:theme.typography.weight.bold})),Desc2=newStyled.span(),Links=newStyled.div(({theme})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:theme.typography.weight.bold}})),Message2=newStyled.div(({theme})=>({color:theme.color.defaultText,lineHeight:"18px"})),MessageWrapper=newStyled.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=({title,desc,links})=>import_react3.default.createElement(MessageWrapper,null,import_react3.default.createElement(Message2,null,title&&import_react3.default.createElement(Title2,null,title),desc&&import_react3.default.createElement(Desc2,null,desc)),links&&import_react3.default.createElement(Links,null,links.map(({title:linkTitle,...other})=>import_react3.default.createElement(Link22,{...other,key:linkTitle},linkTitle))));TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=newStyled.div(({theme})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:theme.typography.weight.bold,color:theme.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:theme.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),TooltipNote=({note,...props})=>import_react3.default.createElement(Note,{...props},note),Title3=newStyled(({active,loading,disabled,...rest})=>import_react3.default.createElement("span",{...rest}))(({theme})=>({color:theme.color.defaultText,fontWeight:theme.typography.weight.regular}),({active,theme})=>active?{color:theme.color.secondary,fontWeight:theme.typography.weight.bold}:{},({loading,theme})=>loading?{display:"inline-block",flex:"none",...theme.animation.inlineGlow}:{},({disabled,theme})=>disabled?{color:curriedTransparentize$1(.7,theme.color.defaultText)}:{}),Right=newStyled.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Center=newStyled.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented})=>isIndented?{marginLeft:24}:{}),CenterText=newStyled.span(({theme})=>({fontSize:"11px",lineHeight:"14px"}),({active,theme})=>active?{color:theme.color.secondary}:{},({theme,disabled})=>disabled?{color:theme.textMutedColor}:{}),Left=newStyled.span(({active,theme})=>active?{color:theme.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Item=newStyled.a(({theme})=>({fontSize:theme.typography.size.s1,transition:"all 150ms ease-out",color:theme.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:theme.background.hoverable},"&:hover svg":{opacity:1}}),({disabled})=>disabled?{cursor:"not-allowed"}:{}),getItemProps=(0,import_memoizerific4.default)(100)((onClick,href,LinkWrapper)=>{let result2={};return onClick&&Object.assign(result2,{onClick}),href&&Object.assign(result2,{href}),LinkWrapper&&href&&Object.assign(result2,{to:href,as:LinkWrapper}),result2}),ListItem=({loading,title,center,right,icon,active,disabled,isIndented,href,onClick,LinkWrapper,...rest})=>{let itemProps=getItemProps(onClick,href,LinkWrapper),commonProps={active,disabled};return import_react3.default.createElement(Item,{...commonProps,...rest,...itemProps},icon&&import_react3.default.createElement(Left,{...commonProps},icon),title||center?import_react3.default.createElement(Center,{isIndented:!icon&&isIndented},title&&import_react3.default.createElement(Title3,{...commonProps,loading},title),center&&import_react3.default.createElement(CenterText,{...commonProps},center)):null,right&&import_react3.default.createElement(Right,{...commonProps},right))};ListItem.defaultProps={loading:!1,title:import_react3.default.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var ListItem_default=ListItem,List=newStyled.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme})=>({borderRadius:theme.appBorderRadius})),Item2=props=>{let{LinkWrapper,onClick:onClickFromProps,id,isIndented,...rest}=props,{title,href,active}=rest,onClick=(0,import_react3.useCallback)(event=>{onClickFromProps(event,rest)},[onClickFromProps]),hasOnClick=!!onClickFromProps;return import_react3.default.createElement(ListItem_default,{title,active,href,id:`list-item-${id}`,LinkWrapper,isIndented,...rest,...hasOnClick?{onClick}:{}})},TooltipLinkList=({links,LinkWrapper})=>{let hasIcon=links.some(link=>link.icon);return import_react3.default.createElement(List,null,links.map(({isGatsby,...p})=>import_react3.default.createElement(Item2,{key:p.id,LinkWrapper:isGatsby?LinkWrapper:null,isIndented:hasIcon,...p})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem_default.defaultProps.LinkWrapper};var isLink=obj=>typeof obj.props.href=="string",isButton=obj=>typeof obj.props.href!="string";function ForwardRefFunction({children,...rest},ref){let o={props:rest,ref};if(isLink(o))return import_react3.default.createElement("a",{ref:o.ref,...o.props},children);if(isButton(o))return import_react3.default.createElement("button",{ref:o.ref,type:"button",...o.props},children);throw new Error("invalid props")}var ButtonOrLink=(0,import_react3.forwardRef)(ForwardRefFunction);ButtonOrLink.displayName="ButtonOrLink";var TabButton=newStyled(ButtonOrLink,{shouldForwardProp:isPropValid})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:theme.barSelectedColor}}),({active,textColor,theme})=>active?{color:textColor||theme.barSelectedColor,borderBottomColor:theme.barSelectedColor}:{color:textColor||theme.barTextColor,borderBottomColor:"transparent","&:hover":{color:theme.barHoverColor}});TabButton.displayName="TabButton";var IconPlaceholder=newStyled.div(({theme})=>({width:14,height:14,backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`})),IconButtonSkeletonWrapper=newStyled.div(()=>({marginTop:6,padding:7,height:28})),IconButtonSkeleton=()=>import_react3.default.createElement(IconButtonSkeletonWrapper,null,import_react3.default.createElement(IconPlaceholder,null)),Side=newStyled.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable})=>scrollable?{flexShrink:0}:{},({left})=>left?{"& > *":{marginLeft:4}}:{},({right})=>right?{marginLeft:30,"& > *":{marginRight:4}}:{});Side.displayName="Side";var UnstyledBar=({children,className,scrollable})=>scrollable?import_react3.default.createElement(ScrollArea,{vertical:!1,className},children):import_react3.default.createElement("div",{className},children),Bar=newStyled(UnstyledBar)(({theme,scrollable=!0})=>({color:theme.barTextColor,width:"100%",height:40,flexShrink:0,overflow:scrollable?"auto":"hidden",overflowY:"hidden"}),({theme,border=!1})=>border?{boxShadow:`${theme.appBorderColor} 0 -1px 0 0 inset`,background:theme.barBg}:{});Bar.displayName="Bar";var BarInner=newStyled.div(({bgColor})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:bgColor||""})),FlexBar=({children,backgroundColor,className,...rest})=>{let[left,right]=import_react3.Children.toArray(children);return import_react3.default.createElement(Bar,{className:`sb-bar ${className}`,...rest},import_react3.default.createElement(BarInner,{bgColor:backgroundColor},import_react3.default.createElement(Side,{scrollable:rest.scrollable,left:!0},left),right?import_react3.default.createElement(Side,{right:!0},right):null))};FlexBar.displayName="FlexBar";var VisuallyHidden=newStyled.div(({active})=>active?{display:"block"}:{display:"none"}),childrenToList=children=>import_react3.Children.toArray(children).map(({props:{title,id,color:color2,children:childrenOfChild}})=>{let content=Array.isArray(childrenOfChild)?childrenOfChild[0]:childrenOfChild;return{title,id,...color2?{color:color2}:{},render:typeof content=="function"?content:({active})=>import_react3.default.createElement(VisuallyHidden,{active,role:"tabpanel"},content)}}),CollapseIcon2=newStyled.span(({theme,isActive})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:isActive?theme.color.secondary:theme.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),AddonButton=newStyled(TabButton)(({active,theme,preActive})=>` + color: ${preActive||active?theme.barSelectedColor:theme.barTextColor}; + .addon-collapsible-icon { + color: ${preActive||active?theme.barSelectedColor:theme.barTextColor}; + } + &:hover { + color: ${theme.barHoverColor}; + .addon-collapsible-icon { + color: ${theme.barHoverColor}; + } + } + `);function useList(list){let tabBarRef=(0,import_react3.useRef)(),addonsRef=(0,import_react3.useRef)(),tabRefs=(0,import_react3.useRef)(new Map),{width:tabBarWidth=1}=useResizeObserver({ref:tabBarRef}),[visibleList,setVisibleList]=(0,import_react3.useState)(list),[invisibleList,setInvisibleList]=(0,import_react3.useState)([]),previousList=(0,import_react3.useRef)(list),AddonTab=(0,import_react3.useCallback)(({menuName,actions})=>{let isAddonsActive=invisibleList.some(({active})=>active),[isTooltipVisible,setTooltipVisible]=(0,import_react3.useState)(!1);return import_react3.default.createElement(import_react3.default.Fragment,null,import_react3.default.createElement(WithToolTipState,{interactive:!0,visible:isTooltipVisible,onVisibleChange:setTooltipVisible,placement:"bottom",delayHide:100,tooltip:import_react3.default.createElement(TooltipLinkList,{links:invisibleList.map(({title,id,color:color2,active})=>({id,title,color:color2,active,onClick:e=>{e.preventDefault(),actions.onSelect(id)}}))})},import_react3.default.createElement(AddonButton,{ref:addonsRef,active:isAddonsActive,preActive:isTooltipVisible,style:{visibility:invisibleList.length?"visible":"hidden"},"aria-hidden":!invisibleList.length,className:"tabbutton",type:"button",role:"tab"},menuName,import_react3.default.createElement(CollapseIcon2,{className:"addon-collapsible-icon",isActive:isAddonsActive||isTooltipVisible}))),invisibleList.map(({title,id,color:color2},index3)=>{let indexId=`index-${index3}`;return import_react3.default.createElement(TabButton,{id:`tabbutton-${L(id)??indexId}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:ref=>{tabRefs.current.set(id,ref)},className:"tabbutton",type:"button",key:id,textColor:color2,role:"tab"},title)}))},[invisibleList]),setTabLists=(0,import_react3.useCallback)(()=>{if(!tabBarRef.current||!addonsRef.current)return;let{x:x2,width}=tabBarRef.current.getBoundingClientRect(),{width:widthAddonsTab}=addonsRef.current.getBoundingClientRect(),rightBorder=invisibleList.length?x2+width-widthAddonsTab:x2+width,newVisibleList=[],widthSum=0,newInvisibleList=list.filter(item=>{let{id}=item,tabButton=tabRefs.current.get(id),{width:tabWidth=0}=tabButton?.getBoundingClientRect()||{},crossBorder=x2+widthSum+tabWidth>rightBorder;return(!crossBorder||!tabButton)&&newVisibleList.push(item),widthSum+=tabWidth,crossBorder});(newVisibleList.length!==visibleList.length||previousList.current!==list)&&(setVisibleList(newVisibleList),setInvisibleList(newInvisibleList),previousList.current=list)},[invisibleList.length,list,visibleList]);return(0,import_react3.useLayoutEffect)(setTabLists,[setTabLists,tabBarWidth]),{tabRefs,addonsRef,tabBarRef,visibleList,invisibleList,AddonTab}}var Wrapper2=newStyled.div(({theme})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:theme.background.content})),Content=newStyled.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Title4=newStyled.div(({theme})=>({fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,textAlign:"center",color:theme.textColor})),Description=newStyled.div(({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s2-1,textAlign:"center",color:theme.textMutedColor})),EmptyTabContent=({title,description,footer})=>import_react3.default.createElement(Wrapper2,null,import_react3.default.createElement(Content,null,import_react3.default.createElement(Title4,null,title),description&&import_react3.default.createElement(Description,null,description)),footer),ignoreSsrWarning2="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Wrapper3=newStyled.div(({theme,bordered})=>bordered?{backgroundClip:"padding-box",border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute})=>absolute?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),TabBar=newStyled.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});TabBar.displayName="TabBar";var Content2=newStyled.div({display:"block",position:"relative"},({theme})=>({fontSize:theme.typography.size.s2-1,background:theme.background.content}),({bordered,theme})=>bordered?{borderRadius:`0 0 ${theme.appBorderRadius-1}px ${theme.appBorderRadius-1}px`}:{},({absolute,bordered})=>absolute?{height:`calc(100% - ${bordered?42:40}px)`,position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:40+(bordered?1:0),overflow:"auto",[`& > *:first-child${ignoreSsrWarning2}`]:{position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:0+(bordered?1:0),height:`calc(100% - ${bordered?2:0}px)`,overflow:"auto"}}:{}),TabWrapper=({active,render,children})=>import_react3.default.createElement(VisuallyHidden,{active},render?render():children),Tabs=(0,import_react3.memo)(({children,selected,actions,absolute,bordered,tools,backgroundColor,id:htmlId,menuName,emptyState,showToolsWhenEmpty})=>{let idList=childrenToList(children).map(i=>i.id).join(","),list=(0,import_react3.useMemo)(()=>childrenToList(children).map((i,index3)=>({...i,active:selected?i.id===selected:index3===0})),[selected,idList]),{visibleList,tabBarRef,tabRefs,AddonTab}=useList(list),EmptyContent=emptyState??import_react3.default.createElement(EmptyTabContent,{title:"Nothing found"});return!showToolsWhenEmpty&&list.length===0?EmptyContent:import_react3.default.createElement(Wrapper3,{absolute,bordered,id:htmlId},import_react3.default.createElement(FlexBar,{scrollable:!1,border:!0,backgroundColor},import_react3.default.createElement(TabBar,{style:{whiteSpace:"normal"},ref:tabBarRef,role:"tablist"},visibleList.map(({title,id,active,color:color2},index3)=>{let indexId=`index-${index3}`;return import_react3.default.createElement(TabButton,{id:`tabbutton-${L(id)??indexId}`,ref:ref=>{tabRefs.current.set(id,ref)},className:`tabbutton ${active?"tabbutton-active":""}`,type:"button",key:id,active,textColor:color2,onClick:e=>{e.preventDefault(),actions.onSelect(id)},role:"tab"},typeof title=="function"?import_react3.default.createElement("title",null):title)}),import_react3.default.createElement(AddonTab,{menuName,actions})),tools),import_react3.default.createElement(Content2,{id:"panel-tab-content",bordered,absolute},list.length?list.map(({id,active,render})=>import_react3.default.createElement(render,{key:id,active},null)):EmptyContent))});Tabs.displayName="Tabs";Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:"Tabs"};var TabsState=class extends import_react3.Component{constructor(props){super(props),this.handlers={onSelect:id=>this.setState({selected:id})},this.state={selected:props.initial}}render(){let{bordered=!1,absolute=!1,children,backgroundColor,menuName}=this.props,{selected}=this.state;return import_react3.default.createElement(Tabs,{bordered,absolute,selected,backgroundColor,menuName,actions:this.handlers},children)}};TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var Separator=newStyled.span(({theme})=>({width:1,height:20,background:theme.appBorderColor,marginLeft:2,marginRight:2}),({force})=>force?{}:{"& + &":{display:"none"}});Separator.displayName="Separator";var interleaveSeparators=list=>list.reduce((acc,item,index3)=>item?import_react3.default.createElement(import_react3.Fragment,{key:item.id||item.key||`f-${index3}`},acc,index3>0?import_react3.default.createElement(Separator,{key:`s-${index3}`}):null,item.render()||item):acc,null),usePrevious=value2=>{let ref=(0,import_react3.useRef)();return(0,import_react3.useEffect)(()=>{ref.current=value2},[value2]),ref.current},useUpdate=(update2,value2)=>{let previousValue=usePrevious(value2);return update2?value2:previousValue},AddonPanel=({active,children})=>import_react3.default.createElement("div",{hidden:!active},useUpdate(active,children)),NEW_ICON_MAP=dist_exports5,Svg=newStyled.svg` + display: inline-block; + shape-rendering: inherit; + vertical-align: middle; + fill: currentColor; + path { + fill: currentColor; + } +`,Icons=({icon,useSymbol,__suppressDeprecationWarning=!1,...props})=>{__suppressDeprecationWarning||deprecate(`Use of the deprecated Icons ${`(${icon})`||""} component detected. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`);let findIcon=icons[icon]||null;if(!findIcon)return logger.warn(`Use of an unknown prop ${`(${icon})`||""} in the Icons component. The Icons component is deprecated. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`),null;let Icon=NEW_ICON_MAP[findIcon];return import_react3.default.createElement(Icon,{...props})},Symbols=(0,import_react3.memo)(function({icons:keys2=Object.keys(icons)}){return import_react3.default.createElement(Svg,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},keys2.map(key2=>import_react3.default.createElement("symbol",{id:`icon--${key2}`,key:key2},icons[key2])))}),icons={user:"UserIcon",useralt:"UserAltIcon",useradd:"UserAddIcon",users:"UsersIcon",profile:"ProfileIcon",facehappy:"FaceHappyIcon",faceneutral:"FaceNeutralIcon",facesad:"FaceSadIcon",accessibility:"AccessibilityIcon",accessibilityalt:"AccessibilityAltIcon",arrowup:"ChevronUpIcon",arrowdown:"ChevronDownIcon",arrowleft:"ChevronLeftIcon",arrowright:"ChevronRightIcon",arrowupalt:"ArrowUpIcon",arrowdownalt:"ArrowDownIcon",arrowleftalt:"ArrowLeftIcon",arrowrightalt:"ArrowRightIcon",expandalt:"ExpandAltIcon",collapse:"CollapseIcon",expand:"ExpandIcon",unfold:"UnfoldIcon",transfer:"TransferIcon",redirect:"RedirectIcon",undo:"UndoIcon",reply:"ReplyIcon",sync:"SyncIcon",upload:"UploadIcon",download:"DownloadIcon",back:"BackIcon",proceed:"ProceedIcon",refresh:"RefreshIcon",globe:"GlobeIcon",compass:"CompassIcon",location:"LocationIcon",pin:"PinIcon",time:"TimeIcon",dashboard:"DashboardIcon",timer:"TimerIcon",home:"HomeIcon",admin:"AdminIcon",info:"InfoIcon",question:"QuestionIcon",support:"SupportIcon",alert:"AlertIcon",email:"EmailIcon",phone:"PhoneIcon",link:"LinkIcon",unlink:"LinkBrokenIcon",bell:"BellIcon",rss:"RSSIcon",sharealt:"ShareAltIcon",share:"ShareIcon",circle:"CircleIcon",circlehollow:"CircleHollowIcon",bookmarkhollow:"BookmarkHollowIcon",bookmark:"BookmarkIcon",hearthollow:"HeartHollowIcon",heart:"HeartIcon",starhollow:"StarHollowIcon",star:"StarIcon",certificate:"CertificateIcon",verified:"VerifiedIcon",thumbsup:"ThumbsUpIcon",shield:"ShieldIcon",basket:"BasketIcon",beaker:"BeakerIcon",hourglass:"HourglassIcon",flag:"FlagIcon",cloudhollow:"CloudHollowIcon",edit:"EditIcon",cog:"CogIcon",nut:"NutIcon",wrench:"WrenchIcon",ellipsis:"EllipsisIcon",check:"CheckIcon",form:"FormIcon",batchdeny:"BatchDenyIcon",batchaccept:"BatchAcceptIcon",controls:"ControlsIcon",plus:"PlusIcon",closeAlt:"CloseAltIcon",cross:"CrossIcon",trash:"TrashIcon",pinalt:"PinAltIcon",unpin:"UnpinIcon",add:"AddIcon",subtract:"SubtractIcon",close:"CloseIcon",delete:"DeleteIcon",passed:"PassedIcon",changed:"ChangedIcon",failed:"FailedIcon",clear:"ClearIcon",comment:"CommentIcon",commentadd:"CommentAddIcon",requestchange:"RequestChangeIcon",comments:"CommentsIcon",lock:"LockIcon",unlock:"UnlockIcon",key:"KeyIcon",outbox:"OutboxIcon",credit:"CreditIcon",button:"ButtonIcon",type:"TypeIcon",pointerdefault:"PointerDefaultIcon",pointerhand:"PointerHandIcon",browser:"BrowserIcon",tablet:"TabletIcon",mobile:"MobileIcon",watch:"WatchIcon",sidebar:"SidebarIcon",sidebaralt:"SidebarAltIcon",sidebaralttoggle:"SidebarAltToggleIcon",sidebartoggle:"SidebarToggleIcon",bottombar:"BottomBarIcon",bottombartoggle:"BottomBarToggleIcon",cpu:"CPUIcon",database:"DatabaseIcon",memory:"MemoryIcon",structure:"StructureIcon",box:"BoxIcon",power:"PowerIcon",photo:"PhotoIcon",component:"ComponentIcon",grid:"GridIcon",outline:"OutlineIcon",photodrag:"PhotoDragIcon",search:"SearchIcon",zoom:"ZoomIcon",zoomout:"ZoomOutIcon",zoomreset:"ZoomResetIcon",eye:"EyeIcon",eyeclose:"EyeCloseIcon",lightning:"LightningIcon",lightningoff:"LightningOffIcon",contrast:"ContrastIcon",switchalt:"SwitchAltIcon",mirror:"MirrorIcon",grow:"GrowIcon",paintbrush:"PaintBrushIcon",ruler:"RulerIcon",stop:"StopIcon",camera:"CameraIcon",video:"VideoIcon",speaker:"SpeakerIcon",play:"PlayIcon",playback:"PlayBackIcon",playnext:"PlayNextIcon",rewind:"RewindIcon",fastforward:"FastForwardIcon",stopalt:"StopAltIcon",sidebyside:"SideBySideIcon",stacked:"StackedIcon",sun:"SunIcon",moon:"MoonIcon",book:"BookIcon",document:"DocumentIcon",copy:"CopyIcon",category:"CategoryIcon",folder:"FolderIcon",print:"PrintIcon",graphline:"GraphLineIcon",calendar:"CalendarIcon",graphbar:"GraphBarIcon",menu:"MenuIcon",menualt:"MenuIcon",filter:"FilterIcon",docchart:"DocChartIcon",doclist:"DocListIcon",markup:"MarkupIcon",bold:"BoldIcon",paperclip:"PaperClipIcon",listordered:"ListOrderedIcon",listunordered:"ListUnorderedIcon",paragraph:"ParagraphIcon",markdown:"MarkdownIcon",repository:"RepoIcon",commit:"CommitIcon",branch:"BranchIcon",pullrequest:"PullRequestIcon",merge:"MergeIcon",apple:"AppleIcon",linux:"LinuxIcon",ubuntu:"UbuntuIcon",windows:"WindowsIcon",storybook:"StorybookIcon",azuredevops:"AzureDevOpsIcon",bitbucket:"BitbucketIcon",chrome:"ChromeIcon",chromatic:"ChromaticIcon",componentdriven:"ComponentDrivenIcon",discord:"DiscordIcon",facebook:"FacebookIcon",figma:"FigmaIcon",gdrive:"GDriveIcon",github:"GithubIcon",gitlab:"GitlabIcon",google:"GoogleIcon",graphql:"GraphqlIcon",medium:"MediumIcon",redux:"ReduxIcon",twitter:"TwitterIcon",youtube:"YoutubeIcon",vscode:"VSCodeIcon"},StorybookLogo=({alt,...props})=>import_react3.default.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...props,role:"img"},alt?import_react3.default.createElement("title",null,alt):null,import_react3.default.createElement("defs",null,import_react3.default.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),import_react3.default.createElement("g",{fill:"none",fillRule:"evenodd"},import_react3.default.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),import_react3.default.createElement("mask",{id:"b",fill:"#fff"},import_react3.default.createElement("use",{xlinkHref:"#a"})),import_react3.default.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),import_react3.default.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),StorybookIcon2=props=>import_react3.default.createElement("svg",{viewBox:"0 0 64 64",...props},import_react3.default.createElement("title",null,"Storybook icon"),import_react3.default.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},import_react3.default.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),import_react3.default.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),import_react3.default.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),rotate360=keyframes` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,LoaderWrapper=newStyled.div(({size=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(size/2),marginLeft:-(size/2),height:size,width:size,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${rotate360} 0.7s linear infinite`,mixBlendMode:"difference"})),ProgressWrapper=newStyled.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=newStyled.div(({theme})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,theme.color.secondary),overflow:"hidden",cursor:"progress"})),ProgressBar=newStyled.div(({theme})=>({position:"absolute",top:0,left:0,height:"100%",background:theme.color.secondary})),ProgressMessage=newStyled.div(({theme})=>({minHeight:"2em",fontSize:`${theme.typography.size.s1}px`,color:theme.barTextColor})),ErrorIcon=newStyled(LightningOffIcon)(({theme})=>({width:20,height:20,marginBottom:"0.5rem",color:theme.textMutedColor})),ellipsis=keyframes` + from { content: "..." } + 33% { content: "." } + 66% { content: ".." } + to { content: "..." } +`,Ellipsis=newStyled.span({"&::after":{content:"'...'",animation:`${ellipsis} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Loader=({progress,error,size,...props})=>{if(error)return import_react3.default.createElement(ProgressWrapper,{"aria-label":error.toString(),"aria-live":"polite",role:"status",...props},import_react3.default.createElement(ErrorIcon,null),import_react3.default.createElement(ProgressMessage,null,error.message));if(progress){let{value:value2,modules}=progress,{message}=progress;return modules&&(message+=` ${modules.complete} / ${modules.total} modules`),import_react3.default.createElement(ProgressWrapper,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":value2*100,"aria-valuetext":message,role:"progressbar",...props},import_react3.default.createElement(ProgressTrack,null,import_react3.default.createElement(ProgressBar,{style:{width:`${value2*100}%`}})),import_react3.default.createElement(ProgressMessage,null,message,value2<1&&import_react3.default.createElement(Ellipsis,{key:message})))}return import_react3.default.createElement(LoaderWrapper,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size,...props})};function parseQuery(queryString){let query={},pairs=queryString.split("&");for(let i=0;i{let[url,paramsStr]=baseUrl.split("?"),params=paramsStr?{...parseQuery(paramsStr),...additionalParams,id:storyId}:{...additionalParams,id:storyId};return`${url}?${Object.entries(params).map(item=>`${item[0]}=${item[1]}`).join("&")}`},Code2=newStyled.pre` + line-height: 18px; + padding: 11px 1rem; + white-space: pre-wrap; + background: rgba(0, 0, 0, 0.05); + color: ${color.darkest}; + border-radius: 3px; + margin: 1rem 0; + width: 100%; + display: block; + overflow: hidden; + font-family: ${typography.fonts.mono}; + font-size: ${typography.size.s2-1}px; +`,ClipboardCode=({code,...props})=>import_react3.default.createElement(Code2,{id:"clipboard-code",...props},code),components2=components,resetComponents={};Object.keys(components).forEach(key2=>{resetComponents[key2]=(0,import_react3.forwardRef)((props,ref)=>(0,import_react3.createElement)(key2,{...props,ref}))});export{require_lib,useNavigate2,Link2,Location,Match,Route2,LocationProvider,dist_exports,require_root2 as require_root,require_isObject,CHANNEL_CREATED,FORCE_REMOUNT,PRELOAD_ENTRIES,PREVIEW_BUILDER_PROGRESS,SET_CURRENT_STORY,STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL,TELEMETRY_ERROR,dist_exports2,require_store2,Addon_TypesEnum,dist_exports4 as dist_exports3,require_isSymbol,SearchIcon,ZoomIcon,ZoomOutIcon,ZoomResetIcon,EyeIcon,EyeCloseIcon,LightningIcon,DocumentIcon,MenuIcon,StorybookIcon,GithubIcon,SidebarAltIcon,BottomBarIcon,BottomBarToggleIcon,CogIcon,WandIcon,CheckIcon,CloseAltIcon,TrashIcon,CloseIcon,LockIcon,InfoIcon,AlertIcon,LinkIcon,ShareAltIcon,CircleIcon,HeartIcon,ChevronDownIcon,ArrowLeftIcon,ExpandAltIcon,CollapseIcon,ExpandIcon,SyncIcon,GlobeIcon,TimeIcon,dist_exports5 as dist_exports4,createBrowserChannel,dist_exports3 as dist_exports5,merge_default,eventToShortcut,shortcutMatchesShortcut,shortcutToHumanString,addons,ManagerProvider,ManagerConsumer,useStorybookState,useStorybookApi,typesX,dist_exports6,ProviderDoesNotExtendBaseProviderError,UncaughtManagerError,manager_errors_exports,Badge,Link22,Spaced,Zoom,ErrorFormatter,Button,IconButton,Form,WithTooltip,TooltipLinkList,TabButton,EmptyTabContent,TabBar,Tabs,Separator,Icons,StorybookLogo,Loader,getStoryHref,dist_exports7}; diff --git a/docs/sb-manager/chunk-TZAR34JC.js b/docs/sb-manager/chunk-TZAR34JC.js new file mode 100644 index 0000000..5865294 --- /dev/null +++ b/docs/sb-manager/chunk-TZAR34JC.js @@ -0,0 +1,6 @@ +import{_extends,_objectWithoutPropertiesLoose,logger,newStyled,require_react,require_react_dom,scope}from"./chunk-UOBNU442.js";import{__commonJS2 as __commonJS,__toESM,__toESM2,require_memoizerific}from"./chunk-XP3HGWTR.js";var require_markdown=__commonJS({"../../node_modules/refractor/lang/markdown.js"(exports,module){module.exports=markdown,markdown.displayName="markdown",markdown.aliases=["md"];function markdown(Prism){(function(Prism2){var inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(pattern){return pattern=pattern.replace(//g,function(){return inner}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+pattern+")")}var tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism2.languages.markdown=Prism2.languages.extend("markup",{}),Prism2.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism2.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism2.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism2.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(token){["url","bold","italic","strike","code-snippet"].forEach(function(inside){token!==inside&&(Prism2.languages.markdown[token].inside.content.inside[inside]=Prism2.languages.markdown[inside])})}),Prism2.hooks.add("after-tokenize",function(env){if(env.language!=="markdown"&&env.language!=="md")return;function walkTokens(tokens){if(!(!tokens||typeof tokens=="string"))for(var i=0,l=tokens.length;i",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(html){var text=html.replace(tagPattern,"");return text=text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,code){if(code=code.toLowerCase(),code[0]==="#"){var value;return code[1]==="x"?value=parseInt(code.slice(2),16):value=Number(code.slice(1)),fromCodePoint(value)}else{var known=KNOWN_ENTITY_NAMES[code];return known||m}}),text}Prism2.languages.md=Prism2.languages.markdown})(Prism)}}});var require_yaml=__commonJS({"../../node_modules/refractor/lang/yaml.js"(exports,module){module.exports=yaml,yaml.displayName="yaml",yaml.aliases=["yml"];function yaml(Prism){(function(Prism2){var anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||"").replace(/m/g,"")+"m";var pattern=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return value});return RegExp(pattern,flags)}Prism2.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return"(?:"+plainKey+"|"+string+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},Prism2.languages.yml=Prism2.languages.yaml})(Prism)}}});var require_typescript=__commonJS({"../../node_modules/refractor/lang/typescript.js"(exports,module){module.exports=typescript,typescript.displayName="typescript",typescript.aliases=["ts"];function typescript(Prism){(function(Prism2){Prism2.languages.typescript=Prism2.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism2.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism2.languages.typescript.parameter,delete Prism2.languages.typescript["literal-property"];var typeInside=Prism2.languages.extend("typescript",{});delete typeInside["class-name"],Prism2.languages.typescript["class-name"].inside=typeInside,Prism2.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism2.languages.ts=Prism2.languages.typescript})(Prism)}}});var require_jsx=__commonJS({"../../node_modules/refractor/lang/jsx.js"(exports,module){module.exports=jsx,jsx.displayName="jsx",jsx.aliases=[];function jsx(Prism){(function(Prism2){var javascript=Prism2.util.clone(Prism2.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re(source,flags){return source=source.replace(//g,function(){return space}).replace(//g,function(){return braces}).replace(//g,function(){return spread}),RegExp(source,flags)}spread=re(spread).source,Prism2.languages.jsx=Prism2.languages.extend("markup",javascript),Prism2.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),Prism2.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism2.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism2.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism2.languages.jsx.tag.inside.comment=javascript.comment,Prism2.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:Prism2.languages.jsx}},Prism2.languages.jsx.tag),Prism2.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism2.languages.jsx}}},Prism2.languages.jsx.tag);var stringifyToken=function(token){return token?typeof token=="string"?token:typeof token.content=="string"?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function(tokens){for(var openedTags=[],i=0;i0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():token.content[token.content.length-1].content==="/>"||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&token.type==="punctuation"&&token.content==="{"?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&token.type==="punctuation"&&token.content==="}"?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||typeof token=="string")&&openedTags.length>0&&openedTags[openedTags.length-1].openedBraces===0){var plainText=stringifyToken(token);i0&&(typeof tokens[i-1]=="string"||tokens[i-1].type==="plain-text")&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism2.Token("plain-text",plainText,null,plainText)}token.content&&typeof token.content!="string"&&walkTokens(token.content)}};Prism2.hooks.add("after-tokenize",function(env){env.language!=="jsx"&&env.language!=="tsx"||walkTokens(env.tokens)})})(Prism)}}});var require_tsx=__commonJS({"../../node_modules/refractor/lang/tsx.js"(exports,module){var refractorJsx=require_jsx(),refractorTypescript=require_typescript();module.exports=tsx,tsx.displayName="tsx",tsx.aliases=[];function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism2){var typescript=Prism2.util.clone(Prism2.languages.typescript);Prism2.languages.tsx=Prism2.languages.extend("jsx",typescript),delete Prism2.languages.tsx.parameter,delete Prism2.languages.tsx["literal-property"];var tag=Prism2.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0}(Prism)}}});var require_clike=__commonJS({"../../node_modules/refractor/lang/clike.js"(exports,module){module.exports=clike,clike.displayName="clike",clike.aliases=[];function clike(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}}});var require_javascript=__commonJS({"../../node_modules/refractor/lang/javascript.js"(exports,module){module.exports=javascript,javascript.displayName="javascript",javascript.aliases=["js"];function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript}}});var require_css=__commonJS({"../../node_modules/refractor/lang/css.js"(exports,module){module.exports=css,css.displayName="css",css.aliases=[];function css(Prism){(function(Prism2){var string=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism2.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism2.languages.css.atrule.inside.rest=Prism2.languages.css;var markup=Prism2.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"))})(Prism)}}});var require_markup=__commonJS({"../../node_modules/refractor/lang/markup.js"(exports,module){module.exports=markup,markup.displayName="markup",markup.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function markup(Prism){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(env){env.type==="entity"&&(env.attributes.title=env.content.value.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^$/i;var inside={"included-cdata":{pattern://i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return tagName}),"i"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore("markup","cdata",def)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml}}});var require_immutable=__commonJS({"../../node_modules/xtend/immutable.js"(exports,module){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){for(var target={},i=0;i4&&normal.slice(0,4)===data&&valid.test(value)&&(value.charAt(4)==="-"?prop=datasetToProperty(value):value=datasetToAttribute(value),Type=DefinedInfo),new Type(prop,value))}function datasetToProperty(attribute){var value=attribute.slice(5).replace(dash,camelcase);return data+value.charAt(0).toUpperCase()+value.slice(1)}function datasetToAttribute(property){var value=property.slice(4);return dash.test(value)?property:(value=value.replace(cap,kebab),value.charAt(0)!=="-"&&(value="-"+value),data+value)}function kebab($0){return"-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}}}),require_hast_util_parse_selector=__commonJS({"../../node_modules/hast-util-parse-selector/index.js"(exports,module){module.exports=parse;var search=/[#.]/g;function parse(selector,defaultTagName){for(var value=selector||"",name=defaultTagName||"div",props={},start=0,subvalue,previous,match;start",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),require_character_reference_invalid=__commonJS({"../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(exports,module){module.exports={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"}}}),require_is_decimal=__commonJS({"../../node_modules/refractor/node_modules/is-decimal/index.js"(exports,module){module.exports=decimal;function decimal(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=48&&code<=57}}}),require_is_hexadecimal=__commonJS({"../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(exports,module){module.exports=hexadecimal;function hexadecimal(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57}}}),require_is_alphabetical=__commonJS({"../../node_modules/refractor/node_modules/is-alphabetical/index.js"(exports,module){module.exports=alphabetical;function alphabetical(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90}}}),require_is_alphanumerical=__commonJS({"../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(exports,module){var alphabetical=require_is_alphabetical(),decimal=require_is_decimal();module.exports=alphanumerical;function alphanumerical(character){return alphabetical(character)||decimal(character)}}}),require_decode_entity_browser=__commonJS({"../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(exports,module){var el,semicolon=59;module.exports=decodeEntity;function decodeEntity(characters){var entity="&"+characters+";",char;return el=el||document.createElement("i"),el.innerHTML=entity,char=el.textContent,char.charCodeAt(char.length-1)===semicolon&&characters!=="semi"||char===entity?!1:char}}}),require_parse_entities=__commonJS({"../../node_modules/refractor/node_modules/parse-entities/index.js"(exports,module){var legacy=require_character_entities_legacy(),invalid=require_character_reference_invalid(),decimal=require_is_decimal(),hexadecimal=require_is_hexadecimal(),alphanumerical=require_is_alphanumerical(),decodeEntity=require_decode_entity_browser();module.exports=parseEntities;var own={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16,bases[deci]=10;var tests={};tests[name]=alphanumerical,tests[deci]=decimal,tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};messages[namedNotTerminated]="Named character references must be terminated by a semicolon",messages[numericNotTerminated]="Numeric character references must be terminated by a semicolon",messages[namedEmpty]="Named character references cannot be empty",messages[numericEmpty]="Numeric character references cannot be empty",messages[namedUnknown]="Named character references must be known",messages[numericDisallowed]="Numeric character references cannot be disallowed",messages[numericProhibited]="Numeric character references cannot be outside the permissible Unicode range";function parseEntities(value,options){var settings={},option,key;options||(options={});for(key in defaults)option=options[key],settings[key]=option??defaults[key];return(settings.position.indent||settings.position.start)&&(settings.indent=settings.position.indent||[],settings.position=settings.position.start),parse(value,settings)}function parse(value,settings){var additional=settings.additional,nonTerminated=settings.nonTerminated,handleText=settings.text,handleReference=settings.reference,handleWarning=settings.warning,textContext=settings.textContext,referenceContext=settings.referenceContext,warningContext=settings.warningContext,pos=settings.position,indent=settings.indent||[],length=value.length,index=0,lines=-1,column=pos.column||1,line=pos.line||1,queue="",result=[],entityCharacters,namedEntity,terminated,characters,character,reference,following,warning,reason,output,entity,begin,start,type,test,prev,next,diff,end;for(typeof additional=="string"&&(additional=additional.charCodeAt(0)),prev=now(),warning=handleWarning?parseError:noop,index--,length++;++index65535&&(reference-=65536,output+=fromCharCode(reference>>>10|55296),reference=56320|reference&1023),reference=output+fromCharCode(reference))):type!==name&&warning(numericEmpty,diff)),reference?(flush(),prev=now(),index=end-1,column+=end-start+1,result.push(reference),next=now(),next.offset++,handleReference&&handleReference.call(referenceContext,reference,{start:prev,end:next},value.slice(start-1,end)),prev=next):(characters=value.slice(start-1,end),queue+=characters,column+=characters.length,index=end-1)}else character===10&&(line++,lines++,column=0),character===character?(queue+=fromCharCode(character),column++):flush();return result.join("");function now(){return{line,column,offset:index+(pos.offset||0)}}function parseError(code,offset){var position=now();position.column+=offset,position.offset+=offset,handleWarning.call(warningContext,messages[code],position,code)}function flush(){queue&&(result.push(queue),handleText&&handleText.call(textContext,queue,{start:prev,end:now()}),queue="")}}function prohibited(code){return code>=55296&&code<=57343||code>1114111}function disallowed(code){return code>=1&&code<=8||code===11||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||(code&65535)===65535||(code&65535)===65534}}}),require_prism_core=__commonJS({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(exports,module){var _self=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},Prism=function(_self2){var lang=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,uniqueId=0,plainTextGrammar={},_={manual:_self2.Prism&&_self2.Prism.manual,disableWorkerMessageHandler:_self2.Prism&&_self2.Prism.disableWorkerMessageHandler,util:{encode:function encode(tokens){return tokens instanceof Token?new Token(tokens.type,encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(encode):tokens.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(err){var src=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack)||[])[1];if(src){var scripts=document.getElementsByTagName("script");for(var i in scripts)if(scripts[i].src==src)return scripts[i]}return null}},isActive:function(element,className,defaultActivation){for(var no="no-"+className;element;){var classList=element.classList;if(classList.contains(className))return!0;if(classList.contains(no))return!1;element=element.parentElement}return!!defaultActivation}},languages:{plain:plainTextGrammar,plaintext:plainTextGrammar,text:plainTextGrammar,txt:plainTextGrammar,extend:function(id,redef){var lang2=_.util.clone(_.languages[id]);for(var key in redef)lang2[key]=redef[key];return lang2},insertBefore:function(inside,before,insert,root){root=root||_.languages;var grammar=root[inside],ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);insert.hasOwnProperty(token)||(ret[token]=grammar[token])}var old=root[inside];return root[inside]=ret,_.languages.DFS(_.languages,function(key,value){value===old&&key!=inside&&(this[key]=ret)}),ret},DFS:function DFS(o,callback,type,visited){visited=visited||{};var objId=_.util.objId;for(var i in o)if(o.hasOwnProperty(i)){callback.call(o,i,o[i],type||i);var property=o[i],propertyType=_.util.type(property);propertyType==="Object"&&!visited[objId(property)]?(visited[objId(property)]=!0,DFS(property,callback,null,visited)):propertyType==="Array"&&!visited[objId(property)]&&(visited[objId(property)]=!0,DFS(property,callback,i,visited))}}},plugins:{},highlightAll:function(async,callback){_.highlightAllUnder(document,async,callback)},highlightAllUnder:function(container,async,callback){var env={callback,container,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};_.hooks.run("before-highlightall",env),env.elements=Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)),_.hooks.run("before-all-elements-highlight",env);for(var i=0,element;element=env.elements[i++];)_.highlightElement(element,async===!0,env.callback)},highlightElement:function(element,async,callback){var language=_.util.getLanguage(element),grammar=_.languages[language];_.util.setLanguage(element,language);var parent=element.parentElement;parent&&parent.nodeName.toLowerCase()==="pre"&&_.util.setLanguage(parent,language);var code=element.textContent,env={element,language,grammar,code};function insertHighlightedCode(highlightedCode){env.highlightedCode=highlightedCode,_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,_.hooks.run("after-highlight",env),_.hooks.run("complete",env),callback&&callback.call(env.element)}if(_.hooks.run("before-sanity-check",env),parent=env.element.parentElement,parent&&parent.nodeName.toLowerCase()==="pre"&&!parent.hasAttribute("tabindex")&&parent.setAttribute("tabindex","0"),!env.code){_.hooks.run("complete",env),callback&&callback.call(env.element);return}if(_.hooks.run("before-highlight",env),!env.grammar){insertHighlightedCode(_.util.encode(env.code));return}if(async&&_self2.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){insertHighlightedCode(evt.data)},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}))}else insertHighlightedCode(_.highlight(env.code,env.grammar,env.language))},highlight:function(text,grammar,language){var env={code:text,grammar,language};if(_.hooks.run("before-tokenize",env),!env.grammar)throw new Error('The language "'+env.language+'" has no grammar.');return env.tokens=_.tokenize(env.code,env.grammar),_.hooks.run("after-tokenize",env),Token.stringify(_.util.encode(env.tokens),env.language)},tokenize:function(text,grammar){var rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest}var tokenList=new LinkedList;return addAfter(tokenList,tokenList.head,text),matchGrammar(text,tokenList,grammar,tokenList.head,0),toArray(tokenList)},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(!(!callbacks||!callbacks.length))for(var i=0,callback;callback=callbacks[i++];)callback(env)}},Token};_self2.Prism=_;function Token(type,content,alias,matchedStr){this.type=type,this.content=content,this.alias=alias,this.length=(matchedStr||"").length|0}Token.stringify=function stringify(o,language){if(typeof o=="string")return o;if(Array.isArray(o)){var s="";return o.forEach(function(e){s+=stringify(e,language)}),s}var env={type:o.type,content:stringify(o.content,language),tag:"span",classes:["token",o.type],attributes:{},language},aliases=o.alias;aliases&&(Array.isArray(aliases)?Array.prototype.push.apply(env.classes,aliases):env.classes.push(aliases)),_.hooks.run("wrap",env);var attributes="";for(var name in env.attributes)attributes+=" "+name+'="'+(env.attributes[name]||"").replace(/"/g,""")+'"';return"<"+env.tag+' class="'+env.classes.join(" ")+'"'+attributes+">"+env.content+""};function matchPattern(pattern,pos,text,lookbehind){pattern.lastIndex=pos;var match=pattern.exec(text);if(match&&lookbehind&&match[1]){var lookbehindLength=match[1].length;match.index+=lookbehindLength,match[0]=match[0].slice(lookbehindLength)}return match}function matchGrammar(text,tokenList,grammar,startNode,startPos,rematch){for(var token in grammar)if(!(!grammar.hasOwnProperty(token)||!grammar[token])){var patterns=grammar[token];patterns=Array.isArray(patterns)?patterns:[patterns];for(var j=0;j=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text.length)return;if(!(str instanceof Token)){var removeCount=1,match;if(greedy){if(match=matchPattern(pattern,pos,text,lookbehind),!match||match.index>=text.length)break;var from=match.index,to=match.index+match[0].length,p=pos;for(p+=currentNode.value.length;from>=p;)currentNode=currentNode.next,p+=currentNode.value.length;if(p-=currentNode.value.length,pos=p,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(prematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount);var wrapped=new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias,matchStr);if(currentNode=addAfter(tokenList,removeFrom,wrapped),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+","+j,reach};matchGrammar(text,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach)}}}}}}function LinkedList(){var head={value:null,prev:null,next:null},tail={value:null,prev:head,next:null};head.next=tail,this.head=head,this.tail=tail,this.length=0}function addAfter(list,node,value){var next=node.next,newNode={value,prev:node,next};return node.next=newNode,next.prev=newNode,list.length++,newNode}function removeRange(list,node,count){for(var next=node.next,i=0;i>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism2.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism2.languages.bash;for(var toBeCopied=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside=insideString.variable[1].inside,i=0;i/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),flags)}Prism2.languages.insertBefore("javascript","keyword",{imports:{pattern:withId(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:Prism2.languages.javascript},exports:{pattern:withId(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:Prism2.languages.javascript}}),Prism2.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),Prism2.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),Prism2.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:withId(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var maybeClassNameTokens=["function","function-variable","method","method-variable","property-access"],i=0;i0)){var mutationEnd=findClosingBracket(/^\{$/,/^\}$/);if(mutationEnd===-1)continue;for(var i=currentIndex;i=0&&addAlias(varToken,"variable-input")}}}}})}}});var import_react3=__toESM(require_react(),1);var import_memoizerific=__toESM(require_memoizerific(),1),import_react_dom=__toESM(require_react_dom(),1);function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;irefs.forEach(ref=>$6ed0406888f73fc4$var$setRef(ref,node))}var $5e63c961fc1ce211$export$8c6ed5c666ac1360=(0,import_react2.forwardRef)((props,forwardedRef)=>{let{children,...slotProps}=props,childrenArray=import_react2.Children.toArray(children),slottable=childrenArray.find($5e63c961fc1ce211$var$isSlottable);if(slottable){let newElement=slottable.props.children,newChildren=childrenArray.map(child=>child===slottable?import_react2.Children.count(newElement)>1?import_react2.Children.only(null):(0,import_react2.isValidElement)(newElement)?newElement.props.children:null:child);return(0,import_react2.createElement)($5e63c961fc1ce211$var$SlotClone,_extends2({},slotProps,{ref:forwardedRef}),(0,import_react2.isValidElement)(newElement)?(0,import_react2.cloneElement)(newElement,void 0,newChildren):null)}return(0,import_react2.createElement)($5e63c961fc1ce211$var$SlotClone,_extends2({},slotProps,{ref:forwardedRef}),children)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";var $5e63c961fc1ce211$var$SlotClone=(0,import_react2.forwardRef)((props,forwardedRef)=>{let{children,...slotProps}=props;return(0,import_react2.isValidElement)(children)?(0,import_react2.cloneElement)(children,{...$5e63c961fc1ce211$var$mergeProps(slotProps,children.props),ref:forwardedRef?$6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef,children.ref):children.ref}):import_react2.Children.count(children)>1?import_react2.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children})=>(0,import_react2.createElement)(import_react2.Fragment,null,children);function $5e63c961fc1ce211$var$isSlottable(child){return(0,import_react2.isValidElement)(child)&&child.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(slotProps,childProps){let overrideProps={...childProps};for(let propName in childProps){let slotPropValue=slotProps[propName],childPropValue=childProps[propName];/^on[A-Z]/.test(propName)?slotPropValue&&childPropValue?overrideProps[propName]=(...args)=>{childPropValue(...args),slotPropValue(...args)}:slotPropValue&&(overrideProps[propName]=slotPropValue):propName==="style"?overrideProps[propName]={...slotPropValue,...childPropValue}:propName==="className"&&(overrideProps[propName]=[slotPropValue,childPropValue].filter(Boolean).join(" "))}return{...slotProps,...overrideProps}}var import_jsx=__toESM2(require_jsx()),jsx_default=import_jsx.default,import_bash=__toESM2(require_bash()),bash_default=import_bash.default,import_css=__toESM2(require_css()),css_default=import_css.default,import_js_extras=__toESM2(require_js_extras()),js_extras_default=import_js_extras.default,import_json=__toESM2(require_json()),json_default=import_json.default,import_graphql=__toESM2(require_graphql()),graphql_default=import_graphql.default,import_markup=__toESM2(require_markup()),markup_default=import_markup.default,import_markdown=__toESM2(require_markdown()),markdown_default=import_markdown.default,import_yaml=__toESM2(require_yaml()),yaml_default=import_yaml.default,import_tsx=__toESM2(require_tsx()),tsx_default=import_tsx.default,import_typescript=__toESM2(require_typescript()),typescript_default=import_typescript.default;function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=4)return[arr[0],arr[1],arr[2],arr[3],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3]),"".concat(arr[3],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1],".").concat(arr[0])]}var classNameCombinations={};function getClassNameCombinations(classNames){if(classNames.length===0||classNames.length===1)return classNames;var key=classNames.join(".");return classNameCombinations[key]||(classNameCombinations[key]=powerSetPermutations(classNames)),classNameCombinations[key]}function createStyleObject(classNames){var elementStyle=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},stylesheet=arguments.length>2?arguments[2]:void 0,nonTokenClassNames=classNames.filter(function(className){return className!=="token"}),classNamesCombinations=getClassNameCombinations(nonTokenClassNames);return classNamesCombinations.reduce(function(styleObject,className){return _objectSpread(_objectSpread({},styleObject),stylesheet[className])},elementStyle)}function createClassNameString(classNames){return classNames.join(" ")}function createChildren(stylesheet,useInlineStyles){var childrenCount=0;return function(children){return childrenCount+=1,children.map(function(child,i){return createElement({node:child,stylesheet,useInlineStyles,key:"code-segment-".concat(childrenCount,"-").concat(i)})})}}function createElement(_ref){var node=_ref.node,stylesheet=_ref.stylesheet,_ref$style=_ref.style,style=_ref$style===void 0?{}:_ref$style,useInlineStyles=_ref.useInlineStyles,key=_ref.key,properties=node.properties,type=node.type,TagName=node.tagName,value=node.value;if(type==="text")return value;if(TagName){var childrenCreator=createChildren(stylesheet,useInlineStyles),props;if(!useInlineStyles)props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(properties.className)});else{var allStylesheetSelectors=Object.keys(stylesheet).reduce(function(classes,selector){return selector.split(".").forEach(function(className2){classes.includes(className2)||classes.push(className2)}),classes},[]),startingClassName=properties.className&&properties.className.includes("token")?["token"]:[],className=properties.className&&startingClassName.concat(properties.className.filter(function(className2){return!allStylesheetSelectors.includes(className2)}));props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(className)||void 0,style:createStyleObject(properties.className,Object.assign({},properties.style,style),stylesheet)})}var children=childrenCreator(node.children);return import_react3.default.createElement(TagName,_extends({key},props),children)}}var checkForListedLanguage_default=function(astGenerator,language){var langs=astGenerator.listLanguages();return langs.indexOf(language)!==-1},_excluded=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ownKeys2(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i1&&arguments[1]!==void 0?arguments[1]:[],newTree=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i2&&arguments[2]!==void 0?arguments[2]:[];return createLineElement({children:children2,lineNumber:lineNumber2,lineNumberStyle,largestLineNumber,showInlineLineNumbers,lineProps,className,showLineNumbers,wrapLongLines})}function createUnwrappedLine(children2,lineNumber2){if(showLineNumbers&&lineNumber2&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber2,largestLineNumber);children2.unshift(getInlineLineNumber(lineNumber2,inlineLineNumberStyle))}return children2}function createLine(children2,lineNumber2){var className=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return wrapLines||className.length>0?createWrappedLine(children2,lineNumber2,className):createUnwrappedLine(children2,lineNumber2)}for(var _loop=function(){var node=tree[index],value=node.children[0].value,newLines=getNewLines(value);if(newLines){var splitValue=value.split(` +`);splitValue.forEach(function(text,i){var lineNumber2=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:"text",value:"".concat(text,` +`)};if(i===0){var _children=tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),_line=createLine(_children,lineNumber2);newTree.push(_line)}else if(i===splitValue.length-1){var stringChild=tree[index+1]&&tree[index+1].children&&tree[index+1].children[0],lastLineInPreviousSpan={type:"text",value:"".concat(text)};if(stringChild){var newElem=createLineElement({children:[lastLineInPreviousSpan],className:node.properties.className});tree.splice(index+1,0,newElem)}else{var _children2=[lastLineInPreviousSpan],_line2=createLine(_children2,lineNumber2,node.properties.className);newTree.push(_line2)}}else{var _children3=[newChild],_line3=createLine(_children3,lineNumber2,node.properties.className);newTree.push(_line3)}}),lastLineBreakIndex=index}index++};index({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:theme.background.content,zIndex:1})),ActionButton=newStyled.button(({theme})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:`1px solid ${theme.appBorderColor}`,borderLeft:`1px solid ${theme.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${theme.appBorderColor}`},"& + *":{borderLeft:`1px solid ${theme.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${theme.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}}),({disabled})=>disabled&&{cursor:"not-allowed",opacity:.5});ActionButton.displayName="ActionButton";var ActionBar=({actionItems,...props})=>import_react3.default.createElement(Container,{...props},actionItems.map(({title,className,onClick,disabled},index)=>import_react3.default.createElement(ActionButton,{key:index,className,onClick,disabled},title))),$8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((primitive,node)=>{let Node=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{asChild,...primitiveProps}=props,Comp=asChild?$5e63c961fc1ce211$export$8c6ed5c666ac1360:node;return(0,import_react3.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,import_react3.createElement)(Comp,_extends({},primitiveProps,{ref:forwardedRef}))});return Node.displayName=`Primitive.${node}`,{...primitive,[node]:Node}},{});function $6ed0406888f73fc4$var$setRef2(ref,value){typeof ref=="function"?ref(value):ref!=null&&(ref.current=value)}function $6ed0406888f73fc4$export$43e446d32b3d21af2(...refs){return node=>refs.forEach(ref=>$6ed0406888f73fc4$var$setRef2(ref,node))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs){return(0,import_react3.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af2(...refs),refs)}var $9f79659886946c16$export$e5c5a5f917a5871c=globalThis?.document?import_react3.useLayoutEffect:()=>{};function $fe963b355347cc68$export$3e6543de14f8614f(initialState,machine){return(0,import_react3.useReducer)((state,event)=>machine[state][event]??state,initialState)}var $921a889cee6df7e8$export$99c2b779aa4e8b8b=props=>{let{present,children}=props,presence=$921a889cee6df7e8$var$usePresence(present),child=typeof children=="function"?children({present:presence.isPresent}):import_react3.Children.only(children),ref=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref,child.ref);return typeof children=="function"||presence.isPresent?(0,import_react3.cloneElement)(child,{ref}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(present){let[node1,setNode]=(0,import_react3.useState)(),stylesRef=(0,import_react3.useRef)({}),prevPresentRef=(0,import_react3.useRef)(present),prevAnimationNameRef=(0,import_react3.useRef)("none"),initialState=present?"mounted":"unmounted",[state,send]=$fe963b355347cc68$export$3e6543de14f8614f(initialState,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,import_react3.useEffect)(()=>{let currentAnimationName=$921a889cee6df7e8$var$getAnimationName(stylesRef.current);prevAnimationNameRef.current=state==="mounted"?currentAnimationName:"none"},[state]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let styles=stylesRef.current,wasPresent=prevPresentRef.current;if(wasPresent!==present){let prevAnimationName=prevAnimationNameRef.current,currentAnimationName=$921a889cee6df7e8$var$getAnimationName(styles);present?send("MOUNT"):currentAnimationName==="none"||styles?.display==="none"?send("UNMOUNT"):send(wasPresent&&prevAnimationName!==currentAnimationName?"ANIMATION_OUT":"UNMOUNT"),prevPresentRef.current=present}},[present,send]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(node1){let handleAnimationEnd=event=>{let isCurrentAnimation=$921a889cee6df7e8$var$getAnimationName(stylesRef.current).includes(event.animationName);event.target===node1&&isCurrentAnimation&&(0,import_react_dom.flushSync)(()=>send("ANIMATION_END"))},handleAnimationStart=event=>{event.target===node1&&(prevAnimationNameRef.current=$921a889cee6df7e8$var$getAnimationName(stylesRef.current))};return node1.addEventListener("animationstart",handleAnimationStart),node1.addEventListener("animationcancel",handleAnimationEnd),node1.addEventListener("animationend",handleAnimationEnd),()=>{node1.removeEventListener("animationstart",handleAnimationStart),node1.removeEventListener("animationcancel",handleAnimationEnd),node1.removeEventListener("animationend",handleAnimationEnd)}}else send("ANIMATION_END")},[node1,send]),{isPresent:["mounted","unmountSuspended"].includes(state),ref:(0,import_react3.useCallback)(node=>{node&&(stylesRef.current=getComputedStyle(node)),setNode(node)},[])}}function $921a889cee6df7e8$var$getAnimationName(styles){return styles?.animationName||"none"}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName,createContextScopeDeps=[]){let defaultContexts=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName,defaultContext){let BaseContext=(0,import_react3.createContext)(defaultContext),index=defaultContexts.length;defaultContexts=[...defaultContexts,defaultContext];function Provider(props){let{scope:scope2,children,...context}=props,Context=scope2?.[scopeName][index]||BaseContext,value=(0,import_react3.useMemo)(()=>context,Object.values(context));return(0,import_react3.createElement)(Context.Provider,{value},children)}function useContext$1(consumerName,scope2){let Context=scope2?.[scopeName][index]||BaseContext,context=(0,import_react3.useContext)(Context);if(context)return context;if(defaultContext!==void 0)return defaultContext;throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``)}return Provider.displayName=rootComponentName+"Provider",[Provider,useContext$1]}let createScope=()=>{let scopeContexts=defaultContexts.map(defaultContext=>(0,import_react3.createContext)(defaultContext));return function(scope2){let contexts=scope2?.[scopeName]||scopeContexts;return(0,import_react3.useMemo)(()=>({[`__scope${scopeName}`]:{...scope2,[scopeName]:contexts}}),[scope2,contexts])}};return createScope.scopeName=scopeName,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...createContextScopeDeps)]}function $c512c27ab02ef895$var$composeContextScopes(...scopes){let baseScope=scopes[0];if(scopes.length===1)return baseScope;let createScope1=()=>{let scopeHooks=scopes.map(createScope=>({useScope:createScope(),scopeName:createScope.scopeName}));return function(overrideScopes){let nextScopes1=scopeHooks.reduce((nextScopes,{useScope,scopeName})=>{let currentScope=useScope(overrideScopes)[`__scope${scopeName}`];return{...nextScopes,...currentScope}},{});return(0,import_react3.useMemo)(()=>({[`__scope${baseScope.scopeName}`]:nextScopes1}),[nextScopes1])}};return createScope1.scopeName=baseScope.scopeName,createScope1}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback){let callbackRef=(0,import_react3.useRef)(callback);return(0,import_react3.useEffect)(()=>{callbackRef.current=callback}),(0,import_react3.useMemo)(()=>(...args)=>{var _callbackRef$current;return(_callbackRef$current=callbackRef.current)===null||_callbackRef$current===void 0?void 0:_callbackRef$current.call(callbackRef,...args)},[])}var $f631663db3294ace$var$DirectionContext=(0,import_react3.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(localDir){let globalDir=(0,import_react3.useContext)($f631663db3294ace$var$DirectionContext);return localDir||globalDir||"ltr"}function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value,[min,max]){return Math.min(max,Math.max(min,value))}function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function(event){if(originalEventHandler?.(event),checkForDefaultPrevented===!1||!event.defaultPrevented)return ourEventHandler?.(event)}}function $6c2e24571c90391f$export$3e6543de14f8614f(initialState,machine){return(0,import_react3.useReducer)((state,event)=>machine[state][event]??state,initialState)}var $57acba87d6e25586$var$SCROLL_AREA_NAME="ScrollArea",[$57acba87d6e25586$var$createScrollAreaContext,$57acba87d6e25586$export$488468afe3a6f2b1]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($57acba87d6e25586$var$SCROLL_AREA_NAME),[$57acba87d6e25586$var$ScrollAreaProvider,$57acba87d6e25586$var$useScrollAreaContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLL_AREA_NAME),$57acba87d6e25586$export$ccf8d8d7bbf3c2cc=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,type="hover",dir,scrollHideDelay=600,...scrollAreaProps}=props,[scrollArea,setScrollArea]=(0,import_react3.useState)(null),[viewport,setViewport]=(0,import_react3.useState)(null),[content,setContent]=(0,import_react3.useState)(null),[scrollbarX,setScrollbarX]=(0,import_react3.useState)(null),[scrollbarY,setScrollbarY]=(0,import_react3.useState)(null),[cornerWidth,setCornerWidth]=(0,import_react3.useState)(0),[cornerHeight,setCornerHeight]=(0,import_react3.useState)(0),[scrollbarXEnabled,setScrollbarXEnabled]=(0,import_react3.useState)(!1),[scrollbarYEnabled,setScrollbarYEnabled]=(0,import_react3.useState)(!1),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollArea(node)),direction=$f631663db3294ace$export$b39126d51d94e6f3(dir);return(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaProvider,{scope:__scopeScrollArea,type,dir:direction,scrollHideDelay,scrollArea,viewport,onViewportChange:setViewport,content,onContentChange:setContent,scrollbarX,onScrollbarXChange:setScrollbarX,scrollbarXEnabled,onScrollbarXEnabledChange:setScrollbarXEnabled,scrollbarY,onScrollbarYChange:setScrollbarY,scrollbarYEnabled,onScrollbarYEnabledChange:setScrollbarYEnabled,onCornerWidthChange:setCornerWidth,onCornerHeightChange:setCornerHeight},(0,import_react3.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({dir:direction},scrollAreaProps,{ref:composedRefs,style:{position:"relative","--radix-scroll-area-corner-width":cornerWidth+"px","--radix-scroll-area-corner-height":cornerHeight+"px",...props.style}})))}),$57acba87d6e25586$var$VIEWPORT_NAME="ScrollAreaViewport",$57acba87d6e25586$export$a21cbf9f11fca853=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,children,...viewportProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$VIEWPORT_NAME,__scopeScrollArea),ref=(0,import_react3.useRef)(null),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onViewportChange);return(0,import_react3.createElement)(import_react3.Fragment,null,(0,import_react3.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,import_react3.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({"data-radix-scroll-area-viewport":""},viewportProps,{ref:composedRefs,style:{overflowX:context.scrollbarXEnabled?"scroll":"hidden",overflowY:context.scrollbarYEnabled?"scroll":"hidden",...props.style}}),(0,import_react3.createElement)("div",{ref:context.onContentChange,style:{minWidth:"100%",display:"table"}},children)))}),$57acba87d6e25586$var$SCROLLBAR_NAME="ScrollAreaScrollbar",$57acba87d6e25586$export$2fabd85d0eba3c57=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{onScrollbarXEnabledChange,onScrollbarYEnabledChange}=context,isHorizontal=props.orientation==="horizontal";return(0,import_react3.useEffect)(()=>(isHorizontal?onScrollbarXEnabledChange(!0):onScrollbarYEnabledChange(!0),()=>{isHorizontal?onScrollbarXEnabledChange(!1):onScrollbarYEnabledChange(!1)}),[isHorizontal,onScrollbarXEnabledChange,onScrollbarYEnabledChange]),context.type==="hover"?(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarHover,_extends({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="scroll"?(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarScroll,_extends({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="auto"?(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="always"?(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends({},scrollbarProps,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarHover=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[visible,setVisible]=(0,import_react3.useState)(!1);return(0,import_react3.useEffect)(()=>{let scrollArea=context.scrollArea,hideTimer=0;if(scrollArea){let handlePointerEnter=()=>{window.clearTimeout(hideTimer),setVisible(!0)},handlePointerLeave=()=>{hideTimer=window.setTimeout(()=>setVisible(!1),context.scrollHideDelay)};return scrollArea.addEventListener("pointerenter",handlePointerEnter),scrollArea.addEventListener("pointerleave",handlePointerLeave),()=>{window.clearTimeout(hideTimer),scrollArea.removeEventListener("pointerenter",handlePointerEnter),scrollArea.removeEventListener("pointerleave",handlePointerLeave)}}},[context.scrollArea,context.scrollHideDelay]),(0,import_react3.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||visible},(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends({"data-state":visible?"visible":"hidden"},scrollbarProps,{ref:forwardedRef})))}),$57acba87d6e25586$var$ScrollAreaScrollbarScroll=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),isHorizontal=props.orientation==="horizontal",debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>send("SCROLL_END"),100),[state,send]=$6c2e24571c90391f$export$3e6543de14f8614f("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return(0,import_react3.useEffect)(()=>{if(state==="idle"){let hideTimer=window.setTimeout(()=>send("HIDE"),context.scrollHideDelay);return()=>window.clearTimeout(hideTimer)}},[state,context.scrollHideDelay,send]),(0,import_react3.useEffect)(()=>{let viewport=context.viewport,scrollDirection=isHorizontal?"scrollLeft":"scrollTop";if(viewport){let prevScrollPos=viewport[scrollDirection],handleScroll=()=>{let scrollPos=viewport[scrollDirection];prevScrollPos!==scrollPos&&(send("SCROLL"),debounceScrollEnd()),prevScrollPos=scrollPos};return viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}},[context.viewport,isHorizontal,send,debounceScrollEnd]),(0,import_react3.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||state!=="hidden"},(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends({"data-state":state==="hidden"?"hidden":"visible"},scrollbarProps,{ref:forwardedRef,onPointerEnter:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter,()=>send("POINTER_ENTER")),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave,()=>send("POINTER_LEAVE"))})))}),$57acba87d6e25586$var$ScrollAreaScrollbarAuto=(0,import_react3.forwardRef)((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{forceMount,...scrollbarProps}=props,[visible,setVisible]=(0,import_react3.useState)(!1),isHorizontal=props.orientation==="horizontal",handleResize=$57acba87d6e25586$var$useDebounceCallback(()=>{if(context.viewport){let isOverflowX=context.viewport.offsetWidth{let{orientation="vertical",...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),thumbRef=(0,import_react3.useRef)(null),pointerOffsetRef=(0,import_react3.useRef)(0),[sizes,setSizes]=(0,import_react3.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),thumbRatio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),commonProps={...scrollbarProps,sizes,onSizesChange:setSizes,hasThumb:thumbRatio>0&&thumbRatio<1,onThumbChange:thumb=>thumbRef.current=thumb,onThumbPointerUp:()=>pointerOffsetRef.current=0,onThumbPointerDown:pointerPos=>pointerOffsetRef.current=pointerPos};function getScrollPosition(pointerPos,dir){return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffsetRef.current,sizes,dir)}return orientation==="horizontal"?(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarX,_extends({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollLeft,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,context.dir);thumbRef.current.style.transform=`translate3d(${offset}px, 0, 0)`}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollLeft=scrollPos)},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollLeft=getScrollPosition(pointerPos,context.dir))}})):orientation==="vertical"?(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarY,_extends({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollTop,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes);thumbRef.current.style.transform=`translate3d(0, ${offset}px, 0)`}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollTop=scrollPos)},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollTop=getScrollPosition(pointerPos))}})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarX=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,import_react3.useState)(),ref=(0,import_react3.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarXChange);return(0,import_react3.useEffect)(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current))},[ref]),(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends({"data-orientation":"horizontal"},scrollbarProps,{ref:composeRefs,sizes,style:{bottom:0,left:context.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:context.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.x),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.x),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollLeft+event.deltaX;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault()}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollWidth,viewport:context.viewport.offsetWidth,scrollbar:{size:ref.current.clientWidth,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingLeft),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingRight)}})}}))}),$57acba87d6e25586$var$ScrollAreaScrollbarY=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,import_react3.useState)(),ref=(0,import_react3.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarYChange);return(0,import_react3.useEffect)(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current))},[ref]),(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends({"data-orientation":"vertical"},scrollbarProps,{ref:composeRefs,sizes,style:{top:0,right:context.dir==="ltr"?0:void 0,left:context.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.y),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.y),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollTop+event.deltaY;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault()}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollHeight,viewport:context.viewport.offsetHeight,scrollbar:{size:ref.current.clientHeight,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingTop),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingBottom)}})}}))}),[$57acba87d6e25586$var$ScrollbarProvider,$57acba87d6e25586$var$useScrollbarContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME),$57acba87d6e25586$var$ScrollAreaScrollbarImpl=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,sizes,hasThumb,onThumbChange,onThumbPointerUp,onThumbPointerDown,onThumbPositionChange,onDragScroll,onWheelScroll,onResize,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,__scopeScrollArea),[scrollbar,setScrollbar]=(0,import_react3.useState)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollbar(node)),rectRef=(0,import_react3.useRef)(null),prevWebkitUserSelectRef=(0,import_react3.useRef)(""),viewport=context.viewport,maxScrollPos=sizes.content-sizes.viewport,handleWheelScroll=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onWheelScroll),handleThumbPositionChange=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPositionChange),handleResize=$57acba87d6e25586$var$useDebounceCallback(onResize,10);function handleDragScroll(event){if(rectRef.current){let x=event.clientX-rectRef.current.left,y=event.clientY-rectRef.current.top;onDragScroll({x,y})}}return(0,import_react3.useEffect)(()=>{let handleWheel=event=>{let element=event.target;scrollbar?.contains(element)&&handleWheelScroll(event,maxScrollPos)};return document.addEventListener("wheel",handleWheel,{passive:!1}),()=>document.removeEventListener("wheel",handleWheel,{passive:!1})},[viewport,scrollbar,maxScrollPos,handleWheelScroll]),(0,import_react3.useEffect)(handleThumbPositionChange,[sizes,handleThumbPositionChange]),$57acba87d6e25586$var$useResizeObserver(scrollbar,handleResize),$57acba87d6e25586$var$useResizeObserver(context.content,handleResize),(0,import_react3.createElement)($57acba87d6e25586$var$ScrollbarProvider,{scope:__scopeScrollArea,scrollbar,hasThumb,onThumbChange:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbChange),onThumbPointerUp:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),onThumbPositionChange:handleThumbPositionChange,onThumbPointerDown:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)},(0,import_react3.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({},scrollbarProps,{ref:composeRefs,style:{position:"absolute",...scrollbarProps.style},onPointerDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown,event=>{event.button===0&&(event.target.setPointerCapture(event.pointerId),rectRef.current=scrollbar.getBoundingClientRect(),prevWebkitUserSelectRef.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",context.viewport&&(context.viewport.style.scrollBehavior="auto"),handleDragScroll(event))}),onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove,handleDragScroll),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,event=>{let element=event.target;element.hasPointerCapture(event.pointerId)&&element.releasePointerCapture(event.pointerId),document.body.style.webkitUserSelect=prevWebkitUserSelectRef.current,context.viewport&&(context.viewport.style.scrollBehavior=""),rectRef.current=null})})))}),$57acba87d6e25586$var$THUMB_NAME="ScrollAreaThumb",$57acba87d6e25586$export$9fba1154677d7cd2=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{forceMount,...thumbProps}=props,scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,props.__scopeScrollArea);return(0,import_react3.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||scrollbarContext.hasThumb},(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaThumbImpl,_extends({ref:forwardedRef},thumbProps)))}),$57acba87d6e25586$var$ScrollAreaThumbImpl=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,style,...thumbProps}=props,scrollAreaContext=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),{onThumbPositionChange}=scrollbarContext,composedRef=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>scrollbarContext.onThumbChange(node)),removeUnlinkedScrollListenerRef=(0,import_react3.useRef)(),debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>{removeUnlinkedScrollListenerRef.current&&(removeUnlinkedScrollListenerRef.current(),removeUnlinkedScrollListenerRef.current=void 0)},100);return(0,import_react3.useEffect)(()=>{let viewport=scrollAreaContext.viewport;if(viewport){let handleScroll=()=>{if(debounceScrollEnd(),!removeUnlinkedScrollListenerRef.current){let listener=$57acba87d6e25586$var$addUnlinkedScrollListener(viewport,onThumbPositionChange);removeUnlinkedScrollListenerRef.current=listener,onThumbPositionChange()}};return onThumbPositionChange(),viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}},[scrollAreaContext.viewport,debounceScrollEnd,onThumbPositionChange]),(0,import_react3.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({"data-state":scrollbarContext.hasThumb?"visible":"hidden"},thumbProps,{ref:composedRef,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...style},onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture,event=>{let thumbRect=event.target.getBoundingClientRect(),x=event.clientX-thumbRect.left,y=event.clientY-thumbRect.top;scrollbarContext.onThumbPointerDown({x,y})}),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,scrollbarContext.onThumbPointerUp)}))}),$57acba87d6e25586$var$CORNER_NAME="ScrollAreaCorner",$57acba87d6e25586$export$56969d565df7cc4b=(0,import_react3.forwardRef)((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,props.__scopeScrollArea),hasBothScrollbarsVisible=!!(context.scrollbarX&&context.scrollbarY);return context.type!=="scroll"&&hasBothScrollbarsVisible?(0,import_react3.createElement)($57acba87d6e25586$var$ScrollAreaCornerImpl,_extends({},props,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaCornerImpl=(0,import_react3.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,...cornerProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,__scopeScrollArea),[width1,setWidth]=(0,import_react3.useState)(0),[height1,setHeight]=(0,import_react3.useState)(0),hasSize=!!(width1&&height1);return $57acba87d6e25586$var$useResizeObserver(context.scrollbarX,()=>{var _context$scrollbarX;let height=((_context$scrollbarX=context.scrollbarX)===null||_context$scrollbarX===void 0?void 0:_context$scrollbarX.offsetHeight)||0;context.onCornerHeightChange(height),setHeight(height)}),$57acba87d6e25586$var$useResizeObserver(context.scrollbarY,()=>{var _context$scrollbarY;let width=((_context$scrollbarY=context.scrollbarY)===null||_context$scrollbarY===void 0?void 0:_context$scrollbarY.offsetWidth)||0;context.onCornerWidthChange(width),setWidth(width)}),hasSize?(0,import_react3.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({},cornerProps,{ref:forwardedRef,style:{width:width1,height:height1,position:"absolute",right:context.dir==="ltr"?0:void 0,left:context.dir==="rtl"?0:void 0,bottom:0,...props.style}})):null});function $57acba87d6e25586$var$toInt(value){return value?parseInt(value,10):0}function $57acba87d6e25586$var$getThumbRatio(viewportSize,contentSize){let ratio=viewportSize/contentSize;return isNaN(ratio)?0:ratio}function $57acba87d6e25586$var$getThumbSize(sizes){let ratio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,thumbSize=(sizes.scrollbar.size-scrollbarPadding)*ratio;return Math.max(thumbSize,18)}function $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffset,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),thumbCenter=thumbSizePx/2,offset=pointerOffset||thumbCenter,thumbOffsetFromEnd=thumbSizePx-offset,minPointerPos=sizes.scrollbar.paddingStart+offset,maxPointerPos=sizes.scrollbar.size-sizes.scrollbar.paddingEnd-thumbOffsetFromEnd,maxScrollPos=sizes.content-sizes.viewport,scrollRange=dir==="ltr"?[0,maxScrollPos]:[maxScrollPos*-1,0];return $57acba87d6e25586$var$linearScale([minPointerPos,maxPointerPos],scrollRange)(pointerPos)}function $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,scrollbar=sizes.scrollbar.size-scrollbarPadding,maxScrollPos=sizes.content-sizes.viewport,maxThumbPos=scrollbar-thumbSizePx,scrollClampRange=dir==="ltr"?[0,maxScrollPos]:[maxScrollPos*-1,0],scrollWithoutMomentum=$ae6933e535247d3d$export$7d15b64cf5a3a4c4(scrollPos,scrollClampRange);return $57acba87d6e25586$var$linearScale([0,maxScrollPos],[0,maxThumbPos])(scrollWithoutMomentum)}function $57acba87d6e25586$var$linearScale(input,output){return value=>{if(input[0]===input[1]||output[0]===output[1])return output[0];let ratio=(output[1]-output[0])/(input[1]-input[0]);return output[0]+ratio*(value-input[0])}}function $57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos){return scrollPos>0&&scrollPos{})=>{let prevPosition={left:node.scrollLeft,top:node.scrollTop},rAF=0;return function loop(){let position={left:node.scrollLeft,top:node.scrollTop},isHorizontalScroll=prevPosition.left!==position.left,isVerticalScroll=prevPosition.top!==position.top;(isHorizontalScroll||isVerticalScroll)&&handler(),prevPosition=position,rAF=window.requestAnimationFrame(loop)}(),()=>window.cancelAnimationFrame(rAF)};function $57acba87d6e25586$var$useDebounceCallback(callback,delay){let handleCallback=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback),debounceTimerRef=(0,import_react3.useRef)(0);return(0,import_react3.useEffect)(()=>()=>window.clearTimeout(debounceTimerRef.current),[]),(0,import_react3.useCallback)(()=>{window.clearTimeout(debounceTimerRef.current),debounceTimerRef.current=window.setTimeout(handleCallback,delay)},[handleCallback,delay])}function $57acba87d6e25586$var$useResizeObserver(element,onResize){let handleResize=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onResize);$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let rAF=0;if(element){let resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(rAF),rAF=window.requestAnimationFrame(handleResize)});return resizeObserver.observe(element),()=>{window.cancelAnimationFrame(rAF),resizeObserver.unobserve(element)}}},[element,handleResize])}var $57acba87d6e25586$export$be92b6f5f03c0fe9=$57acba87d6e25586$export$ccf8d8d7bbf3c2cc,$57acba87d6e25586$export$d5c6c08dc2d3ca7=$57acba87d6e25586$export$a21cbf9f11fca853,$57acba87d6e25586$export$9a4e88b92edfce6b=$57acba87d6e25586$export$2fabd85d0eba3c57,$57acba87d6e25586$export$6521433ed15a34db=$57acba87d6e25586$export$9fba1154677d7cd2,$57acba87d6e25586$export$ac61190d9fc311a9=$57acba87d6e25586$export$56969d565df7cc4b,ScrollAreaRoot=newStyled($57acba87d6e25586$export$be92b6f5f03c0fe9)(({scrollbarsize,offset})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${scrollbarsize+offset}px`,"--radix-scroll-area-thumb-width":`${scrollbarsize}px`})),ScrollAreaViewport=newStyled($57acba87d6e25586$export$d5c6c08dc2d3ca7)({width:"100%",height:"100%"}),ScrollAreaScrollbar=newStyled($57acba87d6e25586$export$9a4e88b92edfce6b)(({offset,horizontal,vertical})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:offset,marginTop:offset,marginBottom:horizontal==="true"&&vertical==="true"?0:offset},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:offset,marginLeft:offset,marginRight:horizontal==="true"&&vertical==="true"?0:offset}})),ScrollAreaThumb=newStyled($57acba87d6e25586$export$6521433ed15a34db)(({theme})=>({flex:1,background:theme.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),ScrollArea=({children,horizontal=!1,vertical=!1,offset=2,scrollbarSize=6,className})=>import_react3.default.createElement(ScrollAreaRoot,{scrollbarsize:scrollbarSize,offset,className},import_react3.default.createElement(ScrollAreaViewport,null,children),horizontal&&import_react3.default.createElement(ScrollAreaScrollbar,{orientation:"horizontal",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},import_react3.default.createElement(ScrollAreaThumb,null)),vertical&&import_react3.default.createElement(ScrollAreaScrollbar,{orientation:"vertical",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},import_react3.default.createElement(ScrollAreaThumb,null)),horizontal&&vertical&&import_react3.default.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)),{navigator,document:document2,window:globalWindow}=scope,supportedLanguages={jsextra:js_extras_default,jsx:jsx_default,json:json_default,yml:yaml_default,md:markdown_default,bash:bash_default,css:css_default,html:markup_default,tsx:tsx_default,typescript:typescript_default,graphql:graphql_default};Object.entries(supportedLanguages).forEach(([key,val])=>{prism_light_default.registerLanguage(key,val)});var themedSyntax=(0,import_memoizerific.default)(2)(theme=>Object.entries(theme.code||{}).reduce((acc,[key,val])=>({...acc,[`* .${key}`]:val}),{})),copyToClipboard=createCopyToClipboardFunction();function createCopyToClipboardFunction(){return navigator?.clipboard?text=>navigator.clipboard.writeText(text):async text=>{let tmp=document2.createElement("TEXTAREA"),focus=document2.activeElement;tmp.value=text,document2.body.appendChild(tmp),tmp.select(),document2.execCommand("copy"),document2.body.removeChild(tmp),focus.focus()}}var Wrapper=newStyled.div(({theme})=>({position:"relative",overflow:"hidden",color:theme.color.defaultText}),({theme,bordered})=>bordered?{border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.borderRadius,background:theme.background.content}:{},({showLineNumbers})=>showLineNumbers?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),UnstyledScroller=({children,className})=>import_react3.default.createElement(ScrollArea,{horizontal:!0,vertical:!0,className},children),Scroller=newStyled(UnstyledScroller)({position:"relative"},({theme})=>themedSyntax(theme)),Pre=newStyled.pre(({theme,padded})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:padded?theme.layoutMargin:0})),Code=newStyled.div(({theme})=>({flex:1,paddingLeft:2,paddingRight:theme.layoutMargin,opacity:1,fontFamily:theme.typography.fonts.mono})),processLineNumber=row=>{let children=[...row.children],lineNumberNode=children[0],lineNumber=lineNumberNode.children[0].value,processedLineNumberNode={...lineNumberNode,children:[],properties:{...lineNumberNode.properties,"data-line-number":lineNumber,style:{...lineNumberNode.properties.style,userSelect:"auto"}}};return children[0]=processedLineNumberNode,{...row,children}},defaultRenderer2=({rows,stylesheet,useInlineStyles})=>rows.map((node,i)=>createElement({node:processLineNumber(node),stylesheet,useInlineStyles,key:`code-segement${i}`})),wrapRenderer=(renderer,showLineNumbers)=>showLineNumbers?renderer?({rows,...rest})=>renderer({rows:rows.map(row=>processLineNumber(row)),...rest}):defaultRenderer2:renderer,SyntaxHighlighter2=({children,language="jsx",copyable=!1,bordered=!1,padded=!1,format=!0,formatter=null,className=null,showLineNumbers=!1,...rest})=>{if(typeof children!="string"||!children.trim())return null;let[highlightableCode,setHighlightableCode]=(0,import_react3.useState)("");(0,import_react3.useEffect)(()=>{formatter?formatter(format,children).then(setHighlightableCode):setHighlightableCode(children.trim())},[children,format,formatter]);let[copied,setCopied]=(0,import_react3.useState)(!1),onClick=(0,import_react3.useCallback)(e=>{e.preventDefault(),copyToClipboard(highlightableCode).then(()=>{setCopied(!0),globalWindow.setTimeout(()=>setCopied(!1),1500)}).catch(logger.error)},[highlightableCode]),renderer=wrapRenderer(rest.renderer,showLineNumbers);return import_react3.default.createElement(Wrapper,{bordered,padded,showLineNumbers,className},import_react3.default.createElement(Scroller,null,import_react3.default.createElement(prism_light_default,{padded:padded||bordered,language,showLineNumbers,showInlineLineNumbers:showLineNumbers,useInlineStyles:!1,PreTag:Pre,CodeTag:Code,lineNumberContainerStyle:{},...rest,renderer},highlightableCode)),copyable?import_react3.default.createElement(ActionBar,{actionItems:[{title:copied?"Copied":"Copy",onClick}]}):null)};SyntaxHighlighter2.registerLanguage=(...args)=>prism_light_default.registerLanguage(...args);var syntaxhighlighter_default=SyntaxHighlighter2;export{_extends2 as _extends,$5e63c961fc1ce211$export$8c6ed5c666ac1360,ActionBar,ScrollArea,supportedLanguages,createCopyToClipboardFunction,SyntaxHighlighter2,syntaxhighlighter_default}; diff --git a/docs/sb-manager/chunk-UOBNU442.js b/docs/sb-manager/chunk-UOBNU442.js new file mode 100644 index 0000000..d1a3135 --- /dev/null +++ b/docs/sb-manager/chunk-UOBNU442.js @@ -0,0 +1,347 @@ +import{__commonJS,__export,__toESM,require_memoizerific}from"./chunk-XP3HGWTR.js";var require_react_development=__commonJS({"../../node_modules/react/cjs/react.development.js"(exports,module){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var ReactVersion="18.2.0",REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var ReactCurrentDispatcher={current:null},ReactCurrentBatchConfig={transition:null},ReactCurrentActQueue={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ReactCurrentOwner={current:null},ReactDebugCurrentFrame={},currentExtraStackFrame=null;function setExtraStackFrame(stack){currentExtraStackFrame=stack}ReactDebugCurrentFrame.setExtraStackFrame=function(stack){currentExtraStackFrame=stack},ReactDebugCurrentFrame.getCurrentStack=null,ReactDebugCurrentFrame.getStackAddendum=function(){var stack="";currentExtraStackFrame&&(stack+=currentExtraStackFrame);var impl=ReactDebugCurrentFrame.getCurrentStack;return impl&&(stack+=impl()||""),stack};var enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,ReactSharedInternals={ReactCurrentDispatcher,ReactCurrentBatchConfig,ReactCurrentOwner};ReactSharedInternals.ReactDebugCurrentFrame=ReactDebugCurrentFrame,ReactSharedInternals.ReactCurrentActQueue=ReactCurrentActQueue;function warn(format2){{for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format2,args)}}function error(format2){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format2,args)}}function printWarning(level,format2,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format2+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format2),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var didWarnStateUpdateForUnmountedComponent={};function warnNoop(publicInstance,callerName){{var _constructor=publicInstance.constructor,componentName=_constructor&&(_constructor.displayName||_constructor.name)||"ReactClass",warningKey=componentName+"."+callerName;if(didWarnStateUpdateForUnmountedComponent[warningKey])return;error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",callerName,componentName),didWarnStateUpdateForUnmountedComponent[warningKey]=!0}}var ReactNoopUpdateQueue={isMounted:function(publicInstance){return!1},enqueueForceUpdate:function(publicInstance,callback,callerName){warnNoop(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance,completeState,callback,callerName){warnNoop(publicInstance,"replaceState")},enqueueSetState:function(publicInstance,partialState,callback,callerName){warnNoop(publicInstance,"setState")}},assign2=Object.assign,emptyObject={};Object.freeze(emptyObject);function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if(typeof partialState!="object"&&typeof partialState!="function"&&partialState!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};{var deprecatedAPIs={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},defineDeprecationWarning=function(methodName,info){Object.defineProperty(Component.prototype,methodName,{get:function(){warn("%s(...) is deprecated in plain JavaScript React classes. %s",info[0],info[1])}})};for(var fnName in deprecatedAPIs)deprecatedAPIs.hasOwnProperty(fnName)&&defineDeprecationWarning(fnName,deprecatedAPIs[fnName])}function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy;pureComponentPrototype.constructor=PureComponent,assign2(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;function createRef(){var refObject={current:null};return Object.seal(refObject),refObject}var isArrayImpl=Array.isArray;function isArray(a){return isArrayImpl(a)}function typeName(value){{var hasToStringTag=typeof Symbol=="function"&&Symbol.toStringTag,type=hasToStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object";return type}}function willCoercionThrow(value){try{return testStringCoercion(value),!1}catch{return!0}}function testStringCoercion(value){return""+value}function checkKeyStringCoercion(value){if(willCoercionThrow(value))return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",typeName(value)),testStringCoercion(value)}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return getComponentNameFromType(init(payload))}catch{return null}}}return null}var hasOwnProperty3=Object.prototype.hasOwnProperty,RESERVED_PROPS={key:!0,ref:!0,__self:!0,__source:!0},specialPropKeyWarningShown,specialPropRefWarningShown,didWarnAboutStringRefs;didWarnAboutStringRefs={};function hasValidRef(config){if(hasOwnProperty3.call(config,"ref")){var getter=Object.getOwnPropertyDescriptor(config,"ref").get;if(getter&&getter.isReactWarning)return!1}return config.ref!==void 0}function hasValidKey(config){if(hasOwnProperty3.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function defineKeyPropWarningGetter(props,displayName){var warnAboutAccessingKey=function(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!0,error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}function defineRefPropWarningGetter(props,displayName){var warnAboutAccessingRef=function(){specialPropRefWarningShown||(specialPropRefWarningShown=!0,error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingRef.isReactWarning=!0,Object.defineProperty(props,"ref",{get:warnAboutAccessingRef,configurable:!0})}function warnIfStringRefCannotBeAutoConverted(config){if(typeof config.ref=="string"&&ReactCurrentOwner.current&&config.__self&&ReactCurrentOwner.current.stateNode!==config.__self){var componentName=getComponentNameFromType(ReactCurrentOwner.current.type);didWarnAboutStringRefs[componentName]||(error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',componentName,config.ref),didWarnAboutStringRefs[componentName]=!0)}}var ReactElement=function(type,key,ref,self2,source,owner,props){var element={$$typeof:REACT_ELEMENT_TYPE,type,key,ref,props,_owner:owner};return element._store={},Object.defineProperty(element._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(element,"_self",{configurable:!1,enumerable:!1,writable:!1,value:self2}),Object.defineProperty(element,"_source",{configurable:!1,enumerable:!1,writable:!1,value:source}),Object.freeze&&(Object.freeze(element.props),Object.freeze(element)),element};function createElement2(type,config,children){var propName,props={},key=null,ref=null,self2=null,source=null;if(config!=null){hasValidRef(config)&&(ref=config.ref,warnIfStringRefCannotBeAutoConverted(config)),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key),self2=config.__self===void 0?null:config.__self,source=config.__source===void 0?null:config.__source;for(propName in config)hasOwnProperty3.call(config,propName)&&!RESERVED_PROPS.hasOwnProperty(propName)&&(props[propName]=config[propName])}var childrenLength=arguments.length-2;if(childrenLength===1)props.children=children;else if(childrenLength>1){for(var childArray=Array(childrenLength),i=0;i1){for(var childArray=Array(childrenLength),i=0;i is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Provider},set:function(_Provider){context.Provider=_Provider}},_currentValue:{get:function(){return context._currentValue},set:function(_currentValue){context._currentValue=_currentValue}},_currentValue2:{get:function(){return context._currentValue2},set:function(_currentValue2){context._currentValue2=_currentValue2}},_threadCount:{get:function(){return context._threadCount},set:function(_threadCount){context._threadCount=_threadCount}},Consumer:{get:function(){return hasWarnedAboutUsingNestedContextConsumers||(hasWarnedAboutUsingNestedContextConsumers=!0,error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Consumer}},displayName:{get:function(){return context.displayName},set:function(displayName){hasWarnedAboutDisplayNameOnConsumer||(warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",displayName),hasWarnedAboutDisplayNameOnConsumer=!0)}}}),context.Consumer=Consumer}return context._currentRenderer=null,context._currentRenderer2=null,context}var Uninitialized=-1,Pending=0,Resolved=1,Rejected=2;function lazyInitializer(payload){if(payload._status===Uninitialized){var ctor=payload._result,thenable=ctor();if(thenable.then(function(moduleObject2){if(payload._status===Pending||payload._status===Uninitialized){var resolved=payload;resolved._status=Resolved,resolved._result=moduleObject2}},function(error2){if(payload._status===Pending||payload._status===Uninitialized){var rejected=payload;rejected._status=Rejected,rejected._result=error2}}),payload._status===Uninitialized){var pending=payload;pending._status=Pending,pending._result=thenable}}if(payload._status===Resolved){var moduleObject=payload._result;return moduleObject===void 0&&error(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent')) + +Did you accidentally put curly braces around the import?`,moduleObject),"default"in moduleObject||error(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent'))`,moduleObject),moduleObject.default}else throw payload._result}function lazy(ctor){var payload={_status:Uninitialized,_result:ctor},lazyType={$$typeof:REACT_LAZY_TYPE,_payload:payload,_init:lazyInitializer};{var defaultProps,propTypes;Object.defineProperties(lazyType,{defaultProps:{configurable:!0,get:function(){return defaultProps},set:function(newDefaultProps){error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),defaultProps=newDefaultProps,Object.defineProperty(lazyType,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return propTypes},set:function(newPropTypes){error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),propTypes=newPropTypes,Object.defineProperty(lazyType,"propTypes",{enumerable:!0})}}})}return lazyType}function forwardRef3(render){render!=null&&render.$$typeof===REACT_MEMO_TYPE?error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof render!="function"?error("forwardRef requires a render function but was given %s.",render===null?"null":typeof render):render.length!==0&&render.length!==2&&error("forwardRef render functions accept exactly two parameters: props and ref. %s",render.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),render!=null&&(render.defaultProps!=null||render.propTypes!=null)&&error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var elementType={$$typeof:REACT_FORWARD_REF_TYPE,render};{var ownName;Object.defineProperty(elementType,"displayName",{enumerable:!1,configurable:!0,get:function(){return ownName},set:function(name){ownName=name,!render.name&&!render.displayName&&(render.displayName=name)}})}return elementType}var REACT_MODULE_REFERENCE;REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");function isValidElementType(type){return!!(typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||enableDebugTracing||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||enableLegacyHidden||type===REACT_OFFSCREEN_TYPE||enableScopeAPI||enableCacheElement||enableTransitionTracing||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MODULE_REFERENCE||type.getModuleId!==void 0))}function memo(type,compare){isValidElementType(type)||error("memo: The first argument must be a component. Instead received: %s",type===null?"null":typeof type);var elementType={$$typeof:REACT_MEMO_TYPE,type,compare:compare===void 0?null:compare};{var ownName;Object.defineProperty(elementType,"displayName",{enumerable:!1,configurable:!0,get:function(){return ownName},set:function(name){ownName=name,!type.name&&!type.displayName&&(type.displayName=name)}})}return elementType}function resolveDispatcher(){var dispatcher=ReactCurrentDispatcher.current;return dispatcher===null&&error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),dispatcher}function useContext3(Context){var dispatcher=resolveDispatcher();if(Context._context!==void 0){var realContext=Context._context;realContext.Consumer===Context?error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):realContext.Provider===Context&&error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return dispatcher.useContext(Context)}function useState(initialState){var dispatcher=resolveDispatcher();return dispatcher.useState(initialState)}function useReducer(reducer,initialArg,init){var dispatcher=resolveDispatcher();return dispatcher.useReducer(reducer,initialArg,init)}function useRef2(initialValue){var dispatcher=resolveDispatcher();return dispatcher.useRef(initialValue)}function useEffect(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useEffect(create3,deps)}function useInsertionEffect3(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useInsertionEffect(create3,deps)}function useLayoutEffect2(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useLayoutEffect(create3,deps)}function useCallback(callback,deps){var dispatcher=resolveDispatcher();return dispatcher.useCallback(callback,deps)}function useMemo(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useMemo(create3,deps)}function useImperativeHandle(ref,create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useImperativeHandle(ref,create3,deps)}function useDebugValue(value,formatterFn){{var dispatcher=resolveDispatcher();return dispatcher.useDebugValue(value,formatterFn)}}function useTransition(){var dispatcher=resolveDispatcher();return dispatcher.useTransition()}function useDeferredValue(value){var dispatcher=resolveDispatcher();return dispatcher.useDeferredValue(value)}function useId(){var dispatcher=resolveDispatcher();return dispatcher.useId()}function useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot){var dispatcher=resolveDispatcher();return dispatcher.useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)}var disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign2({},props,{value:prevLog}),info:assign2({},props,{value:prevInfo}),warn:assign2({},props,{value:prevWarn}),error:assign2({},props,{value:prevError}),group:assign2({},props,{value:prevGroup}),groupCollapsed:assign2({},props,{value:prevGroupCollapsed}),groupEnd:assign2({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher$1=ReactSharedInternals.ReactCurrentDispatcher,prefix2;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix2===void 0)try{throw Error()}catch(x){var match2=x.stack.trim().match(/\n( *(at )?)/);prefix2=match2&&match2[1]||""}return` +`+prefix2+name}}var reentry=!1,componentFrameCache;{var PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map;componentFrameCache=new PossiblyWeakMap}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";{var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame}var control;reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var previousDispatcher;previousDispatcher=ReactCurrentDispatcher$1.current,ReactCurrentDispatcher$1.current=null,disableLogs();try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x){control=x}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x){control=x}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x){control=x}fn()}}catch(sample){if(sample&&control&&typeof sample.stack=="string"){for(var sampleLines=sample.stack.split(` +`),controlLines=control.stack.split(` +`),s=sampleLines.length-1,c=controlLines.length-1;s>=1&&c>=0&&sampleLines[s]!==controlLines[c];)c--;for(;s>=1&&c>=0;s--,c--)if(sampleLines[s]!==controlLines[c]){if(s!==1||c!==1)do if(s--,c--,c<0||sampleLines[s]!==controlLines[c]){var _frame=` +`+sampleLines[s].replace(" at new "," at ");return fn.displayName&&_frame.includes("")&&(_frame=_frame.replace("",fn.displayName)),typeof fn=="function"&&componentFrameCache.set(fn,_frame),_frame}while(s>=1&&c>=0);break}}}finally{reentry=!1,ReactCurrentDispatcher$1.current=previousDispatcher,reenableLogs(),Error.prepareStackTrace=previousPrepareStackTrace}var name=fn?fn.displayName||fn.name:"",syntheticFrame=name?describeBuiltInComponentFrame(name):"";return typeof fn=="function"&&componentFrameCache.set(fn,syntheticFrame),syntheticFrame}function describeFunctionComponentFrame(fn,source,ownerFn){return describeNativeComponentFrame(fn,!1)}function shouldConstruct(Component2){var prototype=Component2.prototype;return!!(prototype&&prototype.isReactComponent)}function describeUnknownElementTypeFrameInDEV(type,source,ownerFn){if(type==null)return"";if(typeof type=="function")return describeNativeComponentFrame(type,shouldConstruct(type));if(typeof type=="string")return describeBuiltInComponentFrame(type);switch(type){case REACT_SUSPENSE_TYPE:return describeBuiltInComponentFrame("Suspense");case REACT_SUSPENSE_LIST_TYPE:return describeBuiltInComponentFrame("SuspenseList")}if(typeof type=="object")switch(type.$$typeof){case REACT_FORWARD_REF_TYPE:return describeFunctionComponentFrame(type.render);case REACT_MEMO_TYPE:return describeUnknownElementTypeFrameInDEV(type.type,source,ownerFn);case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return describeUnknownElementTypeFrameInDEV(init(payload),source,ownerFn)}catch{}}}return""}var loggedTypeFailures={},ReactDebugCurrentFrame$1=ReactSharedInternals.ReactDebugCurrentFrame;function setCurrentlyValidatingElement(element){if(element){var owner=element._owner,stack=describeUnknownElementTypeFrameInDEV(element.type,element._source,owner?owner.type:null);ReactDebugCurrentFrame$1.setExtraStackFrame(stack)}else ReactDebugCurrentFrame$1.setExtraStackFrame(null)}function checkPropTypes(typeSpecs,values,location,componentName,element){{var has=Function.call.bind(hasOwnProperty3);for(var typeSpecName in typeSpecs)if(has(typeSpecs,typeSpecName)){var error$1=void 0;try{if(typeof typeSpecs[typeSpecName]!="function"){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw err.name="Invariant Violation",err}error$1=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ex){error$1=ex}error$1&&!(error$1 instanceof Error)&&(setCurrentlyValidatingElement(element),error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",componentName||"React class",location,typeSpecName,typeof error$1),setCurrentlyValidatingElement(null)),error$1 instanceof Error&&!(error$1.message in loggedTypeFailures)&&(loggedTypeFailures[error$1.message]=!0,setCurrentlyValidatingElement(element),error("Failed %s type: %s",location,error$1.message),setCurrentlyValidatingElement(null))}}}function setCurrentlyValidatingElement$1(element){if(element){var owner=element._owner,stack=describeUnknownElementTypeFrameInDEV(element.type,element._source,owner?owner.type:null);setExtraStackFrame(stack)}else setExtraStackFrame(null)}var propTypesMisspellWarningShown;propTypesMisspellWarningShown=!1;function getDeclarationErrorAddendum(){if(ReactCurrentOwner.current){var name=getComponentNameFromType(ReactCurrentOwner.current.type);if(name)return` + +Check the render method of \``+name+"`."}return""}function getSourceInfoErrorAddendum(source){if(source!==void 0){var fileName=source.fileName.replace(/^.*[\\\/]/,""),lineNumber=source.lineNumber;return` + +Check your code at `+fileName+":"+lineNumber+"."}return""}function getSourceInfoErrorAddendumForProps(elementProps){return elementProps!=null?getSourceInfoErrorAddendum(elementProps.__source):""}var ownerHasKeyUseWarning={};function getCurrentComponentErrorInfo(parentType){var info=getDeclarationErrorAddendum();if(!info){var parentName=typeof parentType=="string"?parentType:parentType.displayName||parentType.name;parentName&&(info=` + +Check the top-level render call using <`+parentName+">.")}return info}function validateExplicitKey(element,parentType){if(!(!element._store||element._store.validated||element.key!=null)){element._store.validated=!0;var currentComponentErrorInfo=getCurrentComponentErrorInfo(parentType);if(!ownerHasKeyUseWarning[currentComponentErrorInfo]){ownerHasKeyUseWarning[currentComponentErrorInfo]=!0;var childOwner="";element&&element._owner&&element._owner!==ReactCurrentOwner.current&&(childOwner=" It was passed a child from "+getComponentNameFromType(element._owner.type)+"."),setCurrentlyValidatingElement$1(element),error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',currentComponentErrorInfo,childOwner),setCurrentlyValidatingElement$1(null)}}}function validateChildKeys(node2,parentType){if(typeof node2=="object"){if(isArray(node2))for(var i=0;i",info=" Did you accidentally export a JSX literal instead of a component?"):typeString=typeof type,error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",typeString,info)}var element=createElement2.apply(this,arguments);if(element==null)return element;if(validType)for(var i=2;i10&&warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),currentTransition._updatedFibers.clear()}}}var didWarnAboutMessageChannel=!1,enqueueTaskImpl=null;function enqueueTask(task){if(enqueueTaskImpl===null)try{var requireString=("require"+Math.random()).slice(0,7),nodeRequire=module&&module[requireString];enqueueTaskImpl=nodeRequire.call(module,"timers").setImmediate}catch{enqueueTaskImpl=function(callback){didWarnAboutMessageChannel===!1&&(didWarnAboutMessageChannel=!0,typeof MessageChannel>"u"&&error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var channel=new MessageChannel;channel.port1.onmessage=callback,channel.port2.postMessage(void 0)}}return enqueueTaskImpl(task)}var actScopeDepth=0,didWarnNoAwaitAct=!1;function act(callback){{var prevActScopeDepth=actScopeDepth;actScopeDepth++,ReactCurrentActQueue.current===null&&(ReactCurrentActQueue.current=[]);var prevIsBatchingLegacy=ReactCurrentActQueue.isBatchingLegacy,result;try{if(ReactCurrentActQueue.isBatchingLegacy=!0,result=callback(),!prevIsBatchingLegacy&&ReactCurrentActQueue.didScheduleLegacyUpdate){var queue=ReactCurrentActQueue.current;queue!==null&&(ReactCurrentActQueue.didScheduleLegacyUpdate=!1,flushActQueue(queue))}}catch(error2){throw popActScope(prevActScopeDepth),error2}finally{ReactCurrentActQueue.isBatchingLegacy=prevIsBatchingLegacy}if(result!==null&&typeof result=="object"&&typeof result.then=="function"){var thenableResult=result,wasAwaited=!1,thenable={then:function(resolve,reject){wasAwaited=!0,thenableResult.then(function(returnValue2){popActScope(prevActScopeDepth),actScopeDepth===0?recursivelyFlushAsyncActWork(returnValue2,resolve,reject):resolve(returnValue2)},function(error2){popActScope(prevActScopeDepth),reject(error2)})}};return!didWarnNoAwaitAct&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){wasAwaited||(didWarnNoAwaitAct=!0,error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),thenable}else{var returnValue=result;if(popActScope(prevActScopeDepth),actScopeDepth===0){var _queue=ReactCurrentActQueue.current;_queue!==null&&(flushActQueue(_queue),ReactCurrentActQueue.current=null);var _thenable={then:function(resolve,reject){ReactCurrentActQueue.current===null?(ReactCurrentActQueue.current=[],recursivelyFlushAsyncActWork(returnValue,resolve,reject)):resolve(returnValue)}};return _thenable}else{var _thenable2={then:function(resolve,reject){resolve(returnValue)}};return _thenable2}}}}function popActScope(prevActScopeDepth){prevActScopeDepth!==actScopeDepth-1&&error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),actScopeDepth=prevActScopeDepth}function recursivelyFlushAsyncActWork(returnValue,resolve,reject){{var queue=ReactCurrentActQueue.current;if(queue!==null)try{flushActQueue(queue),enqueueTask(function(){queue.length===0?(ReactCurrentActQueue.current=null,resolve(returnValue)):recursivelyFlushAsyncActWork(returnValue,resolve,reject)})}catch(error2){reject(error2)}else resolve(returnValue)}}var isFlushing=!1;function flushActQueue(queue){if(!isFlushing){isFlushing=!0;var i=0;try{for(;i0;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(compare(parent,node2)>0)heap[parentIndex]=node2,heap[index]=parent,index=parentIndex;else return}}function siftDown(heap,node2,i){for(var index=i,length2=heap.length,halfLength=length2>>>1;indexcurrentTime&&(!hasTimeRemaining||shouldYieldToHost()));){var callback=currentTask.callback;if(typeof callback=="function"){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var didUserCallbackTimeout=currentTask.expirationTime<=currentTime,continuationCallback=callback(didUserCallbackTimeout);currentTime=exports.unstable_now(),typeof continuationCallback=="function"?currentTask.callback=continuationCallback:currentTask===peek2(taskQueue)&&pop(taskQueue),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek2(taskQueue)}if(currentTask!==null)return!0;var firstTimer=peek2(timerQueue);return firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime),!1}function unstable_runWithPriority(priorityLevel,eventHandler){switch(priorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:case LowPriority:case IdlePriority:break;default:priorityLevel=NormalPriority}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_next(eventHandler){var priorityLevel;switch(currentPriorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:priorityLevel=NormalPriority;break;default:priorityLevel=currentPriorityLevel;break}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_wrapCallback(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments)}finally{currentPriorityLevel=previousPriorityLevel}}}function unstable_scheduleCallback(priorityLevel,callback,options){var currentTime=exports.unstable_now(),startTime2;if(typeof options=="object"&&options!==null){var delay=options.delay;typeof delay=="number"&&delay>0?startTime2=currentTime+delay:startTime2=currentTime}else startTime2=currentTime;var timeout;switch(priorityLevel){case ImmediatePriority:timeout=IMMEDIATE_PRIORITY_TIMEOUT;break;case UserBlockingPriority:timeout=USER_BLOCKING_PRIORITY_TIMEOUT;break;case IdlePriority:timeout=IDLE_PRIORITY_TIMEOUT;break;case LowPriority:timeout=LOW_PRIORITY_TIMEOUT;break;case NormalPriority:default:timeout=NORMAL_PRIORITY_TIMEOUT;break}var expirationTime=startTime2+timeout,newTask={id:taskIdCounter++,callback,priorityLevel,startTime:startTime2,expirationTime,sortIndex:-1};return startTime2>currentTime?(newTask.sortIndex=startTime2,push(timerQueue,newTask),peek2(taskQueue)===null&&newTask===peek2(timerQueue)&&(isHostTimeoutScheduled?cancelHostTimeout():isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,startTime2-currentTime))):(newTask.sortIndex=expirationTime,push(taskQueue,newTask),!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))),newTask}function unstable_pauseExecution(){}function unstable_continueExecution(){!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))}function unstable_getFirstCallbackNode(){return peek2(taskQueue)}function unstable_cancelCallback(task){task.callback=null}function unstable_getCurrentPriorityLevel(){return currentPriorityLevel}var isMessageLoopRunning=!1,scheduledHostCallback=null,taskTimeoutID=-1,frameInterval=frameYieldMs,startTime=-1;function shouldYieldToHost(){var timeElapsed=exports.unstable_now()-startTime;return!(timeElapsed125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}fps>0?frameInterval=Math.floor(1e3/fps):frameInterval=frameYieldMs}var performWorkUntilDeadline=function(){if(scheduledHostCallback!==null){var currentTime=exports.unstable_now();startTime=currentTime;var hasTimeRemaining=!0,hasMoreWork=!0;try{hasMoreWork=scheduledHostCallback(hasTimeRemaining,currentTime)}finally{hasMoreWork?schedulePerformWorkUntilDeadline():(isMessageLoopRunning=!1,scheduledHostCallback=null)}}else isMessageLoopRunning=!1},schedulePerformWorkUntilDeadline;if(typeof localSetImmediate=="function")schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline)};else if(typeof MessageChannel<"u"){var channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,schedulePerformWorkUntilDeadline=function(){port.postMessage(null)}}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0)};function requestHostCallback(callback){scheduledHostCallback=callback,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline())}function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports.unstable_now())},ms)}function cancelHostTimeout(){localClearTimeout(taskTimeoutID),taskTimeoutID=-1}var unstable_requestPaint=requestPaint,unstable_Profiling=null;exports.unstable_IdlePriority=IdlePriority,exports.unstable_ImmediatePriority=ImmediatePriority,exports.unstable_LowPriority=LowPriority,exports.unstable_NormalPriority=NormalPriority,exports.unstable_Profiling=unstable_Profiling,exports.unstable_UserBlockingPriority=UserBlockingPriority,exports.unstable_cancelCallback=unstable_cancelCallback,exports.unstable_continueExecution=unstable_continueExecution,exports.unstable_forceFrameRate=forceFrameRate,exports.unstable_getCurrentPriorityLevel=unstable_getCurrentPriorityLevel,exports.unstable_getFirstCallbackNode=unstable_getFirstCallbackNode,exports.unstable_next=unstable_next,exports.unstable_pauseExecution=unstable_pauseExecution,exports.unstable_requestPaint=unstable_requestPaint,exports.unstable_runWithPriority=unstable_runWithPriority,exports.unstable_scheduleCallback=unstable_scheduleCallback,exports.unstable_shouldYield=shouldYieldToHost,exports.unstable_wrapCallback=unstable_wrapCallback,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_scheduler=__commonJS({"../../node_modules/scheduler/index.js"(exports,module){"use strict";module.exports=require_scheduler_development()}});var require_react_dom_development=__commonJS({"../../node_modules/react-dom/cjs/react-dom.development.js"(exports){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var React3=require_react(),Scheduler=require_scheduler(),ReactSharedInternals=React3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,suppressWarning=!1;function setSuppressWarning(newSuppressWarning){suppressWarning=newSuppressWarning}function warn(format2){if(!suppressWarning){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format2,args)}}function error(format2){if(!suppressWarning){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format2,args)}}function printWarning(level,format2,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format2+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format2),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var FunctionComponent=0,ClassComponent=1,IndeterminateComponent=2,HostRoot=3,HostPortal=4,HostComponent=5,HostText=6,Fragment2=7,Mode=8,ContextConsumer=9,ContextProvider=10,ForwardRef=11,Profiler=12,SuspenseComponent=13,MemoComponent=14,SimpleMemoComponent=15,LazyComponent=16,IncompleteClassComponent=17,DehydratedFragment=18,SuspenseListComponent=19,ScopeComponent=21,OffscreenComponent=22,LegacyHiddenComponent=23,CacheComponent=24,TracingMarkerComponent=25,enableClientRenderFallbackOnTextMismatch=!0,enableNewReconciler=!1,enableLazyContextPropagation=!1,enableLegacyHidden=!1,enableSuspenseAvoidThisFallback=!1,disableCommentsAsDOMContainers=!0,enableCustomElementPropertySupport=!1,warnAboutStringRefs=!1,enableSchedulingProfiler=!0,enableProfilerTimer=!0,enableProfilerCommitHooks=!0,allNativeEvents=new Set,registrationNameDependencies={},possibleRegistrationNames={};function registerTwoPhaseEvent(registrationName,dependencies){registerDirectEvent(registrationName,dependencies),registerDirectEvent(registrationName+"Capture",dependencies)}function registerDirectEvent(registrationName,dependencies){registrationNameDependencies[registrationName]&&error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",registrationName),registrationNameDependencies[registrationName]=dependencies;{var lowerCasedName=registrationName.toLowerCase();possibleRegistrationNames[lowerCasedName]=registrationName,registrationName==="onDoubleClick"&&(possibleRegistrationNames.ondblclick=registrationName)}for(var i=0;i2&&(name[0]==="o"||name[0]==="O")&&(name[1]==="n"||name[1]==="N")}function shouldRemoveAttributeWithWarning(name,value,propertyInfo,isCustomComponentTag){if(propertyInfo!==null&&propertyInfo.type===RESERVED)return!1;switch(typeof value){case"function":case"symbol":return!0;case"boolean":{if(isCustomComponentTag)return!1;if(propertyInfo!==null)return!propertyInfo.acceptsBooleans;var prefix3=name.toLowerCase().slice(0,5);return prefix3!=="data-"&&prefix3!=="aria-"}default:return!1}}function shouldRemoveAttribute(name,value,propertyInfo,isCustomComponentTag){if(value===null||typeof value>"u"||shouldRemoveAttributeWithWarning(name,value,propertyInfo,isCustomComponentTag))return!0;if(isCustomComponentTag)return!1;if(propertyInfo!==null)switch(propertyInfo.type){case BOOLEAN:return!value;case OVERLOADED_BOOLEAN:return value===!1;case NUMERIC:return isNaN(value);case POSITIVE_NUMERIC:return isNaN(value)||value<1}return!1}function getPropertyInfo(name){return properties.hasOwnProperty(name)?properties[name]:null}function PropertyInfoRecord(name,type,mustUseProperty,attributeName,attributeNamespace,sanitizeURL2,removeEmptyString){this.acceptsBooleans=type===BOOLEANISH_STRING||type===BOOLEAN||type===OVERLOADED_BOOLEAN,this.attributeName=attributeName,this.attributeNamespace=attributeNamespace,this.mustUseProperty=mustUseProperty,this.propertyName=name,this.type=type,this.sanitizeURL=sanitizeURL2,this.removeEmptyString=removeEmptyString}var properties={},reservedProps=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];reservedProps.forEach(function(name){properties[name]=new PropertyInfoRecord(name,RESERVED,!1,name,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(_ref){var name=_ref[0],attributeName=_ref[1];properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!1,name.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!0,name,null,!1,!1)}),["capture","download"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,OVERLOADED_BOOLEAN,!1,name,null,!1,!1)}),["cols","rows","size","span"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,POSITIVE_NUMERIC,!1,name,null,!1,!1)}),["rowSpan","start"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,NUMERIC,!1,name.toLowerCase(),null,!1,!1)});var CAMELIZE=/[\-\:]([a-z])/g,capitalize=function(token2){return token2[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!1,!1)});var xlinkHref="xlinkHref";properties[xlinkHref]=new PropertyInfoRecord("xlinkHref",STRING,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!0,!0)});var isJavaScriptProtocol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,didWarn=!1;function sanitizeURL(url){!didWarn&&isJavaScriptProtocol.test(url)&&(didWarn=!0,error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(url)))}function getValueForProperty(node2,name,expected,propertyInfo){if(propertyInfo.mustUseProperty){var propertyName=propertyInfo.propertyName;return node2[propertyName]}else{checkAttributeStringCoercion(expected,name),propertyInfo.sanitizeURL&&sanitizeURL(""+expected);var attributeName=propertyInfo.attributeName,stringValue=null;if(propertyInfo.type===OVERLOADED_BOOLEAN){if(node2.hasAttribute(attributeName)){var value=node2.getAttribute(attributeName);return value===""?!0:shouldRemoveAttribute(name,expected,propertyInfo,!1)?value:value===""+expected?expected:value}}else if(node2.hasAttribute(attributeName)){if(shouldRemoveAttribute(name,expected,propertyInfo,!1))return node2.getAttribute(attributeName);if(propertyInfo.type===BOOLEAN)return expected;stringValue=node2.getAttribute(attributeName)}return shouldRemoveAttribute(name,expected,propertyInfo,!1)?stringValue===null?expected:stringValue:stringValue===""+expected?expected:stringValue}}function getValueForAttribute(node2,name,expected,isCustomComponentTag){{if(!isAttributeNameSafe(name))return;if(!node2.hasAttribute(name))return expected===void 0?void 0:null;var value=node2.getAttribute(name);return checkAttributeStringCoercion(expected,name),value===""+expected?expected:value}}function setValueForProperty(node2,name,value,isCustomComponentTag){var propertyInfo=getPropertyInfo(name);if(!shouldIgnoreAttribute(name,propertyInfo,isCustomComponentTag)){if(shouldRemoveAttribute(name,value,propertyInfo,isCustomComponentTag)&&(value=null),isCustomComponentTag||propertyInfo===null){if(isAttributeNameSafe(name)){var _attributeName=name;value===null?node2.removeAttribute(_attributeName):(checkAttributeStringCoercion(value,name),node2.setAttribute(_attributeName,""+value))}return}var mustUseProperty=propertyInfo.mustUseProperty;if(mustUseProperty){var propertyName=propertyInfo.propertyName;if(value===null){var type=propertyInfo.type;node2[propertyName]=type===BOOLEAN?!1:""}else node2[propertyName]=value;return}var attributeName=propertyInfo.attributeName,attributeNamespace=propertyInfo.attributeNamespace;if(value===null)node2.removeAttribute(attributeName);else{var _type=propertyInfo.type,attributeValue;_type===BOOLEAN||_type===OVERLOADED_BOOLEAN&&value===!0?attributeValue="":(checkAttributeStringCoercion(value,attributeName),attributeValue=""+value,propertyInfo.sanitizeURL&&sanitizeURL(attributeValue.toString())),attributeNamespace?node2.setAttributeNS(attributeNamespace,attributeName,attributeValue):node2.setAttribute(attributeName,attributeValue)}}}var REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_SCOPE_TYPE=Symbol.for("react.scope"),REACT_DEBUG_TRACING_MODE_TYPE=Symbol.for("react.debug_trace_mode"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=Symbol.for("react.legacy_hidden"),REACT_CACHE_TYPE=Symbol.for("react.cache"),REACT_TRACING_MARKER_TYPE=Symbol.for("react.tracing_marker"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var assign2=Object.assign,disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign2({},props,{value:prevLog}),info:assign2({},props,{value:prevInfo}),warn:assign2({},props,{value:prevWarn}),error:assign2({},props,{value:prevError}),group:assign2({},props,{value:prevGroup}),groupCollapsed:assign2({},props,{value:prevGroupCollapsed}),groupEnd:assign2({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix2;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix2===void 0)try{throw Error()}catch(x){var match2=x.stack.trim().match(/\n( *(at )?)/);prefix2=match2&&match2[1]||""}return` +`+prefix2+name}}var reentry=!1,componentFrameCache;{var PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map;componentFrameCache=new PossiblyWeakMap}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";{var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame}var control;reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var previousDispatcher;previousDispatcher=ReactCurrentDispatcher.current,ReactCurrentDispatcher.current=null,disableLogs();try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x){control=x}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x){control=x}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x){control=x}fn()}}catch(sample){if(sample&&control&&typeof sample.stack=="string"){for(var sampleLines=sample.stack.split(` +`),controlLines=control.stack.split(` +`),s=sampleLines.length-1,c=controlLines.length-1;s>=1&&c>=0&&sampleLines[s]!==controlLines[c];)c--;for(;s>=1&&c>=0;s--,c--)if(sampleLines[s]!==controlLines[c]){if(s!==1||c!==1)do if(s--,c--,c<0||sampleLines[s]!==controlLines[c]){var _frame=` +`+sampleLines[s].replace(" at new "," at ");return fn.displayName&&_frame.includes("")&&(_frame=_frame.replace("",fn.displayName)),typeof fn=="function"&&componentFrameCache.set(fn,_frame),_frame}while(s>=1&&c>=0);break}}}finally{reentry=!1,ReactCurrentDispatcher.current=previousDispatcher,reenableLogs(),Error.prepareStackTrace=previousPrepareStackTrace}var name=fn?fn.displayName||fn.name:"",syntheticFrame=name?describeBuiltInComponentFrame(name):"";return typeof fn=="function"&&componentFrameCache.set(fn,syntheticFrame),syntheticFrame}function describeClassComponentFrame(ctor,source,ownerFn){return describeNativeComponentFrame(ctor,!0)}function describeFunctionComponentFrame(fn,source,ownerFn){return describeNativeComponentFrame(fn,!1)}function shouldConstruct(Component){var prototype=Component.prototype;return!!(prototype&&prototype.isReactComponent)}function describeUnknownElementTypeFrameInDEV(type,source,ownerFn){if(type==null)return"";if(typeof type=="function")return describeNativeComponentFrame(type,shouldConstruct(type));if(typeof type=="string")return describeBuiltInComponentFrame(type);switch(type){case REACT_SUSPENSE_TYPE:return describeBuiltInComponentFrame("Suspense");case REACT_SUSPENSE_LIST_TYPE:return describeBuiltInComponentFrame("SuspenseList")}if(typeof type=="object")switch(type.$$typeof){case REACT_FORWARD_REF_TYPE:return describeFunctionComponentFrame(type.render);case REACT_MEMO_TYPE:return describeUnknownElementTypeFrameInDEV(type.type,source,ownerFn);case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return describeUnknownElementTypeFrameInDEV(init(payload),source,ownerFn)}catch{}}}return""}function describeFiber(fiber){var owner=fiber._debugOwner?fiber._debugOwner.type:null,source=fiber._debugSource;switch(fiber.tag){case HostComponent:return describeBuiltInComponentFrame(fiber.type);case LazyComponent:return describeBuiltInComponentFrame("Lazy");case SuspenseComponent:return describeBuiltInComponentFrame("Suspense");case SuspenseListComponent:return describeBuiltInComponentFrame("SuspenseList");case FunctionComponent:case IndeterminateComponent:case SimpleMemoComponent:return describeFunctionComponentFrame(fiber.type);case ForwardRef:return describeFunctionComponentFrame(fiber.type.render);case ClassComponent:return describeClassComponentFrame(fiber.type);default:return""}}function getStackByFiberInDevAndProd(workInProgress2){try{var info="",node2=workInProgress2;do info+=describeFiber(node2),node2=node2.return;while(node2);return info}catch(x){return` +Error generating stack: `+x.message+` +`+x.stack}}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return getComponentNameFromType(init(payload))}catch{return null}}}return null}function getWrappedName$1(outerType,innerType,wrapperName){var functionName=innerType.displayName||innerType.name||"";return outerType.displayName||(functionName!==""?wrapperName+"("+functionName+")":wrapperName)}function getContextName$1(type){return type.displayName||"Context"}function getComponentNameFromFiber(fiber){var tag=fiber.tag,type=fiber.type;switch(tag){case CacheComponent:return"Cache";case ContextConsumer:var context=type;return getContextName$1(context)+".Consumer";case ContextProvider:var provider=type;return getContextName$1(provider._context)+".Provider";case DehydratedFragment:return"DehydratedFragment";case ForwardRef:return getWrappedName$1(type,type.render,"ForwardRef");case Fragment2:return"Fragment";case HostComponent:return type;case HostPortal:return"Portal";case HostRoot:return"Root";case HostText:return"Text";case LazyComponent:return getComponentNameFromType(type);case Mode:return type===REACT_STRICT_MODE_TYPE?"StrictMode":"Mode";case OffscreenComponent:return"Offscreen";case Profiler:return"Profiler";case ScopeComponent:return"Scope";case SuspenseComponent:return"Suspense";case SuspenseListComponent:return"SuspenseList";case TracingMarkerComponent:return"TracingMarker";case ClassComponent:case FunctionComponent:case IncompleteClassComponent:case IndeterminateComponent:case MemoComponent:case SimpleMemoComponent:if(typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;break}return null}var ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame,current=null,isRendering=!1;function getCurrentFiberOwnerNameInDevOrNull(){{if(current===null)return null;var owner=current._debugOwner;if(owner!==null&&typeof owner<"u")return getComponentNameFromFiber(owner)}return null}function getCurrentFiberStackInDev(){return current===null?"":getStackByFiberInDevAndProd(current)}function resetCurrentFiber(){ReactDebugCurrentFrame.getCurrentStack=null,current=null,isRendering=!1}function setCurrentFiber(fiber){ReactDebugCurrentFrame.getCurrentStack=fiber===null?null:getCurrentFiberStackInDev,current=fiber,isRendering=!1}function getCurrentFiber(){return current}function setIsRendering(rendering){isRendering=rendering}function toString(value){return""+value}function getToStringValue(value){switch(typeof value){case"boolean":case"number":case"string":case"undefined":return value;case"object":return checkFormFieldValueStringCoercion(value),value;default:return""}}var hasReadOnlyValue={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function checkControlledValueProps(tagName,props){hasReadOnlyValue[props.type]||props.onChange||props.onInput||props.readOnly||props.disabled||props.value==null||error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),props.onChange||props.readOnly||props.disabled||props.checked==null||error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function isCheckable(elem){var type=elem.type,nodeName=elem.nodeName;return nodeName&&nodeName.toLowerCase()==="input"&&(type==="checkbox"||type==="radio")}function getTracker(node2){return node2._valueTracker}function detachTracker(node2){node2._valueTracker=null}function getValueFromNode(node2){var value="";return node2&&(isCheckable(node2)?value=node2.checked?"true":"false":value=node2.value),value}function trackValueOnNode(node2){var valueField=isCheckable(node2)?"checked":"value",descriptor=Object.getOwnPropertyDescriptor(node2.constructor.prototype,valueField);checkFormFieldValueStringCoercion(node2[valueField]);var currentValue=""+node2[valueField];if(!(node2.hasOwnProperty(valueField)||typeof descriptor>"u"||typeof descriptor.get!="function"||typeof descriptor.set!="function")){var get2=descriptor.get,set2=descriptor.set;Object.defineProperty(node2,valueField,{configurable:!0,get:function(){return get2.call(this)},set:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value,set2.call(this,value)}}),Object.defineProperty(node2,valueField,{enumerable:descriptor.enumerable});var tracker={getValue:function(){return currentValue},setValue:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value},stopTracking:function(){detachTracker(node2),delete node2[valueField]}};return tracker}}function track(node2){getTracker(node2)||(node2._valueTracker=trackValueOnNode(node2))}function updateValueIfChanged(node2){if(!node2)return!1;var tracker=getTracker(node2);if(!tracker)return!0;var lastValue=tracker.getValue(),nextValue=getValueFromNode(node2);return nextValue!==lastValue?(tracker.setValue(nextValue),!0):!1}function getActiveElement(doc){if(doc=doc||(typeof document<"u"?document:void 0),typeof doc>"u")return null;try{return doc.activeElement||doc.body}catch{return doc.body}}var didWarnValueDefaultValue=!1,didWarnCheckedDefaultChecked=!1,didWarnControlledToUncontrolled=!1,didWarnUncontrolledToControlled=!1;function isControlled(props){var usesChecked=props.type==="checkbox"||props.type==="radio";return usesChecked?props.checked!=null:props.value!=null}function getHostProps(element,props){var node2=element,checked=props.checked,hostProps=assign2({},props,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:checked??node2._wrapperState.initialChecked});return hostProps}function initWrapperState(element,props){checkControlledValueProps("input",props),props.checked!==void 0&&props.defaultChecked!==void 0&&!didWarnCheckedDefaultChecked&&(error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnCheckedDefaultChecked=!0),props.value!==void 0&&props.defaultValue!==void 0&&!didWarnValueDefaultValue&&(error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnValueDefaultValue=!0);var node2=element,defaultValue=props.defaultValue==null?"":props.defaultValue;node2._wrapperState={initialChecked:props.checked!=null?props.checked:props.defaultChecked,initialValue:getToStringValue(props.value!=null?props.value:defaultValue),controlled:isControlled(props)}}function updateChecked(element,props){var node2=element,checked=props.checked;checked!=null&&setValueForProperty(node2,"checked",checked,!1)}function updateWrapper(element,props){var node2=element;{var controlled=isControlled(props);!node2._wrapperState.controlled&&controlled&&!didWarnUncontrolledToControlled&&(error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),didWarnUncontrolledToControlled=!0),node2._wrapperState.controlled&&!controlled&&!didWarnControlledToUncontrolled&&(error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),didWarnControlledToUncontrolled=!0)}updateChecked(element,props);var value=getToStringValue(props.value),type=props.type;if(value!=null)type==="number"?(value===0&&node2.value===""||node2.value!=value)&&(node2.value=toString(value)):node2.value!==toString(value)&&(node2.value=toString(value));else if(type==="submit"||type==="reset"){node2.removeAttribute("value");return}props.hasOwnProperty("value")?setDefaultValue(node2,props.type,value):props.hasOwnProperty("defaultValue")&&setDefaultValue(node2,props.type,getToStringValue(props.defaultValue)),props.checked==null&&props.defaultChecked!=null&&(node2.defaultChecked=!!props.defaultChecked)}function postMountWrapper(element,props,isHydrating2){var node2=element;if(props.hasOwnProperty("value")||props.hasOwnProperty("defaultValue")){var type=props.type,isButton=type==="submit"||type==="reset";if(isButton&&(props.value===void 0||props.value===null))return;var initialValue=toString(node2._wrapperState.initialValue);isHydrating2||initialValue!==node2.value&&(node2.value=initialValue),node2.defaultValue=initialValue}var name=node2.name;name!==""&&(node2.name=""),node2.defaultChecked=!node2.defaultChecked,node2.defaultChecked=!!node2._wrapperState.initialChecked,name!==""&&(node2.name=name)}function restoreControlledState(element,props){var node2=element;updateWrapper(node2,props),updateNamedCousins(node2,props)}function updateNamedCousins(rootNode,props){var name=props.name;if(props.type==="radio"&&name!=null){for(var queryRoot=rootNode;queryRoot.parentNode;)queryRoot=queryRoot.parentNode;checkAttributeStringCoercion(name,"name");for(var group=queryRoot.querySelectorAll("input[name="+JSON.stringify(""+name)+'][type="radio"]'),i=0;i.")))}):props.dangerouslySetInnerHTML!=null&&(didWarnInvalidInnerHTML||(didWarnInvalidInnerHTML=!0,error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),props.selected!=null&&!didWarnSelectedSetOnOption&&(error("Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",propName,getDeclarationErrorAddendum())}}}}function updateOptions(node2,multiple,propValue,setDefaultSelected){var options2=node2.options;if(multiple){for(var selectedValues=propValue,selectedValue={},i=0;i.");var hostProps=assign2({},props,{value:void 0,defaultValue:void 0,children:toString(node2._wrapperState.initialValue)});return hostProps}function initWrapperState$2(element,props){var node2=element;checkControlledValueProps("textarea",props),props.value!==void 0&&props.defaultValue!==void 0&&!didWarnValDefaultVal&&(error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component"),didWarnValDefaultVal=!0);var initialValue=props.value;if(initialValue==null){var children=props.children,defaultValue=props.defaultValue;if(children!=null){error("Use the `defaultValue` or `value` props instead of setting children on